本文整理汇总了PHP中WoW::GetStaticUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP WoW::GetStaticUrl方法的具体用法?PHP WoW::GetStaticUrl怎么用?PHP WoW::GetStaticUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WoW
的用法示例。
在下文中一共展示了WoW::GetStaticUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PrintJS
private static function PrintJS($path, $version = 0)
{
return sprintf("<script type=\"text/javascript\" src=\"%s%s?%d\"></script>\n", WoW::GetStaticUrl(), $path, $version);
}
示例2: date
echo WoW::GetCurrentPageUrl();
?>
';
var wowheadLocale = '<?php
echo WoW_Locale::GetLocale(LOCALE_SPLIT);
?>
';
var wowheadLocaleID = <?php
echo WoW_Locale::GetLocaleID();
?>
;
</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':
示例3: sprintf
'); __ = $WH.ge('sl<?php
echo $proto->entry;
?>
');
_.innerHTML = '<table><tr><td>' + ($WH.g_enhanceTooltip.bind(_))(<?php
echo $proto->entry;
?>
, true, true, __) + '</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>';
$WH.Tooltip.fixSafe(_, 1, 1, __);
//]]></script>
<?php
if ($proto->faction >= FACTION_HORDE) {
$current_faction = $proto->faction;
$opposite_faction = $proto->faction == FACTION_ALLIANCE ? FACTION_HORDE : FACTION_ALLIANCE;
$convert_item = WoW_Items::GetBasicItemInfo($proto->faction_convert);
echo sprintf(WoW_Locale::GetString('template_item_faction_conversion'), WoW::GetWoWPath(), $proto->faction_convert, $convert_item['quality'], WoW::GetStaticUrl(), $convert_item['icon'], isset($convert_item['name_loc']) && $convert_item['name_loc'] != null ? $convert_item['name_loc'] : $convert_item['name'], WoW_Locale::GetString('template_faction_string_' . $opposite_faction), WoW_Locale::GetString('faction_' . WoW_Locale::GetString('template_faction_string_' . $opposite_faction)));
}
?>
<h2 class="clear">Related</h2>
</div>
<div id="jkbfksdbl4"></div>
<div id="lkljbjkb574" class="listview">
</div>
<script type="text/javascript">//<![CDATA[
var tabsRelated = new Tabs({parent: $WH.ge('jkbfksdbl4'), trackable: 'Item'});
<?php
if (is_array($vendors)) {
$count = count($vendors);
echo 'new Listview({template: \'npc\', id: \'sold-by\', name: LANG.tab_soldby, tabs: tabsRelated, parent: \'lkljbjkb574\', hiddenCols: [\'level\', \'type\'], extraCols: [Listview.extraCols.stock, Listview.extraCols.cost], data: [';