Beispiel #1
0
 public function actionReplace()
 {
     $post_list = Posts::find()->where(['status' => 1])->orderBy("id desc")->all();
     if ($post_list) {
         $domain_pic1 = \Yii::$app->params['domains']['pic1'];
         foreach ($post_list as $_post_info) {
             $this->echoLog("post_id:{$_post_info['id']}");
             $tmp_content = $_post_info['content'];
             preg_match_all('/<\\s*img\\s+[^>]*?src\\s*=\\s*(\'|\\")(.*?)\\1[^>]*?\\/?\\s*>/i', $tmp_content, $match_img);
             if ($match_img && count($match_img) == 3) {
                 foreach ($match_img[2] as $_img_src) {
                     if (stripos($_img_src, $domain_pic1) === false) {
                         continue;
                     }
                     $tmp_parse = parse_url($_img_src);
                     if ($tmp_parse && isset($tmp_parse['path'])) {
                         $tmp_url = GlobalUrlService::buildPic1Static($tmp_parse['path'], ['w' => 600]);
                         $tmp_content = str_replace($_img_src, $tmp_url, $tmp_content);
                     }
                 }
                 $_post_info->content = $tmp_content;
                 $_post_info->update(0);
             }
         }
     }
 }
Beispiel #2
0
 public function actionInfo($id)
 {
     $id = intval($id);
     if (!$id) {
         return $this->goLibraryHome();
     }
     $book_info = Book::find()->where(['id' => $id, 'status' => 1])->one();
     if (!$book_info) {
         return $this->goLibraryHome();
     }
     $data = [];
     $author = json_decode($book_info['creator'], true);
     $data['name'] = DataHelper::encode($book_info['name']);
     $data['title'] = DataHelper::encode($book_info['subtitle']);
     $data['summary'] = nl2br(DataHelper::encode($book_info['summary']));
     $data['publish_date'] = $book_info['publish_date'];
     $data['author'] = implode(" ~ ", $author);
     $data['tags'] = explode(",", $book_info['tags']);
     $data['read_status_info'] = Constant::$read_desc[$book_info['read_status']];
     $data['image_url'] = GlobalUrlService::buildPic1Static($book_info['image_url'], ['w' => 500]);
     $data['isbn'] = $book_info['isbn'];
     $prev_info = Book::find()->where(["<", "id", $id])->andWhere(['status' => 1])->orderBy("id desc")->one();
     $next_info = Book::find()->where([">", "id", $id])->andWhere(['status' => 1])->orderBy("id asc")->one();
     $this->setTitle($book_info['subtitle']);
     return $this->render("detail", ["info" => $data, "prev_info" => $prev_info, "next_info" => $next_info]);
 }
Beispiel #3
0
 public function actionSign()
 {
     /*初始化用户*/
     $woid = $this->get("woid", '');
     $wx_user_info = ['avatar' => GlobalUrlService::buildStaticUrl("/images/wap/no_avatar.png"), 'nickname' => '匿名'];
     if ($woid) {
         $wx_user_info['nickname'] = "微信用户" . substr($woid, -10);
         $date_now = date("Y-m-d H:i:s");
         $bind_info = UserOpenidUnionid::findOne(['other_openid' => strval($woid)]);
         if (!$bind_info) {
             $unique_name = md5($woid);
             $user_info = User::findOne(['unique_name' => $unique_name]);
             if (!$user_info) {
                 $model_user = new User();
                 $model_user->nickname = "微信用户" . substr($woid, -10);
                 $model_user->unique_name = $unique_name;
                 $model_user->updated_time = $date_now;
                 $model_user->created_time = $date_now;
                 $model_user->save(0);
                 $user_info = $model_user;
             }
             $model_bind = new UserOpenidUnionid();
             $model_bind->uid = $user_info['uid'];
             $model_bind->openid = $woid;
             $model_bind->unionid = '';
             $model_bind->other_openid = $woid;
             $model_bind->updated_time = $date_now;
             $model_bind->created_time = $date_now;
             $model_bind->save(0);
         }
     }
     return $this->render("sign", ["user_info" => $wx_user_info]);
 }
Beispiel #4
0
 public function actionIndex()
 {
     $p = intval($this->get("p", 1));
     if (!$p) {
         $p = 1;
     }
     $data = [];
     $pagesize = 20;
     $query = RichMedia::find()->where(['status' => [0, 1]]);
     $total_count = $query->count();
     $offset = ($p - 1) * $pagesize;
     $rich_list = $query->orderBy("id desc")->offset($offset)->limit($pagesize)->all();
     $page_info = DataHelper::ipagination(["total_count" => $total_count, "page_size" => $pagesize, "page" => $p, "display" => 10]);
     if ($rich_list) {
         $idx = 1;
         $domains = Yii::$app->params['domains'];
         foreach ($rich_list as $_rich_info) {
             $tmp_small_pic_url = GlobalUrlService::buildPic1Static($_rich_info['src_url'], ['h' => 100]);
             $tmp_big_pic_url = GlobalUrlService::buildPic1Static($_rich_info['src_url'], ['w' => 600]);
             $data[] = ['idx' => $idx, 'id' => $_rich_info['id'], 'small_src_url' => $tmp_small_pic_url, 'big_src_url' => $tmp_big_pic_url, 'src_url' => $tmp_small_pic_url, 'thumb_url' => $_rich_info['thumb_url'] ? $_rich_info['thumb_url'] : $domains['static'] . "/wx/video_cover.jpg", 'type' => $_rich_info['type'], 'address' => $_rich_info['address'], 'status' => $_rich_info['status'], 'status_info' => $this->status_desc[$_rich_info['status']], 'created' => $_rich_info['created_time']];
             $idx++;
         }
     }
     return $this->render("index", ["data" => $data, "page_info" => $page_info]);
 }
Beispiel #5
0
 public function actionBuild()
 {
     $batch_data = [];
     $date_now = date("Y-m-d H:i:s");
     $this->echoLog("=========start build({$date_now})==========");
     /*build blog*/
     $post_list = Posts::find()->where(['status' => 1])->orderBy("id asc")->all();
     if ($post_list) {
         foreach ($post_list as $_post_info) {
             $tmp_search_key = $_post_info['title'] . "#@#" . $_post_info['tags'];
             $batch_data[] = ["title" => $_post_info['title'], "description" => strip_tags($_post_info['content']), "book_id" => 0, "post_id" => $_post_info['id'], "search_key" => $tmp_search_key, "image" => $_post_info['image_url']];
         }
     }
     $book_list = Book::find()->where(['status' => 1])->orderBy("id asc")->all();
     if ($book_list) {
         foreach ($book_list as $_book_info) {
             $tmp_search_key = $_book_info['subtitle'] . "#@#" . $_book_info['tags'];
             $batch_data[] = ["title" => $_book_info['subtitle'], "description" => $_book_info['summary'], "book_id" => $_book_info['id'], "post_id" => 0, "search_key" => $tmp_search_key, "image" => GlobalUrlService::buildPic1Static($_book_info['image_url'], ['w' => 600])];
         }
     }
     if ($batch_data && count($batch_data) > 0) {
         //批量插入速度快
         foreach ($batch_data as $_item) {
             if (!$_item['post_id'] && !$_item['book_id']) {
                 $this->echoLog("skip");
                 continue;
             }
             $query = IndexSearch::find();
             if ($_item['post_id']) {
                 $query->where(['post_id' => $_item['post_id']]);
             } else {
                 $query->where(['book_id' => $_item['book_id']]);
             }
             $tmp_info = $query->one();
             if ($tmp_info) {
                 $model_index_search = $tmp_info;
             } else {
                 $model_index_search = new IndexSearch();
                 $model_index_search->created_time = $date_now;
             }
             $tmp_description = str_replace("&nbsp;", " ", $_item['description']);
             $model_index_search->title = $_item['title'];
             $model_index_search->description = $tmp_description;
             $model_index_search->book_id = $_item['book_id'];
             $model_index_search->post_id = $_item['post_id'];
             $model_index_search->search_key = $_item['search_key'];
             $model_index_search->image = $_item['image'];
             $model_index_search->updated_time = $date_now;
             $model_index_search->save(0);
         }
     }
 }
