src/Mmi/Mvc/ViewHelper/HeadLink.php
protected function _setStylesheet($href, $media = null, $prepend = false, $conditional = '')
    {
        //obliczanie timestampa
        $ts = $this->_getLocationTimestamp($href);
        //określanie parametrów
        $params = ['rel' => 'stylesheet', 'type' => 'text/css', 'href' => $ts > 0 ? $this->_getPublicSrc($href) : $href, 'ts' => $ts];
        if ($media) {
            $params['media'] = $media;
        }
        return $this->headLink($params, $prepend, $conditional);
    }
protected function _setStylesheet($href, $media = null, $prepend = false, $conditional = '')
    {
        //obliczanie timestampa
        $ts = $this->_getLocationTimestamp($href);
        //określanie parametrów
        $params = ['rel' => 'stylesheet', 'type' => 'text/css', 'href' => $ts > 0 ? $this->_getPublicSrc($href) : $href, 'ts' => $ts];
        if ($media) {
            $params['media'] = $media;
        }
        return $this->headLink($params, $prepend, $conditional);
    }
protected function _setStylesheet ( $ href , $ media = null , $ prepend = false , $ conditional = '' ) { //obliczanie timestampa $ ts = $ this -> _getLocationTimestamp ( $ href ) ; //określanie parametrów $ params = [ 'rel' => 'stylesheet' , 'type' => 'text/css' , 'href' => $ ts > 0 ? $ this -> _getPublicSrc ( $ href ) : $ href , 'ts' => $ ts ] ; if ( $ media ) { $ params [ 'media' ] = $ media ; } return $ this -> headLink ( $ params , $ prepend , $ conditional ) ; }
Dodaje styl CSS do stosu
@param string $href adres
@param string $media media
@param boolean $prepend dodaj na początku stosu
@param string $conditional warunek np. ie6
@return \Mmi\Mvc\ViewHelper\HeadLink
Dodaje styl CSS do stosu