更新:资源文件更新
|
@ -128,18 +128,21 @@ class Category extends Base
|
|||
{
|
||||
$crumbs = [];
|
||||
$category = self::getById($currentId);
|
||||
if($category) {
|
||||
if($category['parent_id'] != 0){
|
||||
$categoryIds = explode(',', trim($category['path'], ','));
|
||||
$categories = self::where('id', 'in', $categoryIds)->column('*', 'id');
|
||||
foreach($categoryIds as $id){
|
||||
if(isset($categories[$id])){
|
||||
$crumbs[] = $categories[$id]['title'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$crumbs[] = $category['title'];
|
||||
}
|
||||
if($category['parent_id'] == 0){
|
||||
$crumbs[] = $category;
|
||||
}else{
|
||||
$categoryIds = explode(',', trim($category['path'], ','));
|
||||
$categories = self::alias('c')
|
||||
->leftJoin('model m', 'c.model_id = m.id')
|
||||
->where('c.id', 'in', $categoryIds)
|
||||
->column('c.*,m.template', 'c.id');
|
||||
foreach($categoryIds as $id){
|
||||
if(isset($categories[$id])){
|
||||
$crumbs[] = $categories[$id];
|
||||
}
|
||||
}
|
||||
$crumbs[] = $category;
|
||||
}
|
||||
return $crumbs;
|
||||
}
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ input,select,textarea{outline:medium none; resize: none;}
|
|||
.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 .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 p{ font-size: 1.875rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
|
||||
.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">
|
||||
{php}
|
||||
$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;
|
||||
}
|
||||
{/php}
|
||||
|
@ -37,7 +37,7 @@
|
|||
$target = '';
|
||||
}
|
||||
$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'];
|
||||
}
|
||||
{/php}
|
||||
|
@ -76,7 +76,7 @@
|
|||
$target = '';
|
||||
}
|
||||
$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'];
|
||||
}
|
||||
{/php}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{if $isContent}
|
||||
{foreach $cateCrumbs as $k => $cate}
|
||||
{if $k != 0}-{/if}
|
||||
<a><cite>{$cate}</cite></a>
|
||||
<a><cite>{$cate.title}</cite></a>
|
||||
{/foreach}
|
||||
{elseif !empty($rule) /}
|
||||
<a><cite>{$rule.title}</cite></a>
|
||||
|
|