Skip to content

Commit

Permalink
Merge pull request #14 from skeeks-cms/master-n
Browse files Browse the repository at this point in the history
Master n
  • Loading branch information
skeeks-semenov authored Sep 9, 2019
2 parents f6e3183 + 7eb3d4b commit c13efcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/modules/cms/content-element/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
<meta itemprop="dateModified" content="<?= \Yii::$app->formatter->asDate($model->updated_at, "php:Y-m-d"); ?>"/>
<meta itemprop="genre" content="<?= $model->cmsTree->name; ?>"/>
<? if ($model->description_short) : ?>
<meta itemprop="description" content="<?= $model->description_short; ?>"/>
<meta itemprop="description" content="<?= strip_tags($model->description_short); ?>"/>
<? else : ?>
<meta itemprop="description" content="<?= \yii\helpers\StringHelper::truncate($model->description_full, 250); ?>"/>
<meta itemprop="description" content="<?= \yii\helpers\StringHelper::truncate(strip_tags($model->description_full), 250); ?>"/>
<? endif; ?>
<? if ($model->image) : ?>
<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
Expand Down

0 comments on commit c13efcb

Please sign in to comment.