Completed
Branch FET/files-data-handler (0d1b6c)
by
unknown
17:03 queued 08:54
created
admin_pages/messages/help_tabs/messages_templates.help_tab.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <p><strong><?php esc_html_e('Message Templates', 'event_espresso'); ?></strong></p>
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 as a “form letter”. Templates tell the Messages system how to style your messages and the content (information) they will have when they are delivered.',
6
-            'event_espresso'
7
-        ),
8
-        '<em>',
9
-        '</em>'
10
-    ); ?></p>
4
+		esc_html__(
5
+			'Message Templates are the %1$sformat%2$s of the messages going out. Think of them as a “form letter”. Templates tell the Messages system how to style your messages and the content (information) they will have when they are delivered.',
6
+			'event_espresso'
7
+		),
8
+		'<em>',
9
+		'</em>'
10
+	); ?></p>
11 11
 <p>
12 12
     <?php esc_html_e(
13
-        'There is a template created for each Messenger / Message Type and context combination. For example, messages that are sent for Payment Confirmation have a template for Event Administrator and a different one for Primary Registrant.  Whereas, messages that are sent for the Registration confirmation have 3 templates: one for Event Administrator, one for the Primary Registrant, and another for each additional Registrant(s).',
14
-        'event_espresso'
15
-    ); ?></p>
13
+		'There is a template created for each Messenger / Message Type and context combination. For example, messages that are sent for Payment Confirmation have a template for Event Administrator and a different one for Primary Registrant.  Whereas, messages that are sent for the Registration confirmation have 3 templates: one for Event Administrator, one for the Primary Registrant, and another for each additional Registrant(s).',
14
+		'event_espresso'
15
+	); ?></p>
16 16
 <p>
17 17
     <?php esc_html_e(
18
-        '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 the global template that will be used for all events you create. Additionally, you have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").',
19
-        'event_espresso'
20
-    ); ?></p>
21 18
\ No newline at end of file
19
+		'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 the global template that will be used for all events you create. Additionally, you have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").',
20
+		'event_espresso'
21
+	); ?></p>
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
admin_pages/messages/help_tabs/messages_overview_types.help_tab.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <p><strong><?php esc_html_e('Message Types', 'event_espresso'); ?></strong></p>
2 2
 <p>
3 3
     <?php printf(
4
-        esc_html__(
5
-            'Messages are email notifications that are sent out by Event Espresso. Message Types are the %1$skinds%2$s of messages that get delivered.  They can be thought of 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:',
6
-            'event_espresso'
7
-        ),
8
-        '<em>',
9
-        '</em>'
10
-    ); ?></p>
4
+		esc_html__(
5
+			'Messages are email notifications that are sent out by Event Espresso. Message Types are the %1$skinds%2$s of messages that get delivered.  They can be thought of 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:',
6
+			'event_espresso'
7
+		),
8
+		'<em>',
9
+		'</em>'
10
+	); ?></p>
11 11
 <p>
12 12
 <ul>
13 13
     <li>
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
 <p><strong><?php esc_html_e('Contexts', 'event_espresso'); ?></strong></p>
24 24
 <p>
25 25
     <?php esc_html_e(
26
-        'Each Message Type (kind of message) has different contexts. Contexts are dynamic and typically represent recipients (individuals receiving email notifications). For example, when the Registration Confirmation message type is triggered, it will send out a message to the following recipients: Event Administrator, Primary Registrant, and Additional Registrants. On the other hand, the Payment Message Type has only two recipients: Event Administrator and Primary Registrant.',
27
-        'event_espresso'
28
-    ); ?></p>
26
+		'Each Message Type (kind of message) has different contexts. Contexts are dynamic and typically represent recipients (individuals receiving email notifications). For example, when the Registration Confirmation message type is triggered, it will send out a message to the following recipients: Event Administrator, Primary Registrant, and Additional Registrants. On the other hand, the Payment Message Type has only two recipients: Event Administrator and Primary Registrant.',
27
+		'event_espresso'
28
+	); ?></p>
29 29
 <p>
