Files
aowow/template/globals/spell.tpl.php
Sarjuuk ec5589f323 removing smarty - part X
readded spell/spells
- changes to Lang, since it can no longer access the template
- set required php-version to 5.5.0 (generators were added and are essential to aowow)
- display stats in footer to staff only
2014-07-02 20:19:57 +02:00

18 lines
741 B
PHP

var _ = g_spells;
<?php
foreach ($vars as $id => $data):
echo '_['.$id.']={' .
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
'icon:\''.$data['icon'].'\'' .
'};';
endforeach;
if (isset($this->typeId) && !empty($extra[$this->typeId])):
$x = $extra[$this->typeId];
echo "\n_[".$x['id'].'].tooltip_'.User::$localeString.' = \''.$x['tooltip']."';";
echo "\n_[".$x['id'].'].buff_'.User::$localeString.' = \''.$x['buff']."';";
echo "\n_[".$x['id'].'].spells_'.User::$localeString.' = '.json_encode($x['spells'], JSON_NUMERIC_CHECK).';';
echo "\n_[".$x['id'].'].buffspells_'.User::$localeString.' = '.json_encode($x['buffspells'], JSON_NUMERIC_CHECK).';';
endif;
?>