# charitable/1.6.31/templates/form-fields/notices.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.6.31. 34 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.6.31/code/templates/form-fields/notices.php
- Raw: https://pluginprobe.com/plugins/charitable/1.6.31/raw/templates/form-fields/notices.php
- Modified: 2020-01-22T06:15:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.6.31/code/templates/form-fields/notices.php#L10-L20`.

```php
<?php
/**
 * The template used to display notices.
 *
 * @author  Studio 164a
 * @package Charitable/Templates/Form Fields
 * @since   1.0.0
 * @version 1.3.0
 */

if ( ! isset( $view_args['notices'] ) ) {
	return;
}

$notices = array_filter( $view_args['notices'] );

if ( empty( $notices ) ) {
	return;
}

foreach ( $notices as $type => $messages ) :
	if ( 'error' == $type ) :
		$type = 'errors';
	endif;
	?>
	<div class="charitable-notice charitable-form-<?php echo esc_attr( $type ); ?>">
		<ul class="charitable-notice-<?php echo esc_attr( $type ); ?> <?php echo esc_attr( $type ); ?>">
			<?php foreach ( $messages as $message ) : ?>
				<li><?php echo $message; ?></li>
			<?php endforeach ?>
		</ul><!-- charitable-notice-<?php esc_attr( $type ); ?> -->
	</div><!-- .charitable-notices -->
<?php endforeach ?>

```