30 30
     <?php esc_html_e(
31
-        'A message context can be deactivated by removing a recipient from the "TO" field. This will set the field to blank and you can save changes. Deactivated message contexts will appear in grey when viewed in the Messages Overview tab. To re-activate a message context, go to that message context and setup a recipient (using one of the available shortcodes) and save changes. This will reactivate the message context and it will appear as blue in the Messages Overview tab.',
32
-        'event_espresso'
33
-    ); ?></p>
31
+		'A message context can be deactivated by removing a recipient from the "TO" field. This will set the field to blank and you can save changes. Deactivated message contexts will appear in grey when viewed in the Messages Overview tab. To re-activate a message context, go to that message context and setup a recipient (using one of the available shortcodes) and save changes. This will reactivate the message context and it will appear as blue in the Messages Overview tab.',
32
+		'event_espresso'
33
+	); ?></p>
34 34
 <p><strong><?php esc_html_e('Activation / Deactivation of Message Types', 'event_espresso'); ?></strong></p>
35 35
 <p>
36 36
     <?php esc_html_e(
37
-        'When a new install of Event Espresso is activated, all message types will be activated except for those for Cancelled and Declined registrations. The message types for Cancelled and Declined registrations can be easily activated through the Settings tab for Messages. Deactivating and re-activating Event Espresso will keep the current settings saved.',
38
-        'event_espresso'
39
-    ); ?></p>
37
+		'When a new install of Event Espresso is activated, all message types will be activated except for those for Cancelled and Declined registrations. The message types for Cancelled and Declined registrations can be easily activated through the Settings tab for Messages. Deactivating and re-activating Event Espresso will keep the current settings saved.',
38
+		'event_espresso'
39
+	); ?></p>
Please login to merge, or discard this patch.
messages/templates/ee_msg_details_messenger_mt_meta_box.template.php 3 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 block discarded – undo
1 1
 <div class="<?php echo $messenger; ?>-content">
2 2
     <?php echo $content; ?>
3 3
     <?php
4
-    if (empty($inactive_message_types) && empty($active_message_types)) :
5
-        echo '<p>'
6
-             . __(
7
-                 '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.',
8
-                 'event_espresso'
9
-             ) . '</p>';
10
-    else : ?>
4
+	if (empty($inactive_message_types) && empty($active_message_types)) :
5
+		echo '<p>'
6
+			 . __(
7
+				 '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.',
8
+				 'event_espresso'
9
+			 ) . '</p>';
10
+	else : ?>
11 11
         <p class="active-on-message <?php echo $hide_on_message; ?>">
12 12
             <?php printf(
13
-                __(
14
-                    '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
-                    'event_espresso'
16
-                ),
17
-                '<strong>',
18
-                '</strong>'
19
-            ); ?>
13
+				__(
14
+					'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
+					'event_espresso'
16
+				),
17
+				'<strong>',
18
+				'</strong>'
19
+			); ?>
20 20
         <p>
21 21
         <div <?php
22
-        if ($active) :
23
-            ?> id="active-message-types"<?php
24
-        endif; ?>
22
+		if ($active) :
23
+			?> id="active-message-types"<?php
24
+		endif; ?>
25 25
             class="mt-tab-container <?php echo $hide_on_message; ?>">
26 26
             <ul class="messenger-activation">
27 27
                 <?php echo $active_message_types; ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
              . __(
7 7
                  '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.',
8 8
                  'event_espresso'
9
-             ) . '</p>';
9
+             ).'</p>';
10 10
     else : ?>
11 11
         <p class="active-on-message <?php echo $hide_on_message; ?>">
12 12
             <?php printf(
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,11 @@
 block discarded – undo
7 7
                  '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.',
8 8
                  'event_espresso'
9 9
              ) . '</p>';
