request->get('page'); $addtpage = $page?". Страница ($page)":''; $topic = NewsTopic::find()->andWhere(['id'=>$topic_id])->one(); $this->params['breadcrumbs'] = [ [ "text"=>$topic->title, "url"=>$topic->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 = $topic->title; Yii::$app->og->og_description = Yii::$app->og->description; $url = str_replace( '/news/', '/', $topic->getUrl(true) ); Yii::$app->og->canonical = $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++; } ?>

title?>

andWhere(["show"=>"Y","active"=>1,'topic_id'=>$topic_id])->orderBy(["order"=>SORT_ASC])->all() as $topic): /** @var $topic NewsTopic */?>

title?>

getNews()->limit(3)->all(); foreach ($news as $post){ /** @var $post \app\models\front\News */ echo $this->render('archive/_archive_item',["model"=>$post]); } ?>