Completed
Branch FET/reg-form-builder/main (b41a02)
by
unknown
04:58 queued 02:30
created
admin_pages/messages/help_tours/Message_Templates_Edit_Help_Tour.class.php 2 patches
Indentation   +133 added lines, -133 removed lines patch added patch discarded remove patch
@@ -15,137 +15,137 @@
 block discarded – undo
15 15
 class Message_Templates_Edit_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Message Template Editor Tour', 'event_espresso');
21
-        $this->_slug = 'messages-templates-edit-joyride';
22
-    }
23
-
24
-
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'submit-msg-context-switcher-sbmt',
33
-                'content' => $this->_context_switcher_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'bottom',
36
-                    'tipAdjustmentY' => -30,
37
-                    'tipAdjustmentX' => -60,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'class'   => 'messages-preview-button"',
42
-                'content' => $this->_preview_button_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'bottom',
45
-                    'tipAdjustmentY' => -30,
46
-                ),
47
-            ),
48
-            40 => array(
49
-                'content' => $this->_template_area_stop(),
50
-                'options' => array(
51
-                    'tipAdjustmentY' => -100,
52
-                    'tipAdjustmentX' => -60,
53
-                ),
54
-            ),
55
-            50 => array(
56
-                'id'      => 'mtp_valid_shortcodes',
57
-                'content' => $this->_mtp_valid_shortcodes_stop(),
58
-                'options' => array(
59
-                    'tipLocation'    => 'left',
60
-                    'tipAdjustmentY' => -50,
61
-                    'tipAdjustmentX' => -15,
62
-                ),
63
-            ),
64
-            60 => array(
65
-                'id'      => 'mtp_extra_actions',
66
-                'content' => $this->_mtp_extra_actions_stop(),
67
-                'options' => array(
68
-                    'tipLocation'    => 'left',
69
-                    'tipAdjustmentY' => -50,
70
-                    'tipAdjustmentX' => -15,
71
-                ),
72
-            ),
73
-            70 => array(
74
-                'id'      => 'espresso_espresso_messages_editor_overview',
75
-                'content' => $this->_update_metabox_stop(),
76
-                'options' => array(
77
-                    'tipLocation'    => 'left',
78
-                    'tipAdjustmentY' => -50,
79
-                    'tipAdjustmentX' => -15,
80
-                ),
81
-            ),
82
-        );
83
-    }
84
-
85
-
86
-    protected function _start()
87
-    {
88
-        $content = '<h3>' . __('Message Template Editor', 'event_espresso') . '</h3>';
89
-        $content .= '<p>'
90
-                    . __(
91
-                        'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.',
92
-                        'event_espresso'
93
-                    ) . '</p>';
94
-        return $content;
95
-    }
96
-
97
-
98
-    protected function _context_switcher_stop()
99
-    {
100
-        return '<p>'
101
-               . __(
102
-                   'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.',
103
-                   'event_espresso'
104
-               ) . '</p>';
105
-    }
106
-
107
-
108
-    protected function _preview_button_stop()
109
-    {
110
-        return '<p>'
111
-               . __(
112
-                   'Clicking this button will show you a preview of how your message will look.',
113
-                   'event_espresso'
114
-               ) . '</p>';
115
-    }
116
-
117
-
118
-    protected function _template_area_stop()
119
-    {
120
-        return '<p>'
121
-               . __(
122
-                   'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.',
123
-                   'event_espresso'
124
-               ) . '</p>';
125
-    }
126
-
127
-    protected function _mtp_valid_shortcodes_stop()
128
-    {
129
-        return '<p>'
130
-               . __(
131
-                   'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.',
132
-                   'event_espresso'
133
-               ) . '</p>';
134
-    }
135
-
136
-
137
-    protected function _mtp_extra_actions_stop()
138
-    {
139
-        return '<p>'
140
-               . __(
141
-                   'Here you will find miscellaneous options to assist you, including a test send button and a reset button.',
142
-                   'event_espresso'
143
-               ) . '</p>';
144
-    }
145
-
146
-
147
-    protected function _update_metabox_stop()
148
-    {
149
-        return '<p>' . __('When done creating your message, click here to save it.', 'event_espresso') . '</p>';
150
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Message Template Editor Tour', 'event_espresso');
21
+		$this->_slug = 'messages-templates-edit-joyride';
22
+	}
23
+
24
+
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'submit-msg-context-switcher-sbmt',
33
+				'content' => $this->_context_switcher_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'bottom',
36
+					'tipAdjustmentY' => -30,
37
+					'tipAdjustmentX' => -60,
38
+				),
39
+			),
40
+			30 => array(
41
+				'class'   => 'messages-preview-button"',
42
+				'content' => $this->_preview_button_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'bottom',
45
+					'tipAdjustmentY' => -30,
46
+				),
47
+			),
48
+			40 => array(
49
+				'content' => $this->_template_area_stop(),
50
+				'options' => array(
51
+					'tipAdjustmentY' => -100,
52
+					'tipAdjustmentX' => -60,
53
+				),
54
+			),
55
+			50 => array(
56
+				'id'      => 'mtp_valid_shortcodes',
57
+				'content' => $this->_mtp_valid_shortcodes_stop(),
58
+				'options' => array(
59
+					'tipLocation'    => 'left',
60
+					'tipAdjustmentY' => -50,
61
+					'tipAdjustmentX' => -15,
62
+				),
63
+			),
64
+			60 => array(
65
+				'id'      => 'mtp_extra_actions',
66
+				'content' => $this->_mtp_extra_actions_stop(),
67
+				'options' => array(
68
+					'tipLocation'    => 'left',
69
+					'tipAdjustmentY' => -50,
70
+					'tipAdjustmentX' => -15,
71
+				),
72
+			),
73
+			70 => array(
74
+				'id'      => 'espresso_espresso_messages_editor_overview',
75
+				'content' => $this->_update_metabox_stop(),
76
+				'options' => array(
77
+					'tipLocation'    => 'left',
78
+					'tipAdjustmentY' => -50,
79
+					'tipAdjustmentX' => -15,
80
+				),
81
+			),
82
+		);
83
+	}
84
+
85
+
86
+	protected function _start()
87
+	{
88
+		$content = '<h3>' . __('Message Template Editor', 'event_espresso') . '</h3>';
89
+		$content .= '<p>'
90
+					. __(
91
+						'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.',
92
+						'event_espresso'
93
+					) . '</p>';
94
+		return $content;
95
+	}
96
+
97
+
98
+	protected function _context_switcher_stop()
99
+	{
100
+		return '<p>'
101
+			   . __(
102
+				   'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.',
103
+				   'event_espresso'
104
+			   ) . '</p>';
105
+	}
106
+
107
+
108
+	protected function _preview_button_stop()
109
+	{
110
+		return '<p>'
111
+			   . __(
112
+				   'Clicking this button will show you a preview of how your message will look.',
113
+				   'event_espresso'
114
+			   ) . '</p>';
115
+	}
116
+
117
+
118
+	protected function _template_area_stop()
119
+	{
120
+		return '<p>'
121
+			   . __(
122
+				   'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.',
123
+				   'event_espresso'
124
+			   ) . '</p>';
125
+	}
126
+
127
+	protected function _mtp_valid_shortcodes_stop()
128
+	{
129
+		return '<p>'
130
+			   . __(
131
+				   'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.',
132
+				   'event_espresso'
133
+			   ) . '</p>';
134
+	}
135
+
136
+
137
+	protected function _mtp_extra_actions_stop()
138
+	{
139
+		return '<p>'
140
+			   . __(
141
+				   'Here you will find miscellaneous options to assist you, including a test send button and a reset button.',
142
+				   'event_espresso'
143
+			   ) . '</p>';
144
+	}
145
+
146
+
147
+	protected function _update_metabox_stop()
148
+	{
149
+		return '<p>' . __('When done creating your message, click here to save it.', 'event_espresso') . '</p>';
150
+	}
151 151
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
 
86 86
     protected function _start()
87 87
     {
88
-        $content = '<h3>' . __('Message Template Editor', 'event_espresso') . '</h3>';
88
+        $content = '<h3>'.__('Message Template Editor', 'event_espresso').'</h3>';
89 89
         $content .= '<p>'
90 90
                     . __(
91 91
                         'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.',
92 92
                         'event_espresso'
93
-                    ) . '</p>';
93
+                    ).'</p>';
94 94
         return $content;
95 95
     }
96 96
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                . __(
102 102
                    'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.',
103 103
                    'event_espresso'
104
-               ) . '</p>';
104
+               ).'</p>';
105 105
     }
106 106
 
107 107
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                . __(
112 112
                    'Clicking this button will show you a preview of how your message will look.',
113 113
                    'event_espresso'
114
-               ) . '</p>';
114
+               ).'</p>';
115 115
     }
116 116
 
117 117
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                . __(
122 122
                    'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.',
123 123
                    'event_espresso'
124
-               ) . '</p>';
124
+               ).'</p>';
125 125
     }
126 126
 
127 127
     protected function _mtp_valid_shortcodes_stop()
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                . __(
131 131
                    'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.',
132 132
                    'event_espresso'
133
-               ) . '</p>';
133
+               ).'</p>';
134 134
     }
135 135
 
136 136
 
@@ -140,12 +140,12 @@  discard block
 block discarded – undo
140 140
                . __(
141 141
                    'Here you will find miscellaneous options to assist you, including a test send button and a reset button.',
142 142
                    'event_espresso'
143
-               ) . '</p>';
143
+               ).'</p>';
144 144
     }
145 145
 
146 146
 
