/** * 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); }
/** * 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); }