Ejemplo n.º 1
0
    <div id="editor-pick-meme" class="panel panel-primary">
      <div class="panel-heading">
        <h3><span class="panel-title glyphicon glyphicon-certificate glyphicon-1-5x"></span> <?php 
echo Yii::t('app', "Editor's Pick");
?>
</h3>
      </div>
      <div class="panel-body no-gutter">
        <?php 
echo FeaturedMemeWidget::widget(['meme' => $editorMemePick]);
?>
      </div>
    </div>

    <div id="replica-list" class="panel panel-info">
      <div class="panel-heading">
        <h2><span class="panel-title glyphicon glyphicon-time glyphicon-1-5x"></span> <?php 
echo Yii::t('app', 'New Replicas');
?>
</h2>
      </div>
      <div class="panel-body">
        <?php 
echo ReplicaListWidget::widget(['replicas' => $newReplicas]);
?>
      </div>
    </div>

</div>
<?php

use frontend\widgets\FeaturedMemeWidget;
use frontend\widgets\ReplicaListWidget;
?>

<?php 
foreach ($memeList as $meme) {
    ?>
    <h2><?php 
    echo $meme;
    ?>
</h2>
    <div id="most-popular-meme" class="row no-gutter">
        <?php 
    echo FeaturedMemeWidget::widget(['meme' => $meme]);
    ?>
    </div>
    <div class="row">
        <?php 
    echo ReplicaListWidget::widget(['replicas' => $meme->getAllNm('notOriginMemeVidmages', 'vidmage')]);
    ?>
    </div>
<?php 
}