Blame view

frontend/views/text/index.php 847 Bytes
193ead1b   Administrator   big commti
1
  <?php
8ccb4b63   Administrator   big commti
2
3
  use common\models\Page;
  use frontend\widgets\Seo;
193ead1b   Administrator   big commti
4
  use yii\widgets\Breadcrumbs;
8ccb4b63   Administrator   big commti
5
6
7
8
  
  /**
   * @var $text Page
   */
193ead1b   Administrator   big commti
9
10
11
  ?>
  <?php
  $this->title = $text->meta_title;
8ccb4b63   Administrator   big commti
12
13
14
15
16
  $this->params[ 'seo' ][ Seo::H1] = !empty($category->h1) ?$text->h1: $text->title ;
  $this->params[ 'seo' ][ Seo::TITLE] = !empty($text->meta_title)? $text->meta_title : $text->title;
  $this->params[ 'seo' ][ Seo::DESCRIPTION] = !empty($text->meta_description)? $text->meta_description : '';
  $this->params[ 'seo' ][ Seo::SEO_TEXT] =!empty($text->seo_text)? $text->seo_text : '';
  
193ead1b   Administrator   big commti
17
18
19
20
21
22
23
  $this->registerMetaTag(['name' => 'description', 'content' => $text->meta_description]);
  $this->registerMetaTag(['name' => 'keywords', 'content' => $text->meta_keywords]);
  ?>
  
  <div class="container">
  
      <div class="content">
8ccb4b63   Administrator   big commti
24
  <h1><?=  Seo::widget(['row'=> Seo::H1])?></h1>
193ead1b   Administrator   big commti
25
26
27
  <?=$text->body;?>
          </div>
  </div>