示例#1
0
        <?php 
echo FeaturedMemeWidget::widget(['meme' => $mostPopularMeme]);
?>
      </div>
    </div>

    <div id="meme-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 Memes');
?>
</h2>
      </div>
      <div class="panel-body">
        <?php 
echo MemeListWidget::widget(['memes' => $newMemes]);
?>
      </div>
    </div>


    <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]);
示例#2
0
    <div class="mbr-section__container container mbr-section__container--first">
        <div class="mbr-header mbr-header--wysiwyg row">
            <div class="col-sm-8 col-sm-offset-2">
                <h3 class="mbr-header__text">NEW MEMES</h3>

            </div>
        </div>
    </div>
</section>

<?php 
echo MemeListWidget::widget(['memes' => $newMemes, 'theme' => 'mobirise', 'sliderId' => 'slider-new-memes']);
?>

<?php 
echo EditorsPickMemeWidget::widget(['meme' => $editorMemePick, 'theme' => 'mobirise']);
?>

<section class="mbr-section" id="header3-13">
    <div class="mbr-section__container container mbr-section__container--first">
        <div class="mbr-header mbr-header--wysiwyg row">
            <div class="col-sm-8 col-sm-offset-2">
                <h3 class="mbr-header__text">NEW REPLICAS</h3>
            </div>
        </div>
    </div>
</section>

<?php 
echo MemeListWidget::widget(['memes' => $newReplicas, 'theme' => 'mobirise', 'sliderId' => 'slider-new-replicas']);