error.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Show error messages |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/everest-forms/notices/error.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 | |
| 21 | <?php if ( $messages ) : ?> |
| 22 | <div class="everest-forms-notice everest-forms-notice--error" role="alert"> |
| 23 | <?php if ( 1 === count( $messages ) ) : ?> |
| 24 | <?php echo wp_kses_post( $messages[0] ); ?> |
| 25 | <?php else : ?> |
| 26 | <ul class="everest-forms-notice-list"> |
| 27 | <?php foreach ( $messages as $message ) : ?> |
| 28 | <li class="everest-forms-notice-list__item"><?php echo wp_kses_post( $message ); ?></li> |
| 29 | <?php endforeach; ?> |
| 30 | </ul> |
| 31 | <?php endif; ?> |
| 32 | </div> |
| 33 | <?php endif; ?> |
| 34 |