Esempio n. 1
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'config');
     SettingsManager::setContext('KoderHut.TemplateTokens', 'token_config');
     $this->addJs('/plugins/koderhut/templatetokens/assets/js/templatetokens.js');
 }
Esempio n. 2
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register('cms');
     /*
      * Register navigation
      */
     BackendMenu::registerCallback(function ($manager) {
         $manager->registerMenuItems('October.Cms', ['cms' => ['label' => 'cms::lang.cms.menu_label', 'icon' => 'icon-magic', 'url' => Backend::url('cms'), 'permissions' => ['cms.*'], 'order' => 10, 'sideMenu' => ['pages' => ['label' => 'cms::lang.page.menu_label', 'icon' => 'icon-copy', 'url' => 'javascript:;', 'attributes' => ['data-menu-item' => 'pages'], 'permissions' => ['cms.manage_pages'], 'counterLabel' => 'cms::lang.page.unsaved_label'], 'partials' => ['label' => 'cms::lang.partial.menu_label', 'icon' => 'icon-tags', 'url' => 'javascript:;', 'attributes' => ['data-menu-item' => 'partials'], 'permissions' => ['cms.manage_partials'], 'counterLabel' => 'cms::lang.partial.unsaved_label'], 'layouts' => ['label' => 'cms::lang.layout.menu_label', 'icon' => 'icon-th-large', 'url' => 'javascript:;', 'attributes' => ['data-menu-item' => 'layouts'], 'permissions' => ['cms.manage_layouts'], 'counterLabel' => 'cms::lang.layout.unsaved_label'], 'content' => ['label' => 'cms::lang.content.menu_label', 'icon' => 'icon-file-text-o', 'url' => 'javascript:;', 'attributes' => ['data-menu-item' => 'content'], 'permissions' => ['cms.manage_content'], 'counterLabel' => 'cms::lang.content.unsaved_label'], 'assets' => ['label' => 'cms::lang.asset.menu_label', 'icon' => 'icon-picture-o', 'url' => 'javascript:;', 'attributes' => ['data-menu-item' => 'assets'], 'permissions' => ['cms.manage_assets'], 'counterLabel' => 'cms::lang.asset.unsaved_label'], 'components' => ['label' => 'cms::lang.component.menu_label', 'icon' => 'icon-puzzle-piece', 'url' => 'javascript:;', 'attributes' => ['data-menu-item' => 'components'], 'permissions' => ['cms.manage_pages', 'cms.manage_layouts', 'cms.manage_partials']]]]]);
     });
     /*
      * Register permissions
      */
     BackendAuth::registerCallback(function ($manager) {
         $manager->registerPermissions('October.Cms', ['cms.manage_content' => ['label' => 'cms::lang.permissions.manage_content', 'tab' => 'Cms'], 'cms.manage_assets' => ['label' => 'cms::lang.permissions.manage_assets', 'tab' => 'Cms'], 'cms.manage_pages' => ['label' => 'cms::lang.permissions.manage_pages', 'tab' => 'Cms'], 'cms.manage_layouts' => ['label' => 'cms::lang.permissions.manage_layouts', 'tab' => 'Cms'], 'cms.manage_partials' => ['label' => 'cms::lang.permissions.manage_partials', 'tab' => 'Cms'], 'cms.manage_themes' => ['label' => 'cms::lang.permissions.manage_themes', 'tab' => 'Cms']]);
     });
     /*
      * Register widgets
      */
     WidgetManager::instance()->registerFormWidgets(function ($manager) {
         $manager->registerFormWidget('Cms\\FormWidgets\\Components');
     });
     /*
      * Register settings
      */
     SettingsManager::instance()->registerCallback(function ($manager) {
         $manager->registerSettingItems('October.Cms', ['theme' => ['label' => 'cms::lang.theme.settings_menu', 'description' => 'cms::lang.theme.settings_menu_description', 'category' => SettingsManager::CATEGORY_CMS, 'icon' => 'icon-picture-o', 'url' => Backend::URL('cms/themes'), 'order' => 200], 'maintenance_settings' => ['label' => 'cms::lang.maintenance.settings_menu', 'description' => 'cms::lang.maintenance.settings_menu_description', 'category' => SettingsManager::CATEGORY_CMS, 'icon' => 'icon-plug', 'class' => 'Cms\\Models\\MaintenanceSettings', 'order' => 400]]);
     });
     /*
      * Register components
      */
     ComponentManager::instance()->registerComponents(function ($manager) {
         $manager->registerComponent('Cms\\Classes\\ViewBag', 'viewBag');
     });
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     $this->addCss('/modules/system/assets/css/updates.css', 'core');
     BackendMenu::setContext('October.System', 'system', 'updates');
     SettingsManager::setContext('October.System', 'updates');
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('Responsiv.Currency', 'currencies');
     $this->addJs('/plugins/responsiv/currency/assets/js/currency-list.js');
 }
