소스 검색

Last small addition, use separate class for mailboxes with recent messages
so you can detect where the recent messages are located if you use the
newmail plugin and only inform about recent messages.
At this moment the unseenstring is bold when the mailbox contains recent
messages.

stekkel 19 년 전
부모
커밋
e6223a514d
1개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  1. 10 3
      src/left_main.php

+ 10 - 3
src/left_main.php

@@ -83,7 +83,11 @@ function ListBoxes ($boxes, $j=0 ) {
                 if (isset($unseen_type) && ($unseen_type == 2) && ($boxes->total !== false)) {
                     $unseen_string .= '/' . $boxes->total;
                 }
-                $unseen_string = "<span class=\"leftunseen\">($unseen_string)</span>";
+                if (isset($boxes->recent) && $boxes->recent) {
+                    $unseen_string = "<span class=\"leftrecent\">($unseen_string)</span>";
+                } else {
+                    $unseen_string = "<span class=\"leftunseen\">($unseen_string)</span>";
+                }
 
                 /*
                  * Finally allow the script to display the values by setting a boolean.
@@ -256,8 +260,11 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) {
                     if (isset($unseen_type) && ($unseen_type == 2) && ($boxes->total !== false)) {
                         $unseen_string .= '/' . $boxes->total;
                     }
-
-                    $unseen_string = "<font color=\"$color[11]\">($unseen_string)</font>";
+                    if (isset($boxes->recent) && $boxes->recent > 0) {
+                        $unseen_string = "<span class=\"leftrecent\">($unseen_string)</span>";
+                    } else {
+                        $unseen_string = "<span class=\"leftunseen\">($unseen_string)</span>";
+                    }
 
                     /*
                      * Finally allow the script to display the values by setting a boolean.