X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault_advanced%2Fleft_main.tpl;h=f1b6622dad7d47e8861010906844c5a0f7db7622;hp=c8bad7aba28b3455425ae4d0fa5a529ba9a3e4f8;hb=c4faef335b2362c81b8ebf026d4066c12d70536c;hpb=d281e128d4c3149dc353397df2cd2c912b8ea5a7 diff --git a/templates/default_advanced/left_main.tpl b/templates/default_advanced/left_main.tpl index c8bad7ab..f1b6622d 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-2020 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"; } } @@ -245,6 +253,7 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $parent_node=-1) { } return $out; +//FIXME: somewhere above, need to insert the left_main_after_each_folder hook, or if no plugin hooks allowed in templates, at least the output from that hook (but I think it might be impossible not to have the hook here in this fxn } /* retrieve the template vars */ @@ -272,7 +281,7 @@ extract($t); //-->
- +
@@ -282,7 +291,7 @@ extract($t);

- [] + [target="left">]
@@ -290,13 +299,16 @@ extract($t);

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