';
- if ($this->type == Type::OBJECT):
- echo Lang::gameObject('foundIn');
- elseif ($this->type == Type::SOUND):
- echo Lang::sound('foundIn');
- elseif ($this->type == Type::NPC):
- echo Lang::npc('foundIn');
- elseif ($this->type == Type::AREATRIGGER):
- echo Lang::areatrigger('foundIn');
- else:
- echo "UNKNOWN TYPE";
- endif;
+ echo $this->map['foundIn'];
echo '
';
- $extra = $this->map['extra'];
- echo Lang::concat($this->map['mapperData'], true, function ($areaData, $areaId) use ($extra) {
- return ''.$extra[$areaId].' ('.array_sum(array_column($areaData, 'count')).')';
+ echo Lang::concat($this->map['mapperData'], true, function ($areaData, $areaId) {
+ return ''.$this->map['extra'][$areaId].' ('.array_sum(array_column($areaData, 'count')).')';
});
echo ". \n";
diff --git a/template/pages/item.tpl.php b/template/pages/item.tpl.php
index 6e0f549c..8bc7d256 100644
--- a/template/pages/item.tpl.php
+++ b/template/pages/item.tpl.php
@@ -31,6 +31,11 @@ endif;
$this->brick('article');
+if (isset($this->map)):
+ echo "