Esempio n. 5
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->addJs('/plugins/renatio/backupmanager/assets/js/backup.js');
     BackendMenu::setContext('Renatio.BackupManager', 'backupmanager', 'backups');
     SettingsManager::setContext('Renatio.BackupManager', 'settings');
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('Responsiv.Pay', 'types');
     GatewayManager::createPartials();
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('RainLab.Translate', 'locales');
     $this->addJs('/plugins/rainlab/translate/assets/js/locales.js');
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $this->pageTitle = 'xeor.yandexservicesauth::lang.settings.menu_label';
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('Xeor.YandexServicesAuth', 'settings');
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('RainLab.Sitemap', 'definitions');
     $this->addJs('/modules/backend/assets/js/october.treeview.js', 'core');
     $this->addJs('/plugins/rainlab/sitemap/assets/js/sitemap-definitions.js');
 }
Esempio n. 10
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->addCss('/modules/cms/assets/css/october.theme-selector.css', 'core');
     $this->pageTitle = 'cms::lang.theme.settings_menu';
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('October.Cms', 'theme');
 }
Esempio n. 11
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register('backend');
     /*
      * Register widgets
      */
     WidgetManager::instance()->registerFormWidgets(function ($manager) {
         $manager->registerFormWidget('Backend\\FormWidgets\\CodeEditor', ['label' => 'Code editor', 'code' => 'codeeditor']);
         $manager->registerFormWidget('Backend\\FormWidgets\\RichEditor', ['label' => 'Rich editor', 'code' => 'richeditor']);
         $manager->registerFormWidget('Backend\\FormWidgets\\FileUpload', ['label' => 'File uploader', 'code' => 'fileupload']);
         $manager->registerFormWidget('Backend\\FormWidgets\\Relation', ['label' => 'Relationship', 'code' => 'relation']);
         $manager->registerFormWidget('Backend\\FormWidgets\\DatePicker', ['label' => 'Date picker', 'code' => 'datepicker']);
         $manager->registerFormWidget('Backend\\FormWidgets\\TimePicker', ['label' => 'Time picker', 'code' => 'timepicker']);
         $manager->registerFormWidget('Backend\\FormWidgets\\ColorPicker', ['label' => 'Color picker', 'code' => 'colorpicker']);
         $manager->registerFormWidget('Backend\\FormWidgets\\DataGrid', ['label' => 'Data Grid', 'code' => 'datagrid']);
         // @deprecated if year >= 2016
         $manager->registerFormWidget('Backend\\FormWidgets\\DataTable', ['label' => 'Data Table', 'code' => 'datatable']);
         $manager->registerFormWidget('Backend\\FormWidgets\\RecordFinder', ['label' => 'Record Finder', 'code' => 'recordfinder']);
         $manager->registerFormWidget('Backend\\FormWidgets\\Repeater', ['label' => 'Repeater', 'code' => 'repeater']);
     });
     /*
      * Register navigation
      */
     BackendMenu::registerCallback(function ($manager) {
         $manager->registerMenuItems('October.Backend', ['dashboard' => ['label' => 'backend::lang.dashboard.menu_label', 'icon' => 'icon-dashboard', 'url' => Backend::url('backend'), 'permissions' => ['backend.access_dashboard'], 'order' => 1]]);
     });
     /*
      * Register settings
      */
     SettingsManager::instance()->registerCallback(function ($manager) {
         $manager->registerSettingItems('October.Backend', ['branding' => ['label' => 'backend::lang.branding.menu_label', 'description' => 'backend::lang.branding.menu_description', 'category' => SettingsManager::CATEGORY_SYSTEM, 'icon' => 'icon-paint-brush', 'class' => 'Backend\\Models\\BrandSettings', 'order' => 500], 'editor' => ['label' => 'backend::lang.editor.menu_label', 'description' => 'backend::lang.editor.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-code', 'url' => Backend::URL('backend/editorpreferences'), 'order' => 600, 'context' => 'mysettings'], 'backend_preferences' => ['label' => 'backend::lang.backend_preferences.menu_label', 'description' => 'backend::lang.backend_preferences.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-laptop', 'class' => 'Backend\\Models\\BackendPreferences', 'order' => 500, 'context' => 'mysettings'], 'myaccount' => ['label' => 'backend::lang.myaccount.menu_label', 'description' => 'backend::lang.myaccount.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-user', 'url' => Backend::URL('backend/users/myaccount'), 'order' => 400, 'context' => 'mysettings', 'keywords' => 'backend::lang.myaccount.menu_keywords'], 'access_logs' => ['label' => 'backend::lang.access_log.menu_label', 'description' => 'backend::lang.access_log.menu_description', 'category' => SettingsManager::CATEGORY_LOGS, 'icon' => 'icon-lock', 'url' => Backend::url('backend/accesslogs'), 'permissions' => ['backend.access_admin_logs'], 'order' => 800]]);
     });
     /*
      * Register permissions
      */
     BackendAuth::registerCallback(function ($manager) {
         $manager->registerPermissions('October.Backend', ['backend.access_dashboard' => ['label' => 'system::lang.permissions.view_the_dashboard', 'tab' => 'system::lang.permissions.name'], 'backend.manage_users' => ['label' => 'system::lang.permissions.manage_other_administrators', 'tab' => 'system::lang.permissions.name']]);
     });
     /*
      * Register mail templates
      */
     MailTemplate::registerCallback(function ($template) {
         $template->registerMailTemplates(['backend::mail.invite' => 'Invitation for newly created administrators.', 'backend::mail.restore' => 'Password reset instructions for backend-end administrators.']);
     });
     /*
      * Register asset bundles
      */
     CombineAssets::registerCallback(function ($combiner) {
         $combiner->registerBundle('~/modules/backend/assets/less/controls.less');
         $combiner->registerBundle('~/modules/backend/assets/less/october.less');
         $combiner->registerBundle('~/modules/backend/assets/js/october.js');
         $combiner->registerBundle('~/modules/backend/assets/js/vendor/vendor.js');
         $combiner->registerBundle('~/modules/backend/widgets/table/assets/js/build.js');
         $combiner->registerBundle('~/modules/backend/formwidgets/datepicker/assets/js/build.js');
         $combiner->registerBundle('~/modules/backend/formwidgets/richeditor/assets/less/richeditor.less');
         $combiner->registerBundle('~/modules/backend/formwidgets/richeditor/assets/js/build.js');
     });
 }
