src/Mmi/Mvc/ViewHelper/HeadLink.php
protected function _setAlternate($href, $type, $title, $media = null, $prepend = false, $conditional = '')
    {
        //określanie parametrów
        $params = ['rel' => 'alternate', 'type' => $type, 'title' => $title, 'href' => $href];
        if ($media) {
            $params['media'] = $media;
        }
        return $this->headLink($params, $prepend, $conditional);
    }
protected function _setAlternate($href, $type, $title, $media = null, $prepend = false, $conditional = '')
    {
        //określanie parametrów
        $params = ['rel' => 'alternate', 'type' => $type, 'title' => $title, 'href' => $href];
        if ($media) {
            $params['media'] = $media;
        }
        return $this->headLink($params, $prepend, $conditional);
    }
protected function _setAlternate ( $ href , $ type , $ title , $ media = null , $ prepend = false , $ conditional = '' ) { //określanie parametrów $ params = [ 'rel' => 'alternate' , 'type' => $ type , 'title' => $ title , 'href' => $ href ] ; if ( $ media ) { $ params [ 'media' ] = $ media ; } return $ this -> headLink ( $ params , $ prepend , $ conditional ) ; }
Dodaje alternate do stosu
@param string $href adres
@param string $type typ
@param string $title tytuł
@param string $media media
@param boolean $prepend dodaj na początku stosu
@param string $conditional warunek np. ie6
@return \Mmi\Mvc\ViewHelper\HeadLink
Dodaje alternate do stosu