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; ?>

title?>

content?>