147 147
     protected function _update_metabox_stop()
148 148
     {
149
-        return '<p>' . __('When done creating your message, click here to save it.', 'event_espresso') . '</p>';
149
+        return '<p>'.__('When done creating your message, click here to save it.', 'event_espresso').'</p>';
150 150
     }
151 151
 }
Please login to merge, or discard this patch.
admin_pages/messages/help_tours/Messages_Settings_Help_Tour.class.php 2 patches
Indentation   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -15,112 +15,112 @@
 block discarded – undo
15 15
 class Messages_Settings_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Messages Settings Tour', 'event_espresso');
21
-        $this->_slug = 'messages-settings-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Messages Settings Tour', 'event_espresso');
21
+		$this->_slug = 'messages-settings-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'class'   => 'messenger_links',
33
-                'content' => $this->_messenger_links_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'bottom',
36
-                    'tipAdjustmentX' => -5,
37
-                    'tipAdjustmentY' => -25,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'espresso_email_settings',
42
-                'content' => $this->_email_settings_metabox_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentX' => 20,
46
-                    'tipAdjustmentY' => -30,
47
-                ),
48
-            ),
49
-            40 => array(
50
-                'id'      => 'on-off-email',
51
-                'content' => $this->_on_off_toggle_stop(),
52
-                'options' => array(
53
-                    'tipLocation'    => 'left',
54
-                    'tipAdjustmentY' => -50,
55
-                    'tipAdjustmentX' => -15,
56
-                ),
57
-            ),
58
-            50 => array(
59
-                'id'      => 'active-message-types',
60
-                'content' => $this->_active_mts_container_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'top',
63
-                    'tipAdjustmentY' => -30,
64
-                ),
65
-            ),
66
-            60 => array(
67
-                'id'      => 'inactive-message-types',
68
-                'content' => $this->_inactive_mts_container_stop(),
69
-                'options' => array(
70
-                    'tipLocation'    => 'left',
71
-                    'tipAdjustmentY' => -50,
72
-                    'tipAdjustmentX' => -15,
73
-                ),
74
-            ),
75
-        );
76
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'class'   => 'messenger_links',
33
+				'content' => $this->_messenger_links_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'bottom',
36
+					'tipAdjustmentX' => -5,
37
+					'tipAdjustmentY' => -25,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'espresso_email_settings',
42
+				'content' => $this->_email_settings_metabox_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentX' => 20,
46
+					'tipAdjustmentY' => -30,
47
+				),
48
+			),
49
+			40 => array(
50
+				'id'      => 'on-off-email',
51
+				'content' => $this->_on_off_toggle_stop(),
52
+				'options' => array(
53
+					'tipLocation'    => 'left',
54
+					'tipAdjustmentY' => -50,
55
+					'tipAdjustmentX' => -15,
56
+				),
57
+			),
58
+			50 => array(
59
+				'id'      => 'active-message-types',
60
+				'content' => $this->_active_mts_container_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'top',
63
+					'tipAdjustmentY' => -30,
64
+				),
65
+			),
66
+			60 => array(
67
+				'id'      => 'inactive-message-types',
68
+				'content' => $this->_inactive_mts_container_stop(),
69
+				'options' => array(
70
+					'tipLocation'    => 'left',
71
+					'tipAdjustmentY' => -50,
72
+					'tipAdjustmentX' => -15,
73
+				),
74
+			),
75
+		);
76
+	}
77 77
 
78 78
 
79
-    protected function _start()
80
-    {
81
-        $content = '<h3>' . __('Messages Settings', 'event_espresso') . '</h3>';
82
-        $content .= '<p>'
83
-                    . __(
84
-                        'This tour of the Messages Settings page will go over different areas of the screen to help you understand what they are used for.',
85
-                        'event_espresso'
86
-                    ) . '</p>';
87
-        return $content;
88
-    }
79
+	protected function _start()
80
+	{
81
+		$content = '<h3>' . __('Messages Settings', 'event_espresso') . '</h3>';
82
+		$content .= '<p>'
83
+					. __(
84
+						'This tour of the Messages Settings page will go over different areas of the screen to help you understand what they are used for.',
85
+						'event_espresso'
86
+					) . '</p>';
87
+		return $content;
88
+	}
89 89
 
90
-    protected function _messenger_links_stop()
91
-    {
92
-        return '<p>' . __('Available messengers are shown above.', 'event_espresso') . '</p>';
93
-    }
90
+	protected function _messenger_links_stop()
91
+	{
92
+		return '<p>' . __('Available messengers are shown above.', 'event_espresso') . '</p>';
93
+	}
94 94
 
95
-    protected function _email_settings_metabox_stop()
96
-    {
97
-        return '<p>' . __('View the different message types that are currently active.', 'event_espresso') . '</p>';
98
-    }
95
+	protected function _email_settings_metabox_stop()
96
+	{
97
+		return '<p>' . __('View the different message types that are currently active.', 'event_espresso') . '</p>';
98
+	}
99 99
 
100
-    protected function _on_off_toggle_stop()
101
-    {
102
-        return '<p>'
103
-               . __(
104
-                   'This toggle will turn all messages on or off for this message type.',
105
-                   'event_espresso'
106
-               ) . '</p>';
107
-    }
100
+	protected function _on_off_toggle_stop()
101
+	{
102
+		return '<p>'
103
+			   . __(
104
+				   'This toggle will turn all messages on or off for this message type.',
105
+				   'event_espresso'
106
+			   ) . '</p>';
107
+	}
108 108
 
109
-    protected function _active_mts_container_stop()
110
-    {
111
-        return '<p>'
112
-               . __(
113
-                   'These are your active message types. Click them to see a description and settings for each one.',
114
-                   'event_espresso'
115
-               ) . '</p>';
116
-    }
109
+	protected function _active_mts_container_stop()
110
+	{
111
+		return '<p>'
112
+			   . __(
113
+				   'These are your active message types. Click them to see a description and settings for each one.',
114
+				   'event_espresso'
115
+			   ) . '</p>';
116
+	}
117 117
 
118
-    protected function _inactive_mts_container_stop()
119
-    {
120
-        return '<p>'
121
-               . __(
122
-                   'Drag message types here to deactivate them. Drag them from here to the active box to reactivate them.',
123
-                   'event_espresso'
124
-               ) . '</p>';
125
-    }
118
+	protected function _inactive_mts_container_stop()
119
+	{
120
+		return '<p>'
121
+			   . __(
122
+				   'Drag message types here to deactivate them. Drag them from here to the active box to reactivate them.',
123
+				   'event_espresso'
124
+			   ) . '</p>';
125
+	}
126 126
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -78,23 +78,23 @@  discard block
 block discarded – undo
78 78
 
79 79
     protected function _start()
80 80
     {
81
-        $content = '<h3>' . __('Messages Settings', 'event_espresso') . '</h3>';
81
+        $content = '<h3>'.__('Messages Settings', 'event_espresso').'</h3>';
82 82
         $content .= '<p>'
83 83
                     . __(
84 84
                         'This tour of the Messages Settings page will go over different areas of the screen to help you understand what they are used for.',
85 85
                         'event_espresso'
86
-                    ) . '</p>';
86
+                    ).'</p>';
87 87
         return $content;
88 88
     }
89 89
 
90 90
     protected function _messenger_links_stop()
91 91
     {
92
-        return '<p>' . __('Available messengers are shown above.', 'event_espresso') . '</p>';
92
+        return '<p>'.__('Available messengers are shown above.', 'event_espresso').'</p>';
93 93
     }
94 94
 
95 95
     protected function _email_settings_metabox_stop()
96 96
     {
97
-        return '<p>' . __('View the different message types that are currently active.', 'event_espresso') . '</p>';
97
+        return '<p>'.__('View the different message types that are currently active.', 'event_espresso').'</p>';
98 98
     }
99 99
 
100 100
     protected function _on_off_toggle_stop()
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                . __(
104 104
                    'This toggle will turn all messages on or off for this message type.',
105 105
                    'event_espresso'
106
-               ) . '</p>';
106
+               ).'</p>';
107 107
     }
108 108
 
109 109
     protected function _active_mts_container_stop()
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                . __(
113 113
                    'These are your active message types. Click them to see a description and settings for each one.',
114 114
                    'event_espresso'
115
-               ) . '</p>';
115
+               ).'</p>';
116 116
     }
117 117
 
118 118
     protected function _inactive_mts_container_stop()
@@ -121,6 +121,6 @@  discard block
 block discarded – undo
121 121
                . __(
122 122
                    'Drag message types here to deactivate them. Drag them from here to the active box to reactivate them.',
123 123
                    'event_espresso'
124
-               ) . '</p>';
124
+               ).'</p>';
125 125
     }
126 126
 }
Please login to merge, or discard this patch.
admin_pages/messages/help_tours/Messages_Overview_Help_Tour.class.php 2 patches
Indentation   +117 added lines, -117 removed lines patch added patch discarded remove patch
@@ -15,131 +15,131 @@
 block discarded – undo
15 15
 class Messages_Overview_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = __('Messages Overview Tour', 'event_espresso');
