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 $ /** * Initialization */ global $gLibertySystem; define( 'PLUGIN_GUID_DATADROPDOWN', 'datadropdown' ); $pluginParams = array ( 'tag' => 'DD', 'auto_activate' => FALSE, 'requires_pair' => TRUE, 'load_function' => 'data_dropdown', 'title' => '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}", 'plugin_type' => DATA_PLUGIN ); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATADROPDOWN, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATADROPDOWN ); /** * Help Function */ function data_dropdown_help() { $help = '
| ' . tra( "Key" ) . ' | ' .'' . tra( "Type" ) . ' | ' .'' . tra( "Comments" ) . ' | ' .'
|---|---|---|
| title | ' .'' . tra( "string") . ' ' . tra("(optional)") . ' | '
.'' . tra( 'String used as the link to Expand / Contract the text box. The Default = "For More Information" | ')
.'
| width | ' .'' . tra( "numeric") . ' ' . tra("(optional)") . ' | '
.'' . tra( "Controls the width of the title area in pixels. This is a percentage value but the % character should not be added. The Default = ") . '20 | '
.'