public function setViewport($width = 'device-width', $initial_scale = '1', $user_scalable = '', $minimum_scale = '', $maximum_scale = '')
    {
        $tag = [
            'name' => 'viewport',
            'content' => 'width=' . $width . ', initial-scale=' . $initial_scale
        ];

        if ($user_scalable) {
            $tag['content'] .= ', user-scalable=' . $user_scalable;
        }

        if ($minimum_scale) {
            $tag['content'] .= ', minimum-scale=' . $minimum_scale;
        }

        if ($maximum_scale) {
            $tag['content'] .= ', maximum_scale=' . $maximum_scale;
        }

        $this->tags['viewport'] = $tag;
    }
public function setViewport($width = 'device-width', $initial_scale = '1', $user_scalable = '', $minimum_scale = '', $maximum_scale = '')
    {
        $tag = [
            'name' => 'viewport',
            'content' => 'width=' . $width . ', initial-scale=' . $initial_scale
        ];

        if ($user_scalable) {
            $tag['content'] .= ', user-scalable=' . $user_scalable;
        }

        if ($minimum_scale) {
            $tag['content'] .= ', minimum-scale=' . $minimum_scale;
        }

        if ($maximum_scale) {
            $tag['content'] .= ', maximum_scale=' . $maximum_scale;
        }

        $this->tags['viewport'] = $tag;
    }
public function setViewport ( $ width = 'device-width' , $ initial_scale = '1' , $ user_scalable = '' , $ minimum_scale = '' , $ maximum_scale = '' ) { $ tag = [ 'name' => 'viewport' , 'content' => 'width=' . $ width . ', initial-scale=' . $ initial_scale ] ; if ( $ user_scalable ) { $ tag [ 'content' ] .= ', user-scalable=' . $ user_scalable ; } if ( $ minimum_scale ) { $ tag [ 'content' ] .= ', minimum-scale=' . $ minimum_scale ; } if ( $ maximum_scale ) { $ tag [ 'content' ] .= ', maximum_scale=' . $ maximum_scale ; } $ this -> tags [ 'viewport' ] = $ tag ; }
Sets vieport tag

@param string $width
Description of used device width
@param string $initial_scale
Initial scale factor (Default: '1')
@param string $user_scalable
@param string $minimum_scale
@param string $maximum_scale
Sets vieport tag