/item/{id}'; Companion.setData({ <?php foreach ($mounts as &$mount) { echo sprintf(' %d: {name: "%s", icon: "%s", spellId: %d, qualityId: %d, npcId: %d, source: "%s"%s%s},', $mount['spell'], $mount['name'], $mount['icon'], $mount['spell'], $mount['quality'], $mount['npc_id'], str_replace(array('"', '/wow/' . WoW_Locale::GetLocale() . '/'), array('\\"', WoW::GetWoWPath() . '/wow/' . WoW_Locale::GetLocale() . '/'), $mount['sourceText']), $mount['item_id'] > 0 ? ', itemId: ' . $mount['item_id'] : null, $mount['type'] == 1 ? ', type: ' . $mount['type'] : null); } ?> }); Companion.grid = new DataSet('#companions', { elementControls: '.data-options', elementRow: '.grid-item, .no-results', altRows: false, results: 24, totalResults: <?php echo WoW_Characters::GetCollectedMountsCount() + WoW_Characters::GetNotCollectedMountsCount(); ?> , paging: true, cache: true, afterProcess: Companion.afterProcess }); Companion.msg = { companion: '<?php echo WoW_Locale::GetString('template_companion_js_companion'); ?> ', mount: '<?php echo WoW_Locale::GetString('template_companion_js_mount'); ?> ',