aowow/template/bricks/filter.tpl.php
Sarjuuk 3a6c86092b Core/Compat
* create namespace Aowow to avoid naming conflicts
 * inclues/libs/ is outside of the Aowow namespace
2025-04-01 22:32:37 +02:00

26 lines
932 B
PHP

<?php namespace Aowow; ?>
<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>