21
-        $this->_slug = 'messages-overview-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = __('Messages Overview Tour', 'event_espresso');
21
+		$this->_slug = 'messages-overview-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'event',
33
-                'content' => $this->event_column_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentX' => -5,
37
-                    'tipAdjustmentY' => -30,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'message_type',
42
-                'content' => $this->_message_type_column_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentX' => 20,
46
-                    'tipAdjustmentY' => -30,
47
-                ),
48
-            ),
49
-            40 => array(
50
-                'id'      => 'messenger',
51
-                'content' => $this->_messenger_column_stop(),
52
-                'options' => array(
53
-                    'tipLocation'    => 'top',
54
-                    'tipAdjustmentX' => 5,
55
-                    'tipAdjustmentY' => -30,
56
-                ),
57
-            ),
58
-            50 => array(
59
-                'id'      => 'description',
60
-                'content' => $this->_description_column_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'top',
63
-                    'tipAdjustmentX' => 5,
64
-                    'tipAdjustmentY' => -30,
65
-                ),
66
-            ),
67
-            60 => array(
68
-                'class'   => 'bulkactions',
69
-                'content' => $this->_bulk_actions_stop(),
70
-                'options' => array(
71
-                    'tipLocation'    => 'top',
72
-                    'tipAdjustmentX' => 25,
73
-                    'tipAdjustmentY' => -35,
74
-                ),
75
-            ),
76
-            70 => array(
77
-                'id'      => 'ee_messenger_filter_by',
78
-                'content' => $this->_filters_stop(),
79
-                'options' => array(
80
-                    'tipLocation'    => 'top',
81
-                    'tipAdjustmentX' => 25,
82
-                    'tipAdjustmentY' => -30,
83
-                ),
84
-            ),
85
-        );
86
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'event',
33
+				'content' => $this->event_column_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentX' => -5,
37
+					'tipAdjustmentY' => -30,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'message_type',
42
+				'content' => $this->_message_type_column_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentX' => 20,
46
+					'tipAdjustmentY' => -30,
47
+				),
48
+			),
49
+			40 => array(
50
+				'id'      => 'messenger',
51
+				'content' => $this->_messenger_column_stop(),
52
+				'options' => array(
53
+					'tipLocation'    => 'top',
54
+					'tipAdjustmentX' => 5,
55
+					'tipAdjustmentY' => -30,
56
+				),
57
+			),
58
+			50 => array(
59
+				'id'      => 'description',
60
+				'content' => $this->_description_column_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'top',
63
+					'tipAdjustmentX' => 5,
64
+					'tipAdjustmentY' => -30,
65
+				),
66
+			),
67
+			60 => array(
68
+				'class'   => 'bulkactions',
69
+				'content' => $this->_bulk_actions_stop(),
70
+				'options' => array(
71
+					'tipLocation'    => 'top',
72
+					'tipAdjustmentX' => 25,
73
+					'tipAdjustmentY' => -35,
74
+				),
75
+			),
76
+			70 => array(
77
+				'id'      => 'ee_messenger_filter_by',
78
+				'content' => $this->_filters_stop(),
79
+				'options' => array(
80
+					'tipLocation'    => 'top',
81
+					'tipAdjustmentX' => 25,
82
+					'tipAdjustmentY' => -30,
83
+				),
84
+			),
85
+		);
86
+	}
87 87
 
88 88
 
89
-    protected function _start()
90
-    {
91
-        $content = '<h3>' . __('Messages Overview', 'event_espresso') . '</h3>';
92
-        $content .= '<p>'
93
-                    . __(
94
-                        'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.',
95
-                        'event_espresso'
96
-                    ) . '</p>';
97
-        return $content;
98
-    }
89
+	protected function _start()
90
+	{
91
+		$content = '<h3>' . __('Messages Overview', 'event_espresso') . '</h3>';
92
+		$content .= '<p>'
93
+					. __(
94
+						'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.',
95
+						'event_espresso'
96
+					) . '</p>';
97
+		return $content;
98
+	}
99 99
 
100
-    protected function event_column_stop()
101
-    {
102
-        return '<p>'
103
-               . __(
104
-                   'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.',
105
-                   'event_espresso'
106
-               ) . '</p>';
107
-    }
100
+	protected function event_column_stop()
101
+	{
102
+		return '<p>'
103
+			   . __(
104
+				   'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.',
105
+				   'event_espresso'
106
+			   ) . '</p>';
107
+	}
108 108
 
109
-    protected function _message_type_column_stop()
110
-    {
111
-        return '<p>'
112
-               . __(
113
-                   'View the type of message. Can be sorted in ascending or descending order.',
114
-                   'event_espresso'
115
-               ) . '</p>';
116
-    }
109
+	protected function _message_type_column_stop()
110
+	{
111
+		return '<p>'
112
+			   . __(
113
+				   'View the type of message. Can be sorted in ascending or descending order.',
114
+				   'event_espresso'
115
+			   ) . '</p>';
116
+	}
117 117
 
118
-    protected function _messenger_column_stop()
119
-    {
120
-        return '<p>'
121
-               . __(
122
-                   'View who messages will be sent to. Can be sorted in ascending or descending order.',
123
-                   'event_espresso'
124
-               ) . '</p>';
125
-    }
118
+	protected function _messenger_column_stop()
119
+	{
120
+		return '<p>'
121
+			   . __(
122
+				   'View who messages will be sent to. Can be sorted in ascending or descending order.',
123
+				   'event_espresso'
124
+			   ) . '</p>';
125
+	}
126 126
 
127
-    protected function _description_column_stop()
128
-    {
129
-        return '<p>' . __('View the description for each message type.', 'event_espresso') . '</p>';
130
-    }
127
+	protected function _description_column_stop()
128
+	{
129
+		return '<p>' . __('View the description for each message type.', 'event_espresso') . '</p>';
130
+	}
131 131
 
132
-    protected function _bulk_actions_stop()
133
-    {
134
-        return '<p>' . __('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>';
135
-    }
132
+	protected function _bulk_actions_stop()
133
+	{
134
+		return '<p>' . __('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>';
135
+	}
136 136
 
137
-    protected function _filters_stop()
138
-    {
139
-        return '<p>'
140
-               . __(
141
-                   'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.',
142
-                   'event_espresso'
143
-               ) . '</p>';
144
-    }
137
+	protected function _filters_stop()
138
+	{
139
+		return '<p>'
140
+			   . __(
141
+				   'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.',
142
+				   'event_espresso'
143
+			   ) . '</p>';
144
+	}
145 145
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
 
89 89
     protected function _start()
90 90
     {
91
-        $content = '<h3>' . __('Messages Overview', 'event_espresso') . '</h3>';
91
+        $content = '<h3>'.__('Messages Overview', 'event_espresso').'</h3>';
92 92
         $content .= '<p>'
93 93
                     . __(
94 94
                         'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.',
95 95
                         'event_espresso'
96
-                    ) . '</p>';
96
+                    ).'</p>';
97 97
         return $content;
98 98
     }
99 99
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                . __(
104 104
                    'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.',
105 105
                    'event_espresso'
106
-               ) . '</p>';
106
+               ).'</p>';
107 107
     }
108 108
 
109 109
     protected function _message_type_column_stop()
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                . __(
113 113
                    'View the type of message. Can be sorted in ascending or descending order.',
114 114
                    'event_espresso'
115
-               ) . '</p>';
115
+               ).'</p>';
116 116
     }
117 117
 
118 118
     protected function _messenger_column_stop()
@@ -121,17 +121,17 @@  discard block
 block discarded – undo
121 121
                . __(
122 122
                    'View who messages will be sent to. Can be sorted in ascending or descending order.',
123 123
                    'event_espresso'
124
-               ) . '</p>';
124
+               ).'</p>';
125 125
     }
126 126
 
127 127
     protected function _description_column_stop()
128 128
     {
129
-        return '<p>' . __('View the description for each message type.', 'event_espresso') . '</p>';
129
+        return '<p>'.__('View the description for each message type.', 'event_espresso').'</p>';
130 130
     }
131 131
 
132 132
     protected function _bulk_actions_stop()
133 133
     {
134
-        return '<p>' . __('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>';
134
+        return '<p>'.__('Perform bulk actions to multiple message types.', 'event_espresso').'</p>';
135 135
     }
136 136
 
137 137
     protected function _filters_stop()
@@ -140,6 +140,6 @@  discard block
 block discarded – undo
140 140
                . __(
141 141
                    'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.',
142 142
                    'event_espresso'
143
-               ) . '</p>';
143
+               ).'</p>';
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
admin_pages/support/Support_Admin_Page_Init.core.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -16,36 +16,36 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
 
19
-    public function __construct()
20
-    {
21
-        // define some help/support page related constants
22
-        define('EE_SUPPORT_PG_SLUG', 'espresso_support');
23
-        define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG));
24
-        define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/');
25
-        define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/');
26
-        define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/');
27
-        parent::__construct();
28
-    }
19
+	public function __construct()
20
+	{
21
+		// define some help/support page related constants
22
+		define('EE_SUPPORT_PG_SLUG', 'espresso_support');
23
+		define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG));
24
+		define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/');
25
+		define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/');
26
+		define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/');
27
+		parent::__construct();
28
+	}
29 29
 
30
-    protected function _set_init_properties()
31
-    {
32
-        $this->label = __('Help & Support', 'event_espresso');
33
-    }
30
+	protected function _set_init_properties()
31
+	{
32
+		$this->label = __('Help & Support', 'event_espresso');
33
+	}
34 34
 
