* Finish task #116415.

This commit is contained in:
wangyuting
2024-04-15 15:22:35 +08:00
parent 2c39079a49
commit efeec6e937
2 changed files with 13 additions and 14 deletions
+5 -6
View File
@@ -17,18 +17,17 @@ jsVar('yesterdayLabel', $lang->yesterday);
$blockNavCode = 'nav-' . uniqid();
$index = 0;
$count = count($hasViewPriv);
$menus = array();
$moreMenus = array();
foreach($hasViewPriv as $type => $bool)
{
$data = $type == 'story' ? $stories : ${"{$type}s"};
if(empty($data))
{
unset($hasViewPriv[$type]);
continue;
}
if(empty($data)) unset($hasViewPriv[$type]);
}
$count = count($hasViewPriv);
foreach($hasViewPriv as $type => $bool)
{
$selected = key($hasViewPriv);
if(($longBlock && $count > 9 && $index >= 8) || (!$longBlock && $count > 3 && $index >= 2))
{