@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | <?php foreach ($active_messengers as $messenger => $args) : ?> |
16 | 16 | <option value="<?php echo $messenger; ?>"> |
17 | 17 | <?php |
18 | - echo ucwords( |
|
19 | - str_replace('_', ' ', $messenger) |
|
20 | - ); ?></option> |
|
18 | + echo ucwords( |
|
19 | + str_replace('_', ' ', $messenger) |
|
20 | + ); ?></option> |
|
21 | 21 | <?php endforeach; ?> |
22 | 22 | </select> |
23 | 23 | <input id="submit-ee-messenger-filters-sbmt" class="button-secondary" type="submit" value="Filter Messenger"> |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | <?php foreach ($active_message_types as $message_type => $args) : ?> |
27 | 27 | <option value="<?php echo $message_type; ?>"> |
28 | 28 | <?php |
29 | - echo ucwords( |
|
30 | - str_replace('_', ' ', $message_type) |
|
31 | - ); ?></option> |
|
29 | + echo ucwords( |
|
30 | + str_replace('_', ' ', $message_type) |
|
31 | + ); ?></option> |
|
32 | 32 | <?php endforeach; ?> |
33 | 33 | </select> |
34 | 34 | <input id="submit-ee-message-type-filters-sbmt" class="button-secondary" type="submit" |
@@ -3,56 +3,56 @@ |
||
3 | 3 | |
4 | 4 | <h3><?php _e('1. Defaults', 'event_espresso'); ?></h3> |
5 | 5 | <p><?php _e( |
6 | - 'When Event Espresso is first activated, the plugin takes care of setting up the core messenger (Email) and message types (Registration, and Payment). This is so users don\'t have to worry about any setup of templates etc. and it just works right out of the box. So when you first visit the page you\'ll see the Email messenger displayed with those two message types in the "Active" area for that messenger', |
|
7 | - 'event_espresso' |
|
6 | + 'When Event Espresso is first activated, the plugin takes care of setting up the core messenger (Email) and message types (Registration, and Payment). This is so users don\'t have to worry about any setup of templates etc. and it just works right out of the box. So when you first visit the page you\'ll see the Email messenger displayed with those two message types in the "Active" area for that messenger', |
|
7 | + 'event_espresso' |
|
8 | 8 | ); ?></p> |
9 | 9 | <h3><?php _e('2. Activating or Deactivating Messengers', 'event_espresso'); ?></h3> |
10 | 10 | <p><?php _e( |
11 | - 'You can select messengers via the tabs across the top of the settings page. The available messengers you see depends on what version of Event Espresso you have and what addons are installed. Every install will see at the very least an "Email" messenger tab. When you click one of those tabs it will display that messenger.', |
|
12 | - 'event_espresso' |
|
11 | + 'You can select messengers via the tabs across the top of the settings page. The available messengers you see depends on what version of Event Espresso you have and what addons are installed. Every install will see at the very least an "Email" messenger tab. When you click one of those tabs it will display that messenger.', |
|
12 | + 'event_espresso' |
|
13 | 13 | ); ?></p> |
14 | 14 | <p><?php _e( |
15 | - 'There are two ways to determine whether a messenger is active or not. The first way is via the messenger tab itself.', |
|
16 | - 'event_espresso' |
|
15 | + 'There are two ways to determine whether a messenger is active or not. The first way is via the messenger tab itself.', |
|
16 | + 'event_espresso' |
|
17 | 17 | ); ?></p> |
18 | 18 | <p><?php echo $img1; |
19 | - _e('The green colored gear indicates that this messenger is currently active.', 'event_espresso'); |
|
20 | - echo $img2; |
|
21 | - _e( |
|
22 | - 'Here the white colored gear indicates the messenger is inactive. This is very helpful for seeing at a glance all the messengers that are active when you first view the page.', |
|
23 | - 'event_espresso' |
|
24 | - ); ?></p> |
|
19 | + _e('The green colored gear indicates that this messenger is currently active.', 'event_espresso'); |
|
20 | + echo $img2; |
|
21 | + _e( |
|
22 | + 'Here the white colored gear indicates the messenger is inactive. This is very helpful for seeing at a glance all the messengers that are active when you first view the page.', |
|
23 | + 'event_espresso' |
|
24 | + ); ?></p> |
|
25 | 25 | <p><?php _e( |
26 | - 'The second way to determine whether a messenger is active or not is via the "on/off" button in the top right corner of the active messenger displayed content:', |
|
27 | - 'event_espresso' |
|
26 | + 'The second way to determine whether a messenger is active or not is via the "on/off" button in the top right corner of the active messenger displayed content:', |
|
27 | + 'event_espresso' |
|
28 | 28 | ); ?></p> |
29 | 29 | <p><?php echo $img3; |
30 | - printf( |
|
31 | - __('On means of course that the messenger is active and %s means the messenger is inactive.', 'event_espresso'), |
|
32 | - $img4 |
|
33 | - ); ?></p> |
|
30 | + printf( |
|
31 | + __('On means of course that the messenger is active and %s means the messenger is inactive.', 'event_espresso'), |
|
32 | + $img4 |
|
33 | + ); ?></p> |
|
34 | 34 | <p><?php _e( |
35 | - 'Incidentally, the on/off toggle is also what you use to activate or deactivate a messenger.', |
|
36 | - 'event_espresso' |
|
35 | + 'Incidentally, the on/off toggle is also what you use to activate or deactivate a messenger.', |
|
36 | + 'event_espresso' |
|
37 | 37 | ); ?></p> |
38 | 38 | <p><?php _e( |
39 | - 'What happens when you click the toggle to activate is the messenger is activated and the system determines what default message types are activated with the messenger. Then, if there are any default settings for either the messenger or message types those settings are saved. Next, the system will generate any default templates (if none have been generated before, if there are previously generated templates then they are reactivated). Finally, you will see the display change to reflect that the messenger is active. If the messenger has settings you can modify them then. Any message types that have settings will also automatically expand so you can see the default settings and make any changes as necessary to fit your needs. Usually the defaults are sufficient however.', |
|
40 | - 'event_espresso' |
|
39 | + 'What happens when you click the toggle to activate is the messenger is activated and the system determines what default message types are activated with the messenger. Then, if there are any default settings for either the messenger or message types those settings are saved. Next, the system will generate any default templates (if none have been generated before, if there are previously generated templates then they are reactivated). Finally, you will see the display change to reflect that the messenger is active. If the messenger has settings you can modify them then. Any message types that have settings will also automatically expand so you can see the default settings and make any changes as necessary to fit your needs. Usually the defaults are sufficient however.', |
|
40 | + 'event_espresso' |
|
41 | 41 | ); ?></p> |
42 | 42 | <p><?php _e( |
43 | - 'When you deactivate a messenger, the system will first check if there are any custom event templates for that messenger. If there are you will be unable to deactivate the messenger. This is a fail safe to make sure you know that no messages will go out for those specific events so you don\'t accidentally deactivate. If this check passes, then the system will deactivate any global templates for that messenger (note the templates are not erased, they just become inactive, so if you decide to reactivate the messenger later all your customizations are preserved). Then the display will change to reflect the deactivation.', |
|
44 | - 'event_espresso' |
|
43 | + 'When you deactivate a messenger, the system will first check if there are any custom event templates for that messenger. If there are you will be unable to deactivate the messenger. This is a fail safe to make sure you know that no messages will go out for those specific events so you don\'t accidentally deactivate. If this check passes, then the system will deactivate any global templates for that messenger (note the templates are not erased, they just become inactive, so if you decide to reactivate the messenger later all your customizations are preserved). Then the display will change to reflect the deactivation.', |
|
44 | + 'event_espresso' |
|
45 | 45 | ); ?></p> |
46 | 46 | <p><?php printf( |
47 | - __( |
|
48 | - '%sVery important!%s Although customizations made to global templates are preserved when a messenger is deactivated, any settings for that messenger (or the message types that were attached to it) are lost on deactivation. Keep that in mind. Also, once you deactivate a messenger, no more messages will be delivered using that messenger for any of your events.', |
|
49 | - 'event_espresso' |
|
50 | - ), |
|
51 | - '<strong>', |
|
52 | - '</strong>' |
|
47 | + __( |
|
48 | + '%sVery important!%s Although customizations made to global templates are preserved when a messenger is deactivated, any settings for that messenger (or the message types that were attached to it) are lost on deactivation. Keep that in mind. Also, once you deactivate a messenger, no more messages will be delivered using that messenger for any of your events.', |
|
49 | + 'event_espresso' |
|
50 | + ), |
|
51 | + '<strong>', |
|
52 | + '</strong>' |
|
53 | 53 | ); ?></p> |
54 | 54 | <h3><?php _e('3. Activating or Deactivating Message Types', 'event_espresso'); ?></h3> |
55 | 55 | <p><?php _e( |
56 | - 'There may be times where you just want to deactivate (or activate new) message types for a particular messenger. The messages system makes it super easy to do so. To deactivate, what you do is drag the message type box from the "active area" below the messenger description (of an active messenger) into the "inactive" area in the right sidebar. To activate you do the reverse. Just remember that when you deactivate a message type, if that message type has any settings, the settings will be lost. However, any message templates that match the messenger and message type you deactivated will be preserved, they are just marked "inactive" in the database', |
|
57 | - 'event_espresso' |
|
56 | + 'There may be times where you just want to deactivate (or activate new) message types for a particular messenger. The messages system makes it super easy to do so. To deactivate, what you do is drag the message type box from the "active area" below the messenger description (of an active messenger) into the "inactive" area in the right sidebar. To activate you do the reverse. Just remember that when you deactivate a message type, if that message type has any settings, the settings will be lost. However, any message templates that match the messenger and message type you deactivated will be preserved, they are just marked "inactive" in the database', |
|
57 | + 'event_espresso' |
|
58 | 58 | ); ?></p> |
59 | 59 | \ No newline at end of file |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <h2><?php esc_html_e('What is the Event Espresso Messages System?', 'event_espresso'); ?></h2> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - esc_html__( |
|
5 | - 'The Event Espresso Messages system is a powerful framework that Event Espresso uses to prepare %1$smessages%2$s for different types of use (message types) and delivered by different %1$smessengers%2$s.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<strong>', |
|
9 | - '</strong>' |
|
10 | - ); ?></p> |
|
4 | + esc_html__( |
|
5 | + 'The Event Espresso Messages system is a powerful framework that Event Espresso uses to prepare %1$smessages%2$s for different types of use (message types) and delivered by different %1$smessengers%2$s.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<strong>', |
|
9 | + '</strong>' |
|
10 | + ); ?></p> |
|
11 | 11 | <p> |
12 | 12 | <?php esc_html_e( |
13 | - 'We\'ve intentionally created this framework so that we have as much flexibility as possible for future ideas that we think of (or customers think of) for the kinds of messages that get sent out related to your events.', |
|
14 | - 'event_espresso' |
|
15 | - ); ?></p> |
|
16 | 13 | \ No newline at end of file |
14 | + 'We\'ve intentionally created this framework so that we have as much flexibility as possible for future ideas that we think of (or customers think of) for the kinds of messages that get sent out related to your events.', |
|
15 | + 'event_espresso' |
|
16 | + ); ?></p> |
|
17 | 17 | \ No newline at end of file |
@@ -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 |
@@ -12,52 +12,52 @@ |
||
12 | 12 | */ |
13 | 13 | class Messages_Admin_Page_Init extends EE_Admin_Page_Init |
14 | 14 | { |
15 | - /** |
|
16 | - *constructor |
|
17 | - * |
|
18 | - * @Constructor |
|
19 | - * @access public |
|
20 | - * @return void |
|
21 | - */ |
|
22 | - public function __construct() |
|
23 | - { |
|
15 | + /** |
|
16 | + *constructor |
|
17 | + * |
|
18 | + * @Constructor |
|
19 | + * @access public |
|
20 | + * @return void |
|
21 | + */ |
|
22 | + public function __construct() |
|
23 | + { |
|
24 | 24 | |
25 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
25 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
26 | 26 | |
27 | - if (! defined('EE_MSG_PG_SLUG')) { |
|
28 | - define('EE_MSG_PG_SLUG', 'espresso_messages'); |
|
29 | - define('EE_MSG_PG_NAME', ucwords(str_replace('_', '', EE_MSG_PG_SLUG))); |
|
30 | - define('EE_MSG_ADMIN', EE_ADMIN_PAGES . 'messages' . DS); |
|
31 | - define('EE_MSG_ADMIN_URL', admin_url('admin.php?page=' . EE_MSG_PG_SLUG)); |
|
32 | - define('EE_MSG_ASSETS_PATH', EE_MSG_ADMIN . 'assets' . DS); |
|
33 | - define('EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'messages/assets/'); |
|
34 | - define('EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN . 'templates' . DS); |
|
35 | - define('EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'messages/templates/'); |
|
36 | - } |
|
27 | + if (! defined('EE_MSG_PG_SLUG')) { |
|
28 | + define('EE_MSG_PG_SLUG', 'espresso_messages'); |
|
29 | + define('EE_MSG_PG_NAME', ucwords(str_replace('_', '', EE_MSG_PG_SLUG))); |
|
30 | + define('EE_MSG_ADMIN', EE_ADMIN_PAGES . 'messages' . DS); |
|
31 | + define('EE_MSG_ADMIN_URL', admin_url('admin.php?page=' . EE_MSG_PG_SLUG)); |
|
32 | + define('EE_MSG_ASSETS_PATH', EE_MSG_ADMIN . 'assets' . DS); |
|
33 | + define('EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'messages/assets/'); |
|
34 | + define('EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN . 'templates' . DS); |
|
35 | + define('EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'messages/templates/'); |
|
36 | + } |
|
37 | 37 | |
38 | - parent::__construct(); |
|
39 | - } |
|
38 | + parent::__construct(); |
|
39 | + } |
|
40 | 40 | |
41 | 41 | |
42 | - protected function _set_init_properties() |
|
43 | - { |
|
44 | - $this->label = __('Messages System', 'event_espresso'); |
|
45 | - } |
|
42 | + protected function _set_init_properties() |
|
43 | + { |
|
44 | + $this->label = __('Messages System', 'event_espresso'); |
|
45 | + } |
|
46 | 46 | |
47 | 47 | |
48 | - protected function _set_menu_map() |
|
49 | - { |
|
50 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
51 | - array( |
|
52 | - 'menu_group' => 'management', |
|
53 | - 'menu_order' => 10, |
|
54 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
55 | - 'parent_slug' => 'espresso_events', |
|
56 | - 'menu_slug' => EE_MSG_PG_SLUG, |
|
57 | - 'menu_label' => __('Messages', 'event_espresso'), |
|
58 | - 'capability' => 'ee_read_global_messages', |
|
59 | - 'admin_init_page' => $this, |
|
60 | - ) |
|
61 | - ); |
|
62 | - } |
|
48 | + protected function _set_menu_map() |
|
49 | + { |
|
50 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
51 | + array( |
|
52 | + 'menu_group' => 'management', |
|
53 | + 'menu_order' => 10, |
|
54 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
55 | + 'parent_slug' => 'espresso_events', |
|
56 | + 'menu_slug' => EE_MSG_PG_SLUG, |
|
57 | + 'menu_label' => __('Messages', 'event_espresso'), |
|
58 | + 'capability' => 'ee_read_global_messages', |
|
59 | + 'admin_init_page' => $this, |
|
60 | + ) |
|
61 | + ); |
|
62 | + } |
|
63 | 63 | } |
@@ -24,15 +24,15 @@ |
||
24 | 24 | |
25 | 25 | do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
26 | 26 | |
27 | - if (! defined('EE_MSG_PG_SLUG')) { |
|
27 | + if ( ! defined('EE_MSG_PG_SLUG')) { |
|
28 | 28 | define('EE_MSG_PG_SLUG', 'espresso_messages'); |
29 | 29 | define('EE_MSG_PG_NAME', ucwords(str_replace('_', '', EE_MSG_PG_SLUG))); |
30 | - define('EE_MSG_ADMIN', EE_ADMIN_PAGES . 'messages' . DS); |
|
31 | - define('EE_MSG_ADMIN_URL', admin_url('admin.php?page=' . EE_MSG_PG_SLUG)); |
|
32 | - define('EE_MSG_ASSETS_PATH', EE_MSG_ADMIN . 'assets' . DS); |
|
33 | - define('EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'messages/assets/'); |
|
34 | - define('EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN . 'templates' . DS); |
|
35 | - define('EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'messages/templates/'); |
|
30 | + define('EE_MSG_ADMIN', EE_ADMIN_PAGES.'messages'.DS); |
|
31 | + define('EE_MSG_ADMIN_URL', admin_url('admin.php?page='.EE_MSG_PG_SLUG)); |
|
32 | + define('EE_MSG_ASSETS_PATH', EE_MSG_ADMIN.'assets'.DS); |
|
33 | + define('EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL.'messages/assets/'); |
|
34 | + define('EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN.'templates'.DS); |
|
35 | + define('EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'messages/templates/'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | parent::__construct(); |
@@ -18,37 +18,37 @@ |
||
18 | 18 | class General_Settings_Admin_Page_Init extends EE_Admin_Page_Init |
19 | 19 | { |
20 | 20 | |
21 | - public function __construct() |
|
22 | - { |
|
23 | - // define some constants |
|
24 | - define('GEN_SET_PG_SLUG', 'espresso_general_settings'); |
|
25 | - define('GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
|
26 | - define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS); |
|
27 | - define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG)); |
|
28 | - define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS); |
|
29 | - define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/'); |
|
21 | + public function __construct() |
|
22 | + { |
|
23 | + // define some constants |
|
24 | + define('GEN_SET_PG_SLUG', 'espresso_general_settings'); |
|
25 | + define('GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
|
26 | + define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS); |
|
27 | + define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG)); |
|
28 | + define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS); |
|
29 | + define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/'); |
|
30 | 30 | |
31 | - parent::__construct(); |
|
32 | - } |
|
31 | + parent::__construct(); |
|
32 | + } |
|
33 | 33 | |
34 | - protected function _set_init_properties() |
|
35 | - { |
|
36 | - $this->label = GEN_SET_LABEL; |
|
37 | - } |
|
34 | + protected function _set_init_properties() |
|
35 | + { |
|
36 | + $this->label = GEN_SET_LABEL; |
|
37 | + } |
|
38 | 38 | |
39 | - protected function _set_menu_map() |
|
40 | - { |
|
41 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
42 | - array( |
|
43 | - 'menu_group' => 'settings', |
|
44 | - 'menu_order' => 20, |
|
45 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
46 | - 'parent_slug' => 'espresso_events', |
|
47 | - 'menu_slug' => GEN_SET_PG_SLUG, |
|
48 | - 'menu_label' => GEN_SET_LABEL, |
|
49 | - 'capability' => 'manage_options', |
|
50 | - 'admin_init_page' => $this, |
|
51 | - ) |
|
52 | - ); |
|
53 | - } |
|
39 | + protected function _set_menu_map() |
|
40 | + { |
|
41 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
42 | + array( |
|
43 | + 'menu_group' => 'settings', |
|
44 | + 'menu_order' => 20, |
|
45 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
46 | + 'parent_slug' => 'espresso_events', |
|
47 | + 'menu_slug' => GEN_SET_PG_SLUG, |
|
48 | + 'menu_label' => GEN_SET_LABEL, |
|
49 | + 'capability' => 'manage_options', |
|
50 | + 'admin_init_page' => $this, |
|
51 | + ) |
|
52 | + ); |
|
53 | + } |
|
54 | 54 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | // define some constants |
24 | 24 | define('GEN_SET_PG_SLUG', 'espresso_general_settings'); |
25 | 25 | define('GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
26 | - define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS); |
|
27 | - define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG)); |
|
28 | - define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS); |
|
29 | - define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/'); |
|
26 | + define('GEN_SET_ADMIN', EE_ADMIN_PAGES.'general_settings'.DS); |
|
27 | + define('GEN_SET_ADMIN_URL', admin_url('admin.php?page='.GEN_SET_PG_SLUG)); |
|
28 | + define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN.'templates'.DS); |
|
29 | + define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL.'general_settings/assets/'); |
|
30 | 30 | |
31 | 31 | parent::__construct(); |
32 | 32 | } |
@@ -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> |