preview.php
75 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Preview confirmation entry after form submission |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/everest-forms/notices/notice.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion Everest Forms will need to update template files and you |
| 8 | * and you (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.everestforms.net/ |
| 14 | * @package EverestForms/Templates |
| 15 | * @version 1.0.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | if ( $messages ) : |
| 21 | $allowed_tags = array( |
| 22 | 'table' => array( |
| 23 | 'border' => array(), |
| 24 | 'cellpadding' => array(), |
| 25 | 'cellspacing' => array(), |
| 26 | 'style' => array(), |
| 27 | ), |
| 28 | 'tr' => array(), |
| 29 | 'td' => array( |
| 30 | 'colspan' => array(), |
| 31 | 'rowspan' => array(), |
| 32 | 'style' => array(), |
| 33 | 'class' => array(), |
| 34 | ), |
| 35 | 'th' => array( |
| 36 | 'colspan' => array(), |
| 37 | 'rowspan' => array(), |
| 38 | 'style' => array(), |
| 39 | 'class' => array(), |
| 40 | ), |
| 41 | 'a' => array( |
| 42 | 'id' => true, |
| 43 | 'href' => true, |
| 44 | 'title' => true, |
| 45 | ), |
| 46 | 'style' => array( |
| 47 | 'type' => array(), |
| 48 | ), |
| 49 | 'div' => array( |
| 50 | 'id' => array(), |
| 51 | 'class' => array(), |
| 52 | ), |
| 53 | 'img' => array( |
| 54 | 'src' => true, |
| 55 | 'class' => array(), |
| 56 | 'style' => array( |
| 57 | 'type' => array(), |
| 58 | ), |
| 59 | ), |
| 60 | 'br' => true, |
| 61 | 'span' => array( |
| 62 | 'class' => array(), |
| 63 | 'style' => array( |
| 64 | 'type' => array(), |
| 65 | ), |
| 66 | ), |
| 67 | ); |
| 68 | foreach ( $messages as $message ) : |
| 69 | ?> |
| 70 | <div class="everest-forms-preview"><?php echo wp_kses( $message, $allowed_tags ); ?></div> |
| 71 | |
| 72 | <?php endforeach; ?> |
| 73 | |
| 74 | <?php endif; ?> |
| 75 |