コード例 #1
0
ファイル: Assets.php プロジェクト: NegoCore/core
 /**
  * Get all CSS assets, sorted by dependencies
  *
  * @return bool|string
  */
 public static function all_css()
 {
     if (empty(self::$_css)) {
         return false;
     }
     $assets = array();
     foreach (Assets::_sort(self::$_css) as $handle => $data) {
         $assets[] = Assets::get_css($handle);
     }
     return implode("\n    ", $assets);
 }
コード例 #2
0
ファイル: core.php プロジェクト: astar3086/studio_logistic
 /**
  * Get all CSS assets, sorted by dependencies
  *
  * @return   string   Asset HTML
  */
 public static function all_css()
 {
     if (empty(Assets::$css)) {
         return FALSE;
     }
     foreach (Assets::$css as $handle => $data) {
         $assets[] = Assets::get_css($handle);
     }
     return implode("\n", $assets);
 }