Allow other plugins/code to tell us to skip menubar
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 Feb 2007 10:36:00 +0000 (10:36 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 Feb 2007 10:36:00 +0000 (10:36 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12234 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default_advanced/page_header.tpl

index 0c9af0389f085ca996feb31b52ba01d6453e63dc..7f30409e337edec96cdb6eb76f77c365bc5fd677 100644 (file)
@@ -63,12 +63,12 @@ $help_link          = makeInternalLink ('src/help.php', $help_str);
 <body <?php echo $body_tag_js; ?>>
 <?php
 
-   /** if preview pane turned on, do not show menubar above message view */
-   global $data_dir, $username, $PHP_SELF;
+   /** if preview pane turned on, do not show menubar above message or compose view */
+   global $data_dir, $username, $PHP_SELF, $pp_skip_menubar;
    $use_previewPane = getPref($data_dir, $username, 'use_previewPane', 0);
    $show_preview_pane = checkForJavascript() && $use_previewPane;
    $current_page_is_read_body = (strpos($PHP_SELF, '/read_body.php') !== FALSE);
-   if (!$current_page_is_read_body || !$show_preview_pane) {
+   if (!$pp_skip_menubar && (!$current_page_is_read_body || !$show_preview_pane)) {
 
 ?>
 <div id="page_header">