|
65 | 65 | </a>
|
66 | 66 | {/if}
|
67 | 67 | </div>
|
68 |
| - {if $state.margin_left_mobile || $state.margin_right_mobile || $state.margin_top_mobile || $state.margin_bottom_mobile} |
| 68 | + {if (isset($state.margin_left_mobile) && $state.margin_left_mobile) || |
| 69 | + (isset($state.margin_right_mobile) && $state.margin_right_mobile) || |
| 70 | + (isset($state.margin_top_mobile) && $state.margin_top_mobile) || |
| 71 | + (isset($state.margin_bottom_mobile) && $state.margin_bottom_mobile)} |
69 | 72 | <style>
|
70 | 73 | @media (max-width: 767px) {
|
71 | 74 | #block-{$block.id_prettyblocks}-{$key} {
|
72 |
| - {if $state.margin_left_mobile}margin-left:{$state.margin_left_mobile|escape:'htmlall':'UTF-8'};{/if} |
73 |
| - {if $state.margin_right_mobile}margin-right:{$state.margin_right_mobile|escape:'htmlall':'UTF-8'};{/if} |
74 |
| - {if $state.margin_top_mobile}margin-top:{$state.margin_top_mobile|escape:'htmlall':'UTF-8'};{/if} |
75 |
| - {if $state.margin_bottom_mobile}margin-bottom:{$state.margin_bottom_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 75 | + {if isset($state.margin_left_mobile) && $state.margin_left_mobile}margin-left:{$state.margin_left_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 76 | + {if isset($state.margin_right_mobile) && $state.margin_right_mobile}margin-right:{$state.margin_right_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 77 | + {if isset($state.margin_top_mobile) && $state.margin_top_mobile}margin-top:{$state.margin_top_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 78 | + {if isset($state.margin_bottom_mobile) && $state.margin_bottom_mobile}margin-bottom:{$state.margin_bottom_mobile|escape:'htmlall':'UTF-8'};{/if} |
76 | 79 | }
|
77 | 80 | }
|
78 | 81 | </style>
|
|
121 | 124 | </a>
|
122 | 125 | {/if}
|
123 | 126 | </div>
|
124 |
| - {if $state.margin_left_mobile || $state.margin_right_mobile || $state.margin_top_mobile || $state.margin_bottom_mobile} |
| 127 | + {if (isset($state.margin_left_mobile) && $state.margin_left_mobile) || |
| 128 | + (isset($state.margin_right_mobile) && $state.margin_right_mobile) || |
| 129 | + (isset($state.margin_top_mobile) && $state.margin_top_mobile) || |
| 130 | + (isset($state.margin_bottom_mobile) && $state.margin_bottom_mobile)} |
125 | 131 | <style>
|
126 | 132 | @media (max-width: 767px) {
|
127 | 133 | #block-{$block.id_prettyblocks}-{$key} {
|
128 |
| - {if $state.margin_left_mobile}margin-left:{$state.margin_left_mobile|escape:'htmlall':'UTF-8'};{/if} |
129 |
| - {if $state.margin_right_mobile}margin-right:{$state.margin_right_mobile|escape:'htmlall':'UTF-8'};{/if} |
130 |
| - {if $state.margin_top_mobile}margin-top:{$state.margin_top_mobile|escape:'htmlall':'UTF-8'};{/if} |
131 |
| - {if $state.margin_bottom_mobile}margin-bottom:{$state.margin_bottom_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 134 | + {if isset($state.margin_left_mobile) && $state.margin_left_mobile}margin-left:{$state.margin_left_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 135 | + {if isset($state.margin_right_mobile) && $state.margin_right_mobile}margin-right:{$state.margin_right_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 136 | + {if isset($state.margin_top_mobile) && $state.margin_top_mobile}margin-top:{$state.margin_top_mobile|escape:'htmlall':'UTF-8'};{/if} |
| 137 | + {if isset($state.margin_bottom_mobile) && $state.margin_bottom_mobile}margin-bottom:{$state.margin_bottom_mobile|escape:'htmlall':'UTF-8'};{/if} |
132 | 138 | }
|
133 | 139 | }
|
134 | 140 | </style>
|
|
0 commit comments