Beispiel #6
0
 public static function includeStatic($type, $path, $depend)
 {
     $release_version = defined("RELEASE_VERSION") ? RELEASE_VERSION : "20150731141600";
     if (stripos($path, "?") !== false) {
         $path = $path . "&version={$release_version}";
     } else {
         $path = $path . "?version={$release_version}";
     }
     if ($type == "css") {
         Yii::$app->getView()->registerCssFile(GlobalUrlService::buildStaticUrl($path), ['depends' => $depend]);
     } else {
         Yii::$app->getView()->registerJsFile(GlobalUrlService::buildStaticUrl($path), ['depends' => $depend]);
     }
 }
Beispiel #7
0
 public function actionLogin()
 {
     $this->setWeixinConfig();
     $type = $this->get("type", "snsapi_base");
     $referer = trim($this->get("referer", GlobalUrlService::buildWapUrl("/default/index")));
     $redirect_uri = GlobalUrlService::buildBlogUrl("/weixin/oauth/token");
     /*微信url特殊参数处理*/
     $referer = str_replace("from=groupmessage", "", $referer);
     $referer = str_replace("isappinstalled=0", "", $referer);
     $referer = str_replace("connect_redirect=", "", $referer);
     $appid = $this->appid;
     $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$redirect_uri}&response_type=code&scope={$type}&state={$referer}#wechat_redirect";
     return $this->redirect($url);
 }
Beispiel #8
0
 private function search($params = [])
 {
     $p = isset($params['p']) ? $params['p'] : 1;
     $offset = ($p - 1) * $this->page_size;
     $query = RichMedia::find()->where(['status' => 1, 'type' => 'image']);
     $rich_media_list = $query->orderBy("id desc")->offset($offset)->limit($this->page_size)->all();
     $data = [];
     if ($rich_media_list) {
         foreach ($rich_media_list as $_rich_info) {
             $data[] = ['id' => $_rich_info['id'], 'type' => $_rich_info['type'], 'src_url' => GlobalUrlService::buildPic1Static($_rich_info['src_url']), 'address' => $_rich_info['address'], 'switch' => \Yii::$app->params['switch']['cdn']['pic1']];
         }
     }
     return $data;
 }
Beispiel #9
0
 private function getAlbum()
 {
     $dir_path = \Yii::$app->params['upload']['pic3'];
     $album_list = [];
     if ($handle = opendir($dir_path)) {
         while (false !== ($entry = readdir($handle))) {
             if (in_array($entry, $this->ignore)) {
                 continue;
             }
             $album_list[$entry] = ["name" => $entry, 'switch' => \Yii::$app->params['switch']['cdn']['pic3'] ? 1 : 0, "cover_src_url" => GlobalUrlService::buildPicStaticUrl("pic3", "/{$entry}/1.jpg"), "info_url" => UrlService::buildWapUrl("/gallery/list", ['album' => $entry])];
         }
         closedir($handle);
     }
     return $album_list;
 }
Beispiel #10
0
 private function search($params = [])
 {
     $p = isset($params['p']) ? $params['p'] : 1;
     $offset = ($p - 1) * $this->page_size;
     $query = Book::find()->where(['status' => 1]);
     $books = $query->orderBy("id desc")->offset($offset)->limit($this->page_size)->all();
     $data = [];
     if ($books) {
         foreach ($books as $_book) {
             $tmp_author = @json_decode($_book['creator'], true);
             $tmp_author = $tmp_author ? $tmp_author[0] : '&nbsp;';
             if (stripos($tmp_author, "(") !== false) {
                 $tmp_author = substr($tmp_author, 0, stripos($tmp_author, "("));
             }
             if (stripos($tmp_author, "(") !== false) {
                 $tmp_author = substr($tmp_author, 0, stripos($tmp_author, "("));
             }
             $data[] = ["title" => DataHelper::encode($_book['subtitle']), 'author' => $tmp_author ? $tmp_author : "&nbsp;", 'imager_url' => GlobalUrlService::buildPic1Static($_book['image_url']), 'view_url' => UrlService::buildWapUrl("/library/info", ["id" => $_book["id"]])];
         }
     }
     return $data;
 }
