Page/Listview

* refer to Listview template by default name if able
This commit is contained in:
Sarjuuk
2024-02-05 22:36:16 +01:00
parent 6b0f617d1b
commit dd9eaf49ff
53 changed files with 240 additions and 239 deletions

View File

@@ -121,7 +121,7 @@ class EventPage extends GenericPage
if ($hasFilter)
$tabData['note'] = sprintf(Util::$filterResultString, '?npcs&filter=cr=38;crs='.$this->hId.';crv=0');
$this->lvTabs[] = ['creature', $tabData];
$this->lvTabs[] = [CreatureList::$brickFile, $tabData];
}
}
@@ -140,7 +140,7 @@ class EventPage extends GenericPage
if ($hasFilter)
$tabData['note'] = sprintf(Util::$filterResultString, '?objects&filter=cr=16;crs='.$this->hId.';crv=0');
$this->lvTabs[] = ['object', $tabData];
$this->lvTabs[] = [GameObjectList::$brickFile, $tabData];
}
}
@@ -161,7 +161,7 @@ class EventPage extends GenericPage
if ($hasFilter)
$tabData['note'] = sprintf(Util::$filterResultString, '?achievements&filter=cr=11;crs='.$this->hId.';crv=0');
$this->lvTabs[] = ['achievement', $tabData];
$this->lvTabs[] = [AchievementList::$brickFile, $tabData];
}
}
@@ -184,7 +184,7 @@ class EventPage extends GenericPage
if ($hasFilter)
$tabData['note'] = sprintf(Util::$filterResultString, '?quests&filter=cr=33;crs='.$this->hId.';crv=0');
$this->lvTabs[] = ['quest', $tabData];
$this->lvTabs[] = [QuestList::$brickFile, $tabData];
$questItems = [];
foreach (array_column($quests->rewards, Type::ITEM) as $arr)
@@ -221,7 +221,7 @@ class EventPage extends GenericPage
if ($hasFilter)
$tabData['note'] = sprintf(Util::$filterResultString, '?items&filter=cr=160;crs='.$this->hId.';crv=0');
$this->lvTabs[] = ['item', $tabData];
$this->lvTabs[] = [ItemList::$brickFile, $tabData];
}
}
@@ -258,7 +258,7 @@ class EventPage extends GenericPage
$relData = array_merge($relData, $d);
}
$this->lvTabs[] = ['event', array(
$this->lvTabs[] = [WorldEventList::$brickFile, array(
'data' => array_values($relData),
'id' => 'see-also',
'name' => '$LANG.tab_seealso',