Esempio n. 12
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->addCss('/modules/backend/formwidgets/codeeditor/assets/css/codeeditor.css', 'core');
     $this->addJs('/modules/backend/formwidgets/codeeditor/assets/js/build-min.js', 'core');
     $this->addJs('/modules/backend/assets/js/preferences/preferences.js', 'core');
     BackendMenu::setContext('October.System', 'system', 'mysettings');
     SettingsManager::setContext('October.Backend', 'preferences');
 }
Esempio n. 13
0
 public function __construct()
 {
     parent::__construct();
     SettingsManager::setContext('Mohsin.Txt', 'robots');
     BackendMenu::setContext('October.System', 'system', 'settings');
     if (!Setting::get('use_robots')) {
         $this->enabled = false;
     }
 }
Esempio n. 14
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('Klubitus.Calendar', 'calendar', 'import');
     SettingsManager::setContext('Klubitus.Calendar', 'settings');
     $this->vars['importEnabled'] = $this->importEnabled = (bool) CalendarSettings::get('facebook_import_enabled');
     $this->vars['importUrl'] = $this->importUrl = CalendarSettings::get('facebook_import_url');
     $this->vars['importUser'] = $this->importUser = UserModel::find(CalendarSettings::get('facebook_import_user_id'));
 }
 public function __construct()
 {
     parent::__construct();
     $this->addJs('/modules/system/assets/js/updates/updates.js', 'core');
     $this->addCss('/modules/system/assets/css/updates/updates.css', 'core');
     BackendMenu::setContext('October.System', 'system', 'updates');
     SettingsManager::setContext('October.System', 'updates');
     if ($this->getAjaxHandler() == 'onExecuteStep') {
         $this->useSecurityToken = false;
     }
 }
 /**
  * Locates a setting item for a module or plugin
  */
 protected function findSettingItem($author, $plugin, $code)
 {
     $manager = SettingsManager::instance();
     $moduleOwner = $author;
     $moduleCode = $plugin;
     $item = $manager->findSettingItem($moduleOwner, $moduleCode);
     if (!$item) {
         $pluginOwner = $author . '.' . $plugin;
         $pluginCode = $code;
         $item = $manager->findSettingItem($pluginOwner, $pluginCode);
     }
     return $item;
 }
