jQuery::addStaticStylesheet PHP Method

addStaticStylesheet() public method

Adds static stylesheet
public addStaticStylesheet ( string $file, string $ext = '.css', string $locate = 'css' )
$file string
$ext string
$locate string
    public function addStaticStylesheet($file, $ext = '.css', $locate = 'css')
    {
        //$file=$this->app->locateURL('css',$file.$ext);
        if (@$this->included[$locate . '-' . $file . $ext]++) {
            return;
        }
        if (strpos($file, 'http') !== 0 && $file[0] != '/') {
            $url = $this->app->locateURL($locate, $file . $ext);
        } else {
            $url = $file;
        }
        $this->app->template->appendHTML('js_include', '<link type="text/css" href="' . $url . '" rel="stylesheet" />' . "\n");
        return $this;
    }