public function __construct($engine) { parent::__construct($engine); if (!$this->_auth->hasIdentity()) { $this->_engine->addHttpHeader("Location: /" . $this->_router->getUrl('cms', 'auth')); exit; } $this->_cms = IndexModel::Instance(); $this->_gallery = GalleryModel::Instance(); $this->_user = UsersModel::Instance(); $this->_head->addStyleFile('jquery.ui.all.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS $this->_head->addStyleToImport('index', 'cms', 'base.css'); $this->_head->addScriptFile('jquery-ui-' . $this->_config->jqueryui . '.min.js', true, '/scripts/jquery-ui/'); // JqueryUI JS $this->_head->addScriptFile('base.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.uniform.min.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('index.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.ui.datepicker-pl.js', true, '/scripts/'); $this->_head->addScriptFile('ckeditor.js', true, '/scripts/cms/ckeditor/'); $this->_view->sidebar = $this->_view->render('modules/' . $this->_engine->getModuleName() . '/cms/templates/sidebar.tpl'); }
public function __construct($engine) { parent::__construct($engine); $session_uid = $this->_router->getItemSegments(3); // upload auth if (!$this->_auth->hasIdentity() && $this->_acl->checkSessionUid($session_uid) == false) { $this->_engine->addHttpHeader("Location: " . $this->_router->getUrl('cms', 'auth')); exit; } $this->_gallery = GalleryModel::Instance(); $this->_head->addStyleFile('jquery.ui.all.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS $this->_head->addStyleFile('jquery.ui.uniform.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS $this->_head->addStyleToImport('index', 'cms', 'base.css'); $this->_head->addStyleFile('colorbox.css', 'screen', true, '/css/'); $this->_head->addScriptFile('jquery-ui-' . $this->_config->jqueryui . '.min.js', true, '/scripts/jquery-ui/'); // JqueryUI JS $this->_head->addScriptFile('jquery.uniform.min.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.colorbox.js', true, '/scripts/'); $this->_head->addScriptFile('gallery.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('ckeditor.js', true, '/scripts/cms/ckeditor/'); $this->_head->addScriptFile('base.js', true, '/scripts/cms/'); // JqueryUI JS if ($this->_config->multi_locale == '1') { $this->_view->locale_list = $this->_function->getSiteLocaleList(); $this->_locale_codes = $this->_function->flattenArray($this->_function->getSiteLocaleList(), 'lang_code'); if (!$this->_session->lang_code) { $this->_session->lang_code = $this->_locale_codes[0]; } } $this->_view->sidebar = $this->_view->render('modules/' . $this->_engine->getModuleName() . '/cms/templates/sidebar.tpl'); }
public function __construct($engine) { parent::__construct($engine); if (!$this->_auth->hasIdentity()) { $this->engine->addHttpHeader("Location: " . $this->router->getUrl('auth')); exit; } $this->_roles = RolesModel::Instance(); $this->view->page_sidebar = $this->view->render('modules/role/sidebar.tpl'); }
public function __construct($engine) { parent::__construct($engine); $this->_cms = IndexModel::Instance(); $this->_gallery = GalleryModel::Instance(); $this->priority = array('1' => '3. Wspieranie współpracy społeczności lokalnych'); $this->topic = array('1' => '3.3. Fundusz Mikroprojektów w Euroregionie Silesia'); $this->_head->addStyleFile('style.css', 'screen', true, '/css/'); $this->_head->addStyleFile('lightgallery.css', 'screen', true, '/css/'); $this->_head->addScriptFile('base.js', true, '/scripts/'); $this->_head->addScriptFile('lightgallery.js', true, '/scripts/'); $this->_head->addScriptFile('lg-thumbnail.js', true, '/scripts/'); $this->_head->addScriptFile('lg-fullscreen.js', true, '/scripts/'); $this->_head->title = $this->_config->meta_data->title; $this->_head->keywords = $this->_config->meta_data->keywords; $this->_head->description = $this->_config->meta_data->description; }
public function __construct($engine) { parent::__construct($engine); $this->_storage = $this->_auth->getStorage(); $this->_head->addStyleFile('jquery.ui.all.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS //$this->_head->addStyleFile('jquery.ui.uniform.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS //$this->_head->addStyleFile('Aristo.css', 'screen', true, '/css/jquery-ui-aristo/'); $this->_head->addStyleToImport('index', 'cms', 'base.css'); $this->_head->addStyleToImport('auth', 'cms', 'auth.css'); $this->_head->addScriptFile('jquery-ui-' . $this->_config->jqueryui . '.min.js', true, '/scripts/jquery-ui/'); // JqueryUI JS $this->_head->addScriptFile('base.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.uniform.min.js', true, '/scripts/cms/'); // JqueryUI JS $this->_session->current_locale = $this->_config->default_locale; }
public function __construct($engine) { parent::__construct($engine); $this->_cms = IndexModel::Instance(); $this->_search = SearchModel::Instance(); $this->_head->addStyleFile('jquery.ui.all.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS $this->_head->addStyleFile('style.main.css', 'screen', true, '/css/'); $this->_head->addStyleFile('news.css', 'screen', true, '/css/'); $this->_head->addStyleFile('colorbox.css', 'screen', true, '/css/'); $this->_head->addScriptFile('base.js', true, '/scripts/'); $this->_head->addScriptFile('jquery.colorbox.js', true, '/scripts/'); $this->_head->addScriptFile('cufon-yui.js', true, '/scripts/'); $this->_head->addScriptFile('Myriad_Pro.font.js', true, '/scripts/'); $this->_head->addScriptFile('jquery.uniform.min.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->title = $this->_config->meta_data->title; $this->_head->keywords = $this->_config->meta_data->keywords; $this->_head->description = $this->_config->meta_data->description; }
public function __construct($engine) { parent::__construct($engine); if (!$this->_auth->hasIdentity()) { $this->_engine->addHttpHeader("Location: " . $this->_router->getUrl('cms', 'auth')); exit; } $this->_user = UsersModel::Instance(); $this->_cms = IndexModel::Instance(); $this->_head->addStyleFile('jquery.ui.all.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS $this->_head->addStyleToImport('index', 'cms', 'base.css'); $this->_head->addScriptFile('jquery-ui-' . $this->_config->jqueryui . '.min.js', true, '/scripts/jquery-ui/'); // JqueryUI JS $this->_head->addScriptFile('base.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.uniform.min.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('user.js', true, '/scripts/cms/'); // JqueryUI JS }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->muser = new Model_User(); }