video_url, $matches);
if (count($matches) > 0) {
$videoId = $matches[0];
$url = 'http://www.youtube.com/embed/' . $videoId . '?feature=player_detailpage';
} else {
$url = $item->video_url;
}
echo '
![]()
';
echo CHtml::link('', $url, array('class' => 'play-btn iframe', 'rel' => 'video-gallery', 'id' => 'video' . $currentVideo));
echo '
';
?>
i18n->name, $url, array('onclick' => '$("#video' . $currentVideo . '").click(); return false;'));
?>
date, 'yyyy-MM-dd hh:mm:ss');
echo Yii::app()->getDateFormatter()->format('d MMMM yyyy', $timestamp);
echo ' ', Yii::t('site', 'Рубрика'), ': ';
echo CHtml::link($item->newsCategory->i18n->name, array('news/show', 'link' => $item->newsCategory->link))
?>
'iframe button', 'onclick' => '$("#video' . $currentVideo . '").click(); return false;'));
?>