Beispiel #11
0
 public function actionIndex()
 {
     $p = intval($this->get("p", 1));
     if (!$p) {
         $p = 1;
     }
     $data = [];
     $pagesize = 20;
     $query = Images::find();
     $total_count = $query->count();
     $offset = ($p - 1) * $pagesize;
     $image_list = $query->orderBy("id desc")->offset($offset)->limit($pagesize)->all();
     $page_info = DataHelper::ipagination(["total_count" => $total_count, "page_size" => $pagesize, "page" => $p, "display" => 10]);
     if ($image_list) {
         $idx = 1;
         foreach ($image_list as $_image_info) {
             $tmp_small_pic_url = GlobalUrlService::buildPicStatic($_image_info['filepath'], ['h' => 100, 'w' => 200], $_image_info['bucket']);
             $tmp_big_pic_url = GlobalUrlService::buildPicStatic($_image_info['filepath'], ['w' => 600], $_image_info['bucket']);
             $data[] = ['idx' => $idx, 'id' => $_image_info['id'], 'small_pic_url' => $tmp_small_pic_url, 'big_pic_url' => $tmp_big_pic_url];
             $idx++;
         }
     }
     return $this->render("index", ["data" => $data, "page_info" => $page_info, "page_url" => "/file/index"]);
 }
Beispiel #12
0
 public function actionQrcode()
 {
     $qr_text = $this->get("qr_text", GlobalUrlService::buildBlogUrl("/"));
     header('Content-type: image/png');
     QrCode::png($qr_text, false, Enum::QR_ECLEVEL_H, 5, 0, false);
     exit;
 }
Beispiel #13
0
 public function registerAssetFiles($view)
 {
     $this->css = [GlobalUrlService::buildStaticUrl("/amazeui/css/amazeui.min.css"), 'css/mate/common.css'];
     $this->js = [GlobalUrlService::buildStaticUrl("/jquery/jquery.min.js"), GlobalUrlService::buildStaticUrl("/amazeui/js/amazeui.min.js"), GlobalUrlService::buildStaticUrl("/amazeui/js/amazeui.ie8polyfill.min.js"), GlobalUrlService::buildStaticUrl("/amazeui/js/amazeui.widgets.helper.min.js"), 'js/mate/common.js', "js/access.js"];
     parent::registerAssetFiles($view);
 }
Beispiel #14
0
 public function registerAssetFiles($view)
 {
     $this->css = [GlobalUrlService::buildStaticUrl("/bootstrap/css/bootstrap.min.css"), GlobalUrlService::buildStaticUrl("/bootstrap/css/font-awesome.min.css"), "css/screen.min.css"];
     $this->js = [GlobalUrlService::buildStaticUrl("/jquery/jquery.min.js"), GlobalUrlService::buildStaticUrl("/bootstrap/js/bootstrap.min.js"), "js/public.js", "js/access.js"];
     parent::registerAssetFiles($view);
 }
Beispiel #15
0
                    </a>
                    <div class="media-body">
                        <h4 class="media-heading">MySQL数据库安装、优化</h4>
                        <p>
                            安装MySQL数据库、优化
                        </p>
                        <p style="color: red;">
                            费用:30/次
                        </p>
                    </div>
                </li>
                <hr/>
                <li class="media">
                    <a class="media-left" href="#">
                        <img  src="<?php 
echo GlobalUrlService::buildStaticPic("/images/web/business/server.jpg", ['w' => 64, 'h' => 64]);
?>
" style="width: 64px; height: 64px;">
                    </a>
                    <div class="media-body">
                        <h4 class="media-heading">服务器运维服务</h4>
                        <p>
                            提供服务器运维服务,服务器运维安全,内部环境运维,主动监控云服务器运行情况,监控服务端口运行情况CPU服务,内存流量的使用出现问题处理
                        </p>
                        <p style="color: red;">
                            费用:面议
                        </p>
                    </div>
                </li>
			</ul>
		</div>
