echo $this->config->site->meta; } css::import($webRoot . 'zui/css/min.css'); css::import($themeRoot . 'common/style.css'); css::import($jsRoot . 'jquery/treeview/min.css'); /* Import customed css file if it exists. */ $siteCustomCssFile = $this->app->getDataRoot() . 'css' . DS . $this->config->site->code . DS . $this->config->template->{$this->device}->name . DS . $this->config->template->{$this->device}->theme . DS . 'style.css'; if ($this->config->multi && file_exists($siteCustomCssFile)) { css::import(sprintf($webRoot . 'data/css/%s/%s/%s/style.css?' . $this->config->template->customVersion, $config->site->code, $config->template->{$this->device}->name, $config->template->{$this->device}->theme)); } else { $customCssFile = $this->app->getDataRoot() . 'css' . DS . $this->config->template->{$this->device}->name . DS . $this->config->template->{$this->device}->theme . DS . 'style.css'; if (file_exists($customCssFile)) { css::import(sprintf($webRoot . 'data/css/%s/%s/style.css?' . $this->config->template->customVersion, $config->template->{$this->device}->name, $config->template->{$this->device}->theme)); } } js::exportConfigVars(); if ($config->debug) { js::import($jsRoot . 'jquery/min.js'); js::import($jsRoot . 'zui/min.js'); js::import($jsRoot . 'chanzhi.js'); js::import($jsRoot . 'jquery/treeview/min.js'); js::import($jsRoot . 'my.js'); } else { js::import($jsRoot . 'all.js'); } if (isset($pageCSS)) { css::internal($pageCSS); } echo isset($this->config->site->favicon) ? html::icon(json_decode($this->config->site->favicon)->webPath) : html::icon($webRoot . 'favicon.ico'); echo html::rss($this->createLink('rss', 'index', '', '', 'xml'), $config->site->name); js::set('lang', $lang->js);