Version 5.0.14

This commit is contained in:
Neo committed 2025-12-19 19:17:57 -08:00
1 parent 5efe744c5f
commit dbd774b30c
364 files changed
+7048 -1377

No files matched your search

@@ -55,8 +55,10 @@ class themeeditor extends Controller
/**
* @brief Tabs array
*
* @var array <string,string>
*/
protected array $tabs = array();
protected array $tabs = [];
/**
* @brief Active tab
@@ -79,10 +81,10 @@ class themeeditor extends Controller
$this->url = $this->url->setQueryString( 'set_id', $this->theme->id );
}
$this->tabs = array(
$this->tabs = [
'settings' => 'dev_themeeditor_settings',
'categories' => 'dev_themeeditor_categories'
);
];
/* Choose active tab */
if ( isset( Request::i()->tab ) and array_key_exists( Request::i()->tab, $this->tabs ) )
@@ -96,19 +98,19 @@ class themeeditor extends Controller
}
/* Yummy free food */
Output::i()->breadcrumb = array(
array(
Output::i()->breadcrumb = [
[
Url::internal('app=core&module=customization&controller=themes'),
'menu__' . Dispatcher::i()->application->directory . '_' . Dispatcher::i()->module->key
)
);
]
];
Output::i()->breadcrumb[] = array(
Output::i()->breadcrumb[] = [
Url::internal('app=core&module=customization&controller=themeeditor&set_id=' . $this->theme->_id ),
'themeeditor_settings'
);
];
Output::i()->breadcrumb[] = array( null, $this->theme->_title );
Output::i()->breadcrumb[] = [ null, $this->theme->_title ];
parent::execute();
}
@@ -136,14 +138,14 @@ class themeeditor extends Controller
*/
protected function _manageSettings() : string
{
$table = new TableDb( 'core_theme_editor_settings', $this->url, array( array( 'setting_set_id=?', $this->theme->id ) ) );
$table = new TableDb( 'core_theme_editor_settings', $this->url, [ [ 'setting_set_id=?', $this->theme->id ] ] );
$table->include = [ 'setting_name', 'setting_type', 'setting_category_id' ];
$table->noSort = $table->include;
$table->rootButtons = [
'add' => [
'icon' => 'plus',
'title' => 'add',
'link' => $this->url->setQueryString( array( 'do' => 'form', 'subnode' => 1 ) )
'link' => $this->url->setQueryString( [ 'do' => 'form', 'subnode' => 1 ] )
]
];
@@ -172,7 +174,7 @@ class themeeditor extends Controller
*/
protected function _manageCategories() : string
{
$table = new TableDb( 'core_theme_editor_categories', $this->url, array( array( 'cat_set_id=?', $this->theme->id ) ) );
$table = new TableDb( 'core_theme_editor_categories', $this->url->setQueryString(['tab' => 'categories']), [ [ 'cat_set_id=?', $this->theme->id ] ] );
$table->include = [ 'cat_name' ];
$table->noSort = [ 'cat_name' ];
$table->langPrefix = 'themeeditor_';
@@ -180,7 +182,7 @@ class themeeditor extends Controller
'add' => [
'icon' => 'plus',
'title' => 'add',
'link' => $this->url->setQueryString( array( 'do' => 'form' ) )
'link' => $this->url->setQueryString( [ 'do' => 'form' ] )
]
];