move smarty block extensions to if-checks: content will not rendered, if module is disabled

Cette révision appartient à :
Daniel Seifert 2014-07-01 15:27:21 +00:00
Parent 5e2223f9e1
révision c8b7d7acf7
2 fichiers modifiés avec 12 ajouts et 2 suppressions

Voir le fichier

@ -1,9 +1,14 @@
[{$smarty.block.parent}]
[{d3modcfgcheck modid="d3_googleanalytics"}]
[{/d3modcfgcheck}]
[{if $mod_d3_googleanalytics}]
[{* Content shouldn't rendered in disabled module!
Because of this reason, it can't included in d3modcfgcheck block. *}]
[{include file="d3ga_universal_adwordscode.tpl"}]
[{include file="d3ga_universal_remarketing.tpl"}]
[{include file="d3ga_universal_campaigncode.tpl"}]
[{/d3modcfgcheck}]
[{/if}]

Voir le fichier

@ -1,5 +1,10 @@
[{$smarty.block.parent}]
[{d3modcfgcheck modid="d3_googleanalytics"}]
[{/d3modcfgcheck}]
[{if $mod_d3_googleanalytics}]
[{* Content shouldn't rendered in disabled module!
Because of this reason, it can't included in d3modcfgcheck block. *}]
[{include file=$sD3GATTpl}]
[{/d3modcfgcheck}]
[{/if}]