Esempio n. 17
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->addCss('/modules/cms/assets/css/october.theme-selector.css', 'core');
     $this->pageTitle = 'cms::lang.theme.settings_menu';
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('October.Cms', 'theme');
     /*
      * Enable AJAX for Form widgets
      */
     if (post('mode') == 'import') {
         $this->makeImportFormWidget($this->findThemeObject())->bindToController();
     }
 }
Esempio n. 18
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     parent::register('backend');
     /*
      * Register widgets
      */
     WidgetManager::instance()->registerFormWidgets(function ($manager) {
         $manager->registerFormWidget('Backend\\FormWidgets\\CodeEditor', ['label' => 'Code editor', 'alias' => 'codeeditor']);
         $manager->registerFormWidget('Backend\\FormWidgets\\RichEditor', ['label' => 'Rich editor', 'alias' => 'richeditor']);
         $manager->registerFormWidget('Backend\\FormWidgets\\FileUpload', ['label' => 'File uploader', 'alias' => 'fileupload']);
         $manager->registerFormWidget('Backend\\FormWidgets\\Relation', ['label' => 'Relationship', 'alias' => 'relation']);
         $manager->registerFormWidget('Backend\\FormWidgets\\Datepicker', ['label' => 'Date picker', 'alias' => 'datepicker']);
         $manager->registerFormWidget('Backend\\FormWidgets\\DataGrid', ['label' => 'Data Grid', 'alias' => 'datagrid']);
         $manager->registerFormWidget('Backend\\FormWidgets\\RecordFinder', ['label' => 'Record Finder', 'alias' => 'recordfinder']);
     });
     /*
      * Register navigation
      */
     BackendMenu::registerCallback(function ($manager) {
         $manager->registerMenuItems('October.Backend', ['dashboard' => ['label' => 'backend::lang.dashboard.menu_label', 'icon' => 'icon-home', 'url' => Backend::url('backend'), 'permissions' => ['backend.access_dashboard'], 'order' => 1]]);
     });
     /*
      * Register settings
      */
     SettingsManager::instance()->registerCallback(function ($manager) {
         $manager->registerSettingItems('October.Backend', ['editor' => ['label' => 'backend::lang.editor.menu_label', 'description' => 'backend::lang.editor.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-code', 'url' => Backend::URL('backend/editorpreferences'), 'order' => 600, 'context' => 'mysettings'], 'backend_preferences' => ['label' => 'backend::lang.backend_preferences.menu_label', 'description' => 'backend::lang.backend_preferences.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-laptop', 'class' => 'Backend\\Models\\BackendPreferences', 'order' => 500, 'context' => 'mysettings'], 'myaccount' => ['label' => 'backend::lang.myaccount.menu_label', 'description' => 'backend::lang.myaccount.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-user', 'url' => Backend::URL('backend/users/myaccount'), 'order' => 400, 'context' => 'mysettings', 'keywords' => 'backend::lang.myaccount.menu_keywords'], 'access_logs' => ['label' => 'backend::lang.access_log.menu_label', 'description' => 'backend::lang.access_log.menu_description', 'category' => SettingsManager::CATEGORY_LOGS, 'icon' => 'icon-lock', 'url' => Backend::url('backend/accesslogs'), 'permissions' => ['backend.access_admin_logs'], 'order' => 800]]);
     });
     /*
      * Register permissions
      */
     BackendAuth::registerCallback(function ($manager) {
         $manager->registerPermissions('October.Backend', ['backend.access_dashboard' => ['label' => 'system::lang.permissions.view_the_dashboard', 'tab' => 'System'], 'backend.manage_users' => ['label' => 'system::lang.permissions.manage_other_administrators', 'tab' => 'System']]);
     });
     /*
      * Register mail templates
      */
     MailTemplate::registerCallback(function ($template) {
         $template->registerMailTemplates(['backend::mail.invite' => 'Invitation for newly created administrators.', 'backend::mail.restore' => 'Password reset instructions for backend-end administrators.']);
     });
 }
