Created
November 25, 2016 08:10
-
-
Save justb3a/5cde644112694eb59adfb7286e0c320e to your computer and use it in GitHub Desktop.
ProcessWire SimpleContactForm Overwrite Markup/Classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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