diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
| commit | 1721544d5a71c0f3b4bc3b498893a65f4d9f1c84 (patch) | |
| tree | 6a44ae4720a0190927a836911ce28aa67604a0e5 /admin | |
| parent | 8225200c6470d1abe939ca007b5915c82c601016 (diff) | |
| download | themes-1721544d5a71c0f3b4bc3b498893a65f4d9f1c84.tar.gz themes-1721544d5a71c0f3b4bc3b498893a65f4d9f1c84.tar.bz2 themes-1721544d5a71c0f3b4bc3b498893a65f4d9f1c84.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/admin_layout_inc.php | 6 | ||||
| -rw-r--r-- | admin/admin_modules_inc.php | 4 | ||||
| -rwxr-xr-x | admin/admin_themes_manager.php | 4 | ||||
| -rw-r--r-- | admin/index.php | 2 | ||||
| -rwxr-xr-x | admin/menus.php | 34 | ||||
| -rwxr-xr-x | admin/schema_inc.php | 2 |
6 files changed, 26 insertions, 26 deletions
diff --git a/admin/admin_layout_inc.php b/admin/admin_layout_inc.php index 7f5922b..6e938c8 100755 --- a/admin/admin_layout_inc.php +++ b/admin/admin_layout_inc.php @@ -91,7 +91,7 @@ if( isset( $_REQUEST['module_id'] ) && !empty( $_REQUEST['move_module'] )) { unset( $fAssign['store'] ); } } - } + } } // this will sort the layout selection dropdown @@ -100,10 +100,10 @@ ksort( $allLayouts ); $gBitSmarty->assign( 'allLayouts', $allLayouts ); $gBitSmarty->assign( 'module_package', $_REQUEST['module_package'] ); -$layoutHash = array( +$layoutHash = [ 'layout' => $_REQUEST['module_package'], 'fallback' => false, -); +]; $editLayout = $gBitThemes->getLayout( $layoutHash ); $gBitThemes->generateModuleNames( $editLayout ); $gBitSmarty->assign( 'editLayout', $editLayout ); diff --git a/admin/admin_modules_inc.php b/admin/admin_modules_inc.php index aaeff7e..afe480d 100644 --- a/admin/admin_modules_inc.php +++ b/admin/admin_modules_inc.php @@ -3,7 +3,7 @@ require_once( '../../kernel/includes/setup_inc.php' ); -$formModuleFeatures = array( +$formModuleFeatures = [ // 'site_collapsible_modules' => array( // 'label' => 'Collapsible Modules', // 'note' => 'This allows users to collapse modules by clicking on their titles. Can be useful if you use many modules.', @@ -16,7 +16,7 @@ $formModuleFeatures = array( // 'label' => 'Show Module Controls', // 'note' => 'Displays module control buttons at the top of modules for easy placement by users.', // ), -); +]; $gBitSmarty->assign( 'formModuleFeatures',$formModuleFeatures ); if( !empty( $_REQUEST['module_settings'] )) { diff --git a/admin/admin_themes_manager.php b/admin/admin_themes_manager.php index c6d35c4..8bac717 100755 --- a/admin/admin_themes_manager.php +++ b/admin/admin_themes_manager.php @@ -1,4 +1,4 @@ -<?php +<?php require_once '../../kernel/includes/setup_inc.php'; require_once KERNEL_PKG_INCLUDE_PATH . 'simple_form_functions_lib.php'; @@ -71,4 +71,4 @@ $gBitSmarty->assign( "sampleIcons", $sampleIcons ); // load css file $gBitThemes->loadCss( THEMES_PKG_PATH.'css/admin_themes.css' ); -$gBitSystem->display( 'bitpackage:themes/admin_themes_manager.tpl', 'Themes Manager' , array( 'display_mode' => 'admin' )); +$gBitSystem->display( 'bitpackage:themes/admin_themes_manager.tpl', 'Themes Manager' , [ 'display_mode' => 'admin' ]); diff --git a/admin/index.php b/admin/index.php index 3e305fe..c0437d0 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,4 +1,4 @@ -<?php +<?php // This is not a package. header ("location: ../index.php"); diff --git a/admin/menus.php b/admin/menus.php index 181cc19..e09d815 100755 --- a/admin/menus.php +++ b/admin/menus.php @@ -9,41 +9,41 @@ require_once( KERNEL_PKG_INCLUDE_PATH."simple_form_functions_lib.php" ); //$gBitSystem->setOnloadScript('initDragDrop();'); $gBitSystem->verifyPermission( 'p_admin' ); -$formMenuSettings = array( +$formMenuSettings = [ // this feature is obsolete since we now have this in a module // 'site_top_bar' => array( // 'label' => 'Top bar menu', // 'note' => 'Here you can enable or disable the menubar at the top of the page (available in most themes). Before you disable this bar, please make sure you have some means of navigation set up to access at least the administration page.', // ), - 'site_top_bar_dropdown' => array( + 'site_top_bar_dropdown' => [ 'label' => 'Dropdown menu', 'note' => 'Use the CSS driven dropdown menus in the top bar. Compatibility and further reading can be found at <a class="external" href="http://www.htmldog.com/articles/suckerfish/dropdowns/">Suckerfish Dropdowns</a>.', - ), - 'site_hide_my_top_bar_link' => array( + ], + 'site_hide_my_top_bar_link' => [ 'label' => 'Hide "My" Link', 'note' => 'Hide the <strong>My <sitename></strong> link from users that are not logged in.', - ), -); + ], +]; $gBitSmarty->assign( 'formMenuSettings',$formMenuSettings ); -$formMenuJsSettings = array( - 'site_top_bar_js' => array( +$formMenuJsSettings = [ + 'site_top_bar_js' => [ 'label' => 'Enhance Dropdown with Javascript', 'note' => 'This small javascript will delay the menu slightly making it easier to navigate. Also you can apply below effects. Please see <a class="external" href="http://www.twinhelix.com">TwinHelix</a> for details.', - ), - 'site_top_bar_js_fade' => array( + ], + 'site_top_bar_js_fade' => [ 'label' => 'Fade Effect', 'note' => 'Fade in menu dropdown elements.', - ), - 'site_top_bar_js_swipe' => array( + ], + 'site_top_bar_js_swipe' => [ 'label' => 'Swipe Effect', 'note' => 'Sweep the menu from the top down.', - ), - 'site_top_bar_js_clip' => array( + ], + 'site_top_bar_js_clip' => [ 'label' => 'Clip Effect', 'note' => 'Similar to the swipe effect.', - ), -); + ], +]; if( !empty( $_REQUEST['menu_settings'] ) ) { foreach( array_keys( $formMenuSettings ) as $item ) { @@ -89,5 +89,5 @@ if( $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' ) ) { $gBitSmarty->assign( 'formMenuJsSettings',$formMenuJsSettings ); } -$gBitSystem->display( 'bitpackage:themes/admin_themes_menus.tpl', 'Themes Manager' , array( 'display_mode' => 'admin' )); +$gBitSystem->display( 'bitpackage:themes/admin_themes_menus.tpl', 'Themes Manager' , [ 'display_mode' => 'admin' ]); ?> diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 390e7d4..89a7085 100755 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -43,7 +43,7 @@ $gBitInstaller->registerSchemaIndexes( THEMES_PKG_NAME, $indices ); // ### Sequences $sequences = [ - 'themes_layouts_module_id_seq' => [ 'start' => 1 ] + 'themes_layouts_module_id_seq' => [ 'start' => 1 ], ]; $gBitInstaller->registerSchemaSequences( THEMES_PKG_NAME, $sequences ); |
