当前位置: 首页>>代码示例>>PHP>>正文


PHP WoW::GetWoWPath方法代码示例

本文整理汇总了PHP中WoW::GetWoWPath方法的典型用法代码示例。如果您正苦于以下问题:PHP WoW::GetWoWPath方法的具体用法?PHP WoW::GetWoWPath怎么用?PHP WoW::GetWoWPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WoW的用法示例。


在下文中一共展示了WoW::GetWoWPath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: main

 public function main()
 {
     WoW_Template::SetTemplateTheme('wow');
     WoW_Template::SetPageData('body_class', WoW_Locale::GetLocale(LOCALE_DOUBLE));
     // Check query
     $searchQuery = isset($_GET['q']) ? $_GET['q'] : null;
     if ($searchQuery != null && mb_strlen($searchQuery) < 3) {
         $searchQuery = null;
     }
     if (preg_match('/\\@/', $searchQuery)) {
         $fast_access = explode('@', $searchQuery);
         if (isset($fast_access[0], $fast_access[1])) {
             header('Location: ' . WoW::GetWoWPath() . '/wow/' . WoW_Locale::GetLocale() . '/character/' . trim($fast_access[1]) . trim($fast_access[0]) . '/');
             exit;
         }
     }
     WoW_Search::SetSearchQuery($searchQuery);
     // Perform Search
     WoW_Search::PerformSearch();
     // Set active page
     if (isset($_GET['f']) && in_array($_GET['f'], array('search', 'wowarenateam', 'article', 'wowcharacter', 'wowitem', 'post', 'wowguild'))) {
         $page = $_GET['f'];
     } else {
         $page = 'search';
     }
     WoW_Search::SetCurrentPage($page);
     WoW_Template::SetPageIndex('search');
     WoW_Template::SetPageData('page', 'search');
     WoW_Template::SetPageData('searchQuery', $searchQuery);
     WoW_Template::LoadTemplate('page_index');
 }
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:31,代码来源:search.php

示例2: main

 public function main()
 {
     WoW_Template::SetPageIndex('login');
     if (WoW_Account::IsLoggedIn()) {
         header('Location: ' . WoW::GetWoWPath() . '/');
         exit;
     }
     if (isset($_POST['accountName'])) {
         $username = $_POST['accountName'];
         $password = $_POST['password'];
         $persistLogin = isset($_POST['persistLogin']) ? true : false;
         WoW_Account::DropLastErrorCode();
         if (mb_strlen($password) <= 7) {
             WoW_Account::SetLastErrorCode(ERORR_INVALID_PASSWORD_FORMAT);
         }
         if ($username == null) {
             WoW_Account::SetLastErrorCode(ERROR_EMPTY_USERNAME);
         }
         if ($password == null) {
             WoW_Account::SetLastErrorCode(ERROR_EMPTY_PASSWORD);
         }
         if (WoW_Account::PerformLogin($username, $password, $persistLogin)) {
             if (isset($_POST['ref'])) {
                 header('Location: ' . $_POST['ref']);
                 exit;
             }
             header('Location: ' . WoW::GetWoWPath() . '/');
             exit;
         }
         // Other error messages will appear automaticaly.
     }
     WoW_Template::LoadTemplate('page_login', true);
 }
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:33,代码来源:home.php