10
-    else : ?>
11
-        <p class="active-on-message <?php echo $hide_on_message; ?>">
10
+    else {
11
+    	: ?>
12
+        <p class="active-on-message <?php echo $hide_on_message;
13
+    }
14
+    ?>">
12 15
             <?php printf(
13 16
                 __(
14 17
                     'Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.',
Please login to merge, or discard this patch.
messages/templates/ee_msg_details_main_add_meta_box.template.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@  discard block
 block discarded – undo
6 6
     <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post">
7 7
         <input type="hidden" id="evt_id" name="EVT_ID" value="<?php echo ($EVT_ID) ? $EVT_ID : ''; ?>"/>
8 8
         <?php
9
-        if (isset($hidden_fields)) {
10
-            echo $hidden_fields;
11
-        } ?>
9
+		if (isset($hidden_fields)) {
10
+			echo $hidden_fields;
11
+		} ?>
12 12
         <!--active_messengers -->
13 13
         <label for="MTP_messenger"><?php _e('Select Messenger', 'event_espresso'); ?></label>
14 14
         <select name="MTP_messenger" id="MTP-messenger">
15 15
             <?php
16
-            foreach ($active_messengers as $messenger => $values) : ?>
16
+			foreach ($active_messengers as $messenger => $values) : ?>
17 17
                 <option value="<?php echo $messenger; ?>">
18 18
                     <?php echo ucwords(
19
-                        str_replace('_', ' ', $messenger)
20
-                    ); ?></option>
19
+						str_replace('_', ' ', $messenger)
20
+					); ?></option>
21 21
             <?php endforeach; ?>
22 22
         </select>
23 23
 
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
             <?php foreach ($active_message_types as $message_type => $values) : ?>
27 27
                 <option value="<?php echo $message_type; ?>">
28 28
                     <?php echo ucwords(
29
-                        str_replace('_', ' ', $message_type)
30
-                    ); ?></option>
29
+						str_replace('_', ' ', $message_type)
30
+					); ?></option>
31 31
             <?php endforeach; ?>
32 32
         </select>
33 33
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv">
2 2
 
3
-    <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name . ' Custom Template' : ''; ?></h4>
3
+    <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name.' Custom Template' : ''; ?></h4>
4 4
     <p><?php echo $action_message; ?></p>
5 5
 
6 6
     <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post">
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         </select>
33 33
 
34 34
         <!-- events if we don't have an EVENT_ID -->
35
-        <?php if (! empty($active_events)) : ?>
35
+        <?php if ( ! empty($active_events)) : ?>
36 36
             <label for="EVT_ID_select"><?php _e('Select Event', 'event_espresso'); ?></label>
37 37
             <select name="EVT_ID" id="EVT_ID_select">
38 38
                 <?php foreach ($active_events as $event) : ?>
Please login to merge, or discard this patch.
admin_pages/messages/templates/shortcode_selector_skeleton.template.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     <span class="ee-messages-shortcodes-chooser js-open-list-trigger dashicons dashicons-menu">
13 13
         <ul id="ee_shortcode_chooser_<?php echo $fieldname; ?>" class="ee_shortcode_chooser_container hidden">
14 14
         <?php
15
-        foreach ($shortcodes as $shortcode => $label) : ?>
15
+		foreach ($shortcodes as $shortcode => $label) : ?>
16 16
             <li>
17 17
                 <span class="js-shortcode-selection" data-value="<?php echo esc_attr($shortcode); ?>"
18 18
                       data-linked-input-id="<?php echo esc_attr($linked_input_id); ?>"><?php echo $shortcode; ?></span>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * @type    string $fieldname       The name of the field the chooser is associated with.
9 9
  * @type    string $linked_input_id The name of the input that the shortcode gets inserted to.
10 10
  */
11
-if (! empty($shortcodes)) : ?>
11
+if ( ! empty($shortcodes)) : ?>
12 12
     <span class="ee-messages-shortcodes-chooser js-open-list-trigger dashicons dashicons-menu">
13 13
         <ul id="ee_shortcode_chooser_<?php echo $fieldname; ?>" class="ee_shortcode_chooser_container hidden">
14 14
         <?php
Please login to merge, or discard this patch.
admin_pages/messages/templates/ee_msg_m_settings_content.template.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,16 +3,16 @@  discard block
 block discarded – undo
3 3
         <div id="espresso-ajax-loading" class="ajax-loader-grey">
4 4
             <span class="ee-spinner ee-spin"></span><span class="hidden">
5 5
                 <?php
6
-                _e(
7
-                    'loading...',
8
-                    'event_espresso'
9
-                ); ?></span>
6
+				_e(
7
+					'loading...',
8
+					'event_espresso'
9
+				); ?></span>
10 10
         </div>
