Example #1
0
<?php

/** @var \app\models\PhotoCatalog $photos */
use yii\widgets\LinkPager;
$this->title = \app\models\Pages::getPage('/photo', 'meta_title');
//$this->registerMetaTag([
//    'name' => 'keywords',
//    'content' => \app\models\Pages::getPage('/photo', 'meta_keywords')
//]);
$this->registerMetaTag(['name' => 'description', 'content' => \app\models\Pages::getPage('/photo', 'meta_description')]);
?>
<div class="g w1140 main">

    <!-- menu -->
    <?php 
echo \app\components\widgets\CategoryWidget::widget(['type' => 'photo']);
?>
    <!-- menu -->

    <div class="c text-center">
        <h1 class="fs22 fw400 opensans" style="margin-bottom: 5px;">
            <?php 
echo \app\models\Pages::getPage('/photo', 'title');
?>
        </h1>
    </div>

    <!-- intro text -->
    <div class="c-c">
        <div class="c text-center">
            <p><?php 
Example #2
0
/** @var \app\models\Video $videos */
/** @var \app\models\Category $category */
?>

<?php 
$this->title = $category->meta_title;
$this->registerMetaTag(['name' => 'description', 'content' => $category->meta_description]);
?>
<div class="g w1140 main">
<!-- main -->

<div class="c-c">

    
    <?php 
echo \app\components\widgets\CategoryWidget::widget([]);
?>
    <!-- intro text -->
    <div class="c text-center">
        <h1 class="fs22 fw400 opensans"><?php 
echo $category->name;
?>
</h1>
        <p class="text-center"><?php 
echo $category->description;
?>
</p>
    </div>
    <!-- intro text -->

</div>