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

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

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)); } ?>
 
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 = << '; if(description.length) r+=description; if(r.length) return ''+r+''; else return ''; } }); JS; $cs->registerScript('fancybox_gallery', $src); ?>