コード例 #1
0
ファイル: InCss.php プロジェクト: apalette/ingo
 protected static function _displayMinify($css)
 {
     if (count($css) > 0) {
         $files = array();
         foreach ($css as $k => $v) {
             $files[] = $v['href'];
         }
         echo '<link type="text/css" rel="stylesheet" href="' . InRequest::getWebroot() . IN_MINIFIER . '?f=' . implode(',', $files) . '" />';
     }
 }
コード例 #2
0
ファイル: InTheme.php プロジェクト: apalette/ingo
 public function __construct()
 {
     if (defined('IN_TEMPLATE_DEFAULTS')) {
         $config = unserialize(IN_TEMPLATE_DEFAULTS);
         foreach ($config as $i => $v) {
             $this->{$i} = $v;
         }
     }
     $this->_vars['webroot'] = InRequest::getWebroot();
 }
コード例 #3
0
ファイル: InProject.php プロジェクト: apalette/ingo
 public function redirect($path)
 {
     header("Location:" . (InRequest::getWebroot() . $path));
     die;
 }
コード例 #4
0
ファイル: InJs.php プロジェクト: apalette/ingo
 protected static function _displayMinify($js)
 {
     if (count($js) > 0) {
         echo '<script type="text/javascript" src="' . InRequest::getWebroot() . IN_MINIFIER . '?f=' . implode(',', $js) . '"></script>';
     }
 }