11 11
         <span id="on-off-nonce-<?php echo $messenger; ?>" class="hidden"><?php echo $nonce; ?></span>
12 12
         <div class="switch">
13 13
             <?php
14
-            $checked = $on_off_status ? ' checked="checked"' : '';
15
-            ?>
14
+			$checked = $on_off_status ? ' checked="checked"' : '';
15
+			?>
16 16
             <input id="ee-on-off-toggle-<?php echo $messenger; ?>" type="checkbox"
17 17
                    class="ee-on-off-toggle ee-toggle-round-flat"<?php echo $checked; ?>
18 18
                    value="<?php echo $on_off_action; ?>">
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
         <form method="POST" action="" class="mt-settings-form">
28 28
             <?php echo $template_form_fields; ?>
29 29
             <?php
30
-            foreach ($hidden_fields as $name => $field) {
31
-                echo $field['field'];
32
-            } ?>
30
+			foreach ($hidden_fields as $name => $field) {
31
+				echo $field['field'];
32
+			} ?>
33 33
             <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" class="button-secondary no-drag"/>
34 34
         </form>
35 35
     </div>
Please login to merge, or discard this patch.
admin_pages/messages/templates/ee_msg_mt_settings_content.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 <form method="POST" action="" class="mt-settings-form<?php echo $show_form; ?>">
8 8
     <?php echo $template_form_fields; ?>
9 9
     <?php
10
-    foreach ($hidden_fields as $name => $field) {
11
-        echo $field['field'];
12
-    } ?>
10
+	foreach ($hidden_fields as $name => $field) {
11
+		echo $field['field'];
12
+	} ?>
13 13
     <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>"
14 14
            class="button-secondary mt-settings-submit no-drag"/>
15 15
 </form>
Please login to merge, or discard this patch.
messages/templates/ee_msg_messages_templates_editor_help_tab.template.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -4,97 +4,97 @@
 block discarded – undo
4 4
 <p><?php echo $img1; ?></p>
5 5
 <p>
6 6
     <?php printf(
7
-        esc_html__(
8
-            'The Event Editor title is very helpful in indicating which template you are currently editing.  In the example above, we can see that we are editing the template that for the %1$sEmail%2$s messenger, the %1$sPayment%2$s message type, and the %1$sEvent Admin%2$s context (which for this message type means "recipient").',
9
-            'event_espresso'
10
-        ),
11
-        '<strong>',
12
-        '</strong>'
13
-    ); ?></p>
7
+		esc_html__(
8
+			'The Event Editor title is very helpful in indicating which template you are currently editing.  In the example above, we can see that we are editing the template that for the %1$sEmail%2$s messenger, the %1$sPayment%2$s message type, and the %1$sEvent Admin%2$s context (which for this message type means "recipient").',
9
+			'event_espresso'
10
+		),
11
+		'<strong>',
12
+		'</strong>'
13
+	); ?></p>
14 14
 <p><strong><?php esc_html_e('2. "Context Switcher" and Preview Button', 'event_espresso'); ?></strong></p>
15 15
 <p><?php echo $img2; ?></p>
16 16
 <p>
17 17
     <?php esc_html_e(
18
-        'The context switcher allows you to quickly switch between templates. The current context you are working on is displayed in the dropdown. You can switch to any other template for contexts available to the messenger and message type template group you are working on.',
19
-        'event_espresso'
20
-    ); ?></p>
18
+		'The context switcher allows you to quickly switch between templates. The current context you are working on is displayed in the dropdown. You can switch to any other template for contexts available to the messenger and message type template group you are working on.',
19
+		'event_espresso'
20
+	); ?></p>
21 21
 <p>
22 22
     <?php esc_html_e(
23
-        'Remember that contexts can represent different things. In this example they represent "recipients" and so they are labelled as such. In this example (for email payment confirmations), you may want Event Administrators to receive different information than Primary Registrants (the other context available to edit).',
24
-        'event_espresso'
25
-    ); ?></p>
23
+		'Remember that contexts can represent different things. In this example they represent "recipients" and so they are labelled as such. In this example (for email payment confirmations), you may want Event Administrators to receive different information than Primary Registrants (the other context available to edit).',
24
+		'event_espresso'
25
+	); ?></p>
26 26
 <p>