示例3: main

 public function main()
 {
     $url_data = WoW::GetUrlData('discussion');
     $blog_id = $url_data['blog_id'];
     if (!$blog_id || !WoW_Account::IsLoggedIn()) {
         if (isset($_GET['d_ref'])) {
             header('Location: ' . $_GET['d_ref']);
         } else {
             header('Location: ' . WoW::GetWoWPath() . '/');
         }
         exit;
     }
     $replyToGuid = 0;
     $replyToComment = 0;
     $postDetail = isset($_POST['detail']) ? $_POST['detail'] : null;
     if (isset($_POST['replyTo'])) {
         // have reply
         $reply = explode(':', $_POST['replyTo']);
         if (is_array($reply) && isset($reply[1])) {
             $replyToGuid = $reply[0];
             $replyToComment = $reply[1];
         }
     }
     if ($postDetail != null) {
         DB::WoW()->query("INSERT INTO `DBPREFIX_blog_comments` (blog_id, account, character_guid, realm_id, postdate, comment_text, answer_to) VALUES (%d, %d, %d, %d, %d, '%s', %d)", $blog_id, WoW_Account::GetUserID(), WoW_Account::GetActiveCharacterInfo('guid'), WoW_Account::GetActiveCharacterInfo('realmId'), time(), $postDetail, $replyToComment);
     }
     if (isset($_GET['d_ref'])) {
         header('Location: ' . $_GET['d_ref']);
     } else {
         header('Location: ' . WoW::GetWoWPath() . '/');
     }
 }
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:32,代码来源:discussion.php

示例4: PerformConversionStep

 /**
  * Performs account conversion (merging) step
  * 
  * @access   public
  * @static   WoW_Account::PerformConversionStep($step, $post_data = false)
  * @param    int $step
  * @param    array $post_data = false
  * @category Account Manager Class
  * @return   bool
  **/
 public static function PerformConversionStep($step, $post_data = false)
 {
     switch ($step) {
         case 1:
             // Find account in realm DB and check passwords matching
             if (!is_array($post_data)) {
                 // Wrong post data
                 WoW_Template::SetPageData('conversion_error', true);
                 WoW_Template::SetPageData('account_creation_error_msg', WoW_Locale::GetString('template_account_conversion_error1'));
                 return false;
             }
             $info = DB::Realm()->selectRow("SELECT `id`, `sha_pass_hash` FROM `account` WHERE `username` = '%s' LIMIT 1", $post_data['username']);
             $sha = sha1(strtoupper($post_data['username']) . ':' . strtoupper($post_data['password']));
             if (!$info || $info['sha_pass_hash'] != $sha) {
                 // Wrong post data
                 WoW_Template::SetPageData('conversion_error', true);
                 WoW_Template::SetPageData('account_creation_error_msg', WoW_Locale::GetString('template_account_conversion_error1'));
                 return false;
             }
             // Check account link
             if (DB::WoW()->selectCell("SELECT 1 FROM `DBPREFIX_users_accounts` WHERE `account_id` = %d", $info['id'])) {
                 // Already linked
                 WoW_Template::SetPageData('conversion_error', true);
                 WoW_Template::SetPageData('account_creation_error_msg', WoW_Locale::GetString('template_account_conversion_error2'));
                 return false;
             }
             // All fine
             $_SESSION['conversion_userName'] = $post_data['username'];
             $_SESSION['conversion_userID'] = $info['id'];
             break;
         case 3:
             // Check session
             $conversion_allowed = true;
             if (!isset($_SESSION['conversion_userName']) || !isset($_SESSION['conversion_userID'])) {
                 $conversion_allowed = false;
             } else {
                 if ($_SESSION['conversion_userName'] == null) {
                     $conversion_allowed = false;
                 }
                 if ($_SESSION['conversion_userID'] == 0) {
                     $conversion_allowed = false;
                 }
             }
             if (!$conversion_allowed) {
                 header('Location: ' . WoW::GetWoWPath() . '/account/management/wow-account-conversion.html');
                 exit;
             }
             // Link account
             if (DB::WoW()->query("INSERT INTO `DBPREFIX_users_accounts` VALUES (%d, %d)", self::GetUserID(), (int) $_SESSION['conversion_userID'])) {
                 header('Location: ' . WoW::GetWoWPath() . '/account/management/wow/dashboard.html?accountName=' . $_SESSION['conversion_userName'] . '&region=EU');
                 exit;
             }
             break;
         default:
             return false;
     }
     return true;
 }
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:68,代码来源:class.account.php

