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

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

- Page: https://pluginprobe.com/plugins/charitable/1.6.31/code/templates/form-fields/fieldset.php
- Raw: https://pluginprobe.com/plugins/charitable/1.6.31/raw/templates/form-fields/fieldset.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/fieldset.php#L10-L20`.

```php
<?php
/**
 * The template used to display select fieldsets.
 *
 * Override this template by copying it to yourtheme/charitable/form-fields/fieldset.php
 *
 * @author  Studio 164a
 * @package Charitable/Templates/Form Fields
 * @since   1.0.0
 * @version 1.5.0
 */

if ( ! isset( $view_args['form'] ) || ! isset( $view_args['field'] ) ) {
	return;
}

$form    = $view_args['form'];
$field   = $view_args['field'];
$classes = $view_args['classes'];
$fields  = isset( $field['fields'] ) ? $field['fields'] : array();

if ( ! count( $fields ) ) :
	return;
endif;

?>
<fieldset class="<?php echo esc_attr( $classes ); ?>">
	<?php
	if ( isset( $field['legend'] ) ) :
		?>
		<div class="charitable-form-header"><?php echo $field['legend']; ?></div>
		<?php
	endif;

	$form->view()->render_fields( $fields );
	?>
</fieldset>

```
