summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
commit8b9137c1358fde8e4c74b05a08da8a6a86e2094b (patch)
tree4552157203fe759e8f6dc9ede6362f8ea2ead6ad /plugins
parentd8bcfdfa9987b9207acc38fc417897af45d623d8 (diff)
downloadnexus-8b9137c1358fde8e4c74b05a08da8a6a86e2094b.tar.gz
nexus-8b9137c1358fde8e4c74b05a08da8a6a86e2094b.tar.bz2
nexus-8b9137c1358fde8e4c74b05a08da8a6a86e2094b.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'plugins')
-rwxr-xr-x[-rw-r--r--]plugins/menu.formelements.js0
-rwxr-xr-xplugins/menu.formelements.php20
-rwxr-xr-xplugins/menu.suckerfish.php14
-rwxr-xr-xplugins/menu.tikiwiki.php20
4 files changed, 27 insertions, 27 deletions
diff --git a/plugins/menu.formelements.js b/plugins/menu.formelements.js
index dbf9562..dbf9562 100644..100755
--- a/plugins/menu.formelements.js
+++ b/plugins/menu.formelements.js
diff --git a/plugins/menu.formelements.php b/plugins/menu.formelements.php
index 1b4e87e..2c4d8ec 100755
--- a/plugins/menu.formelements.php
+++ b/plugins/menu.formelements.php
@@ -17,7 +17,7 @@ global $gNexusSystem;
*/
define( 'NEXUS_PLUGIN_GUID_FORMELEMENTSMENU', 'formelements' );
-$pluginParams = array(
+$pluginParams = [
'auto_activate' => false,
'write_cache_function' => 'write_form_menu_cache',
'title' => 'Formelements menu',
@@ -27,14 +27,14 @@ $pluginParams = 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' ),
- ),
-);
+ 'menu_types' => [
+ 'sdd' => [ 'label' => 'Standard DropDown', 'note' => 'drop-down menu using select with menu name on top' ],
+ 'qdd' => [ 'label' => 'Quick DropDown', 'note' => 'drop-down menu using select with menu name in drop-down select box'],
+ 's3' => [ 'label' => '3-Line Box', 'note' => 'select menu with 3 lines showing' ],
+ 's5' => [ 'label' => '5-Line Box', 'note' => 'select menu with 5 lines showing' ],
+ 'sal' => [ 'label' => 'Full Text Box', 'note' => 'select menu with all menu items showing' ],
+ ],
+];
$gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_FORMELEMENTSMENU, $pluginParams );
@@ -86,7 +86,7 @@ function write_form_menu_cache( $pMenuHash ) {
}
if ( $pMenuHash->mInfo['menu_type'] == 'qdd' ) {
$data .= '<option value="">'.$pMenuHash->mInfo['title'].'</option>' ;
- }
+ }
} else {
$data .= '>';
}
diff --git a/plugins/menu.suckerfish.php b/plugins/menu.suckerfish.php
index bbb5321..cadfe43 100755
--- a/plugins/menu.suckerfish.php
+++ b/plugins/menu.suckerfish.php
@@ -17,7 +17,7 @@ global $gNexusSystem;
// GUID should be a maximum of 16 chars
define( 'NEXUS_PLUGIN_GUID_SUCKERFISH', 'suckerfish' );
-$pluginParams = array(
+$pluginParams = [
'auto_activate' => true,
'write_cache_function' => 'write_suckerfish_cache',
'title' => 'Suckerfish Menus',
@@ -26,12 +26,12 @@ $pluginParams = array(
'browser_requirements' => 'Many modern browsers support suckerfish menus inherently using CSS.',
'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.' ),
- ),
-);
+ 'menu_types' => [
+ 'nor' => [ 'label' => 'Normal', 'note' => 'Nested list of menu items using "ul" and "li" HTML tags.' ],
+ 'ver' => [ 'label' => 'Vertical', 'note' => 'Vertical dropdown menu that usually resides in one of the side modules.' ],
+ 'hor' => [ 'label' => 'Horizontal', 'note' => 'Horizontal menu which you can use to insert in or replace the top menu bar.' ],
+ ],
+];
$gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_SUCKERFISH, $pluginParams );
diff --git a/plugins/menu.tikiwiki.php b/plugins/menu.tikiwiki.php
index a0c071d..2da342c 100755
--- a/plugins/menu.tikiwiki.php
+++ b/plugins/menu.tikiwiki.php
@@ -16,7 +16,7 @@ global $gNexusSystem;
// GUID should be a maximum of 16 chars
define( 'NEXUS_PLUGIN_GUID_TIKIWIKI', 'tikiwiki' );
-$pluginParams = array(
+$pluginParams = [
'auto_activate' => true,
'write_cache_function' => 'write_tikiwiki_cache',
'title' => 'TikiWiki menus',
@@ -25,15 +25,15 @@ $pluginParams = array(
'browser_requirements' => 'Most browsers that support javascript should support these menus.',
'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.' ),
- ),
-);
+ 'menu_types' => [
+ 'heo' => [ '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' => [ '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' => [ 'label' => 'head expands - closed', 'note' => 'Initial setting is closed.' ],
+ 'ihc' => [ 'label' => 'head expands (with icon) - closed', 'note' => 'Initial setting is closed. Displays an icon along with it.' ],
+ 'ieo' => [ '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' => [ 'label' => 'icon expands - closed', 'note' => 'Initial setting is closed.' ],
+ ],
+];
$gNexusSystem->registerPlugin( NEXUS_PLUGIN_GUID_TIKIWIKI, $pluginParams );