Ejemplo n.º 1
0
<?php

use common\service\CacheHelperService;
use blog\components\StaticService;
$tags = CacheHelperService::getFrontCache("tag");
$menu_list = \blog\components\BlogUtilService::blogMenu();
$project_list = $menu_list['project'];
?>
<aside class="col-md-4 sidebar">
    <div class="widget">
        <h4 class="title">搜索</h4>
        <div class="content search">
            <div class="input-group">
                <input type="text" class="form-control" id="kw"/>
                <span class="input-group-btn">
                    <button class="btn btn-default do-search" type="button" style="padding: 6px 12px;">搜索</button>
                </span>
            </div>
        </div>
    </div>
    <div class="widget">
        <h4 class="title">标签云</h4>
        <div class="content tag-cloud">
            <?php 
if ($tags) {
    ?>
                <?php 
    foreach ($tags as $_tag) {
        ?>
                    <a href="/search/do?kw=<?php 
        echo $_tag;
Ejemplo n.º 2
0
 public function actionApp()
 {
     $this->setTitle("App下载页面");
     return $this->render("app", ['list' => BlogUtilService::getChangeLog()]);
 }