aowow/template/bricks/filter.tpl.php
Sarjuuk 0ff0e5b59e Profiler/Frontend
* add pages and templates to display arena teams, guilds and chars
2018-03-22 18:17:16 +01:00

24 lines
905 B
PHP

<script type="text/javascript">//<![CDATA[
<?php if (isset($this->region) && isset($this->realm)): ?>
pr_setRegionRealm($WH.ge('fi').firstChild, '<?=$this->region; ?>', '<?=$this->realm; ?>');
pr_onChangeRace();
<?php
endif;
if (!empty($fi['init'])):
echo " fi_init('".$fi['init']."');\n";
elseif (!empty($fi['type'])):
echo " var fi_type = '".$fi['type']."'\n";
endif;
if (!empty($fi['sc'])):
echo ' fi_setCriteria('.Util::toJSON($fi['sc']['cr'] ?: []).', '.Util::toJSON($fi['sc']['crs'] ?: []).', '.Util::toJSON($fi['sc']['crv'] ?: []).");\n";
endif;
if (!empty($fi['sw'])):
echo ' fi_setWeights('.Util::toJSON($fi['sw']).", 0, 1, 1);\n";
endif;
if (!empty($fi['ec'])):
echo ' fi_extraCols = '.Util::toJSON($fi['ec']).";\n";
endif;
?>
//]]></script>