@@ -1,11 +1,11 @@ |
||
1 | 1 | <h2><?php esc_html_e('What are Messengers?', 'event_espresso'); ?></h2> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - esc_html__( |
|
5 | - 'Messengers are the vehicles that deliver messages to people. By default, every Event Espresso install has the %sEmail%s messenger already active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd Party API\'s etc.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<strong>', |
|
9 | - '</strong>' |
|
10 | - ); ?> |
|
4 | + esc_html__( |
|
5 | + 'Messengers are the vehicles that deliver messages to people. By default, every Event Espresso install has the %sEmail%s messenger already active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd Party API\'s etc.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<strong>', |
|
9 | + '</strong>' |
|
10 | + ); ?> |
|
11 | 11 | </p> |
12 | 12 | \ No newline at end of file |
@@ -15,80 +15,80 @@ |
||
15 | 15 | <h3><?php esc_html_e('1. Defaults', 'event_espresso'); ?></h3> |
16 | 16 | <p> |
17 | 17 | <?php esc_html_e( |
18 | - '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', |
|
19 | - 'event_espresso' |
|
20 | - ); ?> |
|
18 | + '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', |
|
19 | + 'event_espresso' |
|
20 | + ); ?> |
|
21 | 21 | </p> |
22 | 22 | <h3><?php esc_html_e('2. Activating or Deactivating Messengers', 'event_espresso'); ?></h3> |
23 | 23 | <p> |
24 | 24 | <?php esc_html_e( |
25 | - '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.', |
|
26 | - 'event_espresso' |
|
27 | - ); ?> |
|
25 | + '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.', |
|
26 | + 'event_espresso' |
|
27 | + ); ?> |
|
28 | 28 | </p> |
29 | 29 | <p> |
30 | 30 | <?php esc_html_e( |
31 | - 'There are two ways to determine whether a messenger is active or not. The first way is via the messenger tab itself.', |
|
32 | - 'event_espresso' |
|
33 | - ); ?> |
|
31 | + 'There are two ways to determine whether a messenger is active or not. The first way is via the messenger tab itself.', |
|
32 | + 'event_espresso' |
|
33 | + ); ?> |
|
34 | 34 | </p> |
35 | 35 | <p> |
36 | 36 | <?php echo esc_html($img1); |
37 | - esc_html_e('The green colored gear indicates that this messenger is currently active.', 'event_espresso'); |
|
38 | - echo esc_html($img2); |
|
39 | - esc_html_e( |
|
40 | - '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.', |
|
41 | - 'event_espresso' |
|
42 | - ); ?> |
|
37 | + esc_html_e('The green colored gear indicates that this messenger is currently active.', 'event_espresso'); |
|
38 | + echo esc_html($img2); |
|
39 | + esc_html_e( |
|
40 | + '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.', |
|
41 | + 'event_espresso' |
|
42 | + ); ?> |
|
43 | 43 | </p> |
44 | 44 | <p> |
45 | 45 | <?php esc_html_e( |
46 | - '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:', |
|
47 | - 'event_espresso' |
|
48 | - ); ?> |
|
46 | + '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:', |
|
47 | + 'event_espresso' |
|
48 | + ); ?> |
|
49 | 49 | </p> |
50 | 50 | <p> |
51 | 51 | <?php echo esc_html($img3); |
52 | - printf( |
|
53 | - esc_html__( |
|
54 | - 'On means of course that the messenger is active and %s means the messenger is inactive.', |
|
55 | - 'event_espresso' |
|
56 | - ), |
|
57 | - $img4 |
|
58 | - ); ?> |
|
52 | + printf( |
|
53 | + esc_html__( |
|
54 | + 'On means of course that the messenger is active and %s means the messenger is inactive.', |
|
55 | + 'event_espresso' |
|
56 | + ), |
|
57 | + $img4 |
|
58 | + ); ?> |
|
59 | 59 | </p> |
60 | 60 | <p> |
61 | 61 | <?php esc_html_e( |
62 | - 'Incidentally, the on/off toggle is also what you use to activate or deactivate a messenger.', |
|
63 | - 'event_espresso' |
|
64 | - ); ?> |
|
62 | + 'Incidentally, the on/off toggle is also what you use to activate or deactivate a messenger.', |
|
63 | + 'event_espresso' |
|
64 | + ); ?> |
|
65 | 65 | </p> |
66 | 66 | <p> |
67 | 67 | <?php esc_html_e( |
68 | - '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.', |
|
69 | - 'event_espresso' |
|
70 | - ); ?> |
|
68 | + '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.', |
|
69 | + 'event_espresso' |
|
70 | + ); ?> |
|
71 | 71 | </p> |
72 | 72 | <p> |
73 | 73 | <?php esc_html_e( |
74 | - '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.', |
|
75 | - 'event_espresso' |
|
76 | - ); ?> |
|
74 | + '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.', |
|
75 | + 'event_espresso' |
|
76 | + ); ?> |
|
77 | 77 | </p> |
78 | 78 | <p> |
79 | 79 | <?php printf( |
80 | - esc_html__( |
|
81 | - '%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.', |
|
82 | - 'event_espresso' |
|
83 | - ), |
|
84 | - '<strong>', |
|
85 | - '</strong>' |
|
86 | - ); ?> |
|
80 | + esc_html__( |
|
81 | + '%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.', |
|
82 | + 'event_espresso' |
|
83 | + ), |
|
84 | + '<strong>', |
|
85 | + '</strong>' |
|
86 | + ); ?> |
|
87 | 87 | </p> |
88 | 88 | <h3><?php esc_html_e('3. Activating or Deactivating Message Types', 'event_espresso'); ?></h3> |
89 | 89 | <p> |
90 | 90 | <?php esc_html_e( |
91 | - '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', |
|
92 | - 'event_espresso' |
|
93 | - ); ?> |
|
91 | + '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', |
|
92 | + 'event_espresso' |
|
93 | + ); ?> |
|
94 | 94 | </p> |
95 | 95 | \ No newline at end of file |
@@ -11,24 +11,24 @@ |
||
11 | 11 | <div class="<?php echo esc_attr($messenger); ?>-content"> |
12 | 12 | |
13 | 13 | <?php if (empty($inactive_message_types) && empty($active_message_types)) : |
14 | - echo '<p>' |
|
15 | - . esc_html__( |
|
16 | - '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.', |
|
17 | - 'event_espresso' |
|
18 | - ) |
|
19 | - . '</p>'; |
|
20 | - else : ?> |
|
14 | + echo '<p>' |
|
15 | + . esc_html__( |
|
16 | + '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.', |
|
17 | + 'event_espresso' |
|
18 | + ) |
|
19 | + . '</p>'; |
|
20 | + else : ?> |
|
21 | 21 | <p class="inactive-on-message <?php echo esc_attr($hide_on_message); ?>"> |
22 | 22 | <?php esc_html_e( |
23 | - 'Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', |
|
24 | - 'event_espresso' |
|
25 | - ); ?> |
|
23 | + 'Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', |
|
24 | + 'event_espresso' |
|
25 | + ); ?> |
|
26 | 26 | <p> |
27 | 27 | <p class="inactive-off-message <?php echo esc_attr($hide_off_message); ?>"> |
28 | 28 | <?php esc_html_e( |
29 | - 'This messenger is currently inactive. Once the messenger is activated any inactive message types associated with the messenger will be shown here.', |
|
30 | - 'event_espresso' |
|
31 | - ); ?> |
|
29 | + 'This messenger is currently inactive. Once the messenger is activated any inactive message types associated with the messenger will be shown here.', |
|
30 | + 'event_espresso' |
|
31 | + ); ?> |
|
32 | 32 | </p> |
33 | 33 | <div |
34 | 34 | <?php if ($active) : ?> |
@@ -17,8 +17,11 @@ |
||
17 | 17 | 'event_espresso' |
18 | 18 | ) |
19 | 19 | . '</p>'; |
20 | - else : ?> |
|
21 | - <p class="inactive-on-message <?php echo esc_attr($hide_on_message); ?>"> |
|
20 | + else { |
|
21 | + : ?> |
|
22 | + <p class="inactive-on-message <?php echo esc_attr($hide_on_message); |
|
23 | + } |
|
24 | + ?>"> |
|
22 | 25 | <?php esc_html_e( |
23 | 26 | 'Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', |
24 | 27 | 'event_espresso' |
@@ -1,35 +1,35 @@ |
||
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 | - ); ?> |
|
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 | + ); ?> |
|
11 | 11 | </p> |
12 | 12 | <p> |
13 | 13 | <?php esc_html_e( |
14 | - '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', |
|
15 | - 'event_espresso' |
|
16 | - ); ?> |
|
14 | + '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', |
|
15 | + 'event_espresso' |
|
16 | + ); ?> |
|
17 | 17 | </p> |
18 | 18 | |
19 | 19 | <h3><?php esc_html_e('Contexts', 'event_espresso'); ?></h3> |
20 | 20 | <p> |
21 | 21 | <?php printf( |
22 | - esc_html__( |
|
23 | - '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]).', |
|
24 | - 'event_espresso' |
|
25 | - ), |
|
26 | - '<em>', |
|
27 | - '</em>' |
|
28 | - ); ?> |
|
22 | + esc_html__( |
|
23 | + '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]).', |
|
24 | + 'event_espresso' |
|
25 | + ), |
|
26 | + '<em>', |
|
27 | + '</em>' |
|
28 | + ); ?> |
|
29 | 29 | </p> |
30 | 30 | <p> |
31 | 31 | <?php esc_html_e( |
32 | - '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', |
|
33 | - 'event_espresso' |
|
34 | - ); ?> |
|
32 | + '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', |
|
33 | + 'event_espresso' |
|
34 | + ); ?> |
|
35 | 35 | </p> |
@@ -9,9 +9,9 @@ |
||
9 | 9 | </p> |
10 | 10 | <p> |
11 | 11 | <?php esc_html_e( |
12 | - 'The following list of shortcodes can be used for this Messenger and Message Type. You can use the descriptions to learn what the shortcode will be parsed to when the final message is generated.', |
|
13 | - 'event_espresso' |
|
14 | - ); ?> |
|
12 | + 'The following list of shortcodes can be used for this Messenger and Message Type. You can use the descriptions to learn what the shortcode will be parsed to when the final message is generated.', |
|
13 | + 'event_espresso' |
|
14 | + ); ?> |
|
15 | 15 | </p> |
16 | 16 | |
17 | 17 | <?php |
@@ -17,8 +17,11 @@ |
||
17 | 17 | 'event_espresso' |
18 | 18 | ) |
19 | 19 | . '</p>'; |
20 | - else : ?> |
|
21 | - <p class="active-on-message <?php echo esc_attr($hide_on_message); ?>"> |
|
20 | + else { |
|
21 | + : ?> |
|
22 | + <p class="active-on-message <?php echo esc_attr($hide_on_message); |
|
23 | + } |
|
24 | + ?>"> |
|
22 | 25 | <?php printf( |
23 | 26 | esc_html__( |
24 | 27 | 'Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', |
@@ -15,23 +15,23 @@ |
||
15 | 15 | <div class="<?php echo esc_attr($messenger); ?>-content"> |
16 | 16 | <?php echo wp_kses($content, AllowedTags::getWithFormTags()); ?> |
17 | 17 | <?php if (empty($inactive_message_types) && empty($active_message_types)) : |
18 | - echo '<p>' |
|
19 | - . esc_html__( |
|
20 | - '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.', |
|
21 | - 'event_espresso' |
|
22 | - ) |
|
23 | - . '</p>'; |
|
24 | - else : ?> |
|
18 | + echo '<p>' |
|
19 | + . esc_html__( |
|
20 | + '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.', |
|
21 | + 'event_espresso' |
|
22 | + ) |
|
23 | + . '</p>'; |
|
24 | + else : ?> |
|
25 | 25 | <p class="active-on-message <?php echo esc_attr($hide_on_message); ?>"> |
26 | 26 | <?php printf( |
27 | - esc_html__( |
|
28 | - 'Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', |
|
29 | - 'event_espresso' |
|
30 | - ), |
|
31 | - '<strong>', |
|
32 | - '</strong>' |
|
33 | - ); |
|
34 | - ?> |
|
27 | + esc_html__( |
|
28 | + 'Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', |
|
29 | + 'event_espresso' |
|
30 | + ), |
|
31 | + '<strong>', |
|
32 | + '</strong>' |
|
33 | + ); |
|
34 | + ?> |
|
35 | 35 | <p> |
36 | 36 | <div<?php if ($active) : ?> |
37 | 37 | id="active-message-types" |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <h2><?php esc_html_e('What are Message Templates', 'event_espresso'); ?></h2> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - esc_html__( |
|
5 | - 'Message Templates are the %1$sformat%2$s of the messages going out. Think of them like a “Form letter”. Templates are used to tell the system what you want your messages to look like and the content they will have when they are delivered.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<em>', |
|
9 | - '</em>' |
|
10 | - ); ?> |
|
4 | + esc_html__( |
|
5 | + 'Message Templates are the %1$sformat%2$s of the messages going out. Think of them like a “Form letter”. Templates are used to tell the system what you want your messages to look like and the content they will have when they are delivered.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<em>', |
|
9 | + '</em>' |
|
10 | + ); ?> |
|
11 | 11 | </p> |
12 | 12 | <p> |
13 | 13 | <?php esc_html_e( |
14 | - 'There is a template created for each messenger/message type AND context combination. So example, Emails that are sent for the Payment confirmation have a template for Event Administrator and a different one for Primary Registrant. Whereas, emails that are sent for the Registration confirmation have 3 templates, one for Event Administrator, Primary Registrant, and Registrant.', |
|
15 | - 'event_espresso' |
|
16 | - ); ?> |
|
14 | + 'There is a template created for each messenger/message type AND context combination. So example, Emails that are sent for the Payment confirmation have a template for Event Administrator and a different one for Primary Registrant. Whereas, emails that are sent for the Registration confirmation have 3 templates, one for Event Administrator, Primary Registrant, and Registrant.', |
|
15 | + 'event_espresso' |
|
16 | + ); ?> |
|
17 | 17 | </p> |
18 | 18 | <p> |
19 | 19 | <?php esc_html_e( |
20 | - 'With the Event Espresso Messages system, every Messenger, Message Type and Context will have a global template created with some default content on creation. You have the ability to edit this global template that will be used for all events you create. However, you also have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").', |
|
21 | - 'event_espresso' |
|
22 | - ); ?> |
|
20 | + 'With the Event Espresso Messages system, every Messenger, Message Type and Context will have a global template created with some default content on creation. You have the ability to edit this global template that will be used for all events you create. However, you also have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").', |
|
21 | + 'event_espresso' |
|
22 | + ); ?> |
|
23 | 23 | </p> |
24 | 24 | \ No newline at end of file |
@@ -15,7 +15,7 @@ |
||
15 | 15 | <input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo esc_attr($context); ?>" /> |
16 | 16 | <!-- if this is not a global template then let's show the name and description fields --> |
17 | 17 | <?php |
18 | - if (! $MTP->is_global()) : ?> |
|
18 | + if ( ! $MTP->is_global()) : ?> |
|
19 | 19 | <div class="non-global-mtp-fields"> |
20 | 20 | <p> |
21 | 21 | <?php esc_html_e( |
@@ -52,9 +52,12 @@ |
||
52 | 52 | </p> |
53 | 53 | </div> |
54 | 54 | <?php |
55 | - else : |
|
55 | + else { |
|
56 | + : |
|
56 | 57 | ?> |
57 | - <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo esc_attr($MTP->name()); ?>"> |
|
58 | + <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo esc_attr($MTP->name()); |
|
59 | + } |
|
60 | + ?>"> |
|
58 | 61 | <input type="hidden" |
59 | 62 | name="ee_msg_non_global_fields[MTP_description]" |
60 | 63 | value="<?php echo esc_attr($MTP->description()); ?>" |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | <input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo esc_attr($context); ?>" /> |
20 | 20 | <!-- if this is not a global template then let's show the name and description fields --> |
21 | 21 | <?php |
22 | - if (! $MTP->is_global()) : ?> |
|
22 | + if (! $MTP->is_global()) : ?> |
|
23 | 23 | <div class="non-global-mtp-fields"> |
24 | 24 | <p> |
25 | 25 | <?php esc_html_e( |
26 | - 'This is a custom template. Custom Templates have an editable name and description to help you differentiate between templates.', |
|
27 | - 'event_espresso' |
|
28 | - ); ?> |
|
26 | + 'This is a custom template. Custom Templates have an editable name and description to help you differentiate between templates.', |
|
27 | + 'event_espresso' |
|
28 | + ); ?> |
|
29 | 29 | </p> |
30 | 30 | <div id="titlediv"> |
31 | 31 | <div id="titlewrap"> |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | </p> |
57 | 57 | </div> |
58 | 58 | <?php |
59 | - else : |
|
60 | - ?> |
|
59 | + else : |
|
60 | + ?> |
|
61 | 61 | <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo esc_attr($MTP->name()); ?>"> |
62 | 62 | <input type="hidden" |
63 | 63 | name="ee_msg_non_global_fields[MTP_description]" |
@@ -66,18 +66,18 @@ discard block |
||
66 | 66 | <?php endif; ?> |
67 | 67 | <!-- we need to loop through the template_fields so we know our structure --> |
68 | 68 | <?php |
69 | - if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) { |
|
70 | - echo wp_kses($template_fields, AllowedTags::getWithFullTags()); |
|
71 | - } else { |
|
72 | - ?> |
|
69 | + if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) { |
|
70 | + echo wp_kses($template_fields, AllowedTags::getWithFullTags()); |
|
71 | + } else { |
|
72 | + ?> |
|
73 | 73 | <p> |
74 | 74 | <?php esc_html_e( |
75 | - 'Something has gone wrong, there are no template fields to output.', |
|
76 | - 'event_espresso' |
|
77 | - ); ?> |
|
75 | + 'Something has gone wrong, there are no template fields to output.', |
|
76 | + 'event_espresso' |
|
77 | + ); ?> |
|
78 | 78 | </p> |
79 | 79 | <?php |
80 | - } |
|
80 | + } |
|
81 | 81 | |
82 | - ?> |
|
82 | + ?> |
|
83 | 83 | </div> <!-- end #admin-primary-mbox-dv --> |
@@ -1,44 +1,44 @@ |
||
1 | 1 | <h2><?php esc_html_e('What the preview page shows', 'event_espresso'); ?></h2> |
2 | 2 | <p> |
3 | 3 | <?php esc_html_e( |
4 | - 'This page is accessed by clicking the preview button while editing a message template. This feature has been created as a way of previewing what the final generated messages will look like when received. Here\'s how the preview is prepared:', |
|
5 | - 'event_espresso' |
|
6 | - ); ?> |
|
4 | + 'This page is accessed by clicking the preview button while editing a message template. This feature has been created as a way of previewing what the final generated messages will look like when received. Here\'s how the preview is prepared:', |
|
5 | + 'event_espresso' |
|
6 | + ); ?> |
|
7 | 7 | </p> |
8 | 8 | |
9 | 9 | <h3> |
10 | 10 | <?php esc_html_e( |
11 | - '1. The system retrieves the appropriate template based on the given messenger, message type, and context', |
|
12 | - 'event_espresso' |
|
13 | - ); ?> |
|
11 | + '1. The system retrieves the appropriate template based on the given messenger, message type, and context', |
|
12 | + 'event_espresso' |
|
13 | + ); ?> |
|
14 | 14 | </h3> |
15 | 15 | <p> |
16 | 16 | <?php esc_html_e( |
17 | - 'When you click the preview button, the messages system remembers what template is being "previewed" based on the messenger, message_type, context and event (if this is a custom event template).', |
|
18 | - 'event_espresso' |
|
19 | - ); ?> |
|
17 | + 'When you click the preview button, the messages system remembers what template is being "previewed" based on the messenger, message_type, context and event (if this is a custom event template).', |
|
18 | + 'event_espresso' |
|
19 | + ); ?> |
|
20 | 20 | </p> |
21 | 21 | |
22 | 22 | <h3><?php esc_html_e('2. Setup data.', 'event_espresso'); ?></h3> |
23 | 23 | <p> |
24 | 24 | <?php esc_html_e( |
25 | - 'Before any shortcodes in the template can be parsed, the previewer needs to know what data to use for the shortcodes. Some of the data is dummy data that the previewer generates, but wherever possible the previewer will use ACTUAL data from your database. For example, all the organization shortcodes will use actual data you\'ve setup for your organization. For global template previews, the previewer will obtain the first active event from your database and use data from it. If you are previewing a custom event template then THAT event will be used for the preview. The only data that is dummy data is typically data that would be entered by a person registering for an event', |
|
26 | - 'event_espresso' |
|
27 | - ); ?> |
|
25 | + 'Before any shortcodes in the template can be parsed, the previewer needs to know what data to use for the shortcodes. Some of the data is dummy data that the previewer generates, but wherever possible the previewer will use ACTUAL data from your database. For example, all the organization shortcodes will use actual data you\'ve setup for your organization. For global template previews, the previewer will obtain the first active event from your database and use data from it. If you are previewing a custom event template then THAT event will be used for the preview. The only data that is dummy data is typically data that would be entered by a person registering for an event', |
|
26 | + 'event_espresso' |
|
27 | + ); ?> |
|
28 | 28 | </p> |
29 | 29 | |
30 | 30 | <h3><?php esc_html_e('3. Parse shortcodes', 'event_espresso'); ?></h3> |
31 | 31 | <p> |
32 | 32 | <?php esc_html_e( |
33 | - 'The previewer then goes through all the shortcodes in the template being previewed and replaces them using the prepared data. This is a good way of making sure that the shortcodes are working as you expect, and also clearly seeing what is being displayed for that shortcode when someone receives that message.', |
|
34 | - 'event_espresso' |
|
35 | - ); ?> |
|
33 | + 'The previewer then goes through all the shortcodes in the template being previewed and replaces them using the prepared data. This is a good way of making sure that the shortcodes are working as you expect, and also clearly seeing what is being displayed for that shortcode when someone receives that message.', |
|
34 | + 'event_espresso' |
|
35 | + ); ?> |
|
36 | 36 | </p> |
37 | 37 | |
38 | 38 | <h3><?php esc_html_e('4. Display the preview!', 'event_espresso'); ?></h3> |
39 | 39 | <p> |
40 | 40 | <?php esc_html_e( |
41 | - 'An important thing to remember about the previewer is that for the most part, the previewer uses the same underlying system that will be used for actual outgoing messages, so you can be certain that what you see in the preview is what users will see when they receive the message. It is yet another tool provided to make it easier for you to customize the look of your outgoing messages.', |
|
42 | - 'event_espresso' |
|
43 | - ); ?> |
|
41 | + 'An important thing to remember about the previewer is that for the most part, the previewer uses the same underlying system that will be used for actual outgoing messages, so you can be certain that what you see in the preview is what users will see when they receive the message. It is yet another tool provided to make it easier for you to customize the look of your outgoing messages.', |
|
42 | + 'event_espresso' |
|
43 | + ); ?> |
|
44 | 44 | </p> |
45 | 45 | \ No newline at end of file |