Beispiel #16
0
	<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
		<div class="doc-example">
			<ul class="am-list am-list-border">
				<li>
					<a href="<?php 
echo GlobalUrlService::buildWapUrl("/wechat_wall/index");
?>
">
						<i class="am-icon-weixin am-icon-fw"></i> 微信墙
					</a>
				</li>
				<li>
					<a href="<?php 
echo GlobalUrlService::buildWapUrl("/demo/h5_upload");
?>
">
						<i class="am-icon-camera am-icon-fw"></i> H5拍照上传
					</a>
				</li>
				<li>
					<a href="<?php 
echo GlobalUrlService::buildWapUrl("/demo/scan_code");
?>
">
						<i  class="am-icon-qrcode am-icon-fw"></i> 生成条形码和二维码
					</a>
				</li>
			</ul>
		</div>
	</div>
</div>
Beispiel #17
0
<?php

use admin\components\StaticService;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic("/js/login/index.js", \admin\assets\AdminAsset::className());
?>
<div class="row">
    <div class="row-in login-form">
        <div class="columns-24 centered">
            <div class="avatar-1">
                <img src="<?php 
echo GlobalUrlService::buildStaticPic("/images/admin/my.jpg", ['w' => 80, 'h' => 80]);
?>
" alt="100*100">
            </div>
        </div>
        <div class="columns-24 mg-t10">
            <div class="columns-9">
                <label class="label-name inline">用户名:</label>
            </div>
            <div class="columns-6">
                <div class="input-wrap">
                    <input name="mobile" type="text" class="input-1" placeholder="请输入登录用户名" value="">
                </div>
            </div>
        </div>
        <div class="columns-24">
            <div class="columns-9">
                <label class="label-name inline">密码:</label>
            </div>
            <div class="columns-6">
Beispiel #18
0
 public function actionBook()
 {
     $p = intval($this->get("p", 1));
     $offset = ($p - 1) * $this->page_size;
     $query = Book::find()->where(['status' => 1]);
     $books = $query->orderBy("id desc")->offset($offset)->limit($this->page_size)->all();
     $data = [];
     if ($books) {
         foreach ($books as $_book) {
             $data[] = ['id' => $_book['id'], 'image_url' => GlobalUrlService::buildPic1Static($_book['image_url']), 'title' => $_book['subtitle']];
         }
     }
     return $this->renderJSON(['list' => $data]);
 }
Beispiel #19
0
							<img src="<?php 
echo GlobalUrlService::buildBlogUrl("/default/qrcode", ['qr_text' => $sms]);
?>
" alt=""/>
							<h3 class="am-thumbnail-caption am-text-center">短信</h3>
						</div>
					</div>
					<div class="am-u-sm-12 am-u-md-12 am-u-lg-4">
						<div class="am-thumbnail">
							<img src="<?php 
echo GlobalUrlService::buildBlogUrl("/default/qrcode", ['qr_text' => $tel]);
?>
" alt=""/>
							<h3 class="am-thumbnail-caption am-text-center">电话</h3>
						</div>
					</div>
					<div class="am-u-sm-12 am-u-md-12 am-u-lg-4 am-u-end" >
						<div class="am-thumbnail">
							<img src="<?php 
echo GlobalUrlService::buildBlogUrl("/default/qrcode", ['qr_text' => $vcard]);
?>
" alt=""/>
							<h3 class="am-thumbnail-caption am-text-center">名片</h3>
						</div>
					</div>
				</div>
			</div>
		</section>
	</div>

