X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault_advanced%2Fleft_main.tpl;h=14f3cc1ea1b6ccb32e9836e887ffd614561c281e;hb=701e7beed3baca980039f978c6d536dd91cae775;hp=2deb4aa9baa0503c7803bbd8fc1d3ed9639ebacb;hpb=f2eb3d39c81c0abdb5fdad7904ea73a373808e8f;p=squirrelmail.git diff --git a/templates/default_advanced/left_main.tpl b/templates/default_advanced/left_main.tpl index 2deb4aa9..14f3cc1e 100644 --- a/templates/default_advanced/left_main.tpl +++ b/templates/default_advanced/left_main.tpl @@ -67,7 +67,7 @@ * in all folders in this mailbox, * excluding trash folders. * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright 1999-2014 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -195,6 +195,11 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $parent_node=-1) { } } + // 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']) { @@ -205,11 +210,6 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $parent_node=-1) { $spanend = ''; } - /** - * NOTE: Plugins would horribly break this advanced tree, so we are - * going to skip that part altogether. - */ - $name = str_replace( array(' ','<','>'), array(' ','<','>'), @@ -226,11 +226,19 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $parent_node=-1) { } 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).'"' . + '"'.getIconPath($icon_theme_path, $img_open).'", ' . + '"'.$accesskey.'"' . ');'."\n"; } } @@ -283,7 +291,7 @@ extract($t);
- [] + [target="left">] @@ -291,13 +299,16 @@ extract($t);

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