提交 358a3f4c 编写于 作者: G gongfuxiang

新增更多幻灯片组建

上级 0a776ac0
......@@ -126,7 +126,7 @@ class ViewController extends CommonController
$article = $this->GetArticleList($lay->GetLayoutMouleWhere($iv));
// 模块数据生成
$fun = L('common_view_title_style_list')[$iv['title_style']]['fun'];
$fun = GetViewTitleStyleFun($iv['title_style']);
$iv['html'] = method_exists($lay, $fun) ? $lay->$fun($article, $iv) : '';
// 重新赋值
......@@ -173,7 +173,7 @@ class ViewController extends CommonController
$article = $this->GetArticleList($lay->GetLayoutMouleWhere($_POST));
// 模块数据生成
$fun = L('common_view_title_style_list')[I('title_style')]['fun'];
$fun = GetViewTitleStyleFun(I('title_style'));
if(method_exists($lay, $fun))
{
$html = $lay->$fun($article, $_POST);
......
......@@ -108,8 +108,12 @@
<label class="am-u-sm-2 am-form-label">{{:L('view_title_style_text')}}</label>
<div class="am-u-sm-10">
<select name="title_style" class="am-radius" required>
<foreach name="common_view_title_style_list" key="k" item="v">
<option value="{{$k}}" <if condition="$v['checked'] eq true">selected</if>>{{$v.name}}</option>
<foreach name="common_view_title_style_list" item="v">
<optgroup label="{{$v.name}}">
<foreach name="v.item" item="vs">
<option value="{{$vs.value}}" <if condition="$vs['checked'] eq true">selected</if>>{{$vs.name}}</option>
</foreach>
</optgroup>
</foreach>
</select>
</div>
......
......@@ -8,6 +8,31 @@
* @datetime 2016-12-01T21:51:08+0800
*/
/**
* [GetViewTitleStyleFun 获取页面模块标题样式方法名称]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-05-09T15:20:54+0800
* @param [int] $value [样式值]
* @return [string] [方法名称]
*/
function GetViewTitleStyleFun($value)
{
$list = L('common_view_title_style_list');
foreach($list as $v)
{
foreach($v['item'] as $vs)
{
if($vs['value'] == $value)
{
return $vs['fun'];
}
}
}
return '';
}
/**
* [FileUploadError 文件上传错误校验]
* @author Devil
......
......@@ -219,6 +219,8 @@ return array(
'common_toview_home_text' => '查看首页',
'common_email_send_user_reg_title' => '用户注册',
'common_layout_slider_more_text' => '了解更多',
// 性别
'common_gender_list' => array(
0 => array('id' => 0, 'name' => '保密', 'checked' => true),
......@@ -322,22 +324,64 @@ return array(
// 页面设置-有效时间
'common_view_title_style_list' => array(
0 => array('value' => 0, 'fun' => 'ViewTitle', 'name' => '[内置]文章标题', 'checked' => true),
1 => array('value' => 1, 'fun' => 'ViewTitleAccess', 'name' => '[内置]文章标题+访问数'),
2 => array('value' => 2, 'fun' => 'ViewTitleCreateTime', 'name' => '[内置]文章标题+发布时间'),
3 => array('value' => 3, 'fun' => 'ViewTitleAbstract', 'name' => '[内置]文章标题+摘要'),
4 => array('value' => 4, 'fun' => 'View_Article_Focus', 'name' => '[内置]焦点模式'),
5 => array('value' => 5, 'fun' => 'ViewTitleAbstractOne', 'name' => '[内置]文章标题(第一条带摘要)'),
6 => array('value' => 6, 'fun' => 'ViewImagesContent', 'name' => '[内置]文章图文展示'),
7 => array('value' => 7, 'fun' => 'ViewOneIntroductionTwoTitle', 'name' => '[内置]一简介+两列标题'),
8 => array('value' => 8, 'fun' => 'ViewImagesSlide', 'name' => '[内置]文章图片幻灯片'),
9 => array('value' => 9, 'fun' => 'ViewImagesList112', 'name' => '[内置]文章图片列表 sm[1]md[1]lg[2]'),
10 => array('value' => 10, 'fun' => 'ViewImagesList122', 'name' => '[内置]文章图片列表 sm[1]md[2]lg[2]'),
11 => array('value' => 11, 'fun' => 'ViewImagesList123', 'name' => '[内置]文章图片列表 sm[1]md[2]lg[3]'),
12 => array('value' => 12, 'fun' => 'ViewImagesList222', 'name' => '[内置]文章图片列表 sm[2]md[2]lg[2]'),
13 => array('value' => 13, 'fun' => 'ViewImagesList223', 'name' => '[内置]文章图片列表 sm[2]md[2]lg[3]'),
14 => array('value' => 14, 'fun' => 'ViewImagesList234', 'name' => '[内置]文章图片列表 sm[2]md[3]lg[4]'),
15 => array('value' => 15, 'fun' => 'ViewImagesList236', 'name' => '[内置]文章图片列表 sm[2]md[3]lg[6]'),
// 100开始
array(
'name' => '标题列表',
'item' => array(
array('value' => 0, 'fun' => 'ViewTitle', 'name' => '[内置]文章标题', 'checked' => true),
array('value' => 1, 'fun' => 'ViewTitleAccess', 'name' => '[内置]文章标题+访问数'),
array('value' => 2, 'fun' => 'ViewTitleCreateTime', 'name' => '[内置]文章标题+发布时间'),
array('value' => 3, 'fun' => 'ViewTitleAbstract', 'name' => '[内置]文章标题+摘要'),
array('value' => 5, 'fun' => 'ViewTitleAbstractOne', 'name' => '[内置]文章标题(第一条带摘要)'),
array('value' => 7, 'fun' => 'ViewOneIntroductionTwoTitle', 'name' => '[内置]一简介+两列标题'),
)
),
// 200开始
array(
'name' => '图文',
'item' => array(
array('value' => 6, 'fun' => 'ViewImagesContent', 'name' => '[内置]文章图文展示'),
)
),
// 300开始
array(
'name' => '幻灯片',
'item' => array(
array('value' => 300, 'fun' => 'ViewImagesSlideDefault', 'name' => '[内置]幻灯片默认'),
array('value' => 301, 'fun' => 'ViewImagesSlideDefaultTitle', 'name' => '[内置]幻灯片默认+标题'),
array('value' => 302, 'fun' => 'ViewImagesSlideDefaultMoreImage', 'name' => '[内置]幻灯片默认+多图'),
array('value' => 303, 'fun' => 'ViewImagesSlideDefaultThumbnailImage', 'name' => '[内置]幻灯片默认+缩略图'),
array('value' => 304, 'fun' => 'ViewImagesSlideRoundPoint', 'name' => '[内置]幻灯片+圆形控制点'),
array('value' => 305, 'fun' => 'ViewImagesSlidePartyPoint', 'name' => '[内置]幻灯片+方形控制点'),
array('value' => 306, 'fun' => 'ViewImagesSlideRoundPointBackBlack', 'name' => '[内置]幻灯片+底部黑边圆形控制点'),
array('value' => 307, 'fun' => 'ViewImagesSlideRoundPointBackWhite', 'name' => '[内置]幻灯片+底部白边圆形控制点'),
array('value' => 308, 'fun' => 'ViewImagesSlideLongPoint', 'name' => '[内置]幻灯片+长条等分控制点'),
array('value' => 309, 'fun' => 'ViewImagesSlideSquareArrow', 'name' => '[内置]幻灯片+方形居中左右箭头'),
array('value' => 310, 'fun' => 'ViewImagesSlideRoundArrow', 'name' => '[内置]幻灯片+圆形居中左右箭头'),
array('value' => 311, 'fun' => 'ViewImagesSlideOutsideArrow', 'name' => '[内置]幻灯片+图片外左右箭头'),
array('value' => 312, 'fun' => 'ViewImagesSlideOutsideRoundArrow', 'name' => '[内置]幻灯片+图片外左右圆形箭头'),
array('value' => 313, 'fun' => 'ViewImagesSlideTitleLongPoint', 'name' => '[内置]幻灯片+标题+长条控制点'),
array('value' => 314, 'fun' => 'ViewImagesSlideTitlePartyPoint', 'name' => '[内置]幻灯片+标题+方形控制点'),
array('value' => 8, 'fun' => 'ViewImagesSlideTitleArrow', 'name' => '[内置]幻灯片+标题+居中左右箭头'),
array('value' => 315, 'fun' => 'ViewImagesSlideTitleBottomArrow', 'name' => '[内置]幻灯片+标题+居底左右箭头'),
array('value' => 316, 'fun' => 'ViewImagesSlideTitleBottomRoundArrow', 'name' => '[内置]幻灯片+标题+底部圆形左右箭头'),
array('value' => 317, 'fun' => 'ViewImagesSlideFloatTitleBottomRoundArrow', 'name' => '[内置]幻灯片+浮层标题+底部圆形控制点'),
array('value' => 318, 'fun' => 'ViewImagesSlideTitleThumbnailImageNav', 'name' => '[内置]幻灯片+标题+缩略图导航'),
)
),
// 400开始
array(
'name' => '图片画廊自适应板块',
'item' => array(
array('value' => 9, 'fun' => 'ViewImagesList112', 'name' => '[内置]文章图片列表 sm[1]md[1]lg[2]'),
array('value' => 10, 'fun' => 'ViewImagesList122', 'name' => '[内置]文章图片列表 sm[1]md[2]lg[2]'),
array('value' => 11, 'fun' => 'ViewImagesList123', 'name' => '[内置]文章图片列表 sm[1]md[2]lg[3]'),
array('value' => 12, 'fun' => 'ViewImagesList222', 'name' => '[内置]文章图片列表 sm[2]md[2]lg[2]'),
array('value' => 13, 'fun' => 'ViewImagesList223', 'name' => '[内置]文章图片列表 sm[2]md[2]lg[3]'),
array('value' => 14, 'fun' => 'ViewImagesList234', 'name' => '[内置]文章图片列表 sm[2]md[3]lg[4]'),
array('value' => 15, 'fun' => 'ViewImagesList236', 'name' => '[内置]文章图片列表 sm[2]md[3]lg[6]'),
)
),
),
// 页面设置-打开方式
......
......@@ -358,7 +358,7 @@ class CommonController extends Controller
$article = $this->GetArticleList($lay->GetLayoutMouleWhere($iv));
// 模块数据生成
$fun = L('common_view_title_style_list')[$iv['title_style']]['fun'];
$fun = GetViewTitleStyleFun($iv['title_style']);
$html = method_exists($lay, $fun) ? $lay->$fun($article, $iv) : '';
// 重新赋值
......
......@@ -12,13 +12,15 @@
<!-- form start -->
<form class="am-form form-validation m-t-30" method="post" action="{{:U('Home/User/Login')}}" request-type="ajax-url" request-value="{{$referer_url}}">
<fieldset>
<span class="">{{:L('user_login_on_accounts_text')}}</span>
<if condition="in_array('sms', MyC('home_user_reg_state'))">
<a href="{{:U('Home/User/RegInfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">{{:L('user_login_immediately_reg_text')}}</a>
<elseif condition="in_array('email', MyC('home_user_reg_state'))" />
<a href="{{:U('Home/User/EmailRegInfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">{{:L('user_login_immediately_reg_text')}}</a>
<if condition="in_array('sms', MyC('home_user_reg_state')) or in_array('email', MyC('home_user_reg_state'))">
<span class="">{{:L('user_login_on_accounts_text')}}</span>
<if condition="in_array('sms', MyC('home_user_reg_state'))">
<a href="{{:U('Home/User/RegInfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">{{:L('user_login_immediately_reg_text')}}</a>
<elseif condition="in_array('email', MyC('home_user_reg_state'))" />
<a href="{{:U('Home/User/EmailRegInfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">{{:L('user_login_immediately_reg_text')}}</a>
</if>
<hr />
</if>
<hr />
<label>{{:L('user_login_accounts_text')}}</label>
<div class="am-form-group">
<input type="text" name="accounts" class="am-radius" minlength="1" placeholder="{{:L('user_login_accounts_text')}}" data-validation-message="{{:L('user_login_accounts_format')}}" required />
......
......@@ -71,7 +71,7 @@ class LayoutModule
$where['is_enable'] = 1;
// 是否强制带图片
if(isset($data['title_style']) && in_array($data['title_style'], array(6, 8, 9, 10, 11, 12, 13, 14, 15)))
if(isset($data['title_style']) && (in_array($data['title_style'], array(6, 8, 9, 10, 11, 12, 13, 14, 15)) || ($data['title_style'] >= 200)))
{
$where['image_count'] = array('egt', 1);
}
......@@ -184,12 +184,21 @@ class LayoutModule
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-22T18:12:12+0800
* @param [string] $type [类型(slide幻灯片, list列表)]
*/
private function GetTitleContent()
private function GetTitleContent($type = '')
{
if(!empty($this->rules['name']) || !empty($this->rules['right_title']))
{
$this->html .= '<div class="am-list-news-hd am-cf">';
$this->html .= '<div class="am-list-news-hd am-cf ';
switch($type)
{
// 幻灯片添加底部class边距
case 'slide':
$this->html .= 'm-b-10';
break;
}
$this->html .= '">';
if(!empty($this->rules['name']))
{
$this->html .= '<h2>'.$this->rules['name'].'</h2>';
......@@ -602,7 +611,7 @@ class LayoutModule
}
/**
* [ViewImagesSlide 文章图片幻灯片]
* [ViewImagesSlideDefault 幻灯片+幻灯片默认]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
......@@ -610,7 +619,7 @@ class LayoutModule
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlide($data, $rules)
public function ViewImagesSlideDefault($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
......@@ -619,7 +628,7 @@ class LayoutModule
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent();
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
......@@ -627,24 +636,944 @@ class LayoutModule
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-c3" data-am-slider=\'{"controlNav":false}\'><ul class="am-slides">';
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-default" data-am-slider=\'{}\' ><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li style="height:;">';
$this->html .= '<a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'"><img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" /></a>';
$this->html .= '<div class="am-slider-desc"><div class="am-slider-counter"><span class="am-active">'.($k+1).'</span>/'.$count.'</div>'.$v['title'].'</div>';
$this->html .= '</li>';
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul>';
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideDefaultTitle 幻灯片+幻灯片默认+标题]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideDefaultTitle($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-default" data-am-slider=\'{}\' ><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '<div class="am-slider-desc">'.$v['title'].'</div>';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideDefaultMoreImage 幻灯片+幻灯片默认+多图]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideDefaultMoreImage($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-default" data-am-slider=\'{&quot;animation&quot;:&quot;slide&quot;,&quot;animationLoop&quot;:false,&quot;itemWidth&quot;:200,&quot;itemMargin&quot;:5}\' ><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideDefaultThumbnailImage 幻灯片+缩略图]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideDefaultThumbnailImage($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-default" data-am-slider=\'{&quot;animation&quot;:&quot;slide&quot;,&quot;controlNav&quot;:&quot;thumbnails&quot;}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li data-thumb="'.$this->image_host.$v['image'][0].'"><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideRoundPoint 幻灯片+圆形控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideRoundPoint($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlidePartyPoint 幻灯片+方形控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlidePartyPoint($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-a2" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideRoundPointBackBlack 幻灯片+底部黑边圆形控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideRoundPointBackBlack($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-a3" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div></div>';
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideRoundPointBackWhite 幻灯片+底部白边圆形控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideRoundPointBackWhite($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-a4" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideLongPoint 幻灯片+长条等分控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideLongPoint($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-a5" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideSquareArrow 幻灯片+方形居中左右箭头]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideSquareArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-b1" data-am-slider=\'{&quot;controlNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideRoundArrow 幻灯片+圆形居中左右箭头]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideRoundArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-b2" data-am-slider=\'{&quot;controlNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideOutsideArrow 幻灯片+图片外左右箭头]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideOutsideArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-b3" data-am-slider=\'{&quot;controlNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideOutsideRoundArrow 幻灯片+图片外左右圆形箭头]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideOutsideRoundArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-b4" data-am-slider=\'{&quot;controlNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideTitleLongPoint 幻灯片+标题+长条控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideTitleLongPoint($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-c1" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '<div class="am-slider-desc">'.$v['title'].'</div>';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideTitlePartyPoint 幻灯片+标题+方形控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideTitlePartyPoint($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-c2" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '<div class="am-slider-desc">'.$v['title'].'</div>';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideTitleArrow 幻灯片+标题+居中左右箭头]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideTitleArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-c3" data-am-slider=\'{&quot;controlNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'"><img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" /></a>';
$this->html .= '<div class="am-slider-desc"><div class="am-slider-counter"><span class="am-active">'.($k+1).'</span>/'.$count.'</div>'.$v['title'].'</div>';
$this->html .= '</li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideTitleBottomArrow 幻灯片+标题+居底左右箭头]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideTitleBottomArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-c4" data-am-slider=\'{&quot;controlNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '<div class="am-slider-desc">'.$v['title'].'</div>';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideTitleBottomRoundArrow 幻灯片+标题+底部圆形左右箭头]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideTitleBottomRoundArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$more = L('common_layout_slider_more_text');
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-d1" data-am-slider=\'{&quot;controlNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '<div class="am-slider-desc"><h2 class="am-slider-title" style="color:#fff;">'.$v['title'].'</h2><a href="'.$v['url'].'" '.$this->blank.' class="am-slider-more">'.$more.'</a></div>';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideFloatTitleBottomRoundArrow 幻灯片+标题+底部圆形控制点]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideFloatTitleBottomRoundArrow($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$more = L('common_layout_slider_more_text');
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-d2" data-am-slider=\'{&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '<div class="am-slider-desc"><div class="am-slider-content"><h2 class="am-slider-title" style="color:#fff;">'.$v['title'].'</h2><a href="'.$v['url'].'" '.$this->blank.' class="am-slider-more">'.$more.'</a></div>';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
}
/**
* [ViewImagesSlideTitleThumbnailImageNav 幻灯片+标题+缩略图导航]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-20T18:06:08+0800
* @param [array] $data [数据列表]
* @param [array] $rules [参数规则]
*/
public function ViewImagesSlideTitleThumbnailImageNav($data, $rules)
{
// 数据初始化
$this->DataInit($data, $rules);
// 开始处理数据
$this->html = '<div class="am-list-news am-list-news-default">';
// 标题
$this->GetTitleContent('slide');
// 数据列表
$this->html .= '<div class="am-list-news-bd">';
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
$this->html .= '<div data-am-widget="slider" class="am-slider am-slider-d3" data-am-slider=\'{&quot;controlNav&quot;:&quot;thumbnails&quot;,&quot;directionNav&quot;:false}\'><ul class="am-slides">';
$count = count($data);
foreach($data as $k=>$v)
{
// 内容
$this->html .= '<li data-thumb="'.$this->image_host.$v['image'][0].'"><a href="'.$v['url'].'" '.$this->blank.' title="'.$v['title'].'">';
$this->html .= '<img src="'.$this->image_host.$v['image'][0].'" alt="'.$v['title'].'" />';
$this->html .= '<div class="am-slider-desc"><div class="am-slider-content"><h2 class="am-slider-title" style="color:#fff;">'.$v['title'].'</h2></div>';
$this->html .= '</a></li>';
}
$this->html .= '</ul></div>';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
$this->html .= '</div></div>';
// 数据返回
return $this->html;
......
......@@ -38,7 +38,7 @@ if(is_dir("./Install") && !file_exists("./Install/install.lock"))
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG', false);
define('APP_DEBUG', true);
// 分之模式,master,develop,test,debug
define('APP_STATUS', 'master');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册