@@ -11,15 +11,15 @@ discard block |
||
11 | 11 | * |
12 | 12 | * @return string |
13 | 13 | */ |
14 | -function _give_bc_offline_donation_instruction_notification_status( $notification_status, $email, $form_id ) { |
|
14 | +function _give_bc_offline_donation_instruction_notification_status($notification_status, $email, $form_id) { |
|
15 | 15 | // Bailout. |
16 | - if ( ! $form_id ) { |
|
16 | + if ( ! $form_id) { |
|
17 | 17 | return $notification_status; |
18 | 18 | } |
19 | 19 | |
20 | - if ( ! get_post_meta( $form_id, '_give_offline-donation-instruction_notification', true ) ) { |
|
21 | - $old_value = get_post_meta( $form_id, '_give_customize_offline_donations', true ); |
|
22 | - $notification_status = give_is_setting_enabled( $old_value, array( 'enabled', 'global' ) ) |
|
20 | + if ( ! get_post_meta($form_id, '_give_offline-donation-instruction_notification', true)) { |
|
21 | + $old_value = get_post_meta($form_id, '_give_customize_offline_donations', true); |
|
22 | + $notification_status = give_is_setting_enabled($old_value, array('enabled', 'global')) |
|
23 | 23 | ? $old_value |
24 | 24 | : 'global'; |
25 | 25 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | return $notification_status; |
29 | 29 | } |
30 | 30 | |
31 | -add_filter( 'give__give_offline-donation-instruction_get_notification_status', '_give_bc_offline_donation_instruction_notification_status', 10, 3 ); |
|
31 | +add_filter('give__give_offline-donation-instruction_get_notification_status', '_give_bc_offline_donation_instruction_notification_status', 10, 3); |
|
32 | 32 | |
33 | 33 | |
34 | 34 | /** |
@@ -43,22 +43,22 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @return mixed |
45 | 45 | */ |
46 | -function _give_bc_offline_donation_instruction_email_setting_values( $option_value, $option_name, $email, $form_id ) { |
|
46 | +function _give_bc_offline_donation_instruction_email_setting_values($option_value, $option_name, $email, $form_id) { |
|
47 | 47 | // Bailout. |
48 | - if ( empty( $form_id ) || 'offline-donation-instruction' !== $email->config['id'] ) { |
|
48 | + if (empty($form_id) || 'offline-donation-instruction' !== $email->config['id']) { |
|
49 | 49 | return $option_value; |
50 | 50 | } |
51 | 51 | |
52 | - switch ( $option_name ) { |
|
52 | + switch ($option_name) { |
|
53 | 53 | case '_give_offline-donation-instruction_email_message': |
54 | - if ( ! get_post_meta( $form_id, $option_name, true ) && give_is_setting_enabled( $email->get_notification_status( $form_id ) ) ) { |
|
55 | - $option_value = get_post_meta( $form_id, '_give_offline_donation_email', true ); |
|
54 | + if ( ! get_post_meta($form_id, $option_name, true) && give_is_setting_enabled($email->get_notification_status($form_id))) { |
|
55 | + $option_value = get_post_meta($form_id, '_give_offline_donation_email', true); |
|
56 | 56 | } |
57 | 57 | break; |
58 | 58 | |
59 | 59 | case '_give_offline-donation-instruction_email_subject': |
60 | - if ( ! get_post_meta( $form_id, $option_name, true ) && give_is_setting_enabled( $email->get_notification_status( $form_id ) ) ) { |
|
61 | - $option_value = get_post_meta( $form_id, '_give_offline_donation_subject', true ); |
|
60 | + if ( ! get_post_meta($form_id, $option_name, true) && give_is_setting_enabled($email->get_notification_status($form_id))) { |
|
61 | + $option_value = get_post_meta($form_id, '_give_offline_donation_subject', true); |
|
62 | 62 | } |
63 | 63 | break; |
64 | 64 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return $option_value; |
67 | 67 | } |
68 | 68 | |
69 | -add_filter( 'give_email_setting_value', '_give_bc_offline_donation_instruction_email_setting_values', 10, 4 ); |
|
69 | +add_filter('give_email_setting_value', '_give_bc_offline_donation_instruction_email_setting_values', 10, 4); |
|
70 | 70 | |
71 | 71 | |
72 | 72 | /** |
@@ -80,10 +80,10 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @return string |
82 | 82 | */ |
83 | -function _give_bc_offline_instruction_status_setting_value( $field_value, $field, $form_id ) { |
|
84 | - if ( ! get_post_meta( $form_id, $field['id'], true ) ) { |
|
85 | - $old_value = get_post_meta( $form_id, '_give_customize_offline_donations', true ); |
|
86 | - $field_value = give_is_setting_enabled( $old_value, array( 'enabled', 'global' ) ) |
|
83 | +function _give_bc_offline_instruction_status_setting_value($field_value, $field, $form_id) { |
|
84 | + if ( ! get_post_meta($form_id, $field['id'], true)) { |
|
85 | + $old_value = get_post_meta($form_id, '_give_customize_offline_donations', true); |
|
86 | + $field_value = give_is_setting_enabled($old_value, array('enabled', 'global')) |
|
87 | 87 | ? $old_value |
88 | 88 | : 'global'; |
89 | 89 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | return $field_value; |
92 | 92 | } |
93 | 93 | |
94 | -add_filter( '_give_offline-donation-instruction_notification_field_value', '_give_bc_offline_instruction_status_setting_value', 10, 3 ); |
|
94 | +add_filter('_give_offline-donation-instruction_notification_field_value', '_give_bc_offline_instruction_status_setting_value', 10, 3); |
|
95 | 95 | |
96 | 96 | |
97 | 97 | /** |
@@ -105,15 +105,15 @@ discard block |
||
105 | 105 | * |
106 | 106 | * @return string |
107 | 107 | */ |
108 | -function _offline_donation_instruction_email_subject_setting_value( $field_value, $field, $form_id ) { |
|
109 | - if ( ! get_post_meta( $form_id, $field['id'], true ) ) { |
|
110 | - $field_value = get_post_meta( $form_id, '_give_offline_donation_subject', true ); |
|
108 | +function _offline_donation_instruction_email_subject_setting_value($field_value, $field, $form_id) { |
|
109 | + if ( ! get_post_meta($form_id, $field['id'], true)) { |
|
110 | + $field_value = get_post_meta($form_id, '_give_offline_donation_subject', true); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | return $field_value; |
114 | 114 | } |
115 | 115 | |
116 | -add_filter( '_give_offline-donation-instruction_email_subject_field_value', '_offline_donation_instruction_email_subject_setting_value', 10, 3 ); |
|
116 | +add_filter('_give_offline-donation-instruction_email_subject_field_value', '_offline_donation_instruction_email_subject_setting_value', 10, 3); |
|
117 | 117 | |
118 | 118 | |
119 | 119 | /** |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | * |
128 | 128 | * @return string |
129 | 129 | */ |
130 | -function _give_bc_offline_donation_instruction_email_message_setting_value( $field_value, $field, $form_id ) { |
|
131 | - if ( ! get_post_meta( $form_id, $field['id'], true ) ) { |
|
132 | - $field_value = get_post_meta( $form_id, '_give_offline_donation_email', true ); |
|
130 | +function _give_bc_offline_donation_instruction_email_message_setting_value($field_value, $field, $form_id) { |
|
131 | + if ( ! get_post_meta($form_id, $field['id'], true)) { |
|
132 | + $field_value = get_post_meta($form_id, '_give_offline_donation_email', true); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | return $field_value; |
136 | 136 | } |
137 | 137 | |
138 | -add_filter( '_give_offline-donation-instruction_email_message_field_value', '_give_bc_offline_donation_instruction_email_message_setting_value', 10, 3 ); |
|
139 | 138 | \ No newline at end of file |
139 | +add_filter('_give_offline-donation-instruction_email_message_field_value', '_give_bc_offline_donation_instruction_email_message_setting_value', 10, 3); |
|
140 | 140 | \ No newline at end of file |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | |
18 | 18 | // Exit if accessed directly. |
19 | -if ( ! defined( 'ABSPATH' ) ) { |
|
19 | +if ( ! defined('ABSPATH')) { |
|
20 | 20 | exit; |
21 | 21 | } |
22 | 22 | |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | * @return void |
30 | 30 | */ |
31 | 31 | function give_reports_page() { |
32 | - $current_page = admin_url( 'edit.php?post_type=give_forms&page=give-reports' ); |
|
33 | - $active_tab = isset( $_GET['tab'] ) ? sanitize_text_field( $_GET['tab'] ) : 'earnings'; |
|
32 | + $current_page = admin_url('edit.php?post_type=give_forms&page=give-reports'); |
|
33 | + $active_tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'earnings'; |
|
34 | 34 | $views = give_reports_default_views(); |
35 | 35 | ?> |
36 | 36 | <div class="wrap give-settings-page"> |
@@ -38,17 +38,17 @@ discard block |
||
38 | 38 | <h1 class="screen-reader-text"><?php echo get_admin_page_title(); ?></h1> |
39 | 39 | |
40 | 40 | <h2 class="nav-tab-wrapper"> |
41 | - <?php foreach ( $views as $tab => $label ) { ?> |
|
42 | - <a href="<?php echo esc_url( add_query_arg( array( |
|
41 | + <?php foreach ($views as $tab => $label) { ?> |
|
42 | + <a href="<?php echo esc_url(add_query_arg(array( |
|
43 | 43 | 'tab' => $tab, |
44 | 44 | 'settings-updated' => false, |
45 | - ), $current_page ) ); ?>" class="nav-tab <?php echo $tab === $active_tab ? esc_attr( 'nav-tab-active' ) : ''; ?>"><?php echo esc_html( $label ); ?></a> |
|
45 | + ), $current_page)); ?>" class="nav-tab <?php echo $tab === $active_tab ? esc_attr('nav-tab-active') : ''; ?>"><?php echo esc_html($label); ?></a> |
|
46 | 46 | <?php } ?> |
47 | - <?php if ( current_user_can( 'export_give_reports' ) ) { ?> |
|
48 | - <a href="<?php echo esc_url( add_query_arg( array( |
|
47 | + <?php if (current_user_can('export_give_reports')) { ?> |
|
48 | + <a href="<?php echo esc_url(add_query_arg(array( |
|
49 | 49 | 'tab' => 'export', |
50 | 50 | 'settings-updated' => false, |
51 | - ), $current_page ) ); ?>" class="nav-tab <?php echo 'export' === $active_tab ? esc_attr( 'nav-tab-active' ) : ''; ?>"><?php esc_html_e( 'Export', 'give' ); ?></a> |
|
51 | + ), $current_page)); ?>" class="nav-tab <?php echo 'export' === $active_tab ? esc_attr('nav-tab-active') : ''; ?>"><?php esc_html_e('Export', 'give'); ?></a> |
|
52 | 52 | <?php } |
53 | 53 | /** |
54 | 54 | * Fires in the report tabs. |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @since 1.0 |
59 | 59 | */ |
60 | - do_action( 'give_reports_tabs' ); |
|
60 | + do_action('give_reports_tabs'); |
|
61 | 61 | ?> |
62 | 62 | </h2> |
63 | 63 | |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @since 1.0 |
69 | 69 | */ |
70 | - do_action( 'give_reports_page_top' ); |
|
70 | + do_action('give_reports_page_top'); |
|
71 | 71 | |
72 | 72 | // Set $active_tab prior to hook firing. |
73 | - if ( in_array( $active_tab, array_keys( $views ) ) ) { |
|
73 | + if (in_array($active_tab, array_keys($views))) { |
|
74 | 74 | $active_tab = 'reports'; |
75 | 75 | } |
76 | 76 | |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @since 1.0 |
81 | 81 | */ |
82 | - do_action( "give_reports_tab_{$active_tab}" ); |
|
82 | + do_action("give_reports_tab_{$active_tab}"); |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Fires after the report page. |
86 | 86 | * |
87 | 87 | * @since 1.0 |
88 | 88 | */ |
89 | - do_action( 'give_reports_page_bottom' ); |
|
89 | + do_action('give_reports_page_bottom'); |
|
90 | 90 | ?> |
91 | 91 | </div><!-- .wrap --> |
92 | 92 | <?php |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | */ |
101 | 101 | function give_reports_default_views() { |
102 | 102 | $views = array( |
103 | - 'earnings' => esc_html__( 'Income', 'give' ), |
|
104 | - 'forms' => esc_html__( 'Forms', 'give' ), |
|
105 | - 'gateways' => esc_html__( 'Donation Methods', 'give' ), |
|
103 | + 'earnings' => esc_html__('Income', 'give'), |
|
104 | + 'forms' => esc_html__('Forms', 'give'), |
|
105 | + 'gateways' => esc_html__('Donation Methods', 'give'), |
|
106 | 106 | ); |
107 | 107 | |
108 | - $views = apply_filters( 'give_report_views', $views ); |
|
108 | + $views = apply_filters('give_report_views', $views); |
|
109 | 109 | |
110 | 110 | return $views; |
111 | 111 | } |
@@ -120,15 +120,15 @@ discard block |
||
120 | 120 | * @since 1.0 |
121 | 121 | * @return string $view Report View |
122 | 122 | */ |
123 | -function give_get_reporting_view( $default = 'earnings' ) { |
|
123 | +function give_get_reporting_view($default = 'earnings') { |
|
124 | 124 | |
125 | - if ( ! isset( $_GET['view'] ) || ! in_array( $_GET['view'], array_keys( give_reports_default_views() ) ) ) { |
|
125 | + if ( ! isset($_GET['view']) || ! in_array($_GET['view'], array_keys(give_reports_default_views()))) { |
|
126 | 126 | $view = $default; |
127 | 127 | } else { |
128 | 128 | $view = $_GET['view']; |
129 | 129 | } |
130 | 130 | |
131 | - return apply_filters( 'give_get_reporting_view', $view ); |
|
131 | + return apply_filters('give_get_reporting_view', $view); |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
@@ -139,14 +139,14 @@ discard block |
||
139 | 139 | */ |
140 | 140 | function give_reports_tab_reports() { |
141 | 141 | |
142 | - if( ! current_user_can( 'view_give_reports' ) ) { |
|
143 | - wp_die( __( 'You do not have permission to access this report', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) ); |
|
142 | + if ( ! current_user_can('view_give_reports')) { |
|
143 | + wp_die(__('You do not have permission to access this report', 'give'), __('Error', 'give'), array('response' => 403)); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | $current_view = 'earnings'; |
147 | 147 | $views = give_reports_default_views(); |
148 | 148 | |
149 | - if ( isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $views ) ) { |
|
149 | + if (isset($_GET['tab']) && array_key_exists($_GET['tab'], $views)) { |
|
150 | 150 | $current_view = $_GET['tab']; |
151 | 151 | } |
152 | 152 | |
@@ -155,10 +155,10 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @since 1.0 |
157 | 157 | */ |
158 | - do_action( "give_reports_view_{$current_view}" ); |
|
158 | + do_action("give_reports_view_{$current_view}"); |
|
159 | 159 | } |
160 | 160 | |
161 | -add_action( 'give_reports_tab_reports', 'give_reports_tab_reports' ); |
|
161 | +add_action('give_reports_tab_reports', 'give_reports_tab_reports'); |
|
162 | 162 | |
163 | 163 | /** |
164 | 164 | * Renders the Reports Page Views Drop Downs |
@@ -168,19 +168,19 @@ discard block |
||
168 | 168 | */ |
169 | 169 | function give_report_views() { |
170 | 170 | $views = give_reports_default_views(); |
171 | - $current_view = isset( $_GET['view'] ) ? $_GET['view'] : 'earnings'; |
|
171 | + $current_view = isset($_GET['view']) ? $_GET['view'] : 'earnings'; |
|
172 | 172 | /** |
173 | 173 | * Fires before the report page actions form. |
174 | 174 | * |
175 | 175 | * @since 1.0 |
176 | 176 | */ |
177 | - do_action( 'give_report_view_actions_before' ); |
|
177 | + do_action('give_report_view_actions_before'); |
|
178 | 178 | ?> |
179 | 179 | <form id="give-reports-filter" method="get"> |
180 | 180 | <select id="give-reports-view" name="view"> |
181 | - <option value="-1"><?php esc_html_e( 'Report Type', 'give' ); ?></option> |
|
182 | - <?php foreach ( $views as $view_id => $label ) : ?> |
|
183 | - <option value="<?php echo esc_attr( $view_id ); ?>" <?php selected( $view_id, $current_view ); ?>><?php echo $label; ?></option> |
|
181 | + <option value="-1"><?php esc_html_e('Report Type', 'give'); ?></option> |
|
182 | + <?php foreach ($views as $view_id => $label) : ?> |
|
183 | + <option value="<?php echo esc_attr($view_id); ?>" <?php selected($view_id, $current_view); ?>><?php echo $label; ?></option> |
|
184 | 184 | <?php endforeach; ?> |
185 | 185 | </select> |
186 | 186 | |
@@ -192,12 +192,12 @@ discard block |
||
192 | 192 | * |
193 | 193 | * @since 1.0 |
194 | 194 | */ |
195 | - do_action( 'give_report_view_actions' ); |
|
195 | + do_action('give_report_view_actions'); |
|
196 | 196 | ?> |
197 | 197 | |
198 | 198 | <input type="hidden" name="post_type" value="give_forms"/> |
199 | 199 | <input type="hidden" name="page" value="give-reports"/> |
200 | - <?php submit_button( esc_html__( 'Show', 'give' ), 'secondary', 'submit', false ); ?> |
|
200 | + <?php submit_button(esc_html__('Show', 'give'), 'secondary', 'submit', false); ?> |
|
201 | 201 | </form> |
202 | 202 | <?php |
203 | 203 | /** |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * |
206 | 206 | * @since 1.0 |
207 | 207 | */ |
208 | - do_action( 'give_report_view_actions_after' ); |
|
208 | + do_action('give_report_view_actions_after'); |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | /** |
@@ -218,11 +218,11 @@ discard block |
||
218 | 218 | */ |
219 | 219 | function give_reports_forms_table() { |
220 | 220 | |
221 | - if ( isset( $_GET['form-id'] ) ) { |
|
221 | + if (isset($_GET['form-id'])) { |
|
222 | 222 | return; |
223 | 223 | } |
224 | 224 | |
225 | - include GIVE_PLUGIN_DIR . 'includes/admin/reports/class-form-reports-table.php'; |
|
225 | + include GIVE_PLUGIN_DIR.'includes/admin/reports/class-form-reports-table.php'; |
|
226 | 226 | |
227 | 227 | $give_table = new Give_Form_Reports_Table(); |
228 | 228 | $give_table->prepare_items(); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | <?php |
235 | 235 | } |
236 | 236 | |
237 | -add_action( 'give_reports_view_forms', 'give_reports_forms_table' ); |
|
237 | +add_action('give_reports_view_forms', 'give_reports_forms_table'); |
|
238 | 238 | |
239 | 239 | /** |
240 | 240 | * Renders the detailed report for a specific give form. |
@@ -243,20 +243,20 @@ discard block |
||
243 | 243 | * @return void |
244 | 244 | */ |
245 | 245 | function give_reports_form_details() { |
246 | - if ( ! isset( $_GET['form-id'] ) ) { |
|
246 | + if ( ! isset($_GET['form-id'])) { |
|
247 | 247 | return; |
248 | 248 | } |
249 | 249 | ?> |
250 | 250 | <div class="tablenav top reports-forms-details-wrap"> |
251 | 251 | <div class="actions bulkactions"> |
252 | - <button onclick="history.go(-1);" class="button-secondary"><?php esc_html_e( 'Go Back', 'give' ); ?></button> |
|
252 | + <button onclick="history.go(-1);" class="button-secondary"><?php esc_html_e('Go Back', 'give'); ?></button> |
|
253 | 253 | </div> |
254 | 254 | </div> |
255 | 255 | <?php |
256 | - give_reports_graph_of_form( absint( $_GET['form-id'] ) ); |
|
256 | + give_reports_graph_of_form(absint($_GET['form-id'])); |
|
257 | 257 | } |
258 | 258 | |
259 | -add_action( 'give_reports_view_forms', 'give_reports_form_details' ); |
|
259 | +add_action('give_reports_view_forms', 'give_reports_form_details'); |
|
260 | 260 | |
261 | 261 | /** |
262 | 262 | * Renders the Gateways Table |
@@ -267,14 +267,14 @@ discard block |
||
267 | 267 | * @return void |
268 | 268 | */ |
269 | 269 | function give_reports_gateways_table() { |
270 | - include GIVE_PLUGIN_DIR . 'includes/admin/reports/class-gateways-reports-table.php'; |
|
270 | + include GIVE_PLUGIN_DIR.'includes/admin/reports/class-gateways-reports-table.php'; |
|
271 | 271 | |
272 | 272 | $give_table = new Give_Gateway_Reports_Table(); |
273 | 273 | $give_table->prepare_items(); |
274 | 274 | $give_table->display(); |
275 | 275 | } |
276 | 276 | |
277 | -add_action( 'give_reports_view_gateways', 'give_reports_gateways_table' ); |
|
277 | +add_action('give_reports_view_gateways', 'give_reports_gateways_table'); |
|
278 | 278 | |
279 | 279 | /** |
280 | 280 | * Renders the Reports Earnings Graphs |
@@ -285,13 +285,13 @@ discard block |
||
285 | 285 | function give_reports_earnings() { |
286 | 286 | ?> |
287 | 287 | <div class="tablenav top reports-table-nav"> |
288 | - <h2 class="reports-earnings-title screen-reader-text"><?php _e( 'Income Report', 'give' ); ?></h2> |
|
288 | + <h2 class="reports-earnings-title screen-reader-text"><?php _e('Income Report', 'give'); ?></h2> |
|
289 | 289 | </div> |
290 | 290 | <?php |
291 | 291 | give_reports_graph(); |
292 | 292 | } |
293 | 293 | |
294 | -add_action( 'give_reports_view_earnings', 'give_reports_earnings' ); |
|
294 | +add_action('give_reports_view_earnings', 'give_reports_earnings'); |
|
295 | 295 | |
296 | 296 | |
297 | 297 | /** |
@@ -302,9 +302,9 @@ discard block |
||
302 | 302 | */ |
303 | 303 | function give_estimated_monthly_stats() { |
304 | 304 | |
305 | - $estimated = Give_Cache::get( 'give_estimated_monthly_stats', true ); |
|
305 | + $estimated = Give_Cache::get('give_estimated_monthly_stats', true); |
|
306 | 306 | |
307 | - if ( false === $estimated ) { |
|
307 | + if (false === $estimated) { |
|
308 | 308 | |
309 | 309 | $estimated = array( |
310 | 310 | 'earnings' => 0, |
@@ -313,22 +313,22 @@ discard block |
||
313 | 313 | |
314 | 314 | $stats = new Give_Payment_Stats; |
315 | 315 | |
316 | - $to_date_earnings = $stats->get_earnings( 0, 'this_month' ); |
|
317 | - $to_date_sales = $stats->get_sales( 0, 'this_month' ); |
|
316 | + $to_date_earnings = $stats->get_earnings(0, 'this_month'); |
|
317 | + $to_date_sales = $stats->get_sales(0, 'this_month'); |
|
318 | 318 | |
319 | - $current_day = date( 'd', current_time( 'timestamp' ) ); |
|
320 | - $current_month = date( 'n', current_time( 'timestamp' ) ); |
|
321 | - $current_year = date( 'Y', current_time( 'timestamp' ) ); |
|
322 | - $days_in_month = cal_days_in_month( CAL_GREGORIAN, $current_month, $current_year ); |
|
319 | + $current_day = date('d', current_time('timestamp')); |
|
320 | + $current_month = date('n', current_time('timestamp')); |
|
321 | + $current_year = date('Y', current_time('timestamp')); |
|
322 | + $days_in_month = cal_days_in_month(CAL_GREGORIAN, $current_month, $current_year); |
|
323 | 323 | |
324 | - $estimated['earnings'] = ( $to_date_earnings / $current_day ) * $days_in_month; |
|
325 | - $estimated['sales'] = ( $to_date_sales / $current_day ) * $days_in_month; |
|
324 | + $estimated['earnings'] = ($to_date_earnings / $current_day) * $days_in_month; |
|
325 | + $estimated['sales'] = ($to_date_sales / $current_day) * $days_in_month; |
|
326 | 326 | |
327 | 327 | // Cache for one day |
328 | - Give_Cache::set( 'give_estimated_monthly_stats', $estimated, DAY_IN_SECONDS, true ); |
|
328 | + Give_Cache::set('give_estimated_monthly_stats', $estimated, DAY_IN_SECONDS, true); |
|
329 | 329 | } |
330 | 330 | |
331 | - return maybe_unserialize( $estimated ); |
|
331 | + return maybe_unserialize($estimated); |
|
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | function give_reports_set_form_method() { |
342 | 342 | return 'get'; |
343 | 343 | } |
344 | -add_filter( 'give-reports_form_method_tab_forms', 'give_reports_set_form_method', 10 ); |
|
345 | -add_filter( 'give-reports_form_method_tab_donors', 'give_reports_set_form_method', 10 ); |
|
344 | +add_filter('give-reports_form_method_tab_forms', 'give_reports_set_form_method', 10); |
|
345 | +add_filter('give-reports_form_method_tab_donors', 'give_reports_set_form_method', 10); |
|
346 | 346 | |
347 | 347 | // @TODO: After release 1.8 Donations -> Reports generates with new setting api, so we can remove some old code from this file. |
@@ -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 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @return static |
52 | 52 | */ |
53 | 53 | public static function get_instance() { |
54 | - if ( null === static::$instance ) { |
|
54 | + if (null === static::$instance) { |
|
55 | 55 | self::$instance = new static(); |
56 | 56 | self::$instance->setup(); |
57 | 57 | } |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | * @since 1.8.13 |
67 | 67 | */ |
68 | 68 | private function setup() { |
69 | - add_filter( 'cron_schedules', array( self::$instance, '__add_schedules' ) ); |
|
70 | - add_action( 'wp', array( self::$instance, '__schedule_events' ) ); |
|
69 | + add_filter('cron_schedules', array(self::$instance, '__add_schedules')); |
|
70 | + add_action('wp', array(self::$instance, '__schedule_events')); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @return array An array of non-default cron schedules. |
82 | 82 | */ |
83 | - public function __add_schedules( $schedules = array() ) { |
|
83 | + public function __add_schedules($schedules = array()) { |
|
84 | 84 | // Adds once weekly to the existing schedules. |
85 | 85 | $schedules['weekly'] = array( |
86 | 86 | 'interval' => 604800, |
87 | - 'display' => __( 'Once Weekly', 'give' ), |
|
87 | + 'display' => __('Once Weekly', 'give'), |
|
88 | 88 | ); |
89 | 89 | |
90 | 90 | return $schedules; |
@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | * @return void |
113 | 113 | */ |
114 | 114 | private function weekly_events() { |
115 | - if ( ! wp_next_scheduled( 'give_weekly_scheduled_events' ) ) { |
|
116 | - wp_schedule_event( current_time( 'timestamp' ), 'weekly', 'give_weekly_scheduled_events' ); |
|
115 | + if ( ! wp_next_scheduled('give_weekly_scheduled_events')) { |
|
116 | + wp_schedule_event(current_time('timestamp'), 'weekly', 'give_weekly_scheduled_events'); |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | * @return void |
127 | 127 | */ |
128 | 128 | private function daily_events() { |
129 | - if ( ! wp_next_scheduled( 'give_daily_scheduled_events' ) ) { |
|
130 | - wp_schedule_event( current_time( 'timestamp' ), 'daily', 'give_daily_scheduled_events' ); |
|
129 | + if ( ! wp_next_scheduled('give_daily_scheduled_events')) { |
|
130 | + wp_schedule_event(current_time('timestamp'), 'daily', 'give_daily_scheduled_events'); |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | |
@@ -141,8 +141,8 @@ discard block |
||
141 | 141 | * |
142 | 142 | * @return string |
143 | 143 | */ |
144 | - public static function get_cron_action( $type = 'weekly' ) { |
|
145 | - switch ( $type ) { |
|
144 | + public static function get_cron_action($type = 'weekly') { |
|
145 | + switch ($type) { |
|
146 | 146 | case 'daily': |
147 | 147 | $cron_action = 'give_daily_scheduled_events'; |
148 | 148 | break; |
@@ -164,9 +164,9 @@ discard block |
||
164 | 164 | * @param $action |
165 | 165 | * @param string $type |
166 | 166 | */ |
167 | - private static function add_event( $action, $type = 'weekly' ) { |
|
168 | - $cron_event = self::get_cron_action( $type ); |
|
169 | - add_action( $cron_event, $action ); |
|
167 | + private static function add_event($action, $type = 'weekly') { |
|
168 | + $cron_event = self::get_cron_action($type); |
|
169 | + add_action($cron_event, $action); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
@@ -177,8 +177,8 @@ discard block |
||
177 | 177 | * |
178 | 178 | * @param $action |
179 | 179 | */ |
180 | - public static function add_weekly_event( $action ) { |
|
181 | - self::add_event( $action, 'weekly' ); |
|
180 | + public static function add_weekly_event($action) { |
|
181 | + self::add_event($action, 'weekly'); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -189,8 +189,8 @@ discard block |
||
189 | 189 | * |
190 | 190 | * @param $action |
191 | 191 | */ |
192 | - public static function add_daily_event( $action ) { |
|
193 | - self::add_event( $action, 'daily' ); |
|
192 | + public static function add_daily_event($action) { |
|
193 | + self::add_event($action, 'daily'); |
|
194 | 194 | } |
195 | 195 | } |
196 | 196 |
@@ -11,19 +11,19 @@ |
||
11 | 11 | * |
12 | 12 | * @return string|array |
13 | 13 | */ |
14 | -function __give_v20_bc_user_address( $meta_value, $user_id, $meta_key, $single ) { |
|
14 | +function __give_v20_bc_user_address($meta_value, $user_id, $meta_key, $single) { |
|
15 | 15 | if ( |
16 | - give_has_upgrade_completed( 'v20_upgrades_user_address' ) && |
|
16 | + give_has_upgrade_completed('v20_upgrades_user_address') && |
|
17 | 17 | '_give_user_address' === $meta_key |
18 | 18 | ) { |
19 | - $meta_value = give_get_donor_address( $user_id ); |
|
19 | + $meta_value = give_get_donor_address($user_id); |
|
20 | 20 | |
21 | - if ( $single ) { |
|
22 | - $meta_value = array( $meta_value ); |
|
21 | + if ($single) { |
|
22 | + $meta_value = array($meta_value); |
|
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
26 | 26 | return $meta_value; |
27 | 27 | } |
28 | 28 | |
29 | -add_filter( 'get_user_metadata', '__give_v20_bc_user_address', 10, 4 ); |
|
30 | 29 | \ No newline at end of file |
30 | +add_filter('get_user_metadata', '__give_v20_bc_user_address', 10, 4); |
|
31 | 31 | \ No newline at end of file |
@@ -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 | |
@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return void |
25 | 25 | */ |
26 | -function give_trigger_donation_receipt( $payment_id ) { |
|
26 | +function give_trigger_donation_receipt($payment_id) { |
|
27 | 27 | // Make sure we don't send a receipt while editing a donation. |
28 | - if ( isset( $_POST['give-action'] ) && 'edit_payment' == $_POST['give-action'] ) { |
|
28 | + if (isset($_POST['give-action']) && 'edit_payment' == $_POST['give-action']) { |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 | |
32 | 32 | // Send email. |
33 | - give_email_donation_receipt( $payment_id ); |
|
33 | + give_email_donation_receipt($payment_id); |
|
34 | 34 | } |
35 | 35 | |
36 | -add_action( 'give_complete_donation', 'give_trigger_donation_receipt', 999, 1 ); |
|
37 | 36 | \ No newline at end of file |
37 | +add_action('give_complete_donation', 'give_trigger_donation_receipt', 999, 1); |
|
38 | 38 | \ No newline at end of file |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @return array |
22 | 22 | */ |
23 | - private function set_toottip_args( $args ) { |
|
23 | + private function set_toottip_args($args) { |
|
24 | 24 | $args = wp_parse_args( |
25 | 25 | $args, |
26 | 26 | array( |
@@ -62,13 +62,13 @@ discard block |
||
62 | 62 | |
63 | 63 | // Auto set width of tooltip. |
64 | 64 | if ( |
65 | - ! empty( $args['auto_width'] ) && |
|
66 | - ! empty( $args['label'] ) && |
|
67 | - empty( $args['size'] ) |
|
65 | + ! empty($args['auto_width']) && |
|
66 | + ! empty($args['label']) && |
|
67 | + empty($args['size']) |
|
68 | 68 | ) { |
69 | - if ( 15 < str_word_count( $args['label'] ) ) { |
|
69 | + if (15 < str_word_count($args['label'])) { |
|
70 | 70 | $args['size'] = 'large'; |
71 | - } elseif ( 7 < str_word_count( $args['label'] ) ) { |
|
71 | + } elseif (7 < str_word_count($args['label'])) { |
|
72 | 72 | $args['size'] = 'medium'; |
73 | 73 | } |
74 | 74 | } |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @return string |
89 | 89 | */ |
90 | - public function render( $args ) { |
|
91 | - $args = $this->set_toottip_args( $args ); |
|
90 | + public function render($args) { |
|
91 | + $args = $this->set_toottip_args($args); |
|
92 | 92 | |
93 | 93 | $tooltip_pos = array( |
94 | 94 | 'top' => 'hint--top', |
@@ -118,21 +118,21 @@ discard block |
||
118 | 118 | $args['attributes']['aria-label'] = $args['label']; |
119 | 119 | |
120 | 120 | // Set classes. |
121 | - $args['attributes']['class'] = ! empty( $args['attributes']['class'] ) ? $args['attributes']['class'] : ''; |
|
122 | - $args['attributes']['class'] .= " {$tooltip_pos[ $args['position'] ]}"; |
|
123 | - $args['attributes']['class'] .= ! empty( $args['status'] ) ? " {$tooltip_status[ $args['status'] ]}" : ''; |
|
124 | - $args['attributes']['class'] .= ! empty( $args['size'] ) ? " {$tooltip_size[ $args['size'] ]}" : ''; |
|
121 | + $args['attributes']['class'] = ! empty($args['attributes']['class']) ? $args['attributes']['class'] : ''; |
|
122 | + $args['attributes']['class'] .= " {$tooltip_pos[$args['position']]}"; |
|
123 | + $args['attributes']['class'] .= ! empty($args['status']) ? " {$tooltip_status[$args['status']]}" : ''; |
|
124 | + $args['attributes']['class'] .= ! empty($args['size']) ? " {$tooltip_size[$args['size']]}" : ''; |
|
125 | 125 | $args['attributes']['class'] .= $args['show_always'] ? ' hint--always' : ''; |
126 | 126 | $args['attributes']['class'] .= $args['round_edges'] ? ' hint--rounded' : ''; |
127 | 127 | $args['attributes']['class'] .= $args['animate'] ? ' hint--bounce' : ' hint--no-animate'; |
128 | - $args['attributes']['class'] = trim( $args['attributes']['class'] ); |
|
128 | + $args['attributes']['class'] = trim($args['attributes']['class']); |
|
129 | 129 | |
130 | 130 | // Set link attribute in tooltip has anchor tag. |
131 | - if ( 'a' === $args['tag'] && ! empty( $args['link'] ) ) { |
|
132 | - $args['attributes']['href'] = esc_url( $args['link'] ); |
|
131 | + if ('a' === $args['tag'] && ! empty($args['link'])) { |
|
132 | + $args['attributes']['href'] = esc_url($args['link']); |
|
133 | 133 | } |
134 | 134 | |
135 | - return sprintf( '<%1$s %2$s rel="tooltip">%3$s</%1$s>', $args['tag'], give_get_attribute_str( $args['attributes'] ), $args['tag_content'] ); |
|
135 | + return sprintf('<%1$s %2$s rel="tooltip">%3$s</%1$s>', $args['tag'], give_get_attribute_str($args['attributes']), $args['tag_content']); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | |
@@ -146,9 +146,9 @@ discard block |
||
146 | 146 | * |
147 | 147 | * @return string |
148 | 148 | */ |
149 | - function render_link( $args ) { |
|
149 | + function render_link($args) { |
|
150 | 150 | $args['tag'] = 'a'; |
151 | - $tooltip_markup = $this->render( $args ); |
|
151 | + $tooltip_markup = $this->render($args); |
|
152 | 152 | |
153 | 153 | return $tooltip_markup; |
154 | 154 | } |
@@ -163,14 +163,14 @@ discard block |
||
163 | 163 | * |
164 | 164 | * @return string |
165 | 165 | */ |
166 | - function render_span( $args ) { |
|
166 | + function render_span($args) { |
|
167 | 167 | // Set tooltip args from string. |
168 | - if ( is_string( $args ) ) { |
|
169 | - $args = array( 'label' => $args ); |
|
168 | + if (is_string($args)) { |
|
169 | + $args = array('label' => $args); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | $args['tag'] = 'span'; |
173 | - $tooltip_markup = $this->render( $args ); |
|
173 | + $tooltip_markup = $this->render($args); |
|
174 | 174 | |
175 | 175 | return $tooltip_markup; |
176 | 176 | } |
@@ -185,15 +185,15 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @return string |
187 | 187 | */ |
188 | - function render_help( $args ) { |
|
188 | + function render_help($args) { |
|
189 | 189 | // Set tooltip args from string. |
190 | - if ( is_string( $args ) ) { |
|
191 | - $args = array( 'label' => $args ); |
|
190 | + if (is_string($args)) { |
|
191 | + $args = array('label' => $args); |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | $args['tag_content'] = '<i class="give-icon give-icon-question"></i>'; |
195 | 195 | $args['attributes']['class'] = 'give-tooltip'; |
196 | - $tooltip_markup = $this->render_span( $args ); |
|
196 | + $tooltip_markup = $this->render_span($args); |
|
197 | 197 | |
198 | 198 | return $tooltip_markup; |
199 | 199 | } |
@@ -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 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @return array|bool array if errors are present, false if none found |
26 | 26 | */ |
27 | 27 | function give_get_errors() { |
28 | - return Give()->session->get( 'give_errors' ); |
|
28 | + return Give()->session->get('give_errors'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -42,23 +42,23 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @return void |
44 | 44 | */ |
45 | -function give_set_error( $error_id, $error_message, $notice_args = array() ) { |
|
45 | +function give_set_error($error_id, $error_message, $notice_args = array()) { |
|
46 | 46 | $errors = give_get_errors(); |
47 | - if ( ! $errors ) { |
|
47 | + if ( ! $errors) { |
|
48 | 48 | $errors = array(); |
49 | 49 | } |
50 | 50 | |
51 | - if( is_array( $notice_args ) && ! empty( $notice_args ) ) { |
|
52 | - $errors[ $error_id ] = array( |
|
51 | + if (is_array($notice_args) && ! empty($notice_args)) { |
|
52 | + $errors[$error_id] = array( |
|
53 | 53 | 'message' => $error_message, |
54 | 54 | 'notice_args' => $notice_args, |
55 | 55 | ); |
56 | 56 | } else { |
57 | 57 | // Backward compatibility v<1.8.11. |
58 | - $errors[ $error_id ] = $error_message; |
|
58 | + $errors[$error_id] = $error_message; |
|
59 | 59 | } |
60 | 60 | |
61 | - Give()->session->set( 'give_errors', $errors ); |
|
61 | + Give()->session->set('give_errors', $errors); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @return void |
70 | 70 | */ |
71 | 71 | function give_clear_errors() { |
72 | - Give()->session->set( 'give_errors', null ); |
|
72 | + Give()->session->set('give_errors', null); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -82,19 +82,19 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @return void |
84 | 84 | */ |
85 | -function give_unset_error( $error_id ) { |
|
85 | +function give_unset_error($error_id) { |
|
86 | 86 | $errors = give_get_errors(); |
87 | - if ( $errors ) { |
|
87 | + if ($errors) { |
|
88 | 88 | /** |
89 | 89 | * Check If $error_id exists in the array. |
90 | 90 | * If exists then unset it. |
91 | 91 | * |
92 | 92 | * @since 1.8.13 |
93 | 93 | */ |
94 | - if ( isset( $errors[ $error_id ] ) ) { |
|
95 | - unset( $errors[ $error_id ] ); |
|
94 | + if (isset($errors[$error_id])) { |
|
95 | + unset($errors[$error_id]); |
|
96 | 96 | } |
97 | - Give()->session->set( 'give_errors', $errors ); |
|
97 | + Give()->session->set('give_errors', $errors); |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @return string |
106 | 106 | */ |
107 | 107 | function _give_die_handler() { |
108 | - if ( defined( 'GIVE_UNIT_TESTS' ) ) { |
|
108 | + if (defined('GIVE_UNIT_TESTS')) { |
|
109 | 109 | return '_give_die_handler'; |
110 | 110 | } else { |
111 | 111 | die(); |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @return void |
127 | 127 | */ |
128 | -function give_die( $message = '', $title = '', $status = 400 ) { |
|
129 | - add_filter( 'wp_die_ajax_handler', '_give_die_handler', 10, 3 ); |
|
130 | - add_filter( 'wp_die_handler', '_give_die_handler', 10, 3 ); |
|
131 | - wp_die( $message, $title, array( 'response' => $status ) ); |
|
128 | +function give_die($message = '', $title = '', $status = 400) { |
|
129 | + add_filter('wp_die_ajax_handler', '_give_die_handler', 10, 3); |
|
130 | + add_filter('wp_die_handler', '_give_die_handler', 10, 3); |
|
131 | + wp_die($message, $title, array('response' => $status)); |
|
132 | 132 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @category Class |
12 | 12 | * @author WordImpress |
13 | 13 | */ |
14 | -if ( ! defined( 'ABSPATH' ) ) { |
|
14 | +if ( ! defined('ABSPATH')) { |
|
15 | 15 | exit; |
16 | 16 | } |
17 | 17 | |
@@ -52,16 +52,16 @@ discard block |
||
52 | 52 | * ) |
53 | 53 | */ |
54 | 54 | |
55 | - $_post = give_clean( $_POST ); |
|
55 | + $_post = give_clean($_POST); |
|
56 | 56 | |
57 | - if ( empty( $_post ) || empty( $_post['data'] ) || empty( $_post['hook'] ) ) { |
|
57 | + if (empty($_post) || empty($_post['data']) || empty($_post['hook'])) { |
|
58 | 58 | exit(); |
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | 62 | * Fire the hook. |
63 | 63 | */ |
64 | - do_action( $_post['hook'], $_post['data'] ); |
|
64 | + do_action($_post['hook'], $_post['data']); |
|
65 | 65 | |
66 | 66 | exit(); |
67 | 67 | } |
@@ -6,16 +6,16 @@ discard block |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } // Exit if accessed directly. |
12 | 12 | |
13 | 13 | // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. !important; is a gmail hack to prevent styles being stripped if it doesn't like something. |
14 | -$body = " |
|
14 | +$body = " |
|
15 | 15 | background-color: #f6f6f6; |
16 | 16 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
17 | 17 | "; |
18 | -$wrapper = " |
|
18 | +$wrapper = " |
|
19 | 19 | width:100%; |
20 | 20 | -webkit-text-size-adjust:none !important; |
21 | 21 | margin:0; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | border-radius:3px !important; |
30 | 30 | padding: 20px; |
31 | 31 | "; |
32 | -$template_header = " |
|
32 | +$template_header = " |
|
33 | 33 | color: #00000; |
34 | 34 | border-top-left-radius:3px !important; |
35 | 35 | border-top-right-radius:3px !important; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | text-align: center; |
40 | 40 | vertical-align:middle; |
41 | 41 | "; |
42 | -$body_content = " |
|
42 | +$body_content = " |
|
43 | 43 | border-radius:3px !important; |
44 | 44 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
45 | 45 | "; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | line-height:150%; |
51 | 51 | text-align:left; |
52 | 52 | "; |
53 | -$header_content_h1 = " |
|
53 | +$header_content_h1 = " |
|
54 | 54 | color: #000000; |
55 | 55 | margin:0; |
56 | 56 | padding: 28px 24px; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | <html> |
66 | 66 | <head> |
67 | 67 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
68 | - <title><?php echo get_bloginfo( 'name' ); ?></title> |
|
68 | + <title><?php echo get_bloginfo('name'); ?></title> |
|
69 | 69 | </head> |
70 | 70 | <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="<?php echo $body; ?>"> |
71 | 71 | <div style="<?php echo $wrapper; ?>"> |