debug
This commit is contained in:
@@ -127,14 +127,17 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{/video:categorytype}
|
{/video:categorytype}
|
||||||
|
|
||||||
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
|
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
|
||||||
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
|
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
|
||||||
|
{if $arrChildrenCategory['v_category'] && !empty($arrChildrenCategory['v_category'])}
|
||||||
<li class="col-lg-5 col-md-5 col-sm-5 col-xs-3 ">
|
<li class="col-lg-5 col-md-5 col-sm-5 col-xs-3 ">
|
||||||
<a class="btn btn-sm btn-block {if $arrChildrenCategory.v_category_en == $Request.route.strCategory}btn-warm{else}btn-default{/if}"
|
<a class="btn btn-sm btn-block {if $arrChildrenCategory.v_category_en == $Request.route.strCategory}btn-warm{else}btn-default{/if}"
|
||||||
href='{site:vclurl parent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/}'>
|
href='{site:vclurl parent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"/}'>
|
||||||
{$arrChildrenCategory.v_category}
|
{$arrChildrenCategory.v_category}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/video:categorytype}
|
{/video:categorytype}
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class VideoCategoryModel extends MongoModel
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'v_category_en' => 'han-ju',
|
'v_category_en' => 'han-ju',
|
||||||
'name' => '韩剧',
|
'v_category' => '韩剧',
|
||||||
"children" => []
|
"children" => []
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -350,7 +350,8 @@ class StaticConfig
|
|||||||
*/
|
*/
|
||||||
static function getVideoCategoryTypeFilter(string $strType): array
|
static function getVideoCategoryTypeFilter(string $strType): array
|
||||||
{
|
{
|
||||||
return VideoCategoryModel::getCustomCategory($strType);
|
$arrCategoryType = VideoCategoryModel::getCustomCategory($strType);
|
||||||
|
return $arrCategoryType ;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user