Templates/Listviews

* removed most templates by sensibly restructuring lvTab-data. Util::toJSON() does the rest.
 * taught Util::toJSON() to recognize values prefixed with $ as js-code
 * use Util::toJSON whenever possible
 * misc
   - mail attachments are displyed again
   - always show all currency rewards on Quest-LVs
   - suppress an error, when encountering unused ItemMods
This commit is contained in:
Sarjuuk
2016-02-10 00:14:55 +01:00
parent fe7f05c89c
commit 08717c36d0
97 changed files with 1638 additions and 2624 deletions

View File

@@ -362,24 +362,18 @@ class AdminPage extends GenericPage
}
foreach ($mainTab as $n => $t)
$this->lvTabs[] = array(
'file' => null,
'data' => $t,
'params' => array(
'name' => $n,
'id' => Util::urlize($n)
)
);
$this->lvTabs[] = [null, array(
'data' => $t,
'name' => $n,
'id' => Util::urlize($n)
)];
foreach ($miscTab as $n => $t)
$this->lvTabs[] = array(
'file' => null,
'data' => $t,
'params' => array(
'name' => $n,
'id' => Util::urlize($n)
)
);
$this->lvTabs[] = [null, array(
'data' => $t,
'name' => $n,
'id' => Util::urlize($n)
)];
}
private function handlePhpInfo()
@@ -428,26 +422,20 @@ class AdminPage extends GenericPage
else
$name .= $p[0];
$this->lvTabs[] = array(
'file' => null,
'data' => $body,
'params' => array(
'id' => strtolower(strtr($name, [' ' => ''])),
'name' => $name
)
);
$this->lvTabs[] = [null, array(
'data' => $body,
'id' => strtolower(strtr($name, [' ' => ''])),
'name' => $name
)];
}
}
else
{
$this->lvTabs[] = array(
'file' => null,
'data' => $buff,
'params' => array(
'id' => strtolower($names[$i]),
'name' => $names[$i]
)
);
$this->lvTabs[] = [null, array(
'data' => $buff,
'id' => strtolower($names[$i]),
'name' => $names[$i]
)];
}
}
}