public static function video($mixWidth = null, $height = null)
    {

        $defParam = array(
            'width' => 560,
            'height' => 315,
            'src' => '//www.youtube.com/embed/0af00UcTO-c',
            'frameborder' => 0,
            'allowfullscreen' => 'true'
        );

        $param = array();

        if (is_integer($mixWidth)) {
            $param['width'] = $mixWidth;
        }

        if (!$height && is_integer($height)) {
            $param['height'] = $height;
        }

        $param = array_merge($defParam, $param);

        return '<iframe ' . Html::attributes($param) . '></iframe>';

    }
public static function video($mixWidth = null, $height = null)
    {

        $defParam = array(
            'width' => 560,
            'height' => 315,
            'src' => '//www.youtube.com/embed/0af00UcTO-c',
            'frameborder' => 0,
            'allowfullscreen' => 'true'
        );

        $param = array();

        if (is_integer($mixWidth)) {
            $param['width'] = $mixWidth;
        }

        if (!$height && is_integer($height)) {
            $param['height'] = $height;
        }

        $param = array_merge($defParam, $param);

        return '<iframe ' . Html::attributes($param) . '></iframe>';

    }
public static function video ( $ mixWidth = null , $ height = null ) { $ defParam = array ( 'width' => 560 , 'height' => 315 , 'src' => '//www.youtube.com/embed/0af00UcTO-c' , 'frameborder' => 0 , 'allowfullscreen' => 'true' ) ; $ param = array ( ) ; if ( is_integer ( $ mixWidth ) ) { $ param [ 'width' ] = $ mixWidth ; } if ( ! $ height && is_integer ( $ height ) ) { $ param [ 'height' ] = $ height ; } $ param = array_merge ( $ defParam , $ param ) ; return '<iframe ' . Html :: attributes ( $ param ) . '></iframe>' ; }
Generate a Youtube video iframe

@param null $mixWidth
@param null $height
@return string
Generate a Youtube video iframe