- rewrote currencies, achievements, events, factions - GenericPage: * moved more checks from Util * structured and commented GenericPage to be easier to comprehend * added GenericPage::postCache() to modify cached data before display (e.g. update time for events) - fixed: * parsing events from markdown (e.g. articles) * huge padding of minibox headings (css) * Loot passing jsGlobals to template * ItemList::getExtendedCost passing jsGlobals to template * categories for factions * conflicting GenericPage::$subject when displaying 'notFound' * load of typos
14 lines
411 B
PHP
14 lines
411 B
PHP
<?php
|
|
if (!empty($this->headIcons)):
|
|
foreach ($this->headIcons as $k => $v):
|
|
echo '<div id="h1-icon-'.$k."\" class=\"h1-icon\"></div>\n";
|
|
endforeach;
|
|
?>
|
|
<script type="text/javascript">//<![CDATA[
|
|
<?php
|
|
foreach ($this->headIcons as $k => $v):
|
|
echo "\$WH.ge('h1-icon-".$k."').appendChild(Icon.create('".Util::jsEscape($v)."', 1));\n";
|
|
endforeach;
|
|
?>
|
|
//]]></script>
|
|
<?php endif; ?>
|