X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fleft_main.tpl;h=c304ac20dbe8ea05a518f187f777633bdb4606bf;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hp=92e903034c950d89c853f09c85195b603a45bc81;hpb=5e8e22db8e32b70b07c1647982cffcd06a9831cb;p=squirrelmail.git diff --git a/templates/default/left_main.tpl b/templates/default/left_main.tpl index 92e90303..c304ac20 100644 --- a/templates/default/left_main.tpl +++ b/templates/default/left_main.tpl @@ -61,7 +61,7 @@ * in all folders in this mailbox, * excluding trash folders. * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright 1999-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -69,8 +69,6 @@ * @author Steve Brown */ -/** include required files */ -include_once(SM_PATH . 'templates/util_global.php'); /* * Recursively parse the mailbox structure to build the navigation tree. @@ -139,7 +137,7 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) * image based on whatever logic they see fit here. */ $folder_icon = ''; - if (!is_null($settings['iconThemePath'])) { + if (!is_null($icon_theme_path)) { switch (true) { case $box['IsInbox']: $folder_icon = getIcon($icon_theme_path, 'inbox.png', '', $box['MailboxName']); @@ -164,13 +162,23 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) } $pre .= $folder_icon; + // calculate if access key is needed + // + if ($box['IsInbox']) { + global $accesskey_folders_inbox; + $accesskey = $accesskey_folders_inbox; + } + else $accesskey = ''; + /* * 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 * deleted forever? */ $view_link = ''; if ($settings['messageRecyclingEnabled'] && $box['IsTrash']) { @@ -189,7 +197,7 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) $end .= ' ('.$unseen_str.')'; } $end .= "\n" . - '  ['. _("Purge").']' . + '  ['. _("Purge").']' . ''; } } else { @@ -211,6 +219,11 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) } } + // 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']) { @@ -221,18 +234,6 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) $spanend = ''; } -/******** - * Pulling imapConnection due to segfaults that cannot be tracked down. Best - * we can determine,its some combination of this var and >= 4 plugins enabled. - * No further clue from anyone. - ******** - - // let plugins fiddle with end of line - $end .= concat_hook_function('left_main_after_each_folder', - array(isset($numMessages) ? $numMessages : '', - $box['MailboxFullName'], $settings['imapConnection'])); -*/ - $end .= ''; $out = ''; @@ -248,7 +249,7 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) if (!$box['IsCollapsed'] || $box['IsRoot']) { for ($i = 0; $i
- +
@@ -270,7 +271,7 @@ extract($t);
- [] + [target="left">]
@@ -279,5 +280,5 @@ extract($t); - +