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

This commit is contained in:
Daniel Seifert 2014-07-01 15:27:21 +00:00
parent 5e2223f9e1
commit c8b7d7acf7
2 changed files with 12 additions and 2 deletions

View File

@ -1,9 +1,14 @@
[{$smarty.block.parent}] [{$smarty.block.parent}]
[{d3modcfgcheck modid="d3_googleanalytics"}] [{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_adwordscode.tpl"}]
[{include file="d3ga_universal_remarketing.tpl"}] [{include file="d3ga_universal_remarketing.tpl"}]
[{include file="d3ga_universal_campaigncode.tpl"}] [{include file="d3ga_universal_campaigncode.tpl"}]
[{/d3modcfgcheck}] [{/if}]

View File

@ -1,5 +1,10 @@
[{$smarty.block.parent}] [{$smarty.block.parent}]
[{d3modcfgcheck modid="d3_googleanalytics"}] [{d3modcfgcheck modid="d3_googleanalytics"}]
[{include file=$sD3GATTpl}]
[{/d3modcfgcheck}] [{/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}]
[{/if}]