示例5: sprintf

            }
            echo sprintf('<tr class="row%d" data-level="%d" data-skill="%d">
										<td class="name">
											<a href="%s" class="color-c%d">
												%s
											</a>
										</td>
										<td class="race" data-raw="%s">
											<img src="%s/wow/static/images/icons/race/%d-%d.gif" class="img" alt="" data-tooltip="%s" />
										</td>
										<td class="cls" data-raw="%s">
											<img src="%s/wow/static/images/icons/class/%d.gif" class="img" alt="" data-tooltip="%s" />
										</td>
										<td class="lvl">%d</td>
										<td class="skill" data-raw="%d">%d</td>
									</tr>', $toggleStyle % 2 ? '1' : '2', $char['level'], $char['professions'][$index]['value'], $char['url'], $char['classID'], $char['name'], $char['race_text'], WoW::GetWoWPath(), $char['raceID'], $char['genderID'], $char['race_text'], $char['class_text'], WoW::GetWoWPath(), $char['classID'], $char['class_text'], $char['level'], $char['professions'][$index]['value'], $char['professions'][$index]['value']);
            ++$toggleStyle;
        }
        echo sprintf('<tr class="no-results" style="display: none">
							<td colspan="8">Nothing found.</td>
                            </tr>
                            </tbody>
                            </table>
                            </div>
                            <script type="text/javascript">
                            //<![CDATA[
                                $(function() {
                                    Professions.tables.push( new Table(\'#professions-table-%d\', { column: 0 }) );
                                });
                            //]]>
                        </script>
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:31,代码来源:wow_content_guild_professions.php

示例6:

<small>You are not signed in. Please <a href="<?php 
echo WoW::GetWoWPath();
?>
/account=signin">sign in</a> to submit a screenshot.</small>

</form>

</div>

<div id="tab-suggest-a-video" style="display: none">

Simply type the URL of the video in the form below.

<div class="pad2"></div>
<form action="<?php 
echo WoW::GetWoWPath();
?>
/video=add&amp;1.2748" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">

URL: <input type="text" name="videourl" style="width: 35%" /> <small>Supported: YouTube only</small>
<div class="pad2"></div>
Title: <input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
<div class="pad"></div>
<input type="submit" value="Submit" />

<div class="pad3"></div>
<small class="q0">Note: Your video will need to be approved before appearing on the site.</small>

</form>

</div>
开发者ID:Kheros,项目名称:wowhead,代码行数:31,代码来源:wowhead_block_contribute.php

示例7: CatchOperations

 public static function CatchOperations(&$loaded)
 {
     // Perform log in (if required)
     if (isset($_GET['login']) || preg_match('/\\?login/', $_SERVER['REQUEST_URI'])) {
         // $_SERVER['REQUEST_URI'] check is required for mod_rewrited URL cases.
         header('Location: ' . WoW::GetWoWPath() . '/login/');
         exit;
     }
     // Perform logout (if required)
     if (isset($_GET['logout']) || preg_match('/\\?logout/', $_SERVER['REQUEST_URI'])) {
         // $_SERVER['REQUEST_URI'] check is required for mod_rewrited URL cases.
         WoW_Account::PerformLogout();
         header('Location: ' . WoW::GetWoWPath() . '/');
         exit;
     }
     // Locale
     if (isset($_GET['locale']) && !preg_match('/lookup/', $_SERVER['REQUEST_URI'])) {
         if (WoW_Locale::IsLocale($_GET['locale'], WoW_Locale::GetLocaleIDForLocale($_GET['locale']))) {
             WoW_Locale::SetLocale($_GET['locale'], WoW_Locale::GetLocaleIDForLocale($_GET['locale']));
             $loaded = true;
             setcookie('wow_locale', WoW_Locale::GetLocale(), strtotime('NEXT YEAR'), '/');
             if (isset($_SERVER['HTTP_REFERER'])) {
                 header('Location: ' . $_SERVER['HTTP_REFERER']);
                 exit;
             } else {
                 header('Location: ' . WoW::GetWoWPath() . '/');
                 exit;
             }
         }
     }
 }
开发者ID:GetPlay,项目名称:WorldOfWarCraft-WebSite,代码行数:31,代码来源:class.wow.php

示例8: foreach

<div id="left-results">
<?php 
$searchResults = WoW_Search::GetSearchResults('article');
if (is_array($searchResults)) {
    foreach ($searchResults as $article) {
        echo sprintf('  <div class="search-result">
        <div class="">
        <div class="result-title">
        <a href="%s/wow/blog/%d" class="search-title">%s</a>
        </div>
        <div class="by-line">
        <a href="?a=%s&amp;s=time">%s</a> -  %s <a href="%s/wow/blog/%d#comments" class="comments-link">%d</a>
        </div>
        <div class="search-content">
        <div class="result-image">
        <a href="%s/wow/blog/%d"><img alt="%s" src="%s/cms/blog_thumbnail/%s"/></a>
        </div>%s<br />
        </div>
        <div class="search-results-url"> /wow/blog/%d</div>
        </div>
        <div class="clear"></div>
        </div>', WoW::GetWoWPath(), $article['id'], $article['title'], urlencode($article['author']), $article['author'], date('d.m.Y H:i', $article['postdate']), WoW::GetWoWPath(), $article['id'], 0, WoW::GetWoWPath(), $article['id'], $article['title'], WoW::GetWoWPath(), $article['image'], $article['desc'], $article['id']);
    }
}
?>
</div>
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:26,代码来源:wow_block_search_table_articles.php

示例9: foreach

<div id="left-results">
    <?php 
$searchResults = WoW_Search::GetSearchResults('wowguild');
if (is_array($searchResults)) {
    foreach ($searchResults as $guild) {
        echo sprintf('
    <div class="search-result">
        <div class="">
            <div class="result-title">
                <a href="%s/wow/%s/guild/%s/%s/" class="search-title">&lt;%s&gt;</a>
            </div>
            <div class="search-content">
                <div class="info">%s / %s</div>
            </div>
            <div class="search-results-url"> /wow/guild/%s/%s/</div>
        </div>
        <div class="clear"></div>
    </div>', WoW::GetWoWPath(), WoW_Locale::GetLocale(), $guild['realmName'], $guild['name'], $guild['name'], $guild['realmName'], WoW_Locale::GetString(WoW_Utils::GetFactionId($guild['raceId']) == FACTION_ALLIANCE ? 'faction_alliance' : 'faction_horde'), $guild['realmName'], $guild['name']);
    }
}
?>
</div>
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:22,代码来源:wow_block_search_results_guilds.php

示例10: GetBreadCrumbsForItem

 /**
  * @param array $item_info
  * @param int   $item_entry = 0
  **/
 public function GetBreadCrumbsForItem($item_info, $item_entry = 0)
 {
     if ($item_entry > 0 || !is_array($item_info)) {
         $item_info = DB::World()->selectRow("SELECT `class` AS `classId`, `subclass` AS `subClassId`, `InventoryType` AS `invType` FROM `item_template` WHERE `entry` = %d LIMIT 1", $item_entry);
     }
     if (!$item_info || !is_array($item_info)) {
         return false;
     }
     $itemsubclass = null;
     if (isset($item_info['classId']) && isset($item_info['subClassId'])) {
         $itemsubclass = DB::Wow()->selectRow("SELECT `subclass_name_%s` AS `subclass`, `class_name_%s` AS `class` FROM `DBPREFIX_item_subclass` WHERE `subclass` = %d AND `class` = %d LIMIT 1", WoW_Locale::GetLocale(), WoW_Locale::GetLocale(), $item_info['subClassId'], $item_info['classId']);
     } elseif (isset($item_info['classId'])) {
         $itemsubclass = DB::Wow()->selectRow("SELECT `class_name_%s` AS `class` FROM `DBPREFIX_item_subclass` WHERE `class` = %d LIMIT 1", WoW_Locale::GetLocale(), $item_info['classId']);
     } elseif (isset($item_info['subClassId'])) {
         $itemsubclass = DB::Wow()->selectRow("SELECT `subclass_name_%s` AS `subclass` FROM `DBPREFIX_item_subclass` WHERE `subclass` = %d LIMIT 1", WoW_Locale::GetLocale(), $item_info['subClassId']);
     }
     if (!$itemsubclass || !is_array($itemsubclass)) {
         return false;
     }
     $breadcrumbs = array();
     $global_url = sprintf('%s/wow/%s/item/', WoW::GetWoWPath(), WoW_Locale::GetLocale());
     $index = 0;
     if (isset($item_info['classId'])) {
         $global_url .= '?classId=' . $item_info['classId'];
         $breadcrumbs[$index] = array('caption' => $itemsubclass['class'], 'link' => $global_url, 'last' => true);
         ++$index;
     }
     if (isset($item_info['subClassId'])) {
         if (strpos($global_url, '?classId=') > 0) {
             $global_url .= '&amp;subClassId=' . $item_info['subClassId'];
         } else {
             $global_url .= '?subClassId=' . $item_info['subClassId'];
         }
         $breadcrumbs[$index] = array('caption' => $itemsubclass['subclass'], 'link' => $global_url, 'last' => true);
         if ($index > 0) {
             $breadcrumbs[$index - 1]['last'] = false;
         }
         ++$index;
     }
     if (isset($item_info['invType'])) {
         if (strpos($global_url, '?') > 0) {
             $global_url .= '&amp;invType=' . $item_info['invType'];
         } else {
             $global_url .= '?invType=' . $item_info['invType'];
         }
         $breadcrumbs[$index] = array('caption' => WoW_Locale::GetString('template_item_invtype_' . $item_info['invType']), 'link' => $global_url, 'last' => true);
         if ($index > 0) {
             $breadcrumbs[$index - 1]['last'] = false;
         }
         ++$index;
     }
     return $breadcrumbs;
 }
开发者ID:GetPlay,项目名称:WorldOfWarCraft-WebSite,代码行数:57,代码来源:class.items.php

示例11: LoadGuildMembers

 private static function LoadGuildMembers()
 {
     if (!self::IsCorrect()) {
         WoW_Log::WriteError('%s : guild was not found.', __METHOD__);
         return false;
     }
     $members = DB::Characters()->select("\n            SELECT\n            `guild_member`.`guid`,\n            `guild_member`.`rank` AS `rankID`,\n            `guild_rank`.`rname` AS `rankName`,\n            `characters`.`name`,\n            `characters`.`race` AS `raceID`,\n            `characters`.`class` AS `classID`,\n            `characters`.`gender` AS `genderID`,\n            `characters`.`level`\n            FROM `guild_member` AS `guild_member`\n            JOIN `guild_rank` AS `guild_rank` ON `guild_rank`.`rid`=`guild_member`.`rank` AND `guild_rank`.`guildid`=%d\n            JOIN `characters` AS `characters` ON `characters`.`guid`=`guild_member`.`guid`\n            WHERE `guild_member`.`guildid`=%d\n        ", self::GetGuildID(), self::GetGuildID());
     if (!$members) {
         WoW_Log::WriteError('%s : unable to find any member of guild %s (GUILDID: %d). Guild is empty?', __METHOD__, self::GetGuildName(), self::GetGuildID());
         return false;
     }
     $roster = array();
     foreach ($members as $member) {
         $member['race_text'] = WoW_Locale::GetString('character_race_' . $member['raceID']);
         $member['class_text'] = WoW_Locale::GetString('character_class_' . $member['classID']);
         $member['url'] = sprintf('%s/wow/%s/character/%s/%s/', WoW::GetWoWPath(), WoW_Locale::GetLocale(), self::GetGuildRealmName(), $member['name']);
         $achievement_ids = DB::Characters()->select("SELECT `achievement` FROM `character_achievement` WHERE `guid` = %d", $member['guid']);
         if (is_array($achievement_ids)) {
             $ids = array();
             foreach ($achievement_ids as $ach) {
                 $ids[] = $ach['achievement'];
             }
             if (is_array($ids)) {
                 $member['achievement_points'] = DB::WoW()->selectCell("SELECT SUM(`points`) FROM `DBPREFIX_achievement` WHERE `id` IN (%s)", $ids);
             } else {
                 $member['achievement_points'] = 0;
             }
         } else {
             $member['achievement_points'] = 0;
         }
         $roster[] = $member;
     }
     self::$guild_roster = $roster;
     unset($roster);
     // Set faction
     self::$guild_factionID = WoW_Utils::GetFactionId(self::GetMemberInfo(0, 'raceID'));
     return true;
 }
开发者ID:GetPlay,项目名称:WorldOfWarCraft-WebSite,代码行数:38,代码来源:class.guild.php

示例12: sprintf

echo sprintf('<a href="javascript:;" class="color-c%d pinned" rel="np" data-tooltip="%s %s (%s)">
										<img src="%s/wow/static/images/icons/race/%d-%d.gif" alt="" />
										<img src="%s/wow/static/images/icons/class/%d.gif" alt="" />
										%d %s
									</a>', WoW_Account::GetActiveCharacterInfo('class'), WoW_Account::GetActiveCharacterInfo('race_text'), WoW_Account::GetActiveCharacterInfo('class_text'), WoW_Account::GetActiveCharacterInfo('realmName'), WoW::GetWoWPath(), WoW_Account::GetActiveCharacterInfo('race'), WoW_Account::GetActiveCharacterInfo('gender'), WoW::GetWoWPath(), WoW_Account::GetActiveCharacterInfo('class'), WoW_Account::GetActiveCharacterInfo('level'), WoW_Account::GetActiveCharacterInfo('name'));
if (is_array($characters)) {
    foreach ($characters as $char) {
        if ($char['guid'] == WoW_Account::GetActiveCharacterInfo('guid') && $char['realmId'] == WoW_Account::GetActiveCharacterInfo('realmId')) {
            continue;
            // Skip active character
        }
        echo sprintf('<a href="%s" class="color-c%d" rel="np" onclick="CharSelect.pin(%d, this); return false;" data-tooltip="%s %s (%s)">
										<img src="%s/wow/static/images/icons/race/%d-%d.gif" alt="" />
										<img src="%s/wow/static/images/icons/class/%d.gif" alt="" />
										%d %s
									</a>', $char['url'], $char['class'], $char['index'], $char['race_text'], $char['class_text'], $char['realmName'], WoW::GetWoWPath(), $char['race'], $char['gender'], WoW::GetWoWPath(), $char['class'], $char['level'], $char['name']);
    }
}
?>
							<div class="no-results hide"><?php 
echo WoW_Locale::GetString('template_characters_not_found');
?>
</div>
						</div>
					</div>
				</div>

				<div class="filter">
					<input type="input" class="input character-filter" value="<?php 
echo WoW_Locale::GetString('template_filter_caption');
?>
开发者ID:GetPlay,项目名称:WorldOfWarCraft-WebSite,代码行数:31,代码来源:wow_block_user_characters.php

示例13: PrintMainMenu

 public static function PrintMainMenu()
 {
     $main_menu = "<ul id=\"menu\">\n%s\n</ul>";
     $menu_item = '<li class="%s"><a href="%s/wow/%s%s" class="%s"><span>%s</span></a></li>';
     $full_menu = null;
     $global_menu = WoW_Template::GetMainMenu();
     foreach ($global_menu as &$menu) {
         $full_menu .= sprintf($menu_item, $menu['key'], WoW::GetWoWPath(), WoW_Locale::GetLocale(), $menu['href'], WoW_Template::GetMenuIndex() == $menu['key'] ? 'active' : null, $menu['title']);
         $full_menu .= "\n";
     }
     return sprintf($main_menu, $full_menu);
 }
开发者ID:GetPlay,项目名称:WorldOfWarCraft-WebSite,代码行数:12,代码来源:class.layout.php

示例14:

</div>
	<div id="price-tooltip-%d" style="display: none">
		<div class="price price-tooltip">
			<span class="float-right">
			<span class="icon-gold">%d</span>
			<span class="icon-silver">%d</span>
			<span class="icon-copper">%d</span>
</span>
			%s
				<br /><span class="float-right">
			<span class="icon-gold">%d</span>
			<span class="icon-silver">%d</span>
			<span class="icon-copper">%d</span>
</span>
				%s
	<span class="clear"><!-- --></span>
		</div>
	</div>
											</td>
											<td class="options">
												<a href="browse?itemId=%d" class="ah-button">%s</a>
												<a href="javascript:;" class="ah-button" onclick="Auction.openCancel(%d);">%s</a>
											</td>
										</tr>', $item['auction_id'], $toggleStyle % 2 ? '1' : '2', $item['name'], WoW::GetWoWPath(), $item['id'], $item['id'], $item['guid'], $item['icon'], WoW::GetWoWPath(), $item['id'], $item['id'], $item['guid'], $item['quality'], $item['name'], WoW_Account::GetActiveCharacterInfo('url'), WoW_Account::GetActiveCharacterInfo('name'), WoW_Locale::GetString('template_auction_you_are_the_seller'), WoW::GetWoWPath(), $item['count'], $item['time'], WoW_Locale::GetString('template_auction_title_time_' . $item['time']), WoW_Locale::GetString('template_auction_text_time_' . $item['time']), WoW_Locale::GetString('template_auction_no_bids'), $item['price_raw'], $item['auction_id'], $item['price']['gold'], $item['price']['silver'], $item['price']['copper'], $item['buyout']['gold'], $item['buyout']['silver'], $item['buyout']['copper'], $item['auction_id'], $item['price']['gold'], $item['price']['silver'], $item['price']['copper'], WoW_Locale::GetString('template_auction_price_per_unit'), $item['buyout']['gold'], $item['buyout']['silver'], $item['buyout']['copper'], WoW_Locale::GetString('template_auction_buyout_per_unit'), $item['id'], WoW_Locale::GetString('template_auction_browse'), $item['auction_id'], WoW_Locale::GetString('template_blog_cancel_report'));
        ++$toggleStyle;
    }
}
?>
							</tbody>
						</table>
					</div>
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:31,代码来源:wow_block_auction_my_lots.php

示例15: foreach

			<a href="<?php 
echo WoW::GetWoWPath();
?>
/wow/forum/"><?php 
echo WoW_Locale::GetString('template_menu_forums');
?>
</a>
		</h3>
	</div>

	<div class="sidebar-content poptopic-list">
            <?php 
$popular = WoW_Forums::GetPopularThreads();
if (is_array($popular)) {
    foreach ($popular as $thread) {
        echo sprintf('<a href="%s/wow/forum/topic/%d">
				<span class="int">
					<span class="title">
						%s
					</span>
					<span class="desc">
						%s <span class="loc">%s</span>
					</span>
				</span>
			</a>', WoW::GetWoWPath(), $thread['thread_id'], $thread['title'], WoW_Locale::GetString('template_forums_in'), $thread['categoryTitle']);
    }
}
?>
	</div>
</div>
开发者ID:JunkyBulgaria,项目名称:WoWCS,代码行数:30,代码来源:wow_page_forums_sidebar.php


注:本文中的WoW::GetWoWPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。