Exemple #1
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
StaticService::includeAppCssStatic("/css/wap/richmedia/index.css", \blog\assets\WapAsset::className());
StaticService::includeAppJsStatic("/js/wap/richmedia/index.js", \blog\assets\WapAsset::className());
?>
<div class="am-g" id="se_btn">
    <a href="javascript:void(0);" class="am-btn am-btn-default am-u-sm-6 am-u-md-6 am-u-lg-6 am-btn-primary">
        看今朝
    </a>
    <a href="<?php 
echo UrlService::buildWapUrl("/gallery/index");
?>
" class="am-btn am-btn-default am-u-sm-6 am-u-md-6 am-u-lg-6">
        想当年
    </a>
</div>
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-1 am-gallery-overlay">
    <?php 
echo $media_list_html;
?>
</ul>
<div class="am-g">
    <div class="loading">
        <div class="bubble">
            <div class="bubble1"></div>
            <div class="bubble2"></div>
        </div>
        <p class="loading_txt">富媒体马上来</p>
    </div>
Exemple #2
0
<?php

use blog\components\StaticService;
StaticService::includeAppJsStatic("/js/wap/library/info.js", \blog\assets\WapAsset::className());
?>
<div class="am-paragraph am-paragraph-default">
    <article class="am-article">
        <div class="am-article-hd">
            <h1 class="am-article-title"><?php 
echo $info["title"];
?>
</h1>

            <p class="am-article-meta">
                作者:<?php 
echo $info["author"];
?>
                出版时间:<?php 
echo $info['publish_date'];
?>
            </p>
        </div>
        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
        <div class="am-article-bd">
            <figure data-am-widget="figure" class="am am-figure am-figure-default ">
                <img data-src="<?php 
echo $info["image_url"];
?>
" alt="<?php 
echo $info["title"];
?>
Exemple #3
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
StaticService::includeAppCssStatic("/css/wap/default/index.css", \blog\assets\WapAsset::className());
StaticService::includeAppJsStatic("/js/wap/default/index.js", \blog\assets\WapAsset::className());
?>
<div class="am-g" id="se_btn">
    <a href="<?php 
echo UrlService::buildWapUrl("/default/index", ["type" => 1]);
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3">文章</a>
    <a href="<?php 
echo UrlService::buildWapUrl("/default/index", ["type" => 2]);
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3">热门</a>
    <a href="<?php 
echo UrlService::buildWapUrl("/default/index", ["type" => 3]);
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3">原创</a>
    <a href="<?php 
echo UrlService::buildWapUrl("/search/do");
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3"><span class="am-icon-search"></span></a>
</div>
<div data-am-widget="list_news" class="am-list-news am-list-news-default">
    <div class="am-list-news-bd">
Exemple #4
0
<?php

use blog\assets\WapAsset;
use blog\components\StaticService;
use common\service\GlobalUrlService;
use common\components\DataHelper;
WapAsset::register($this);
$this->beginPage();
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="description" content="<?php 
echo DataHelper::encode($this->params['seo']['description']);
?>
"/>
    <meta name="keywords" content="<?php 
echo DataHelper::encode($this->params['seo']['keywords']);
?>
">
    <title><?php 
echo DataHelper::encode($this->title);
?>
</title>
    <meta name="HandheldFriendly" content="True"/>
    <meta name="google-site-verification" content="c_1LAxAX-8MMoXntjVS1kCu5JnGhVIlcgLT6idZpgq4" />
    <link rel="shortcut icon" href="<?php 
echo GlobalUrlService::buildStaticUrl("/images/icon.png");
Exemple #5
0
<?php

use blog\components\StaticService;
use common\components\DataHelper;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic("/js/wap/wechat_wall/index.js", \blog\assets\WapAsset::className());
?>
<ol class="am-breadcrumb">
    <li><a href="<?php 
echo GlobalUrlService::buildWapUrl("/demo/index");
?>
">Demo列表</a></li>
    <li class="am-active">微信墙</li>
</ol>
<div class="am-g">
    <div class="am-u-sm-12 am-u-md-12">
        <p class="am-text-xl am-text-center"><?php 
echo DataHelper::getAuthorName();
?>
微信墙</p>
    </div>
    <div class="am-u-sm-12 am-u-md-12">
        <?php 
if ($list) {
    ?>
        <ul class="am-comments-list am-comments-list-flip">
            <?php 
    foreach ($list as $_item) {
        ?>
            <li class="am-comment" data_id="<?php 
        echo $_item["id"];
Exemple #6
0
<?php

use blog\components\StaticService;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic("/js/wap/demo/h5_upload.js", \blog\assets\WapAsset::className());
?>
<ol class="am-breadcrumb">
	<li><a href="<?php 
echo GlobalUrlService::buildWapUrl("/demo/index");
?>
">Demo列表</a></li>
	<li class="am-active">H5上传和拍照</li>
</ol>
<div class="am-paragraph am-paragraph-default">
	<article class="am-article">
		<div class="am-article-hd">
			<h1 class="am-article-title">H5上传和拍照</h1>
		</div>
		<hr data-am-widget="divider"  class="am-divider am-divider-default"/>
		<div class="am-article-bd  ">
			<div class="am-form-group am-form-file">
				<button type="button" class="am-btn am-btn-danger am-btn-sm">
					<i class="am-icon-cloud-upload"></i> 选择要上传的文件
				</button>
				<input id="upload" type="file" accept="image/*;" capture="camera" >
			</div>
		</div>

		<figure data-am-widget="figure" class="am am-figure am-figure-default am-no-layout">
			<img  class="img_wrap" style="display: none;">
		</figure>
Exemple #7
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
use common\service\GlobalUrlService;
StaticService::includeAppCssStatic("/css/wap/gallary/demo.css", \blog\assets\WapAsset::className());
StaticService::includeAppCssStatic("/css/wap/gallary/style.css", \blog\assets\WapAsset::className());
StaticService::includeStaticJs("/jquery/jquery.montage.min.js", \blog\assets\WapAsset::className());
StaticService::includeAppJsStatic("/js/wap/gallery/list.js", \blog\assets\WapAsset::className());
if ($images) {
    ?>
<div class="am-g">
    <?php 
    foreach ($images as $_url) {
        ?>
    <a href="javascript:void(0);">
        <img src="<?php 
        echo $_url;
        ?>
">
    </a>
    <?php 
    }
    ?>
</div>
<?php 
}