From 93081a3e4d1ca956971e4a9f4e334318e1db4300 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 18 May 2007 13:17:27 +0000 Subject: [PATCH] Add autohide functionality for preview pane. Thanks to Daniel Watts. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12418 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/preview_pane/functions.php | 8 +++ templates/default_advanced/page_header.tpl | 83 +++++++++++++++++++++- 2 files changed, 90 insertions(+), 1 deletion(-) diff --git a/plugins/preview_pane/functions.php b/plugins/preview_pane/functions.php index 2f9ddab3..acc02c72 100644 --- a/plugins/preview_pane/functions.php +++ b/plugins/preview_pane/functions.php @@ -27,6 +27,7 @@ function preview_pane_show_options_do() $previewPane_vertical_split = getPref($data_dir, $username, 'previewPane_vertical_split', 0); $previewPane_size = getPref($data_dir, $username, 'previewPane_size', 300); $pp_refresh_message_list = getPref($data_dir, $username, 'pp_refresh_message_list', 1); + $previewPane_autohide = getPref($data_dir, $username, 'previewPane_autohide', 0); global $optpage_data; @@ -59,6 +60,13 @@ function preview_pane_show_options_do() 'initial_value' => $pp_refresh_message_list, 'refresh' => SMOPT_REFRESH_NONE, ); + $optpage_data['vals'][1][] = array( + 'name' => 'previewPane_autohide', + 'caption' => _("Automatically Hide Preview Pane
When Not Reading Messages"), + 'type' => SMOPT_TYPE_BOOLEAN, + 'initial_value' => $previewPane_autohide, + 'refresh' => SMOPT_REFRESH_ALL, + ); } diff --git a/templates/default_advanced/page_header.tpl b/templates/default_advanced/page_header.tpl index 90133816..2e830cfe 100644 --- a/templates/default_advanced/page_header.tpl +++ b/templates/default_advanced/page_header.tpl @@ -119,6 +119,7 @@ $help_link = makeInternalLink ('src/help.php', $help_str);
+ -