Exemple #1
0
 public function action_index()
 {
     $this->template = View::factory('themes/' . THEMES . '/index');
     $this->template->csspath = './application/views/themes/' . THEMES . '/';
     $this->template->post_list_as_div = '';
     $this->template->smart_title = cms::factory()->smart_title();
     $this->template->mainmenu_as_ul = cms::factory()->mainmenu_as_ul();
     $this->request->response = $this->template;
 }
Exemple #2
0
 public function before()
 {
     $this->template = View::factory('media/themes/admin/template/index');
     $this->template->csspath = 'media/themes/admin/';
     $this->template->logo = URL::site() . 'media/images/logo.gif';
     $this->template->css = array(array('css' => URL::site() . 'media/themes/admin/css/ui/jquery-ui.css', 'media' => 'screen'), array('css' => URL::site() . 'media/themes/admin/css/layout.css', 'media' => 'screen'), array('css' => URL::site() . 'media/themes/admin/css/ui.tabs.css', 'media' => 'screen'));
     $this->template->script = array(array('script' => URL::site() . 'media/themes/admin/js/stuff.js'), array('script' => URL::site() . 'media/vendor/jquery/jquery-1.4.2.min.js'), array('script' => URL::site() . 'media/vendor/jquery/ui/ui.tree.js'));
     $this->template->navigation = array(array('url' => URL::site() . 'admin/home', 'nav' => '信息面板'), array('url' => URL::site() . 'admin/modules', 'nav' => '模块管理'), array('url' => URL::site() . 'admin/users', 'nav' => '用户管理'), array('url' => URL::site() . 'admin/settings', 'nav' => '设置'));
     $this->template->dialog = '';
     $this->template->post_list_as_div = '';
     $this->template->login = '******';
     $this->template->smart_title = cms::factory()->smart_title();
     $this->template->mainmenu_as_ul = cms::factory()->mainmenu_as_ul();
 }