- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
<script type="text/javascript" src="{$assetsUrl}/js/controllers/news.js"></script>
<div class="breadcrumbs">
<span typeof="v:Breadcrumb" ><a href="/" style="color: #000000;">{Y::t('MainMenu', 'Главная')}</a></span> /
<span typeof="v:Breadcrumb" style="color: red;">{$this->title}</span>
</div>
<div class="news_sections">
<ul>
{assign comment ''}
{foreach from=Trololo::model()->newsTypes() key=k item=n}
{if Yii::app()->request->getParam('rubric')==$k}
{assign comment $n['comment']}
<li class="active"><span>{$n['label']}</span></li>
{else}
<li class=""><span><a href="{Yii::app()->params->languageUrl}/news/rubric/{$k}">{$n['label']}</a></span></li>
{/if}
{/foreach}
</ul>
</div>
<h1 class="page_title">{$comment}</h1>
Типичный шаблон на фреймворке.
В данном случае - Yii.
Vince 26.04.2016 15:52 # 0
M-A-X 26.04.2016 16:04 # 0
guest 26.04.2016 19:07 # 0