@@ -4,21 +4,21 @@ discard block |
||
4 | 4 | <input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo $context; ?>"/> |
5 | 5 | <!-- if this is not a global template then let's show the name and description fields --> |
6 | 6 | <?php |
7 | - if (! $MTP->is_global()) : ?> |
|
7 | + if (! $MTP->is_global()) : ?> |
|
8 | 8 | <div class="non-global-mtp-fields"> |
9 | 9 | <p> |
10 | 10 | <?php _e( |
11 | - 'This is a custom template. Custom Templates have an editable name and description to help you differentiate between templates.', |
|
12 | - 'event_espresso' |
|
13 | - ); ?> |
|
11 | + 'This is a custom template. Custom Templates have an editable name and description to help you differentiate between templates.', |
|
12 | + 'event_espresso' |
|
13 | + ); ?> |
|
14 | 14 | </p> |
15 | 15 | <div id="titlediv"> |
16 | 16 | <div id="titlewrap"> |
17 | 17 | <label for="title" class="label-MTP_name" style="visibility:hidden"> |
18 | 18 | <?php _e( |
19 | - 'Message Template Name:', |
|
20 | - 'event_espresso' |
|
21 | - ); ?></label> |
|
19 | + 'Message Template Name:', |
|
20 | + 'event_espresso' |
|
21 | + ); ?></label> |
|
22 | 22 | <input id="title" type="text" class="regular-text" name="ee_msg_non_global_fields[MTP_name]" |
23 | 23 | value="<?php echo $MTP->name(); ?>"> |
24 | 24 | </div> |
@@ -27,29 +27,29 @@ discard block |
||
27 | 27 | <label for="ee-msg-non-global-fields-MTP_description" class="label-MTP_description" |
28 | 28 | style="visibility:hidden;"> |
29 | 29 | <?php _e( |
30 | - 'Message Template Description:', |
|
31 | - 'event_espresso' |
|
32 | - ); ?></label> |
|
30 | + 'Message Template Description:', |
|
31 | + 'event_espresso' |
|
32 | + ); ?></label> |
|
33 | 33 | <textarea id="ee-msg-non-global-fields-MTP_description" class="large-text" |
34 | 34 | name="ee_msg_non_global_fields[MTP_description]"><?php echo $MTP->description(); ?></textarea> |
35 | 35 | </p> |
36 | 36 | </div> |
37 | 37 | <?php |
38 | - else : |
|
39 | - ?> |
|
38 | + else : |
|
39 | + ?> |
|
40 | 40 | <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name(); ?>"> |
41 | 41 | <input type="hidden" name="ee_msg_non_global_fields[MTP_description]" |
42 | 42 | value="<?php echo $MTP->description(); ?>"> |
43 | 43 | <?php endif; ?> |
44 | 44 | <!-- we need to loop through the template_fields so we know our structure --> |
45 | 45 | <?php |
46 | - if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) { |
|
47 | - echo $template_fields; |
|
48 | - } else { |
|
49 | - ?> |
|
46 | + if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) { |
|
47 | + echo $template_fields; |
|
48 | + } else { |
|
49 | + ?> |
|
50 | 50 | <p><?php _e('Something has gone wrong, there are no template fields to output.', 'event_espresso'); ?></p> |
51 | 51 | <?php |
52 | - } |
|
52 | + } |
|
53 | 53 | |
54 | - ?> |
|
54 | + ?> |
|
55 | 55 | </div> <!-- end #admin-primary-mbox-dv --> |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv"> |
2 | 2 | |
3 | - <h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name . ' Custom Template' : ''; ?></h3> |
|
3 | + <h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name.' Custom Template' : ''; ?></h3> |
|
4 | 4 | <input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo $context; ?>"/> |
5 | 5 | <!-- if this is not a global template then let's show the name and description fields --> |
6 | 6 | <?php |
7 | - if (! $MTP->is_global()) : ?> |
|
7 | + if ( ! $MTP->is_global()) : ?> |
|
8 | 8 | <div class="non-global-mtp-fields"> |
9 | 9 | <p> |
10 | 10 | <?php _e( |
@@ -35,9 +35,12 @@ |
||
35 | 35 | </p> |
36 | 36 | </div> |
37 | 37 | <?php |
38 | - else : |
|
38 | + else { |
|
39 | + : |
|
39 | 40 | ?> |
40 | - <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name(); ?>"> |
|
41 | + <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name(); |
|
42 | + } |
|
43 | + ?>"> |
|
41 | 44 | <input type="hidden" name="ee_msg_non_global_fields[MTP_description]" |
42 | 45 | value="<?php echo $MTP->description(); ?>"> |
43 | 46 | <?php endif; ?> |
@@ -1,28 +1,28 @@ |
||
1 | 1 | <div class="<?php echo $messenger; ?>-content"> |
2 | 2 | <?php |
3 | - if (empty($inactive_message_types) && empty($active_message_types)) : |
|
4 | - echo '<p>' |
|
5 | - . __( |
|
6 | - 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
|
7 | - 'event_espresso' |
|
8 | - ) . '</p>'; |
|
9 | - else : ?> |
|
3 | + if (empty($inactive_message_types) && empty($active_message_types)) : |
|
4 | + echo '<p>' |
|
5 | + . __( |
|
6 | + 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
|
7 | + 'event_espresso' |
|
8 | + ) . '</p>'; |
|
9 | + else : ?> |
|
10 | 10 | <p class="inactive-on-message <?php echo $hide_on_message; ?>"> |
11 | 11 | <?php _e( |
12 | - 'Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', |
|
13 | - 'event_espresso' |
|
14 | - ); ?> |
|
12 | + 'Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', |
|
13 | + 'event_espresso' |
|
14 | + ); ?> |
|
15 | 15 | <p> |
16 | 16 | <p class="inactive-off-message <?php echo $hide_off_message; ?>"> |
17 | 17 | <?php _e( |
18 | - 'This messenger is currently inactive. Once the messenger is activated any inactive message types associated with the messenger will be shown here.', |
|
19 | - 'event_espresso' |
|
20 | - ); ?> |
|
18 | + 'This messenger is currently inactive. Once the messenger is activated any inactive message types associated with the messenger will be shown here.', |
|
19 | + 'event_espresso' |
|
20 | + ); ?> |
|
21 | 21 | </p> |
22 | 22 | <div<?php |
23 | - if ($active) : |
|
24 | - ?> id="inactive-message-types"<?php |
|
25 | - endif; ?> |
|
23 | + if ($active) : |
|
24 | + ?> id="inactive-message-types"<?php |
|
25 | + endif; ?> |
|
26 | 26 | class="inactive-message-types mt-tab-container ui-widget-content-ui-state-default <?php echo $hide_on_message; ?>"> |
27 | 27 | <ul class="messenger-activation"> |
28 | 28 | <?php echo $inactive_message_types; ?> |
@@ -5,7 +5,7 @@ |
||
5 | 5 | . __( |
6 | 6 | 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
7 | 7 | 'event_espresso' |
8 | - ) . '</p>'; |
|
8 | + ).'</p>'; |
|
9 | 9 | else : ?> |
10 | 10 | <p class="inactive-on-message <?php echo $hide_on_message; ?>"> |
11 | 11 | <?php _e( |
@@ -6,8 +6,11 @@ |
||
6 | 6 | 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
7 | 7 | 'event_espresso' |
8 | 8 | ) . '</p>'; |
9 | - else : ?> |
|
10 | - <p class="inactive-on-message <?php echo $hide_on_message; ?>"> |
|
9 | + else { |
|
10 | + : ?> |
|
11 | + <p class="inactive-on-message <?php echo $hide_on_message; |
|
12 | + } |
|
13 | + ?>"> |
|
11 | 14 | <?php _e( |
12 | 15 | 'Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', |
13 | 16 | 'event_espresso' |
@@ -1,31 +1,31 @@ |
||
1 | 1 | <h2><?php esc_html_e('What are Message Types?', 'event_espresso'); ?></h2> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - esc_html__( |
|
5 | - 'Message Types are the %1$skinds%2$s of messages that get delivered. Think of them as the "type" of package that is being delivered by the messenger. For example, Event Espresso comes with two Message Types attached to the Email messenger: Registration Confirmation (which is triggered by frontend event registrations), and Payment Confirmation (which is triggered by frontend payments).', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<em>', |
|
9 | - '</em>' |
|
10 | - ); ?></p> |
|
4 | + esc_html__( |
|
5 | + 'Message Types are the %1$skinds%2$s of messages that get delivered. Think of them as the "type" of package that is being delivered by the messenger. For example, Event Espresso comes with two Message Types attached to the Email messenger: Registration Confirmation (which is triggered by frontend event registrations), and Payment Confirmation (which is triggered by frontend payments).', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<em>', |
|
9 | + '</em>' |
|
10 | + ); ?></p> |
|
11 | 11 | <p> |
12 | 12 | <?php esc_html_e( |
13 | - 'Future iterations of Event Espresso 4.0 (premium versions), will include more and more different message types that can be attached to the various messengers that are available', |
|
14 | - 'event_espresso' |
|
15 | - ); ?></p> |
|
13 | + 'Future iterations of Event Espresso 4.0 (premium versions), will include more and more different message types that can be attached to the various messengers that are available', |
|
14 | + 'event_espresso' |
|
15 | + ); ?></p> |
|
16 | 16 | |
17 | 17 | <h3><?php esc_html_e('Contexts', 'event_espresso'); ?></h3> |
18 | 18 | <p> |
19 | 19 | <?php printf( |
20 | - esc_html__( |
|
21 | - 'Each message type (or %1$skind%1$s of message remember!) has different contexts for messages created for that message type. Contexts are dynamic but generally speaking they tend to represent recipients. So for example, Registration Confirmation message type has three types of recipients for every time a registration confirmation is triggered: Event Administrator, Primary Registrant, and Registrant (which may be multiple messages if there are more than one attendee per event). Whereas the Payment Message Type only has two recipients (Event Administrator, Primary Registrant [the one making the payment]).', |
|
22 | - 'event_espresso' |
|
23 | - ), |
|
24 | - '<em>', |
|
25 | - '</em>' |
|
26 | - ); ?></p> |
|
20 | + esc_html__( |
|
21 | + 'Each message type (or %1$skind%1$s of message remember!) has different contexts for messages created for that message type. Contexts are dynamic but generally speaking they tend to represent recipients. So for example, Registration Confirmation message type has three types of recipients for every time a registration confirmation is triggered: Event Administrator, Primary Registrant, and Registrant (which may be multiple messages if there are more than one attendee per event). Whereas the Payment Message Type only has two recipients (Event Administrator, Primary Registrant [the one making the payment]).', |
|
22 | + 'event_espresso' |
|
23 | + ), |
|
24 | + '<em>', |
|
25 | + '</em>' |
|
26 | + ); ?></p> |
|
27 | 27 | <p> |
28 | 28 | <?php esc_html_e( |
29 | - 'You will most likely never see the word "context" in any of the Messages system labelling because they are dynamic per message type. Usually, contexts will be labelled "Recipients" but there may be cases down the road where a message type might use contexts to represent something totally different', |
|
30 | - 'event_espresso' |
|
31 | - ); ?></p> |
|
32 | 29 | \ No newline at end of file |
30 | + 'You will most likely never see the word "context" in any of the Messages system labelling because they are dynamic per message type. Usually, contexts will be labelled "Recipients" but there may be cases down the road where a message type might use contexts to represent something totally different', |
|
31 | + 'event_espresso' |
|
32 | + ); ?></p> |
|
33 | 33 | \ No newline at end of file |
@@ -5,15 +5,15 @@ discard block |
||
5 | 5 | </h2> |
6 | 6 | <p class="ee-attention"> |
7 | 7 | <?php |
8 | - echo sprintf( |
|
9 | - __( |
|
10 | - 'The following shortcodes and page settings are required for Event Espresso to function properly. These shortcodes should not be replaced with any other shortcodes. Please view %sthis page%s for a list of optional shortcodes you can use on other pages.', |
|
11 | - 'event_espresso' |
|
12 | - ), |
|
13 | - '<a href="admin.php?page=espresso_support">', |
|
14 | - '</a>' |
|
15 | - ); |
|
16 | - ?> |
|
8 | + echo sprintf( |
|
9 | + __( |
|
10 | + 'The following shortcodes and page settings are required for Event Espresso to function properly. These shortcodes should not be replaced with any other shortcodes. Please view %sthis page%s for a list of optional shortcodes you can use on other pages.', |
|
11 | + 'event_espresso' |
|
12 | + ), |
|
13 | + '<a href="admin.php?page=espresso_support">', |
|
14 | + '</a>' |
|
15 | + ); |
|
16 | + ?> |
|
17 | 17 | </p> |
18 | 18 | |
19 | 19 | <table class="form-table"> |
@@ -39,21 +39,21 @@ discard block |
||
39 | 39 | </select> |
40 | 40 | <span> |
41 | 41 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
42 | - $reg_page_obj, |
|
43 | - '[ESPRESSO_CHECKOUT]' |
|
44 | - ); ?> |
|
42 | + $reg_page_obj, |
|
43 | + '[ESPRESSO_CHECKOUT]' |
|
44 | + ); ?> |
|
45 | 45 | </span> |
46 | 46 | <br/> |
47 | 47 | <p class="description"> |
48 | 48 | <?php |
49 | - echo sprintf( |
|
50 | - __( |
|
51 | - 'This page can be hidden from navigation if desired, but should always contain the %s shortcode.', |
|
52 | - 'event_espresso' |
|
53 | - ), |
|
54 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CHECKOUT]</span>' |
|
55 | - ); |
|
56 | - ?> |
|
49 | + echo sprintf( |
|
50 | + __( |
|
51 | + 'This page can be hidden from navigation if desired, but should always contain the %s shortcode.', |
|
52 | + 'event_espresso' |
|
53 | + ), |
|
54 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CHECKOUT]</span>' |
|
55 | + ); |
|
56 | + ?> |
|
57 | 57 | </p> |
58 | 58 | <br/><br/> |
59 | 59 | </td> |
@@ -69,9 +69,9 @@ discard block |
||
69 | 69 | <br/> |
70 | 70 | <span class="lt-grey-text"> |
71 | 71 | <?php _e( |
72 | - 'Notify URL (processes payments)', |
|
73 | - 'event_espresso' |
|
74 | - ); ?></span><br/> |
|
72 | + 'Notify URL (processes payments)', |
|
73 | + 'event_espresso' |
|
74 | + ); ?></span><br/> |
|
75 | 75 | <?php echo General_Settings_Admin_Page::edit_view_links($txn_page_id); ?> |
76 | 76 | </label> |
77 | 77 | </th> |
@@ -84,21 +84,21 @@ discard block |
||
84 | 84 | </select> |
85 | 85 | <span> |
86 | 86 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
87 | - $txn_page_obj, |
|
88 | - '[ESPRESSO_TXN_PAGE]' |
|
89 | - ); ?> |
|
87 | + $txn_page_obj, |
|
88 | + '[ESPRESSO_TXN_PAGE]' |
|
89 | + ); ?> |
|
90 | 90 | </span> |
91 | 91 | <br/> |
92 | 92 | <p class="description"> |
93 | 93 | <?php |
94 | - echo sprintf( |
|
95 | - __( |
|
96 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
97 | - 'event_espresso' |
|
98 | - ), |
|
99 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_TXN_PAGE]</span>' |
|
100 | - ); |
|
101 | - ?> |
|
94 | + echo sprintf( |
|
95 | + __( |
|
96 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
97 | + 'event_espresso' |
|
98 | + ), |
|
99 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_TXN_PAGE]</span>' |
|
100 | + ); |
|
101 | + ?> |
|
102 | 102 | </p> |
103 | 103 | <br/><br/> |
104 | 104 | </td> |
@@ -124,21 +124,21 @@ discard block |
||
124 | 124 | </select> |
125 | 125 | <span> |
126 | 126 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
127 | - $thank_you_page_obj, |
|
128 | - '[ESPRESSO_THANK_YOU]' |
|
129 | - ); ?> |
|
127 | + $thank_you_page_obj, |
|
128 | + '[ESPRESSO_THANK_YOU]' |
|
129 | + ); ?> |
|
130 | 130 | </span> |
131 | 131 | <br/> |
132 | 132 | <p class="description"> |
133 | 133 | <?php |
134 | - echo sprintf( |
|
135 | - __( |
|
136 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
137 | - 'event_espresso' |
|
138 | - ), |
|
139 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_THANK_YOU]</span>' |
|
140 | - ); |
|
141 | - ?> |
|
134 | + echo sprintf( |
|
135 | + __( |
|
136 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
137 | + 'event_espresso' |
|
138 | + ), |
|
139 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_THANK_YOU]</span>' |
|
140 | + ); |
|
141 | + ?> |
|
142 | 142 | </p> |
143 | 143 | <br/><br/> |
144 | 144 | </td> |
@@ -164,21 +164,21 @@ discard block |
||
164 | 164 | </select> |
165 | 165 | <span> |
166 | 166 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
167 | - $cancel_page_obj, |
|
168 | - '[ESPRESSO_CANCELLED]' |
|
169 | - ); ?> |
|
167 | + $cancel_page_obj, |
|
168 | + '[ESPRESSO_CANCELLED]' |
|
169 | + ); ?> |
|
170 | 170 | </span> |
171 | 171 | <br/> |
172 | 172 | <p class="description"> |
173 | 173 | <?php |
174 | - echo sprintf( |
|
175 | - __( |
|
176 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain a "cancelled transaction" message and the %s shortcode.', |
|
177 | - 'event_espresso' |
|
178 | - ), |
|
179 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CANCELLED]</span>' |
|
180 | - ); |
|
181 | - ?> |
|
174 | + echo sprintf( |
|
175 | + __( |
|
176 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain a "cancelled transaction" message and the %s shortcode.', |
|
177 | + 'event_espresso' |
|
178 | + ), |
|
179 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CANCELLED]</span>' |
|
180 | + ); |
|
181 | + ?> |
|
182 | 182 | </p> |
183 | 183 | <br/><br/> |
184 | 184 | </td> |
@@ -194,27 +194,27 @@ discard block |
||
194 | 194 | <br/> |
195 | 195 | <a href='<?php echo get_post_type_archive_link('espresso_events') ?>'> |
196 | 196 | <?php _e( |
197 | - 'View', |
|
198 | - 'event_espresso' |
|
199 | - ); ?></a> |
|
197 | + 'View', |
|
198 | + 'event_espresso' |
|
199 | + ); ?></a> |
|
200 | 200 | </label> |
201 | 201 | </th> |
202 | 202 | <td> |
203 | 203 | <p class="description"> |
204 | 204 | <?php echo __( |
205 | - 'Events are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
206 | - 'event_espresso' |
|
207 | - ) ?> |
|
205 | + 'Events are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
206 | + 'event_espresso' |
|
207 | + ) ?> |
|
208 | 208 | </p> |
209 | 209 | <p class="description"> |
210 | 210 | <?php printf( |
211 | - __( |
|
212 | - 'If you would still like your events on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
213 | - 'event_espresso' |
|
214 | - ), |
|
215 | - '<a href="admin.php?page=espresso_support">', |
|
216 | - '</a>' |
|
217 | - ) ?> |
|
211 | + __( |
|
212 | + 'If you would still like your events on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
213 | + 'event_espresso' |
|
214 | + ), |
|
215 | + '<a href="admin.php?page=espresso_support">', |
|
216 | + '</a>' |
|
217 | + ) ?> |
|
218 | 218 | </p> |
219 | 219 | <br/><br/> |
220 | 220 | </td> |
@@ -230,27 +230,27 @@ discard block |
||
230 | 230 | <br/> |
231 | 231 | <a href='<?php echo get_post_type_archive_link('espresso_venues') ?>'> |
232 | 232 | <?php _e( |
233 | - 'View', |
|
234 | - 'event_espresso' |
|
235 | - ); ?></a> |
|
233 | + 'View', |
|
234 | + 'event_espresso' |
|
235 | + ); ?></a> |
|
236 | 236 | </label> |
237 | 237 | </th> |
238 | 238 | <td> |
239 | 239 | <p class="description"> |
240 | 240 | <?php echo __( |
241 | - 'Venues are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
242 | - 'event_espresso' |
|
243 | - ) ?> |
|
241 | + 'Venues are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
242 | + 'event_espresso' |
|
243 | + ) ?> |
|
244 | 244 | </p> |
245 | 245 | <p class="description"> |
246 | 246 | <?php printf( |
247 | - __( |
|
248 | - 'If you would still like your venues on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
249 | - 'event_espresso' |
|
250 | - ), |
|
251 | - '<a href="admin.php?page=espresso_support">', |
|
252 | - '</a>' |
|
253 | - ) ?> |
|
247 | + __( |
|
248 | + 'If you would still like your venues on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
249 | + 'event_espresso' |
|
250 | + ), |
|
251 | + '<a href="admin.php?page=espresso_support">', |
|
252 | + '</a>' |
|
253 | + ) ?> |
|
254 | 254 | </p> |
255 | 255 | </td> |
256 | 256 | </tr> |
@@ -5,24 +5,24 @@ discard block |
||
5 | 5 | <th><?php _e('Name', 'event_espresso'); ?></th> |
6 | 6 | <th colspan="2"><span class="small-text"> |
7 | 7 | <?php _e( |
8 | - 'State Appears in<br/>Dropdown Select Lists ', |
|
9 | - 'event_espresso' |
|
10 | - ); ?></span></th> |
|
8 | + 'State Appears in<br/>Dropdown Select Lists ', |
|
9 | + 'event_espresso' |
|
10 | + ); ?></span></th> |
|
11 | 11 | </tr> |
12 | 12 | </thead> |
13 | 13 | <tbody> |
14 | 14 | <?php |
15 | - if ($states) { |
|
16 | - foreach ($states as $STA_ID => $state) { |
|
17 | - ?> |
|
15 | + if ($states) { |
|
16 | + foreach ($states as $STA_ID => $state) { |
|
17 | + ?> |
|
18 | 18 | <tr id="state-<?php echo $STA_ID; ?>-tr" class="country-state-columns"> |
19 | 19 | <?php |
20 | - foreach ($state['inputs'] as $ID => $input) { |
|
21 | - if ($ID != 'STA_ID' && $ID != 'CNT_ISO') { |
|
22 | - echo EEH_Form_Fields::generate_form_input($input); |
|
23 | - } |
|
24 | - } |
|
25 | - ?> |
|
20 | + foreach ($state['inputs'] as $ID => $input) { |
|
21 | + if ($ID != 'STA_ID' && $ID != 'CNT_ISO') { |
|
22 | + echo EEH_Form_Fields::generate_form_input($input); |
|
23 | + } |
|
24 | + } |
|
25 | + ?> |
|
26 | 26 | <td class="delete-state-td"> |
27 | 27 | <a id="delete-state-<?php echo $STA_ID; ?>-lnk" |
28 | 28 | class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | </td> |
32 | 32 | </tr> |
33 | 33 | <?php |
34 | - } |
|
35 | - ?> |
|
34 | + } |
|
35 | + ?> |
|
36 | 36 | </tbody> |
37 | 37 | </table> |
38 | 38 | <br/> |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | value="<?php _e('Save States/Provinces', 'event_espresso'); ?>"/><br/> |
41 | 41 | |
42 | 42 | <?php |
43 | - } |
|
43 | + } |
|
44 | 44 | ?> |
45 | 45 | <table class="form-table add-new-state-tbl"> |
46 | 46 | <tbody> |
@@ -3,10 +3,10 @@ discard block |
||
3 | 3 | <td valign="top"> |
4 | 4 | <fieldset> |
5 | 5 | <?php |
6 | - if (isset(EE_Registry::instance()->CFG->map_settings) |
|
7 | - && isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
8 | - && EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
9 | - ) { ?> |
|
6 | + if (isset(EE_Registry::instance()->CFG->map_settings) |
|
7 | + && isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
8 | + && EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
9 | + ) { ?> |
|
10 | 10 | <p> |
11 | 11 | <label for="enable_for_gmap"> |
12 | 12 | <?php _e('Display Google Map for this venue? ', 'event_espresso') ?> |
@@ -19,22 +19,22 @@ discard block |
||
19 | 19 | </p> --> |
20 | 20 | <?php } ?> |
21 | 21 | <?php |
22 | - if (! isset(EE_Registry::instance()->CFG->map_settings) |
|
23 | - || ! isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
24 | - || ! EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
25 | - ) { ?> |
|
22 | + if (! isset(EE_Registry::instance()->CFG->map_settings) |
|
23 | + || ! isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
24 | + || ! EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
25 | + ) { ?> |
|
26 | 26 | <p class="ee-notice"> |
27 | 27 | <?php |
28 | - echo sprintf( |
|
29 | - __( |
|
30 | - 'To display a Google Map for event venues, go to %sEvent Espresso General Settings%sGoogle Maps%s, and set "Activate Google Maps" to "Yes"', |
|
31 | - 'event_espresso' |
|
32 | - ), |
|
33 | - '<b>', |
|
34 | - '</b> » <b>', |
|
35 | - '</b>' |
|
36 | - ); |
|
37 | - ?> |
|
28 | + echo sprintf( |
|
29 | + __( |
|
30 | + 'To display a Google Map for event venues, go to %sEvent Espresso General Settings%sGoogle Maps%s, and set "Activate Google Maps" to "Yes"', |
|
31 | + 'event_espresso' |
|
32 | + ), |
|
33 | + '<b>', |
|
34 | + '</b> » <b>', |
|
35 | + '</b>' |
|
36 | + ); |
|
37 | + ?> |
|
38 | 38 | </p> |
39 | 39 | <?php } ?> |
40 | 40 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | </p> --> |
20 | 20 | <?php } ?> |
21 | 21 | <?php |
22 | - if (! isset(EE_Registry::instance()->CFG->map_settings) |
|
22 | + if ( ! isset(EE_Registry::instance()->CFG->map_settings) |
|
23 | 23 | || ! isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
24 | 24 | || ! EE_Registry::instance()->CFG->map_settings->use_google_maps |
25 | 25 | ) { ?> |
@@ -15,16 +15,16 @@ discard block |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'registration-trash-lock', |
|
23 | - 'target' => '.ee-lock-icon', |
|
24 | - 'content' => $this->_registration_trash_message(), |
|
25 | - ), |
|
26 | - /** removing status strips for now because they are triggered anywhere on the row. */ |
|
27 | - /**1 => array( |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'registration-trash-lock', |
|
23 | + 'target' => '.ee-lock-icon', |
|
24 | + 'content' => $this->_registration_trash_message(), |
|
25 | + ), |
|
26 | + /** removing status strips for now because they are triggered anywhere on the row. */ |
|
27 | + /**1 => array( |
|
28 | 28 | * 'content_id' => 'registration-status-' . EEM_Registration::status_id_approved, |
29 | 29 | * 'target' => '.reg-status-' . EEM_Registration::status_id_approved, |
30 | 30 | * 'content' => $this->_registration_status_legend(EEM_Registration::status_id_approved), |
@@ -74,37 +74,37 @@ discard block |
||
74 | 74 | * ) |
75 | 75 | * ) |
76 | 76 | * )/**/ |
77 | - ); |
|
78 | - } |
|
77 | + ); |
|
78 | + } |
|
79 | 79 | |
80 | 80 | |
81 | - private function _registration_trash_message() |
|
82 | - { |
|
83 | - return '<p>' |
|
84 | - . __( |
|
85 | - 'This lock-icon means that this registration cannot be trashed. Registrations that belong to a transaction that has payments cannot be trashed. If you wish to trash this registration then you must delete all payments attached to the related transaction first.', |
|
86 | - 'event_espresso' |
|
87 | - ) . '</p>'; |
|
88 | - } |
|
81 | + private function _registration_trash_message() |
|
82 | + { |
|
83 | + return '<p>' |
|
84 | + . __( |
|
85 | + 'This lock-icon means that this registration cannot be trashed. Registrations that belong to a transaction that has payments cannot be trashed. If you wish to trash this registration then you must delete all payments attached to the related transaction first.', |
|
86 | + 'event_espresso' |
|
87 | + ) . '</p>'; |
|
88 | + } |
|
89 | 89 | |
90 | 90 | |
91 | - /** |
|
92 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
93 | - * |
|
94 | - * @param EEM_Registration constant $status What status is set (by class) |
|
95 | - * @return string The status legend with the related status highlighted |
|
96 | - */ |
|
97 | - private function _registration_status_legend($status) |
|
98 | - { |
|
91 | + /** |
|
92 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
93 | + * |
|
94 | + * @param EEM_Registration constant $status What status is set (by class) |
|
95 | + * @return string The status legend with the related status highlighted |
|
96 | + */ |
|
97 | + private function _registration_status_legend($status) |
|
98 | + { |
|
99 | 99 | |
100 | - $status_array = array( |
|
101 | - 'approved_status' => EEM_Registration::status_id_approved, |
|
102 | - 'pending_status' => EEM_Registration::status_id_pending_payment, |
|
103 | - 'not_approved' => EEM_Registration::status_id_not_approved, |
|
104 | - 'declined_status' => EEM_Registration::status_id_declined, |
|
105 | - 'cancelled_status' => EEM_Registration::status_id_cancelled, |
|
106 | - ); |
|
100 | + $status_array = array( |
|
101 | + 'approved_status' => EEM_Registration::status_id_approved, |
|
102 | + 'pending_status' => EEM_Registration::status_id_pending_payment, |
|
103 | + 'not_approved' => EEM_Registration::status_id_not_approved, |
|
104 | + 'declined_status' => EEM_Registration::status_id_declined, |
|
105 | + 'cancelled_status' => EEM_Registration::status_id_cancelled, |
|
106 | + ); |
|
107 | 107 | |
108 | - return EEH_Template::status_legend($status_array, $status); |
|
109 | - } |
|
108 | + return EEH_Template::status_legend($status_array, $status); |
|
109 | + } |
|
110 | 110 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | . __( |
85 | 85 | 'This lock-icon means that this registration cannot be trashed. Registrations that belong to a transaction that has payments cannot be trashed. If you wish to trash this registration then you must delete all payments attached to the related transaction first.', |
86 | 86 | 'event_espresso' |
87 | - ) . '</p>'; |
|
87 | + ).'</p>'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 |
@@ -3,25 +3,25 @@ |
||
3 | 3 | <div class="ee-new-registration-step-content"> |
4 | 4 | <?php echo $content; ?> |
5 | 5 | <?php |
6 | - if ($show_notification_toggle |
|
7 | - && EE_Registry::instance()->CAP->current_user_can( |
|
8 | - 'ee_send_message', |
|
9 | - 'registration_message_type' |
|
10 | - )) : ?> |
|
6 | + if ($show_notification_toggle |
|
7 | + && EE_Registry::instance()->CAP->current_user_can( |
|
8 | + 'ee_send_message', |
|
9 | + 'registration_message_type' |
|
10 | + )) : ?> |
|
11 | 11 | <div class="ee-attention"> |
12 | 12 | <label for="txn_reg_status_change" class="last"> |
13 | 13 | <?php _e( |
14 | - 'Send Related Messages?', |
|
15 | - 'event_espresso' |
|
16 | - ); ?></label> |
|
14 | + 'Send Related Messages?', |
|
15 | + 'event_espresso' |
|
16 | + ); ?></label> |
|
17 | 17 | <input type="checkbox" value="1" name="txn_reg_status_change[send_notifications]" checked=checked> |
18 | 18 | <br/> |
19 | 19 | <br/> |
20 | 20 | <p class="description"> |
21 | 21 | <?php _e( |
22 | - 'Send a notification to registrants after processing?', |
|
23 | - 'event_espresso' |
|
24 | - ); ?></p><br/> |
|
22 | + 'Send a notification to registrants after processing?', |
|
23 | + 'event_espresso' |
|
24 | + ); ?></p><br/> |
|
25 | 25 | <label></label> |
26 | 26 | </div> |
27 | 27 | <?php endif; ?> |
@@ -8,17 +8,17 @@ |
||
8 | 8 | <div id="titlewrap"> |
9 | 9 | <label class="hidden" id="attendee-first-name-text" for="ATT_fname"> |
10 | 10 | <?php _e( |
11 | - 'First Name:', |
|
12 | - 'event_espresso' |
|
13 | - ); ?></label> |
|
11 | + 'First Name:', |
|
12 | + 'event_espresso' |
|
13 | + ); ?></label> |
|
14 | 14 | <input type="text" class="smaller-text-field" name="ATT_fname" |
15 | 15 | value="<?php echo $attendee->get('ATT_fname'); ?>" id="ATT_fname" |
16 | 16 | placeholder="<?php _e('First Name', 'event_espresso'); ?>" required> |
17 | 17 | <label class="hidden" id="attendee-first-name-text" for="ATT_lname"> |
18 | 18 | <?php _e( |
19 | - 'Last Name:', |
|
20 | - 'event_espresso' |
|
21 | - ); ?></label> |
|
19 | + 'Last Name:', |
|
20 | + 'event_espresso' |
|
21 | + ); ?></label> |
|
22 | 22 | <input type="text" class="smaller-text-field" name="ATT_lname" |
23 | 23 | value="<?php echo $attendee->get('ATT_lname'); ?>" id="ATT_lname" |
24 | 24 | placeholder="<?php _e('Last Name', 'event_espresso'); ?>"> |