renderPartial('//snippets/headerGallery'); ?>

pageName);?>

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)) ?>

i18n->short;?>

'iframe button', 'onclick' => '$("#video' . $currentVideo . '").click(); return false;')); ?>
widget( 'LinkPager', array( 'pages' => $pages, 'cssFile' => false, 'nextPageLabel' => Yii::t('site', 'Следующая'), 'prevPageLabel' => Yii::t('site', 'Предыдущая'), 'header' => false, //Yii::t('site', 'Страницы:'), )); ?>

renderPartial('//snippets/sidebarContacts');?> renderPartial('_photofact', array('galleryIds' => array($category->photofact_gallery_id))); } else { /** @var $cats NewsCategory[] */ $cats = NewsCategory::model()->findAll(); $galleryIds = array(); foreach($cats as $cat){ if(isset($cat->photofact_gallery_id)) $galleryIds[]=$cat->photofact_gallery_id; } $this->renderPartial('_photofact', array('galleryIds' => $galleryIds)); } ?>
 
renderPartial('_newsFooter');?>
clientScript; $cs->registerCoreScript('jquery'); //$cs->registerScriptFile(Yii::app()->baseUrl . '/js/fancybox/jquery.mousewheel-3.0.4.pack.js'); $cs->registerScriptFile(Yii::app()->baseUrl . '/js/fancybox/jquery.fancybox-1.3.4.pack.js'); $cs->registerCssFile(Yii::app()->baseUrl . '/js/fancybox/jquery.fancybox-1.3.4.css'); $src = <<registerScript('fancybox_gallery', $src); ?>