-
Notifications
You must be signed in to change notification settings - Fork 5
/
boot.php
39 lines (32 loc) · 1.17 KB
/
boot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @var rex_addon $this
*/
if (rex::isBackend() && rex::getUser() && !rex::isSetup()) {
if (rex_addon::get('metainfo')->isAvailable() || rex_addon::get('structure')->isAvailable()) {
rex_view::addCssFile($this->getAssetsUrl('style.css'));
rex_view::addJsFile($this->getAssetsUrl('script.js'));
}
// Hide startarticles
structure_tweaks_hide_startarticle::init();
// Hide category functions
structure_tweaks_hide_category_functions::init();
// Hide categories
structure_tweaks_hide_categories::init();
// Split categories
structure_tweaks_category_splitter::init();
// load settings page
$page = $this->getProperty('page');
$page['subpages']['settings'] = ['title' => $this->i18n('structure_tweaks_page_settings')];
$this->setProperty('page', $page);
// Move meta infos
if (rex_string::versionCompare(rex::getVersion(), '5.10.0-dev', '<')) {
if ($this->getConfig('move_meta_info_page')) {
structure_tweaks_move_metainfo::init();
}
} else {
if ($this->getConfig('move_meta_info_to_tab')) {
structure_tweaks_move_metainfo_to_tab::init();
}
}
}