request->get('page'); $addtpage = $page?". Страница ($page)":''; $url = str_replace( '/news/', '/video/', $topic->getUrl(true) ); $this->params['breadcrumbs'] = [ [ "text"=>"Видео.amic", "url"=>"/video" ] ]; $this->params['breadcrumbs'][] = [ "text"=>$topic->title, "url"=>"/video/".$url ]; $this->title = $topic->title; Yii::$app->og->title = $topic->title.$addtpage; Yii::$app->og->description = $topic->description?:'Лента видео - '.Yii::$app->og->description.$addtpage; Yii::$app->og->og_title = strip_tags(str_replace( '"',""",$topic->title)); Yii::$app->og->og_description = strip_tags(str_replace( '"',""",Yii::$app->og->description)); $url = str_replace( '/news/', '/video/', $topic->getUrl(true) ); Yii::$app->og->canonical = $url; Yii::$app->og->og_url = $url; if( file_exists(\Yii::getAlias('@webroot').$topic->image->url) ){ Yii::$app->og->og_image = $topic->image->url; } Yii::$app->og->og_type = "website"; jsonLD::addAmicORG(); $i = 1; foreach($this->params['breadcrumbs'] as $el){ jsonLD::addBreadcrumb($i, $el['url'], $el['text']); $i++; } ?>