</div>
Beispiel #20
0
 public function actionFind()
 {
     header('Access-Control-Allow-Origin:*');
     $mapping = [["icon" => GlobalUrlService::buildStaticUrl("/app/cjdbq/kweather.png"), "title" => '天气', "url" => 'https://m.baidu.com/s?word=天气预报'], ["icon" => GlobalUrlService::buildStaticUrl("/app/cjdbq/package.png"), "title" => '快递查询', "url" => 'http://m.kuaidi100.com/uc/index.html'], ["icon" => GlobalUrlService::buildStaticUrl("/app/cjdbq/happy_face.png"), "title" => '爆笑图片', "url" => 'http://m.budejie.com/pic/'], ["icon" => GlobalUrlService::buildStaticUrl("/app/cjdbq/video.png"), "title" => '爆笑视频', "url" => 'http://m.budejie.com/video/'], ["icon" => GlobalUrlService::buildStaticUrl("/app/cjdbq/smiling_girl.png"), "title" => '最新笑话', "url" => 'http://m.budejie.com/text/'], ["icon" => GlobalUrlService::buildStaticUrl("/images/icon.png"), "title" => '编程浪子', "url" => 'http://m.vincentguo.cn']];
     return $this->renderJSON($mapping);
 }
Beispiel #21
0
?>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-text-center">
    <div id="music-pic" style="background-image: url(<?php 
echo $info["cover_image"];
?>
);">
        <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/game/music/play.png");
?>
" class="btn_play">
        <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/game/music/pause.png");
?>
" class="btn_pause">
        <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/game/music/refresh.png");
?>
" class="btn_refresh">
    </div>
    <p>
        <?php 
echo $info["song_title"];
?>
<br/>
        <?php 
echo $info["song_author"];
?>
    </p>
</div>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-text-center" style="height: 200px;
    overflow: hidden;">
Beispiel #22
0
?>
<header class="main-header" style="background-image: url(<?php 
echo GlobalUrlService::buildStaticUrl("/images/web/banner_bg.jpg");
?>
)">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/web/xiuxing.png");
?>
" title="上善若水,人生就是修行"/>
            </div>
            <div class="col-sm-12">
                <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/web/banner.png");
?>
" title="人类进化不易">
            </div>
        </div>
    </div>
</header>
<!-- end header -->

<!-- start navigation -->
<nav class="main-navigation">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="collapse navbar-collapse" id="main-menu">
                    <ul class="menu">
Beispiel #23
0
                </a>
            </li>
            <li>
                <a href="<?php 
echo UrlService::buildMateUrl("/contact/index");
?>
" class="am-btn-warning">
                    <span class="am-icon-paper-plane"></span>
                    <span class="am-navbar-label">我</span>
                </a>
            </li>
        </ul>
    </div>
    <div data-am-widget="gotop" class="am-gotop am-gotop-fixed" style="display: none;">
        <a href="#top" title="回到顶部">
            <span class="am-gotop-title">回到顶部</span>
            <i class="am-gotop-icon am-icon-chevron-up"></i>
        </a>
    </div>
    <input type="hidden" id="access_domain" value="<?php 
echo GlobalUrlService::buildBlogUrl("/");
?>
">
</div>
<?php 
$this->endBody();
?>
</body>
</html>
<?php 
$this->endPage();
Beispiel #24
0
<?php

use common\service\GlobalUrlService;
$wx_urls = ["my" => GlobalUrlService::buildStaticUrl("/images/weixin/my.jpg"), "imguowei" => GlobalUrlService::buildStaticUrl("/images/weixin/imguowei_888.jpg"), "starzone" => GlobalUrlService::buildStaticUrl("/images/weixin/mystarzone.jpg")];
?>
<main class="col-md-12 main-content">
    <article class="post page">

        <header class="post-head">
            <h1 class="post-title">编程浪子 PHP,Python 工程师</h1>
        </header>

        <section class="post-content">
            <blockquote>
                <p>
                    作为一个技术人员,当然希望建立一个自己的小小平台。此平台主要用户记录工作笔记和生活。
                </p>
            </blockquote>
            <ul>
                <li>姓名:郭威</li>
                <li>坐标:上海&bull;徐汇区&bull;田林</li>
                <li>学历:本科</li>
                <li>工作:<?php 
echo date("Y") - 2011;
?>
年+</li>
                <li>邮箱:apanly@163.com</li>
                <li>工作经历:
                    <ul>
                        <li> 2010年10月 ~ 2012年03月 上海新浪 PHP开发</li>
                        <li> 2012年03月 ~ 2015年04月 上海安居客 PHP开发,python DevOps,主管</li>