Esempio n. 19
0
 protected function registerBackendSettings()
 {
     SettingsManager::instance()->registerCallback(function ($manager) {
         $manager->registerSettingItems('October.Cms', ['theme' => ['label' => 'cms::lang.theme.settings_menu', 'description' => 'cms::lang.theme.settings_menu_description', 'category' => SettingsManager::CATEGORY_CMS, 'icon' => 'icon-picture-o', 'url' => Backend::URL('cms/themes'), 'permissions' => ['cms.manage_themes'], 'order' => 200], 'maintenance_settings' => ['label' => 'cms::lang.maintenance.settings_menu', 'description' => 'cms::lang.maintenance.settings_menu_description', 'category' => SettingsManager::CATEGORY_CMS, 'icon' => 'icon-plug', 'class' => 'Cms\\Models\\MaintenanceSettings', 'permissions' => ['cms.manage_themes'], 'order' => 300]]);
     });
 }
Esempio n. 20
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('RainLab.User', 'location');
 }
Esempio n. 21
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('October.System', 'mail_templates');
 }
Esempio n. 22
0
 protected function registerBackendSettings()
 {
     SettingsManager::instance()->registerCallback(function ($manager) {
         $manager->registerSettingItems('October.Backend', ['branding' => ['label' => 'backend::lang.branding.menu_label', 'description' => 'backend::lang.branding.menu_description', 'category' => SettingsManager::CATEGORY_SYSTEM, 'icon' => 'icon-paint-brush', 'class' => 'Backend\\Models\\BrandSettings', 'permissions' => ['backend.manage_branding'], 'order' => 500], 'myaccount' => ['label' => 'backend::lang.myaccount.menu_label', 'description' => 'backend::lang.myaccount.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-user', 'url' => Backend::URL('backend/users/myaccount'), 'order' => 500, 'context' => 'mysettings', 'keywords' => 'backend::lang.myaccount.menu_keywords'], 'backend_preferences' => ['label' => 'backend::lang.backend_preferences.menu_label', 'description' => 'backend::lang.backend_preferences.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-laptop', 'class' => 'Backend\\Models\\BackendPreferences', 'order' => 510, 'context' => 'mysettings'], 'editor' => ['label' => 'backend::lang.editor.menu_label', 'description' => 'backend::lang.editor.menu_description', 'category' => SettingsManager::CATEGORY_MYSETTINGS, 'icon' => 'icon-code', 'url' => Backend::URL('backend/editorpreferences'), 'order' => 520, 'context' => 'mysettings'], 'access_logs' => ['label' => 'backend::lang.access_log.menu_label', 'description' => 'backend::lang.access_log.menu_description', 'category' => SettingsManager::CATEGORY_LOGS, 'icon' => 'icon-lock', 'url' => Backend::url('backend/accesslogs'), 'permissions' => ['system.access_logs'], 'order' => 920]]);
     });
 }
