X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=24d9e4a0b66bdae02216a6dfd8491482f0777735;hb=92948f86768dd49bf544b9f09cd134a07a9cf1eb;hp=29a689fbee3b4c6f152353c15624685cddda6e7c;hpb=8fc208f8d3c00bd457e31425d1f32a6734504496;p=squirrelmail.git
diff --git a/src/left_main.php b/src/left_main.php
index 29a689fb..24d9e4a0 100644
--- a/src/left_main.php
+++ b/src/left_main.php
@@ -3,17 +3,20 @@
/**
* left_main.php
*
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This is the code for the left bar. The left bar shows the folders
* available, and has cookie information.
*
- * $Id$
+ * @version $Id$
* @package squirrelmail
*/
-/** Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
define('SM_PATH','../');
/* SquirrelMail required files. */
@@ -170,23 +173,27 @@ function compute_folder_children(&$parbox, $boxcount) {
* currently appropriate.
*/
function create_collapse_link($boxnum) {
- global $boxes, $imapConnection, $unseen_notify, $color;
+ global $boxes, $imapConnection, $unseen_notify, $color, $use_icons, $icon_theme;
$mailbox = urlencode($boxes[$boxnum]['unformatted']);
/* Create the link for this collapse link. */
$link = '+";
+ if ($use_icons && $icon_theme != 'none') {
+ $link .= "unfold=$mailbox\">";
+ } else {
+ $link .= "unfold=$mailbox\">+";
+ }
} else {
- $link .= "fold=$mailbox\">-";
+ if ($use_icons && $icon_theme != 'none') {
+ $link .= "fold=$mailbox\">";
+ } else {
+ $link .= "fold=$mailbox\">-";
+ }
}
$link .= '';
- $hooklink = do_hook_function('create_collapse_link',$link);
- if ($hooklink != '')
- $link = $hooklink;
-
/* Return the finished product. */
return ($link);
}
@@ -290,7 +297,8 @@ function is_parent_box($curbox_name, $parbox_name) {
function ListBoxes ($boxes, $j=0 ) {
global $data_dir, $username, $startmessage, $color, $unseen_notify, $unseen_type,
- $move_to_trash, $trash_folder, $collapse_folders, $imapConnection;
+ $move_to_trash, $trash_folder, $collapse_folders, $imapConnection,
+ $use_icons, $icon_theme;
if (!isset($boxes) || empty($boxes))
return;
@@ -346,9 +354,17 @@ function ListBoxes ($boxes, $j=0 ) {
$link = '$leader+ ";
+ if ($use_icons && $icon_theme != 'none') {
+ $link .= "unfold=$mailboxURL\">$leader ";
+ } else {
+ $link .= "unfold=$mailboxURL\">$leader+ ";
+ }
} else {
- $link .= "fold=$mailboxURL\">$leader- ";
+ if ($use_icons && $icon_theme != 'none') {
+ $link .= "fold=$mailboxURL\">$leader ";
+ } else {
+ $link .= "fold=$mailboxURL\">$leader- ";
+ }
}
$link .= '';
$pre .= $link;
@@ -966,6 +982,9 @@ if ($date_format != 6) {
}
switch( $date_format ) {
+ case 0:
+ $clk = date('Y-m-d '.$hr. ' T', time());
+ break;
case 1:
$clk = date('m/d/y '.$hr, time());
break;