Example #1
0
<!--Sidebar-->
<div class="col-md-3 sidebar right-sidebar">

    <!-- Search Widget -->
    <div class="widget widget-search">
        <form class="search-form" action="#" data-url="<?php 
echo \frontend\modules\article\models\Article::getSearchUrl();
?>
">
            <input type="search" placeholder="<?php 
echo Yii::t('app', 'Enter Keywords');
?>
..." />
            <button class="search-btn" type="submit"><i class="icon-search-1"></i></button>
            <a href="#"></a>
        </form>
    </div>


    <?php 
echo \frontend\widgets\popularPosts\PopularPostsWidget::widget();
?>


    <?php 
echo \frontend\widgets\tags\TagsWidget::widget();
?>

</div>
<!--End sidebar-->
Example #2
0
<?php

/**
 * @var $tags array
 */
?>
<div class="post-tags-list">
    <?php 
foreach ($tags as $tag) {
    ?>
        <a href="<?php 
    echo \frontend\modules\article\models\Article::getSearchUrl(['query' => $tag]);
    ?>
"><?php 
    echo $tag;
    ?>
</a>
    <?php 
}
?>
</div>