=$this->name; ?>
+=$this->h1; ?>
-brick('article'); ?> +brick('markup', ['markup' => $this->article]); ?>=Lang::enchantment('details'); ?>
@@ -34,7 +37,7 @@'.Lang::spell('_value').Lang::main('colon').$e['value']; + if ($e['value']): + echo '
'.Lang::spell('_value').Lang::main('colon').$e['value']; endif; - if (!empty($e['proc'])): - echo '
'; + if ($e['proc']): + echo '
'; if ($e['proc'] < 0): - echo sprintf(Lang::spell('ppm'), Lang::nf(-$e['proc'], 1)); + echo Lang::spell('ppm', [Lang::nf(-$e['proc'], 1)]); elseif ($e['proc'] < 100.0): echo Lang::spell('procChance').Lang::main('colon').$e['proc'].'%'; endif; @@ -67,12 +70,12 @@ foreach ($this->effects as $i => $e): echo "\n"; - if (!empty($e['tip'])): + if ($e['tip']): ?> brick('lvTabs', ['relTabs' => true]); +$this->brick('lvTabs'); $this->brick('contribute'); ?> diff --git a/template/pages/enchantments.tpl.php b/template/pages/enchantments.tpl.php index a00c8bd8..3fbb0ad6 100644 --- a/template/pages/enchantments.tpl.php +++ b/template/pages/enchantments.tpl.php @@ -1,10 +1,11 @@ - - brick('header'); -$f = $this->filterObj->values // shorthand -?> + namespace Aowow\Template; + use \Aowow\Lang; + +$this->brick('header'); +$f = $this->filter->values; // shorthand +?>