Source for file data.dropdown.php
Documentation is available at data.dropdown.php
* @subpackage plugins_data
// +----------------------------------------------------------------------+
// | Copyright (c) 2004, bitweaver.org
// +----------------------------------------------------------------------+
// | All Rights Reserved. See below for details and a complete list of authors.
// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
// | For comments, please use phpdocu.sourceforge.net documentation standards!!!
// | -> see http://phpdocu.sourceforge.net/
// +----------------------------------------------------------------------+
// | Author: StarRider starrrider@sourceforge.net
// +----------------------------------------------------------------------+
// $id: data.dropdown.php,v 1.8 2005/07/14 09:03:36 starrider Exp $
define( 'PLUGIN_GUID_DATADROPDOWN', 'datadropdown' );
'auto_activate' => FALSE,
'load_function' => 'data_dropdown',
'help_page' => 'DataPluginDropDown',
'description' => tra("This plugin creates a expandable box of text. All text should be entered between the ") . "{DD} " . tra("blocks."),
'help_function' => 'data_dropdown_help',
'syntax' => "{DD title= width= }" . tra("Text in the Drop-Down box.") . "{DD}",
'<table class="data help">'
. '<th>' . tra( "Key" ) . '</th>'
. '<th>' . tra( "Type" ) . '</th>'
. '<th>' . tra( "Comments" ) . '</th>'
. '<td>' . tra( "string") . '<br />' . tra("(optional)") . '</td>'
. '<td>' . tra( 'String used as the link to Expand / Contract the text box. <br />The Default = <strong>"For More Information"</strong></td>')
. '<td>' . tra( "numeric") . '<br />' . tra("(optional)") . '</td>'
. '<td>' . tra( "Controls the width of the title area in pixels. This is a percentage value but the % character should not be added.<br />The Default = ") . '<strong>20</strong></td>'
. tra("Example: ") . '{DD}' . tra("Text in the Drop-Down box.") . '{DD}<br />'
. tra("Example: ") . "{DD title='" . tra("Explaining the Lines #1 #3 & #7'} Text in the Drop-Down box") . '{DD}';
$title = (isset ($title)) ? $title : tra( 'For More Information, click me.' );
$ret = '<div style="text-align:center;font-weight:bold;">'
. '<a title="Click to Expand or Contract" href="javascript:flip(\''. $id. '\')">'. $title. '</a>'
. '<div class="help box" style="display:none" id="'. $id. '">'. $data. '</div>';
|