Skip to content

Commit 4d8e91e

Browse files
committed
Fix Smarty array syntax for spacing styles partial
1 parent 93e5c7f commit 4d8e91e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

views/templates/hook/prettyblocks/_partials/spacing_style.tpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{* Generates inline spacing styles for blocks and repeater states *}
22
{capture name='spacing_styles'}
33
{if isset($spacing) && $spacing}
4-
{assign var='spacingMap' value=[
4+
{assign var='spacingMap' value=array(
55
'padding_left' => 'padding-left',
66
'padding_right' => 'padding-right',
77
'padding_top' => 'padding-top',
88
'padding_bottom' => 'padding-bottom',
99
'margin_left' => 'margin-left',
1010
'margin_right' => 'margin-right',
1111
'margin_top' => 'margin-top',
12-
'margin_bottom' => 'margin-bottom',
13-
]}
12+
'margin_bottom' => 'margin-bottom'
13+
)}
1414
{foreach from=$spacingMap key=spacingKey item=cssProperty}
1515
{if isset($spacing[$spacingKey]) && $spacing[$spacingKey]}
1616
{$cssProperty}:{$spacing[$spacingKey]|escape:'htmlall':'UTF-8'};
1717
{/if}
1818
{/foreach}
19-
{assign var='mobileSpacingMap' value=[
19+
{assign var='mobileSpacingMap' value=array(
2020
'margin_left_mobile' => '--margin-left-mobile',
2121
'margin_right_mobile' => '--margin-right-mobile',
2222
'margin_top_mobile' => '--margin-top-mobile',
23-
'margin_bottom_mobile' => '--margin-bottom-mobile',
24-
]}
23+
'margin_bottom_mobile' => '--margin-bottom-mobile'
24+
)}
2525
{foreach from=$mobileSpacingMap key=spacingKey item=cssProperty}
2626
{if isset($spacing[$spacingKey]) && $spacing[$spacingKey]}
2727
{$cssProperty}:{$spacing[$spacingKey]|escape:'htmlall':'UTF-8'};

0 commit comments

Comments
 (0)