- 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
29 lines
978 B
PHP
29 lines
978 B
PHP
<tr><th id="infobox-series"><?php echo $listTitle ?: Lang::$achievement['series']; ?></th></tr>
|
|
<tr><td>
|
|
<div class="infobox-spacer"></div>
|
|
<table class="series">
|
|
<?php
|
|
foreach ($list as $idx => $itr):
|
|
echo '<tr><th>'.($idx + 1).'</th><td><div>';
|
|
|
|
$end = array_pop(array_keys($itr));
|
|
foreach ($itr as $k => $i): // itemItr
|
|
switch ($i['side']):
|
|
case 1: $wrap = '<span class="icon-alliance-padded">%s</span>'; break;
|
|
case 2: $wrap = '<span class="icon-horde">%s</span>'; break;
|
|
default: $wrap = '%s'; break;
|
|
endswitch;
|
|
|
|
if ($i['typeId'] == $this->typeId):
|
|
echo sprintf($wrap, '<b>'.$i['name'].'</b>');
|
|
else:
|
|
echo sprintf($wrap, '<a href="?'.$i['typeStr'].'='.$i['typeId'].'">'.$i['name'].'</a>');
|
|
endif;
|
|
|
|
echo $end == $k ? null : '<br />';
|
|
endforeach;
|
|
echo "</div></td></tr>\n";
|
|
endforeach;
|
|
?>
|
|
</table>
|
|
</td></tr>
|