Beispiel #1
0
 public function before()
 {
     // Выполняем функцию родительского класса
     parent::before();
     //var_dump($this->styles)
     $this->template->styles = $this->getStyles($this->styles);
 }
Beispiel #2
0
 public function before()
 {
     if (!Auth::instance()->logged_in('admin')) {
         HTTP::redirect('login');
     }
     parent::before();
     $this->template->styles = array('/media/css/admin.css', 'media/css/jquery.fancybox.css');
     $this->template->scripts = array('/media/js/jquery.js', '/media/js/MultiFile.pack.js', '/media/js/upload.js', '/media/js/jquery.fancybox.pack.js', '/media/js/demo.js');
 }
Beispiel #3
0
 function before()
 {
     parent::before();
     $this->template->styles = array("media/css/style.css", 'media/css/jquery.fancybox.css');
     $this->template->scripts = array('/media/js/jquery.js', '/media/js/jquery.fancybox.pack.js', '/media/js/demo.js');
     $mod_search = module::load('search');
     $menu_top = module::load('menutop');
     $this->template->menu_top = array($menu_top);
     $this->template->search = array($mod_search);
 }
Beispiel #4
0
 public function before()
 {
     parent::before();
     $category = new Model_Category('tree');
     //ВИДЖЕТЫ ДЛЯ ВСЕХ СТРАНИЦ САЙТА!
     $categoryId = 0;
     $this->widgets = $this->getWidgets($categoryId);
     if (is_array($this->widgets)) {
         foreach ($this->widgets as $position => $widget) {
             $this->template->{$position} = $widget;
         }
     }
 }
Beispiel #5
0
 public function before()
 {
     parent::before();
     $category = new Model_Category('tree');
     //ВИДЖЕТЫ ДЛЯ ВСЕХ СТРАНИЦ САЙТА!
     $categoryId = 0;
     $this->widgets = $this->getWidgets($categoryId);
     if (is_array($this->widgets)) {
         foreach ($this->widgets as $position => $widget) {
             $this->template->{$position} = $widget;
         }
     }
     $old_styles = $this->template->styles;
     array_unique($this->styles);
     $new_styles = array_merge($this->styles, $old_styles);
     $this->template->styles = $new_styles;
     $old_scripts = $this->template->scripts;
     array_push($old_scripts, 'http://api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU');
     $this->template->scripts = $old_scripts;
     //Виджеты
     //$menu = Request::factory('widgets/menu')->execute();
     //Вывод в шаблон
     //$this->template->block_left = array($menu);
 }
Beispiel #6
0
 public function before()
 {
     parent::before();
     $this->setCSS('registration')->setJS('registration')->setJS('lib')->setDescription('Форма для регистрации пользователей!')->setKeyWords('регистация, пользователей, на сайте, форма')->setTitle('Форма для регистрации пользователей')->initMainParams();
     $this->setRegView();
 }
Beispiel #7
0
 public function before()
 {
     // Выполняем функцию родительского класса
     parent::before();
 }
Beispiel #8
0
 public function before()
 {
     parent::before();
     $this->setCSS('registration')->setJS('lib')->setJS('registration')->setDescription('Форма авторизаци')->setKeyWords('Форма авторизаци')->setTitle('Форма авторизаци')->initMainParams();
     $this->setAuthView();
 }
Beispiel #9
0
 public function before()
 {
     parent::before();
     $this->articleRepository = new Repositories_ArticleRepository();
 }