move smarty block extensions to if-checks: content will not rendered, if module is disabled
This commit is contained in:
parent
5e2223f9e1
commit
c8b7d7acf7
@ -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}]
|
@ -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}]
|
Loading…
Reference in New Issue
Block a user