當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WoW::GetStaticUrl方法代碼示例

本文整理匯總了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);
 }
開發者ID:Kheros,項目名稱:wowhead,代碼行數:4,代碼來源:class.template.php

示例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':
開發者ID:Kheros,項目名稱:wowhead,代碼行數:31,代碼來源:wowhead_block_header.php

示例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: [';
開發者ID:Kheros,項目名稱:wowhead,代碼行數:31,代碼來源:wowhead_content_item.php


注:本文中的WoW::GetStaticUrl方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。