<?php
/**
- * SquirrelMail Preview Pane Plugin
- *
- * @copyright © 1999-2007 The SquirrelMail Project Team
- * @author Paul Lesneiwski <paul@squirrelmail.org>
- * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- * @version $Id$
- * @package plugins
- * @subpackage preview_pane
- *
- */
+ * SquirrelMail Preview Pane Plugin
+ *
+ * @copyright © 1999-2009 The SquirrelMail Project Team
+ * @author Paul Lesniewski <paul@squirrelmail.org>
+ * @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()
{
= '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';
}
/**
- * Returns info about this plugin
- *
- */
+ * Returns info about this plugin
+ */
function preview_pane_info()
{
/**
- * Returns version info about this plugin
- *
- */
+ * Returns version info about this plugin
+ */
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()
{
/**
- * 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()
{
/**
- * 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();
}