35
-    protected function _set_menu_map()
36
-    {
37
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
38
-            array(
39
-                'menu_group'              => 'extras',
40
-                'menu_order'              => 30,
41
-                'show_on_menu'            => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN,
42
-                'parent_slug'             => 'espresso_events',
43
-                'menu_slug'               => EE_SUPPORT_PG_SLUG,
44
-                'menu_label'              => __('Help & Support', 'event_espresso'),
45
-                'capability'              => 'ee_read_ee',
46
-                'maintenance_mode_parent' => 'espresso_maintenance_settings',
47
-                'admin_init_page'         => $this,
48
-            )
49
-        );
50
-    }
35
+	protected function _set_menu_map()
36
+	{
37
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
38
+			array(
39
+				'menu_group'              => 'extras',
40
+				'menu_order'              => 30,
41
+				'show_on_menu'            => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN,
42
+				'parent_slug'             => 'espresso_events',
43
+				'menu_slug'               => EE_SUPPORT_PG_SLUG,
44
+				'menu_label'              => __('Help & Support', 'event_espresso'),
45
+				'capability'              => 'ee_read_ee',
46
+				'maintenance_mode_parent' => 'espresso_maintenance_settings',
47
+				'admin_init_page'         => $this,
48
+			)
49
+		);
50
+	}
51 51
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
     {
21 21
         // define some help/support page related constants
22 22
         define('EE_SUPPORT_PG_SLUG', 'espresso_support');
23
-        define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG));
24
-        define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/');
25
-        define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/');
26
-        define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/');
23
+        define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page='.EE_SUPPORT_PG_SLUG));
24
+        define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'support/templates/');
25
+        define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES.'support/');
26
+        define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL.'support/assets/');
27 27
         parent::__construct();
28 28
     }
29 29
 
Please login to merge, or discard this patch.
admin_pages/support/Support_Admin_Page.core.php 2 patches
Indentation   +238 added lines, -238 removed lines patch added patch discarded remove patch
@@ -13,242 +13,242 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
 
16
-    protected function _init_page_props()
17
-    {
18
-        $this->page_slug = EE_SUPPORT_PG_SLUG;
19
-        $this->page_label = esc_html__('Help & Support', 'event_espresso');
20
-        $this->_admin_base_url = EE_SUPPORT_ADMIN_URL;
21
-        $this->_admin_base_path = EE_SUPPORT_ADMIN;
22
-    }
23
-
24
-
25
-    protected function _ajax_hooks()
26
-    {
27
-    }
28
-
29
-
30
-    protected function _define_page_props()
31
-    {
32
-        $this->_labels = array();
33
-        $this->_admin_page_title = $this->page_label;
34
-    }
35
-
36
-
37
-    protected function _set_page_routes()
38
-    {
39
-        $this->_page_routes = array(
40
-            'default'    => array(
41
-                'func'       => '_contact_support',
42
-                'capability' => 'ee_read_ee',
43
-            ),
44
-            'developers' => array(
45
-                'func'       => '_developers',
46
-                'capability' => 'ee_read_ee',
47
-            ),
48
-            'shortcodes' => array(
49
-                'func'       => '_shortcodes',
50
-                'capability' => 'ee_read_ee',
51
-            ),
52
-        );
53
-    }
54
-
55
-
56
-    protected function _set_page_config()
57
-    {
58
-        $this->_page_config = array(
59
-            'default'    => array(
60
-                'nav'           => array(
61
-                    'label' => esc_html__('Support', 'event_espresso'),
62
-                    'order' => 30,
63
-                ),
64
-                'metaboxes'     => array_merge($this->_default_espresso_metaboxes, array('_support_boxes')),
65
-                'require_nonce' => false,
66
-            ),
67
-            'developers' => array(
68
-                'nav'           => array(
69
-                    'label' => esc_html__('Developers', 'event_espresso'),
70
-                    'order' => 50,
71
-                ),
72
-                'metaboxes'     => $this->_default_espresso_metaboxes,
73
-                'require_nonce' => false,
74
-            ),
75
-            'shortcodes' => array(
76
-                'nav'           => array(
77
-                    'label' => esc_html__('Shortcodes', 'event_espresso'),
78
-                    'order' => 60,
79
-                ),
80
-                'metaboxes'     => array_merge($this->_default_espresso_metaboxes, array('_shortcodes_boxes')),
81
-                'require_nonce' => false,
82
-            ),
83
-        );
84
-    }
85
-
86
-
87
-    // none of the below group are currently used for Support pages
88
-    protected function _add_screen_options()
89
-    {
90
-    }
91
-
92
-
93
-    protected function _add_feature_pointers()
94
-    {
95
-    }
96
-
97
-
98
-    public function admin_init()
99
-    {
100
-    }
101
-
102
-
103
-    public function admin_notices()
104
-    {
105
-    }
106
-
107
-
108
-    public function admin_footer_scripts()
109
-    {
110
-    }
111
-
112
-
113
-    public function load_scripts_styles()
114
-    {
115
-    }
116
-
117
-
118
-    protected function _installation()
119
-    {
120
-        $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php';
121
-        $this->_template_args['admin_page_content'] = EEH_Template::display_template(
122
-            $template_path,
123
-            '',
124
-            true
125
-        );
126
-        $this->display_admin_page_with_sidebar();
127
-    }
128
-
129
-
130
-    protected function _resources()
131
-    {
132
-        $this->display_admin_page_with_sidebar();
133
-    }
134
-
135
-
136
-    protected function _add_settings_metabox($box, $label, array $args)
137
-    {
138
-        add_meta_box(
139
-            "espresso_{$box}_settings",
140
-            $label,
141
-            function ($post, $metabox) {
142
-                echo EEH_Template::display_template(
143
-                    $metabox['args']['template_path'],
144
-                    $metabox['args']['template_args'],
145
-                    true
146
-                );
147
-            },
148
-            $this->_current_screen->id,
149
-            'normal',
150
-            'high',
151
-            apply_filters(
152
-                "FHEE__Support_Admin_Page___add_settings_metabox__{$box}_args_array",
153
-                $args
154
-            )
155
-        );
156
-    }
157
-
158
-
159
-    protected function _resources_boxes()
160
-    {
161
-        $boxes = apply_filters(
162
-            'FHEE__Support_Admin_Page___resources_boxes__boxes_array',
163
-            array(
164
-                'favorite_theme_developers' => esc_html__('Favorite Theme Developers', 'event_espresso'),
165
-                'highly_recommended_themes' => esc_html__('Highly Recommended Themes', 'event_espresso'),
166
-                'hire_developer'            => esc_html__('Hire a Developer', 'event_espresso'),
167
-                'partners'                  => esc_html__('Partners', 'event_espresso'),
168
-                'recommended_plugins'       => esc_html__('Recommended Plugins', 'event_espresso'),
169
-                'other_resources'           => esc_html__('Other Resources', 'event_espresso'),
170
-            )
171
-        );
172
-        foreach ($boxes as $box => $label) {
173
-            $this->_add_settings_metabox(
174
-                $box,
175
-                $label,
176
-                array(
177
-                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
178
-                    'template_args' => $this->_template_args,
179
-                )
180
-            );
181
-        }
182
-    }
183
-
184
-
185
-    protected function _shortcodes()
186
-    {
187
-        $this->display_admin_page_with_sidebar();
188
-    }
189
-
190
-
191
-    protected function _shortcodes_boxes()
192
-    {
193
-        $boxes = apply_filters(
194
-            'FHEE__Support_Admin_Page___shortcodes_boxes__boxes_array',
195
-            array(
196
-                'shortcodes_event_listings'  => esc_html__('Event Listings', 'event_espresso'),
197
-                'shortcodes_ticket_selector' => esc_html__('Event Ticket Selector', 'event_espresso'),
198
-                'shortcodes_category'        => esc_html__('Event Categories', 'event_espresso'),
199
-                'shortcodes_attendee'        => esc_html__('Event Attendees', 'event_espresso')
200
-                /*'shortcodes_single_events' => esc_html__('Single Events', 'event_espresso'),*/
201
-                /*'shortcodes_attendee_listings' => esc_html__('Attendee Listings', 'event_espresso'),*/
202
-            )
203
-        );
204
-        foreach ($boxes as $box => $label) {
205
-            $this->_add_settings_metabox(
206
-                $box,
207
-                $label,
208
-                array(
209
-                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
210
-                    'template_args' => $this->_template_args,
211
-                )
212
-            );
213
-        }
214
-    }
215
-
216
-
217
-    protected function _contact_support()
218
-    {
219
-        $this->display_admin_page_with_sidebar();
220
-    }
221
-
222
-
223
-    protected function _support_boxes()
224
-    {
225
-        $boxes = apply_filters(
226
-            'FHEE__Support_Admin_Page___support_boxes__boxes_array',
227
-            array(
228
-                'contact_support'       => esc_html__('Contact Support', 'event_espresso'),
229
-                'important_information' => esc_html__('Important Information', 'event_espresso'),
230
-            )
231
-        );
232
-        foreach ($boxes as $box => $label) {
233
-            $this->_add_settings_metabox(
234
-                $box,
235
-                $label,
236
-                array(
237
-                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
238
-                    'template_args' => $this->_template_args,
239
-                )
240
-            );
241
-        }
242
-    }
243
-
244
-
245
-    protected function _developers()
246
-    {
247
-        $this->_template_args['admin_page_content'] = EEH_Template::display_template(
248
-            EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php',
249
-            array(),
250
-            true
251
-        );
252
-        $this->display_admin_page_with_sidebar();
253
-    }
16
+	protected function _init_page_props()
17
+	{
18
+		$this->page_slug = EE_SUPPORT_PG_SLUG;
19
+		$this->page_label = esc_html__('Help & Support', 'event_espresso');
20
+		$this->_admin_base_url = EE_SUPPORT_ADMIN_URL;
21
+		$this->_admin_base_path = EE_SUPPORT_ADMIN;
22
+	}
23
+
24
+
25
+	protected function _ajax_hooks()
26
+	{
27
+	}
28
+
29
+
30
+	protected function _define_page_props()
31
+	{
32
+		$this->_labels = array();
33
+		$this->_admin_page_title = $this->page_label;
34
+	}
35
+
36
+
37
+	protected function _set_page_routes()
38
+	{
39
+		$this->_page_routes = array(
40
+			'default'    => array(
41
+				'func'       => '_contact_support',
42
+				'capability' => 'ee_read_ee',
43
+			),
44
+			'developers' => array(
45
+				'func'       => '_developers',
46
+				'capability' => 'ee_read_ee',
47
+			),
48
+			'shortcodes' => array(
49
+				'func'       => '_shortcodes',
50
+				'capability' => 'ee_read_ee',
51
+			),
52
+		);
53
+	}
54
+
55
+
56
+	protected function _set_page_config()
57
+	{
58
+		$this->_page_config = array(
59
+			'default'    => array(
60
+				'nav'           => array(
61
+					'label' => esc_html__('Support', 'event_espresso'),
62
+					'order' => 30,
63
+				),
64
+				'metaboxes'     => array_merge($this->_default_espresso_metaboxes, array('_support_boxes')),
65
+				'require_nonce' => false,
66
+			),
67
+			'developers' => array(
68
+				'nav'           => array(
69
+					'label' => esc_html__('Developers', 'event_espresso'),
70
+					'order' => 50,
71
+				),
72
+				'metaboxes'     => $this->_default_espresso_metaboxes,
73
+				'require_nonce' => false,
74
+			),
75
+			'shortcodes' => array(
76
+				'nav'           => array(
77
+					'label' => esc_html__('Shortcodes', 'event_espresso'),
78
+					'order' => 60,
79
+				),
80
+				'metaboxes'     => array_merge($this->_default_espresso_metaboxes, array('_shortcodes_boxes')),
81
+				'require_nonce' => false,
82
+			),
83
+		);
84
+	}
85
+
86
+
87
+	// none of the below group are currently used for Support pages
88
+	protected function _add_screen_options()
89
+	{
90
+	}
91
+
92
+
93
+	protected function _add_feature_pointers()
94
+	{
95
+	}
96
+
97
+
98
+	public function admin_init()
99
+	{
100
+	}
101
+
102
+
103
+	public function admin_notices()
104
+	{
105
+	}
106
+
107
+
108
+	public function admin_footer_scripts()
109
+	{
110
+	}
111
+
112
+
113
+	public function load_scripts_styles()
114
+	{
115
+	}
116
+
117
+
118
+	protected function _installation()
119
+	{
120
+		$template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php';
121
+		$this->_template_args['admin_page_content'] = EEH_Template::display_template(
122
+			$template_path,
123
+			'',
124
+			true
125
+		);
126
+		$this->display_admin_page_with_sidebar();
127
+	}
128
+
129
+
130
+	protected function _resources()
131
+	{
132
+		$this->display_admin_page_with_sidebar();
133
+	}
134
+
135
+
136
+	protected function _add_settings_metabox($box, $label, array $args)
137
+	{
138
+		add_meta_box(
139
+			"espresso_{$box}_settings",
140
+			$label,
141
+			function ($post, $metabox) {
142
+				echo EEH_Template::display_template(
143
+					$metabox['args']['template_path'],
144
+					$metabox['args']['template_args'],
145
+					true
146
+				);
147
+			},
148
+			$this->_current_screen->id,
149
+			'normal',
150
+			'high',
151
+			apply_filters(
152
+				"FHEE__Support_Admin_Page___add_settings_metabox__{$box}_args_array",
153
+				$args
154
+			)
155
+		);
156
+	}
157
+
158
+
159
+	protected function _resources_boxes()
160
+	{
161
+		$boxes = apply_filters(
162
+			'FHEE__Support_Admin_Page___resources_boxes__boxes_array',
163
+			array(
164
+				'favorite_theme_developers' => esc_html__('Favorite Theme Developers', 'event_espresso'),
165
+				'highly_recommended_themes' => esc_html__('Highly Recommended Themes', 'event_espresso'),
166
+				'hire_developer'            => esc_html__('Hire a Developer', 'event_espresso'),
167
+				'partners'                  => esc_html__('Partners', 'event_espresso'),
168
+				'recommended_plugins'       => esc_html__('Recommended Plugins', 'event_espresso'),
169
+				'other_resources'           => esc_html__('Other Resources', 'event_espresso'),
170
+			)
171
+		);
172
+		foreach ($boxes as $box => $label) {
173
+			$this->_add_settings_metabox(
174
+				$box,
175
+				$label,
176
+				array(
177
+					'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
178
+					'template_args' => $this->_template_args,
179
+				)
180
+			);
181
+		}
182
+	}
183
+
184
+
185
+	protected function _shortcodes()
186
+	{
187
+		$this->display_admin_page_with_sidebar();
188
+	}
189
+
190
+
191
+	protected function _shortcodes_boxes()
192
+	{
193
+		$boxes = apply_filters(
194
+			'FHEE__Support_Admin_Page___shortcodes_boxes__boxes_array',
195
+			array(
196
+				'shortcodes_event_listings'  => esc_html__('Event Listings', 'event_espresso'),
197
+				'shortcodes_ticket_selector' => esc_html__('Event Ticket Selector', 'event_espresso'),
198
+				'shortcodes_category'        => esc_html__('Event Categories', 'event_espresso'),
199
+				'shortcodes_attendee'        => esc_html__('Event Attendees', 'event_espresso')
200
+				/*'shortcodes_single_events' => esc_html__('Single Events', 'event_espresso'),*/
201
+				/*'shortcodes_attendee_listings' => esc_html__('Attendee Listings', 'event_espresso'),*/
202
+			)
203
+		);
204
+		foreach ($boxes as $box => $label) {
205
+			$this->_add_settings_metabox(
206
+				$box,
207
+				$label,
208
+				array(
209
+					'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
210
+					'template_args' => $this->_template_args,
211
+				)
212
+			);
213
+		}
214
+	}
215
+
216
+
217
+	protected function _contact_support()
218
+	{
219
+		$this->display_admin_page_with_sidebar();
220
+	}
221
+
222
+
223
+	protected function _support_boxes()
224
+	{
225
+		$boxes = apply_filters(
226
+			'FHEE__Support_Admin_Page___support_boxes__boxes_array',
227
+			array(
228
+				'contact_support'       => esc_html__('Contact Support', 'event_espresso'),
229
+				'important_information' => esc_html__('Important Information', 'event_espresso'),
230
+			)
231
+		);
232
+		foreach ($boxes as $box => $label) {
233
+			$this->_add_settings_metabox(
234
+				$box,
235
+				$label,
236
+				array(
237
+					'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
238
+					'template_args' => $this->_template_args,
239
+				)
240
+			);
241
+		}
242
+	}
243
+
244
+
245
+	protected function _developers()
246
+	{
247
+		$this->_template_args['admin_page_content'] = EEH_Template::display_template(
248
+			EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php',
249
+			array(),
250
+			true
251
+		);
252
+		$this->display_admin_page_with_sidebar();
253
+	}
254 254
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
     protected function _installation()