27 27
     <?php printf(
28
-        esc_html__(
29
-            'The %sPreview%s button is simply a link to a special view of the current template displayed to give you an idea of how the actual message will look when delivered. More information on what the preview displays is available in the content of the help tab on the preview page.',
30
-            'event_espresso'
31
-        ),
32
-        '<strong>',
33
-        '</strong>'
34
-    ); ?>
28
+		esc_html__(
29
+			'The %sPreview%s button is simply a link to a special view of the current template displayed to give you an idea of how the actual message will look when delivered. More information on what the preview displays is available in the content of the help tab on the preview page.',
30
+			'event_espresso'
31
+		),
32
+		'<strong>',
33
+		'</strong>'
34
+	); ?>
35 35
 </p>
36 36
 <p><strong><?php esc_html_e('3. Template Form Fields', 'event_espresso'); ?></strong></p>
37 37
 <p>
38 38
     <?php echo $img3; ?><?php esc_html_e(
39
-        'The middle area of the page is dedicated to all the fields related to the message template. These fields are dynamic in the sense that different messengers may require different fields (and sometimes different message types will add or subtract fields as well.',
40
-        'event_espresso'
41
-    ); ?></p>
39
+		'The middle area of the page is dedicated to all the fields related to the message template. These fields are dynamic in the sense that different messengers may require different fields (and sometimes different message types will add or subtract fields as well.',
40
+		'event_espresso'
41
+	); ?></p>
42 42
 <p>
43 43
     <?php printf(
44
-        esc_html__(
45
-            'When editing a "Email Payment Template", you will notice that there is a field labelled "Event List" along with "Main Content". The Event List field is a special field that holds the template for whenever the %1$s[EVENT_LIST]%2$s shortcode is used in the "Main Content" field. This is so you can more finely control how each "event" in the event list displays when shown in the Main content. The "Email Registration Template", has an additional field called "Registration List". It functions much the same except that the contents of the "Registration List" field are used to indicate how each registrant is listed in the Main Content when the %1$s[ATTENDEE_LIST]%2$s shortcode is parsed.',
46
-            'event_espresso'
47
-        ),
48
-        '<strong>',
49
-        '</strong>'
50
-    ); ?></p>
44
+		esc_html__(
45
+			'When editing a "Email Payment Template", you will notice that there is a field labelled "Event List" along with "Main Content". The Event List field is a special field that holds the template for whenever the %1$s[EVENT_LIST]%2$s shortcode is used in the "Main Content" field. This is so you can more finely control how each "event" in the event list displays when shown in the Main content. The "Email Registration Template", has an additional field called "Registration List". It functions much the same except that the contents of the "Registration List" field are used to indicate how each registrant is listed in the Main Content when the %1$s[ATTENDEE_LIST]%2$s shortcode is parsed.',
46
+			'event_espresso'
47
+		),
48
+		'<strong>',
49
+		'</strong>'
50
+	); ?></p>
51 51
 <div style="clear:both"></div>
52 52
 <p><strong><?php esc_html_e('4. Valid Shortcodes Metabox', 'event_espresso'); ?></strong></p>
53 53
 <p>
54 54
     <?php echo $img4; ?><?php esc_html_e(
55
-        'The "Valid Shortcodes" metabox contains a list of all the shortcodes that can be used for the displayed template. This list is dynamic and will vary between templates.',
56
-        'event_espresso'
57
-    ); ?>
55
+		'The "Valid Shortcodes" metabox contains a list of all the shortcodes that can be used for the displayed template. This list is dynamic and will vary between templates.',
56
+		'event_espresso'
57
+	); ?>
58 58
 </p>
59 59
 <p>
60 60
     <?php _e(
61
-        'This box is at a fixed height, but contents are scrollable. You can click the question mark to find out what the given shortcode will parse to when used in your template.',
62
-        'event_espresso'
63
-    ); ?></p>
61
+		'This box is at a fixed height, but contents are scrollable. You can click the question mark to find out what the given shortcode will parse to when used in your template.',
62
+		'event_espresso'
63
+	); ?></p>
64 64
 <p>