Beispiel #25
0
echo $info['publish_date'];
?>
</span>
            </section>
        </header>


        <section class="post-content">
            <p style="text-align: center;position: relative">
                <img src="<?php 
echo $info['image_url'];
?>
"/>
                <br/>
                <img src="<?php 
echo GlobalUrlService::buildBlogUrl("/default/barcode", ['barcode' => $info['isbn'], 'type' => 'isbn']);
?>
">
            </p>

            <p><?php 
echo $info['summary'];
?>
</p>
        </section>
        <?php 
if ($info['tags']) {
    ?>
            <footer class="post-footer clearfix">
                <div class="pull-left tag-list">
                    <i class="fa fa-folder-open-o"></i>
Beispiel #26
0
 public static function buildMateUrl($uri, $params = [])
 {
     return GlobalUrlService::buildMateUrl($uri, $params);
 }
Beispiel #27
0
    <meta name="description" content="<?php 
echo DataHelper::encode($this->params['seo']['description']);
?>
"/>
    <meta name="keywords" content="<?php 
echo DataHelper::encode($this->params['seo']['keywords']);
?>
">
    <meta name="HandheldFriendly" content="True"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="shortcut icon" href="<?php 
echo GlobalUrlService::buildStaticUrl("/images/icon.png");
?>
">
    <link rel="icon" href="<?php 
echo GlobalUrlService::buildStaticUrl("/images/icon.png");
?>
">
    <?php 
$this->head();
?>
    <?php 
$this->beginBody();
?>
</head>
<body>
<header class="main-header">
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 text-right">
                <a class="btn btn-default btn-run" href="javascript:void(0);">运行</a>
Beispiel #28
0
<?php

use blog\components\StaticService;
use common\service\GlobalUrlService;
?>
<style type="text/css">
	html,.am-g{
		background-color:#f8f8f8;
	}
	.am-navbar{
		display: none;
	}
	.am-with-fixed-navbar{
		padding-bottom: 0px;
	}
</style>
<figure data-am-widget="figure" class="am am-figure am-figure-default">
	<img src="<?php 
echo GlobalUrlService::buildStaticUrl("/app/cjdbq/icon.png");
?>
" style="width: 200px;height: 200px;" alt="超级逗表情"/>
</figure>
<div class="am-paragraph am-paragraph-default">
	<div class="am-text-center am-text-xl">
		超级逗表情<br/>
		V1.0<br/><br/><br/>
		产品:唐宝宝<br/>
		工程师:编程浪子
	</div>
</div>
Beispiel #29
0
                <?php 
}
?>
        </div>
    </div>
    <div class="widget hide">
        <h4 class="title">阅读目录</h4>
        <div class="content" id="content">

        </div>
    </div>
    <div class="widget">
        <h4 class="title">扫一扫手机阅读</h4>
        <div class="content m_qrcode">
            <img title="扫一扫手机阅读" src="<?php 
echo GlobalUrlService::buildBlogUrl("/default/qrcode", ["qr_text" => $qr_text]);
?>
">
        </div>
    </div>
    <div class="widget">
        <h4 class="title">微信服务号</h4>
        <div class="content wechat">
            <img title="编程浪子的故事:imguowei_888" src="<?php 
echo $wx_urls['imguowei'];
?>
">
        </div>
    </div>
</aside>
Beispiel #30
0
<?php

use blog\components\StaticService;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic("/js/game/music/index.js", blog\assets\GameAsset::className());
?>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-text-center">
    <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/game/music/logo.png");
?>
" style="height: 150px;width: 150px;">
</div>
<div class="am-u-sm-12 am-u-md-12  am-u-lg-12">
    <form method="get" id="search">
        <div class="am-input-group am-input-group-default">
            <input type="text"  name="kw" class="am-form-field" placeholder="输入歌名或歌手~" value="<?php 
echo $kw;
?>
">
            <span class="am-input-group-btn">
                <button class="am-btn am-btn-default btn-search" type="button">
                    <span class="am-icon-search"></span>
                </button>
            </span>
        </div>
    </form>
</div>
<div class="am-u-sm-12 am-u-md-12  am-u-lg-12">
    <?php 
if ($music_list) {
    ?>