Update headermenu.tpl and Category model

This commit is contained in:
DariusIII
2018-01-11 12:38:15 +01:00
parent bff654437e
commit 6b59c40bac
6 changed files with 7 additions and 6 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-01-11 DariusIII
* CHg: Update headermenu.tpl and Category model
* Chg: Update Releases and Genres classes
* Chg: Update Categorize and Regexes classes
* Chg: Remove nntmux/Category class and move its functions into Category model
+2 -2
View File
@@ -439,13 +439,13 @@ class Category extends Model
if ($arrsql !== null) {
$arr = $arrsql;
} else {
$arr = $sql->get();
$arr = $sql->get()->toArray();
$expiresAt = Carbon::now()->addSeconds(NN_CACHE_EXPIRY_LONG);
Cache::put(md5(implode(',', $excludedCats).implode(',', $roleExcludedCats)), $arr, $expiresAt);
}
foreach ($arr as $key => $val) {
if ($val['id'] === '0') {
if ($val['id'] === self::OTHER_ROOT) {
$item = $arr[$key];
unset($arr[$key]);
$arr[] = $item;
+1 -1
View File
@@ -180,7 +180,7 @@
</ul>
</li>
{/if}
{if $parentcat.id === "0"}
{if $parentcat.id == {$catClass::OTHER_ROOT}}
<li class="nav-parent">
<a href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" data-delay="30">
<i class="zmdi zmdi-thumb-up-down"></i> Other</a>
+1 -1
View File
@@ -154,7 +154,7 @@
</ul>
</li>
{/if}
{if $parentcat.id === "0"}
{if $parentcat.id == {$catClass::OTHER_ROOT}}
<li class="dropdown">
<a id="dropOther" class="dropdown-hover" data-hover="dropdown" href="#">Other <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropOther">
+1 -1
View File
@@ -201,7 +201,7 @@
</ul>
</li>
{/if}
{if $parentcat.id === "0"}
{if $parentcat.id == {$catClass::OTHER_ROOT}}
<li class="nav-parent">
<a href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"
data-delay="30">
+1 -1
View File
@@ -180,7 +180,7 @@
</ul>
</li>
{/if}
{if $parentcat.id === "0"}
{if $parentcat.id == {$catClass::OTHER_ROOT}}
<li class="nav-parent">
<a href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" data-delay="30">
<i class="fa fa-bolt"></i> Other<i class="fa fa-angle-down"></i></a>