65 65
     <?php printf(
66
-        esc_html__(
67
-            '%sAn important note:%s The system has been designed so that when you save the template, checks will be performed on each field to make sure that only valid shortcodes (or values) are used within them.  You will get a warning box with clear instructions if you\'ve tried to use a particular shortcode in a field that does not support it.  Also, you\'ll want to try the Preview button if you\'ve made any changes to the template to see if the changes are as you expected!',
68
-            'event_espresso'
69
-        ),
70
-        '<strong>',
71
-        '</strong>'
72
-    ); ?>
66
+		esc_html__(
67
+			'%sAn important note:%s The system has been designed so that when you save the template, checks will be performed on each field to make sure that only valid shortcodes (or values) are used within them.  You will get a warning box with clear instructions if you\'ve tried to use a particular shortcode in a field that does not support it.  Also, you\'ll want to try the Preview button if you\'ve made any changes to the template to see if the changes are as you expected!',
68
+			'event_espresso'
69
+		),
70
+		'<strong>',
71
+		'</strong>'
72
+	); ?>
73 73
 </p>
74 74
 <div style="clear:both"></div>
75 75
 <p><strong><?php esc_html_e('5. Override All Custom', 'event_espresso'); ?></strong></p>
76 76
 <p>
77 77
     <?php echo $img5; ?>
78 78
     <?php printf(
79
-        esc_html__(
80
-            'When you are editing a template that is a global template (not a custom event template), you\'ll see an option in the Publish metabox in the right column labelled "Override all custom". When this option is selected, custom event templates for that %1$smessenger%2$s, %1$smessage type%2$s, and %1$scontext%2$s will be ignored and the global template will be used. Why would you want to do this? For this given example, you may want to be able to allow custom event templates to be able to modify the looks and content of what goes out to Primary Registrant but to never affect what the Event Administrator receives (as set by the global template).',
81
-            'event_espresso'
82
-        ),
83
-        '<em>',
84
-        '</em>'
85
-    ); ?>
79
+		esc_html__(
80
+			'When you are editing a template that is a global template (not a custom event template), you\'ll see an option in the Publish metabox in the right column labelled "Override all custom". When this option is selected, custom event templates for that %1$smessenger%2$s, %1$smessage type%2$s, and %1$scontext%2$s will be ignored and the global template will be used. Why would you want to do this? For this given example, you may want to be able to allow custom event templates to be able to modify the looks and content of what goes out to Primary Registrant but to never affect what the Event Administrator receives (as set by the global template).',
81
+			'event_espresso'
82
+		),
83
+		'<em>',
84
+		'</em>'
85
+	); ?>
86 86
 </p>
87 87
 <p>
88 88
     <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong><br/>
89 89
     <?php _e(
90
-        'Want to see a tour of this screen? Click on the Message Template Editor Tour button which appears on the right side of the page. <br />To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.',
91
-        'event_espresso'
92
-    ); ?>
90
+		'Want to see a tour of this screen? Click on the Message Template Editor Tour button which appears on the right side of the page. <br />To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.',
91
+		'event_espresso'
92
+	); ?>
93 93
 </p>
94 94
 <p>
95 95
     <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong><br/>
96 96
     <?php _e(
97
-        'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.',
98
-        'event_espresso'
99
-    ); ?>
97
+		'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.',
98
+		'event_espresso'
99
+	); ?>
100 100
 </p>
101 101
\ No newline at end of file
Please login to merge, or discard this patch.
messages/templates/ee_msg_message_templates_help_tab.template.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
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
-    ); ?></p>
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
+	); ?></p>
11 11
 <p>
12 12
     <?php esc_html_e(
13
-        '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.',
14
-        'event_espresso'
15
-    ); ?></p>
13
+		'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.',
14
+		'event_espresso'
15
+	); ?></p>
16 16
 <p>
17 17
     <?php esc_html_e(
18
-        '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").',
19
-        'event_espresso'
20
-    ); ?></p>
21 18
\ No newline at end of file
19
+		'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").',
20
+		'event_espresso'
21
+	); ?></p>
22 22
\ No newline at end of file
Please login to merge, or discard this patch.