Esempio n. 23
0
 public function __construct()
 {
     parent::__construct();
     \BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('eBussola.Feedback', 'channels');
 }
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('Romanov.Flashmessage', 'settings');
 }
Esempio n. 25
0
 protected function registerBackendSettings()
 {
     SettingsManager::instance()->registerCallback(function ($manager) {
         $manager->registerSettingItems('October.System', ['updates' => ['label' => 'system::lang.updates.menu_label', 'description' => 'system::lang.updates.menu_description', 'category' => SettingsManager::CATEGORY_SYSTEM, 'icon' => 'icon-cloud-download', 'url' => Backend::url('system/updates'), 'permissions' => ['system.manage_updates'], 'order' => 300], 'administrators' => ['label' => 'backend::lang.user.menu_label', 'description' => 'backend::lang.user.menu_description', 'category' => SettingsManager::CATEGORY_SYSTEM, 'icon' => 'icon-users', 'url' => Backend::url('backend/users'), 'permissions' => ['backend.manage_users'], 'order' => 400], 'mail_settings' => ['label' => 'system::lang.mail.menu_label', 'description' => 'system::lang.mail.menu_description', 'category' => SettingsManager::CATEGORY_MAIL, 'icon' => 'icon-envelope', 'class' => 'System\\Models\\MailSettings', 'permissions' => ['system.manage_mail_settings'], 'order' => 600], 'mail_templates' => ['label' => 'system::lang.mail_templates.menu_label', 'description' => 'system::lang.mail_templates.menu_description', 'category' => SettingsManager::CATEGORY_MAIL, 'icon' => 'icon-envelope-square', 'url' => Backend::url('system/mailtemplates'), 'permissions' => ['system.manage_mail_templates'], 'order' => 610], 'event_logs' => ['label' => 'system::lang.event_log.menu_label', 'description' => 'system::lang.event_log.menu_description', 'category' => SettingsManager::CATEGORY_LOGS, 'icon' => 'icon-exclamation-triangle', 'url' => Backend::url('system/eventlogs'), 'permissions' => ['system.access_logs'], 'order' => 900], 'request_logs' => ['label' => 'system::lang.request_log.menu_label', 'description' => 'system::lang.request_log.menu_description', 'category' => SettingsManager::CATEGORY_LOGS, 'icon' => 'icon-file-o', 'url' => Backend::url('system/requestlogs'), 'permissions' => ['system.access_logs'], 'order' => 910]]);
     });
 }
Esempio n. 26
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('October.Backend', 'access_logs');
 }
Esempio n. 27
0
 /**
  * My Settings controller
  */
 public function myaccount()
 {
     SettingsManager::setContext('October.Backend', 'myaccount');
     $this->pageTitle = 'backend::lang.myaccount.menu_label';
     return $this->update($this->user->id, 'myaccount');
 }
Esempio n. 28
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('RainLab.User', 'user', 'users');
     SettingsManager::setContext('RainLab.User', 'settings');
 }
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('VojtaSvoboda.LocationTown', 'locationtown');
 }
Esempio n. 30
0
 public function __construct()
 {
     parent::__construct();
     BackendMenu::setContext('October.System', 'system', 'settings');
     SettingsManager::setContext('Indikator.Plugins', 'frontend');
 }