1234567891011121314151617181920212223242526272829 |
- <?php
- $this->title = $model->title_seo;
- Yii::$app->og->title =($model->title_seo)?$model->title_seo:$model->title;
- Yii::$app->og->description = ($model->description_seo && trim($model->description_seo ) <> '')?str_replace( '"', """, strip_tags($model->description_seo ) ):trim(str_replace( '"',"'",substr(strip_tags( $model->content ),0,150)))."...";
- Yii::$app->og->canonical = $model->getUrl(true);
- \Yii::$app->og->og_url = $model->getUrl(true);
- \Yii::$app->og->og_type = "article";
- \Yii::$app->og->og_title = htmlspecialchars(($model->title_seo)?strip_tags(str_replace( '"',""",$model->title_seo)):strip_tags(str_replace( '"',""",$model->title)));
- \Yii::$app->og->og_description = ($model->description_seo && trim($model->description_seo) <> '')?str_replace( '"',""",strip_tags($model->description_seo)):trim(str_replace( '"',""",substr(strip_tags( $model->content ),0,150)))."...";
- \Yii::$app->og->dtpub = date( "r", strtotime( $model->updated ) );
- \Yii::$app->og->og_image = "/img/amic-logo.svg";
- //$this->description = $model->description_seo;
- ?>
- <div class="row justify-content-md-center">
- <div class="col-md-10">
- <div id="post" class="post">
- <section class="text">
- <h1><?=$model->title?></h1>
- <?=$model->content?>
- </section>
- </div>
- </div>
- </div>
- <?
|