Méthode |
Description |
|
__construct ( $attributes, $content = null ) |
|
|
_style_on ( ) |
Turn on printing of grunion.css stylesheet |
|
addslashes_deep ( $value ) |
|
|
get_compiled_form ( integer $feedback_id, $form ) : array |
Returns a compiled form with labels and values in a form of an array
of lines. |
|
get_field_ids ( ) : array |
Loops through $this->fields to generate a (structured) list of field IDs. |
|
parse ( array $attributes, string | null $content ) : string |
The contact-form shortcode processor |
|
parse_contact_field ( array $attributes, string | null $content ) : HTML |
The contact-field shortcode processor
We use an object method here instead of a static Grunion_Contact_Form_Field class method to parse contact-field shortcodes so that we can tie them to the contact-form object. |
|
process_submission ( ) |
Process the contact form's POST submission
Stores feedback. Sends email. |
|
store_shortcode ( string $content = null, $attributes = null ) |
Store shortcode content for recall later
- used to receate shortcode when user uses do_shortcode |
|
style ( boolean $style ) |
Toggle for printing the grunion.css stylesheet |
|
success_message ( integer $feedback_id, $form ) : string |
Returns a success message to be returned if the form is sent via AJAX. |
|