- rewrote Item/Items - BaseType: fixed querey generation wizh null-values in extraOpts - ItemList: * reworked extendJsonStats() to use ?_itemstats istead of parsing on the fly * moved onUse-components used by xml from extendJsonStats() to separate function * the enhance-string passed with tooltips is now checked first - Loot: class is no longer static - Util::parseItemEnchantment() will now accept and return arrays and does only one single lookup - cuFlags are explained in the infobox, when available - JS: * do NOT strip iconStrings. It rightly can contain whitespaces >.< * removed a redundant $WH.ct in Conditions
37 lines
2 KiB
PHP
37 lines
2 KiB
PHP
<div id="ic<?php echo $this->typeId; ?>" style="float: left"></div>
|
|
<div id="tt<?php echo $this->typeId; ?>" class="wowhead-tooltip" style="float: left; padding-top: 1px"></div>
|
|
<div style="clear: left"></div>
|
|
<div id="sl<?php echo $this->typeId; ?>" style="margin-left: 70px; margin-top: 4px;"></div>
|
|
<div id="ks<?php echo $this->typeId; ?>" style="margin-left: 70px; margin-top: 4px;"></div>
|
|
|
|
<?php if (!empty($this->jsGlobals[6][2]['buff'])): /* not set with items */ ?>
|
|
<h3><?php echo Lang::$spell['_aura']; ?></h3>
|
|
<div id="btt<?php echo $this->typeId; ?>" class="wowhead-tooltip"></div>
|
|
<?php
|
|
endif;
|
|
|
|
/*
|
|
tt: Tooltip
|
|
btt: Buff-Tooltip
|
|
sl: Slider for CharLevel
|
|
ks: Known Spells
|
|
*/
|
|
?>
|
|
|
|
<script type="text/javascript">//<![CDATA[
|
|
$WH.ge('ic<?php echo $this->typeId; ?>').appendChild(Icon.create('<?php echo $this->headIcons[0]; ?>', 2, null, 0, <?php echo $this->headIcons[1]; ?>));
|
|
var
|
|
tt = $WH.ge('tt<?php echo $this->typeId; ?>'),
|
|
<?php if (!empty($this->jsGlobals[6][2]['buff'])): ?>
|
|
btt = $WH.ge('btt<?php echo $this->typeId; ?>'),
|
|
<?php endif; ?>
|
|
sl = $WH.ge('sl<?php echo $this->typeId; ?>'),
|
|
ks = $WH.ge('ks<?php echo $this->typeId; ?>');
|
|
|
|
tt.innerHTML = '<table><tr><td>' + ($WH.g_enhanceTooltip.bind(tt))(<?php echo $this->typeId; ?>, true, true, sl, null, [<?php echo $this->typeId; ?>], ks, null) + '</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(tt, 1, 1);
|
|
<?php if (!empty($this->jsGlobals[6][2]['buff'])): ?>
|
|
btt.innerHTML = '<table><tr><td>' + ($WH.g_enhanceTooltip.bind(btt))(<?php echo $this->typeId; ?>, true, true, sl, tt, [<?php echo $this->typeId; ?>], ks) + '</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(btt, 1, 1);
|
|
<?php endif; ?>
|
|
//]]></script>
|