Skip to content

Instantly share code, notes, and snippets.

@picdorsey
Created December 25, 2012 00:18
Show Gist options
  • Save picdorsey/4371140 to your computer and use it in GitHub Desktop.
Save picdorsey/4371140 to your computer and use it in GitHub Desktop.
This is the embed code for the ee_freeform_composer_template: {embed="_includes/.form_columns" column_count="{composer:column_total}"}
{if embed:column_count == 1}
twelve columns
{/if}
{if embed:column_count == 2}
six columns
{/if}
{if embed:column_count == 3}
four columns
{/if}
{if embed:column_count == 4}
three columns
{/if}
@wjthomas9
Copy link

Updated slightly for Foundation 5. You could also add large-X classes as well if needed.

{if embed:column_count == 1}
  small-12 columns
{/if}

{if embed:column_count == 2}
  small-12 medium-six columns
{/if}

{if embed:column_count == 3}
  small-12 medium-four columns
{/if}

{if embed:column_count == 4}
  small-12 medium-three columns
{/if}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment