pageName)?>
date, 'yyyy-MM-dd hh:mm:ss');
echo Yii::app()->getDateFormatter()->format('d MMMM yyyy', $timestamp);
echo ' ', Yii::t('site', 'Рубрика'), ': ';
echo CHtml::link($news->newsCategory->i18n->name, array('news/category', 'link' => $news->newsCategory->link))
?>
i18n->content ?>
gallery_id)) {
$photos = $news->galleryBehavior->getGalleryPhotos();
if (count($photos) > 0) {
?>
getUrl('small'), $photo->i18n->name),
$photo->getUrl('medium'),
array(
'rel' => 'gallery',
'data-name' => $photo->i18n->name,
'data-description' => $photo->i18n->description,
)
);
}
?>
renderPartial('//snippets/likes', array(
'url' => Yii::app()->getBaseUrl(true).Yii::app()->request->getUrl(),
));
?>
with('i18n')->findAll(array(
'condition' => 'hidden=0 and news_category_id=' . $news->news_category_id . ' and t.id <>' . $news->id,
'order' => 'date desc',
'limit'=>15,
));
if (!empty($items)) {
echo '
', Yii::t('site', 'Читать далее'), '
';
echo '
';
foreach ($items as $item) echo '- ', CHtml::link($item->i18n->name, array('news/view', 'link' => $item->link, 'node_id'=>Node::idByDataId('newsRoot', $item->newsCategory->news_root_id))), '
';
echo '
';
}
?>
renderPartial('_newsFooter');?>
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));
}
?>