css
3 years ago
images
3 years ago
js
3 years ago
admin.php
3 years ago
class-grunion-contact-form-endpoint.php
1 year ago
grunion-contact-form.php
3 years ago
grunion-editor-view.php
4 years ago
grunion-form-view.php
3 years ago
grunion-response-email-template.php
3 years ago
grunion-response-email-template.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Grunion Contact Form Template |
| 4 | * The template contains several placeholders: |
| 5 | * %1$s is the hero text to display above the response |
| 6 | * %2$s is the response itself. |
| 7 | * %3$s is a link to the respone page in wp-admin |
| 8 | * %4$s is a link to the embedded form to allow the site owner to edit it to change their email address. |
| 9 | * %5$s is the footer HTML. |
| 10 | * |
| 11 | * @package automattic/jetpack |
| 12 | */ |
| 13 | |
| 14 | // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- used in grunion-contact-form.php |
| 15 | $template = ' |
| 16 | <!doctype html> |
| 17 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 18 | <body> |
| 19 | <!-- title --> |
| 20 | <h1>%1$s</h1> |
| 21 | |
| 22 | <!-- response --> |
| 23 | <p>%2$s</p> |
| 24 | |
| 25 | <!-- link to responses page --> |
| 26 | <p><a href="%3$s"> ' . esc_html__( 'View Responses', 'jetpack' ) . '</a></p> |
| 27 | |
| 28 | <!-- link to edit form --> |
| 29 | <p><a href="%4$s">' . esc_html__( 'Edit', 'jetpack' ) . '</a></p> |
| 30 | |
| 31 | <!-- footer --> |
| 32 | <p>%5$s</p> |
| 33 | </body> |
| 34 | </html> |
| 35 | '; |
| 36 |