what the heck.. this div has neither data nor style or script associated with *}
+
+{include file='bricks/redButtons.tpl'}
+
{include file='bricks/tooltip.tpl'}
diff --git a/template/itemset.tpl b/template/itemset.tpl
index 1e77f5f0..97343add 100644
--- a/template/itemset.tpl
+++ b/template/itemset.tpl
@@ -19,10 +19,9 @@
{include file='bricks/infobox.tpl' info=$lvData.infobox}
-
{$lang.links}{$lang.links}
-
{$lang.view3D}{$lang.view3D}
-
{$lang.compare}{$lang.compare}
-
WowheadWowhead
+
+{include file='bricks/redButtons.tpl'}
+
{$lvData.page.name}
{include file='bricks/article.tpl'}
diff --git a/template/js/global.js b/template/js/global.js
index ec45e27e..5ac0c5c6 100644
--- a/template/js/global.js
+++ b/template/js/global.js
@@ -1039,7 +1039,7 @@ function g_getMoneyHtml(money, side, costItems, costCurrency, achievementPoints)
html += '
' + $WH.number_format(count) + '';
}
else if (currencyId == 104) { // honor
- html += '
' + $WH.number_format(count) + '';
+ html += '
' + (side == 3 ? '' : '') + $WH.number_format(count) + (side == 3 ? '' : '') + '';
}
else { // tokens
html += '
' + count + '';
@@ -5981,6 +5981,70 @@ Listview.funcBox = {
}
},
+ initSpellFilter: function (row) {
+ if (this._spellTypes == null) {
+ this._spellTypes = {};
+ }
+
+ if (this._spellTypes[row.cat] == null) {
+ this._spellTypes[row.cat] = 0;
+ }
+
+ this._spellTypes[row.cat]++;
+ },
+
+ addSpellIndicator: function () {
+ var it = location.hash.match(/:type=([^:]+)/);
+
+ var f = function (spellCat, updatePound) {
+ g_setSelectedLink(this, "spellType");
+
+ lv.customPound = lv.id + (spellCat != null ? ":type=" + spellCat : "");
+ lv.customFilter = function (spell) {
+ return spellCat == null || spell.cat == spellCat;
+ };
+ lv.updateFilters(1);
+ lv.applySort();
+ lv.refreshRows();
+ if (updatePound) {
+ lv.updatePound(1)
+ }
+ };
+
+ var
+ lv = this,
+ categories = [],
+ a;
+
+ a = $("
" + LANG.pr_note_all + "");
+ a[0].f = f.bind(a[0], null, 1);
+ a.click(a[0].f);
+ var firstCallback = f.bind(a[0], null, 0);
+ firstCallback();
+ categories.push($('
').append(a).append($("
" + LANG.pr_note_all + "")));
+ for (var i in g_spell_categories) {
+ if (!this._spellTypes[i]) {
+ continue;
+ }
+ a = $("
" + g_spell_categories[i] + " (" + this._spellTypes[i] + ")");
+ a[0].f = f.bind(a[0], i, 1);
+ a.click(a[0].f);
+
+ categories.push($('
').append(a).append($("
" + g_spell_categories[i] + " (" + this._spellTypes[i] + ")")));
+
+ if (it && it[1] == i) {
+ (a[0].f)();
+ }
+ }
+ if (categories.length > 2) {
+ for (var i = 0, len = categories.length; i < len; ++i) {
+ this.createIndicator(categories[i], null, $("a", categories[i])[0].f)
+ }
+ $(this.noteTop).css("padding-bottom", "12px");
+ $(this.noteIndicators).append($('
')).insertAfter($(this.navTop))
+ }
+ },
+
initStatisticFilter: function(row)
{
if(this._achievTypes == null)
diff --git a/template/pet.tpl b/template/pet.tpl
index 2dad9ac6..3e3d12d3 100644
--- a/template/pet.tpl
+++ b/template/pet.tpl
@@ -19,9 +19,9 @@
{include file='bricks/infobox.tpl' info=$lvData.infobox}
-
{$lang.links}{$lang.links}
-
{$lang.petCalc}{$lang.petCalc}
-
WowheadWowhead
+
+{include file='bricks/redButtons.tpl'}
+
-
WowheadWowhead
-
{$lang.links}{$lang.links}
+{include file='bricks/redButtons.tpl'}
+
{if $lvData.page.expansion}{$lvData.page.name}{else}{$lvData.page.name}{/if}
{include file='bricks/article.tpl'}
diff --git a/template/skill.tpl b/template/skill.tpl
index 40a1eb96..6f507c9d 100644
--- a/template/skill.tpl
+++ b/template/skill.tpl
@@ -25,8 +25,8 @@
$WH.ge('h1-icon-generic').appendChild(Icon.create('{$lvData.page.icon|escape:"javascript"}', 1));
//]]>
-
{$lang.links}{$lang.links}
-
WowheadWowhead
+{include file='bricks/redButtons.tpl'}
+
{$lvData.page.name}
{include file='bricks/article.tpl'}
diff --git a/template/spell.tpl b/template/spell.tpl
index 2925ae63..9f060d62 100644
--- a/template/spell.tpl
+++ b/template/spell.tpl
@@ -1,6 +1,4 @@
{include file='header.tpl'}
-{assign var="iconlist1" value="1"}
-{assign var="iconlist2" value="1"}
@@ -21,27 +19,19 @@
{include file='bricks/infobox.tpl' info=$lvData.infobox}
-
{$lang.links}{$lang.links}
-
View in 3DView in 3D
-
WowheadWowhead
+{include file='bricks/redButtons.tpl'}
{$lvData.page.name}
{include file='bricks/tooltip.tpl'}
-{if $lvData.page.reagents}{if $lvData.page.tools}
{/if}
-
{$lang.reagents}
-
-{section name=i loop=$lvData.page.reagents}
- | {$lvData.page.reagents[i].name}{if $lvData.page.reagents[i].count > 1} ({$lvData.page.reagents[i].count}){/if} |
-{/section}
-
-
-{if $lvData.page.tools}
{/if}{/if}
-{if $lvData.page.tools}{if $lvData.page.reagents}
{/if}
+{if $lvData.page.reagents}
+ {if $lvData.page.tools}
{/if}
+{include file='bricks/reagentList.tpl' reagent=$lvData.page.reagents}
+ {if $lvData.page.tools}
{/if}
+{/if}
+
+{if $lvData.page.tools}
+ {if $lvData.page.reagents}
{/if}
{$lang.tools}
{section name=i loop=$lvData.page.tools}
@@ -53,7 +43,8 @@
$WH.ge('iconlist-icon{$iconlist2++}').appendChild(g_items.createIcon({$lvData.page.tools[i].itemId}, 0, 1));
{/if}{/section}
-{if $lvData.page.reagents}{/if}{/if}
+ {if $lvData.page.reagents}{/if}{
+/if}
diff --git a/template/title.tpl b/template/title.tpl
index cfa30a58..b1d745cb 100644
--- a/template/title.tpl
+++ b/template/title.tpl
@@ -19,8 +19,9 @@
{include file='bricks/infobox.tpl' info=$lvData.infobox}
-
{$lang.links}{$lang.links}
-
WowheadWowhead
+
+{include file='bricks/redButtons.tpl'}
+
{if isset($lvData.page.expansion)}{$lvData.page.name}{else}{$lvData.page.name}{/if}
{include file='bricks/article.tpl'}