119 119
     {
120
-        $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php';
120
+        $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'support_admin_details_installation.template.php';
121 121
         $this->_template_args['admin_page_content'] = EEH_Template::display_template(
122 122
             $template_path,
123 123
             '',
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         add_meta_box(
139 139
             "espresso_{$box}_settings",
140 140
             $label,
141
-            function ($post, $metabox) {
141
+            function($post, $metabox) {
142 142
                 echo EEH_Template::display_template(
143 143
                     $metabox['args']['template_path'],
144 144
                     $metabox['args']['template_args'],
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                 $box,
175 175
                 $label,
176 176
                 array(
177
-                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
177
+                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php",
178 178
                     'template_args' => $this->_template_args,
179 179
                 )
180 180
             );
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 $box,
207 207
                 $label,
208 208
                 array(
209
-                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
209
+                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php",
210 210
                     'template_args' => $this->_template_args,
211 211
                 )
212 212
             );
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                 $box,
235 235
                 $label,
236 236
                 array(
237
-                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php",
237
+                    'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php",
238 238
                     'template_args' => $this->_template_args,
239 239
                 )
240 240
             );
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     protected function _developers()
246 246
     {
247 247
         $this->_template_args['admin_page_content'] = EEH_Template::display_template(
248
-            EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php',
248
+            EE_SUPPORT_ADMIN_TEMPLATE_PATH.'developers_admin_details.template.php',
249 249
             array(),
250 250
             true
251 251
         );
Please login to merge, or discard this patch.
support/templates/support_admin_details_shortcodes_attendee.template.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
             <strong>[ESPRESSO_EVENT_ATTENDEES]</strong><br>
10 10
             <p class="description">
11 11
                 <?php _e(
12
-                    'With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event.  If it is used in Event Description, then it will show the attendees for that event.',
13
-                    'event_espresso'
14
-                ); ?>
12
+					'With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event.  If it is used in Event Description, then it will show the attendees for that event.',
13
+					'event_espresso'
14
+				); ?>
15 15
             </p>
16 16
             <br>
17 17
         </li>
@@ -40,18 +40,18 @@  discard block
 block discarded – undo
40 40
             <strong>[ESPRESSO_EVENT_ATTENDEES status=RAP]</strong><br>
41 41
             <p class="description">
42 42
                 <?php _e(
43
-                    'You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status.  Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.',
44
-                    'event_espresso'
45
-                ); ?>
43
+					'You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status.  Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.',
44
+					'event_espresso'
45
+				); ?>
46 46
             </p>
47 47
             <p>
48 48
                 <?php _e('The statuses you can use are:', 'event_espresso'); ?>
49 49
                 <br>
50 50
                 <?php
51
-                foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) {
52
-                    echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>';
53
-                }
54
-                ?>
51
+				foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) {
52
+					echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>';
53
+				}
54
+				?>
55 55
 
56 56
             </p>
57 57
             <br>
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
             <strong>[ESPRESSO_EVENT_ATTENDEES display_on_archives=true]</strong><br>
61 61
             <p class="description">
62 62
                 <?php _e(
63
-                    'Will display the attendees list when events are viewed on archive pages.',
64
-                    'event_espresso'
65
-                ); ?>
63
+					'Will display the attendees list when events are viewed on archive pages.',
64
+					'event_espresso'
65
+				); ?>
66 66
             </p>
67 67
             <br>
68 68
         </li>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 <br>
50 50
                 <?php
51 51
                 foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) {
52
-                    echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>';
52
+                    echo '<strong>'.$status_code.':</strong>'.' '.$status_label.'<br>';
53 53
                 }
54 54
                 ?>
55 55
 
Please login to merge, or discard this patch.
support/templates/support_admin_details_installation.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <div class="padding">
2 2
     <!-- <p><?php _e(
3
-        'Download the <a href="https://eventespresso.com/wp-content/plugins/download-monitor/download.php?id=2">Installation Guide</a> as a PDF',
4
-        'event_espresso'
5
-    ); ?></p> -->
3
+		'Download the <a href="https://eventespresso.com/wp-content/plugins/download-monitor/download.php?id=2">Installation Guide</a> as a PDF',
4
+		'event_espresso'
5
+	); ?></p> -->
6 6
     <p>
7 7
         <?php _e('For the latest installation instructions please visit:', 'event_espresso'); ?>
8 8
         <a href="https://eventespresso.com/wiki/installing-event-espresso/" target="_blank">https://eventespresso.com/wiki/installing-event-espresso/</a>
Please login to merge, or discard this patch.
support/templates/support_admin_details_important_information.template.php 2 patches
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -1,50 +1,50 @@  discard block
 block discarded – undo
1 1
 <div class="padding">
2 2
     <?php
3
-    global $wpdb, $wp_version;
4
-    $wp_req_version = '3.1';
5
-    $php_req_version = '5.2';
6
-    $mysql_req_version = '5.0';
7
-    $is_php_valid = version_compare(phpversion(), $php_req_version, '>');
8
-    $is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>');
3
+	global $wpdb, $wp_version;
4
+	$wp_req_version = '3.1';
5
+	$php_req_version = '5.2';
6
+	$mysql_req_version = '5.0';
7
+	$is_php_valid = version_compare(phpversion(), $php_req_version, '>');
8
+	$is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>');
9 9
 
10
-    if (! version_compare($wp_version, $wp_req_version, '>=')) {
11
-        echo '<p class="red_alert">'
12
-             . __(
13
-                 'This version of Event Espresso requires WordPress version',
14
-                 'event_espresso'
15
-             ) . ' ' . $wp_req_version . '+. '
16
-             . __(
17
-                 'Please upgrade to the latest version of WordPress.',
18
-                 'event_espresso'
19
-             ) . '</p>';
20
-    }
21
-    if (! $is_php_valid) {
22
-        echo '<p class="red_alert">'
23
-             . __(
24
-                 'Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:',
25
-                 'event_espresso'
26
-             ) . ' ' . $php_req_version . '</p>';
27
-    }
28
-    if (! $is_mysql_valid) {
29
-        echo '<p class="red_alert">'
30
-             . __(
31
-                 'Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:',
32
-                 'event_espresso'
33
-             ) . ' ' . $mysql_req_version . '</p>';
34
-    }
10
+	if (! version_compare($wp_version, $wp_req_version, '>=')) {
11
+		echo '<p class="red_alert">'
12
+			 . __(
13
+				 'This version of Event Espresso requires WordPress version',
14
+				 'event_espresso'
15
+			 ) . ' ' . $wp_req_version . '+. '
16
+			 . __(
17
+				 'Please upgrade to the latest version of WordPress.',
18
+				 'event_espresso'
19
+			 ) . '</p>';
20
+	}
21
+	if (! $is_php_valid) {
22
+		echo '<p class="red_alert">'
23
+			 . __(
24
+				 'Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:',
25
+				 'event_espresso'
26
+			 ) . ' ' . $php_req_version . '</p>';
27
+	}
28
+	if (! $is_mysql_valid) {
29
+		echo '<p class="red_alert">'
30
+			 . __(
31
+				 'Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:',
32
+				 'event_espresso'
33
+			 ) . ' ' . $mysql_req_version . '</p>';
34
+	}
35 35
 
36
-    $query_args = array(
37
-        'page'   => 'espresso_maintenance_settings',
38
-        'action' => 'system_status',
39
-    );
40
-    $system_status_link = EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php'));
36
+	$query_args = array(
37
+		'page'   => 'espresso_maintenance_settings',
38
+		'action' => 'system_status',
39
+	);
40
+	$system_status_link = EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php'));
41 41
 
42
-    ?>
42
+	?>
43 43
     <a href="<?php echo $system_status_link; ?>" class="button-secondary right">
44 44
         <?php _e(
45
-            'System Information',
46
-            'event_espresso'
47
-        ); ?></a>
45
+			'System Information',
46
+			'event_espresso'
47
+		); ?></a>
48 48
     <div class="localhost-information">
49 49
         <p><strong><?php esc_html_e('WordPress Version:', 'event_espresso'); ?></strong>&nbsp;<?php echo $wp_version; ?>
50 50
         </p>
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
         <p><strong><?php esc_html_e('MySQL Version:', 'event_espresso'); ?></strong>&nbsp;<?php echo $wpdb->db_version(); ?></p>
53 53
         <p><strong>
54 54
                 <?php esc_html_e(
55
-                    'Event Espresso Version:',
56
-                    'event_espresso'
57
-                ); ?></strong>&nbsp;<?php echo EVENT_ESPRESSO_VERSION ?></p>
55
+					'Event Espresso Version:',
56
+					'event_espresso'
57
+				); ?></strong>&nbsp;<?php echo EVENT_ESPRESSO_VERSION ?></p>
58 58
         <p><strong><?php esc_html_e('WordPress Address (URL):', 'event_espresso'); ?></strong>&nbsp;<?php echo site_url(); ?></p>
59 59
         <p><strong><?php esc_html_e('Site address (URL):', 'event_espresso'); ?></strong>&nbsp;<?php echo home_url(); ?>
60 60
     </div>
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,30 +7,30 @@
 block discarded – undo
7 7
     $is_php_valid = version_compare(phpversion(), $php_req_version, '>');
8 8
     $is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>');
9 9
 
10
-    if (! version_compare($wp_version, $wp_req_version, '>=')) {
10
+    if ( ! version_compare($wp_version, $wp_req_version, '>=')) {
11 11
         echo '<p class="red_alert">'
12 12
              . __(
13 13
                  'This version of Event Espresso requires WordPress version',
14 14
                  'event_espresso'
15
-             ) . ' ' . $wp_req_version . '+. '
15
+             ).' '.$wp_req_version.'+. '
16 16
              . __(
17 17
                  'Please upgrade to the latest version of WordPress.',
18 18
                  'event_espresso'
19
-             ) . '</p>';
19
+             ).'</p>';
20 20
     }
21
-    if (! $is_php_valid) {
21
+    if ( ! $is_php_valid) {
22 22
         echo '<p class="red_alert">'
23 23
              . __(
24 24
                  'Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:',
25 25
                  'event_espresso'
26
-             ) . ' ' . $php_req_version . '</p>';
26
+             ).' '.$php_req_version.'</p>';
27 27
     }
28
-    if (! $is_mysql_valid) {
28
+    if ( ! $is_mysql_valid) {
29 29
         echo '<p class="red_alert">'
30 30
              . __(
31 31
                  'Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:',
32 32
                  'event_espresso'
33
-             ) . ' ' . $mysql_req_version . '</p>';
33
+             ).' '.$mysql_req_version.'</p>';
34 34
     }
35 35
 
36 36
     $query_args = array(
Please login to merge, or discard this patch.
admin_pages/about/About_Admin_Page.core.php 2 patches
Indentation   +274 added lines, -274 removed lines patch added patch discarded remove patch
@@ -17,128 +17,128 @@  discard block
 block discarded – undo
17 17
 {
18 18
 
19 19
 
20
-    protected function _init_page_props()
21
-    {
22
-        $this->page_slug = EE_ABOUT_PG_SLUG;
23
-        $this->page_label = esc_html__('About Event Espresso', 'event_espresso');
24
-        $this->_admin_base_url = EE_ABOUT_ADMIN_URL;
25
-        $this->_admin_base_path = EE_ABOUT_ADMIN;
26
-    }
27
-
28
-
29
-    protected function _ajax_hooks()
30
-    {
31
-        // todo: all hooks for ajax goes here.
32
-    }
33
-
34
-
35
-    protected function _define_page_props()
36
-    {
37
-        $this->_labels = array();
38
-        $this->_admin_page_title = $this->page_label;
39
-    }
40
-
41
-
42
-    protected function _set_page_routes()
43
-    {
44
-        $this->_page_routes = array(
45
-            'default' => array(
46
-                'func'       => '_overview',
47
-                'capability' => 'manage_options',
48
-            ),
49
-            // 'overview' => '_overview',
50
-            // 'func' => '_overview',
51
-            // 'capability' => 'ee_read_ee'
52
-            // ),
53
-            'credits' => array(
54
-                'func'       => '_credits',
55
-                'capability' => 'manage_options',
56
-            ),
57
-
58
-            'decafvpro' => array(
59
-                'func'       => '_decafvpro',
60
-                'capability' => 'manage_options',
61
-            ),
62
-            'reviews'   => array(
63
-                'func'       => '_reviews',
64
-                'capability' => 'manage_options',
65
-            ),
66
-        );
67
-    }
68
-
69
-
70
-    protected function _set_page_config()
71
-    {
72
-        $this->_page_config = array(
73
-            /*'default' => array(
20
+	protected function _init_page_props()
21
+	{
22
+		$this->page_slug = EE_ABOUT_PG_SLUG;
23
+		$this->page_label = esc_html__('About Event Espresso', 'event_espresso');
24
+		$this->_admin_base_url = EE_ABOUT_ADMIN_URL;
25
+		$this->_admin_base_path = EE_ABOUT_ADMIN;
26
+	}
27
+
28
+
29
+	protected function _ajax_hooks()
30
+	{
31
+		// todo: all hooks for ajax goes here.
32
+	}
33
+
34
+
35
+	protected function _define_page_props()
36
+	{
37
+		$this->_labels = array();
38
+		$this->_admin_page_title = $this->page_label;
39
+	}
40
+
41
+
42
+	protected function _set_page_routes()
43
+	{
44
+		$this->_page_routes = array(
45
+			'default' => array(
46
+				'func'       => '_overview',
47
+				'capability' => 'manage_options',
48
+			),
49
+			// 'overview' => '_overview',
50
+			// 'func' => '_overview',
51
+			// 'capability' => 'ee_read_ee'
52
+			// ),
53
+			'credits' => array(
54
+				'func'       => '_credits',
55
+				'capability' => 'manage_options',
56
+			),
57
+
58
+			'decafvpro' => array(
59
+				'func'       => '_decafvpro',
60
+				'capability' => 'manage_options',
61
+			),
62
+			'reviews'   => array(
63
+				'func'       => '_reviews',
64
+				'capability' => 'manage_options',
65
+			),
66
+		);
67
+	}
68
+
69
+
70
+	protected function _set_page_config()
71
+	{
72
+		$this->_page_config = array(
73
+			/*'default' => array(
74 74
                 'nav' => array(
75 75
                     'label' => __('What\'s New', 'event_espresso'),
76 76
                     'order' => 10),
77 77
                 'require_nonce' => FALSE
78 78
                 ),*/
79
-            // 'overview' => array(
80
-            'default' => array(
81
-                'nav'           => array(
82
-                    'label' => esc_html__('About', 'event_espresso'),
83
-                    'order' => 20,
84
-                ),
85
-                'require_nonce' => false,
86
-            ),
87
-            'credits' => array(
88
-                'nav'           => array(
89
-                    'label' => esc_html__('Credits', 'event_espresso'),
90
-                    'order' => 30,
91
-                ),
92
-                'require_nonce' => false,
93
-            ),
94
-
95
-            'decafvpro' => array(
96
-                'nav'           => array(
97
-                    'label' => esc_html__('Decaf vs Regular', 'event_espresso'),
98
-                    'order' => 40,
99
-                ),
100
-                'require_nonce' => false,
101
-            ),
102
-            'reviews'   => array(
103
-                'nav'           => array(
104
-                    'label' => esc_html__('Reviews', 'event_espresso'),
105
-                    'order' => 50,
106
-                ),
107
-                'require_nonce' => false,
108
-            ),
109
-        );
110
-    }
111
-
112
-
113
-    // none of the below group are currently used for Support pages
114
-    protected function _add_screen_options()
115
-    {
116
-    }
117
-
118
-    protected function _add_feature_pointers()
119
-    {
120
-    }
121
-
122
-    public function admin_init()
123
-    {
124
-    }
125
-
126
-    public function admin_notices()
127
-    {
128
-    }
129
-
130
-    public function admin_footer_scripts()
131
-    {
132
-    }
133
-
134
-    public function load_scripts_styles()
135
-    {
136
-    }
137
-
138
-
139
-    protected function _whats_new()
140
-    {
141
-        /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE;
79
+			// 'overview' => array(
80
+			'default' => array(
81
+				'nav'           => array(
82
+					'label' => esc_html__('About', 'event_espresso'),
83
+					'order' => 20,
84
+				),
85
+				'require_nonce' => false,
86
+			),
87
+			'credits' => array(
88
+				'nav'           => array(
89
+					'label' => esc_html__('Credits', 'event_espresso'),
90
+					'order' => 30,
91
+				),
92
+				'require_nonce' => false,
93
+			),
94
+
95
+			'decafvpro' => array(
96
+				'nav'           => array(
97
+					'label' => esc_html__('Decaf vs Regular', 'event_espresso'),
98
+					'order' => 40,
99
+				),
100
+				'require_nonce' => false,
101
+			),
102
+			'reviews'   => array(
103
+				'nav'           => array(
104
+					'label' => esc_html__('Reviews', 'event_espresso'),
105
+					'order' => 50,
106
+				),
107
+				'require_nonce' => false,
108
+			),
109
+		);
110
+	}
111
+
112
+
113
+	// none of the below group are currently used for Support pages
114
+	protected function _add_screen_options()
115
+	{
116
+	}
117
+
118
+	protected function _add_feature_pointers()
119
+	{
120
+	}
121
+
122
+	public function admin_init()
123
+	{
124
+	}
125
+
126
+	public function admin_notices()
127
+	{
128
+	}
129
+
130
+	public function admin_footer_scripts()
131
+	{
132
+	}
133
+
134
+	public function load_scripts_styles()
135
+	{
136
+	}
137
+
138
+
139
+	protected function _whats_new()
140
+	{
141
+		/*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE;
142 142
         $steps = $steps !== FALSE ? $steps : '';
143 143
         $this->_admin_page_title = sprintf( __('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION );
144 144
         $settings_message = $steps;
@@ -146,168 +146,168 @@  discard block
 block discarded – undo
146 146
         $template = EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php';
147 147
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
148 148
         $this->display_about_admin_page();*/
149
-    }
149
+	}
150 150
 
151 151
 
152
-    protected function _overview()
153
-    {
154
-        /*$this->_template_args['admin_page_title'] = __('About Event Espresso', 'event_espresso');
152
+	protected function _overview()
153
+	{
154
+		/*$this->_template_args['admin_page_title'] = __('About Event Espresso', 'event_espresso');
155 155
         $this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', 'event_espresso');
156 156
         $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
157 157
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
158 158
         $this->display_about_admin_page();*/
159 159
 
160
-        // Copied from _whats_new()
161
-        $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance
162
-            ? $this->_get_started_steps() : false;
163
-        $steps = $steps !== false ? $steps : '';
164
-        $this->_admin_page_title = sprintf(
165
-            esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
166
-            EVENT_ESPRESSO_VERSION
167
-        );
168
-        $settings_message = $steps;
169
-        $this->_template_args['admin_page_subtitle'] = esc_html__(
170
-            'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.',
171
-            'event_espresso'
172
-        ) . $settings_message;
173
-        $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
174
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
175
-            $template,
176
-            $this->_template_args,
177
-            true
178
-        );
179
-        $this->display_about_admin_page();
180
-    }
181
-
182
-
183
-    protected function _get_started_steps()
184
-    {
185
-        $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>';
186
-        $step_one = '<p>'
187
-                    . sprintf(
188
-                        esc_html__(
189
-                            '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.',
190
-                            'event_espresso'
191
-                        ),
192
-                        '<strong>',
193
-                        '</strong>',
194
-                        '<a href="admin.php?page=espresso_general_settings">',
195
-                        '</a>'
196
-                    ) . '</strong></p>';
197
-        $step_two = '<p>'
198
-                    . sprintf(
199
-                        esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'),
200
-                        '<strong>',
201
-                        '</strong>',
202
-                        '<a href="admin.php?page=espresso_payment_settings">',
203
-                        '</a>'
204
-                    ) . '</strong></p>';
205
-        $step_three = '<p>'
206
-                      . sprintf(
207
-                          esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'),
208
-                          '<strong>',
209
-                          '</strong>',
210
-                          '<a href="admin.php?page=espresso_events&action=create_new">',
211
-                          '</a>'
212
-                      ) . '</strong></p>';
213
-
214
-        // done?
215
-        $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true;
216
-        $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active(
217
-            EEM_Payment_Method::scope_cart,
218
-            array(array('PMD_type' => 'Invoice'))
219
-        );
220
-        $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart);
221
-        // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or
222
-        // if only the invoice is active but it's clearly been updated
223
-        $done_step_two = $active_pms_count > 1 ||
224
-                         ($active_pms_count === 1 && ! $active_invoice_pm) ||
225
-                         ($active_invoice_pm instanceof EE_Payment_Method && (
226
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') ||
227
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') ||
228
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') ||
229
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') ||
230
-                                 $active_invoice_pm->get_extra_meta('page_extra_info', true, '')
231
-                             )
232
-                         );
233
-        $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false;
234
-
235
-        // if ALL steps are done, let's just return FALSE so we don't display anything
236
-        if ($done_step_one && $done_step_two && $done_step_three) {
237
-            return false;
238
-        }
239
-
240
-        // now let's put it together
241
-        $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
-        $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
243
-        $steps .= sprintf(
244
-            '%s' . $step_three . '%s',
245
-            $done_step_three ? '<strike>' : '',
246
-            $done_step_three ? '</strike>' : ''
247
-        );
248
-
249
-        return $steps;
250
-    }
251
-
252
-
253
-    protected function _credits()
254
-    {
255
-        $this->_template_args['admin_page_title'] = sprintf(
256
-            __('Welcome to Event Espresso %s', 'event_espresso'),
257
-            EVENT_ESPRESSO_VERSION
258
-        );
259
-        $this->_template_args['admin_page_subtitle'] = __(
260
-            'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.',
261
-            'event_espresso'
262
-        );
263
-        $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php';
264
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
265
-            $template,
266
-            $this->_template_args,
267
-            true
268
-        );
269
-        $this->display_about_admin_page();
270
-    }
271
-
272
-
273
-    protected function _decafvpro()
274
-    {
275
-        $this->_template_args['admin_page_title'] = sprintf(
276
-            __('Welcome to Event Espresso %s', 'event_espresso'),
277
-            EVENT_ESPRESSO_VERSION
278
-        );
279
-        $this->_template_args['admin_page_subtitle'] = sprintf(
280
-            __(
281
-                'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s',
282
-                'event_espresso'
283
-            ),
284
-            '<em>',
285
-            '</em>',
286
-            '<strong>',
287
-            '</strong>'
288
-        );
289
-        $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php';
290
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
291
-            $template,
292
-            $this->_template_args,
293
-            true
294
-        );
295
-        $this->display_about_admin_page();
296
-    }
297
-
298
-    protected function _reviews()
299
-    {
300
-        $this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso');
301
-        $this->_template_args['admin_page_subtitle'] = __(
302
-            'At Event Espresso, customer satisfaction is our ultimate goal.',
303
-            'event_espresso'
304
-        );
305
-        $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
306
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
307
-            $template,
308
-            $this->_template_args,
309
-            true
310
-        );
311
-        $this->display_about_admin_page();
312
-    }
160
+		// Copied from _whats_new()
161
+		$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance
162
+			? $this->_get_started_steps() : false;
163
+		$steps = $steps !== false ? $steps : '';
164
+		$this->_admin_page_title = sprintf(
165
+			esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
166
+			EVENT_ESPRESSO_VERSION
167
+		);
168
+		$settings_message = $steps;
169
+		$this->_template_args['admin_page_subtitle'] = esc_html__(
170
+			'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.',
171
+			'event_espresso'
172
+		) . $settings_message;
173
+		$template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
174
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
175
+			$template,
176
+			$this->_template_args,
177
+			true
178
+		);
179
+		$this->display_about_admin_page();
180
+	}
181
+
182
+
183
+	protected function _get_started_steps()
184
+	{
185
+		$steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>';
186
+		$step_one = '<p>'
187
+					. sprintf(
188
+						esc_html__(
189
+							'%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.',
190
+							'event_espresso'
191
+						),
192
+						'<strong>',
193
+						'</strong>',
194
+						'<a href="admin.php?page=espresso_general_settings">',
195
+						'</a>'
196
+					) . '</strong></p>';
197
+		$step_two = '<p>'
198
+					. sprintf(
199
+						esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'),
200
+						'<strong>',
201
+						'</strong>',
202
+						'<a href="admin.php?page=espresso_payment_settings">',
203
+						'</a>'
204
+					) . '</strong></p>';
205
+		$step_three = '<p>'
206
+					  . sprintf(
207
+						  esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'),
208
+						  '<strong>',
209
+						  '</strong>',
210
+						  '<a href="admin.php?page=espresso_events&action=create_new">',
211
+						  '</a>'
212
+					  ) . '</strong></p>';
213
+
214
+		// done?
215
+		$done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true;
216
+		$active_invoice_pm = EEM_Payment_Method::instance()->get_one_active(
217
+			EEM_Payment_Method::scope_cart,
218
+			array(array('PMD_type' => 'Invoice'))
219
+		);
220
+		$active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart);
221
+		// done step two if a non-invoice paymetn method is active; or there is more than one PM active, or
222
+		// if only the invoice is active but it's clearly been updated
223
+		$done_step_two = $active_pms_count > 1 ||
224
+						 ($active_pms_count === 1 && ! $active_invoice_pm) ||
225
+						 ($active_invoice_pm instanceof EE_Payment_Method && (
226
+								 $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') ||
227
+								 $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') ||
228
+								 $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') ||
229
+								 $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') ||
230
+								 $active_invoice_pm->get_extra_meta('page_extra_info', true, '')
231
+							 )
232
+						 );
233
+		$done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false;
234
+
235
+		// if ALL steps are done, let's just return FALSE so we don't display anything
236
+		if ($done_step_one && $done_step_two && $done_step_three) {
237
+			return false;
238
+		}
239
+
240
+		// now let's put it together
241
+		$steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
+		$steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
243
+		$steps .= sprintf(
244
+			'%s' . $step_three . '%s',
245
+			$done_step_three ? '<strike>' : '',
246
+			$done_step_three ? '</strike>' : ''
247
+		);
248
+
249
+		return $steps;
250
+	}
251
+
252
+
253
+	protected function _credits()
254
+	{
255
+		$this->_template_args['admin_page_title'] = sprintf(
256
+			__('Welcome to Event Espresso %s', 'event_espresso'),
257
+			EVENT_ESPRESSO_VERSION
258
+		);
259
+		$this->_template_args['admin_page_subtitle'] = __(
260
+			'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.',
261
+			'event_espresso'
262
+		);
263
+		$template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php';
264
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
265
+			$template,
266
+			$this->_template_args,
267
+			true
268
+		);
269
+		$this->display_about_admin_page();
270
+	}
271
+
272
+
273
+	protected function _decafvpro()
274
+	{
275
+		$this->_template_args['admin_page_title'] = sprintf(
276
+			__('Welcome to Event Espresso %s', 'event_espresso'),
277
+			EVENT_ESPRESSO_VERSION
278
+		);
279
+		$this->_template_args['admin_page_subtitle'] = sprintf(
280
+			__(
281
+				'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s',
282
+				'event_espresso'
283
+			),
284
+			'<em>',
285
+			'</em>',
286
+			'<strong>',
287
+			'</strong>'
288
+		);
289
+		$template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php';
290
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
291
+			$template,
292
+			$this->_template_args,
293
+			true
294
+		);
295
+		$this->display_about_admin_page();
296
+	}
297
+
298
+	protected function _reviews()
299
+	{
300
+		$this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso');
301
+		$this->_template_args['admin_page_subtitle'] = __(
302
+			'At Event Espresso, customer satisfaction is our ultimate goal.',
303
+			'event_espresso'
304
+		);
305
+		$template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
306
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
307
+			$template,
308
+			$this->_template_args,
309
+			true
310
+		);
311
+		$this->display_about_admin_page();
312
+	}
313 313
 }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
         $this->_template_args['admin_page_subtitle'] = esc_html__(
170 170
             'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.',
171 171
             'event_espresso'
172
-        ) . $settings_message;
173
-        $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
172
+        ).$settings_message;
173
+        $template = EE_ABOUT_TEMPLATE_PATH.'ee4-overview.template.php';
174 174
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
175 175
             $template,
176 176
             $this->_template_args,
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
     protected function _get_started_steps()
184 184
     {
185
-        $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>';
185
+        $steps = '<h2>'.esc_html__('Getting Started', 'event_espresso').'</h2>';
186 186
         $step_one = '<p>'
187 187
                     . sprintf(
188 188
                         esc_html__(
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                         '</strong>',
194 194
                         '<a href="admin.php?page=espresso_general_settings">',
195 195
                         '</a>'
196
-                    ) . '</strong></p>';
196
+                    ).'</strong></p>';
197 197
         $step_two = '<p>'
198 198
                     . sprintf(
199 199
                         esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'),
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                         '</strong>',
202 202
                         '<a href="admin.php?page=espresso_payment_settings">',
203 203
                         '</a>'
204
-                    ) . '</strong></p>';
204
+                    ).'</strong></p>';
205 205
         $step_three = '<p>'
206 206
                       . sprintf(
207 207
                           esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'),
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                           '</strong>',
210 210
                           '<a href="admin.php?page=espresso_events&action=create_new">',
211 211
                           '</a>'
212
-                      ) . '</strong></p>';
212
+                      ).'</strong></p>';
213 213
 
214 214
         // done?
215 215
         $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true;
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
         }
239 239
 
240 240
         // now let's put it together
241
-        $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
-        $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
241
+        $steps .= sprintf('%s'.$step_one.'%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
+        $steps .= sprintf('%s'.$step_two.'%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
243 243
         $steps .= sprintf(
244
-            '%s' . $step_three . '%s',
244
+            '%s'.$step_three.'%s',
245 245
             $done_step_three ? '<strike>' : '',
246 246
             $done_step_three ? '</strike>' : ''
247 247
         );
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.',
261 261
             'event_espresso'
262 262
         );
263
-        $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php';
263
+        $template = EE_ABOUT_TEMPLATE_PATH.'credits.template.php';
264 264
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
265 265
             $template,
266 266
             $this->_template_args,
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             '<strong>',
287 287
             '</strong>'
288 288
         );
289
-        $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php';
289
+        $template = EE_ABOUT_TEMPLATE_PATH.'decafvpro.template.php';
290 290
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
291 291
             $template,
292 292
             $this->_template_args,
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
             'At Event Espresso, customer satisfaction is our ultimate goal.',
303 303
             'event_espresso'
304 304
         );
305
-        $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
305
+        $template = EE_ABOUT_TEMPLATE_PATH.'reviews.template.php';
306 306
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
307 307
             $template,
308 308
             $this->_template_args,
Please login to merge, or discard this patch.