예제 #1
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');
 }
예제 #2
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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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
 }