/** * Render <head>. * * @return string */ protected function _head() { ob_start(); ?> <head> <meta charset="<?php echo Kohana::$charset; ?> " /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Kohana::$charset; ?> " /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <title><?php echo ($this->title ? HTML::chars($this->title) . ' | ' : '') . Kohana::$config->load('site.site_name'); ?> </title> <link rel="icon" type="image/png" href="<?php echo $this->base; ?> ui/favicon.png" /> <?php echo $this->_styles(); ?> <?php echo $this->_skins(); ?> <?php echo HTML::style('ui/site.css'); ?> <?php echo HTML::script(Kohana::$environment == Kohana::PRODUCTION ? 'js/head.min.js' : 'js/head.js'); ?> <?php echo $this->head(); ?> <?php echo Ads::head(); ?> </head> <?php return ob_get_clean(); }
/** * Render <head>. * * @return string */ protected function _head() { ob_start(); ?> <head> <meta charset="<?php echo Kohana::$charset; ?> " /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Kohana::$charset; ?> " /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <title><?php echo $this->title ? HTML::chars($this->title) : Kohana::$config->load('site.site_name'); ?> </title> <link rel="icon" type="image/png" href="<?php echo $this->base; ?> ui/favicon.png" /> <?php echo HTML::style('static/css/anqh.css?_=' . filemtime('static/css/anqh.css')); ?> <?php echo HTML::style('//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css'); ?> <?php echo HTML::style('//cdnjs.cloudflare.com/ajax/libs/select2/3.4.5/select2.min.css'); ?> <?php echo HTML::style('//cdnjs.cloudflare.com/ajax/libs/select2/3.4.5/select2-bootstrap.css'); ?> <?php echo HTML::script('//cdnjs.cloudflare.com/ajax/libs/headjs/1.0.3/head.load.js'); ?> <?php echo $this->_open_graph(); ?> <?php echo Widget::get('head'); ?> <?php echo Ads::head(); ?> </head> <?php return ob_get_clean(); }