'; $end = ''; // Get unseeen/total message info if needed $unseen_str = ''; if ($settings['unreadNotificationEnabled']) { // We only display the unread count if we on the Inbox or we are told // to display it on all folders AND there is more than 1 unread message if ( $settings['unreadNotificationAllFolders'] || (!$settings['unreadNotificationAllFolders'] && strtolower($box['MailboxFullName'])=='inbox') ) { $unseen = $settings['unreadNotificationCummulative'] ? $box['CummulativeUnreadCount'] : $box['UnreadCount']; if (!$box['IsNoSelect'] && ($unseen > 0 || $settings['unreadNotificationDisplayTotal'])) { $unseen_str = $unseen; // Add the total messages if desired if ($settings['unreadNotificationDisplayTotal']) { $unseen_str .= '/' . ($settings['unreadNotificationCummulative'] ? $box['CummulativeMessageCount'] : $box['MessageCount']); } $unseen_str = '' . $unseen_str . ''; } } } /** * Add folder icon. */ $img = ''; $img_open = ''; switch (true) { case $box['IsInbox']: $img = 'base.png'; $img_open = 'base.png'; break; case $box['IsTrash']: $img = 'trash.png'; $img_open = 'trash.png'; break; case $box['IsNoSelect']: case $box['IsNoInferiors']: $img = 'page.png'; $img_open = 'page.png'; break; default: $img = 'folder.png'; $img_open = 'folderopen.png'; break; } $display_folder = true; if (!$settings['messageRecyclingEnabled'] && $box['IsTrash']) { $display_folder = false; } if($settings['messageRecyclingEnabled'] && $box['IsTrash']) { // Boxes with unread messages should be emphasized if ($box['UnreadCount'] > 0) { $pre .= ''; $end .= ''; } // Print unread info if ($box['UnreadCount'] > 0) { if (!empty($unseen_str)) { $end .= ' ('.$unseen_str.')'; } } } else { // Add a few other things for all other folders... if (!$box['IsNoSelect']) { // Boxes with unread messages should be emphasized if ($box['UnreadCount'] > 0) { $pre .= ''; $end .= ''; } } // Display unread info... if (!empty($unseen_str)) { $end .= ' ('.$unseen_str.')'; } } // Add any extra output that may have been added by plugins, etc // if (!empty($box['ExtraOutput'])) $end .= $box['ExtraOutput']; $span = ''; $spanend = ''; if ($settings['useSpecialFolderColor'] && $box['IsSpecial']) { $span = ''; $spanend = ''; } elseif ( $box['IsNoSelect'] ) { $span = ''; $spanend = ''; } $name = str_replace( array(' ','<','>'), array(' ','<','>'), $box['MailboxName']); $title = $name; if ($box['IsNoSelect']) { $url = ''; $target = ''; } else { $url = $box['ViewLink']['URL']; $target = $box['ViewLink']['Target']; $name = $span . $pre . $name . $end . $spanend; } if ($display_folder) { if ($box['IsInbox']) { global $accesskey_folders_inbox; $accesskey = $accesskey_folders_inbox; } else $accesskey = ''; $out .= 'mailboxes.add('.$counter.', '.$parent_node.', ' . '"'.addslashes($name).'", "'.$url.'", "'.$title.'", ' . '"'.$target.'", ' . '"'.getIconPath($icon_theme_path, $img).'", ' . '"'.getIconPath($icon_theme_path, $img_open).'", ' . '"'.$accesskey.'"' . ');'."\n"; } } $parent_node = $counter; for ($i = 0; $i

[target="left">]

  |   '; echo '' . _("Purge Trash") . ''; } ?>