Completed
Branch FET/check-in-components (54edf5)
by
unknown
17:10 queued 09:14
created
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.
admin_pages/messages/templates/ee_msg_admin_overview.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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"
Please login to merge, or discard this patch.
messages/templates/ee_msg_messages_settings_help_tab.template.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -3,56 +3,56 @@
 block discarded – undo
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
Please login to merge, or discard this patch.