mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* removed tooltip-highlight when there is no tooltip to display Spells/Tooltips * fixed ancient copy-paste error and 'greater than or equal' conditions are now always evaluated as such
119 lines
3.6 KiB
PHP
119 lines
3.6 KiB
PHP
<?php $this->brick('header'); ?>
|
|
|
|
<div class="main" id="main">
|
|
<div class="main-precontents" id="main-precontents"></div>
|
|
<div class="main-contents" id="main-contents">
|
|
|
|
<?php
|
|
$this->brick('announcement');
|
|
|
|
$this->brick('pageTemplate');
|
|
|
|
$this->brick('infobox');
|
|
?>
|
|
|
|
<div class="text">
|
|
|
|
<?php $this->brick('redButtons'); ?>
|
|
|
|
<h1 class="h1-icon"><?php echo $this->name; ?></h1>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<?php $this->brick('article'); ?>
|
|
|
|
|
|
<h3><?php echo Lang::enchantment('details'); ?></h3>
|
|
|
|
<table class="grid" id="spelldetails">
|
|
<colgroup>
|
|
<col width="8%" />
|
|
<col width="42%" />
|
|
<col width="50%" />
|
|
</colgroup>
|
|
<?php
|
|
if (!empty($this->activateCondition)):
|
|
?>
|
|
<tr>
|
|
<th><?php echo Lang::enchantment('activation'); ?></th>
|
|
<td colspan="2"><?php echo $this->activateCondition; ?></td>
|
|
</tr>
|
|
<?php
|
|
endif;
|
|
|
|
foreach ($this->effects as $i => $e):
|
|
?>
|
|
<tr>
|
|
<th><?php echo Lang::spell('_effect').' #'.$i; ?></th>
|
|
<td colspan="3" style="line-height: 17px">
|
|
<?php
|
|
echo ' '.$e['name'].(!empty($e['tip']) ? Lang::main('colon').'(<span '.(User::isInGroup(U_GROUP_EMPLOYEE) ? 'class="tip" ' : '').'id="efftip-'.$i.'"></span>)' : '').'<small>';
|
|
|
|
if (isset($e['value'])):
|
|
echo '<br>'.Lang::spell('_value').Lang::main('colon').$e['value'];
|
|
endif;
|
|
|
|
if (!empty($e['proc'])):
|
|
echo '<br>';
|
|
|
|
if ($e['proc'] < 0):
|
|
echo sprintf(Lang::spell('ppm'), Lang::nf(-$e['proc'], 1));
|
|
elseif ($e['proc'] < 100.0):
|
|
echo Lang::spell('procChance').Lang::main('colon').$e['proc'].'%';
|
|
endif;
|
|
endif;
|
|
|
|
echo "</small>\n";
|
|
|
|
if (!empty($e['tip'])):
|
|
?>
|
|
<script type="text/javascript">
|
|
<?php
|
|
echo " \$WH.ae(\$WH.ge('efftip-".$i."'), \$WH.ct(LANG.traits['".$e['tip'][1]."'][0]));\n";
|
|
if (User::isInGroup(U_GROUP_EMPLOYEE)):
|
|
echo " g_addTooltip(\$WH.ge('efftip-".$i."'), 'Object: ".$e['tip'][0]."', 'q');\n";
|
|
endif;
|
|
?>
|
|
</script>
|
|
<?php
|
|
endif;
|
|
|
|
|
|
if (isset($e['icon'])):
|
|
?>
|
|
<table class="icontab">
|
|
<tr>
|
|
<th id="icontab-icon<?php echo $i; ?>"></th>
|
|
<?php
|
|
echo ' <td>'.(strpos($e['icon']['name'], '#') ? $e['icon']['name'] : sprintf('<a href="?spell=%d">%s</a>', $e['icon']['id'], $e['icon']['name']))."</td>\n";
|
|
?>
|
|
<th></th><td></td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
<?php echo '$WH.ge(\'icontab-icon'.$i.'\').appendChild(g_spells.createIcon('.$e['icon']['id'].', 1, '.$e['icon']['count']."));\n"; ?>
|
|
</script>
|
|
<?php
|
|
endif;
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
endforeach;
|
|
?>
|
|
</table>
|
|
|
|
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
|
|
</div>
|
|
|
|
<?php
|
|
$this->brick('lvTabs', ['relTabs' => true]);
|
|
|
|
$this->brick('contribute');
|
|
?>
|
|
<div class="clear"></div>
|
|
</div><!-- main-contents -->
|
|
</div><!-- main -->
|
|
|
|
<?php $this->brick('footer'); ?>
|