PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
← All changes | includes/admin/settings/class-charitable-email-settings.php +37 -34 1.6.6 → 1.8.13 View file →
@@ -2,10 +2,10 @@
2 2 /**
3 3 * Charitable Email Settings UI.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Email_Settings
6 - * @author Eric Daams
7 - * @copyright Copyright (c) 2018, Studio 164a
6 + * @author David Bisset
7 + * @copyright Copyright (c) 2023, WP Charitable LLC
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.0.0
10 10 * @version 1.0.0
11 11 */
@@ -10,9 +10,11 @@
10 10 * @version 1.0.0
11 11 */
12 12
13 13 // Exit if accessed directly.
14 -if ( ! defined( 'ABSPATH' ) ) { exit; }
14 +if ( ! defined( 'ABSPATH' ) ) {
15 + exit;
16 +}
15 17
16 18 if ( ! class_exists( 'Charitable_Email_Settings' ) ) :
17 19
18 20 /**
@@ -65,44 +67,45 @@
65 67 return array();
66 68 }
67 69
68 70 return array(
69 - 'section' => array(
70 - 'title' => '',
71 - 'type' => 'hidden',
72 - 'priority' => 10000,
73 - 'value' => 'emails',
74 - 'save' => false,
71 + 'section' => array(
72 + 'title' => '',
73 + 'type' => 'hidden',
74 + 'priority' => 10000,
75 + 'value' => 'emails',
76 + 'save' => false,
75 77 ),
76 - 'section_emails' => array(
77 - 'title' => __( 'Available Emails', 'charitable' ),
78 - 'type' => 'heading',
79 - 'priority' => 5,
78 + 'section_emails' => array(
79 + 'title' => __( 'Available Emails', 'charitable' ),
80 + 'type' => 'heading',
81 + 'priority' => 5,
80 82 ),
81 - 'emails' => array(
82 - 'title' => false,
83 - 'callback' => array( $this, 'render_emails_table' ),
84 - 'priority' => 7,
83 + 'emails' => array(
84 + 'title' => false,
85 + 'callback' => array( $this, 'render_emails_table' ),
86 + 'priority' => 7,
85 87 ),
86 88 'section_email_general' => array(
87 - 'title' => __( 'General Email Settings', 'charitable' ),
88 - 'type' => 'heading',
89 - 'priority' => 10,
89 + 'title' => __( 'General Email Settings', 'charitable' ),
90 + 'class' => 'section-heading',
91 + 'type' => 'heading',
92 + 'priority' => 10,
90 93 ),
91 - 'email_from_name' => array(
92 - 'title' => __( '"From" Name', 'charitable' ),
93 - 'type' => 'text',
94 - 'help' => __( 'The name of the email sender.', 'charitable' ),
95 - 'priority' => 12,
96 - 'default' => get_option( 'blogname' ),
94 + 'email_from_name' => array(
95 + 'title' => __( '"From" Name', 'charitable' ),
96 + 'type' => 'text',
97 + 'help' => __( 'The name of the email sender.', 'charitable' ),
98 + 'priority' => 12,
99 + 'default' => get_option( 'blogname' ),
97 100 ),
98 - 'email_from_email' => array(
99 - 'title' => __( '"From" Email', 'charitable' ),
100 - 'type' => 'email',
101 - 'help' => __( 'The email address of the email sender. This will be the address recipients email if they hit "Reply".', 'charitable' ),
102 - 'priority' => 14,
103 - 'default' => get_option( 'admin_email' ),
104 - ),
101 + 'email_from_email' => array(
102 + 'title' => __( '"From" Email', 'charitable' ),
103 + 'type' => 'email',
104 + 'help' => __( 'The email address of the email sender. This will be the address recipients email if they hit "Reply".', 'charitable' ),
105 + 'priority' => 14,
106 + 'default' => get_option( 'admin_email' ),
107 + ),
105 108 );
106 109 }
107 110
108 111 /**
@@ -168,8 +171,8 @@
168 171 'Charitable_Email_Settings::add_individual_email_fields()'
169 172 );
170 173
171 174 return $this->add_individual_email_fields( $groups );
172 - }
175 + }
173 176 }
174 177
175 178 endif;