Beispiel #1
0
use frontend\widgets\VidmageListWidget;
use frontend\widgets\ShareButtonsWidget;
use yii\widgets\Pjax;
$this->title = 'Memes with Tag: ' . $tag;
$this->registerMetaTag(['name' => 'description', 'content' => Yii::t('app', 'Watch memes from vine, youtube, instagram, labeled with the tag ') . $tag]);
?>

<?php 
Pjax::begin(['enablePushState' => true, 'scrollTo' => 0]);
?>

<div class="tag-index">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h1><span class="glyphicon glyphicon-tag"></span> #<?php 
echo $tag;
?>
 <?php 
echo Yii::t('app', 'Memes');
?>
</h1>
      </div>
      <div class="panel-body no-gutter">
        <?php 
echo VidmageListWidget::widget(['vidmages' => $vidmages]);
?>
      </div>
    </div>
</div>
<?php 
Pjax::end();
Beispiel #2
0
<?php

use frontend\widgets\MemeWidget;
use frontend\widgets\VidmageListWidget;
use yii\widgets\Pjax;
$this->title = 'Origin of the meme ' . $meme;
$this->registerMetaTag(['name' => 'description', 'content' => Yii::t('app', 'Find the origin of the meme {meme} and all the replicas', ['meme' => $meme])]);
?>

<?php 
Pjax::begin(['enablePushState' => true, 'scrollTo' => 0]);
?>

<?php 
echo MemeWidget::widget(['meme' => $meme]);
?>

<?php 
echo VidmageListWidget::widget(['vidmages' => $vidmages, 'theme' => 'mobirise']);
Pjax::end();