Skip to content

Instantly share code, notes, and snippets.

@justb3a
Created November 25, 2016 08:10
Show Gist options
  • Save justb3a/5cde644112694eb59adfb7286e0c320e to your computer and use it in GitHub Desktop.
Save justb3a/5cde644112694eb59adfb7286e0c320e to your computer and use it in GitHub Desktop.
ProcessWire SimpleContactForm Overwrite Markup/Classes
<?php
// @see: https://github.com/justb3a/processwire-newslettersubscription/tree/master#how-to-overwrite-classes-and-markup
// @see: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/core/InputfieldWrapper.php#L34
$scf = $modules->get('SimpleContactForm');
$options = array(
'markup' => array(
'list' => "<div {attrs}>{out}</div>",
'item' => "<p {attrs}>{out}</p>",
),
'classes' => array(
'form' => 'form form__whatever',
'list' => 'list-item',
)
);
echo $scf->render($options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment