Completed
Branch BUG/edit-answer-group-link-a11... (3f6b61)
by
unknown
17:42 queued 08:58
created
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.
admin_pages/messages/templates/ee_msg_messages_help_tab.template.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <h2><?php esc_html_e('What is the Event Espresso Messages System?', 'event_espresso'); ?></h2>
2 2
 <p>
3 3
     <?php printf(
4
-        esc_html__(
5
-            'The Event Espresso Messages system is a powerful framework that Event Espresso uses to prepare %1$smessages%2$s for different types of use (message types) and delivered by different %1$smessengers%2$s.',
6
-            'event_espresso'
7
-        ),
8
-        '<strong>',
9
-        '</strong>'
10
-    ); ?></p>
4
+		esc_html__(
5
+			'The Event Espresso Messages system is a powerful framework that Event Espresso uses to prepare %1$smessages%2$s for different types of use (message types) and delivered by different %1$smessengers%2$s.',
6
+			'event_espresso'
7
+		),
8
+		'<strong>',
9
+		'</strong>'
10
+	); ?></p>
11 11
 <p>
12 12
     <?php esc_html_e(
13
-        'We\'ve intentionally created this framework so that we have as much flexibility as possible for future ideas that we think of (or customers think of) for the kinds of messages that get sent out related to your events.',
14
-        'event_espresso'
15
-    ); ?></p>
16 13
\ No newline at end of file
14
+		'We\'ve intentionally created this framework so that we have as much flexibility as possible for future ideas that we think of (or customers think of) for the kinds of messages that get sent out related to your events.',
15
+		'event_espresso'
16
+	); ?></p>
17 17
\ No newline at end of file
Please login to merge, or discard this patch.
messages/templates/ee_msg_details_main_edit_meta_box.template.php 3 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@  discard block
 block discarded – undo
4 4
     <input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo $context; ?>"/>
5 5
     <!-- if this is not a global template then let's show the name and description fields -->
6 6
     <?php
7
-    if (! $MTP->is_global()) : ?>
7
+	if (! $MTP->is_global()) : ?>
8 8
         <div class="non-global-mtp-fields">
9 9
             <p>
10 10
                 <?php _e(
11
-                    'This is a custom template.  Custom Templates have an editable name and description to help you differentiate between templates.',
12
-                    'event_espresso'
13
-                ); ?>
11
+					'This is a custom template.  Custom Templates have an editable name and description to help you differentiate between templates.',
12
+					'event_espresso'
13
+				); ?>
14 14
             </p>
15 15
             <div id="titlediv">
16 16
                 <div id="titlewrap">
17 17
                     <label for="title" class="label-MTP_name" style="visibility:hidden">
18 18
                         <?php _e(
19
-                            'Message Template Name:',
20
-                            'event_espresso'
21
-                        ); ?></label>
19
+							'Message Template Name:',
20
+							'event_espresso'
21
+						); ?></label>
22 22
                     <input id="title" type="text" class="regular-text" name="ee_msg_non_global_fields[MTP_name]"
23 23
                            value="<?php echo $MTP->name(); ?>">
24 24
                 </div>
@@ -27,29 +27,29 @@  discard block
 block discarded – undo
27 27
                 <label for="ee-msg-non-global-fields-MTP_description" class="label-MTP_description"
28 28
                        style="visibility:hidden;">
29 29
                     <?php _e(
30
-                        'Message Template Description:',
31
-                        'event_espresso'
32
-                    ); ?></label>
30
+						'Message Template Description:',
31
+						'event_espresso'
32
+					); ?></label>
33 33
                 <textarea id="ee-msg-non-global-fields-MTP_description" class="large-text"
34 34
                           name="ee_msg_non_global_fields[MTP_description]"><?php echo $MTP->description(); ?></textarea>
35 35
             </p>
36 36
         </div>
37 37
     <?php
38
-    else :
39
-    ?>
38
+	else :
39
+	?>
40 40
         <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name(); ?>">
41 41
         <input type="hidden" name="ee_msg_non_global_fields[MTP_description]"
42 42
                value="<?php echo $MTP->description(); ?>">
43 43
     <?php endif; ?>
44 44
     <!-- we need to loop through the template_fields so we know our structure -->
45 45
     <?php
46
-    if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) {
47
-        echo $template_fields;
48
-    } else {
49
-        ?>
46
+	if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) {
47
+		echo $template_fields;
48
+	} else {
49
+		?>
50 50
         <p><?php _e('Something has gone wrong, there are no template fields to output.', 'event_espresso'); ?></p>
51 51
         <?php
52
-    }
52
+	}
53 53
 
54
-    ?>
54
+	?>
55 55
 </div> <!-- end #admin-primary-mbox-dv -->
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv">
2 2
 
3
-    <h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name . ' Custom Template' : ''; ?></h3>
3
+    <h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name.' Custom Template' : ''; ?></h3>
4 4
     <input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo $context; ?>"/>
5 5
     <!-- if this is not a global template then let's show the name and description fields -->
6 6
     <?php
7
-    if (! $MTP->is_global()) : ?>
7
+    if ( ! $MTP->is_global()) : ?>
8 8
         <div class="non-global-mtp-fields">
9 9
             <p>
10 10
                 <?php _e(
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,12 @@
 block discarded – undo
35 35
             </p>
36 36
         </div>
37 37
     <?php
38
-    else :
38
+    else {
39
+    	:
39 40
     ?>
40
-        <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name(); ?>">
41
+        <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name();
42
+    }
43
+    ?>">
41 44
         <input type="hidden" name="ee_msg_non_global_fields[MTP_description]"
42 45
                value="<?php echo $MTP->description(); ?>">
43 46
     <?php endif; ?>
Please login to merge, or discard this patch.
messages/templates/ee_msg_details_messenger_meta_box.template.php 3 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@
 block discarded – undo
1 1
 <div class="<?php echo $messenger; ?>-content">
2 2
     <?php
3
-    if (empty($inactive_message_types) && empty($active_message_types)) :
4
-        echo '<p>'
5
-             . __(
6
-                 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.',
7
-                 'event_espresso'
8
-             ) . '</p>';
9
-    else : ?>
3
+	if (empty($inactive_message_types) && empty($active_message_types)) :
4
+		echo '<p>'
5
+			 . __(
6
+				 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.',
7
+				 'event_espresso'
8
+			 ) . '</p>';
9
+	else : ?>
10 10
         <p class="inactive-on-message <?php echo $hide_on_message; ?>">
11 11
             <?php _e(
12
-                'Below are message types that are currently inactive with this messenger.  Drag them over to the messenger box to activate them.',
13
-                'event_espresso'
14
-            ); ?>
12
+				'Below are message types that are currently inactive with this messenger.  Drag them over to the messenger box to activate them.',
13
+				'event_espresso'
14
+			); ?>
15 15
         <p>
16 16
         <p class="inactive-off-message <?php echo $hide_off_message; ?>">
17 17
             <?php _e(
18
-                'This messenger is currently inactive.  Once the messenger is activated any inactive message types associated with the messenger will be shown here.',
19
-                'event_espresso'
20
-            ); ?>
18
+				'This messenger is currently inactive.  Once the messenger is activated any inactive message types associated with the messenger will be shown here.',
19
+				'event_espresso'
20
+			); ?>
21 21
         </p>
22 22
         <div<?php
23
-        if ($active) :
24
-            ?> id="inactive-message-types"<?php
25
-        endif; ?>
23
+		if ($active) :
24
+			?> id="inactive-message-types"<?php
25
+		endif; ?>
26 26
             class="inactive-message-types mt-tab-container ui-widget-content-ui-state-default <?php echo $hide_on_message; ?>">
27 27
             <ul class="messenger-activation">
28 28
                 <?php echo $inactive_message_types; ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
              . __(
6 6
                  'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.',
7 7
                  'event_espresso'
8
-             ) . '</p>';
8
+             ).'</p>';
9 9
     else : ?>
10 10
         <p class="inactive-on-message <?php echo $hide_on_message; ?>">
11 11
             <?php _e(
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,11 @@
 block discarded – undo
6 6
                  'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.',
7 7
                  'event_espresso'
8 8
              ) . '</p>';
9
-    else : ?>
10
-        <p class="inactive-on-message <?php echo $hide_on_message; ?>">
9
+    else {
10
+    	: ?>
11
+        <p class="inactive-on-message <?php echo $hide_on_message;
12
+    }
13
+    ?>">
11 14
             <?php _e(
12 15
                 'Below are message types that are currently inactive with this messenger.  Drag them over to the messenger box to activate them.',
13 16
                 'event_espresso'
Please login to merge, or discard this patch.
admin_pages/messages/templates/ee_msg_message_type_help_tab.template.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <h2><?php esc_html_e('What are Message Types?', 'event_espresso'); ?></h2>
2 2
 <p>
3 3
     <?php printf(
4
-        esc_html__(
5
-            'Message Types are the %1$skinds%2$s of messages that get delivered.  Think of them as the "type" of package that is being delivered by the messenger.  For example, Event Espresso comes with two Message Types attached to the Email messenger:  Registration Confirmation (which is triggered by frontend event registrations), and Payment Confirmation (which is triggered by frontend payments).',
6
-            'event_espresso'
7
-        ),
8
-        '<em>',
9
-        '</em>'
10
-    ); ?></p>
4
+		esc_html__(
5
+			'Message Types are the %1$skinds%2$s of messages that get delivered.  Think of them as the "type" of package that is being delivered by the messenger.  For example, Event Espresso comes with two Message Types attached to the Email messenger:  Registration Confirmation (which is triggered by frontend event registrations), and Payment Confirmation (which is triggered by frontend payments).',
6
+			'event_espresso'
7
+		),
8
+		'<em>',
9
+		'</em>'
10
+	); ?></p>
11 11
 <p>
12 12
     <?php esc_html_e(
13
-        'Future iterations of Event Espresso 4.0 (premium versions), will include more and more different message types that can be attached to the various messengers that are available',
14
-        'event_espresso'
15
-    ); ?></p>
13
+		'Future iterations of Event Espresso 4.0 (premium versions), will include more and more different message types that can be attached to the various messengers that are available',
14
+		'event_espresso'
15
+	); ?></p>
16 16
 
17 17
 <h3><?php esc_html_e('Contexts', 'event_espresso'); ?></h3>
18 18
 <p>
19 19
     <?php printf(
20
-        esc_html__(
21
-            'Each message type (or %1$skind%1$s of message remember!) has different contexts for messages created for that message type. Contexts are dynamic but generally speaking they tend to represent recipients. So for example, Registration Confirmation message type has three types of recipients for every time a registration confirmation is triggered: Event Administrator, Primary Registrant, and Registrant (which may be multiple messages if there are more than one attendee per event). Whereas the Payment Message Type only has two recipients (Event Administrator, Primary Registrant [the one making the payment]).',
22
-            'event_espresso'
23
-        ),
24
-        '<em>',
25
-        '</em>'
26
-    ); ?></p>
20
+		esc_html__(
21
+			'Each message type (or %1$skind%1$s of message remember!) has different contexts for messages created for that message type. Contexts are dynamic but generally speaking they tend to represent recipients. So for example, Registration Confirmation message type has three types of recipients for every time a registration confirmation is triggered: Event Administrator, Primary Registrant, and Registrant (which may be multiple messages if there are more than one attendee per event). Whereas the Payment Message Type only has two recipients (Event Administrator, Primary Registrant [the one making the payment]).',
22
+			'event_espresso'
23
+		),
24
+		'<em>',
25
+		'</em>'
26
+	); ?></p>
27 27
 <p>
28 28
     <?php esc_html_e(
29
-        'You will most likely never see the word "context" in any of the Messages system labelling because they are dynamic per message type.  Usually, contexts will be labelled "Recipients" but there may be cases down the road where a message type might use contexts to represent something totally different',
30
-        'event_espresso'
31
-    ); ?></p>
32 29
\ No newline at end of file
30
+		'You will most likely never see the word "context" in any of the Messages system labelling because they are dynamic per message type.  Usually, contexts will be labelled "Recipients" but there may be cases down the road where a message type might use contexts to represent something totally different',
31
+		'event_espresso'
32
+	); ?></p>
33 33
\ No newline at end of file
Please login to merge, or discard this patch.