public function __construct() { parent::__construct(); $this->config_folder = APPPATH . 'config/'; /* get them from the loader */ $this->current_settings = $this->load->settings; }
public function __construct() { parent::__construct(); /* where to save images */ $this->data_uri->public_folder('/images/content/'); /* load the categories */ $this->page->data(['category_options' => ci()->cms_category_model->catalog('id', 'name')]); }
public function __construct() { parent::__construct(); /* show current on/off status */ $this->page->data('currently', setting('register.allow registration') === TRUE ? 'On' : 'Off'); /* load library and rename it */ $this->load->library('orange_register_library', null, 'register'); }
public function editAction($id = null, $advanced = null) { if ($advanced == 'advanced' && has_access('Orange::Advanced Settings')) { $this->page->data('advanced', true); } $this->page->js('/themes/orange/assets/js/settings.min.js'); parent::editAction($id); }
public function __construct() { parent::__construct(); $this->page->data('hide_menubar', true); if (setting('register.allow registration') !== TRUE) { ci()->auth->denied(setting('register.error url')); exit(1); /* safety net */ } }
public function __construct() { parent::__construct(); $this->page->data('hide_menubar', true); /* safety bail - if we aren't even using forgot password */ if (setting('Forgot.Show Forgot Password Link') !== TRUE) { $this->auth->denied($this->controller_path); exit(1); } $this->page->data(['login_page_url' => setting('Forgot.Login Page URL')]); }
public function __construct() { parent::__construct(); if ($this->load->library_exists('plugin_colorpicker')) { $this->page->data('plugin_colorpicker', true); $this->load->library('plugin_colorpicker'); } if ($this->load->library_exists('plugin_fontawesome')) { $this->page->data('plugin_fontawesome', true); $this->load->library('plugin_fontawesome'); } }
public function __construct() { parent::__construct(); if (setting('email-templates.required') == 'plain') { ci()->page->data('plain_required', true); } if (setting('email-templates.required') == 'html') { ci()->page->data('html_required', true); } if (setting('email-templates.required') == 'plain & html') { ci()->page->data('plain_required', true); ci()->page->data('html_required', true); } $this->page->data('variables', $this->o_email_template_model->get_variables())->js('/assets/js/email_templates.js'); }
public function __construct() { parent::__construct(); $this->page->domready('$("input[name=\'name\']").keyup(function(){ $("#variable-text").val(url_title($(this).val(),"_")); });'); }
public function __construct() { parent::__construct(); $this->load->library(['plugin_sort', 'Plugin_locked_field']); $this->page->js('/assets/js/dropdown_admin.js')->css('/assets/css/dropdown_admin.css', 100); }
public function __construct() { parent::__construct(); $this->page->js('/plugins/orange-export-import/export-import.js')->css('/plugins/orange-export-import/export-import.css'); }
public function __construct() { parent::__construct(); /* initialize codemirror used on this page */ $this->codemirror->init('content'); }
public function __construct() { parent::__construct(); $this->data_uri->public_folder('/images/banners/'); $this->page->data(['category_options' => ci()->cms_category_model->catalog('id', 'name')]); }
public function __construct() { parent::__construct(); /* !todo - add ajax to validate trigger */ $this->page->css('/plugins/o-scheduler/scheduler.css')->js('/plugins/o-scheduler/scheduler.js')->js_var('serverdate', date('F d, Y H:i:s', time())); }