Merge branch 'maint/7.0'
[ninja.git] / application / views / css_header.php
blobca216261b3529f029bc3baf81a630f920fd0ed70
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
3 if (!empty($css)) {
4 foreach ($css as $css_file) {
5 if (stripos($css_file,'.php') == true)
6 echo '<link type="text/css" rel="stylesheet" href="'.str_replace('index.php/','',url::site($css_file)).'" />'."\n";
7 else if ($css_file[0] === '/' || strpos($css_file, 'http') === 0)
8 echo '<link type="text/css" rel="stylesheet" href="'.$css_file.'" />';
9 else
10 echo html::stylesheet($css_file);