Esempio n. 1
0
 /**
  * Display the main page of themes
  */
 public function index()
 {
     $tabs = array('select' => array('id' => 'admin-themes-select-tab', 'title' => Lang::get($this->_plugin . '.theme-tab-select-title'), 'content' => $this->listThemes()), 'customize' => array('id' => 'admin-themes-customize-tab', 'title' => Lang::get($this->_plugin . '.theme-tab-basic-custom-title'), 'content' => $this->customize()), 'css' => array('id' => 'admin-themes-css-tab', 'title' => Lang::get($this->_plugin . '.theme-tab-advanced-custom-title'), 'content' => $this->css()), 'medias' => array('id' => 'admin-themes-medias-tab', 'title' => Lang::get($this->_plugin . '.theme-tab-medias-title'), 'content' => $this->medias()), 'menu' => array('id' => 'admin-themes-menu-tab', 'title' => Lang::get($this->_plugin . '.theme-tab-menu-title'), 'content' => MenuController::getInstance()->index()));
     $this->addJavaScript(Plugin::current()->getJsUrl('themes.js'));
     $this->addJavaScript(Plugin::current()->getJsUrl('menu-manager.js'));
     $this->addCss(Plugin::current()->getCssUrl('themes.less'));
     return View::make(Plugin::current()->getView("themes.tpl"), array('tabs' => $tabs));
 }