mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
Update headermenu.tpl and Category model
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user