修正一些主题的bug

This commit is contained in:
liyukun 2021-08-09 01:00:41 +08:00
parent 713054fbea
commit 0119edb22d
10 changed files with 774 additions and 909 deletions

View File

@ -199,7 +199,7 @@ class Zz extends TagLib{
}
/**
* tagAdvert
* tagAdvert 广告
* @param $tag
* @param $content
* @return string

View File

@ -3,13 +3,16 @@
// +----------------------------------------------------------------------
use think\facade\Db;
use think\Exception;
// 应用公共文件
/**
* 中文字符截取
*/
function cn_substr($str,$len){
return mb_substr($str,0,$len,'utf-8');
function cn_substr($str, $len)
{
return mb_substr($str, 0, $len, 'utf-8');
}
/**
* 时间戳格式化
*/
@ -19,40 +22,45 @@ function cn_substr($str,$len){
/**
* 过滤html标签
*/
function html2text($str){
function html2text($str)
{
return strip_tags($str);
}
/**
* 获取文章分类的内容
* $id=文章id
* $strip=true过滤html
*/
function get_type_content($id,$strip=false){
$dc=\app\common\model\DocumentCategoryContent::find($id);
if(!$dc){
function get_type_content($id, $strip = false)
{
$dc = \app\common\model\DocumentCategoryContent::find($id);
if (!$dc) {
return '';
}
if($strip){
if ($strip) {
return html2text($dc['content']);
}
return $dc['content'];
}
/**
* 获取文章分类
*/
function get_document_category_list(){
function get_document_category_list()
{
//缓存文章菜单
$documentCategory=cache('DATA_DOCUMENT_CATEGORY_LIST');
if($documentCategory===null){
$documentCategoryList= \app\common\model\DocumentCategory::where('status',1)->order('sort asc')->select()->toArray();
$documentCategory = cache('DATA_DOCUMENT_CATEGORY_LIST');
if ($documentCategory === null) {
$documentCategoryList = \app\common\model\DocumentCategory::where('status', 1)->order('sort asc')->select()->toArray();
//转换让id作为数组的键
$documentCategory=[];
foreach ($documentCategoryList as $key=>$item){
$documentCategory = [];
foreach ($documentCategoryList as $key => $item) {
//根据栏目类型生成栏目url
$item['url']=curl($item);
$documentCategory[$item['id']]=$item;
$item['url'] = curl($item);
$documentCategory[$item['id']] = $item;
}
cache('DATA_DOCUMENT_CATEGORY_LIST',$documentCategory);
cache('DATA_DOCUMENT_CATEGORY_LIST', $documentCategory);
}
return $documentCategory;
}
@ -61,19 +69,19 @@ function get_document_category_list(){
/**
* 获取一个文章分类
*/
function get_document_category($x,$field=false){
if(!$x){
function get_document_category($x, $field = false)
{
if (!$x) {
throw new Exception('请指定要获取的栏目分类id');
}
//获取缓存的文章菜单
$documentCategoryList=get_document_category_list();
if(!isset($documentCategoryList[$x])){
$documentCategoryList = get_document_category_list();
if (!isset($documentCategoryList[$x])) {
return false;
}
if($field){
if ($field) {
return $documentCategoryList[$x][$field];
}
else{
} else {
return $documentCategoryList[$x];
}
}
@ -81,26 +89,26 @@ function get_document_category($x,$field=false){
/**
* 获取一个文章分类-通个分类标识
*/
function get_document_category_by_name($name,$field=false){
if(!$name){
function get_document_category_by_name($name, $field = false)
{
if (!$name) {
throw new Exception('请指定要获取的栏目分类标识!');
}
//获取缓存的文章菜单
$documentCategoryList=get_document_category_list();
$documentCategory=false;
foreach ($documentCategoryList as $item){
if($item['name']==$name){
$documentCategory=$item;
$documentCategoryList = get_document_category_list();
$documentCategory = false;
foreach ($documentCategoryList as $item) {
if ($item['name'] == $name) {
$documentCategory = $item;
break;
}
}
if(!$documentCategory){
if (!$documentCategory) {
return false;
}
if($field){
if ($field) {
return $documentCategory[$field];
}
else{
} else {
return $documentCategory;
}
}
@ -108,168 +116,172 @@ function get_document_category_by_name($name,$field=false){
/**
* 模板-获取文章分类
*/
function tpl_get_channel($type,$typeid,$row=100,$where='',$orderby='',$display=1){
function tpl_get_channel($type, $typeid, $row = 100, $where = '', $orderby = '', $display = 1)
{
switch($type){
switch ($type) {
case 'top':
//获取顶级分类
return get_document_category_by_parent(0,$row,$display);
return get_document_category_by_parent(0, $row, $display);
break;
case 'son':
//获取子级分类
if(!$typeid){
if (!$typeid) {
throw new Exception('请指定要获取的栏目分类id');
}
return get_document_category_by_parent($typeid,$row,$display);
return get_document_category_by_parent($typeid, $row, $display);
break;
case 'self':
//获取同级分类
if(!$typeid){
if (!$typeid) {
throw new Exception('请指定要获取的栏目分类id');
}
$dc=get_document_category($typeid);
if(!$dc){
$dc = get_document_category($typeid);
if (!$dc) {
return false;
}
return get_document_category_by_parent($dc['pid'],$row,$display);;
return get_document_category_by_parent($dc['pid'], $row, $display);;
break;
case 'find':
//获取所有子孙分类,此操作读取数据库,非缓存!
if(!$typeid){
if (!$typeid) {
throw new Exception('请指定要获取的栏目分类id');
}
$dc=get_document_category($typeid);
if(!$dc){
$dc = get_document_category($typeid);
if (!$dc) {
throw new Exception('分类不存在或已删除!');
}
$tempArr=\app\common\model\DocumentCategory::where('id','in',$dc['child'])->where('status',1)->limit($row);
if($display){
$tempArr=$tempArr->where('display',1);
$tempArr = \app\common\model\DocumentCategory::where('id', 'in', $dc['child'])->where('status', 1)->limit($row);
if ($display) {
$tempArr = $tempArr->where('display', 1);
}
$tempArr=$tempArr->select();
foreach ($tempArr as $key=>$item){
$tempArr = $tempArr->select();
foreach ($tempArr as $key => $item) {
//根据栏目类型生成栏目url
$item['url']=curl($item);
$tempArr[$key]=$item;
$item['url'] = curl($item);
$tempArr[$key] = $item;
}
return $tempArr;
break;
case 'parent':
//获取父级分类
if(!$typeid){
if (!$typeid) {
throw new Exception('请指定要获取的栏目分类id');
}
$dc=get_document_category($typeid);
$tempArr=array();
$parent=get_document_category($dc['pid']);
array_push($tempArr,$parent);
$dc = get_document_category($typeid);
$tempArr = array();
$parent = get_document_category($dc['pid']);
array_push($tempArr, $parent);
return $tempArr;
break;
case 'root':
if(!$typeid){
if (!$typeid) {
throw new Exception('请指定要获取的栏目分类id');
}
$dc=get_document_category($typeid);
if($dc['pid']!=0){
$dc = get_document_category($typeid);
if ($dc['pid'] != 0) {
//获取根分类,此操作读取数据库,非缓存!
$dc=\app\common\model\DocumentCategory::where('pid',0)->where('status',1)
-> where("CONCAT(',',child,',') like '%,$typeid,%'")->limit($row);
if($display){
$dc=$dc->where('display',1);
$dc = \app\common\model\DocumentCategory::where('pid', 0)->where('status', 1)
->where("CONCAT(',',child,',') like '%,$typeid,%'")->limit($row);
if ($display) {
$dc = $dc->where('display', 1);
}
$dc=$dc->find();
$dc = $dc->find();
}
//根据栏目类型生成栏目url
$dc['url']=curl($dc);
$tempArr=[];
array_push($tempArr,$dc);
$dc['url'] = curl($dc);
$tempArr = [];
array_push($tempArr, $dc);
return $tempArr;
break;
case 'where':
//根据自定义条件获取分类where语句此操作读取数据库非缓存
$tempArr=\app\common\model\DocumentCategory::where('status',1)-> where($where)->order($orderby)->limit($row);
if($display){
$tempArr=$tempArr->where('display',1);
$tempArr = \app\common\model\DocumentCategory::where('status', 1)->where($where)->order($orderby)->limit($row);
if ($display) {
$tempArr = $tempArr->where('display', 1);
}
$tempArr=$tempArr->select();
foreach ($tempArr as $key=>$item){
$tempArr = $tempArr->select();
foreach ($tempArr as $key => $item) {
//根据栏目类型生成栏目url
$item['url']=curl($item);
$tempArr[$key]=$item;
$item['url'] = curl($item);
$tempArr[$key] = $item;
}
return $tempArr;
break;
case 'ids':
//根据多个栏目id逗号隔开的那种获得栏目列表
$tempArr=\app\common\model\DocumentCategory::where('status',1)-> where('id','in',$typeid)->order($orderby)->limit($row);
if($display){
$tempArr=$tempArr->where('display',1);
$tempArr = \app\common\model\DocumentCategory::where('status', 1)->where('id', 'in', $typeid)->order($orderby)->limit($row);
if ($display) {
$tempArr = $tempArr->where('display', 1);
}
$tempArr=$tempArr->select();
foreach ($tempArr as $key=>$item){
$tempArr = $tempArr->select();
foreach ($tempArr as $key => $item) {
//根据栏目类型生成栏目url
$item['url']=curl($item);
$tempArr[$key]=$item;
$item['url'] = curl($item);
$tempArr[$key] = $item;
}
return $tempArr;
break;
default:
$tempArr=[];
$tempArr = [];
return $tempArr;
break;
}
}
/**
* 根据父级分类id获取子分类
* $pid=父级id
* $row=获取多少数目
*/
function get_document_category_by_parent($pid,$row,$display=1){
$documentCategoryList=get_document_category_list();
$x=1;
$tempArr=array();
foreach ($documentCategoryList as $item){
if($x>$row){
function get_document_category_by_parent($pid, $row, $display = 1)
{
$documentCategoryList = get_document_category_list();
$x = 1;
$tempArr = array();
foreach ($documentCategoryList as $item) {
if ($x > $row) {
break;
}
if($item['pid']==$pid&&($display?$item['display']==1:true)){
$x=$x+1;
array_push($tempArr,$item);
if ($item['pid'] == $pid && ($display ? $item['display'] == 1 : true)) {
$x = $x + 1;
array_push($tempArr, $item);
}
}
return $tempArr;
}
/**
* 模板-获取上一篇和下一篇
* $get=上一篇|下一篇
* $cid=栏目分类id
*/
function tpl_get_prenext($get,$cid=false,$none){
function tpl_get_prenext($get, $cid = false, $none)
{
//文档id
$id=input('id');
if(!$get){
$get='next';
$id = input('id');
if (!$get) {
$get = 'next';
}
$document=\app\common\model\Document::where('display',1)->where('status',1);
$document=$get=='pre'?$document->where("id",'<',$id):$document->where("id",'>',$id);
$document = \app\common\model\Document::where('display', 1)->where('status', 1);
$document = $get == 'pre' ? $document->where("id", '<', $id) : $document->where("id", '>', $id);
//如果表明在同一分类下查询
if($cid){
$document=$document->where("category_id",$cid);
if ($cid) {
$document = $document->where("category_id", $cid);
}
$document=$document->field('id,title')->order($get=='pre'?'id desc':'id asc')->find();
$document = $document->field('id,title')->order($get == 'pre' ? 'id desc' : 'id asc')->find();
if($document){
$document['url']=url('article/detail?id='.$document['id'])->build();
}
else{
$document['id']=false;
$document['url']='javascript:void(0)';
$document['title']=$none;
if ($document) {
$document['url'] = url('article/detail?id=' . $document['id'])->build();
} else {
$document['id'] = false;
$document['url'] = 'javascript:void(0)';
$document['title'] = $none;
}
return $document;
@ -284,77 +296,76 @@ function tpl_get_prenext($get,$cid=false,$none){
* $table=文章内容扩展表名默认article
* $where=自定义条件
*/
function tpl_get_list($orderby,$pagesize,$cid,$type,$table='article',$where=false,$display=1){
function tpl_get_list($orderby, $pagesize, $cid, $type, $table = 'article', $where = false, $display = 1)
{
$documentListModel= (new \app\common\model\Document())
$documentListModel = (new \app\common\model\Document())
->alias('a')
->join(config('database.prefix').'document_category b','a.category_id=b.id','LEFT')
->join(config('database.prefix')."document_$table c",'a.id=c.id','LEFT')
->join(config('database.prefix') . 'document_category b', 'a.category_id=b.id', 'LEFT')
->join(config('database.prefix') . "document_$table c", 'a.id=c.id', 'LEFT')
->where("a.type='$table'")
->where('a.status',1)
->where('b.status',1)
->where('a.status', 1)
->where('b.status', 1)
->field('a.*,b.title as category_title,c.*');
if($display){
$documentListModel=$documentListModel->where('a.display',1);
if ($display) {
$documentListModel = $documentListModel->where('a.display', 1);
}
//判断当前是否搜索页面
if(request()->action()=='search'){
$type='search';
if (request()->action() == 'search') {
$type = 'search';
}
switch ($type){
switch ($type) {
case 'find':
//获取栏目下文章以及所有子孙分类文章
$dc=get_document_category($cid);
$child=$dc['child'];
if($child){
$documentListModel=$documentListModel->where('a.category_id','in',"$cid,$child");
}
else{
$documentListModel=$documentListModel->where('a.category_id',$cid);
$dc = get_document_category($cid);
$child = $dc['child'];
if ($child) {
$documentListModel = $documentListModel->where('a.category_id', 'in', "$cid,$child");
} else {
$documentListModel = $documentListModel->where('a.category_id', $cid);
}
break;
case 'son':
//获取栏目下文章
$documentListModel=$documentListModel->where('a.category_id',$cid);
$documentListModel = $documentListModel->where('a.category_id', $cid);
break;
case 'search':
//获取关键字搜索的文章
$kw=input('kw'); //搜索关键词
$tid=input('cid');//文章分类Id
if($kw){
$documentListModel=$documentListModel->where('a.title','like',"%$kw%");
$kw = input('kw'); //搜索关键词
$tid = input('cid');//文章分类Id
if ($kw) {
$documentListModel = $documentListModel->where('a.title', 'like', "%$kw%");
}
if($tid){
$documentListModel=$documentListModel->where('a.category_id',$tid);
if ($tid) {
$documentListModel = $documentListModel->where('a.category_id', $tid);
}
break;
case 'where':
//根据自定义条件获取文章where语句
$documentListModel=$documentListModel->where($where);
$documentListModel = $documentListModel->where($where);
break;
case 'tag':
//读取指定tag的文章
$documentListModel=$documentListModel->where('a.keywords','like',"%$where%");
$documentListModel = $documentListModel->where('a.keywords', 'like', "%$where%");
break;
}
$documentListModel=$documentListModel->order($orderby);
$documentListModel = $documentListModel->order($orderby);
//获取当前请求的请求参数,以确定分页是否要带上这些请求参数
$query=request()->query();
if($query){
$documentListModel=$documentListModel->paginate($pagesize,false,['query' => getRouteQuery()]);
$query = request()->query();
if ($query) {
$documentListModel = $documentListModel->paginate($pagesize, false, ['query' => getRouteQuery()]);
} else {
$documentListModel = $documentListModel->paginate($pagesize);
}
else{
$documentListModel=$documentListModel->paginate($pagesize);
}
$lists=[];
foreach ($documentListModel as $key=>$item){
$lists = [];
foreach ($documentListModel as $key => $item) {
//生成文章url
$item['url']=aurl($item);
$lists[$key]=$item;
$item['url'] = aurl($item);
$lists[$key] = $item;
}
$re=[
'model'=>$documentListModel,
'lists'=>$lists
$re = [
'model' => $documentListModel,
'lists' => $lists
];
return $re;
}
@ -363,24 +374,24 @@ function tpl_get_list($orderby,$pagesize,$cid,$type,$table='article',$where=fals
* 获得当前路由及参数列表
* @return mixed
*/
function getRouteQuery(){
$request=request();
$queryArr=$request->param();
$queryArr['s']=$request->pathinfo();
function getRouteQuery()
{
$request = request();
$queryArr = $request->param();
$queryArr['s'] = $request->pathinfo();
return $queryArr;
}
/**
* 根据栏目类型生成栏目url
*/
function curl($item){
if((int)$item['type']==0){
return url('article/lists?id='.$item['id'])->build();
}
elseif((int)$item['type']==1){
return url('article/lists?id='.$item['id'])->build();
}
elseif((int)$item['type']==2){
function curl($item)
{
if ((int)$item['type'] == 0) {
return url('article/lists?id=' . $item['id'])->build();
} elseif ((int)$item['type'] == 1) {
return url('article/lists?id=' . $item['id'])->build();
} elseif ((int)$item['type'] == 2) {
return $item['link_str'];
}
}
@ -388,13 +399,13 @@ function curl($item){
/**
* 生成文章url
*/
function aurl($item){
function aurl($item)
{
//根据栏目类型生成栏目url
if($item['link_str']){
if ($item['link_str']) {
return $item['link_str'];
}
else{
return url('article/detail?id='.$item['id'])->build();
} else {
return url('article/detail?id=' . $item['id'])->build();
}
}
@ -402,20 +413,21 @@ function aurl($item){
/**
* 模板-根据指定的文章id获取文章内容
*/
function tpl_get_article($id,$table){
$documentModel=\app\common\model\Document::alias('a')
->join(config('database.prefix').'document_category b','a.category_id=b.id','LEFT')
->join(config('database.prefix')."document_$table c",'a.id=c.id','LEFT')
->where('a.status',1)->where('a.id',$id)->where("a.type='$table'")
function tpl_get_article($id, $table)
{
$documentModel = \app\common\model\Document::alias('a')
->join(config('database.prefix') . 'document_category b', 'a.category_id=b.id', 'LEFT')
->join(config('database.prefix') . "document_$table c", 'a.id=c.id', 'LEFT')
->where('a.status', 1)->where('a.id', $id)->where("a.type='$table'")
->field('a.*,b.title as category_title,c.*');
$doc=$documentModel->find();
$doc = $documentModel->find();
if(!$doc){
if (!$doc) {
return false;
}
$doc['url']=aurl($doc);
$doc['url'] = aurl($doc);
return $doc;
}
@ -430,55 +442,55 @@ function tpl_get_article($id,$table){
* $type=读取数据的方式son:'获取栏目下文章以及所有子孙分类文章',self:'获取栏目下文章',search:'获取关键字搜索的文章',where:'根据自定义条件获取文章where语句'
* $where=自定义条件
*/
function tpl_get_article_list($cid,$row,$orderby,$table='article',$type='son',$where=false,$display=1,$ids=''){
function tpl_get_article_list($cid, $row, $orderby, $table = 'article', $type = 'son', $where = false, $display = 1, $ids = '')
{
$documentListModel=\app\common\model\Document::alias('a')
->join(config('database.prefix').'document_category b','a.category_id=b.id','LEFT')
->join(config('database.prefix')."document_$table c",'a.id=c.id','RIGHT')
->where("a.type='$table'")->where('a.status',1)->where('b.status',1)
$documentListModel = \app\common\model\Document::alias('a')
->join(config('database.prefix') . 'document_category b', 'a.category_id=b.id', 'LEFT')
->join(config('database.prefix') . "document_$table c", 'a.id=c.id', 'RIGHT')
->where("a.type='$table'")->where('a.status', 1)->where('b.status', 1)
->limit($row)
->field('a.*,b.title as category_title,c.*');
if($display){
$documentListModel=$documentListModel->where('a.display',1);
if ($display) {
$documentListModel = $documentListModel->where('a.display', 1);
}
switch ($type){
switch ($type) {
case 'find':
//获取栏目下文章以及所有子孙分类文章
$dc=get_document_category($cid);
$child=$dc['child'];
if($child){
$documentListModel=$documentListModel->where('a.category_id','in',"$cid,$child");
}
else{
$documentListModel=$documentListModel->where('a.category_id',$cid);
$dc = get_document_category($cid);
if (!empty($dc['child'])) {
$child = $dc['child'];
$documentListModel = $documentListModel->where('a.category_id', 'in', "$cid,$child");
} else {
$documentListModel = $documentListModel->where('a.category_id', $cid);
}
break;
case 'son':
//获取栏目下文章
$documentListModel=$documentListModel->where('a.category_id',$cid);
$documentListModel = $documentListModel->where('a.category_id', $cid);
break;
case 'where':
//根据自定义条件获取文章where语句
$documentListModel=$documentListModel->where($where);
$documentListModel = $documentListModel->where($where);
break;
case 'ids':
//读取指定id的文章
$documentListModel=$documentListModel->where('a.id','in',$ids);
$documentListModel = $documentListModel->where('a.id', 'in', $ids);
break;
case 'tag':
//读取指定tag的文章
$documentListModel=$documentListModel->where('a.keywords','like',"%$where%");
$documentListModel = $documentListModel->where('a.keywords', 'like', "%$where%");
break;
}
$documentListModel=$documentListModel->order($orderby)->select();
$lists=[];
foreach ($documentListModel as $key=>$item){
$documentListModel = $documentListModel->order($orderby)->select();
$lists = [];
foreach ($documentListModel as $key => $item) {
//生成文章url
$item['url']=aurl($item);
$lists[$key]=$item;
$item['url'] = aurl($item);
$lists[$key] = $item;
}
return $lists;
}
@ -492,26 +504,28 @@ function tpl_get_article_list($cid,$row,$orderby,$table='article',$type='son',$w
* $type=读取数据的方式son:'获取栏目下文章以及所有子孙分类文章',self:'获取栏目下文章',search:'获取关键字搜索的文章',where:'根据自定义条件获取文章where语句'
* $where=自定义条件
*/
function tpl_get_product_list($cid,$row,$orderby,$table='article',$type='son',$where=false,$display=1){
return tpl_get_article_list($cid,$row,$orderby,'product',$type,$where,$display);
function tpl_get_product_list($cid, $row, $orderby, $table = 'article', $type = 'son', $where = false, $display = 1)
{
return tpl_get_article_list($cid, $row, $orderby, 'product', $type, $where, $display);
}
/**
* 模板-友情链接
*/
function tpl_get_friend_link($type,$row){
$flinkList=cache('DATA_FRIEND_LINK');
if($flinkList===null){
$flinkList= \app\common\model\FriendLink::where('status',1)->order('sort asc')->limit($row)->select();
cache('DATA_FRIEND_LINK',$flinkList);
function tpl_get_friend_link($type, $row)
{
$flinkList = cache('DATA_FRIEND_LINK');
if ($flinkList === null) {
$flinkList = \app\common\model\FriendLink::where('status', 1)->order('sort asc')->limit($row)->select();
cache('DATA_FRIEND_LINK', $flinkList);
}
if($type===0){
if ($type === 0) {
return $flinkList;
}
$flinkListTemp=[];
foreach ($flinkList as $key=>$item){
if($item['image']){
array_push($flinkListTemp,$item);
$flinkListTemp = [];
foreach ($flinkList as $key => $item) {
if ($item['image']) {
array_push($flinkListTemp, $item);
}
}
return $flinkListTemp;
@ -520,19 +534,20 @@ function tpl_get_friend_link($type,$row){
/**
* 模板-poster
*/
function tpl_get_banner($type,$row){
$bannerList=cache('DATA_BANNER');
if($bannerList===null){
$bannerList=Db::name('slides')->where('status',1)->order('sort asc')->limit($row)->select();
cache('DATA_BANNER',$bannerList);
function tpl_get_banner($type, $row)
{
$bannerList = cache('DATA_BANNER');
if ($bannerList === null) {
$bannerList = Db::name('slides')->where('status', 1)->order('sort asc')->limit($row)->select();
cache('DATA_BANNER', $bannerList);
}
if($type===0){
if ($type === 0) {
return $bannerList;
}
$bannerListTemp=[];
foreach ($bannerList as $key=>$item){
if($item['image']){
array_push($bannerListTemp,$item);
$bannerListTemp = [];
foreach ($bannerList as $key => $item) {
if ($item['image']) {
array_push($bannerListTemp, $item);
}
}
return $bannerListTemp;
@ -549,27 +564,27 @@ function tpl_get_banner($type,$row){
* @author 李玉坤
* @date 2021-07-26 23:24
*/
function tpl_get_advert($type,$row){
$advertList=cache('DATA_BANNER');
if($advertList===null){
$advertList=Db::name('advert')->where('status',1)->order('sort asc')->limit($row)->select();
cache('DATA_ADVERT',$advertList);
function tpl_get_advert($type, $row)
{
$advertList = cache('DATA_BANNER');
if ($advertList === null) {
$advertList = Db::name('advert')->where('status', 1)->order('sort asc')->limit($row)->select();
cache('DATA_ADVERT', $advertList);
}
if($type===0){
if ($type === 0) {
return $advertList;
}
$advertListTemp=[];
foreach ($advertList as $key=>$item){
if($item['image']){
array_push($advertListTemp,$item);
$advertListTemp = [];
foreach ($advertList as $key => $item) {
if ($item['image']) {
array_push($advertListTemp, $item);
}
}
return $advertListTemp;
}
if (!function_exists('web_config'))
{
if (!function_exists('web_config')) {
/**
* 获取系统配置值
* @param string $formName
@ -583,27 +598,28 @@ if (!function_exists('web_config'))
function web_config(string $formName): string
{
$webConfig = cache('systemConfig');
if (empty($webConfig)){
$webConfig = Db::name('system_config')->where("status",1)->column('value', 'form_name');
cache('systemConfig',$webConfig);
if (empty($webConfig)) {
$webConfig = Db::name('system_config')->where("status", 1)->column('value', 'form_name');
cache('systemConfig', $webConfig);
}
return $webConfig[$formName]??'';
return $webConfig[$formName] ?? '';
}
}
/**
* 模板-文章标签
*/
function tpl_get_tags_list($tags){
if(!$tags){
function tpl_get_tags_list($tags)
{
if (!$tags) {
return false;
}
$tagArr=explode(',',$tags);
$tagTemp=[];
foreach ($tagArr as $item){
$data['title']=$item;
$data['url']=url('article/tag?t='.urlencode($item));
array_push($tagTemp,$data);
$tagArr = explode(',', $tags);
$tagTemp = [];
foreach ($tagArr as $item) {
$data['title'] = $item;
$data['url'] = url('article/tag?t=' . urlencode($item));
array_push($tagTemp, $data);
}
return $tagTemp;
}
@ -612,28 +628,29 @@ function tpl_get_tags_list($tags){
/**
* 模板-获取页面的面包屑导航
*/
function tpl_get_position($dc,$positionList=array()){
array_push($positionList,$dc);
if($dc['pid']==0){
$htmlstr='<a href="/">首页</a>';
$positionListCount=count($positionList);
for ($x=$positionListCount-1;$x>=0;$x--){
$htmlstr=$htmlstr.'<span>&gt;</span><a href="'.$positionList[$x]['url'].'">'.$positionList[$x]['title'].'</a>';
function tpl_get_position($dc, $positionList = array())
{
array_push($positionList, $dc);
if ($dc['pid'] == 0) {
$htmlstr = '<a href="/">首页</a>';
$positionListCount = count($positionList);
for ($x = $positionListCount - 1; $x >= 0; $x--) {
$htmlstr = $htmlstr . '<span>&gt;</span><a href="' . $positionList[$x]['url'] . '">' . $positionList[$x]['title'] . '</a>';
}
return $htmlstr;
}
//获取父级栏目分类
$parentDc=get_document_category($dc['pid']);
return tpl_get_position($parentDc,$positionList);
$parentDc = get_document_category($dc['pid']);
return tpl_get_position($parentDc, $positionList);
}
//获取顶级栏目名
function GetTopTypename($id=false)
function GetTopTypename($id = false)
{
$id=$id?$id:input('id');
$dc=get_document_category($id);
if((int)$dc['pid']===0){
$id = $id ? $id : input('id');
$dc = get_document_category($id);
if ((int)$dc['pid'] === 0) {
return $dc['title'];
}
@ -641,11 +658,11 @@ function GetTopTypename($id=false)
}
//获取顶级id
function GetTopTypeid($id=false)
function GetTopTypeid($id = false)
{
$id=$id?$id:input('id');
$dc=get_document_category($id);
if((int)$dc['pid']===0){
$id = $id ? $id : input('id');
$dc = get_document_category($id);
if ((int)$dc['pid'] === 0) {
return $dc['id'];
}
@ -653,69 +670,72 @@ function GetTopTypeid($id=false)
}
//获取顶级栏目图片
function GetTopTypeimg($id=false)
function GetTopTypeimg($id = false)
{
$id=$id?$id:input('id');
$dc=get_document_category($id);
if((int)$dc['pid']===0){
$id = $id ? $id : input('id');
$dc = get_document_category($id);
if ((int)$dc['pid'] === 0) {
return $dc['icon'];
}
return GetTopTypeimg($dc['pid']);
}
//获取顶级栏目描述
function GetTopDescription($id=false)
function GetTopDescription($id = false)
{
$id=$id?$id:input('id');
$dc=get_document_category($id);
if((int)$dc['pid']===0){
$id = $id ? $id : input('id');
$dc = get_document_category($id);
if ((int)$dc['pid'] === 0) {
return $dc['description'];
}
return GetTopDescription($dc['pid']);
}
//获取顶级英文名称
function GetTopTypenameen($id=false)
function GetTopTypenameen($id = false)
{
$id=$id?$id:input('id');
$dc=get_document_category($id);
if((int)$dc['pid']===0){
$id = $id ? $id : input('id');
$dc = get_document_category($id);
if ((int)$dc['pid'] === 0) {
return $dc['name'];
}
return GetTopTypenameen($dc['pid']);
}
/**
* 判断当前页面是否在此栏目下
* 主要用于菜单高亮
* $cid=栏目id,首页可不填此参数
* $curr_id=当前页面栏目id,首页可不填此参数
*/
function IsActiveNav($curr_cid=false,$cid=false)
*/
function IsActiveNav($curr_cid = false, $cid = false)
{
if(request()->action()=='search'){
if (request()->action() == 'search') {
return false;
}
//首页
if(!$curr_cid&&!$cid){
if (!$curr_cid && !$cid) {
return true;
}
//一般在首页中要比对的栏目id会为false
if($cid==false){
if ($cid == false) {
return false;
}
//如果分类id相等是在同一页面中
if($cid==$curr_cid){
if ($cid == $curr_cid) {
return true;
}
//判断是否在同一栏目树下。
$parent_id=cache('curr_category_patent_id');
$parent_id = cache('curr_category_patent_id');
$parent_id=explode(',',$parent_id);
$parent_id = explode(',', $parent_id);
if(in_array($cid,$parent_id)){
if (in_array($cid, $parent_id)) {
return true;
}
@ -724,13 +744,14 @@ function IsActiveNav($curr_cid=false,$cid=false)
// 查看是否为手机端的方法
//判断是手机登录还是电脑登录
function ismobile() {
function ismobile()
{
// 如果有HTTP_X_WAP_PROFILE则一定是移动设备
if (isset ($_SERVER['HTTP_X_WAP_PROFILE']))
return true;
//此条摘自TPM智能切换模板引擎适合TPM开发
if(isset ($_SERVER['HTTP_CLIENT']) &&'PhoneClient'==$_SERVER['HTTP_CLIENT'])
if (isset ($_SERVER['HTTP_CLIENT']) && 'PhoneClient' == $_SERVER['HTTP_CLIENT'])
return true;
//如果via信息含有wap则一定是移动设备,部分服务商会屏蔽该信息
if (isset ($_SERVER['HTTP_VIA']))
@ -739,7 +760,7 @@ function ismobile() {
//判断手机发送的客户端标志,兼容性有待提高
if (isset ($_SERVER['HTTP_USER_AGENT'])) {
$clientkeywords = array(
'nokia','sony','ericsson','mot','samsung','htc','sgh','lg','sharp','sie-','philips','panasonic','alcatel','lenovo','iphone','ipod','blackberry','meizu','android','netfront','symbian','ucweb','windowsce','palm','operamini','operamobi','openwave','nexusone','cldc','midp','wap','mobile'
'nokia', 'sony', 'ericsson', 'mot', 'samsung', 'htc', 'sgh', 'lg', 'sharp', 'sie-', 'philips', 'panasonic', 'alcatel', 'lenovo', 'iphone', 'ipod', 'blackberry', 'meizu', 'android', 'netfront', 'symbian', 'ucweb', 'windowsce', 'palm', 'operamini', 'operamobi', 'openwave', 'nexusone', 'cldc', 'midp', 'wap', 'mobile'
);
//从HTTP_USER_AGENT中查找手机浏览器的关键字
if (preg_match("/(" . implode('|', $clientkeywords) . ")/i", strtolower($_SERVER['HTTP_USER_AGENT']))) {

View File

@ -60,7 +60,7 @@ class Article extends Base
if(!is_file(config('view.view_path').'category/'.$listTmp)){
$this->error('模板文件不存在!');
}
trace('列表页模板路径:'.config('view.view_path').'category/'.$listTmp,'debug');
Log::info('列表页模板路径:'.config('view.view_path').'category/'.$listTmp);
//文章兼容字段
$dc['category_id']=$dc['id'];
//判断seo标题是否存在
@ -146,29 +146,6 @@ class Article extends Base
return $this->fetch('article/'.$detailTmp);
}
//自定义页面,可通过参数指定模板文件。完成完全自定义的文件输出。
//可以输出html片段甚至可以输出JSON
//参数指定的模板文件必须位于模板文件夹下且以content_开头以.htm拓展名结尾
public function content()
{
$zzField=input();
if(!isset($zzField['tpl'])){
$this->error('没有指定模板文件!');
}
//将参数传递到模板页面
$this->assign('zzField',$zzField);
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
//读取模板配置,获得模板后缀名
$view_suffix=config('view.view_suffix');
Log::info('详情页模板路径:'.config('view.view_path').'article/'.'content_'.$zzField['tpl'].'.'.$view_suffix);
cache('curr_category_patent_id',false);
$detailTmp = substr($detailTmp,0,strpos($detailTmp,'.'));
return $this->fetch('article/'.$detailTmp);
return $this->fetch();
}
//文章标签页面
public function tag()
{
@ -193,7 +170,8 @@ class Article extends Base
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
return $this->fetch();
$view_suffix=config('view.view_suffix');
return $this->fetch('tag.'.$view_suffix);
}
//搜索页面
@ -219,6 +197,10 @@ class Article extends Base
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
$template = config('view.view_path').'article/search.html';
if(!is_file($template)){
$this->error('模板文件不存在!');
}
return $this->fetch();
}
}

View File

@ -2,8 +2,8 @@
<html lang="zh">
<head>
<title>{$zzField['title']} - {:web_config("title")}</title>
<meta name="keywords" content="{$zzField['keywords']}">
<meta name="description" content="{$zzField['description']}">
<meta name="keywords" content="{$zzField['keywords']}" />
<meta name="description" content="{$zzField['description']}"/>
{include file="public/head" /}
<link rel="stylesheet" href="__LIB__/nprogress/nprogress.min.css">
@ -528,145 +528,24 @@
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<div class="aside-box"><h2 class="widget-title">热门文章</h2>
<div class="aside-box">
<h2 class="widget-title">热门文章</h2>
{zz:arclist row="8" orderby="view desc" type="where"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
1 </span>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-order-table/index1.html"> oracle-EBS甲骨文销售订单下单发放挑库发运(销售到出货全过程)主要相关表(多图)</a>
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>{$field['create_time']}</div>
<div>
2020-12-09
</div>
<div>
<a href="../category/oracle-om/index.html"> Oracle-OM-销售物流</a>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
2 </span>
<span class="hot-post-widget-item-title">
<a href="../decoration-erp/index.html"> 某家装公司项目管理软件系统的设计思路</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-24
</div>
<div>
<a href="../category/talk/index.html"> 学习笔记</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
3 </span>
<span class="hot-post-widget-item-title">
<a href="../oaworkflowapprove/index1.html"> 常见企业OA办公审批流、工作流实现层级审批、层层签核的方式</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-02-28
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
4 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pur-inventory-table/index1.html"> oracle-EBS-采购单创建接收检验入库经历主要表(多图)</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pur-prod/index.html"> Oracle-PROD-采购生产</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
5 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-ap-podetial/index.html"> oracle-EBS-PL/sql AP 发票中匹配的po明细按发票</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-07
</div>
<div>
<a href="../category/oracle-finance/index.html"> Oracle-Finance-财务</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
6 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-price-list/index.html"> oracle EBS PL/sql 查看销售订单的价目表Price List</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
7 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-confirm-transferto-ar/index.html"> oracle-EBS-PL/sql查看销售订单已经确认出货和过账到AR应收的订单行明细查看物流操作时间</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-04
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
8 </span>
<span class="hot-post-widget-item-title">
<a href="../sql-server-max-lineconverttocolumn/index.html"> SQL Server- 行列转换 行转列,多行转多列 &#8211; max 函数用法</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-07
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
</div>
</div>

View File

@ -179,27 +179,25 @@
<div class="post-turn-page-plane">
<div class="post-turn-page post-turn-page-previous" style="background-image:url()">
<div class="post-turn-page-main">
{zz:prenext get="pre" cid="$zzField['category_id']"}
<div>
<a href="../oracle-ebs-pur-inventory-table/index1.html">oracle-EBS-采购单创建接收检验入库经历主要表(多图)</a>
<a href="{:url('/index/article/detail')}?id={$field['id']}">{$field['title']}</a>
</div>
<div class="post-turn-page-link-pre">
<a href="../oracle-ebs-pur-inventory-table/index1.html"><
<上一篇></上一篇>
</a>
<a href="{:url('/index/article/detail')}?id={$field['id']}"><<上一篇></上一篇></a>
</div>
{/zz:prenext}
</div>
</div>
</div>
<div class="post-turn-page post-turn-page-next"
style="background-image:url(../wp-content/uploads/2020/12/oracleAP_Payments_GL_Voucher.png)">
<div class="post-turn-page post-turn-page-next" style="background-image:url(../wp-content/uploads/2020/12/oracleAP_Payments_GL_Voucher.png)">
{zz:prenext get="next" cid="$zzField['category_id']"}
<div class="post-turn-page-main">
<div>
<a href="javascript:;">oracle-EBS-PL/sql AP GL总账付款凭证</a>
</div>
<a href="{:url('/index/article/detail')}?id={$field['id']}">{$field['title']}</a>
<div class="post-turn-page-link-next">
<a href="javascript:;">下一篇>></a>
</div>
</div>
{/zz:prenext}
</div>
</div>
<script>
@ -528,145 +526,24 @@
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<div class="aside-box"><h2 class="widget-title">热门文章</h2>
<div class="aside-box">
<h2 class="widget-title">热门文章</h2>
{zz:arclist row="8" orderby="view desc" type="where"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
1 </span>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-order-table/index1.html"> oracle-EBS甲骨文销售订单下单发放挑库发运(销售到出货全过程)主要相关表(多图)</a>
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>{$field['create_time']}</div>
<div>
2020-12-09
</div>
<div>
<a href="../category/oracle-om/index.html"> Oracle-OM-销售物流</a>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
2 </span>
<span class="hot-post-widget-item-title">
<a href="../decoration-erp/index.html"> 某家装公司项目管理软件系统的设计思路</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-24
</div>
<div>
<a href="../category/talk/index.html"> 学习笔记</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
3 </span>
<span class="hot-post-widget-item-title">
<a href="../oaworkflowapprove/index1.html"> 常见企业OA办公审批流、工作流实现层级审批、层层签核的方式</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-02-28
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
4 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pur-inventory-table/index1.html"> oracle-EBS-采购单创建接收检验入库经历主要表(多图)</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pur-prod/index.html"> Oracle-PROD-采购生产</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
5 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-ap-podetial/index.html"> oracle-EBS-PL/sql AP 发票中匹配的po明细按发票</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-07
</div>
<div>
<a href="../category/oracle-finance/index.html"> Oracle-Finance-财务</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
6 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-price-list/index.html"> oracle EBS PL/sql 查看销售订单的价目表Price List</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
7 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-confirm-transferto-ar/index.html"> oracle-EBS-PL/sql查看销售订单已经确认出货和过账到AR应收的订单行明细查看物流操作时间</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-04
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
8 </span>
<span class="hot-post-widget-item-title">
<a href="../sql-server-max-lineconverttocolumn/index.html"> SQL Server- 行列转换 行转列,多行转多列 &#8211; max 函数用法</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-07
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
</div>
</div>

View File

@ -0,0 +1,357 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<title>{$zzField['meta_title']} - {:web_config("title")}</title>
<meta name="keywords" content="{$zzField['keywords']}" />
<meta name="description" content="{$zzField['description']}" />
{include file="public/head" /}
<script type="text/javascript" src="__JS__/qrcode.min.js" id="corepress_jquery_qrcode-js"s></script>
<script src="__JS__/jquery.lazyload.min.js"></script>
</head>
<body>
<script>NProgress.start();</script>
<div id="app">
{include file="public/header" /}
<div class="top-divider"></div>
<main class="container">
<div class="html-main">
<div class="post-main">
<div class="post-list-page-plane">
<div class="list-plane-title">
<div>搜索内容:{$kw}</div>
</div>
<ul class="post-list">
{zz:list pagesize="10" type="where"}
<li class="post-item">
<div class="post-item-container">
<div class="post-item-thumbnail">
<a href="{$field['url']}" target="_blank">
<img src="__IMG__/loading.gif" data-original="{:file_cdn($field['cover_path'])}"/>
</a>
</div>
<!-- tag链接等待完善-->
{notempty name="$field['tags']"}
<div class="post-item-tags ">
<span class="cat-item">
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],15)}</a>
</span>
</div>
{/notempty}
<div class="post-item-main">
<h2>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content">
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],100)}</a>
</div>
<div class="post-item-info">
<div class="post-item-meta">
<div class="post-item-meta-item">
<span class="post-item-meta-author">
<!-- <img alt="" src="__IMG__/corepress_avatar/1.jpg" srcset="__IMG__/corepress_avatar/1.jpg 2x" class="avatar avatar-24 photo post-item-avatar"-->
<!-- height="24" width="24" loading="lazy"/>-->
{$field['author']}
</span>
<span class="post-item-time">{$field['create_time']}</span>
</div>
<div class="item-post-meta-other">
<span><i class="fas fa-eye" aria-hidden="true"></i>{$field['view']}</span>
<!-- <span><i class="fas fa-comment-alt-lines"></i>0</span>-->
</div>
</div>
</div>
</div>
</div>
</li>
{/zz:list}
</ul>
<div class="pages">
<div class="fenye">
{$pager|raw}
</div>
</div>
</div>
</div>
<div class="sidebar">
<div class="aside-box">
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value="{$kw}"/>
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
</div>
</form>
</div>
<div class="aside-box">
<h2 class="widget-title">句子</h2>
<div class="widget-sentence-placeholder widget-sentence-placeholder-jzmk">
<ul>
<li></li>
<li></li>
</ul>
</div>
<script>
$(document).ready(function () {
widget_sentence_load('djt', '.widget-sentence-placeholder-jzmk');
});
</script>
</div>
<div class="aside-box">
<h2 class="widget-title">热门文章</h2>
{zz:arclist row="6" type="where" orderby="view desc"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>{$field['create_time']}</div>
<div>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
<div class="aside-box">
<h2 class="widget-title">标签云</h2>
<script src="__JS__/TagCloud.js"></script>
<div class="corepress-tag-cloud">
<div class="corepress-tag-container-tag1"></div>
</div>
<style>
.corepress-tagcloud a {
font-size: 12px;
color: #fff;
padding: 0 !important;
}
.corepress-tagcloud a:hover {
color: #fff !important;
}
.tagcloud--item {
color: #fff;
padding: 2px 4px;
border-radius: 3px;
cursor: pointer;
}
.tagcloud--item:hover {
opacity: 1 !important;
z-index: 100 !important;
}
</style>
<script>
var tag = TagCloud(
".corepress-tag-container-tag1",
JSON.parse(
'[{"text":"WordPress","href":"https:\/\/www.lovestu.com\/tag\/wordpress"},{"text":"WordPress\u7248\u672c","href":"https:\/\/www.lovestu.com\/tag\/wordpress%e7%89%88%e6%9c%ac"},{"text":"\u4e3b\u9898","href":"https:\/\/www.lovestu.com\/tag\/%e4%b8%bb%e9%a2%98"},{"text":"\u4ee3\u7801","href":"https:\/\/www.lovestu.com\/tag\/code"},{"text":"\u4f7f\u7528\u6559\u7a0b","href":"https:\/\/www.lovestu.com\/tag\/tutorial"}]'
),
{},
[
"#67C23A",
"#E6A23C",
"#F56C6C",
"#909399",
"#CC9966",
"#FF6666",
"#99CCFF",
"#FF9999",
"#CC6633",
]
);
</script>
</div>
<div class="aside-box">
<h2 class="widget-title">最新评论</h2>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="黯然gg"
src="../avatar/a817af1c94172733c4e559a236053976.jpg"
srcset="
https://sdn.geekzu.org/avatar/a817af1c94172733c4e559a236053976?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">黯然gg</div>
</div>
<div class="widger-comment-time">
<span>7月17日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>
哈哈我换你这个主题了,现在在友链首页了,大佬来个友链(我是不会告你我从十一点多搞到现在的)
博客名称:阿...
</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../applylink.html" target="_blank">申请友情链接</a>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="黑域博客"
src="../avatar/a19c6a43816e575771df29bc689efa17.jpg"
srcset="
https://sdn.geekzu.org/avatar/a19c6a43816e575771df29bc689efa17?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">黑域博客</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>哈哈,我什么时候能上优秀网站</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../corepresswzzs.html" target="_blank"
>CorePress主题优秀网站展示</a
>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="黯然gg"
src="../avatar/a817af1c94172733c4e559a236053976.jpg"
srcset="
https://sdn.geekzu.org/avatar/a817af1c94172733c4e559a236053976?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">黯然gg</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>啊 必须要首页的嘛 我用的主题没有首页链接这个模块儿呀</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../applylink.html" target="_blank">申请友情链接</a>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="Xpower"
src="../avatar/a19c6a43816e575771df29bc689efa17.jpg"
srcset="
https://sdn.geekzu.org/avatar/d88fa0e5183fc60bce09df183aa52f13?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">Xpower</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>这模板可以</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../shortcodeshow.html" target="_blank"
>CorePress主题短代码演示</a
>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="雅魔窝"
src="../avatar/a19c6a43816e575771df29bc689efa17.jpg"
srcset="
https://sdn.geekzu.org/avatar/6836e13db58b6cdca078095a09f95ac3?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">雅魔窝</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>
适合wp高手使用如果用做新手小白可能还需要写更傻瓜式的教程。
</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../wordpresswwznltjzdyzd.html" target="_blank"
>WordPress为文章目录添加自定义字段</a
>
</p>
</div>
</li>
</div>
</div>
</div>
</main>
{include file="public/footer"/}
<script src="__LIB__/highlight/init.js"></script>
</div>
</body>
</html>

View File

@ -24,19 +24,19 @@
<div>{$zzField['title']}</div>
</div>
<ul class="post-list">
{zz:list orderby="create_time desc" type="where"}
{zz:list orderby="create_time desc" type="where" pagesize="10"}
<li class="post-item">
<div class="post-item-container">
<div class="post-item-thumbnail">
<a href="{$field['url']}" target="_blank">
<img src="__IMG__/loading.gif" data-original="{:file_cdn($field['cover_path'])}"/>
<img src="__IMG__/loading.gif" data-original="{:file_cdn($field['cover_path'])}" />
</a>
</div>
<!-- tag链接等待完善-->
{notempty name="$field['tags']"}
<div class="post-item-tags ">
<span class="cat-item">
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],15)}</a>
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],20)}</a>
</span>
</div>
{/notempty}
@ -44,8 +44,8 @@
<h2>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content">
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],40)}</a>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">
{:cn_substr($field['content'],100)}
</div>
<div class="post-item-info">
<div class="post-item-meta">
@ -58,7 +58,7 @@
<span class="post-item-time">{$field['create_time']}</span>
</div>
<div class="item-post-meta-other">
<span><i class="fas fa-eye" aria-hidden="true"></i>{$zzField['view']}</span>
<span><i class="fas fa-eye" aria-hidden="true"></i>{$field['view']}</span>
<!-- <span><i class="fas fa-comment-alt-lines"></i>0</span>-->
</div>
</div>
@ -77,33 +77,18 @@
</div>
<div class="sidebar">
<div class="aside-box">
<form
class="search-form"
action="https://www.lovestu.com"
method="get"
role="search"
>
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input
type="text"
class="search-keyword"
name="s"
placeholder="搜索内容"
value=""
/>
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value=""/>
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">
搜索
</button>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
</div>
</form>
</div>
<div class="aside-box">
<h2 class="widget-title">句子</h2>
<div
class="widget-sentence-placeholder widget-sentence-placeholder-jzmk"
>
<div class="widget-sentence-placeholder widget-sentence-placeholder-jzmk">
<ul>
<li></li>
<li></li>
@ -111,101 +96,28 @@
</div>
<script>
$(document).ready(function () {
widget_sentence_load(
"djt",
".widget-sentence-placeholder-jzmk"
);
widget_sentence_load('djt', '.widget-sentence-placeholder-jzmk');
});
</script>
</div>
<div class="aside-box">
<h2 class="widget-title">热门阅读</h2>
{zz:arclist row="6" typeid="$id" orderby="view desc"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 1 </span>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="../corepress.html"> CorePress主题 v5.1.1</a>
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2021-07-12</div>
<div>{$field['create_time']}</div>
<div>
<a href="php/wordpress.html"> wordpress</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 2 </span>
<span class="hot-post-widget-item-title">
<a href="../odsz01.html"> OD修改软件文本字符串内容</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-04-29</div>
<div>
<a href="asm/绿化破解.html"> 绿化破解</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 3 </span>
<span class="hot-post-widget-item-title">
<a href="../corepresswzzs.html">
CorePress主题优秀网站展示</a
>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2021-03-20</div>
<div>
<a href="php/wordpress.html"> wordpress</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 4 </span>
<span class="hot-post-widget-item-title">
<a href="../uniappzdy.html"> uni-app 自定义组件</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-06-08</div>
<div>
<a href="uniapp.html"> UniApp</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 5 </span>
<span class="hot-post-widget-item-title">
<a href="../ollydbg.html"> OllyDbg官方版和增强版</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-04-21</div>
<div>
<a href="soft.html"> 软件资源</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 6 </span>
<span class="hot-post-widget-item-title">
<a href="../layuigettext.html"> layui 获取select值和文本</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-08-08</div>
<div>
<a href="front.html"> 前端</a>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
<div class="aside-box">
<h2 class="widget-title">标签云</h2>

View File

@ -2,20 +2,24 @@
<html lang="zh">
<head>
<title>{:web_config("title")}</title>
<meta name="keywords" content="{:web_config("keywords")}">
<meta name="description" content="{:web_config("description")}">
<meta name="keywords" content="{:web_config(" keywords
")}">
<meta name="description" content="{:web_config(" description
")}">
{include file="public/head" /}
<link rel="stylesheet" href="__LIB__/swiper/swiper.min.css">
<script src="__LIB__/swiper/swiper.min.js"></script>
<link rel="icon" href="{:web_config("logo")}" type="image/x-icon">
<link rel="icon" href="{:web_config(" logo
")}" type="image/x-icon">
<style>
:root {
--Maincolor: #409EFF !important;
--MaincolorHover: #409EFF !important;
--fontSelectedColor: #3390ff !important;
}
#nprogress .bar {
background: var(--Maincolor)!important;
background: var(--Maincolor) !important;
}
</style>
<script src="__JS__/jquery.lazyload.min.js"></script>
@ -107,12 +111,13 @@
cat: $(this).attr('catid')
}, function (data) {
$('.post-list').html(data);
$("img").lazyload({effect: "fadeIn"}); })
$("img").lazyload({effect: "fadeIn"});
})
});
</script>
</div>
<ul class="post-list">
{zz:list orderby="create_time desc" type="where"}
{zz:list orderby="create_time desc" pagesize="10" type="where" }
<li class="post-item ">
<div class="post-item-container">
<div class="post-item-thumbnail">
@ -130,9 +135,11 @@
<div class="post-item-main">
<h2>
{if $field['is_top']==1}<span class="post-item-sticky">置顶</span>{/if}
<a href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;" target="_blank">{:cn_substr($field['title'],20)}</a>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],40)}</div>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">
{:cn_substr($field['content'],100)}
</div>
<div class="post-item-info">
<div class="post-item-meta">
<div class="post-item-meta-item">
@ -144,8 +151,7 @@
</div>
<div class="item-post-meta-other">
<span><i class="fas fa-eye" aria-hidden="true"></i>{$field['view']}</span>
<!-- 评论数-->
<!-- <span><i class="fas fa-comment-alt-lines"></i>{$field['view']}</span>-->
<!-- <span><i class="fas fa-comment-alt-lines"></i>0</span>-->
</div>
</div>
</div>
@ -155,50 +161,26 @@
{/zz:list}
</ul>
<div class="pages">
<button class="index-load-more-btn"><i class="far fa-circle-notch"></i> 加载更多</button>
<script>
var paged = 2;
var max_page =6;
$('.index-load-more-btn').click(() => {
var btn_cloass = '.index-load-more-btn';
if (paged > max_page) {
$(btn_cloass).text('到底啦');
return;
}
$(btn_cloass).html('<i class="far fa-circle-notch fa-spin"></i> 加载中');
$.post('https://www.lovestu.com/wp-admin/admin-ajax.php', {
action: 'corepress_load_post',
page: paged,
cat: $('.index-tab-item-active').attr('catid')
}, (data) => {
if (data.length == 0) {
$(btn_cloass).html('<i class="far fa-circle-notch"></i> 到底啦');
} else {
$(btn_cloass).html('<i class="far fa-circle-notch"></i> 加载更多');
}
$('.post-list').append(data);
$("img").lazyload({effect: "fadeIn"}); paged++;
})
})
</script>
<div class="fenye">
{$pager|raw}
</div>
</div>
</div>
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<div class="aside-box">
<form class="search-form" action="https://www.lovestu.com" method="get" role="search">
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input type="text" class="search-keyword" name="s" placeholder="搜索内容" value="">
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value=""/>
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
</div>
</form>
</div>
<div class="aside-box"><h2 class="widget-title">句子</h2>
<div class="aside-box">
<h2 class="widget-title">句子</h2>
<div class="widget-sentence-placeholder widget-sentence-placeholder-jzmk">
<ul>
<li></li>
@ -213,7 +195,7 @@
</div>
<div class="aside-box">
<h2 class="widget-title">热门阅读</h2>
{zz:arclist orderby="view desc" type="where"}
{zz:arclist row="6" type="where" orderby="view desc"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">{$i}</span>
@ -242,15 +224,18 @@
color: #fff;
padding: 0 !important;
}
.corepress-tagcloud a:hover {
color: #fff !important;
}
.tagcloud--item {
color: #fff;
padding: 2px 4px;
border-radius: 3px;
cursor: pointer;
}
.tagcloud--item:hover {
opacity: 1 !important;
z-index: 100 !important;

View File

@ -36,7 +36,7 @@
</div>
<div class="header-logo-plane">
<div class="header-logo">
<a href=""><img src="{:file_cdn(web_config('logo'))}" alt=""></a></div>
<a href="/"><img src="{:file_cdn(web_config('logo'))}" alt=""></a></div>
</div>
<div class="mobile-search-btn" onclick="openSearch()">
<i class="fa fa-search"></i>
@ -45,9 +45,9 @@
<div class="dialog-mask" onclick="closeSearch()"></div>
<div class="dialog-plane">
<h2>搜索内容</h2>
<form class="search-form" action="{:url('/article/search')}" method="get" role="search">
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input type="text" class="search-keyword" name="tag" placeholder="搜索内容" value="">
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value="">
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
@ -58,7 +58,10 @@
<div class="header-menu">
<div class="menu-plane">
<nav class="menu-header-plane">
<ul id="menu-%e4%b8%8a%e6%96%b9%e5%af%bc%e8%88%aa%e6%a0%8f" class="menu-header-list">
<ul id="menu-header-list" class="menu-header-list">
<li id="menu-item-128" class="menu-item current_page_item menu-item-128">
<a href="/" aria-current="page">首页</a>
</li>
{zz:channel type="top"}
<li id="menu-item-{$field.id}" class="menu-item {notempty name="field['child']"}menu-item-has-children{/notempty} {:IsActiveNav($cid,$field['id'])?'current-menu-item':''} menu-item-{$field['id']}">
{notempty name="field['child']"}
@ -86,7 +89,6 @@
</div>
<span class="user-menu-main">
<a href="login.html"><button class="login-btn-header">登录</button></a>
</span>
</div>
</div>

View File

@ -1,150 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="__IMG__/favicon.png" type="image/png">
<title>{$zzField['title']}_{:web_config('WEB_SITE_TITLE')}</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="__CSS__/bootstrap.css">
<link rel="stylesheet" href="/template/default/vendors/linericon/style.css">
<link rel="stylesheet" href="__CSS__/font-awesome.min.css">
<link rel="stylesheet" href="/template/default/vendors/owl-carousel/owl.carousel.min.css">
<link rel="stylesheet" href="/template/default/vendors/lightbox/simpleLightbox.css">
<link rel="stylesheet" href="/template/default/vendors/nice-select/css/nice-select.css">
<link rel="stylesheet" href="/template/default/vendors/animate-css/animate.css">
<!-- main css -->
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/responsive.css">
</head>
<body>
<!--================Header Menu Area =================-->
{include file="template/default/head.html"}
<!--================Header Menu Area =================-->
<!--================Home Poster Area =================-->
<section class="home_banner_area">
<div class="banner_inner">
<div class="container">
<div class="row">
<div class="col-lg-5">
<div class="banner_content">
<h2>
呼啦资源网<br>
{:web_config('WEB_SITE_TITLE')}
</h2>
<p>
{:cn_substr(html2text(:web_config('WEB_SITE_DESCRIPTION')),100)}...
</p>
</div>
</div>
<div class="col-lg-7">
<div class="home_right_img">
<img class="img-fluid" src="__IMG__/banner/home-right.png" alt="">
</div>
</div>
</div>
</div>
</div>
</section>
<!--================End Home Poster Area =================-->
<!--================Blog Area =================-->
<section class="blog_area">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="blog_left_sidebar">
{zz:list pagesize="3"}
<article class="row blog_item">
<div class="col-md-3">
<div class="blog_info text-right">
<ul class="blog_meta list">
<li><a>{$field['writer']}<i class="lnr lnr-user"></i></a></li>
<li><a>{:MyDate('Y-m-d',$field['create_time'])}<i class="lnr lnr-calendar-full"></i></a></li>
<li><a>{$field['view']}<i class="lnr lnr-eye"></i></a></li>
</ul>
</div>
</div>
<div class="col-md-9">
<div class="blog_post">
<img src="{$field['cover_path']}" alt="">
<div class="blog_details">
<a href="{$field['url']}">
<h2>{$field['title']}</h2></a>
<p>{:cn_substr($field['description'],400)}...</p>
<a href="{$field['url']}" class="primary_btn"><span>查看更多</span></a>
</div>
</div>
</div>
</article>
{/zz:list}
<nav class="blog-pagination justify-content-center d-flex">
{$pager}
</nav>
</div>
</div>
<div class="col-lg-4">
<div class="blog_right_sidebar">
<aside class="single_sidebar_widget search_widget">
<div class="input-group">
<form action="{:url('Article/search')}" style="width: 100%;">
<input type="text" value="{$kw}" name="kw" placeholder="输入关键字...回车键进行搜索" class="form-control" />
</form>
<!--<input type="text" class="form-control" placeholder="Search Posts">-->
</div><!-- /input-group -->
<div class="br"></div>
</aside>
<aside class="single_sidebar_widget popular_post_widget">
<h3 class="widget_title">热点新闻</h3>
{zz:arclist row="4" typeid="85" orderby="create_time desc"}
<div class="media post_item">
<img src="__IMG__/blog/popular-post/post{$i}.jpg" alt="post">
<div class="media-body">
<a href="{$field['url']}"><h3>{:cn_substr($field['title'],15)}...</h3></a>
<p>{:MyDate('Y-m-d',$field['create_time'])}</p>
</div>
</div>
{/zz:arclist}
<div class="br"></div>
</aside>
</div>
</div>
</div>
</div>
</section>
<!--================Blog Area =================-->
<style type="text/css">
.footer_area {
padding-top: 80px !important;
}
</style>
<!--================Footer Area =================-->
{include file="template/default/footer.html"}
<!--================End Footer Area =================-->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="__JS__/jquery-3.2.1.min.js"></script>
<script src="__JS__/popper.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/stellar.js"></script>
<script src="/template/default/vendors/lightbox/simpleLightbox.min.js"></script>
<script src="/template/default/vendors/nice-select/js/jquery.nice-select.min.js"></script>
<script src="/template/default/vendors/isotope/imagesloaded.pkgd.min.js"></script>
<script src="/template/default/vendors/isotope/isotope-min.js"></script>
<script src="/template/default/vendors/owl-carousel/owl.carousel.min.js"></script>
<script src="__JS__/jquery.ajaxchimp.min.js"></script>
<script src="__JS__/mail-script.js"></script>
<script src="/template/default/vendors/counter-up/jquery.waypoints.min.js"></script>
<script src="/template/default/vendors/counter-up/jquery.counterup.min.js"></script>
<script src="__JS__/theme.js"></script>
</body>
</html>