Ejemplo n.º 1
0
<?php

/**
 * This file belongs to the YIT Plugin Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
/**
 * Template file for embed the player youtube video
 *
 * @package Yithemes
 * @author Francesco Licandro <*****@*****.**>
 * @since 1.0.0
 */
$video_id = preg_replace('/[&|&amp;]feature=([\\w\\-]*)/', '', $video_id);
YIT_Video::youtube("id={$video_id}&width={$width}&height={$height}&echo=1");