image; $url = ''; if( $topic instanceof \app\models\base\NewsTopic ) $url = '/news/'; if( $topic instanceof \app\models\base\Story ) $url = '/story/'; if( $topic->ext != '' ){ $ext = json_decode($topic->ext, false, JSON_THROW_ON_ERROR); if( isset( $ext->brightness ) ){ $brightness = $ext->brightness; } } ?>
> <?=htmlentities($topic->title,ENT_QUOTES)?>
cache->getOrSet("main-page-topic-widget-".$design->id,function () use ($newsDataProvider){ return \yii\widgets\ListView::widget([ "dataProvider" => $newsDataProvider, 'options' => [ 'tag' => false, 'class' => 'list-wrapper', 'id' => 'list-wrapper', ], "itemOptions"=>[ "tag"=>false ], "itemView" => "_topic_widget_item", "layout" => "{items}" ]); },60); ?>