更新:资源文件更新
|
@ -128,18 +128,21 @@ class Category extends Base
|
||||||
{
|
{
|
||||||
$crumbs = [];
|
$crumbs = [];
|
||||||
$category = self::getById($currentId);
|
$category = self::getById($currentId);
|
||||||
if($category) {
|
if($category['parent_id'] == 0){
|
||||||
if($category['parent_id'] != 0){
|
$crumbs[] = $category;
|
||||||
$categoryIds = explode(',', trim($category['path'], ','));
|
}else{
|
||||||
$categories = self::where('id', 'in', $categoryIds)->column('*', 'id');
|
$categoryIds = explode(',', trim($category['path'], ','));
|
||||||
foreach($categoryIds as $id){
|
$categories = self::alias('c')
|
||||||
if(isset($categories[$id])){
|
->leftJoin('model m', 'c.model_id = m.id')
|
||||||
$crumbs[] = $categories[$id]['title'];
|
->where('c.id', 'in', $categoryIds)
|
||||||
}
|
->column('c.*,m.template', 'c.id');
|
||||||
}
|
foreach($categoryIds as $id){
|
||||||
}
|
if(isset($categories[$id])){
|
||||||
$crumbs[] = $category['title'];
|
$crumbs[] = $categories[$id];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
$crumbs[] = $category;
|
||||||
|
}
|
||||||
return $crumbs;
|
return $crumbs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ input,select,textarea{outline:medium none; resize: none;}
|
||||||
.foot-box .lower-box .ewm img{ width: 134px;}
|
.foot-box .lower-box .ewm img{ width: 134px;}
|
||||||
|
|
||||||
.page-banner{ height: 40.625rem; position: relative; background-position: center; background-size: cover; position: relative; z-index: 2;}
|
.page-banner{ height: 40.625rem; position: relative; background-position: center; background-size: cover; position: relative; z-index: 2;}
|
||||||
.page-banner .info{ width: 100%; position: absolute; left: 0; bottom: 2.5rem; color: #fff;}
|
.page-banner .info{ width: 100%; position: absolute; left: 0; bottom: 2.5rem; color: #fff; padding-bottom: ;}
|
||||||
.page-banner .info strong{ font-size: 3.125rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
|
.page-banner .info strong{ font-size: 3.125rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
|
||||||
.page-banner .info p{ font-size: 1.875rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
|
.page-banner .info p{ font-size: 1.875rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
|
||||||
.page-banner .info .w-1200{ position: relative;}
|
.page-banner .info .w-1200{ position: relative;}
|
||||||
|
|
After Width: | Height: | Size: 499 KiB |
After Width: | Height: | Size: 571 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 173 KiB |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 117 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 92 KiB |
|
@ -3,7 +3,7 @@
|
||||||
<div class="all_center_box">
|
<div class="all_center_box">
|
||||||
{php}
|
{php}
|
||||||
$bgImg = '__IMG__/page_ban1.jpg'; // 默认背景图
|
$bgImg = '__IMG__/page_ban1.jpg'; // 默认背景图
|
||||||
if (isset($category) && !empty(trim($category['src'])) && file_exists('./'.$category['src'])) {
|
if (isset($category) && !empty(trim($category['src'])) && file_exists('.'.$category['src'])) {
|
||||||
$bgImg = $category.src;
|
$bgImg = $category.src;
|
||||||
}
|
}
|
||||||
{/php}
|
{/php}
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
$target = '';
|
$target = '';
|
||||||
}
|
}
|
||||||
$imgSrc = '__IMG__/article_bg.jpg';
|
$imgSrc = '__IMG__/article_bg.jpg';
|
||||||
if (!empty(trim($item['src'])) && file_exists('./'.$item['src'])) {
|
if (!empty(trim($item['src'])) && file_exists('.'.$item['src'])) {
|
||||||
$imgSrc = $item['src'];
|
$imgSrc = $item['src'];
|
||||||
}
|
}
|
||||||
{/php}
|
{/php}
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
$target = '';
|
$target = '';
|
||||||
}
|
}
|
||||||
$imgSrc = '__IMG__/article_bg.jpg';
|
$imgSrc = '__IMG__/article_bg.jpg';
|
||||||
if (!empty(trim($item['src'])) && file_exists('./'.$item['src'])) {
|
if (!empty(trim($item['src'])) && file_exists('.'.$item['src'])) {
|
||||||
$imgSrc = $item['src'];
|
$imgSrc = $item['src'];
|
||||||
}
|
}
|
||||||
{/php}
|
{/php}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{if $isContent}
|
{if $isContent}
|
||||||
{foreach $cateCrumbs as $k => $cate}
|
{foreach $cateCrumbs as $k => $cate}
|
||||||
{if $k != 0}-{/if}
|
{if $k != 0}-{/if}
|
||||||
<a><cite>{$cate}</cite></a>
|
<a><cite>{$cate.title}</cite></a>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{elseif !empty($rule) /}
|
{elseif !empty($rule) /}
|
||||||
<a><cite>{$rule.title}</cite></a>
|
<a><cite>{$rule.title}</cite></a>
|
||||||
|
|