@@ -19,28 +19,28 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @return array |
21 | 21 | */ |
22 | -function give_email_notification_row_actions_callback( $row_actions, $email ) { |
|
23 | - if( Give_Email_Notification_Util::is_email_preview( $email ) ) { |
|
22 | +function give_email_notification_row_actions_callback($row_actions, $email) { |
|
23 | + if (Give_Email_Notification_Util::is_email_preview($email)) { |
|
24 | 24 | $preview_link = sprintf( |
25 | 25 | '<a href="%1$s" target="_blank">%2$s</a>', |
26 | 26 | wp_nonce_url( |
27 | 27 | add_query_arg( |
28 | - array( 'give_action' => 'preview_email', 'email_type' => $email->config['id'] ), |
|
28 | + array('give_action' => 'preview_email', 'email_type' => $email->config['id']), |
|
29 | 29 | home_url() |
30 | 30 | ), 'give-preview-email' |
31 | 31 | ), |
32 | - __( 'Preview', 'give' ) |
|
32 | + __('Preview', 'give') |
|
33 | 33 | ); |
34 | 34 | |
35 | 35 | $send_preview_email_link = sprintf( |
36 | 36 | '<a href="%1$s">%2$s</a>', |
37 | 37 | wp_nonce_url( |
38 | - add_query_arg( array( |
|
38 | + add_query_arg(array( |
|
39 | 39 | 'give_action' => 'send_preview_email', |
40 | 40 | 'email_type' => $email->config['id'], |
41 | 41 | 'give-messages[]' => 'sent-test-email', |
42 | - ) ), 'give-send-preview-email' ), |
|
43 | - __( 'Send test email', 'give' ) |
|
42 | + )), 'give-send-preview-email' ), |
|
43 | + __('Send test email', 'give') |
|
44 | 44 | ); |
45 | 45 | |
46 | 46 | $row_actions['email_preview'] = $preview_link; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | return $row_actions; |
51 | 51 | } |
52 | -add_filter( 'give_email_notification_row_actions', 'give_email_notification_row_actions_callback', 10, 2 ); |
|
52 | +add_filter('give_email_notification_row_actions', 'give_email_notification_row_actions_callback', 10, 2); |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * This help to decode all email template tags. |
@@ -61,12 +61,12 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return string |
63 | 63 | */ |
64 | -function give_decode_email_tags( $message, $email_obj ) { |
|
65 | - if ( ! empty( $email_obj->tag_args ) ) { |
|
66 | - $message = give_do_email_tags( $message, $email_obj->tag_args ); |
|
64 | +function give_decode_email_tags($message, $email_obj) { |
|
65 | + if ( ! empty($email_obj->tag_args)) { |
|
66 | + $message = give_do_email_tags($message, $email_obj->tag_args); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | return $message; |
70 | 70 | } |
71 | 71 | |
72 | -add_filter( 'give_email_message', 'give_decode_email_tags', 10, 2 ); |
|
73 | 72 | \ No newline at end of file |
73 | +add_filter('give_email_message', 'give_decode_email_tags', 10, 2); |
|
74 | 74 | \ No newline at end of file |