@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | // Exit if accessed directly. |
13 | -if ( ! defined( 'ABSPATH' ) ) { |
|
13 | +if ( ! defined('ABSPATH')) { |
|
14 | 14 | exit; |
15 | 15 | } |
16 | 16 | |
@@ -21,12 +21,12 @@ discard block |
||
21 | 21 | * @return void |
22 | 22 | */ |
23 | 23 | function give_register_dashboard_widgets() { |
24 | - if ( current_user_can( apply_filters( 'give_dashboard_stats_cap', 'view_give_reports' ) ) ) { |
|
25 | - wp_add_dashboard_widget( 'give_dashboard_sales', esc_html__( 'Give: Donation Statistics', 'give' ), 'give_dashboard_sales_widget' ); |
|
24 | + if (current_user_can(apply_filters('give_dashboard_stats_cap', 'view_give_reports'))) { |
|
25 | + wp_add_dashboard_widget('give_dashboard_sales', esc_html__('Give: Donation Statistics', 'give'), 'give_dashboard_sales_widget'); |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
29 | -add_action( 'wp_dashboard_setup', 'give_register_dashboard_widgets', 10 ); |
|
29 | +add_action('wp_dashboard_setup', 'give_register_dashboard_widgets', 10); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Sales Summary Dashboard Widget |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | function give_dashboard_sales_widget() { |
40 | 40 | |
41 | - if ( ! current_user_can( apply_filters( 'give_dashboard_stats_cap', 'view_give_reports' ) ) ) { |
|
41 | + if ( ! current_user_can(apply_filters('give_dashboard_stats_cap', 'view_give_reports'))) { |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 | $stats = new Give_Payment_Stats; ?> |
@@ -46,27 +46,27 @@ discard block |
||
46 | 46 | <div class="give-dashboard-widget"> |
47 | 47 | |
48 | 48 | <div class="give-dashboard-today give-clearfix"> |
49 | - <h3 class="give-dashboard-date-today"><?php echo date( _x( 'F j, Y', 'dashboard widget', 'give' ) ); ?></h3> |
|
49 | + <h3 class="give-dashboard-date-today"><?php echo date(_x('F j, Y', 'dashboard widget', 'give')); ?></h3> |
|
50 | 50 | |
51 | 51 | <p class="give-dashboard-happy-day"><?php |
52 | 52 | printf( |
53 | 53 | /* translators: %s: day of the week */ |
54 | - esc_html__( 'Happy %s!', 'give' ), |
|
55 | - date( 'l', current_time( 'timestamp' ) ) |
|
54 | + esc_html__('Happy %s!', 'give'), |
|
55 | + date('l', current_time('timestamp')) |
|
56 | 56 | ); |
57 | 57 | ?></p> |
58 | 58 | |
59 | 59 | <p class="give-dashboard-today-earnings"><?php |
60 | - $earnings_today = $stats->get_earnings( 0, 'today', false ); |
|
61 | - echo give_currency_filter( give_format_amount( $earnings_today, array( 'sanitize' => false ) ) ); |
|
60 | + $earnings_today = $stats->get_earnings(0, 'today', false); |
|
61 | + echo give_currency_filter(give_format_amount($earnings_today, array('sanitize' => false))); |
|
62 | 62 | ?></p> |
63 | 63 | |
64 | 64 | <p class="give-orders-today"><?php |
65 | - $donations_today = $stats->get_sales( 0, 'today', false ); |
|
65 | + $donations_today = $stats->get_sales(0, 'today', false); |
|
66 | 66 | printf( |
67 | 67 | /* translators: %s: daily donation count */ |
68 | - esc_html__( '%s donations today', 'give' ), |
|
69 | - give_format_amount( $donations_today, array( 'decimal' => false, 'sanitize' => false ) ) |
|
68 | + esc_html__('%s donations today', 'give'), |
|
69 | + give_format_amount($donations_today, array('decimal' => false, 'sanitize' => false)) |
|
70 | 70 | ); |
71 | 71 | ?></p> |
72 | 72 | |
@@ -76,34 +76,34 @@ discard block |
||
76 | 76 | <table class="give-table-stats"> |
77 | 77 | <thead style="display: none;"> |
78 | 78 | <tr> |
79 | - <th><?php esc_html_e( 'This Week', 'give' ); ?></th> |
|
80 | - <th><?php esc_html_e( 'This Month', 'give' ); ?></th> |
|
81 | - <th><?php esc_html_e( 'Past 30 Days', 'give' ); ?></th> |
|
79 | + <th><?php esc_html_e('This Week', 'give'); ?></th> |
|
80 | + <th><?php esc_html_e('This Month', 'give'); ?></th> |
|
81 | + <th><?php esc_html_e('Past 30 Days', 'give'); ?></th> |
|
82 | 82 | </tr> |
83 | 83 | </thead> |
84 | 84 | <tbody> |
85 | 85 | <tr id="give-table-stats-tr-1"> |
86 | 86 | <td> |
87 | - <p class="give-dashboard-stat-total"><?php echo give_currency_filter( give_format_amount( $stats->get_earnings( 0, 'this_week' ), array( 'sanitize' => false ) ) ); ?></p> |
|
87 | + <p class="give-dashboard-stat-total"><?php echo give_currency_filter(give_format_amount($stats->get_earnings(0, 'this_week'), array('sanitize' => false))); ?></p> |
|
88 | 88 | |
89 | - <p class="give-dashboard-stat-total-label"><?php esc_html_e( 'This Week', 'give' ); ?></p> |
|
89 | + <p class="give-dashboard-stat-total-label"><?php esc_html_e('This Week', 'give'); ?></p> |
|
90 | 90 | </td> |
91 | 91 | <td> |
92 | - <p class="give-dashboard-stat-total"><?php echo give_currency_filter( give_format_amount( $stats->get_earnings( 0, 'this_month' ), array( 'sanitize' => false ) ) ); ?></p> |
|
92 | + <p class="give-dashboard-stat-total"><?php echo give_currency_filter(give_format_amount($stats->get_earnings(0, 'this_month'), array('sanitize' => false))); ?></p> |
|
93 | 93 | |
94 | - <p class="give-dashboard-stat-total-label"><?php esc_html_e( 'This Month', 'give' ); ?></p> |
|
94 | + <p class="give-dashboard-stat-total-label"><?php esc_html_e('This Month', 'give'); ?></p> |
|
95 | 95 | </td> |
96 | 96 | </tr> |
97 | 97 | <tr id="give-table-stats-tr-2"> |
98 | 98 | <td> |
99 | - <p class="give-dashboard-stat-total"><?php echo give_currency_filter( give_format_amount( $stats->get_earnings( 0, 'last_month' ), array( 'sanitize' => false ) ) ) ?></p> |
|
99 | + <p class="give-dashboard-stat-total"><?php echo give_currency_filter(give_format_amount($stats->get_earnings(0, 'last_month'), array('sanitize' => false))) ?></p> |
|
100 | 100 | |
101 | - <p class="give-dashboard-stat-total-label"><?php esc_html_e( 'Last Month', 'give' ); ?></p> |
|
101 | + <p class="give-dashboard-stat-total-label"><?php esc_html_e('Last Month', 'give'); ?></p> |
|
102 | 102 | </td> |
103 | 103 | <td> |
104 | - <p class="give-dashboard-stat-total"><?php echo give_currency_filter( give_format_amount( $stats->get_earnings( 0, 'this_year', false ), array( 'decimal' => false, 'sanitize' => false ) ) ) ?></p> |
|
104 | + <p class="give-dashboard-stat-total"><?php echo give_currency_filter(give_format_amount($stats->get_earnings(0, 'this_year', false), array('decimal' => false, 'sanitize' => false))) ?></p> |
|
105 | 105 | |
106 | - <p class="give-dashboard-stat-total-label"><?php esc_html_e( 'This Year', 'give' ); ?></p> |
|
106 | + <p class="give-dashboard-stat-total-label"><?php esc_html_e('This Year', 'give'); ?></p> |
|
107 | 107 | </td> |
108 | 108 | </tr> |
109 | 109 | </tbody> |
@@ -123,23 +123,23 @@ discard block |
||
123 | 123 | * |
124 | 124 | * @return array |
125 | 125 | */ |
126 | -function give_dashboard_at_a_glance_widget( $items ) { |
|
127 | - $num_posts = wp_count_posts( 'give_forms' ); |
|
126 | +function give_dashboard_at_a_glance_widget($items) { |
|
127 | + $num_posts = wp_count_posts('give_forms'); |
|
128 | 128 | |
129 | - if ( $num_posts && $num_posts->publish ) { |
|
129 | + if ($num_posts && $num_posts->publish) { |
|
130 | 130 | |
131 | 131 | $text = sprintf( |
132 | 132 | /* translators: %s: number of posts published */ |
133 | - _n( '%s Give Form', '%s Give Forms', $num_posts->publish, 'give' ), |
|
133 | + _n('%s Give Form', '%s Give Forms', $num_posts->publish, 'give'), |
|
134 | 134 | $num_posts->publish |
135 | 135 | ); |
136 | 136 | |
137 | - $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); |
|
137 | + $text = sprintf($text, number_format_i18n($num_posts->publish)); |
|
138 | 138 | |
139 | - if ( current_user_can( 'edit_give_forms', get_current_user_id() ) ) { |
|
139 | + if (current_user_can('edit_give_forms', get_current_user_id())) { |
|
140 | 140 | $text = sprintf( |
141 | 141 | '<a class="give-forms-count" href="%1$s">%2$s</a>', |
142 | - admin_url( 'edit.php?post_type=give_forms' ), |
|
142 | + admin_url('edit.php?post_type=give_forms'), |
|
143 | 143 | $text |
144 | 144 | ); |
145 | 145 | } else { |
@@ -155,4 +155,4 @@ discard block |
||
155 | 155 | return $items; |
156 | 156 | } |
157 | 157 | |
158 | -add_filter( 'dashboard_glance_items', 'give_dashboard_at_a_glance_widget', 1, 1 ); |
|
158 | +add_filter('dashboard_glance_items', 'give_dashboard_at_a_glance_widget', 1, 1); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | // Exit if accessed directly. |
13 | -if ( ! defined( 'ABSPATH' ) ) { |
|
13 | +if ( ! defined('ABSPATH')) { |
|
14 | 14 | exit; |
15 | 15 | } |
16 | 16 | |
@@ -27,30 +27,30 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @return mixed |
29 | 29 | */ |
30 | -function __give_sanitize_number_decimals_setting_field( $value ) { |
|
30 | +function __give_sanitize_number_decimals_setting_field($value) { |
|
31 | 31 | $value_changed = false; |
32 | 32 | $old_value = $value; |
33 | 33 | |
34 | - if ( isset( $_POST['decimal_separator'] ) ) { |
|
35 | - $value = ! empty( $_POST['decimal_separator'] ) ? $value : 0; |
|
34 | + if (isset($_POST['decimal_separator'])) { |
|
35 | + $value = ! empty($_POST['decimal_separator']) ? $value : 0; |
|
36 | 36 | $value_changed = true; |
37 | 37 | } |
38 | 38 | |
39 | - if ( $value_changed && ( $old_value != $value ) ) { |
|
40 | - Give_Admin_Settings::add_error( 'give-number-decimal', __( 'The \'Number of Decimals\' option has been automatically set to zero because the \'Decimal Separator\' is not set.', 'give' ) ); |
|
39 | + if ($value_changed && ($old_value != $value)) { |
|
40 | + Give_Admin_Settings::add_error('give-number-decimal', __('The \'Number of Decimals\' option has been automatically set to zero because the \'Decimal Separator\' is not set.', 'give')); |
|
41 | 41 | } |
42 | 42 | |
43 | - $value = absint( $value ); |
|
43 | + $value = absint($value); |
|
44 | 44 | |
45 | - if( 6 <= $value ) { |
|
45 | + if (6 <= $value) { |
|
46 | 46 | $value = 5; |
47 | - Give_Admin_Settings::add_error( 'give-number-decimal', __( 'The \'Number of Decimals\' option has been automatically set to 5 because you entered a number higher than the maximum allowed.', 'give' ) ); |
|
47 | + Give_Admin_Settings::add_error('give-number-decimal', __('The \'Number of Decimals\' option has been automatically set to 5 because you entered a number higher than the maximum allowed.', 'give')); |
|
48 | 48 | } |
49 | 49 | |
50 | - return absint( $value ); |
|
50 | + return absint($value); |
|
51 | 51 | } |
52 | 52 | |
53 | -add_filter( 'give_admin_settings_sanitize_option_number_decimals', '__give_sanitize_number_decimals_setting_field', 10 ); |
|
53 | +add_filter('give_admin_settings_sanitize_option_number_decimals', '__give_sanitize_number_decimals_setting_field', 10); |
|
54 | 54 | |
55 | 55 | |
56 | 56 | /** |
@@ -66,17 +66,17 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @return mixed |
68 | 68 | */ |
69 | -function __give_validate_decimal_separator_setting_field( $value ) { |
|
70 | - $thousand_separator = give_clean( $_POST['thousands_separator'] ); |
|
71 | - $decimal_separator = give_clean( $_POST['decimal_separator'] ); |
|
69 | +function __give_validate_decimal_separator_setting_field($value) { |
|
70 | + $thousand_separator = give_clean($_POST['thousands_separator']); |
|
71 | + $decimal_separator = give_clean($_POST['decimal_separator']); |
|
72 | 72 | |
73 | - if ( $decimal_separator === $thousand_separator ) { |
|
73 | + if ($decimal_separator === $thousand_separator) { |
|
74 | 74 | $value = ''; |
75 | 75 | $_POST['number_decimals'] = 0; |
76 | - Give_Admin_Settings::add_error( 'give-decimal-separator', __( 'The \'Decimal Separator\' option has automatically been set to empty because it can not be equal to the \'Thousand Separator\'', 'give' ) ); |
|
76 | + Give_Admin_Settings::add_error('give-decimal-separator', __('The \'Decimal Separator\' option has automatically been set to empty because it can not be equal to the \'Thousand Separator\'', 'give')); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | return $value; |
80 | 80 | } |
81 | 81 | |
82 | -add_filter( 'give_admin_settings_sanitize_option_decimal_separator', '__give_validate_decimal_separator_setting_field', 10 ); |
|
83 | 82 | \ No newline at end of file |
83 | +add_filter('give_admin_settings_sanitize_option_decimal_separator', '__give_validate_decimal_separator_setting_field', 10); |
|
84 | 84 | \ No newline at end of file |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | // Exit if accessed directly. |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | +if ( ! defined('ABSPATH')) { |
|
13 | 13 | exit; |
14 | 14 | } |
15 | 15 | |
@@ -23,10 +23,10 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function __construct() { |
25 | 25 | |
26 | - $this->shortcode['title'] = esc_html__( 'Donation Form Goal', 'give' ); |
|
27 | - $this->shortcode['label'] = esc_html__( 'Donation Form Goal', 'give' ); |
|
26 | + $this->shortcode['title'] = esc_html__('Donation Form Goal', 'give'); |
|
27 | + $this->shortcode['label'] = esc_html__('Donation Form Goal', 'give'); |
|
28 | 28 | |
29 | - parent::__construct( 'give_goal' ); |
|
29 | + parent::__construct('give_goal'); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | |
39 | 39 | $create_form_link = sprintf( |
40 | 40 | /* translators: %s: create new form URL */ |
41 | - __( '<a href="%s">Create</a> a new Donation Form.', 'give' ), |
|
42 | - admin_url( 'post-new.php?post_type=give_forms' ) |
|
41 | + __('<a href="%s">Create</a> a new Donation Form.', 'give'), |
|
42 | + admin_url('post-new.php?post_type=give_forms') |
|
43 | 43 | ); |
44 | 44 | |
45 | 45 | return array( |
@@ -51,35 +51,35 @@ discard block |
||
51 | 51 | 'meta_value' => 'enabled', |
52 | 52 | ), |
53 | 53 | 'name' => 'id', |
54 | - 'tooltip' => esc_attr__( 'Select a Donation Form', 'give' ), |
|
55 | - 'placeholder' => '- ' . esc_attr__( 'Select a Donation Form', 'give' ) . ' -', |
|
54 | + 'tooltip' => esc_attr__('Select a Donation Form', 'give'), |
|
55 | + 'placeholder' => '- '.esc_attr__('Select a Donation Form', 'give').' -', |
|
56 | 56 | 'required' => array( |
57 | - 'alert' => esc_html__( 'You must first select a Form!', 'give' ), |
|
58 | - 'error' => sprintf( '<p class="strong">%s</p><p class="no-margin">%s</p>', esc_html__( 'No forms found.', 'give' ), $create_form_link ), |
|
57 | + 'alert' => esc_html__('You must first select a Form!', 'give'), |
|
58 | + 'error' => sprintf('<p class="strong">%s</p><p class="no-margin">%s</p>', esc_html__('No forms found.', 'give'), $create_form_link), |
|
59 | 59 | ), |
60 | 60 | ), |
61 | 61 | array( |
62 | 62 | 'type' => 'container', |
63 | - 'html' => sprintf( '<p class="strong margin-top">%s</p>', esc_html__( 'Optional settings', 'give' ) ), |
|
63 | + 'html' => sprintf('<p class="strong margin-top">%s</p>', esc_html__('Optional settings', 'give')), |
|
64 | 64 | ), |
65 | 65 | array( |
66 | 66 | 'type' => 'listbox', |
67 | 67 | 'name' => 'show_text', |
68 | - 'label' => esc_attr__( 'Show Text:', 'give' ), |
|
69 | - 'tooltip' => esc_attr__( 'This text displays the amount of income raised compared to the goal.', 'give' ), |
|
68 | + 'label' => esc_attr__('Show Text:', 'give'), |
|
69 | + 'tooltip' => esc_attr__('This text displays the amount of income raised compared to the goal.', 'give'), |
|
70 | 70 | 'options' => array( |
71 | - 'true' => esc_html__( 'Show', 'give' ), |
|
72 | - 'false' => esc_html__( 'Hide', 'give' ), |
|
71 | + 'true' => esc_html__('Show', 'give'), |
|
72 | + 'false' => esc_html__('Hide', 'give'), |
|
73 | 73 | ), |
74 | 74 | ), |
75 | 75 | array( |
76 | 76 | 'type' => 'listbox', |
77 | 77 | 'name' => 'show_bar', |
78 | - 'label' => esc_attr__( 'Show Progress Bar:', 'give' ), |
|
79 | - 'tooltip' => esc_attr__( 'Do you want to display the goal\'s progress bar?', 'give' ), |
|
78 | + 'label' => esc_attr__('Show Progress Bar:', 'give'), |
|
79 | + 'tooltip' => esc_attr__('Do you want to display the goal\'s progress bar?', 'give'), |
|
80 | 80 | 'options' => array( |
81 | - 'true' => esc_html__( 'Show', 'give' ), |
|
82 | - 'false' => esc_html__( 'Hide', 'give' ), |
|
81 | + 'true' => esc_html__('Show', 'give'), |
|
82 | + 'false' => esc_html__('Hide', 'give'), |
|
83 | 83 | ), |
84 | 84 | ), |
85 | 85 | ); |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | /** |
3 | 3 | * This template is used to display the registration form with [give_register] |
4 | 4 | */ |
5 | -Give()->notices->render_frontend_notices( 0 ); ?> |
|
5 | +Give()->notices->render_frontend_notices(0); ?> |
|
6 | 6 | |
7 | 7 | <form id="give-register-form" class="give-form" action="" method="post"> |
8 | 8 | <?php |
@@ -13,11 +13,11 @@ discard block |
||
13 | 13 | * |
14 | 14 | * @since 1.0 |
15 | 15 | */ |
16 | - do_action( 'give_register_form_fields_top' ); |
|
16 | + do_action('give_register_form_fields_top'); |
|
17 | 17 | ?> |
18 | 18 | |
19 | 19 | <fieldset> |
20 | - <legend><?php esc_html_e( 'Register a New Account', 'give' ); ?></legend> |
|
20 | + <legend><?php esc_html_e('Register a New Account', 'give'); ?></legend> |
|
21 | 21 | |
22 | 22 | <?php |
23 | 23 | /** |
@@ -27,26 +27,26 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @since 1.0 |
29 | 29 | */ |
30 | - do_action( 'give_register_form_fields_before' ); |
|
30 | + do_action('give_register_form_fields_before'); |
|
31 | 31 | ?> |
32 | 32 | |
33 | 33 | <div class="form-row form-row-first form-row-responsive"> |
34 | - <label for="give-user-login"><?php esc_html_e( 'Username', 'give' ); ?></label> |
|
34 | + <label for="give-user-login"><?php esc_html_e('Username', 'give'); ?></label> |
|
35 | 35 | <input id="give-user-login" class="required give-input" type="text" name="give_user_login" required aria-required="true" /> |
36 | 36 | </div> |
37 | 37 | |
38 | 38 | <div class="form-row form-row-last form-row-responsive"> |
39 | - <label for="give-user-email"><?php esc_html_e( 'Email', 'give' ); ?></label> |
|
39 | + <label for="give-user-email"><?php esc_html_e('Email', 'give'); ?></label> |
|
40 | 40 | <input id="give-user-email" class="required give-input" type="email" name="give_user_email" required aria-required="true" /> |
41 | 41 | </div> |
42 | 42 | |
43 | 43 | <div class="form-row form-row-first form-row-responsive"> |
44 | - <label for="give-user-pass"><?php esc_html_e( 'Password', 'give' ); ?></label> |
|
44 | + <label for="give-user-pass"><?php esc_html_e('Password', 'give'); ?></label> |
|
45 | 45 | <input id="give-user-pass" class="password required give-input" type="password" name="give_user_pass" required aria-required="true" /> |
46 | 46 | </div> |
47 | 47 | |
48 | 48 | <div class="form-row form-row-last form-row-responsive"> |
49 | - <label for="give-user-pass2"><?php esc_html_e( 'Confirm PW', 'give' ); ?></label> |
|
49 | + <label for="give-user-pass2"><?php esc_html_e('Confirm PW', 'give'); ?></label> |
|
50 | 50 | <input id="give-user-pass2" class="password required give-input" type="password" name="give_user_pass2" required aria-required="true" /> |
51 | 51 | </div> |
52 | 52 | |
@@ -58,17 +58,17 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @since 1.0 |
60 | 60 | */ |
61 | - do_action( 'give_register_form_fields_before_submit' ); |
|
61 | + do_action('give_register_form_fields_before_submit'); |
|
62 | 62 | ?> |
63 | 63 | |
64 | 64 | <div class="give-hidden"> |
65 | 65 | <input type="hidden" name="give_honeypot" value="" /> |
66 | 66 | <input type="hidden" name="give_action" value="user_register" /> |
67 | - <input type="hidden" name="give_redirect" value="<?php echo esc_url( $give_register_redirect ); ?>" /> |
|
67 | + <input type="hidden" name="give_redirect" value="<?php echo esc_url($give_register_redirect); ?>" /> |
|
68 | 68 | </div> |
69 | 69 | |
70 | 70 | <div class="form-row"> |
71 | - <input class="button" name="give_register_submit" type="submit" value="<?php esc_attr_e( 'Register', 'give' ); ?>" /> |
|
71 | + <input class="button" name="give_register_submit" type="submit" value="<?php esc_attr_e('Register', 'give'); ?>" /> |
|
72 | 72 | </div> |
73 | 73 | |
74 | 74 | <?php |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @since 1.0 |
81 | 81 | */ |
82 | - do_action( 'give_register_form_fields_after' ); |
|
82 | + do_action('give_register_form_fields_after'); |
|
83 | 83 | ?> |
84 | 84 | |
85 | 85 | </fieldset> |
@@ -92,6 +92,6 @@ discard block |
||
92 | 92 | * |
93 | 93 | * @since 1.0 |
94 | 94 | */ |
95 | - do_action( 'give_register_form_fields_bottom' ); |
|
95 | + do_action('give_register_form_fields_bottom'); |
|
96 | 96 | ?> |
97 | 97 | </form> |
@@ -9,13 +9,13 @@ discard block |
||
9 | 9 | * @since 1.0 |
10 | 10 | */ |
11 | 11 | |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | +if ( ! defined('ABSPATH')) { |
|
13 | 13 | exit; // Exit if accessed directly. |
14 | 14 | } |
15 | 15 | |
16 | -$template = strtolower( get_option( 'template' ) ); |
|
16 | +$template = strtolower(get_option('template')); |
|
17 | 17 | |
18 | -switch ( $template ) { |
|
18 | +switch ($template) { |
|
19 | 19 | case 'twentyeleven' : |
20 | 20 | echo '<div id="primary" class="give-wrap"><div id="content" role="main" class="twentyeleven">'; |
21 | 21 | break; |
@@ -65,6 +65,6 @@ discard block |
||
65 | 65 | echo '<div class="wrapper hentry" style="box-sizing: border-box;">'; |
66 | 66 | break; |
67 | 67 | default : |
68 | - echo apply_filters( 'give_default_wrapper_start', '<div id="container" class="give-wrap container"><div id="content" role="main">' ); |
|
68 | + echo apply_filters('give_default_wrapper_start', '<div id="container" class="give-wrap container"><div id="content" role="main">'); |
|
69 | 69 | break; |
70 | 70 | } |
71 | 71 | \ No newline at end of file |
@@ -9,13 +9,13 @@ discard block |
||
9 | 9 | * @since 1.0 |
10 | 10 | */ |
11 | 11 | |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | +if ( ! defined('ABSPATH')) { |
|
13 | 13 | exit; // Exit if accessed directly. |
14 | 14 | } |
15 | 15 | |
16 | -$template = get_option( 'template' ); |
|
16 | +$template = get_option('template'); |
|
17 | 17 | |
18 | -switch ( $template ) { |
|
18 | +switch ($template) { |
|
19 | 19 | case 'twentyeleven' : |
20 | 20 | echo '</div></div>'; |
21 | 21 | break; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | break; |
28 | 28 | case 'twentyfourteen' : |
29 | 29 | echo '</div></div></div>'; |
30 | - get_sidebar( 'content' ); |
|
30 | + get_sidebar('content'); |
|
31 | 31 | break; |
32 | 32 | case 'twentyfifteen' : |
33 | 33 | echo '</div></div>'; |
@@ -57,6 +57,6 @@ discard block |
||
57 | 57 | echo '</div>'; |
58 | 58 | break; |
59 | 59 | default : |
60 | - echo apply_filters( 'give_default_wrapper_end', '</div></div>' ); |
|
60 | + echo apply_filters('give_default_wrapper_end', '</div></div>'); |
|
61 | 61 | break; |
62 | 62 | } |
63 | 63 | \ No newline at end of file |
@@ -2,13 +2,13 @@ discard block |
||
2 | 2 | /** |
3 | 3 | * This template is used to display the login form with [give_login] |
4 | 4 | */ |
5 | -if ( ! is_user_logged_in() ) { |
|
5 | +if ( ! is_user_logged_in()) { |
|
6 | 6 | |
7 | 7 | // Show any error messages after form submission |
8 | - Give()->notices->render_frontend_notices( 0 ); ?> |
|
8 | + Give()->notices->render_frontend_notices(0); ?> |
|
9 | 9 | <form id="give-login-form" class="give-form" action="" method="post"> |
10 | 10 | <fieldset> |
11 | - <legend><?php esc_html_e( 'Log into Your Account', 'give' ); ?></legend> |
|
11 | + <legend><?php esc_html_e('Log into Your Account', 'give'); ?></legend> |
|
12 | 12 | <?php |
13 | 13 | /** |
14 | 14 | * Fires in the login shortcode, before the login fields. |
@@ -17,27 +17,27 @@ discard block |
||
17 | 17 | * |
18 | 18 | * @since 1.0 |
19 | 19 | */ |
20 | - do_action( 'give_login_fields_before' ); |
|
20 | + do_action('give_login_fields_before'); |
|
21 | 21 | ?> |
22 | 22 | <div class="give-login-username give-login"> |
23 | - <label for="give_user_login"><?php esc_html_e( 'Username', 'give' ); ?></label> |
|
23 | + <label for="give_user_login"><?php esc_html_e('Username', 'give'); ?></label> |
|
24 | 24 | <input name="give_user_login" id="give_user_login" class="give-required give-input" type="text" required aria-required="true" /> |
25 | 25 | </div> |
26 | 26 | |
27 | 27 | <div class="give-login-password give-login"> |
28 | - <label for="give_user_pass"><?php esc_html_e( 'Password', 'give' ); ?></label> |
|
28 | + <label for="give_user_pass"><?php esc_html_e('Password', 'give'); ?></label> |
|
29 | 29 | <input name="give_user_pass" id="give_user_pass" class="give-password give-required give-input" type="password" required aria-required="true" /> |
30 | 30 | </div> |
31 | 31 | |
32 | 32 | <div class="give-login-submit give-login"> |
33 | - <input type="hidden" name="give_login_redirect" value="<?php echo esc_url( $give_login_redirect ); ?>" /> |
|
34 | - <input type="hidden" name="give_login_nonce" value="<?php echo wp_create_nonce( 'give-login-nonce' ); ?>" /> |
|
33 | + <input type="hidden" name="give_login_redirect" value="<?php echo esc_url($give_login_redirect); ?>" /> |
|
34 | + <input type="hidden" name="give_login_nonce" value="<?php echo wp_create_nonce('give-login-nonce'); ?>" /> |
|
35 | 35 | <input type="hidden" name="give_action" value="user_login" /> |
36 | - <input id="give_login_submit" type="submit" class="give_submit" value="<?php esc_attr_e( 'Log In', 'give' ); ?>" /> |
|
36 | + <input id="give_login_submit" type="submit" class="give_submit" value="<?php esc_attr_e('Log In', 'give'); ?>" /> |
|
37 | 37 | </div> |
38 | 38 | |
39 | 39 | <div class="give-lost-password give-login"> |
40 | - <a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e( 'Reset Password', 'give' ); ?></a> |
|
40 | + <a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e('Reset Password', 'give'); ?></a> |
|
41 | 41 | </div> |
42 | 42 | <?php |
43 | 43 | /** |
@@ -47,12 +47,12 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @since 1.0 |
49 | 49 | */ |
50 | - do_action( 'give_login_fields_after' ); |
|
50 | + do_action('give_login_fields_after'); |
|
51 | 51 | ?> |
52 | 52 | </fieldset> |
53 | 53 | </form> |
54 | -<?php } elseif( isset( $_GET['give-login-success'] ) && $_GET['give-login-success'] == true ) { ?> |
|
55 | - <?php Give()->notices->print_frontend_notice( apply_filters('give_successful_login_message', esc_html__( 'Login successful. Welcome!', 'give' )), true, 'success' ); ?> |
|
54 | +<?php } elseif (isset($_GET['give-login-success']) && $_GET['give-login-success'] == true) { ?> |
|
55 | + <?php Give()->notices->print_frontend_notice(apply_filters('give_successful_login_message', esc_html__('Login successful. Welcome!', 'give')), true, 'success'); ?> |
|
56 | 56 | <?php } else { ?> |
57 | - <?php Give()->notices->print_frontend_notice( apply_filters('give_already_logged_in_message', sprintf( __( 'You are already logged in to the site. <a href="%s">Click here</a> to logout.', 'give' ), esc_url( $give_logout_redirect ) ) ), true, 'warning' ); ?> |
|
57 | + <?php Give()->notices->print_frontend_notice(apply_filters('give_already_logged_in_message', sprintf(__('You are already logged in to the site. <a href="%s">Click here</a> to logout.', 'give'), esc_url($give_logout_redirect))), true, 'warning'); ?> |
|
58 | 58 | <?php } ?> |
59 | 59 | \ No newline at end of file |
@@ -3,24 +3,24 @@ discard block |
||
3 | 3 | * This template is used to display the goal with [give_goal] |
4 | 4 | */ |
5 | 5 | |
6 | -$form = new Give_Donate_Form( $form_id ); |
|
7 | -$goal_option = give_get_meta( $form->ID, '_give_goal_option', true ); |
|
6 | +$form = new Give_Donate_Form($form_id); |
|
7 | +$goal_option = give_get_meta($form->ID, '_give_goal_option', true); |
|
8 | 8 | |
9 | 9 | //Sanity check - ensure form has pass all condition to show goal. |
10 | 10 | if ( |
11 | - ( isset( $args['show_goal'] ) && ! filter_var( $args['show_goal'], FILTER_VALIDATE_BOOLEAN ) ) |
|
12 | - || empty( $form->ID ) |
|
13 | - || ( is_singular( 'give_forms' ) && ! give_is_setting_enabled( $goal_option ) ) |
|
14 | - || ! give_is_setting_enabled( $goal_option ) |
|
11 | + (isset($args['show_goal']) && ! filter_var($args['show_goal'], FILTER_VALIDATE_BOOLEAN)) |
|
12 | + || empty($form->ID) |
|
13 | + || (is_singular('give_forms') && ! give_is_setting_enabled($goal_option)) |
|
14 | + || ! give_is_setting_enabled($goal_option) |
|
15 | 15 | || 0 === $form->goal |
16 | 16 | ) { |
17 | 17 | return false; |
18 | 18 | } |
19 | 19 | |
20 | -$goal_format = give_get_meta( $form_id, '_give_goal_format', true ); |
|
21 | -$color = give_get_meta( $form_id, '_give_goal_color', true ); |
|
22 | -$show_text = isset( $args['show_text'] ) ? filter_var( $args['show_text'], FILTER_VALIDATE_BOOLEAN ) : true; |
|
23 | -$show_bar = isset( $args['show_bar'] ) ? filter_var( $args['show_bar'], FILTER_VALIDATE_BOOLEAN ) : true; |
|
20 | +$goal_format = give_get_meta($form_id, '_give_goal_format', true); |
|
21 | +$color = give_get_meta($form_id, '_give_goal_color', true); |
|
22 | +$show_text = isset($args['show_text']) ? filter_var($args['show_text'], FILTER_VALIDATE_BOOLEAN) : true; |
|
23 | +$show_bar = isset($args['show_bar']) ? filter_var($args['show_bar'], FILTER_VALIDATE_BOOLEAN) : true; |
|
24 | 24 | |
25 | 25 | |
26 | 26 | /** |
@@ -28,14 +28,14 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @since 1.8.8 |
30 | 30 | */ |
31 | -$income = apply_filters( 'give_goal_amount_raised_output', $form->get_earnings(), $form_id, $form ); |
|
31 | +$income = apply_filters('give_goal_amount_raised_output', $form->get_earnings(), $form_id, $form); |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Filter the form |
35 | 35 | * |
36 | 36 | * @since 1.8.8 |
37 | 37 | */ |
38 | -$goal = apply_filters( 'give_goal_amount_target_output', $form->goal, $form_id, $form ); |
|
38 | +$goal = apply_filters('give_goal_amount_target_output', $form->goal, $form_id, $form); |
|
39 | 39 | |
40 | 40 | |
41 | 41 | /** |
@@ -43,39 +43,39 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @since 1.8.8 |
45 | 45 | */ |
46 | -$progress = apply_filters( 'give_goal_amount_funded_percentage_output', round( ( $income / $goal ) * 100, 2 ), $form_id, $form ); |
|
46 | +$progress = apply_filters('give_goal_amount_funded_percentage_output', round(($income / $goal) * 100, 2), $form_id, $form); |
|
47 | 47 | |
48 | 48 | |
49 | 49 | // Set progress to 100 percentage if income > goal. |
50 | -if ( $income >= $goal ) { |
|
50 | +if ($income >= $goal) { |
|
51 | 51 | $progress = 100; |
52 | 52 | } |
53 | 53 | |
54 | 54 | ?> |
55 | 55 | <div class="give-goal-progress"> |
56 | - <?php if ( ! empty( $show_text ) ) : ?> |
|
56 | + <?php if ( ! empty($show_text)) : ?> |
|
57 | 57 | <div class="raised"> |
58 | 58 | <?php |
59 | - if ( $goal_format !== 'percentage' ) : |
|
59 | + if ($goal_format !== 'percentage') : |
|
60 | 60 | |
61 | 61 | // Get formatted amount. |
62 | - $income = give_human_format_large_amount( give_format_amount( $income, array( 'sanitize' => false ) ) ); |
|
63 | - $goal = give_human_format_large_amount( give_format_amount( $goal, array( 'sanitize' => false ) ) ); |
|
62 | + $income = give_human_format_large_amount(give_format_amount($income, array('sanitize' => false))); |
|
63 | + $goal = give_human_format_large_amount(give_format_amount($goal, array('sanitize' => false))); |
|
64 | 64 | |
65 | 65 | echo sprintf( |
66 | 66 | /* translators: 1: amount of income raised 2: goal target ammount */ |
67 | - __( '%1$s of %2$s raised', 'give' ), |
|
68 | - '<span class="income">' . give_currency_filter( $income ) . '</span>', |
|
69 | - '<span class="goal-text">' . give_currency_filter( $goal ) . '</span>' |
|
67 | + __('%1$s of %2$s raised', 'give'), |
|
68 | + '<span class="income">'.give_currency_filter($income).'</span>', |
|
69 | + '<span class="goal-text">'.give_currency_filter($goal).'</span>' |
|
70 | 70 | ); |
71 | 71 | |
72 | 72 | |
73 | - elseif ( $goal_format == 'percentage' ) : |
|
73 | + elseif ($goal_format == 'percentage') : |
|
74 | 74 | |
75 | 75 | echo sprintf( |
76 | 76 | /* translators: %s: percentage of the amount raised compared to the goal target */ |
77 | - __( '%s%% funded', 'give' ), |
|
78 | - '<span class="give-percentage">' . round( $progress ) . '</span>' |
|
77 | + __('%s%% funded', 'give'), |
|
78 | + '<span class="give-percentage">'.round($progress).'</span>' |
|
79 | 79 | ); |
80 | 80 | |
81 | 81 | endif; |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | <?php endif; ?> |
85 | 85 | |
86 | 86 | |
87 | - <?php if ( ! empty( $show_bar ) ) : ?> |
|
88 | - <div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo esc_attr( $progress ); ?>"> |
|
89 | - <span style="width: <?php echo esc_attr( $progress ); ?>%;<?php if ( ! empty( $color ) ) { |
|
90 | - echo 'background-color:' . $color; |
|
87 | + <?php if ( ! empty($show_bar)) : ?> |
|
88 | + <div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo esc_attr($progress); ?>"> |
|
89 | + <span style="width: <?php echo esc_attr($progress); ?>%;<?php if ( ! empty($color)) { |
|
90 | + echo 'background-color:'.$color; |
|
91 | 91 | } ?>"></span> |
92 | 92 | </div><!-- /.give-progress-bar --> |
93 | 93 | <?php endif; ?> |
@@ -6,18 +6,18 @@ discard block |
||
6 | 6 | */ |
7 | 7 | |
8 | 8 | $show_form = true; |
9 | -$email = isset( $_POST['give_email'] ) ? $_POST['give_email'] : ''; |
|
9 | +$email = isset($_POST['give_email']) ? $_POST['give_email'] : ''; |
|
10 | 10 | |
11 | 11 | // reCAPTCHA |
12 | -$recaptcha_key = give_get_option( 'recaptcha_key' ); |
|
13 | -$recaptcha_secret = give_get_option( 'recaptcha_secret' ); |
|
14 | -$enable_recaptcha = ( ! empty( $recaptcha_key ) && ! empty( $recaptcha_secret ) ) ? true : false; |
|
12 | +$recaptcha_key = give_get_option('recaptcha_key'); |
|
13 | +$recaptcha_secret = give_get_option('recaptcha_secret'); |
|
14 | +$enable_recaptcha = ( ! empty($recaptcha_key) && ! empty($recaptcha_secret)) ? true : false; |
|
15 | 15 | |
16 | 16 | // Form submission |
17 | -if ( is_email( $email ) && wp_verify_nonce( $_POST['_wpnonce'], 'give' ) ) { |
|
17 | +if (is_email($email) && wp_verify_nonce($_POST['_wpnonce'], 'give')) { |
|
18 | 18 | |
19 | 19 | // Use reCAPTCHA |
20 | - if ( $enable_recaptcha ) { |
|
20 | + if ($enable_recaptcha) { |
|
21 | 21 | |
22 | 22 | $args = array( |
23 | 23 | 'secret' => $recaptcha_secret, |
@@ -25,70 +25,70 @@ discard block |
||
25 | 25 | 'remoteip' => $_POST['give_ip'], |
26 | 26 | ); |
27 | 27 | |
28 | - if ( ! empty( $args['response'] ) ) { |
|
29 | - $request = wp_remote_post( 'https://www.google.com/recaptcha/api/siteverify', array( |
|
28 | + if ( ! empty($args['response'])) { |
|
29 | + $request = wp_remote_post('https://www.google.com/recaptcha/api/siteverify', array( |
|
30 | 30 | 'body' => $args, |
31 | - ) ); |
|
32 | - if ( ! is_wp_error( $request ) || 200 == wp_remote_retrieve_response_code( $request ) ) { |
|
31 | + )); |
|
32 | + if ( ! is_wp_error($request) || 200 == wp_remote_retrieve_response_code($request)) { |
|
33 | 33 | |
34 | - $response = json_decode( $request['body'], true ); |
|
34 | + $response = json_decode($request['body'], true); |
|
35 | 35 | |
36 | 36 | // reCAPTCHA fail |
37 | - if ( ! $response['success'] ) { |
|
38 | - give_set_error( 'give_recaptcha_test_failed', apply_filters( 'give_recaptcha_test_failed_message', esc_html__( 'reCAPTCHA test failed.', 'give' ) ) ); |
|
37 | + if ( ! $response['success']) { |
|
38 | + give_set_error('give_recaptcha_test_failed', apply_filters('give_recaptcha_test_failed_message', esc_html__('reCAPTCHA test failed.', 'give'))); |
|
39 | 39 | } |
40 | 40 | } else { |
41 | 41 | |
42 | 42 | // Connection issue |
43 | - give_set_error( 'give_recaptcha_connection_issue', apply_filters( 'give_recaptcha_connection_issue_message', esc_html__( 'Unable to connect to reCAPTCHA server.', 'give' ) ) ); |
|
43 | + give_set_error('give_recaptcha_connection_issue', apply_filters('give_recaptcha_connection_issue_message', esc_html__('Unable to connect to reCAPTCHA server.', 'give'))); |
|
44 | 44 | |
45 | 45 | } |
46 | 46 | } // End if(). |
47 | 47 | else { |
48 | 48 | |
49 | - give_set_error( 'give_recaptcha_failed', apply_filters( 'give_recaptcha_failed_message', esc_html__( 'It looks like the reCAPTCHA test has failed.', 'give' ) ) ); |
|
49 | + give_set_error('give_recaptcha_failed', apply_filters('give_recaptcha_failed_message', esc_html__('It looks like the reCAPTCHA test has failed.', 'give'))); |
|
50 | 50 | |
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | 54 | // If no errors or only expired token key error - then send email |
55 | - if ( ! give_get_errors() ) { |
|
55 | + if ( ! give_get_errors()) { |
|
56 | 56 | |
57 | - $donor = Give()->donors->get_donor_by( 'email', $email ); |
|
57 | + $donor = Give()->donors->get_donor_by('email', $email); |
|
58 | 58 | |
59 | - if ( isset( $donor->id ) ) { |
|
60 | - if ( Give()->email_access->can_send_email( $donor->id ) ) { |
|
61 | - Give()->email_access->send_email( $donor->id, $email ); |
|
59 | + if (isset($donor->id)) { |
|
60 | + if (Give()->email_access->can_send_email($donor->id)) { |
|
61 | + Give()->email_access->send_email($donor->id, $email); |
|
62 | 62 | $show_form = false; |
63 | 63 | } |
64 | 64 | } else { |
65 | - give_set_error( 'give_no_donor_email_exists', apply_filters( 'give_no_donor_email_exists_message', __( 'It looks like that donor email address does not exist.', 'give' ) ) ); |
|
65 | + give_set_error('give_no_donor_email_exists', apply_filters('give_no_donor_email_exists_message', __('It looks like that donor email address does not exist.', 'give'))); |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 | }// End if(). |
69 | 69 | |
70 | 70 | // Print any messages & errors |
71 | -Give()->notices->render_frontend_notices( 0 ); |
|
71 | +Give()->notices->render_frontend_notices(0); |
|
72 | 72 | |
73 | 73 | // Show the email login form? |
74 | -if ( $show_form ) { |
|
74 | +if ($show_form) { |
|
75 | 75 | ?> |
76 | 76 | |
77 | 77 | <div class="give-form"> |
78 | 78 | |
79 | 79 | <?php |
80 | - if ( ! give_get_errors() ) { |
|
81 | - Give()->notices->print_frontend_notice( apply_filters( 'give_email_access_message', __( 'Please enter the email address you used for your donation. A verification email containing an access link will be sent to you.', 'give' ) ), true ); |
|
80 | + if ( ! give_get_errors()) { |
|
81 | + Give()->notices->print_frontend_notice(apply_filters('give_email_access_message', __('Please enter the email address you used for your donation. A verification email containing an access link will be sent to you.', 'give')), true); |
|
82 | 82 | } ?> |
83 | 83 | |
84 | 84 | <form method="post" action="" id="give-email-access-form"> |
85 | - <label for="give-email"><?php esc_html__( 'Donation Email:', 'give' ); ?></label> |
|
86 | - <input id="give-email" type="email" name="give_email" value="" placeholder="<?php esc_attr_e( 'Your donation email', 'give' ); ?>"/> |
|
87 | - <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'give' ); ?>"/> |
|
85 | + <label for="give-email"><?php esc_html__('Donation Email:', 'give'); ?></label> |
|
86 | + <input id="give-email" type="email" name="give_email" value="" placeholder="<?php esc_attr_e('Your donation email', 'give'); ?>"/> |
|
87 | + <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('give'); ?>"/> |
|
88 | 88 | |
89 | 89 | <?php |
90 | 90 | // Enable reCAPTCHA? |
91 | - if ( $enable_recaptcha ) { ?> |
|
91 | + if ($enable_recaptcha) { ?> |
|
92 | 92 | |
93 | 93 | <script> |
94 | 94 | //IP verify for reCAPTCHA |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | <input type="hidden" name="give_ip" class="give_ip" value=""/> |
107 | 107 | <?php } ?> |
108 | 108 | |
109 | - <input type="submit" class="give-submit" value="<?php esc_attr_e( 'Email access token', 'give' ); ?>"/> |
|
109 | + <input type="submit" class="give-submit" value="<?php esc_attr_e('Email access token', 'give'); ?>"/> |
|
110 | 110 | </form> |
111 | 111 | </div> |
112 | 112 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | Give()->notices->print_frontend_notice( |
117 | 117 | sprintf( |
118 | 118 | /* translators: %s: user email address */ |
119 | - esc_html__( 'An email with an access link has been sent to %s.', 'give' ), |
|
119 | + esc_html__('An email with an access link has been sent to %s.', 'give'), |
|
120 | 120 | |
121 | 121 | ), |
122 | 122 | true, |