diff --git a/view/page/advice.html b/view/page/advice.html index e7498e9..93d3933 100755 --- a/view/page/advice.html +++ b/view/page/advice.html @@ -1,33 +1,28 @@ -{layout name="layout_two"/} +{layout name="layout"/} {php} +use app\model\Article; use app\model\Category; -$position = Category::getPosition($category["id"]); +$childrenMenu = Category::getChildrenByParentId($topCategoryId); {/php} -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
{$blocks['accept-only']['value']}
-
{$blocks['tel']['value']}
-
+ +{include file="public/about_second" /} + + +
+
+ -
-
{$blocks['title']['value']}
-
+
+
{$blocks['title']['value']}
+
{$blocks['info']['value']|raw}
diff --git a/view/public/about_second.html b/view/public/about_second.html index f1d5eb4..f4198a2 100644 --- a/view/public/about_second.html +++ b/view/public/about_second.html @@ -15,8 +15,10 @@ {$path['title'] ?? ''} {/if} {/foreach} - {if $category['id'] != 40} + {if !in_array($category['id'],[39,40]) && $Request.Action != 'index'} {$category['title'] ?? ''} + {elseif $Request.Action == 'index'} + {$category['title'] ?? ''} {/if} {$Request.Action == 'detail' ? ($item.title ?? '') : ''}