Update ui elements
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 18 Oct 2019 21:05:33 +0000 (17:05 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 18 Oct 2019 21:05:33 +0000 (17:05 -0400)
Fixing some issues with ui elements

views/ui/f6/grid-end.html
views/ui/f6/grid-start.html

index 1de0587..e00ce25 100644 (file)
@@ -8,4 +8,5 @@
     ]}
 
 *}
+    {if $glm_f6_ui_startGridX}</div>{/if}
 </div>
index 636e19e..5638bbd 100644 (file)
@@ -5,6 +5,7 @@
         'nowrap'            => boolean  True if no sections should wrap to the right,
         'backgroundColor'   => string   Background color of overall grid area,
         'sectionColor'      => string   background color of sections
+        'startGridX'        => boolean
     ]}
 
 *}
@@ -21,6 +22,9 @@
 {if isset($ui.sectionColor)}
     {$glm_f6_ui_section_color = $ui.sectionColor scope="global"}
 {/if}
+{if isset($ui.startGridX)}
+    {$glm_f6_ui_startGridX = $ui.startGridX|default:false scope="global"}
+{/if}
 
 <style>
     .glm-foundation-6-ui {
         whitespace: nowrap;
     }
 </style>
-<div class="grid-container callout grid-margin-x glm-foundation-6-ui">
-    {* <div class="grid-x grid-margin-x"> *}
+<div class="grid-container callout {if !$glm_f6_ui_startGridX}grid-margin-x{/if} glm-foundation-6-ui">
+    {if $glm_f6_ui_startGridX}
+        <div class="grid-x grid-margin-x">
+    {/if}