image_host = C('IMAGE_HOST'); } /** * [SetInstance 类静态方法入口] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-20T18:01:09+0800 */ public static function SetInstance() { static $object = null; if(!$object) $object = new self(); return $object; } /** * [GetLayoutMouleWhere 获取布局模块条件] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-14T22:08:22+0800 * @param [array] $data [参数条件] * @return [array] [条件列表] */ public function GetLayoutMouleWhere($data) { // 条件初始化 $where = array(); // 是否启用 $where['is_enable'] = 1; // 是否强制带图片 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); } // 是否指定文章id if(empty($data['article_id'])) { // 文章分类 if(!empty($data['article_class_id']) && substr($data['article_class_id'], 0, 1) != 0) { $where['article_class_id'] = array('in', $data['article_class_id']); } // 发布时间 if(!empty($data['add_time_interval'])) { $where['add_time_interval'] = array('gt', time()-(L('common_view_time_list')[$data['add_time_interval']]['value'])*60); } // 更新时间 if(!empty($data['upd_time_interval'])) { $where['upd_time_interval'] = array('gt', time()-(L('common_view_time_list')[$data['upd_time_interval']]['value'])*60); } // 关键字 if(!empty($data['keyword'])) { $keyword = str_replace(array(';', '—'), array(';', '-'), $data['keyword']); if(strpos($keyword, ';') === false) { $where['title'][] = $this->TitleWhereJoin($keyword); } else { $keyword_all = explode(';', $keyword); foreach($keyword_all as $temp_keyword) { $where['title'][] = $this->TitleWhereJoin($temp_keyword); } } } } else { $where['id'] = array('in', str_replace(',', ',', $data['article_id'])); } // 排序方式 $sort = empty($data['sort_type']) ? '' : str_replace('-', ' ', L('common_view_sort_list')[$data['sort_type']]['value']); // 读取条数 $n = max(1, isset($data['show_number']) ? intval($data['show_number']) : 10); // 返回数据 return array('where' => $where, 'sort' => $sort, 'n' => $n); } /** * [TitleWhereJoin 关键字检索条件拼接] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-15T14:07:48+0800 * @param [string] $keyword [需要解析的关键字] * @return [array] [拼接完成的关键字] */ private function TitleWhereJoin($keyword) { // 标记判断, 并且-, 或| $tag = (strpos($keyword, '-') !== false) ? '-' : ((strpos($keyword, '|') !== false) ? '|' : ''); // 数据处理 if(empty($tag)) { return array('eq', $keyword); } else { $join = ($tag == '-') ? 'AND' : (($tag == '|') ? 'OR' : ''); $temp_all = explode($tag, $keyword); foreach($temp_all as $k=>$temp_keyword) { $temp_all[$k] = '%'.$temp_keyword.'%'; } return array('like', $temp_all, $join); } } /** * [DataInit 数初始化] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-20T18:08:20+0800 * @param [array] $data [数据列表] * @param [array] $rules [参数规则] */ private function DataInit($data, $rules) { // 初始化 $this->data = $data; $this->rules = $rules; $this->html = ''; // 规则处理 $this->rules['right_title'] = empty($this->rules['right_title']) ? array() : explode(';', str_replace(';', ';', $this->rules['right_title'])); // 打开方式 $this->blank = (isset($this->rules['link_open_way']) && L('common_view_link_open_way_list')[$this->rules['link_open_way']]['value'] == 'blank') ? 'target="_blank"' : ''; } /** * [GetTitleContent 获取标题内容] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-22T18:12:12+0800 * @param [string] $type [类型(slide幻灯片, list列表)] */ private function GetTitleContent($type = '') { if(!empty($this->rules['name']) || !empty($this->rules['right_title'])) { $this->html .= '
'; if(!empty($this->rules['name'])) { $this->html .= '

'.$this->rules['name'].'

'; } if(!empty($this->rules['right_title'])) { if(isset($this->rules['right_title'][0])) { if(isset($this->rules['right_title'][1])) { $this->html .= ''.$this->rules['right_title'][0].''; } else { $this->html .= ''.$this->rules['right_title'][0].''; } } } $this->html .= '
'; } } /** * [ViewTitle 纯标题] * @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 ViewTitle($data, $rules) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= ''; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewTitleAccess 标题+访问量] * @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 ViewTitleAccess($data, $rules) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewTitleCreateTime 标题+发布时间] * @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 ViewTitleCreateTime($data, $rules) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= ''; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewTitleAbstract 标题+摘要] * @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 ViewTitleAbstract($data, $rules) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= ''; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewTitleAbstractOne 标题+第一条摘要] * @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 ViewTitleAbstractOne($data, $rules) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= ''; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewImagesContent 图文] * @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 ViewImagesContent($data, $rules) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= ''; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewOneIntroductionTwoTitle 一简介+两列标题] * @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 ViewOneIntroductionTwoTitle($data, $rules) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= ''; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewImagesSlideDefault 幻灯片+幻灯片默认] * @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 ViewImagesSlideDefault($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; } /** * [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 .= '
'; // 数据返回 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'].'">'.$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 .= '
'; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $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 .= '
'; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } /** * [ViewImagesList112 文章图片列表-112] * @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 ViewImagesList112($data, $rules) { return $this->ViewImagesList($data, $rules, 1, 1, 2); } /** * [ViewImagesList122 文章图片列表-122] * @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 ViewImagesList122($data, $rules) { return $this->ViewImagesList($data, $rules, 1, 2, 2); } /** * [ViewImagesList123 文章图片列表-123] * @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 ViewImagesList123($data, $rules) { return $this->ViewImagesList($data, $rules, 1, 2, 3); } /** * [ViewImagesList222 文章图片列表-222] * @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 ViewImagesList222($data, $rules) { return $this->ViewImagesList($data, $rules, 2, 2, 2); } /** * [ViewImagesList223 文章图片列表-223] * @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 ViewImagesList223($data, $rules) { return $this->ViewImagesList($data, $rules, 2, 2, 3); } /** * [ViewImagesList234 文章图片列表-234] * @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 ViewImagesList234($data, $rules) { return $this->ViewImagesList($data, $rules, 2, 3, 4); } /** * [ViewImagesList236 文章图片列表-236] * @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 ViewImagesList236($data, $rules) { return $this->ViewImagesList($data, $rules, 2, 3, 6); } /** * [ViewImagesList 文章图片列表] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-20T18:06:08+0800 * @param [array] $data [数据列表] * @param [array] $rules [参数规则] */ private function ViewImagesList($data, $rules, $sm, $md, $lg) { // 数据初始化 $this->DataInit($data, $rules); // 开始处理数据 $this->html = '
'; // 标题 $this->GetTitleContent(); // 数据列表 $this->html .= '
'; // 自定义内容为空, 并且数据列表不为空 if(empty($this->rules['summary']) && !empty($data)) { $this->html .= ''; } else { // 自定义内容 $this->html .= $this->rules['summary']; } // 内容收尾处理 $this->html .= '
'; // 数据返回 return $this->html; } } ?>