@@ -15,226 +15,226 @@ |
||
15 | 15 | class Event_Edit_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Event Editor Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'event-edit-caf-joyride' : 'event-edit-joyride'; |
|
22 | - } |
|
23 | - |
|
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'titlewrap', |
|
32 | - 'content' => $this->_event_title_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'bottom', |
|
35 | - 'tipAdjustmentY' => -40, |
|
36 | - ), |
|
37 | - ), |
|
38 | - 30 => array( |
|
39 | - 'id' => 'wp-content-editor-tools', |
|
40 | - 'content' => $this->_event_description_stop(), |
|
41 | - 'options' => array( |
|
42 | - 'tipLocation' => 'right', |
|
43 | - ), |
|
44 | - ), |
|
45 | - 35 => array( |
|
46 | - 'id' => 'espresso_event_editor_tickets', |
|
47 | - 'content' => $this->_event_pricing_stop(), |
|
48 | - 'options' => array( |
|
49 | - 'tipLocation' => 'top', |
|
50 | - 'tipAdjustmentY' => -30, |
|
51 | - ), |
|
52 | - ), |
|
53 | - 40 => array( |
|
54 | - 'id' => 'espresso_events_Venues_Hooks_venue_metabox_metabox', |
|
55 | - 'content' => $this->_event_venues_caf(), |
|
56 | - 'options' => array( |
|
57 | - 'tipLocation' => 'top', |
|
58 | - 'tipAdjustmentY' => -30, |
|
59 | - ), |
|
60 | - ), |
|
61 | - 45 => array( |
|
62 | - 'id' => 'espresso_event_editor_venue', |
|
63 | - 'content' => $this->_event_venues_stop(), |
|
64 | - 'options' => array( |
|
65 | - 'tipLocation' => 'top', |
|
66 | - 'tipAdjustmentY' => -30, |
|
67 | - ), |
|
68 | - ), |
|
69 | - 50 => array( |
|
70 | - 'id' => 'espresso_events_Pricing_Hooks_pricing_metabox_metabox', |
|
71 | - 'content' => $this->_event_pricing_caf(), |
|
72 | - 'options' => array( |
|
73 | - 'tipLocation' => 'top', |
|
74 | - 'tipAdjustmentY' => -30, |
|
75 | - ), |
|
76 | - ), |
|
77 | - 60 => array( |
|
78 | - 'id' => 'tagsdiv-post_tag', |
|
79 | - 'content' => $this->_event_post_tag_stop(), |
|
80 | - 'options' => array( |
|
81 | - 'tipLocation' => 'left', |
|
82 | - ), |
|
83 | - ), |
|
84 | - 70 => array( |
|
85 | - 'id' => 'espresso_event_categoriesdiv', |
|
86 | - 'content' => $this->_event_categories_stop(), |
|
87 | - 'options' => array( |
|
88 | - 'tipLocation' => 'left', |
|
89 | - ), |
|
90 | - ), |
|
91 | - |
|
92 | - 80 => array( |
|
93 | - 'id' => $this->_is_caf ? 'espresso_events_Registration_Form_Hooks_Extend_primary_questions_metabox' |
|
94 | - : 'espresso_events_Registration_Form_Hooks_primary_questions_metabox', |
|
95 | - 'content' => $this->_primary_question_stop_caf(), |
|
96 | - 'options' => array( |
|
97 | - 'tipLocation' => 'left', |
|
98 | - ), |
|
99 | - ), |
|
100 | - 90 => array( |
|
101 | - 'id' => 'espresso_events_Registration_Form_Hooks_Extend_additional_questions_metabox', |
|
102 | - 'content' => $this->_additional_questions_stop_caf(), |
|
103 | - 'options' => array( |
|
104 | - 'tipLocation' => 'left', |
|
105 | - ), |
|
106 | - ), |
|
107 | - 100 => array( |
|
108 | - 'id' => 'postimagediv', |
|
109 | - 'content' => $this->_featured_image_stop(), |
|
110 | - 'options' => array( |
|
111 | - 'tipLocation' => 'left', |
|
112 | - ), |
|
113 | - ), |
|
114 | - 110 => array( |
|
115 | - 'id' => 'espresso_event_editor_event_options', |
|
116 | - 'content' => $this->_event_registration_options_stop(), |
|
117 | - 'options' => array( |
|
118 | - 'tipLocation' => 'left', |
|
119 | - ), |
|
120 | - ), |
|
121 | - 120 => array( |
|
122 | - 'id' => 'submitpost', |
|
123 | - 'content' => $this->_publish_event_stop(), |
|
124 | - 'options' => array( |
|
125 | - 'tipLocation' => 'left', |
|
126 | - ), |
|
127 | - ), |
|
128 | - |
|
129 | - ); |
|
130 | - } |
|
131 | - |
|
132 | - |
|
133 | - protected function _start() |
|
134 | - { |
|
135 | - $content = '<h3>' . __('Event Editor', 'event_espresso') . '</h3>'; |
|
136 | - $content .= '<p>' |
|
137 | - . __( |
|
138 | - 'This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', |
|
139 | - 'event_espresso' |
|
140 | - ) . '</p>'; |
|
141 | - return $content; |
|
142 | - } |
|
143 | - |
|
144 | - protected function _event_title_stop() |
|
145 | - { |
|
146 | - return '<p>Enter the title for your event in this field.</p>'; |
|
147 | - } |
|
148 | - |
|
149 | - protected function _event_description_stop() |
|
150 | - { |
|
151 | - return '<p>' |
|
152 | - . __( |
|
153 | - 'The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', |
|
154 | - 'event_espresso' |
|
155 | - ) . '</p>'; |
|
156 | - } |
|
157 | - |
|
158 | - protected function _event_venues_caf() |
|
159 | - { |
|
160 | - return '<p>' |
|
161 | - . __( |
|
162 | - 'In this section, you can select the venue that is hosting your event.', |
|
163 | - 'event_espresso' |
|
164 | - ) . '</p>'; |
|
165 | - } |
|
166 | - |
|
167 | - protected function _event_venues_stop() |
|
168 | - { |
|
169 | - return '<p>' |
|
170 | - . __( |
|
171 | - 'In this section, you can enter information about the venue that is hosting your event.', |
|
172 | - 'event_espresso' |
|
173 | - ) . '</p>'; |
|
174 | - } |
|
175 | - |
|
176 | - protected function _event_pricing_stop() |
|
177 | - { |
|
178 | - return '<p>' |
|
179 | - . __( |
|
180 | - 'Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
181 | - 'event_espresso' |
|
182 | - ) . '</p>'; |
|
183 | - } |
|
184 | - |
|
185 | - protected function _event_pricing_caf() |
|
186 | - { |
|
187 | - return '<p>' |
|
188 | - . __( |
|
189 | - 'Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
190 | - 'event_espresso' |
|
191 | - ) . '</p>'; |
|
192 | - } |
|
193 | - |
|
194 | - protected function _event_registration_options_stop() |
|
195 | - { |
|
196 | - return '<p>' . __('Setup custom options for your event registration.', 'event_espresso') . '</p>'; |
|
197 | - } |
|
198 | - |
|
199 | - protected function _event_post_tag_stop() |
|
200 | - { |
|
201 | - return '<p>' . __('Quickly add tags to your event.', 'event_espresso') . '</p>'; |
|
202 | - } |
|
203 | - |
|
204 | - protected function _event_categories_stop() |
|
205 | - { |
|
206 | - return '<p>' . __('Events can also be categorized if you wish.', 'event_espresso') . '</p>'; |
|
207 | - } |
|
208 | - |
|
209 | - protected function _primary_question_stop_caf() |
|
210 | - { |
|
211 | - return '<p>' |
|
212 | - . __( |
|
213 | - 'Use the questions group to request information from your primary registrant.', |
|
214 | - 'event_espresso' |
|
215 | - ) . '</p>'; |
|
216 | - } |
|
217 | - |
|
218 | - protected function _additional_questions_stop_caf() |
|
219 | - { |
|
220 | - return '<p>' |
|
221 | - . __( |
|
222 | - 'Use the questions group to request information from your additional registrant.', |
|
223 | - 'event_espresso' |
|
224 | - ) . '</p>'; |
|
225 | - } |
|
226 | - |
|
227 | - protected function _featured_image_stop() |
|
228 | - { |
|
229 | - return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>'; |
|
230 | - } |
|
231 | - |
|
232 | - protected function _publish_event_stop() |
|
233 | - { |
|
234 | - return '<p>' |
|
235 | - . __( |
|
236 | - 'Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', |
|
237 | - 'event_espresso' |
|
238 | - ) . '</p>'; |
|
239 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Event Editor Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'event-edit-caf-joyride' : 'event-edit-joyride'; |
|
22 | + } |
|
23 | + |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'titlewrap', |
|
32 | + 'content' => $this->_event_title_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'bottom', |
|
35 | + 'tipAdjustmentY' => -40, |
|
36 | + ), |
|
37 | + ), |
|
38 | + 30 => array( |
|
39 | + 'id' => 'wp-content-editor-tools', |
|
40 | + 'content' => $this->_event_description_stop(), |
|
41 | + 'options' => array( |
|
42 | + 'tipLocation' => 'right', |
|
43 | + ), |
|
44 | + ), |
|
45 | + 35 => array( |
|
46 | + 'id' => 'espresso_event_editor_tickets', |
|
47 | + 'content' => $this->_event_pricing_stop(), |
|
48 | + 'options' => array( |
|
49 | + 'tipLocation' => 'top', |
|
50 | + 'tipAdjustmentY' => -30, |
|
51 | + ), |
|
52 | + ), |
|
53 | + 40 => array( |
|
54 | + 'id' => 'espresso_events_Venues_Hooks_venue_metabox_metabox', |
|
55 | + 'content' => $this->_event_venues_caf(), |
|
56 | + 'options' => array( |
|
57 | + 'tipLocation' => 'top', |
|
58 | + 'tipAdjustmentY' => -30, |
|
59 | + ), |
|
60 | + ), |
|
61 | + 45 => array( |
|
62 | + 'id' => 'espresso_event_editor_venue', |
|
63 | + 'content' => $this->_event_venues_stop(), |
|
64 | + 'options' => array( |
|
65 | + 'tipLocation' => 'top', |
|
66 | + 'tipAdjustmentY' => -30, |
|
67 | + ), |
|
68 | + ), |
|
69 | + 50 => array( |
|
70 | + 'id' => 'espresso_events_Pricing_Hooks_pricing_metabox_metabox', |
|
71 | + 'content' => $this->_event_pricing_caf(), |
|
72 | + 'options' => array( |
|
73 | + 'tipLocation' => 'top', |
|
74 | + 'tipAdjustmentY' => -30, |
|
75 | + ), |
|
76 | + ), |
|
77 | + 60 => array( |
|
78 | + 'id' => 'tagsdiv-post_tag', |
|
79 | + 'content' => $this->_event_post_tag_stop(), |
|
80 | + 'options' => array( |
|
81 | + 'tipLocation' => 'left', |
|
82 | + ), |
|
83 | + ), |
|
84 | + 70 => array( |
|
85 | + 'id' => 'espresso_event_categoriesdiv', |
|
86 | + 'content' => $this->_event_categories_stop(), |
|
87 | + 'options' => array( |
|
88 | + 'tipLocation' => 'left', |
|
89 | + ), |
|
90 | + ), |
|
91 | + |
|
92 | + 80 => array( |
|
93 | + 'id' => $this->_is_caf ? 'espresso_events_Registration_Form_Hooks_Extend_primary_questions_metabox' |
|
94 | + : 'espresso_events_Registration_Form_Hooks_primary_questions_metabox', |
|
95 | + 'content' => $this->_primary_question_stop_caf(), |
|
96 | + 'options' => array( |
|
97 | + 'tipLocation' => 'left', |
|
98 | + ), |
|
99 | + ), |
|
100 | + 90 => array( |
|
101 | + 'id' => 'espresso_events_Registration_Form_Hooks_Extend_additional_questions_metabox', |
|
102 | + 'content' => $this->_additional_questions_stop_caf(), |
|
103 | + 'options' => array( |
|
104 | + 'tipLocation' => 'left', |
|
105 | + ), |
|
106 | + ), |
|
107 | + 100 => array( |
|
108 | + 'id' => 'postimagediv', |
|
109 | + 'content' => $this->_featured_image_stop(), |
|
110 | + 'options' => array( |
|
111 | + 'tipLocation' => 'left', |
|
112 | + ), |
|
113 | + ), |
|
114 | + 110 => array( |
|
115 | + 'id' => 'espresso_event_editor_event_options', |
|
116 | + 'content' => $this->_event_registration_options_stop(), |
|
117 | + 'options' => array( |
|
118 | + 'tipLocation' => 'left', |
|
119 | + ), |
|
120 | + ), |
|
121 | + 120 => array( |
|
122 | + 'id' => 'submitpost', |
|
123 | + 'content' => $this->_publish_event_stop(), |
|
124 | + 'options' => array( |
|
125 | + 'tipLocation' => 'left', |
|
126 | + ), |
|
127 | + ), |
|
128 | + |
|
129 | + ); |
|
130 | + } |
|
131 | + |
|
132 | + |
|
133 | + protected function _start() |
|
134 | + { |
|
135 | + $content = '<h3>' . __('Event Editor', 'event_espresso') . '</h3>'; |
|
136 | + $content .= '<p>' |
|
137 | + . __( |
|
138 | + 'This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', |
|
139 | + 'event_espresso' |
|
140 | + ) . '</p>'; |
|
141 | + return $content; |
|
142 | + } |
|
143 | + |
|
144 | + protected function _event_title_stop() |
|
145 | + { |
|
146 | + return '<p>Enter the title for your event in this field.</p>'; |
|
147 | + } |
|
148 | + |
|
149 | + protected function _event_description_stop() |
|
150 | + { |
|
151 | + return '<p>' |
|
152 | + . __( |
|
153 | + 'The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', |
|
154 | + 'event_espresso' |
|
155 | + ) . '</p>'; |
|
156 | + } |
|
157 | + |
|
158 | + protected function _event_venues_caf() |
|
159 | + { |
|
160 | + return '<p>' |
|
161 | + . __( |
|
162 | + 'In this section, you can select the venue that is hosting your event.', |
|
163 | + 'event_espresso' |
|
164 | + ) . '</p>'; |
|
165 | + } |
|
166 | + |
|
167 | + protected function _event_venues_stop() |
|
168 | + { |
|
169 | + return '<p>' |
|
170 | + . __( |
|
171 | + 'In this section, you can enter information about the venue that is hosting your event.', |
|
172 | + 'event_espresso' |
|
173 | + ) . '</p>'; |
|
174 | + } |
|
175 | + |
|
176 | + protected function _event_pricing_stop() |
|
177 | + { |
|
178 | + return '<p>' |
|
179 | + . __( |
|
180 | + 'Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
181 | + 'event_espresso' |
|
182 | + ) . '</p>'; |
|
183 | + } |
|
184 | + |
|
185 | + protected function _event_pricing_caf() |
|
186 | + { |
|
187 | + return '<p>' |
|
188 | + . __( |
|
189 | + 'Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
|
190 | + 'event_espresso' |
|
191 | + ) . '</p>'; |
|
192 | + } |
|
193 | + |
|
194 | + protected function _event_registration_options_stop() |
|
195 | + { |
|
196 | + return '<p>' . __('Setup custom options for your event registration.', 'event_espresso') . '</p>'; |
|
197 | + } |
|
198 | + |
|
199 | + protected function _event_post_tag_stop() |
|
200 | + { |
|
201 | + return '<p>' . __('Quickly add tags to your event.', 'event_espresso') . '</p>'; |
|
202 | + } |
|
203 | + |
|
204 | + protected function _event_categories_stop() |
|
205 | + { |
|
206 | + return '<p>' . __('Events can also be categorized if you wish.', 'event_espresso') . '</p>'; |
|
207 | + } |
|
208 | + |
|
209 | + protected function _primary_question_stop_caf() |
|
210 | + { |
|
211 | + return '<p>' |
|
212 | + . __( |
|
213 | + 'Use the questions group to request information from your primary registrant.', |
|
214 | + 'event_espresso' |
|
215 | + ) . '</p>'; |
|
216 | + } |
|
217 | + |
|
218 | + protected function _additional_questions_stop_caf() |
|
219 | + { |
|
220 | + return '<p>' |
|
221 | + . __( |
|
222 | + 'Use the questions group to request information from your additional registrant.', |
|
223 | + 'event_espresso' |
|
224 | + ) . '</p>'; |
|
225 | + } |
|
226 | + |
|
227 | + protected function _featured_image_stop() |
|
228 | + { |
|
229 | + return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>'; |
|
230 | + } |
|
231 | + |
|
232 | + protected function _publish_event_stop() |
|
233 | + { |
|
234 | + return '<p>' |
|
235 | + . __( |
|
236 | + 'Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', |
|
237 | + 'event_espresso' |
|
238 | + ) . '</p>'; |
|
239 | + } |
|
240 | 240 | } |
@@ -125,12 +125,12 @@ discard block |
||
125 | 125 | |
126 | 126 | protected function _start() |
127 | 127 | { |
128 | - $content = '<h3>' . __('Event Editor', 'event_espresso') . '</h3>'; |
|
128 | + $content = '<h3>'.__('Event Editor', 'event_espresso').'</h3>'; |
|
129 | 129 | $content .= '<p>' |
130 | 130 | . __( |
131 | 131 | 'This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', |
132 | 132 | 'event_espresso' |
133 | - ) . '</p>'; |
|
133 | + ).'</p>'; |
|
134 | 134 | return $content; |
135 | 135 | } |
136 | 136 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | . __( |
146 | 146 | 'The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', |
147 | 147 | 'event_espresso' |
148 | - ) . '</p>'; |
|
148 | + ).'</p>'; |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | protected function _event_venues_caf() |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | . __( |
155 | 155 | 'In this section, you can select the venue that is hosting your event.', |
156 | 156 | 'event_espresso' |
157 | - ) . '</p>'; |
|
157 | + ).'</p>'; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | protected function _event_venues_stop() |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | . __( |
164 | 164 | 'In this section, you can enter information about the venue that is hosting your event.', |
165 | 165 | 'event_espresso' |
166 | - ) . '</p>'; |
|
166 | + ).'</p>'; |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | protected function _event_pricing_stop() |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | . __( |
173 | 173 | 'Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
174 | 174 | 'event_espresso' |
175 | - ) . '</p>'; |
|
175 | + ).'</p>'; |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | protected function _event_pricing_caf() |
@@ -181,22 +181,22 @@ discard block |
||
181 | 181 | . __( |
182 | 182 | 'Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', |
183 | 183 | 'event_espresso' |
184 | - ) . '</p>'; |
|
184 | + ).'</p>'; |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | protected function _event_registration_options_stop() |
188 | 188 | { |
189 | - return '<p>' . __('Setup custom options for your event registration.', 'event_espresso') . '</p>'; |
|
189 | + return '<p>'.__('Setup custom options for your event registration.', 'event_espresso').'</p>'; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | protected function _event_post_tag_stop() |
193 | 193 | { |
194 | - return '<p>' . __('Quickly add tags to your event.', 'event_espresso') . '</p>'; |
|
194 | + return '<p>'.__('Quickly add tags to your event.', 'event_espresso').'</p>'; |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | protected function _event_categories_stop() |
198 | 198 | { |
199 | - return '<p>' . __('Events can also be categorized if you wish.', 'event_espresso') . '</p>'; |
|
199 | + return '<p>'.__('Events can also be categorized if you wish.', 'event_espresso').'</p>'; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | protected function _primary_question_stop_caf() |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | . __( |
206 | 206 | 'Use the questions group to request information from your primary registrant.', |
207 | 207 | 'event_espresso' |
208 | - ) . '</p>'; |
|
208 | + ).'</p>'; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | protected function _additional_questions_stop_caf() |
@@ -214,12 +214,12 @@ discard block |
||
214 | 214 | . __( |
215 | 215 | 'Use the questions group to request information from your additional registrant.', |
216 | 216 | 'event_espresso' |
217 | - ) . '</p>'; |
|
217 | + ).'</p>'; |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | protected function _featured_image_stop() |
221 | 221 | { |
222 | - return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>'; |
|
222 | + return '<p>'.__('Set a feature image for your event here.', 'event_espresso').'</p>'; |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | protected function _publish_event_stop() |
@@ -228,6 +228,6 @@ discard block |
||
228 | 228 | . __( |
229 | 229 | 'Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', |
230 | 230 | 'event_espresso' |
231 | - ) . '</p>'; |
|
231 | + ).'</p>'; |
|
232 | 232 | } |
233 | 233 | } |
@@ -15,77 +15,77 @@ |
||
15 | 15 | class Event_Edit_Category_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Edit Category Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'event-edit-category-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Edit Category Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'event-edit-category-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_stop_one(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'category_name', |
|
33 | - 'content' => $this->_stop_two(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'right', |
|
36 | - 'tipAdjustmentY' => -55, |
|
37 | - 'tipAdjustmentX' => 5, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'cat_id', |
|
42 | - 'content' => $this->_stop_three(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'right', |
|
45 | - 'tipAdjustmentY' => -55, |
|
46 | - 'tipAdjustmentX' => 5, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'category_desc', |
|
51 | - 'content' => $this->_stop_four(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentY' => -75, |
|
55 | - 'tipAdjustmentX' => 250, |
|
56 | - ), |
|
57 | - ), |
|
58 | - ); |
|
59 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_stop_one(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'category_name', |
|
33 | + 'content' => $this->_stop_two(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'right', |
|
36 | + 'tipAdjustmentY' => -55, |
|
37 | + 'tipAdjustmentX' => 5, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'cat_id', |
|
42 | + 'content' => $this->_stop_three(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'right', |
|
45 | + 'tipAdjustmentY' => -55, |
|
46 | + 'tipAdjustmentX' => 5, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'category_desc', |
|
51 | + 'content' => $this->_stop_four(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentY' => -75, |
|
55 | + 'tipAdjustmentX' => 250, |
|
56 | + ), |
|
57 | + ), |
|
58 | + ); |
|
59 | + } |
|
60 | 60 | |
61 | 61 | |
62 | - protected function _stop_one() |
|
63 | - { |
|
64 | - $content = '<h3>' . __('Edit Event Category', 'event_espresso') . '</h3>'; |
|
65 | - $content .= '<p>' |
|
66 | - . __( |
|
67 | - 'This tour of the Edit Event Category page will go over different areas of the screen to help you understand what they are used for.', |
|
68 | - 'event_espresso' |
|
69 | - ) . '</p>'; |
|
70 | - return $content; |
|
71 | - } |
|
62 | + protected function _stop_one() |
|
63 | + { |
|
64 | + $content = '<h3>' . __('Edit Event Category', 'event_espresso') . '</h3>'; |
|
65 | + $content .= '<p>' |
|
66 | + . __( |
|
67 | + 'This tour of the Edit Event Category page will go over different areas of the screen to help you understand what they are used for.', |
|
68 | + 'event_espresso' |
|
69 | + ) . '</p>'; |
|
70 | + return $content; |
|
71 | + } |
|
72 | 72 | |
73 | - protected function _stop_two() |
|
74 | - { |
|
75 | - return '<p>' . __('Edit the name for your category.', 'event_espresso') . '</p>'; |
|
76 | - } |
|
73 | + protected function _stop_two() |
|
74 | + { |
|
75 | + return '<p>' . __('Edit the name for your category.', 'event_espresso') . '</p>'; |
|
76 | + } |
|
77 | 77 | |
78 | - protected function _stop_three() |
|
79 | - { |
|
80 | - return '<p>' . __('The unique ID for your category cannot be changed.', 'event_espresso') . '</p>'; |
|
81 | - } |
|
78 | + protected function _stop_three() |
|
79 | + { |
|
80 | + return '<p>' . __('The unique ID for your category cannot be changed.', 'event_espresso') . '</p>'; |
|
81 | + } |
|
82 | 82 | |
83 | - protected function _stop_four() |
|
84 | - { |
|
85 | - return '<p>' |
|
86 | - . __( |
|
87 | - 'The rich text editor can be used to edit information about your category. Images and links can also be added or removed along with your text.', |
|
88 | - 'event_espresso' |
|
89 | - ) . '</p>'; |
|
90 | - } |
|
83 | + protected function _stop_four() |
|
84 | + { |
|
85 | + return '<p>' |
|
86 | + . __( |
|
87 | + 'The rich text editor can be used to edit information about your category. Images and links can also be added or removed along with your text.', |
|
88 | + 'event_espresso' |
|
89 | + ) . '</p>'; |
|
90 | + } |
|
91 | 91 | } |
@@ -61,23 +61,23 @@ discard block |
||
61 | 61 | |
62 | 62 | protected function _stop_one() |
63 | 63 | { |
64 | - $content = '<h3>' . __('Edit Event Category', 'event_espresso') . '</h3>'; |
|
64 | + $content = '<h3>'.__('Edit Event Category', 'event_espresso').'</h3>'; |
|
65 | 65 | $content .= '<p>' |
66 | 66 | . __( |
67 | 67 | 'This tour of the Edit Event Category page will go over different areas of the screen to help you understand what they are used for.', |
68 | 68 | 'event_espresso' |
69 | - ) . '</p>'; |
|
69 | + ).'</p>'; |
|
70 | 70 | return $content; |
71 | 71 | } |
72 | 72 | |
73 | 73 | protected function _stop_two() |
74 | 74 | { |
75 | - return '<p>' . __('Edit the name for your category.', 'event_espresso') . '</p>'; |
|
75 | + return '<p>'.__('Edit the name for your category.', 'event_espresso').'</p>'; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | protected function _stop_three() |
79 | 79 | { |
80 | - return '<p>' . __('The unique ID for your category cannot be changed.', 'event_espresso') . '</p>'; |
|
80 | + return '<p>'.__('The unique ID for your category cannot be changed.', 'event_espresso').'</p>'; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | protected function _stop_four() |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | . __( |
87 | 87 | 'The rich text editor can be used to edit information about your category. Images and links can also be added or removed along with your text.', |
88 | 88 | 'event_espresso' |
89 | - ) . '</p>'; |
|
89 | + ).'</p>'; |
|
90 | 90 | } |
91 | 91 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | : array(); |
136 | 136 | $EQGids = array_keys($EQGs); |
137 | 137 | |
138 | - if (! empty($QSGs)) { |
|
138 | + if ( ! empty($QSGs)) { |
|
139 | 139 | $html = count($QSGs) > 10 ? '<div style="height:250px;overflow:auto;">' : ''; |
140 | 140 | foreach ($QSGs as $QSG) { |
141 | 141 | $checked = in_array($QSG->ID(), $EQGids, true) |
@@ -155,16 +155,16 @@ discard block |
||
155 | 155 | ); |
156 | 156 | |
157 | 157 | $html .= ' |
158 | - <p id="event-question-group-' . $QSG->ID() . '"> |
|
159 | - <input value="' . $QSG->ID() . '" type="checkbox"' |
|
158 | + <p id="event-question-group-' . $QSG->ID().'"> |
|
159 | + <input value="' . $QSG->ID().'" type="checkbox"' |
|
160 | 160 | . $visibility |
161 | - . ' name="question_groups[' . $QSG->ID() . ']"' . $checked . ' /> |
|
162 | - <a href="' . $edit_link . '" title="' |
|
161 | + . ' name="question_groups['.$QSG->ID().']"'.$checked.' /> |
|
162 | + <a href="' . $edit_link.'" title="' |
|
163 | 163 | . sprintf( |
164 | 164 | esc_attr__('Edit %s Group', 'event_espresso'), |
165 | 165 | $QSG->get('QSG_name') |
166 | 166 | ) |
167 | - . '" target="_blank">' . $QSG->get('QSG_name') . '</a> |
|
167 | + . '" target="_blank">'.$QSG->get('QSG_name').'</a> |
|
168 | 168 | </p>'; |
169 | 169 | } |
170 | 170 | $html .= count($QSGs) > 10 ? '</div>' : ''; |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | $current_qgs = array_keys($current_qgs); // we just want the ids |
204 | 204 | |
205 | 205 | // now let's get the groups selected in the editor and update (IF we have data) |
206 | - if (! empty($question_groups)) { |
|
206 | + if ( ! empty($question_groups)) { |
|
207 | 207 | foreach ($question_groups as $id => $val) { |
208 | 208 | // add to event |
209 | 209 | if ($val) { |
@@ -16,210 +16,210 @@ |
||
16 | 16 | class espresso_events_Registration_Form_Hooks extends EE_Admin_Hooks |
17 | 17 | { |
18 | 18 | |
19 | - /** |
|
20 | - * @var EE_Event|null |
|
21 | - */ |
|
22 | - protected $_event; |
|
23 | - |
|
24 | - |
|
25 | - protected function _set_hooks_properties() |
|
26 | - { |
|
27 | - |
|
28 | - $this->_name = 'registration_form'; |
|
29 | - $this->_metaboxes = array( |
|
30 | - 0 => array( |
|
31 | - 'page_route' => array('edit', 'create_new'), |
|
32 | - 'func' => 'primary_questions', |
|
33 | - 'label' => esc_html__('Questions for Primary Registrant', 'event_espresso'), |
|
34 | - 'priority' => 'default', |
|
35 | - 'context' => 'side', |
|
36 | - ), |
|
37 | - ); |
|
38 | - |
|
39 | - // hook into the handler for saving question groups |
|
40 | - add_filter( |
|
41 | - 'FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', |
|
42 | - array($this, 'modify_callbacks'), |
|
43 | - 10 |
|
44 | - ); |
|
45 | - |
|
46 | - // hook into revision restores (we're hooking into the global action because EE_Admin_Hooks classes are already |
|
47 | - // restricted by page) |
|
48 | - add_action('AHEE_EE_Admin_Page_CPT__restore_revision', array($this, 'restore_revision'), 10, 2); |
|
49 | - } |
|
50 | - |
|
51 | - |
|
52 | - /** |
|
53 | - * Callback for FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks hook |
|
54 | - * |
|
55 | - * @param $callbacks |
|
56 | - * @return array |
|
57 | - */ |
|
58 | - public function modify_callbacks($callbacks) |
|
59 | - { |
|
60 | - // now let's add the question group callback |
|
61 | - $callbacks[] = array($this, 'primary_question_group_update'); |
|
62 | - return $callbacks; |
|
63 | - } |
|
64 | - |
|
65 | - |
|
66 | - /** |
|
67 | - * Hooked into revision restores. |
|
68 | - * |
|
69 | - * @param $post_id |
|
70 | - * @param $revision_id |
|
71 | - * @return EE_Base_Class |
|
72 | - * @throws EE_Error |
|
73 | - * @throws InvalidArgumentException |
|
74 | - * @throws ReflectionException |
|
75 | - * @throws InvalidDataTypeException |
|
76 | - * @throws InvalidInterfaceException |
|
77 | - */ |
|
78 | - public function restore_revision($post_id, $revision_id) |
|
79 | - { |
|
80 | - $EVT_MDL = EE_Registry::instance()->load_model('Event'); |
|
81 | - $post_evt = $EVT_MDL->get_one_by_ID($post_id); |
|
82 | - // restore revision for primary questions |
|
83 | - $post_evt->restore_revision( |
|
84 | - $revision_id, |
|
85 | - ['Question_Group'], |
|
86 | - ['Question_Group' => ['Event_Question_Group.EQG_primary' => true]] |
|
87 | - ); |
|
88 | - return $post_evt; |
|
89 | - } |
|
90 | - |
|
91 | - |
|
92 | - /** |
|
93 | - * Content of metabox. |
|
94 | - * |
|
95 | - * @param $post_id |
|
96 | - * @param $post |
|
97 | - * @throws EE_Error |
|
98 | - * @throws InvalidArgumentException |
|
99 | - * @throws InvalidDataTypeException |
|
100 | - * @throws InvalidInterfaceException |
|
101 | - */ |
|
102 | - public function primary_questions($post_id, $post) |
|
103 | - { |
|
104 | - $this->_event = $this->_adminpage_obj->get_event_object(); |
|
105 | - $event_id = $this->_event->ID(); |
|
106 | - ?> |
|
19 | + /** |
|
20 | + * @var EE_Event|null |
|
21 | + */ |
|
22 | + protected $_event; |
|
23 | + |
|
24 | + |
|
25 | + protected function _set_hooks_properties() |
|
26 | + { |
|
27 | + |
|
28 | + $this->_name = 'registration_form'; |
|
29 | + $this->_metaboxes = array( |
|
30 | + 0 => array( |
|
31 | + 'page_route' => array('edit', 'create_new'), |
|
32 | + 'func' => 'primary_questions', |
|
33 | + 'label' => esc_html__('Questions for Primary Registrant', 'event_espresso'), |
|
34 | + 'priority' => 'default', |
|
35 | + 'context' => 'side', |
|
36 | + ), |
|
37 | + ); |
|
38 | + |
|
39 | + // hook into the handler for saving question groups |
|
40 | + add_filter( |
|
41 | + 'FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', |
|
42 | + array($this, 'modify_callbacks'), |
|
43 | + 10 |
|
44 | + ); |
|
45 | + |
|
46 | + // hook into revision restores (we're hooking into the global action because EE_Admin_Hooks classes are already |
|
47 | + // restricted by page) |
|
48 | + add_action('AHEE_EE_Admin_Page_CPT__restore_revision', array($this, 'restore_revision'), 10, 2); |
|
49 | + } |
|
50 | + |
|
51 | + |
|
52 | + /** |
|
53 | + * Callback for FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks hook |
|
54 | + * |
|
55 | + * @param $callbacks |
|
56 | + * @return array |
|
57 | + */ |
|
58 | + public function modify_callbacks($callbacks) |
|
59 | + { |
|
60 | + // now let's add the question group callback |
|
61 | + $callbacks[] = array($this, 'primary_question_group_update'); |
|
62 | + return $callbacks; |
|
63 | + } |
|
64 | + |
|
65 | + |
|
66 | + /** |
|
67 | + * Hooked into revision restores. |
|
68 | + * |
|
69 | + * @param $post_id |
|
70 | + * @param $revision_id |
|
71 | + * @return EE_Base_Class |
|
72 | + * @throws EE_Error |
|
73 | + * @throws InvalidArgumentException |
|
74 | + * @throws ReflectionException |
|
75 | + * @throws InvalidDataTypeException |
|
76 | + * @throws InvalidInterfaceException |
|
77 | + */ |
|
78 | + public function restore_revision($post_id, $revision_id) |
|
79 | + { |
|
80 | + $EVT_MDL = EE_Registry::instance()->load_model('Event'); |
|
81 | + $post_evt = $EVT_MDL->get_one_by_ID($post_id); |
|
82 | + // restore revision for primary questions |
|
83 | + $post_evt->restore_revision( |
|
84 | + $revision_id, |
|
85 | + ['Question_Group'], |
|
86 | + ['Question_Group' => ['Event_Question_Group.EQG_primary' => true]] |
|
87 | + ); |
|
88 | + return $post_evt; |
|
89 | + } |
|
90 | + |
|
91 | + |
|
92 | + /** |
|
93 | + * Content of metabox. |
|
94 | + * |
|
95 | + * @param $post_id |
|
96 | + * @param $post |
|
97 | + * @throws EE_Error |
|
98 | + * @throws InvalidArgumentException |
|
99 | + * @throws InvalidDataTypeException |
|
100 | + * @throws InvalidInterfaceException |
|
101 | + */ |
|
102 | + public function primary_questions($post_id, $post) |
|
103 | + { |
|
104 | + $this->_event = $this->_adminpage_obj->get_event_object(); |
|
105 | + $event_id = $this->_event->ID(); |
|
106 | + ?> |
|
107 | 107 | <div class="inside"> |
108 | 108 | <p><strong> |
109 | 109 | <?php _e('Question Groups', 'event_espresso'); ?> |
110 | 110 | </strong><br/> |
111 | 111 | <?php |
112 | - printf( |
|
113 | - esc_html__( |
|
114 | - 'Add a pre-populated %1$sgroup of questions%2$s to your event. The personal information group is required for all events', |
|
115 | - 'event_espresso' |
|
116 | - ), |
|
117 | - '<a href="admin.php?page=espresso_registration_form" target="_blank">', |
|
118 | - '</a>' |
|
119 | - ) |
|
120 | - ?> |
|
112 | + printf( |
|
113 | + esc_html__( |
|
114 | + 'Add a pre-populated %1$sgroup of questions%2$s to your event. The personal information group is required for all events', |
|
115 | + 'event_espresso' |
|
116 | + ), |
|
117 | + '<a href="admin.php?page=espresso_registration_form" target="_blank">', |
|
118 | + '</a>' |
|
119 | + ) |
|
120 | + ?> |
|
121 | 121 | </p> |
122 | 122 | <?php |
123 | 123 | |
124 | - $qsg_where['QSG_deleted'] = false; |
|
125 | - $query_params = apply_filters( |
|
126 | - 'FHEE__espresso_events_Registration_Form_Hooks__primary_questions__question_group_query_parameters', |
|
127 | - array($qsg_where, 'order_by' => array('QSG_order' => 'ASC')) |
|
128 | - ); |
|
129 | - $QSGs = EEM_Question_Group::instance()->get_all($query_params); |
|
130 | - $EQGs = ! empty($event_id) |
|
131 | - ? $this->_event->get_many_related( |
|
132 | - 'Question_Group', |
|
133 | - [['Event_Question_Group.EQG_primary' => true]] |
|
134 | - ) |
|
135 | - : array(); |
|
136 | - $EQGids = array_keys($EQGs); |
|
137 | - |
|
138 | - if (! empty($QSGs)) { |
|
139 | - $html = count($QSGs) > 10 ? '<div style="height:250px;overflow:auto;">' : ''; |
|
140 | - foreach ($QSGs as $QSG) { |
|
141 | - $checked = in_array($QSG->ID(), $EQGids, true) |
|
142 | - || $QSG->get('QSG_system') === 1 |
|
143 | - ? ' checked="checked"' |
|
144 | - : ''; |
|
145 | - $visibility = $QSG->get('QSG_system') === 1 |
|
146 | - ? ' style="visibility:hidden"' |
|
147 | - : ''; |
|
148 | - $edit_query_args = $this->_adminpage_obj->is_caf() ? array( |
|
149 | - 'action' => 'edit_question_group', |
|
150 | - 'QSG_ID' => $QSG->ID(), |
|
151 | - ) : array('action' => 'question_groups'); |
|
152 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce( |
|
153 | - $edit_query_args, |
|
154 | - EE_FORMS_ADMIN_URL |
|
155 | - ); |
|
156 | - |
|
157 | - $html .= ' |
|
124 | + $qsg_where['QSG_deleted'] = false; |
|
125 | + $query_params = apply_filters( |
|
126 | + 'FHEE__espresso_events_Registration_Form_Hooks__primary_questions__question_group_query_parameters', |
|
127 | + array($qsg_where, 'order_by' => array('QSG_order' => 'ASC')) |
|
128 | + ); |
|
129 | + $QSGs = EEM_Question_Group::instance()->get_all($query_params); |
|
130 | + $EQGs = ! empty($event_id) |
|
131 | + ? $this->_event->get_many_related( |
|
132 | + 'Question_Group', |
|
133 | + [['Event_Question_Group.EQG_primary' => true]] |
|
134 | + ) |
|
135 | + : array(); |
|
136 | + $EQGids = array_keys($EQGs); |
|
137 | + |
|
138 | + if (! empty($QSGs)) { |
|
139 | + $html = count($QSGs) > 10 ? '<div style="height:250px;overflow:auto;">' : ''; |
|
140 | + foreach ($QSGs as $QSG) { |
|
141 | + $checked = in_array($QSG->ID(), $EQGids, true) |
|
142 | + || $QSG->get('QSG_system') === 1 |
|
143 | + ? ' checked="checked"' |
|
144 | + : ''; |
|
145 | + $visibility = $QSG->get('QSG_system') === 1 |
|
146 | + ? ' style="visibility:hidden"' |
|
147 | + : ''; |
|
148 | + $edit_query_args = $this->_adminpage_obj->is_caf() ? array( |
|
149 | + 'action' => 'edit_question_group', |
|
150 | + 'QSG_ID' => $QSG->ID(), |
|
151 | + ) : array('action' => 'question_groups'); |
|
152 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce( |
|
153 | + $edit_query_args, |
|
154 | + EE_FORMS_ADMIN_URL |
|
155 | + ); |
|
156 | + |
|
157 | + $html .= ' |
|
158 | 158 | <p id="event-question-group-' . $QSG->ID() . '"> |
159 | 159 | <input value="' . $QSG->ID() . '" type="checkbox"' |
160 | - . $visibility |
|
161 | - . ' name="question_groups[' . $QSG->ID() . ']"' . $checked . ' /> |
|
160 | + . $visibility |
|
161 | + . ' name="question_groups[' . $QSG->ID() . ']"' . $checked . ' /> |
|
162 | 162 | <a href="' . $edit_link . '" title="' |
163 | - . sprintf( |
|
164 | - esc_attr__('Edit %s Group', 'event_espresso'), |
|
165 | - $QSG->get('QSG_name') |
|
166 | - ) |
|
167 | - . '" target="_blank">' . $QSG->get('QSG_name') . '</a> |
|
163 | + . sprintf( |
|
164 | + esc_attr__('Edit %s Group', 'event_espresso'), |
|
165 | + $QSG->get('QSG_name') |
|
166 | + ) |
|
167 | + . '" target="_blank">' . $QSG->get('QSG_name') . '</a> |
|
168 | 168 | </p>'; |
169 | - } |
|
170 | - $html .= count($QSGs) > 10 ? '</div>' : ''; |
|
171 | - |
|
172 | - echo $html; |
|
173 | - } else { |
|
174 | - esc_html_e( |
|
175 | - 'There seems to be a problem with your questions. Please contact [email protected]', |
|
176 | - 'event_espresso' |
|
177 | - ); |
|
178 | - } |
|
179 | - do_action('AHEE_event_editor_questions_notice'); |
|
180 | - ?> |
|
169 | + } |
|
170 | + $html .= count($QSGs) > 10 ? '</div>' : ''; |
|
171 | + |
|
172 | + echo $html; |
|
173 | + } else { |
|
174 | + esc_html_e( |
|
175 | + 'There seems to be a problem with your questions. Please contact [email protected]', |
|
176 | + 'event_espresso' |
|
177 | + ); |
|
178 | + } |
|
179 | + do_action('AHEE_event_editor_questions_notice'); |
|
180 | + ?> |
|
181 | 181 | </div> |
182 | 182 | <?php |
183 | - } |
|
184 | - |
|
185 | - |
|
186 | - /** |
|
187 | - * @param EE_Event $evtobj |
|
188 | - * @param array $data |
|
189 | - * @return bool |
|
190 | - * @throws EE_Error |
|
191 | - */ |
|
192 | - public function primary_question_group_update($evtobj, $data) |
|
193 | - { |
|
194 | - $question_groups = ! empty($data['question_groups']) ? (array) $data['question_groups'] : array(); |
|
195 | - $added_qgs = array_keys($question_groups); |
|
196 | - $success = array(); |
|
197 | - |
|
198 | - // let's get all current question groups associated with this event. |
|
199 | - $current_qgs = $evtobj->get_many_related( |
|
200 | - 'Question_Group', |
|
201 | - [['Event_Question_Group.EQG_primary' => true]] |
|
202 | - ); |
|
203 | - $current_qgs = array_keys($current_qgs); // we just want the ids |
|
204 | - |
|
205 | - // now let's get the groups selected in the editor and update (IF we have data) |
|
206 | - if (! empty($question_groups)) { |
|
207 | - foreach ($question_groups as $id => $val) { |
|
208 | - // add to event |
|
209 | - if ($val) { |
|
210 | - $qg = $evtobj->_add_relation_to($id, 'Question_Group', ['EQG_primary' => true]); |
|
211 | - } |
|
212 | - $success[] = ! empty($qg) ? 1 : 0; |
|
213 | - } |
|
214 | - } |
|
215 | - |
|
216 | - // wait a minute... are there question groups missing in the saved groups that ARE with the current event? |
|
217 | - $removed_qgs = array_diff($current_qgs, $added_qgs); |
|
218 | - |
|
219 | - foreach ($removed_qgs as $qgid) { |
|
220 | - $qg = $evtobj->_remove_relation_to($qgid, 'Question_Group', ['EQG_primary' => true]); |
|
221 | - $success[] = ! empty($qg) ? 1 : 0; |
|
222 | - } |
|
223 | - return in_array(0, $success, true) ? false : true; |
|
224 | - } |
|
183 | + } |
|
184 | + |
|
185 | + |
|
186 | + /** |
|
187 | + * @param EE_Event $evtobj |
|
188 | + * @param array $data |
|
189 | + * @return bool |
|
190 | + * @throws EE_Error |
|
191 | + */ |
|
192 | + public function primary_question_group_update($evtobj, $data) |
|
193 | + { |
|
194 | + $question_groups = ! empty($data['question_groups']) ? (array) $data['question_groups'] : array(); |
|
195 | + $added_qgs = array_keys($question_groups); |
|
196 | + $success = array(); |
|
197 | + |
|
198 | + // let's get all current question groups associated with this event. |
|
199 | + $current_qgs = $evtobj->get_many_related( |
|
200 | + 'Question_Group', |
|
201 | + [['Event_Question_Group.EQG_primary' => true]] |
|
202 | + ); |
|
203 | + $current_qgs = array_keys($current_qgs); // we just want the ids |
|
204 | + |
|
205 | + // now let's get the groups selected in the editor and update (IF we have data) |
|
206 | + if (! empty($question_groups)) { |
|
207 | + foreach ($question_groups as $id => $val) { |
|
208 | + // add to event |
|
209 | + if ($val) { |
|
210 | + $qg = $evtobj->_add_relation_to($id, 'Question_Group', ['EQG_primary' => true]); |
|
211 | + } |
|
212 | + $success[] = ! empty($qg) ? 1 : 0; |
|
213 | + } |
|
214 | + } |
|
215 | + |
|
216 | + // wait a minute... are there question groups missing in the saved groups that ARE with the current event? |
|
217 | + $removed_qgs = array_diff($current_qgs, $added_qgs); |
|
218 | + |
|
219 | + foreach ($removed_qgs as $qgid) { |
|
220 | + $qg = $evtobj->_remove_relation_to($qgid, 'Question_Group', ['EQG_primary' => true]); |
|
221 | + $success[] = ! empty($qg) ? 1 : 0; |
|
222 | + } |
|
223 | + return in_array(0, $success, true) ? false : true; |
|
224 | + } |
|
225 | 225 | } |
@@ -15,123 +15,123 @@ |
||
15 | 15 | class Registration_Form_Edit_Question_Group_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Edit Question Group Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Edit Question Group Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'QSG_name', |
|
32 | - 'content' => $this->_qsg_name_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'top', |
|
35 | - 'tipAdjustmentX' => 0, |
|
36 | - 'tipAdjustmentY' => -35, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'QSG_identifier', |
|
41 | - 'content' => $this->_qsg_identifier_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'top', |
|
44 | - 'tipAdjustmentX' => 0, |
|
45 | - 'tipAdjustmentY' => -35, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'QSG_desc', |
|
50 | - 'content' => $this->_qsg_desc_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentX' => 0, |
|
54 | - 'tipAdjustmentY' => -35, |
|
55 | - ), |
|
56 | - ), |
|
57 | - 50 => array( |
|
58 | - 'id' => 'QSG_order', |
|
59 | - 'content' => $this->_qsg_order_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'top', |
|
62 | - 'tipAdjustmentX' => -20, |
|
63 | - 'tipAdjustmentY' => -35, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 60 => array( |
|
67 | - 'id' => 'QSG_show_group_name', |
|
68 | - 'content' => $this->_qsg_show_group_name_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'top', |
|
71 | - 'tipAdjustmentX' => 0, |
|
72 | - 'tipAdjustmentY' => -35, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 70 => array( |
|
76 | - 'id' => 'QSG_show_group_desc', |
|
77 | - 'content' => $this->_qsg_show_group_desc_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'top', |
|
80 | - 'tipAdjustmentX' => 0, |
|
81 | - 'tipAdjustmentY' => -35, |
|
82 | - ), |
|
83 | - ), |
|
84 | - ); |
|
85 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'QSG_name', |
|
32 | + 'content' => $this->_qsg_name_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'top', |
|
35 | + 'tipAdjustmentX' => 0, |
|
36 | + 'tipAdjustmentY' => -35, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'QSG_identifier', |
|
41 | + 'content' => $this->_qsg_identifier_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'top', |
|
44 | + 'tipAdjustmentX' => 0, |
|
45 | + 'tipAdjustmentY' => -35, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'QSG_desc', |
|
50 | + 'content' => $this->_qsg_desc_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentX' => 0, |
|
54 | + 'tipAdjustmentY' => -35, |
|
55 | + ), |
|
56 | + ), |
|
57 | + 50 => array( |
|
58 | + 'id' => 'QSG_order', |
|
59 | + 'content' => $this->_qsg_order_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'top', |
|
62 | + 'tipAdjustmentX' => -20, |
|
63 | + 'tipAdjustmentY' => -35, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 60 => array( |
|
67 | + 'id' => 'QSG_show_group_name', |
|
68 | + 'content' => $this->_qsg_show_group_name_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'top', |
|
71 | + 'tipAdjustmentX' => 0, |
|
72 | + 'tipAdjustmentY' => -35, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 70 => array( |
|
76 | + 'id' => 'QSG_show_group_desc', |
|
77 | + 'content' => $this->_qsg_show_group_desc_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'top', |
|
80 | + 'tipAdjustmentX' => 0, |
|
81 | + 'tipAdjustmentY' => -35, |
|
82 | + ), |
|
83 | + ), |
|
84 | + ); |
|
85 | + } |
|
86 | 86 | |
87 | 87 | |
88 | - protected function _start() |
|
89 | - { |
|
90 | - $content = '<h3>' . __('Edit Question Group', 'event_espresso') . '</h3>'; |
|
91 | - $content .= '<p>' |
|
92 | - . __( |
|
93 | - 'This tour of the Edit Question Group page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | - 'event_espresso' |
|
95 | - ) . '</p>'; |
|
88 | + protected function _start() |
|
89 | + { |
|
90 | + $content = '<h3>' . __('Edit Question Group', 'event_espresso') . '</h3>'; |
|
91 | + $content .= '<p>' |
|
92 | + . __( |
|
93 | + 'This tour of the Edit Question Group page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | + 'event_espresso' |
|
95 | + ) . '</p>'; |
|
96 | 96 | |
97 | - return $content; |
|
98 | - } |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _qsg_name_stop() |
|
101 | - { |
|
102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
103 | - } |
|
100 | + protected function _qsg_name_stop() |
|
101 | + { |
|
102 | + return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
103 | + } |
|
104 | 104 | |
105 | - protected function _qsg_identifier_stop() |
|
106 | - { |
|
107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
108 | - } |
|
105 | + protected function _qsg_identifier_stop() |
|
106 | + { |
|
107 | + return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
108 | + } |
|
109 | 109 | |
110 | - protected function _qsg_desc_stop() |
|
111 | - { |
|
112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
113 | - } |
|
110 | + protected function _qsg_desc_stop() |
|
111 | + { |
|
112 | + return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
113 | + } |
|
114 | 114 | |
115 | - protected function _qsg_order_stop() |
|
116 | - { |
|
117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
118 | - } |
|
115 | + protected function _qsg_order_stop() |
|
116 | + { |
|
117 | + return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
118 | + } |
|
119 | 119 | |
120 | - protected function _qsg_show_group_name_stop() |
|
121 | - { |
|
122 | - return '<p>' |
|
123 | - . __( |
|
124 | - 'Specify whether the group name should be shown on the registration page.', |
|
125 | - 'event_espresso' |
|
126 | - ) . '</p>'; |
|
127 | - } |
|
120 | + protected function _qsg_show_group_name_stop() |
|
121 | + { |
|
122 | + return '<p>' |
|
123 | + . __( |
|
124 | + 'Specify whether the group name should be shown on the registration page.', |
|
125 | + 'event_espresso' |
|
126 | + ) . '</p>'; |
|
127 | + } |
|
128 | 128 | |
129 | - protected function _qsg_show_group_desc_stop() |
|
130 | - { |
|
131 | - return '<p>' |
|
132 | - . __( |
|
133 | - 'Specify whether the group description should be shown on the registration page.', |
|
134 | - 'event_espresso' |
|
135 | - ) . '</p>'; |
|
136 | - } |
|
129 | + protected function _qsg_show_group_desc_stop() |
|
130 | + { |
|
131 | + return '<p>' |
|
132 | + . __( |
|
133 | + 'Specify whether the group description should be shown on the registration page.', |
|
134 | + 'event_espresso' |
|
135 | + ) . '</p>'; |
|
136 | + } |
|
137 | 137 | } |
@@ -87,34 +87,34 @@ discard block |
||
87 | 87 | |
88 | 88 | protected function _start() |
89 | 89 | { |
90 | - $content = '<h3>' . __('Edit Question Group', 'event_espresso') . '</h3>'; |
|
90 | + $content = '<h3>'.__('Edit Question Group', 'event_espresso').'</h3>'; |
|
91 | 91 | $content .= '<p>' |
92 | 92 | . __( |
93 | 93 | 'This tour of the Edit Question Group page will go over different areas of the screen to help you understand what they are used for.', |
94 | 94 | 'event_espresso' |
95 | - ) . '</p>'; |
|
95 | + ).'</p>'; |
|
96 | 96 | |
97 | 97 | return $content; |
98 | 98 | } |
99 | 99 | |
100 | 100 | protected function _qsg_name_stop() |
101 | 101 | { |
102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
102 | + return '<p>'.__('The name of the question group.', 'event_espresso').'</p>'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | protected function _qsg_identifier_stop() |
106 | 106 | { |
107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
107 | + return '<p>'.__('A unique name for your question group.', 'event_espresso').'</p>'; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | protected function _qsg_desc_stop() |
111 | 111 | { |
112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
112 | + return '<p>'.__('A description of the question group.', 'event_espresso').'</p>'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | protected function _qsg_order_stop() |
116 | 116 | { |
117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
117 | + return '<p>'.__('Set the order that you want your question group to appear in.', 'event_espresso').'</p>'; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | protected function _qsg_show_group_name_stop() |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | . __( |
124 | 124 | 'Specify whether the group name should be shown on the registration page.', |
125 | 125 | 'event_espresso' |
126 | - ) . '</p>'; |
|
126 | + ).'</p>'; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | protected function _qsg_show_group_desc_stop() |
@@ -132,6 +132,6 @@ discard block |
||
132 | 132 | . __( |
133 | 133 | 'Specify whether the group description should be shown on the registration page.', |
134 | 134 | 'event_espresso' |
135 | - ) . '</p>'; |
|
135 | + ).'</p>'; |
|
136 | 136 | } |
137 | 137 | } |
@@ -15,148 +15,148 @@ |
||
15 | 15 | class Registration_Form_Question_Groups_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Question Groups Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'question-groups-caf-overview-joyride' : 'question-groups-overview-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Question Groups Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'question-groups-caf-overview-joyride' : 'question-groups-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 | - ); |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + ); |
|
32 | 32 | |
33 | - if ($this->_is_caf) { |
|
34 | - $this->_stops[20] = array( |
|
35 | - 'id' => 'name', |
|
36 | - 'content' => $this->_name_stop(), |
|
37 | - 'options' => array( |
|
38 | - 'tipLocation' => 'top', |
|
39 | - 'tipAdjustmentY' => -30, |
|
40 | - 'tipAdjustmentX' => 25, |
|
41 | - ), |
|
42 | - ); |
|
43 | - $this->_stops[30] = array( |
|
44 | - 'id' => 'description', |
|
45 | - 'content' => $this->_description_stop(), |
|
46 | - 'options' => array( |
|
47 | - 'tipLocation' => 'top', |
|
48 | - 'tipAdjustmentY' => -30, |
|
49 | - 'tipAdjustmentX' => 20, |
|
50 | - ), |
|
51 | - ); |
|
52 | - $this->_stops[40] = array( |
|
53 | - 'id' => 'show_group_name', |
|
54 | - 'content' => $this->_show_group_name_stop(), |
|
55 | - 'options' => array( |
|
56 | - 'tipLocation' => 'top', |
|
57 | - 'tipAdjustmentY' => -30, |
|
58 | - 'tipAdjustmentX' => 20, |
|
59 | - ), |
|
60 | - ); |
|
61 | - $this->_stops[50] = array( |
|
62 | - 'id' => 'show_group_desc', |
|
63 | - 'content' => $this->_show_group_description_stop(), |
|
64 | - 'options' => array( |
|
65 | - 'tipLocation' => 'top', |
|
66 | - 'tipAdjustmentY' => -30, |
|
67 | - 'tipAdjustmentX' => 20, |
|
68 | - ), |
|
69 | - ); |
|
70 | - $this->_stops[60] = array( |
|
71 | - 'class' => 'bulkactions', |
|
72 | - 'content' => $this->_bulk_actions_stop(), |
|
73 | - 'options' => array( |
|
74 | - 'tipLocation' => 'left', |
|
75 | - 'tipAdjustmentY' => -50, |
|
76 | - 'tipAdjustmentX' => -80, |
|
77 | - ), |
|
78 | - ); |
|
79 | - $this->_stops[70] = array( |
|
80 | - 'id' => 'add-new-question-group', |
|
81 | - 'content' => $this->_add_new_question_group_stop(), |
|
82 | - 'options' => array( |
|
83 | - 'tipLocation' => 'right', |
|
84 | - 'tipAdjustmentY' => -50, |
|
85 | - 'tipAdjustmentX' => 15, |
|
86 | - ), |
|
87 | - ); |
|
88 | - } |
|
89 | - } |
|
33 | + if ($this->_is_caf) { |
|
34 | + $this->_stops[20] = array( |
|
35 | + 'id' => 'name', |
|
36 | + 'content' => $this->_name_stop(), |
|
37 | + 'options' => array( |
|
38 | + 'tipLocation' => 'top', |
|
39 | + 'tipAdjustmentY' => -30, |
|
40 | + 'tipAdjustmentX' => 25, |
|
41 | + ), |
|
42 | + ); |
|
43 | + $this->_stops[30] = array( |
|
44 | + 'id' => 'description', |
|
45 | + 'content' => $this->_description_stop(), |
|
46 | + 'options' => array( |
|
47 | + 'tipLocation' => 'top', |
|
48 | + 'tipAdjustmentY' => -30, |
|
49 | + 'tipAdjustmentX' => 20, |
|
50 | + ), |
|
51 | + ); |
|
52 | + $this->_stops[40] = array( |
|
53 | + 'id' => 'show_group_name', |
|
54 | + 'content' => $this->_show_group_name_stop(), |
|
55 | + 'options' => array( |
|
56 | + 'tipLocation' => 'top', |
|
57 | + 'tipAdjustmentY' => -30, |
|
58 | + 'tipAdjustmentX' => 20, |
|
59 | + ), |
|
60 | + ); |
|
61 | + $this->_stops[50] = array( |
|
62 | + 'id' => 'show_group_desc', |
|
63 | + 'content' => $this->_show_group_description_stop(), |
|
64 | + 'options' => array( |
|
65 | + 'tipLocation' => 'top', |
|
66 | + 'tipAdjustmentY' => -30, |
|
67 | + 'tipAdjustmentX' => 20, |
|
68 | + ), |
|
69 | + ); |
|
70 | + $this->_stops[60] = array( |
|
71 | + 'class' => 'bulkactions', |
|
72 | + 'content' => $this->_bulk_actions_stop(), |
|
73 | + 'options' => array( |
|
74 | + 'tipLocation' => 'left', |
|
75 | + 'tipAdjustmentY' => -50, |
|
76 | + 'tipAdjustmentX' => -80, |
|
77 | + ), |
|
78 | + ); |
|
79 | + $this->_stops[70] = array( |
|
80 | + 'id' => 'add-new-question-group', |
|
81 | + 'content' => $this->_add_new_question_group_stop(), |
|
82 | + 'options' => array( |
|
83 | + 'tipLocation' => 'right', |
|
84 | + 'tipAdjustmentY' => -50, |
|
85 | + 'tipAdjustmentX' => 15, |
|
86 | + ), |
|
87 | + ); |
|
88 | + } |
|
89 | + } |
|
90 | 90 | |
91 | 91 | |
92 | - protected function _start() |
|
93 | - { |
|
94 | - $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
95 | - if ($this->_is_caf) { |
|
96 | - $content .= '<p>' |
|
97 | - . __( |
|
98 | - 'This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
99 | - 'event_espresso' |
|
100 | - ) . '</p>'; |
|
101 | - } else { |
|
102 | - $content .= '<p>' |
|
103 | - . __( |
|
104 | - 'Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
105 | - 'event_espresso' |
|
106 | - ) . '</p>'; |
|
107 | - } |
|
92 | + protected function _start() |
|
93 | + { |
|
94 | + $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
95 | + if ($this->_is_caf) { |
|
96 | + $content .= '<p>' |
|
97 | + . __( |
|
98 | + 'This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
99 | + 'event_espresso' |
|
100 | + ) . '</p>'; |
|
101 | + } else { |
|
102 | + $content .= '<p>' |
|
103 | + . __( |
|
104 | + 'Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
105 | + 'event_espresso' |
|
106 | + ) . '</p>'; |
|
107 | + } |
|
108 | 108 | |
109 | - return $content; |
|
110 | - } |
|
109 | + return $content; |
|
110 | + } |
|
111 | 111 | |
112 | - protected function _name_stop() |
|
113 | - { |
|
114 | - return '<p>' |
|
115 | - . __( |
|
116 | - 'View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
117 | - 'event_espresso' |
|
118 | - ) . '</p>'; |
|
119 | - } |
|
112 | + protected function _name_stop() |
|
113 | + { |
|
114 | + return '<p>' |
|
115 | + . __( |
|
116 | + 'View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
117 | + 'event_espresso' |
|
118 | + ) . '</p>'; |
|
119 | + } |
|
120 | 120 | |
121 | - protected function _description_stop() |
|
122 | - { |
|
123 | - return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
124 | - } |
|
121 | + protected function _description_stop() |
|
122 | + { |
|
123 | + return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
124 | + } |
|
125 | 125 | |
126 | - protected function _show_group_name_stop() |
|
127 | - { |
|
128 | - return '<p>' |
|
129 | - . __( |
|
130 | - 'View if the name of the question group should be shown to customers.', |
|
131 | - 'event_espresso' |
|
132 | - ) . '</p>'; |
|
133 | - } |
|
126 | + protected function _show_group_name_stop() |
|
127 | + { |
|
128 | + return '<p>' |
|
129 | + . __( |
|
130 | + 'View if the name of the question group should be shown to customers.', |
|
131 | + 'event_espresso' |
|
132 | + ) . '</p>'; |
|
133 | + } |
|
134 | 134 | |
135 | - protected function _show_group_description_stop() |
|
136 | - { |
|
137 | - return '<p>' |
|
138 | - . __( |
|
139 | - 'View if the description of the question group should be shown to customers.', |
|
140 | - 'event_espresso' |
|
141 | - ) . '</p>'; |
|
142 | - } |
|
135 | + protected function _show_group_description_stop() |
|
136 | + { |
|
137 | + return '<p>' |
|
138 | + . __( |
|
139 | + 'View if the description of the question group should be shown to customers.', |
|
140 | + 'event_espresso' |
|
141 | + ) . '</p>'; |
|
142 | + } |
|
143 | 143 | |
144 | - protected function _bulk_actions_stop() |
|
145 | - { |
|
146 | - return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
147 | - } |
|
144 | + protected function _bulk_actions_stop() |
|
145 | + { |
|
146 | + return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
147 | + } |
|
148 | 148 | |
149 | - protected function _search_stop() |
|
150 | - { |
|
151 | - return '<p>' |
|
152 | - . __( |
|
153 | - 'Search through questions. The following sources will be searched: question group name and question group description.', |
|
154 | - 'event_espresso' |
|
155 | - ) . '</p>'; |
|
156 | - } |
|
149 | + protected function _search_stop() |
|
150 | + { |
|
151 | + return '<p>' |
|
152 | + . __( |
|
153 | + 'Search through questions. The following sources will be searched: question group name and question group description.', |
|
154 | + 'event_espresso' |
|
155 | + ) . '</p>'; |
|
156 | + } |
|
157 | 157 | |
158 | - protected function _add_new_question_group_stop() |
|
159 | - { |
|
160 | - return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
161 | - } |
|
158 | + protected function _add_new_question_group_stop() |
|
159 | + { |
|
160 | + return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
161 | + } |
|
162 | 162 | } |
@@ -91,19 +91,19 @@ discard block |
||
91 | 91 | |
92 | 92 | protected function _start() |
93 | 93 | { |
94 | - $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
94 | + $content = '<h3>'.__('Question Groups', 'event_espresso').'</h3>'; |
|
95 | 95 | if ($this->_is_caf) { |
96 | 96 | $content .= '<p>' |
97 | 97 | . __( |
98 | 98 | 'This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
99 | 99 | 'event_espresso' |
100 | - ) . '</p>'; |
|
100 | + ).'</p>'; |
|
101 | 101 | } else { |
102 | 102 | $content .= '<p>' |
103 | 103 | . __( |
104 | 104 | 'Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
105 | 105 | 'event_espresso' |
106 | - ) . '</p>'; |
|
106 | + ).'</p>'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | return $content; |
@@ -115,12 +115,12 @@ discard block |
||
115 | 115 | . __( |
116 | 116 | 'View available questions groups. You can reorder your questions by dragging and dropping them.', |
117 | 117 | 'event_espresso' |
118 | - ) . '</p>'; |
|
118 | + ).'</p>'; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | protected function _description_stop() |
122 | 122 | { |
123 | - return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
123 | + return '<p>'.__('View the question group description.', 'event_espresso').'</p>'; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | protected function _show_group_name_stop() |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | . __( |
130 | 130 | 'View if the name of the question group should be shown to customers.', |
131 | 131 | 'event_espresso' |
132 | - ) . '</p>'; |
|
132 | + ).'</p>'; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | protected function _show_group_description_stop() |
@@ -138,12 +138,12 @@ discard block |
||
138 | 138 | . __( |
139 | 139 | 'View if the description of the question group should be shown to customers.', |
140 | 140 | 'event_espresso' |
141 | - ) . '</p>'; |
|
141 | + ).'</p>'; |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | protected function _bulk_actions_stop() |
145 | 145 | { |
146 | - return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
146 | + return '<p>'.__('Perform bulk actions to multiple question groups.', 'event_espresso').'</p>'; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | protected function _search_stop() |
@@ -152,11 +152,11 @@ discard block |
||
152 | 152 | . __( |
153 | 153 | 'Search through questions. The following sources will be searched: question group name and question group description.', |
154 | 154 | 'event_espresso' |
155 | - ) . '</p>'; |
|
155 | + ).'</p>'; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | protected function _add_new_question_group_stop() |
159 | 159 | { |
160 | - return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
160 | + return '<p>'.__('Click here to create a new question group.', 'event_espresso').'</p>'; |
|
161 | 161 | } |
162 | 162 | } |
@@ -15,115 +15,115 @@ |
||
15 | 15 | class Registration_Form_Settings_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Registration Form Settings Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'reg-form-settings-caf-joyride' : 'reg-form-settings-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Registration Form Settings Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'reg-form-settings-caf-joyride' : 'reg-form-settings-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'use_captcha', |
|
32 | - 'content' => $this->_use_recaptcha_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'top', |
|
35 | - 'tipAdjustmentX' => 0, |
|
36 | - 'tipAdjustmentY' => -35, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - /*'id' => 'recaptchapublickey',*/ |
|
41 | - 'content' => $this->_recaptcha_public_key_stop(), |
|
42 | - /*'options' => array( |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'use_captcha', |
|
32 | + 'content' => $this->_use_recaptcha_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'top', |
|
35 | + 'tipAdjustmentX' => 0, |
|
36 | + 'tipAdjustmentY' => -35, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + /*'id' => 'recaptchapublickey',*/ |
|
41 | + 'content' => $this->_recaptcha_public_key_stop(), |
|
42 | + /*'options' => array( |
|
43 | 43 | 'tipLocation' => 'top', |
44 | 44 | 'tipAdjustmentX' => 0, |
45 | 45 | 'tipAdjustmentY' => -35 |
46 | 46 | )*/ |
47 | - ), |
|
48 | - 40 => array( |
|
49 | - /*'id' => 'recaptchaprivatekey',*/ |
|
50 | - 'content' => $this->_recaptcha_private_key_stop(), |
|
51 | - /*'options' => array( |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + /*'id' => 'recaptchaprivatekey',*/ |
|
50 | + 'content' => $this->_recaptcha_private_key_stop(), |
|
51 | + /*'options' => array( |
|
52 | 52 | 'tipLocation' => 'top', |
53 | 53 | 'tipAdjustmentX' => 0, |
54 | 54 | 'tipAdjustmentY' => -35 |
55 | 55 | )*/ |
56 | - ), |
|
57 | - 50 => array( |
|
58 | - 'id' => 'recaptcha_theme', |
|
59 | - 'content' => $this->_recaptcha_theme_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'top', |
|
62 | - 'tipAdjustmentX' => -20, |
|
63 | - 'tipAdjustmentY' => -35, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 60 => array( |
|
67 | - 'id' => 'recaptcha_language', |
|
68 | - 'content' => $this->_recaptcha_language_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'top', |
|
71 | - 'tipAdjustmentX' => 0, |
|
72 | - 'tipAdjustmentY' => -35, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 70 => array( |
|
76 | - 'id' => 'recaptcha_language', |
|
77 | - 'content' => $this->_recaptcha_width_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'top', |
|
80 | - 'tipAdjustmentX' => 0, |
|
81 | - 'tipAdjustmentY' => 25, |
|
82 | - ), |
|
83 | - ), |
|
84 | - ); |
|
85 | - } |
|
56 | + ), |
|
57 | + 50 => array( |
|
58 | + 'id' => 'recaptcha_theme', |
|
59 | + 'content' => $this->_recaptcha_theme_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'top', |
|
62 | + 'tipAdjustmentX' => -20, |
|
63 | + 'tipAdjustmentY' => -35, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 60 => array( |
|
67 | + 'id' => 'recaptcha_language', |
|
68 | + 'content' => $this->_recaptcha_language_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'top', |
|
71 | + 'tipAdjustmentX' => 0, |
|
72 | + 'tipAdjustmentY' => -35, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 70 => array( |
|
76 | + 'id' => 'recaptcha_language', |
|
77 | + 'content' => $this->_recaptcha_width_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'top', |
|
80 | + 'tipAdjustmentX' => 0, |
|
81 | + 'tipAdjustmentY' => 25, |
|
82 | + ), |
|
83 | + ), |
|
84 | + ); |
|
85 | + } |
|
86 | 86 | |
87 | 87 | |
88 | - protected function _start() |
|
89 | - { |
|
90 | - $content = '<h3>' . __('Registration Form Settings', 'event_espresso') . '</h3>'; |
|
91 | - $content .= '<p>' |
|
92 | - . __( |
|
93 | - 'This tour of the Registration Form Settings page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | - 'event_espresso' |
|
95 | - ) . '</p>'; |
|
88 | + protected function _start() |
|
89 | + { |
|
90 | + $content = '<h3>' . __('Registration Form Settings', 'event_espresso') . '</h3>'; |
|
91 | + $content .= '<p>' |
|
92 | + . __( |
|
93 | + 'This tour of the Registration Form Settings page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | + 'event_espresso' |
|
95 | + ) . '</p>'; |
|
96 | 96 | |
97 | - return $content; |
|
98 | - } |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _use_recaptcha_stop() |
|
101 | - { |
|
102 | - return '<p>' . __('Specify whether reCAPTCHA should be enabled.', 'event_espresso') . '</p>'; |
|
103 | - } |
|
100 | + protected function _use_recaptcha_stop() |
|
101 | + { |
|
102 | + return '<p>' . __('Specify whether reCAPTCHA should be enabled.', 'event_espresso') . '</p>'; |
|
103 | + } |
|
104 | 104 | |
105 | - protected function _recaptcha_public_key_stop() |
|
106 | - { |
|
107 | - return '<p>' . __('Enter your public key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
108 | - } |
|
105 | + protected function _recaptcha_public_key_stop() |
|
106 | + { |
|
107 | + return '<p>' . __('Enter your public key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
108 | + } |
|
109 | 109 | |
110 | - protected function _recaptcha_private_key_stop() |
|
111 | - { |
|
112 | - return '<p>' . __('Enter your private key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
113 | - } |
|
110 | + protected function _recaptcha_private_key_stop() |
|
111 | + { |
|
112 | + return '<p>' . __('Enter your private key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
113 | + } |
|
114 | 114 | |
115 | - protected function _recaptcha_theme_stop() |
|
116 | - { |
|
117 | - return '<p>' . __('Select a theme (style) for your reCAPTCHA.', 'event_espresso') . '</p>'; |
|
118 | - } |
|
115 | + protected function _recaptcha_theme_stop() |
|
116 | + { |
|
117 | + return '<p>' . __('Select a theme (style) for your reCAPTCHA.', 'event_espresso') . '</p>'; |
|
118 | + } |
|
119 | 119 | |
120 | - protected function _recaptcha_language_stop() |
|
121 | - { |
|
122 | - return '<p>' . __('Specify the language that should be used for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
123 | - } |
|
120 | + protected function _recaptcha_language_stop() |
|
121 | + { |
|
122 | + return '<p>' . __('Specify the language that should be used for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
123 | + } |
|
124 | 124 | |
125 | - protected function _recaptcha_width_stop() |
|
126 | - { |
|
127 | - return '<p>' . __('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso') . '</p>'; |
|
128 | - } |
|
125 | + protected function _recaptcha_width_stop() |
|
126 | + { |
|
127 | + return '<p>' . __('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso') . '</p>'; |
|
128 | + } |
|
129 | 129 | } |
@@ -87,43 +87,43 @@ |
||
87 | 87 | |
88 | 88 | protected function _start() |
89 | 89 | { |
90 | - $content = '<h3>' . __('Registration Form Settings', 'event_espresso') . '</h3>'; |
|
90 | + $content = '<h3>'.__('Registration Form Settings', 'event_espresso').'</h3>'; |
|
91 | 91 | $content .= '<p>' |
92 | 92 | . __( |
93 | 93 | 'This tour of the Registration Form Settings page will go over different areas of the screen to help you understand what they are used for.', |
94 | 94 | 'event_espresso' |
95 | - ) . '</p>'; |
|
95 | + ).'</p>'; |
|
96 | 96 | |
97 | 97 | return $content; |
98 | 98 | } |
99 | 99 | |
100 | 100 | protected function _use_recaptcha_stop() |
101 | 101 | { |
102 | - return '<p>' . __('Specify whether reCAPTCHA should be enabled.', 'event_espresso') . '</p>'; |
|
102 | + return '<p>'.__('Specify whether reCAPTCHA should be enabled.', 'event_espresso').'</p>'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | protected function _recaptcha_public_key_stop() |
106 | 106 | { |
107 | - return '<p>' . __('Enter your public key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
107 | + return '<p>'.__('Enter your public key for reCAPTCHA.', 'event_espresso').'</p>'; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | protected function _recaptcha_private_key_stop() |
111 | 111 | { |
112 | - return '<p>' . __('Enter your private key for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
112 | + return '<p>'.__('Enter your private key for reCAPTCHA.', 'event_espresso').'</p>'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | protected function _recaptcha_theme_stop() |
116 | 116 | { |
117 | - return '<p>' . __('Select a theme (style) for your reCAPTCHA.', 'event_espresso') . '</p>'; |
|
117 | + return '<p>'.__('Select a theme (style) for your reCAPTCHA.', 'event_espresso').'</p>'; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | protected function _recaptcha_language_stop() |
121 | 121 | { |
122 | - return '<p>' . __('Specify the language that should be used for reCAPTCHA.', 'event_espresso') . '</p>'; |
|
122 | + return '<p>'.__('Specify the language that should be used for reCAPTCHA.', 'event_espresso').'</p>'; |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | protected function _recaptcha_width_stop() |
126 | 126 | { |
127 | - return '<p>' . __('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso') . '</p>'; |
|
127 | + return '<p>'.__('Specify how wide (in pixels) the reCAPTCHA form should be.', 'event_espresso').'</p>'; |
|
128 | 128 | } |
129 | 129 | } |
@@ -15,135 +15,135 @@ |
||
15 | 15 | class Registration_Form_Edit_Question_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Edit Question Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Edit Question Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'edit-question-caf-joyride' : 'edit-question-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'QST_display_text', |
|
32 | - 'content' => $this->_qst_display_text_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'top', |
|
35 | - 'tipAdjustmentX' => 0, |
|
36 | - 'tipAdjustmentY' => -35, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'QST_admin_label_disabled', |
|
41 | - 'content' => $this->_qst_admin_label_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'top', |
|
44 | - 'tipAdjustmentX' => 0, |
|
45 | - 'tipAdjustmentY' => -35, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 50 => array( |
|
49 | - 'id' => 'QST_admin_only_disabled', |
|
50 | - 'content' => $this->_qst_admin_only_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentX' => -20, |
|
54 | - 'tipAdjustmentY' => -35, |
|
55 | - ), |
|
56 | - ), |
|
57 | - 60 => array( |
|
58 | - 'id' => 'QST_type_disabled', |
|
59 | - 'content' => $this->_qst_type_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'top', |
|
62 | - 'tipAdjustmentX' => 0, |
|
63 | - 'tipAdjustmentY' => -35, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 70 => array( |
|
67 | - 'id' => 'QST_required', |
|
68 | - 'content' => $this->_qst_required_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'top', |
|
71 | - 'tipAdjustmentX' => 0, |
|
72 | - 'tipAdjustmentY' => -35, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 80 => array( |
|
76 | - 'id' => 'QST_required_text', |
|
77 | - 'content' => $this->_qst_required_text_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'top', |
|
80 | - 'tipAdjustmentX' => 0, |
|
81 | - 'tipAdjustmentY' => -35, |
|
82 | - ), |
|
83 | - ), |
|
84 | - ); |
|
85 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'QST_display_text', |
|
32 | + 'content' => $this->_qst_display_text_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'top', |
|
35 | + 'tipAdjustmentX' => 0, |
|
36 | + 'tipAdjustmentY' => -35, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'QST_admin_label_disabled', |
|
41 | + 'content' => $this->_qst_admin_label_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'top', |
|
44 | + 'tipAdjustmentX' => 0, |
|
45 | + 'tipAdjustmentY' => -35, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 50 => array( |
|
49 | + 'id' => 'QST_admin_only_disabled', |
|
50 | + 'content' => $this->_qst_admin_only_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentX' => -20, |
|
54 | + 'tipAdjustmentY' => -35, |
|
55 | + ), |
|
56 | + ), |
|
57 | + 60 => array( |
|
58 | + 'id' => 'QST_type_disabled', |
|
59 | + 'content' => $this->_qst_type_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'top', |
|
62 | + 'tipAdjustmentX' => 0, |
|
63 | + 'tipAdjustmentY' => -35, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 70 => array( |
|
67 | + 'id' => 'QST_required', |
|
68 | + 'content' => $this->_qst_required_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'top', |
|
71 | + 'tipAdjustmentX' => 0, |
|
72 | + 'tipAdjustmentY' => -35, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 80 => array( |
|
76 | + 'id' => 'QST_required_text', |
|
77 | + 'content' => $this->_qst_required_text_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'top', |
|
80 | + 'tipAdjustmentX' => 0, |
|
81 | + 'tipAdjustmentY' => -35, |
|
82 | + ), |
|
83 | + ), |
|
84 | + ); |
|
85 | + } |
|
86 | 86 | |
87 | 87 | |
88 | - protected function _start() |
|
89 | - { |
|
90 | - $content = '<h3>' . __('Edit Question', 'event_espresso') . '</h3>'; |
|
91 | - $content .= '<p>' |
|
92 | - . __( |
|
93 | - 'This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | - 'event_espresso' |
|
95 | - ) . '</p>'; |
|
88 | + protected function _start() |
|
89 | + { |
|
90 | + $content = '<h3>' . __('Edit Question', 'event_espresso') . '</h3>'; |
|
91 | + $content .= '<p>' |
|
92 | + . __( |
|
93 | + 'This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | + 'event_espresso' |
|
95 | + ) . '</p>'; |
|
96 | 96 | |
97 | - return $content; |
|
98 | - } |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _qst_display_text_stop() |
|
101 | - { |
|
102 | - return '<p>' |
|
103 | - . __( |
|
104 | - 'This is the question that is displayed to registrants who are signing up for events.', |
|
105 | - 'event_espresso' |
|
106 | - ) . '</p>'; |
|
107 | - } |
|
100 | + protected function _qst_display_text_stop() |
|
101 | + { |
|
102 | + return '<p>' |
|
103 | + . __( |
|
104 | + 'This is the question that is displayed to registrants who are signing up for events.', |
|
105 | + 'event_espresso' |
|
106 | + ) . '</p>'; |
|
107 | + } |
|
108 | 108 | |
109 | - protected function _qst_admin_label_stop() |
|
110 | - { |
|
111 | - return '<p>' |
|
112 | - . __( |
|
113 | - 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
114 | - 'event_espresso' |
|
115 | - ) . '</p>'; |
|
116 | - } |
|
109 | + protected function _qst_admin_label_stop() |
|
110 | + { |
|
111 | + return '<p>' |
|
112 | + . __( |
|
113 | + 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
114 | + 'event_espresso' |
|
115 | + ) . '</p>'; |
|
116 | + } |
|
117 | 117 | |
118 | - protected function _qst_admin_only_stop() |
|
119 | - { |
|
120 | - return '<p>' |
|
121 | - . __( |
|
122 | - 'Specify whether this question should be shown only to the admins.', |
|
123 | - 'event_espresso' |
|
124 | - ) . '</p>'; |
|
125 | - } |
|
118 | + protected function _qst_admin_only_stop() |
|
119 | + { |
|
120 | + return '<p>' |
|
121 | + . __( |
|
122 | + 'Specify whether this question should be shown only to the admins.', |
|
123 | + 'event_espresso' |
|
124 | + ) . '</p>'; |
|
125 | + } |
|
126 | 126 | |
127 | - protected function _qst_type_stop() |
|
128 | - { |
|
129 | - return '<p>' |
|
130 | - . __( |
|
131 | - 'Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', |
|
132 | - 'event_espresso' |
|
133 | - ) . '</p>'; |
|
134 | - } |
|
127 | + protected function _qst_type_stop() |
|
128 | + { |
|
129 | + return '<p>' |
|
130 | + . __( |
|
131 | + 'Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', |
|
132 | + 'event_espresso' |
|
133 | + ) . '</p>'; |
|
134 | + } |
|
135 | 135 | |
136 | - protected function _qst_required_stop() |
|
137 | - { |
|
138 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
139 | - } |
|
136 | + protected function _qst_required_stop() |
|
137 | + { |
|
138 | + return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
139 | + } |
|
140 | 140 | |
141 | - protected function _qst_required_text_stop() |
|
142 | - { |
|
143 | - return '<p>' |
|
144 | - . __( |
|
145 | - 'Text to display when registrant does not answer question but is required to.', |
|
146 | - 'event_espresso' |
|
147 | - ) . '</p>'; |
|
148 | - } |
|
141 | + protected function _qst_required_text_stop() |
|
142 | + { |
|
143 | + return '<p>' |
|
144 | + . __( |
|
145 | + 'Text to display when registrant does not answer question but is required to.', |
|
146 | + 'event_espresso' |
|
147 | + ) . '</p>'; |
|
148 | + } |
|
149 | 149 | } |
@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | |
88 | 88 | protected function _start() |
89 | 89 | { |
90 | - $content = '<h3>' . __('Edit Question', 'event_espresso') . '</h3>'; |
|
90 | + $content = '<h3>'.__('Edit Question', 'event_espresso').'</h3>'; |
|
91 | 91 | $content .= '<p>' |
92 | 92 | . __( |
93 | 93 | 'This tour of the Edit Question page will go over different areas of the screen to help you understand what they are used for.', |
94 | 94 | 'event_espresso' |
95 | - ) . '</p>'; |
|
95 | + ).'</p>'; |
|
96 | 96 | |
97 | 97 | return $content; |
98 | 98 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | . __( |
104 | 104 | 'This is the question that is displayed to registrants who are signing up for events.', |
105 | 105 | 'event_espresso' |
106 | - ) . '</p>'; |
|
106 | + ).'</p>'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | protected function _qst_admin_label_stop() |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | . __( |
113 | 113 | 'Helps you understand the difference between questions that may appear similar but are actually different.', |
114 | 114 | 'event_espresso' |
115 | - ) . '</p>'; |
|
115 | + ).'</p>'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function _qst_admin_only_stop() |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | . __( |
122 | 122 | 'Specify whether this question should be shown only to the admins.', |
123 | 123 | 'event_espresso' |
124 | - ) . '</p>'; |
|
124 | + ).'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _qst_type_stop() |
@@ -130,12 +130,12 @@ discard block |
||
130 | 130 | . __( |
131 | 131 | 'Select the type of question. Available options are text, textarea, single, multiple, dropdown, and date.', |
132 | 132 | 'event_espresso' |
133 | - ) . '</p>'; |
|
133 | + ).'</p>'; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | protected function _qst_required_stop() |
137 | 137 | { |
138 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
138 | + return '<p>'.__('Specify whether this question should be required.', 'event_espresso').'</p>'; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | protected function _qst_required_text_stop() |
@@ -144,6 +144,6 @@ discard block |
||
144 | 144 | . __( |
145 | 145 | 'Text to display when registrant does not answer question but is required to.', |
146 | 146 | 'event_espresso' |
147 | - ) . '</p>'; |
|
147 | + ).'</p>'; |
|
148 | 148 | } |
149 | 149 | } |
@@ -15,131 +15,131 @@ |
||
15 | 15 | class Registration_Form_Add_Question_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Add New Question Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'add-question-caf-joyride' : 'add-question-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Add New Question Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'add-question-caf-joyride' : 'add-question-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'QST_display_text', |
|
32 | - 'content' => $this->_qst_display_text_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'top', |
|
35 | - 'tipAdjustmentX' => 0, |
|
36 | - 'tipAdjustmentY' => -35, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'QST_admin_label', |
|
41 | - 'content' => $this->_qst_admin_label_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'top', |
|
44 | - 'tipAdjustmentX' => 0, |
|
45 | - 'tipAdjustmentY' => -35, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 50 => array( |
|
49 | - 'id' => 'QST_admin_only', |
|
50 | - 'content' => $this->_qst_admin_only_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentX' => -20, |
|
54 | - 'tipAdjustmentY' => -35, |
|
55 | - ), |
|
56 | - ), |
|
57 | - 60 => array( |
|
58 | - 'id' => 'QST_type', |
|
59 | - 'content' => $this->_qst_type_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'top', |
|
62 | - 'tipAdjustmentX' => 0, |
|
63 | - 'tipAdjustmentY' => -35, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 70 => array( |
|
67 | - 'id' => 'QST_required', |
|
68 | - 'content' => $this->_qst_required_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'top', |
|
71 | - 'tipAdjustmentX' => 0, |
|
72 | - 'tipAdjustmentY' => -35, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 80 => array( |
|
76 | - 'id' => 'QST_required_text', |
|
77 | - 'content' => $this->_qst_required_text_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'top', |
|
80 | - 'tipAdjustmentX' => 0, |
|
81 | - 'tipAdjustmentY' => -35, |
|
82 | - ), |
|
83 | - ), |
|
84 | - ); |
|
85 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'QST_display_text', |
|
32 | + 'content' => $this->_qst_display_text_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'top', |
|
35 | + 'tipAdjustmentX' => 0, |
|
36 | + 'tipAdjustmentY' => -35, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'QST_admin_label', |
|
41 | + 'content' => $this->_qst_admin_label_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'top', |
|
44 | + 'tipAdjustmentX' => 0, |
|
45 | + 'tipAdjustmentY' => -35, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 50 => array( |
|
49 | + 'id' => 'QST_admin_only', |
|
50 | + 'content' => $this->_qst_admin_only_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentX' => -20, |
|
54 | + 'tipAdjustmentY' => -35, |
|
55 | + ), |
|
56 | + ), |
|
57 | + 60 => array( |
|
58 | + 'id' => 'QST_type', |
|
59 | + 'content' => $this->_qst_type_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'top', |
|
62 | + 'tipAdjustmentX' => 0, |
|
63 | + 'tipAdjustmentY' => -35, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 70 => array( |
|
67 | + 'id' => 'QST_required', |
|
68 | + 'content' => $this->_qst_required_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'top', |
|
71 | + 'tipAdjustmentX' => 0, |
|
72 | + 'tipAdjustmentY' => -35, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 80 => array( |
|
76 | + 'id' => 'QST_required_text', |
|
77 | + 'content' => $this->_qst_required_text_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'top', |
|
80 | + 'tipAdjustmentX' => 0, |
|
81 | + 'tipAdjustmentY' => -35, |
|
82 | + ), |
|
83 | + ), |
|
84 | + ); |
|
85 | + } |
|
86 | 86 | |
87 | 87 | |
88 | - protected function _start() |
|
89 | - { |
|
90 | - $content = '<h3>' . __('Add New Question', 'event_espresso') . '</h3>'; |
|
91 | - $content .= '<p>' |
|
92 | - . __( |
|
93 | - 'This tour of the Add New Question page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | - 'event_espresso' |
|
95 | - ) . '</p>'; |
|
88 | + protected function _start() |
|
89 | + { |
|
90 | + $content = '<h3>' . __('Add New Question', 'event_espresso') . '</h3>'; |
|
91 | + $content .= '<p>' |
|
92 | + . __( |
|
93 | + 'This tour of the Add New Question page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | + 'event_espresso' |
|
95 | + ) . '</p>'; |
|
96 | 96 | |
97 | - return $content; |
|
98 | - } |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _qst_display_text_stop() |
|
101 | - { |
|
102 | - return '<p>' |
|
103 | - . __( |
|
104 | - 'This is the question that is displayed to registrants who are signing up for events.', |
|
105 | - 'event_espresso' |
|
106 | - ) . '</p>'; |
|
107 | - } |
|
100 | + protected function _qst_display_text_stop() |
|
101 | + { |
|
102 | + return '<p>' |
|
103 | + . __( |
|
104 | + 'This is the question that is displayed to registrants who are signing up for events.', |
|
105 | + 'event_espresso' |
|
106 | + ) . '</p>'; |
|
107 | + } |
|
108 | 108 | |
109 | - protected function _qst_admin_label_stop() |
|
110 | - { |
|
111 | - return '<p>' |
|
112 | - . __( |
|
113 | - 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
114 | - 'event_espresso' |
|
115 | - ) . '</p>'; |
|
116 | - } |
|
109 | + protected function _qst_admin_label_stop() |
|
110 | + { |
|
111 | + return '<p>' |
|
112 | + . __( |
|
113 | + 'Helps you understand the difference between questions that may appear similar but are actually different.', |
|
114 | + 'event_espresso' |
|
115 | + ) . '</p>'; |
|
116 | + } |
|
117 | 117 | |
118 | - protected function _qst_admin_only_stop() |
|
119 | - { |
|
120 | - return '<p>' . __('Specify whether this question should be shown only to admins.', 'event_espresso') . '</p>'; |
|
121 | - } |
|
118 | + protected function _qst_admin_only_stop() |
|
119 | + { |
|
120 | + return '<p>' . __('Specify whether this question should be shown only to admins.', 'event_espresso') . '</p>'; |
|
121 | + } |
|
122 | 122 | |
123 | - protected function _qst_type_stop() |
|
124 | - { |
|
125 | - return '<p>' |
|
126 | - . __( |
|
127 | - 'Select the type of question. Available options are Text, Textarea, Single, Multiple, Dropdown, and Date.', |
|
128 | - 'event_espresso' |
|
129 | - ) . '</p>'; |
|
130 | - } |
|
123 | + protected function _qst_type_stop() |
|
124 | + { |
|
125 | + return '<p>' |
|
126 | + . __( |
|
127 | + 'Select the type of question. Available options are Text, Textarea, Single, Multiple, Dropdown, and Date.', |
|
128 | + 'event_espresso' |
|
129 | + ) . '</p>'; |
|
130 | + } |
|
131 | 131 | |
132 | - protected function _qst_required_stop() |
|
133 | - { |
|
134 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
135 | - } |
|
132 | + protected function _qst_required_stop() |
|
133 | + { |
|
134 | + return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
135 | + } |
|
136 | 136 | |
137 | - protected function _qst_required_text_stop() |
|
138 | - { |
|
139 | - return '<p>' |
|
140 | - . __( |
|
141 | - 'Text to display when registrant does not answer question but is required to.', |
|
142 | - 'event_espresso' |
|
143 | - ) . '</p>'; |
|
144 | - } |
|
137 | + protected function _qst_required_text_stop() |
|
138 | + { |
|
139 | + return '<p>' |
|
140 | + . __( |
|
141 | + 'Text to display when registrant does not answer question but is required to.', |
|
142 | + 'event_espresso' |
|
143 | + ) . '</p>'; |
|
144 | + } |
|
145 | 145 | } |
@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | |
88 | 88 | protected function _start() |
89 | 89 | { |
90 | - $content = '<h3>' . __('Add New Question', 'event_espresso') . '</h3>'; |
|
90 | + $content = '<h3>'.__('Add New Question', 'event_espresso').'</h3>'; |
|
91 | 91 | $content .= '<p>' |
92 | 92 | . __( |
93 | 93 | 'This tour of the Add New Question page will go over different areas of the screen to help you understand what they are used for.', |
94 | 94 | 'event_espresso' |
95 | - ) . '</p>'; |
|
95 | + ).'</p>'; |
|
96 | 96 | |
97 | 97 | return $content; |
98 | 98 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | . __( |
104 | 104 | 'This is the question that is displayed to registrants who are signing up for events.', |
105 | 105 | 'event_espresso' |
106 | - ) . '</p>'; |
|
106 | + ).'</p>'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | protected function _qst_admin_label_stop() |
@@ -112,12 +112,12 @@ discard block |
||
112 | 112 | . __( |
113 | 113 | 'Helps you understand the difference between questions that may appear similar but are actually different.', |
114 | 114 | 'event_espresso' |
115 | - ) . '</p>'; |
|
115 | + ).'</p>'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function _qst_admin_only_stop() |
119 | 119 | { |
120 | - return '<p>' . __('Specify whether this question should be shown only to admins.', 'event_espresso') . '</p>'; |
|
120 | + return '<p>'.__('Specify whether this question should be shown only to admins.', 'event_espresso').'</p>'; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | protected function _qst_type_stop() |
@@ -126,12 +126,12 @@ discard block |
||
126 | 126 | . __( |
127 | 127 | 'Select the type of question. Available options are Text, Textarea, Single, Multiple, Dropdown, and Date.', |
128 | 128 | 'event_espresso' |
129 | - ) . '</p>'; |
|
129 | + ).'</p>'; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | protected function _qst_required_stop() |
133 | 133 | { |
134 | - return '<p>' . __('Specify whether this question should be required.', 'event_espresso') . '</p>'; |
|
134 | + return '<p>'.__('Specify whether this question should be required.', 'event_espresso').'</p>'; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | protected function _qst_required_text_stop() |
@@ -140,6 +140,6 @@ discard block |
||
140 | 140 | . __( |
141 | 141 | 'Text to display when registrant does not answer question but is required to.', |
142 | 142 | 'event_espresso' |
143 | - ) . '</p>'; |
|
143 | + ).'</p>'; |
|
144 | 144 | } |
145 | 145 | } |
@@ -15,123 +15,123 @@ |
||
15 | 15 | class Registration_Form_Add_Question_Group_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Add New Question Group Tour', 'event_espresso'); |
|
21 | - $this->_slug = $this->_is_caf ? 'add-question-group-caf-joyride' : 'add-question-group-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Add New Question Group Tour', 'event_espresso'); |
|
21 | + $this->_slug = $this->_is_caf ? 'add-question-group-caf-joyride' : 'add-question-group-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'content' => $this->_start(), |
|
29 | - ), |
|
30 | - 20 => array( |
|
31 | - 'id' => 'QSG_name', |
|
32 | - 'content' => $this->_qsg_name_stop(), |
|
33 | - 'options' => array( |
|
34 | - 'tipLocation' => 'top', |
|
35 | - 'tipAdjustmentX' => 0, |
|
36 | - 'tipAdjustmentY' => -35, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'QSG_identifier', |
|
41 | - 'content' => $this->_qsg_identifier_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'top', |
|
44 | - 'tipAdjustmentX' => 0, |
|
45 | - 'tipAdjustmentY' => -35, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'QSG_desc', |
|
50 | - 'content' => $this->_qsg_desc_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentX' => 0, |
|
54 | - 'tipAdjustmentY' => -35, |
|
55 | - ), |
|
56 | - ), |
|
57 | - 50 => array( |
|
58 | - 'id' => 'QSG_order', |
|
59 | - 'content' => $this->_qsg_order_stop(), |
|
60 | - 'options' => array( |
|
61 | - 'tipLocation' => 'top', |
|
62 | - 'tipAdjustmentX' => -20, |
|
63 | - 'tipAdjustmentY' => -35, |
|
64 | - ), |
|
65 | - ), |
|
66 | - 60 => array( |
|
67 | - 'id' => 'QSG_show_group_name', |
|
68 | - 'content' => $this->_qsg_show_group_name_stop(), |
|
69 | - 'options' => array( |
|
70 | - 'tipLocation' => 'top', |
|
71 | - 'tipAdjustmentX' => 0, |
|
72 | - 'tipAdjustmentY' => -35, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 70 => array( |
|
76 | - 'id' => 'QSG_show_group_desc', |
|
77 | - 'content' => $this->_qsg_show_group_desc_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'top', |
|
80 | - 'tipAdjustmentX' => 0, |
|
81 | - 'tipAdjustmentY' => -35, |
|
82 | - ), |
|
83 | - ), |
|
84 | - ); |
|
85 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'content' => $this->_start(), |
|
29 | + ), |
|
30 | + 20 => array( |
|
31 | + 'id' => 'QSG_name', |
|
32 | + 'content' => $this->_qsg_name_stop(), |
|
33 | + 'options' => array( |
|
34 | + 'tipLocation' => 'top', |
|
35 | + 'tipAdjustmentX' => 0, |
|
36 | + 'tipAdjustmentY' => -35, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'QSG_identifier', |
|
41 | + 'content' => $this->_qsg_identifier_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'top', |
|
44 | + 'tipAdjustmentX' => 0, |
|
45 | + 'tipAdjustmentY' => -35, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'QSG_desc', |
|
50 | + 'content' => $this->_qsg_desc_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentX' => 0, |
|
54 | + 'tipAdjustmentY' => -35, |
|
55 | + ), |
|
56 | + ), |
|
57 | + 50 => array( |
|
58 | + 'id' => 'QSG_order', |
|
59 | + 'content' => $this->_qsg_order_stop(), |
|
60 | + 'options' => array( |
|
61 | + 'tipLocation' => 'top', |
|
62 | + 'tipAdjustmentX' => -20, |
|
63 | + 'tipAdjustmentY' => -35, |
|
64 | + ), |
|
65 | + ), |
|
66 | + 60 => array( |
|
67 | + 'id' => 'QSG_show_group_name', |
|
68 | + 'content' => $this->_qsg_show_group_name_stop(), |
|
69 | + 'options' => array( |
|
70 | + 'tipLocation' => 'top', |
|
71 | + 'tipAdjustmentX' => 0, |
|
72 | + 'tipAdjustmentY' => -35, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 70 => array( |
|
76 | + 'id' => 'QSG_show_group_desc', |
|
77 | + 'content' => $this->_qsg_show_group_desc_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'top', |
|
80 | + 'tipAdjustmentX' => 0, |
|
81 | + 'tipAdjustmentY' => -35, |
|
82 | + ), |
|
83 | + ), |
|
84 | + ); |
|
85 | + } |
|
86 | 86 | |
87 | 87 | |
88 | - protected function _start() |
|
89 | - { |
|
90 | - $content = '<h3>' . __('Add Question Group', 'event_espresso') . '</h3>'; |
|
91 | - $content .= '<p>' |
|
92 | - . __( |
|
93 | - 'This tour of the Add Question Group page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | - 'event_espresso' |
|
95 | - ) . '</p>'; |
|
88 | + protected function _start() |
|
89 | + { |
|
90 | + $content = '<h3>' . __('Add Question Group', 'event_espresso') . '</h3>'; |
|
91 | + $content .= '<p>' |
|
92 | + . __( |
|
93 | + 'This tour of the Add Question Group page will go over different areas of the screen to help you understand what they are used for.', |
|
94 | + 'event_espresso' |
|
95 | + ) . '</p>'; |
|
96 | 96 | |
97 | - return $content; |
|
98 | - } |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _qsg_name_stop() |
|
101 | - { |
|
102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
103 | - } |
|
100 | + protected function _qsg_name_stop() |
|
101 | + { |
|
102 | + return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
103 | + } |
|
104 | 104 | |
105 | - protected function _qsg_identifier_stop() |
|
106 | - { |
|
107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
108 | - } |
|
105 | + protected function _qsg_identifier_stop() |
|
106 | + { |
|
107 | + return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
108 | + } |
|
109 | 109 | |
110 | - protected function _qsg_desc_stop() |
|
111 | - { |
|
112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
113 | - } |
|
110 | + protected function _qsg_desc_stop() |
|
111 | + { |
|
112 | + return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
113 | + } |
|
114 | 114 | |
115 | - protected function _qsg_order_stop() |
|
116 | - { |
|
117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
118 | - } |
|
115 | + protected function _qsg_order_stop() |
|
116 | + { |
|
117 | + return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
118 | + } |
|
119 | 119 | |
120 | - protected function _qsg_show_group_name_stop() |
|
121 | - { |
|
122 | - return '<p>' |
|
123 | - . __( |
|
124 | - 'Specify whether the group name should be shown on the registration page.', |
|
125 | - 'event_espresso' |
|
126 | - ) . '</p>'; |
|
127 | - } |
|
120 | + protected function _qsg_show_group_name_stop() |
|
121 | + { |
|
122 | + return '<p>' |
|
123 | + . __( |
|
124 | + 'Specify whether the group name should be shown on the registration page.', |
|
125 | + 'event_espresso' |
|
126 | + ) . '</p>'; |
|
127 | + } |
|
128 | 128 | |
129 | - protected function _qsg_show_group_desc_stop() |
|
130 | - { |
|
131 | - return '<p>' |
|
132 | - . __( |
|
133 | - 'Specify whether the group description should be shown on the registration page.', |
|
134 | - 'event_espresso' |
|
135 | - ) . '</p>'; |
|
136 | - } |
|
129 | + protected function _qsg_show_group_desc_stop() |
|
130 | + { |
|
131 | + return '<p>' |
|
132 | + . __( |
|
133 | + 'Specify whether the group description should be shown on the registration page.', |
|
134 | + 'event_espresso' |
|
135 | + ) . '</p>'; |
|
136 | + } |
|
137 | 137 | } |
@@ -87,34 +87,34 @@ discard block |
||
87 | 87 | |
88 | 88 | protected function _start() |
89 | 89 | { |
90 | - $content = '<h3>' . __('Add Question Group', 'event_espresso') . '</h3>'; |
|
90 | + $content = '<h3>'.__('Add Question Group', 'event_espresso').'</h3>'; |
|
91 | 91 | $content .= '<p>' |
92 | 92 | . __( |
93 | 93 | 'This tour of the Add Question Group page will go over different areas of the screen to help you understand what they are used for.', |
94 | 94 | 'event_espresso' |
95 | - ) . '</p>'; |
|
95 | + ).'</p>'; |
|
96 | 96 | |
97 | 97 | return $content; |
98 | 98 | } |
99 | 99 | |
100 | 100 | protected function _qsg_name_stop() |
101 | 101 | { |
102 | - return '<p>' . __('The name of the question group.', 'event_espresso') . '</p>'; |
|
102 | + return '<p>'.__('The name of the question group.', 'event_espresso').'</p>'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | protected function _qsg_identifier_stop() |
106 | 106 | { |
107 | - return '<p>' . __('A unique name for your question group.', 'event_espresso') . '</p>'; |
|
107 | + return '<p>'.__('A unique name for your question group.', 'event_espresso').'</p>'; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | protected function _qsg_desc_stop() |
111 | 111 | { |
112 | - return '<p>' . __('A description of the question group.', 'event_espresso') . '</p>'; |
|
112 | + return '<p>'.__('A description of the question group.', 'event_espresso').'</p>'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | protected function _qsg_order_stop() |
116 | 116 | { |
117 | - return '<p>' . __('Set the order that you want your question group to appear in.', 'event_espresso') . '</p>'; |
|
117 | + return '<p>'.__('Set the order that you want your question group to appear in.', 'event_espresso').'</p>'; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | protected function _qsg_show_group_name_stop() |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | . __( |
124 | 124 | 'Specify whether the group name should be shown on the registration page.', |
125 | 125 | 'event_espresso' |
126 | - ) . '</p>'; |
|
126 | + ).'</p>'; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | protected function _qsg_show_group_desc_stop() |
@@ -132,6 +132,6 @@ discard block |
||
132 | 132 | . __( |
133 | 133 | 'Specify whether the group description should be shown on the registration page.', |
134 | 134 | 'event_espresso' |
135 | - ) . '</p>'; |
|
135 | + ).'</p>'; |
|
136 | 136 | } |
137 | 137 | } |