예제 #1
0
 /**
  * The alias of helper function htmlIe() for simple using in views.
  * @param string $file
  * @param string $version
  * @param string $folder
  * @return View_Helper_Html
  */
 public function ie($file, $version = '*', $folder = 'css')
 {
     print htmlIe(htmlCSS($file, $folder), $version);
     return $this;
 }
예제 #2
0
/**
 * Prints or returns a HTML css include tag. First param is the file name.
 * Second param is the directory where css file is located.
 * If the first param is an array, function prints all an array elements
 * as javascript include tags.
 * @param string $css
 * @param string $folder
 * @return string
 */
function htmlCSS($css, $folder = '')
{
    if (is_array($css)) {
        foreach ($css as $file => $folder) {
            print htmlCSS($file, $folder);
        }
        return '';
    }
    if (empty($folder)) {
        return '';
    }
    return '<link rel="stylesheet" type="text/css" href="' . exido_fix_path($folder) . $css . '.css" />' . EXIDO_EOL;
}