Skip to content

Instantly share code, notes, and snippets.

@DavidCramer
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidCramer/d849d8bd53fd46e10e7f to your computer and use it in GitHub Desktop.
Save DavidCramer/d849d8bd53fd46e10e7f to your computer and use it in GitHub Desktop.
Caldera Forms default Grid Settings
<?php
// Default grid render settings
$grid_settings = array(
"first" => 'first_row', // Classname for first row
"last" => 'last_row', // Classname for last row
"single" => 'single', // Classname for single row (grid with only 1 row)
"column_first" => 'first_col', // Classname for first column
"column_last" => 'last_col', // Classname for last column
"column_single" => 'single', // Classname for single column (grid row with a single column)
"before" => '<div %1$s class="row %2$s">', // html to start a row
"after" => '</div>', // html to end a row
"column_before" => '<div %1$s class="col-'.$gridsize.'-%2$d %3$s">',// html to start column
"column_after" => '</div>',//html to end column
"column_spans" => array(), // indexed classnames to convert column sizes. if black use numeric span.
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment