X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fpreview_pane%2Fsetup.php;h=7069d2db7fd92ae1dbda6355f3ca1751ef4dc349;hb=c997cbe6f5a46d432d7733acb207dfcdfd00e49e;hp=9a4ed4343839c0ca70604cdbf600a5b2ae26fe37;hpb=505e00aad983adab70d4b001f450064cbda37b86;p=squirrelmail.git diff --git a/plugins/preview_pane/setup.php b/plugins/preview_pane/setup.php index 9a4ed434..7069d2db 100644 --- a/plugins/preview_pane/setup.php +++ b/plugins/preview_pane/setup.php @@ -1,22 +1,20 @@ - * @license http://opensource.org/licenses/gpl-license.php GNU Public License - * @version $Id$ - * @package plugins - * @subpackage preview_pane - * - */ + * SquirrelMail Preview Pane Plugin + * + * @copyright 1999-2021 The SquirrelMail Project Team + * @author Paul Lesniewski + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + * @package plugins + * @subpackage preview_pane + */ /** - * Register this plugin with SquirrelMail - * - */ + * Register this plugin with SquirrelMail + */ function squirrelmail_plugin_init_preview_pane() { @@ -29,6 +27,8 @@ function squirrelmail_plugin_init_preview_pane() = 'preview_pane_show_options'; $squirrelmail_plugin_hooks['template_construct_message_list.tpl']['preview_pane'] = 'preview_pane_message_list'; + $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['preview_pane'] + = 'preview_pane_open_close_buttons'; } @@ -38,9 +38,8 @@ if (!defined('SM_PATH')) /** - * Returns info about this plugin - * - */ + * Returns info about this plugin + */ function preview_pane_info() { @@ -61,9 +60,8 @@ function preview_pane_info() /** - * Returns version info about this plugin - * - */ + * Returns version info about this plugin + */ function preview_pane_version() { @@ -75,9 +73,8 @@ function preview_pane_version() /** - * Build user options for display on "Display Preferences" page - * - */ + * Build user options for display on "Display Preferences" page + */ function preview_pane_show_options() { @@ -89,12 +86,11 @@ function preview_pane_show_options() /** - * Construct button that clears out any preview pane - * contents and inserts JavaScript function used by - * message subject link onclick handler. Also disallows - * the message list to be loaded into the bottom frame. - * - */ + * Construct button that clears out any preview pane + * contents and inserts JavaScript function used by + * message subject link onclick handler. Also disallows + * the message list to be loaded into the bottom frame. + */ function preview_pane_message_list() { @@ -106,15 +102,28 @@ function preview_pane_message_list() /** - * Points message targets to open in the preview pane - * (and possibly refresh message list as well) - * - */ -function preview_pane_change_message_target() + * Points message targets to open in the preview pane + * (and possibly refresh message list as well) + */ +function preview_pane_change_message_target($args) { include_once(SM_PATH . 'plugins/preview_pane/functions.php'); - preview_pane_change_message_target_do(); + preview_pane_change_message_target_do($args); + +} + + + +/** + * Adds preview pane open/close (and clear) buttons next to + * "provider link" + */ +function preview_pane_open_close_buttons() +{ + + include_once(SM_PATH . 'plugins/preview_pane/functions.php'); + return preview_pane_open_close_buttons_do(); }