summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-10-11 10:15:26 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-10-11 10:15:26 +0000
commit7391eeb99ebd6df8e346c8d7588e6fb73a9ba560 (patch)
tree1075d60ad677e14f6691ad9b44e0b2471a125036 /plugins
parent00a309359dd02fdab1a4f5c2b3c9f5a01ff7a4eb (diff)
downloadnexus-7391eeb99ebd6df8e346c8d7588e6fb73a9ba560.tar.gz
nexus-7391eeb99ebd6df8e346c8d7588e6fb73a9ba560.tar.bz2
nexus-7391eeb99ebd6df8e346c8d7588e6fb73a9ba560.zip
some nexus cleanup, removed plugins table and use LibertySystem instead, clean up UI, still need to allow dynamic menus at some point
Diffstat (limited to 'plugins')
-rw-r--r--plugins/menu.formelements.php28
-rw-r--r--plugins/menu.suckerfish.php23
-rw-r--r--plugins/menu.tikiwiki.php29
3 files changed, 42 insertions, 38 deletions
diff --git a/plugins/menu.formelements.php b/plugins/menu.formelements.php
index 6791777..0424809 100644
--- a/plugins/menu.formelements.php
+++ b/plugins/menu.formelements.php
@@ -6,7 +6,7 @@
* @abstract implements javascript menu using form elements
* @author william@elan.net
* copied copied from menu.suckerfish.php originally by xing
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
* @package nexus
* @subpackage plugins
*/
@@ -18,20 +18,22 @@ global $gNexusSystem;
define( 'NEXUS_PLUGIN_GUID_FORMELEMENTSMENU', 'formelements' );
$pluginParams = array(
- 'write_cache_function' => 'writeFormMenuCache',
- 'description' => 'Menus using form elements',
- 'web_link' => '',
+ 'auto_activate' => FALSE,
+ 'write_cache_function' => 'write_form_menu_cache',
+ 'title' => 'Formelements menu',
+ 'description' => 'Menus using form elements',
+ 'web_link' => '',
'browser_requirements' => 'This menu should work in all browsers that support javascript',
- 'edit_label' => 'Menus using form elements',
- 'menu_types' => array(
+ 'edit_label' => 'Menus using form elements',
+ 'include_js_in_head' => '/nexus/plugins/menu.formelements.js',
+ 'plugin_type' => 'nexus_plugin',
+ 'menu_types' => array(
'sdd' => array( 'label' => 'Standard DropDown', 'note' => 'drop-down menu using select with menu name on top' ),
- 'qdd' => array( 'label' => 'Quick DropDown', 'note' => 'drop-down menu using select with menu name in drop-down select box'),
- 's3' => array( 'label' => '3-Line Box', 'note' => 'select menu with 3 lines showing' ),
- 's5' => array( 'label' => '5-Line Box', 'note' => 'select menu with 5 lines showing' ),
- 'sal' => array( 'label' => 'Full Text Box', 'note' => 'select menu with all menu items showing' ),
+ 'qdd' => array( 'label' => 'Quick DropDown', 'note' => 'drop-down menu using select with menu name in drop-down select box'),
+ 's3' => array( 'label' => '3-Line Box', 'note' => 'select menu with 3 lines showing' ),
+ 's5' => array( 'label' => '5-Line Box', 'note' => 'select menu with 5 lines showing' ),
+ 'sal' => array( 'label' => 'Full Text Box', 'note' => 'select menu with all menu items showing' ),
),
- 'plugin_type' => NEXUS_HTML_PLUGIN,
- 'include_js_in_head' => '/nexus/plugins/menu.formelements.js',
);
$gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_FORMELEMENTSMENU, $pluginParams );
@@ -42,7 +44,7 @@ $gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_FORMELEMENTSMENU, $pluginParams
* @return number of errors encountered
* @public
*/
-function writeFormMenuCache( $pMenuHash ) {
+function write_form_menu_cache( $pMenuHash ) {
global $gBitSmarty;
$menu_name = preg_replace( "/ +/", "_", trim( $pMenuHash->mInfo['title'] ) );
$menu_name = strtolower( $menu_name );
diff --git a/plugins/menu.suckerfish.php b/plugins/menu.suckerfish.php
index 0c62d4b..354bed5 100644
--- a/plugins/menu.suckerfish.php
+++ b/plugins/menu.suckerfish.php
@@ -5,7 +5,7 @@
*
* @abstract creates a simple &lt;ul&gt; and &lt;li&gt; based list of items
* @author xing@synapse.plus.com
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
* @package nexus
* @subpackage plugins
*/
@@ -18,18 +18,19 @@ global $gNexusSystem;
define( 'NEXUS_PLUGIN_GUID_SUCKERFISH', 'suckerfish' );
$pluginParams = array(
- 'write_cache_function' => 'writeSuckerfishCache',
- 'description' => 'Sophisticated and flexible CSS driven dropdown menus',
- 'web_link' => '<a class="external" href="http://www.htmldog.com/articles/suckerfish/">Sons of Suckerfish Menus</a>',
+ 'auto_activate' => TRUE,
+ 'write_cache_function' => 'write_suckerfish_cache',
+ 'title' => 'Suckerfish Menus',
+ 'description' => 'Sophisticated and flexible CSS driven dropdown menus',
+ 'web_link' => '<a class="external" href = "http: // www.htmldog.com/articles/suckerfish/">Sons of Suckerfish Menus</a>',
'browser_requirements' => 'Many modern browsers support suckerfish menus inherently using CSS. MSIE requires javascript to be ON for them to work.',
- 'edit_label' => 'CSS based menus',
- 'menu_types' => array(
- 'nor' => array( 'label' => 'Normal', 'note' => 'Nested list of menu items using "ul" and "li" HTML tags.' ),
- 'ver' => array( 'label' => 'Vertical', 'note' => 'Vertical dropdown menu that usually resides in one of the side modules.' ),
+ 'edit_label' => 'CSS based menus',
+ 'plugin_type' => 'nexus_plugin',
+ 'menu_types' => array(
+ 'nor' => array( 'label' => 'Normal', 'note' => 'Nested list of menu items using "ul" and "li" HTML tags.' ),
+ 'ver' => array( 'label' => 'Vertical', 'note' => 'Vertical dropdown menu that usually resides in one of the side modules.' ),
'hor' => array( 'label' => 'Horizontal', 'note' => 'Horizontal menu which you can use to insert in or replace the top menu bar.' ),
),
- 'plugin_type' => NEXUS_HTML_PLUGIN,
- 'include_js_in_head' => FALSE,
);
$gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_SUCKERFISH, $pluginParams );
@@ -39,7 +40,7 @@ $gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_SUCKERFISH, $pluginParams );
* @param $pMenuHash full menu hash
* @return full menu string ready for printing (key serves as cache file path)
*/
-function writeSuckerfishCache( $pMenuHash ) {
+function write_suckerfish_cache( $pMenuHash ) {
global $gBitSmarty;
$menu_name = preg_replace( "/ +/", "_", trim( $pMenuHash->mInfo['title'] ) );
$menu_name = strtolower( $menu_name );
diff --git a/plugins/menu.tikiwiki.php b/plugins/menu.tikiwiki.php
index 9a9b679..193add5 100644
--- a/plugins/menu.tikiwiki.php
+++ b/plugins/menu.tikiwiki.php
@@ -4,7 +4,7 @@
*
* @abstract creates a javascript expandable menu
* @author xing@synapse.plus.com
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
* @package nexus
* @subpackage plugins
*/
@@ -17,21 +17,22 @@ global $gNexusSystem;
define( 'NEXUS_PLUGIN_GUID_TIKIWIKI', 'tikiwiki' );
$pluginParams = array(
- 'write_cache_function' => 'writeTikiWikiCache',
- 'description' => 'expandable menu reminiscent of the tikiwiki menu',
- 'web_link' => '<a class="external" href="http://www.tikiwiki.org">TikiWiki</a>',
+ 'auto_activate' => TRUE,
+ 'write_cache_function' => 'write_tikiwiki_cache',
+ 'title' => 'TikiWiki menus',
+ 'description' => 'expandable menu reminiscent of the tikiwiki menu',
+ 'web_link' => '<a class="external" href = "http: // www.tikiwiki.org">TikiWiki</a>',
'browser_requirements' => 'Most browsers that support javascript should support these menus.',
- 'edit_label' => 'TikiWiki menus',
- 'menu_types' => array(
- 'heo' => array( 'label' => 'head expands - open', 'note' => 'Head item serves merely as container and clicking on it will expand the underlying items (initial setting is open).' ),
- 'iho' => array( 'label' => 'head expands (with icon) - open', 'note' => 'Head item serves merely as container and clicking on it will expand the underlying items (initial setting is open). Displays an icon along with it.' ),
- 'hec' => array( 'label' => 'head expands - closed', 'note' => 'Initial setting is closed.' ),
+ 'edit_label' => 'TikiWiki menus',
+ 'plugin_type' => 'nexus_plugin',
+ 'menu_types' => array(
+ 'heo' => array( 'label' => 'head expands - open', 'note' => 'Head item serves merely as container and clicking on it will expand the underlying items (initial setting is open).' ),
+ 'iho' => array( 'label' => 'head expands (with icon) - open', 'note' => 'Head item serves merely as container and clicking on it will expand the underlying items (initial setting is open). Displays an icon along with it.' ),
+ 'hec' => array( 'label' => 'head expands - closed', 'note' => 'Initial setting is closed.' ),
'ihc' => array( 'label' => 'head expands (with icon) - closed', 'note' => 'Initial setting is closed. Displays an icon along with it.' ),
- 'ieo' => array( 'label' => 'icon expands - open', 'note' => 'Menu head item serves as link and there is an icon to expand the menu (initial setting is open).' ),
- 'iec' => array( 'label' => 'icon expands - closed', 'note' => 'Initial setting is closed.' ),
+ 'ieo' => array( 'label' => 'icon expands - open', 'note' => 'Menu head item serves as link and there is an icon to expand the menu (initial setting is open).' ),
+ 'iec' => array( 'label' => 'icon expands - closed', 'note' => 'Initial setting is closed.' ),
),
- 'plugin_type' => NEXUS_HTML_PLUGIN,
- 'include_js_in_head' => FALSE,
);
$gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_TIKIWIKI, $pluginParams );
@@ -41,7 +42,7 @@ $gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_TIKIWIKI, $pluginParams );
* @param $pMenuHash full menu hash
* @return full menu string ready for printing (key serves as cache file path)
*/
-function writeTikiWikiCache( $pMenuHash ) {
+function write_tikiwiki_cache( $pMenuHash ) {
global $gBitSmarty;
$menu_name = preg_replace( "/ +/", "_", trim( $pMenuHash->mInfo['title'] ) );
$menu_name = strtolower( $menu_name );