コード例 #1
0
ファイル: default.php プロジェクト: tolik505/bl
<div class="widget widget-tags">
    <h4><?php 
echo Yii::t('app', 'Tags');
?>
 <span class="head-line"></span></h4>
    <div class="tagcloud">
        <?php 
echo \justinvoelker\tagging\TaggingWidget::widget(['items' => $tags, 'smallest' => 12, 'largest' => 12, 'url' => [\frontend\modules\article\models\Article::getSearchRoute()], 'urlParam' => 'query']);
?>
    </div>
</div>
コード例 #2
0
ファイル: index.php プロジェクト: VampireMe/iisns
        ?>
                            </div>
                        </div>
                    </article>
                <?php 
    }
    ?>
            <?php 
} else {
    ?>
                <div class="no-data-found">
                    <i class="glyphicon glyphicon-folder-open"></i>
                    <?php 
    echo Yii::t('app', 'No data to display.');
    ?>
                </div>
            <?php 
}
?>
        </div>
        <div class="col-xs-12 col-sm-4 col-md-4">
            <?php 
echo TaggingWidget::widget(['items' => $tags, 'url' => ['/home/post/index'], 'format' => 'ul', 'urlParam' => 'tag', 'listOptions' => ['class' => 'list-group'], 'liOptions' => ['class' => 'list-group-item']]);
?>
        </div>
        <?php 
echo InfiniteScrollPager::widget(['pagination' => $pages, 'widgetId' => '#content']);
?>
    </div>
</div>
コード例 #3
0
<?php

use justinvoelker\tagging\TaggingWidget;
?>
<div class="smartblog-default-index">
    <?php 
echo '<h3>' . $widget->title . '</h3>';
echo TaggingWidget::widget(['items' => $widget->tags, 'url' => [$widget->callbackUrl], 'urlParam' => 'tag', 'format' => 'cloud']);
?>

</div>
コード例 #4
0
ファイル: posts.php プロジェクト: AndersJing/iisns
    echo Html::a('<span class="glyphicon glyphicon-user"></span> ' . Html::encode($post['username']), ['/user/view', 'id' => $post['username']]);
    ?>
                            </address>
                        </article>
                    </div>
                    <div class="post-image col-md-3 hidden-xs">
                        <?php 
    $pattern = "/<[img|IMG].*?src=\"([^^]*?)\".*?>/";
    preg_match_all($pattern, $post['content'], $match);
    if (!empty($match[1][0])) {
        echo Html::a(Html::img($match[1][0], ['class' => 'pull-right']), ['/explore/view-post', 'id' => $post['id']], ['target' => '_blank']);
    }
    ?>
                    </div>
                </div>
                <div class="clearfix"></div>
            </section>
        <?php 
}
?>
        <?php 
echo LinkPager::widget(['pagination' => $posts['pages']]);
?>
    </div>
    <div class="col-md-3">
        <?php 
echo TaggingWidget::widget(['items' => $tags, 'url' => ['/explore/posts'], 'format' => 'ul', 'urlParam' => 'tag', 'listOptions' => ['class' => 'tag-group'], 'liOptions' => ['class' => 'tag-group-item']]);
?>
    </div>
</div>
コード例 #5
0
<?php

use justinvoelker\tagging\TaggingWidget;
echo '<h3>' . $widget->title . '</h3>';
echo TaggingWidget::widget(['items' => array_count_values(array_values(explode(',', $widget->tags))), 'url' => [$widget->callbackUrl], 'urlParam' => 'tag', 'format' => 'cloud', 'linkOptions' => ['class' => $widget->linkClass]]);