diff --git a/ThinkPHP/Library/My/LayoutModule.class.php b/ThinkPHP/Library/My/LayoutModule.class.php
index 527495b6595d50720db7c05edc534e590b11d638..df1f9cd20d90229ebd9639ac905dd468df1701d9 100644
--- a/ThinkPHP/Library/My/LayoutModule.class.php
+++ b/ThinkPHP/Library/My/LayoutModule.class.php
@@ -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 .= '
';
+ $this->html .= '
';
if(!empty($this->rules['name']))
{
$this->html .= '
'.$this->rules['name'].'
';
@@ -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 = '
';
// 标题
- $this->GetTitleContent();
+ $this->GetTitleContent('slide');
// 数据列表
$this->html .= '
';
@@ -627,24 +636,944 @@ class LayoutModule
// 自定义内容为空, 并且数据列表不为空
if(empty($this->rules['summary']) && !empty($data))
{
- $this->html .= '
';
+ $this->html .= '';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
} else {
// 自定义内容
$this->html .= $this->rules['summary'];
}
// 内容收尾处理
- $this->html .= '
';
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ $count = count($data);
+ foreach($data as $k=>$v)
+ {
+ // 内容
+ $this->html .= '- blank.' title="'.$v['title'].'">';
+ $this->html .= '
'.($k+1).'/'.$count.'
'.$v['title'].'
';
+ $this->html .= ' ';
+ }
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $more = L('common_layout_slider_more_text');
+ $this->html .= '
';
+ } else {
+ // 自定义内容
+ $this->html .= $this->rules['summary'];
+ }
+
+ // 内容收尾处理
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $more = L('common_layout_slider_more_text');
+ $this->html .= '
';
+
+ // 数据返回
+ 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 = '
';
+
+ // 标题
+ $this->GetTitleContent('slide');
+
+ // 数据列表
+ $this->html .= '
';
+
+ // 自定义内容为空, 并且数据列表不为空
+ if(empty($this->rules['summary']) && !empty($data))
+ {
+ $this->html .= '
';
// 数据返回
return $this->html;
diff --git a/core.php b/core.php
index 1d6d2281da9d521469e2f40399af383f97436ff8..1837a4d44fd0434ce484fe365febc9a286f3db55 100755
--- a/core.php
+++ b/core.php
@@ -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');