success.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Show success messages |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/everest-forms/notices/success.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.wpeverest.com/docs/everest-forms/template-structure/ |
| 14 | * @package EverestForms/Templates |
| 15 | * @version 1.0.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | $classes = apply_filters( |
| 21 | 'everest_forms_success_notice_class', |
| 22 | array( |
| 23 | 'everest-forms-notice--success', |
| 24 | ) |
| 25 | ); |
| 26 | ?> |
| 27 | |
| 28 | <?php if ( $messages ) : ?> |
| 29 | <?php foreach ( $messages as $message ) : ?> |
| 30 | <div class="everest-forms-notice <?php echo esc_attr( implode( ' ', $classes ) ); ?>" role="alert"> |
| 31 | <?php |
| 32 | echo wp_kses( |
| 33 | $message, |
| 34 | array( |
| 35 | 'div' => array( |
| 36 | 'class' => true, |
| 37 | 'style' => true, |
| 38 | ), |
| 39 | 'input' => array( |
| 40 | 'type' => true, |
| 41 | 'value' => true, |
| 42 | 'class' => true, |
| 43 | 'disabled' => true, |
| 44 | 'checked' => true, |
| 45 | ), |
| 46 | 'ul' => array( |
| 47 | 'class' => true, |
| 48 | ), |
| 49 | 'li' => array( |
| 50 | 'class' => true, |
| 51 | ), |
| 52 | ) |
| 53 | ); |
| 54 | ?> |
| 55 | </div> |
| 56 | <?php endforeach; ?> |
| 57 | <?php endif; ?> |
| 58 |