// Descrition if ($proto->description) { echo sprintf('<li class="color-tooltip-yellow">%s</li>', $proto->description); } if ($proto->SellPrice > 0) { $sell_price = WoW_Utils::GetMoneyFormat($proto->SellPrice); echo sprintf('<li>%s', WoW_Locale::GetString('template_item_sell_price')); $sMoney = array('gold', 'silver', 'copper'); foreach ($sMoney as $money) { if ($sell_price[$money] > 0) { echo sprintf('<span class="icon-%s">%d</span>', $money, $sell_price[$money]); } } echo '</li>'; } if (WoW_Template::GetPageData('tooltip') == true) { $source = WoW_Items::GetItemSource($proto->entry); if ($source) { switch ($source['type']) { case 'sourceType.creatureDrop': break; case 'sourceType.questReward': echo '<ul class="item-specs"><li><span class="color-tooltip-yellow">Quest:</span> <span data-quest="' . $source['questId'] . '">' . $source['Title'] . '</span></li>' . ($source['questZone'] > 0 ? '<li><span class="color-tooltip-yellow">Zone:</span></li>' . WoW_Utils::GetZoneName($source['questZone']) : null) . '</ul>'; break; } } } ?> </ul> <span class="clear"><!-- --></span> </div>