| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Renders a single panel's content in the Campaign Settings meta box. |
| 10 |
* |
| 11 |
* @author WP Charitable LLC |
| 12 |
* @package Charitable/Admin Views/Metaboxes |
| 13 |
* @copyright Copyright (c) 2023, WP Charitable LLC |
| 14 |
* @since 1.6.0 |
| 15 |
* @version 1.6.0 |
| 16 |
* @version 1.8.8.6 |
| 17 |
*/ |
| 18 |
|
| 19 |
|
| 20 |
if ( ! array_key_exists( 'fields', $view_args ) || empty( $view_args['fields'] ) ) { |
| 21 |
return; |
| 22 |
} |
| 23 |
|
| 24 |
$charitable_form = new Charitable_Admin_Form(); |
| 25 |
$charitable_form->set_fields( $view_args['fields'] ); |
| 26 |
$charitable_form->view()->render_fields(); |
| 27 |
|