From: jervfors Date: Tue, 21 Feb 2006 05:16:44 +0000 (+0000) Subject: Reverting to old string. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=e945d2c287cc93a03cb52dd9d92c2f969da47ff8;hp=635f72004462dbdff9ddd8def16f301f75704a5b Reverting to old string. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10783 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default/left_main.tpl b/templates/default/left_main.tpl index 7991cd05..a2b418fd 100644 --- a/templates/default/left_main.tpl +++ b/templates/default/left_main.tpl @@ -1,8 +1,9 @@ ' . $unseen_str . ''; @@ -126,20 +127,20 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { * we need to output the expand/collapse link. */ if (sizeof($box['ChildBoxes'])>0 && $settings['collapsableFoldersEnabled']) { - $link = $indent . + $link = $indent . '' . - '>' . - $box['CollapseLink']['Icon'] . - ''; - $pre .= $link; - } else { + '>' . + $box['CollapseLink']['Icon'] . + ''; + $pre .= $link; + } else { $pre .= $indent . '  '; } - + /* * The Trash folder should only be displayed if message recycling has * been enabled, i.e. when deleted is a message moved to the trash or @@ -148,7 +149,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { $view_link = ''; - + if ($settings['messageRecyclingEnabled'] && $box['MailboxFullName'] == $settings['trashFolderName']) { $pre .= $view_link; @@ -158,7 +159,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { $end .= ''; } $end .= ''; - + // Print unread info if ($box['UnreadCount'] > 0) { if (!empty($unseen_str)) { @@ -172,7 +173,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { // Add a few other things for all other folders... if (!$box['IsNoSelect']) { $pre .= $view_link; - + // Boxes with unread messages should be emphasized if ($box['UnreadCount'] > 0) { $pre .= ''; @@ -180,13 +181,13 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { } $end .= ''; } - + // Display unread info... if (!empty($unseen_str)) { $end .= ' ('.$unseen_str.')'; } } - + $span = ''; $spanend = ''; if ($settings['useSpecialFolderColor'] && $box['IsSpecial']) { @@ -220,17 +221,17 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { $out .= buildMailboxTree($box['ChildBoxes'][$i], $settings, $indent_factor); } } - + return $out; } // Retrieve the template vars extract($t); - + /* * Build an array to pass user prefs to the function that builds the tree in * order to avoid using globals, which are dirty, filthy things in templates. :) - */ + */ $settings = array(); $settings['imapConnection'] = $imapConnection; $settings['iconThemePath'] = $icon_theme_path; @@ -255,7 +256,7 @@ $settings['collapsableFoldersEnabled'] = $collapsable_folders_enabled;
- [] + [] diff --git a/templates/default/left_main_advanced.tpl b/templates/default/left_main_advanced.tpl index f0b0fdc1..e0e3ed6e 100644 --- a/templates/default/left_main_advanced.tpl +++ b/templates/default/left_main_advanced.tpl @@ -1,8 +1,9 @@