Ejemplo n.º 1
0
?>
;
</script>

<script type="text/javascript">//<![CDATA[
$.extend(window, {g_staticUrl: '<?php 
echo WoW::GetStaticUrl();
?>
', g_serverTime: new Date('<?php 
echo date('Y/m/d H:i:s');
?>
')});
//]]></script>

<?php 
echo WoW_Template::GetJSForPage();
switch (WoW_Template::GetPageIndex()) {
    case 'item':
    case 'items':
        echo sprintf('<script type="text/javascript" src="%sdata=weight-presets.zones"></script>', WoW::GetUrl());
        break;
    case 'talent':
        echo sprintf('<script type="text/javascript" src="%sdata=glyphs"></script>', WoW::GetUrl(), WoW_Locale::GetLocaleID());
        break;
    case 'npc':
        echo sprintf('<script type="text/javascript" src="%sdata=zones"></script>', WoW::GetUrl(), WoW_Locale::GetLocaleID());
        break;
    case 'search':
        echo sprintf('<script type="text/javascript" src="%sdata=realms.weight-presets"></script>', WoW::GetUrl(), WoW_Locale::GetLocaleID());
        break;
}