コード例 #1
0
 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');
 }
コード例 #2
0
 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');
 }
コード例 #3
0
 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;
 }