mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Item/Tooltips
* restore icon to tooltips after iconDB-changes tripped over a long forgotten change
This commit is contained in:
@@ -430,9 +430,9 @@ class ItemList extends BaseType
|
||||
interactive (set to place javascript/anchors to manipulate level and ratings or link to filters (static tooltips vs popup tooltip))
|
||||
subOf (tabled layout doesn't work if used as sub-tooltip in other item or spell tooltips; use line-break instead)
|
||||
*/
|
||||
public function getField($field, $localized = false, $enhance = [])
|
||||
public function getField($field, $localized = false, $silent = false, $enhance = [])
|
||||
{
|
||||
$res = parent::getField($field, $localized);
|
||||
$res = parent::getField($field, $localized, $silent);
|
||||
|
||||
if ($field == 'name' && !empty($enhance['r']))
|
||||
if ($this->getRandEnchantForItem($enhance['r']))
|
||||
|
||||
@@ -1008,7 +1008,7 @@ class ItemPage extends genericPage
|
||||
return '$WowheadPower.registerItem(\''.$itemString.'\', '.User::$localeId.', {})';
|
||||
|
||||
$x = '$WowheadPower.registerItem(\''.$itemString.'\', '.User::$localeId.", {\n";
|
||||
$x .= "\tname_".User::$localeString.": '".Util::jsEscape($this->subject->getField('name', true, $this->enhancedTT))."',\n";
|
||||
$x .= "\tname_".User::$localeString.": '".Util::jsEscape($this->subject->getField('name', true, false, $this->enhancedTT))."',\n";
|
||||
$x .= "\tquality: ".$this->subject->getField('quality').",\n";
|
||||
$x .= "\ticon: '".rawurlencode($this->subject->getField('iconString', true, true))."',\n";
|
||||
$x .= "\ttooltip_".User::$localeString.": '".Util::jsEscape($this->subject->renderTooltip(false, 0, $this->enhancedTT))."'\n";
|
||||
|
||||
Reference in New Issue
Block a user