Skip to content

Instantly share code, notes, and snippets.

@Spoygg
Created April 16, 2014 13:38
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 Spoygg/10876701 to your computer and use it in GitHub Desktop.
Save Spoygg/10876701 to your computer and use it in GitHub Desktop.
${{ region }}->add_element('{{ elementType }}', array(
'columns' => {{ columns }},
'id' => '{{ region }}-module{{ index }}-{{ elementType }}',
'rows' => {{ rows }},
'margin_top' => {{ margin_top }},
'margin_left' => {{ margin_left }},
'margin_bottom' => {{ margin_bottom }},
'margin_right' => {{ margin_right }},
{[ if (leaveWrapperOpen) { ]}
'close_wrapper' => false,
{[ } ]}
{[ if (elementSpecificProperties) { ]}
{{ elementSpecificProperties }}
{[ } ]}
'options' => array(
'theme_style' => '{{ theme_style }}',
'anchor' => '{{ anchor }}',
{{ elementOptions }}
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment