@@ -16,14 +16,14 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - /** |
|
20 | - * process |
|
21 | - * |
|
22 | - * @param \EEI_Line_Item $line_item |
|
23 | - * @return \EEI_Line_Item |
|
24 | - */ |
|
25 | - public function process(EEI_Line_Item $line_item) |
|
26 | - { |
|
27 | - return $line_item; |
|
28 | - } |
|
19 | + /** |
|
20 | + * process |
|
21 | + * |
|
22 | + * @param \EEI_Line_Item $line_item |
|
23 | + * @return \EEI_Line_Item |
|
24 | + */ |
|
25 | + public function process(EEI_Line_Item $line_item) |
|
26 | + { |
|
27 | + return $line_item; |
|
28 | + } |
|
29 | 29 | } |
@@ -16,12 +16,12 @@ |
||
16 | 16 | class EE_Single_Registration_Line_Item_Filter extends EE_Specific_Registrations_Line_Item_Filter |
17 | 17 | { |
18 | 18 | |
19 | - /** |
|
20 | - * |
|
21 | - * @param EE_Registration $registration |
|
22 | - */ |
|
23 | - public function __construct($registration) |
|
24 | - { |
|
25 | - parent::__construct(array($registration)); |
|
26 | - } |
|
19 | + /** |
|
20 | + * |
|
21 | + * @param EE_Registration $registration |
|
22 | + */ |
|
23 | + public function __construct($registration) |
|
24 | + { |
|
25 | + parent::__construct(array($registration)); |
|
26 | + } |
|
27 | 27 | } |
@@ -14,195 +14,195 @@ |
||
14 | 14 | class EE_Template_Part_Manager |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * @param EE_Template_Part_PriorityQueue $template_parts |
|
19 | - */ |
|
20 | - protected $template_parts; |
|
21 | - |
|
22 | - /** |
|
23 | - * @param array $priorities |
|
24 | - */ |
|
25 | - protected $priorities = array(); |
|
26 | - |
|
27 | - /** |
|
28 | - * @param int $event_desc_priority |
|
29 | - */ |
|
30 | - protected $event_desc_priority; |
|
31 | - |
|
32 | - /** |
|
33 | - * @param string $before_event_content |
|
34 | - */ |
|
35 | - protected $before_event_content; |
|
36 | - |
|
37 | - /** |
|
38 | - * @param string $event_content |
|
39 | - */ |
|
40 | - protected $event_content; |
|
41 | - |
|
42 | - /** |
|
43 | - * @param string $after_event_content |
|
44 | - */ |
|
45 | - protected $after_event_content; |
|
46 | - |
|
47 | - |
|
48 | - /** |
|
49 | - * class constructor |
|
50 | - */ |
|
51 | - public function __construct() |
|
52 | - { |
|
53 | - $this->template_parts = new EE_Template_Part_PriorityQueue(); |
|
54 | - } |
|
55 | - |
|
56 | - |
|
57 | - /** |
|
58 | - * add_template_part |
|
59 | - * |
|
60 | - * used for setting the details about a particular template part |
|
61 | - * |
|
62 | - * @param string $name - just a simple string identifier - do NOT use 'event' |
|
63 | - * @param string $label - template part label displayed in admin |
|
64 | - * @param string $template - name or path of template to be used by EEH_Template::locate_template() |
|
65 | - * @param int $priority - order in which template parts should be applied |
|
66 | - */ |
|
67 | - public function add_template_part($name, $label, $template, $priority) |
|
68 | - { |
|
69 | - // SplPriorityQueue doesn't play nice with multiple items having the same priority |
|
70 | - // so if the incoming priority is already occupied, then let's increment it by one, |
|
71 | - // and then pass everything back into this method and try again with the new priority |
|
72 | - if (isset($this->priorities[ $priority ])) { |
|
73 | - $priority++; |
|
74 | - $this->add_template_part($name, $label, $template, $priority); |
|
75 | - return; |
|
76 | - } |
|
77 | - // kk now we can mark this priority as being occupied |
|
78 | - $this->priorities[ $priority ] = true; |
|
79 | - // create the template part and add to the queue |
|
80 | - $this->template_parts->insert( |
|
81 | - new EE_Template_Part($name, $label, $template, $priority), |
|
82 | - $priority |
|
83 | - ); |
|
84 | - if ($name === 'event') { |
|
85 | - $this->event_desc_priority = $priority; |
|
86 | - } |
|
87 | - } |
|
88 | - |
|
89 | - |
|
90 | - /** |
|
91 | - * apply_template_part_filters |
|
92 | - * |
|
93 | - * adds template parts to the supplied content |
|
94 | - * according to the details set when the template parts were added |
|
95 | - * |
|
96 | - * @access public |
|
97 | - * @param string $content |
|
98 | - * @return string |
|
99 | - */ |
|
100 | - public function apply_template_part_filters($content = '') |
|
101 | - { |
|
102 | - $this->template_parts->rewind(); |
|
103 | - // loop through template parts and position content |
|
104 | - while ($this->template_parts->valid()) { |
|
105 | - $this->_position_template_part( |
|
106 | - $content, |
|
107 | - $this->template_parts->current()->template(), |
|
108 | - $this->template_parts->current()->priority() |
|
109 | - ); |
|
110 | - $this->template_parts->next(); |
|
111 | - } |
|
112 | - // now simply add our three strings of content together |
|
113 | - return $this->before_event_content . $this->event_content . $this->after_event_content; |
|
114 | - } |
|
115 | - |
|
116 | - |
|
117 | - /** |
|
118 | - * position_template_part |
|
119 | - * |
|
120 | - * based on the priority of the incoming template part |
|
121 | - * relative to the known event description template part priority, |
|
122 | - * this method will assign template parts to one of the following: |
|
123 | - * $this->before_event_content |
|
124 | - * $this->event_content |
|
125 | - * $this->after_event_content |
|
126 | - * |
|
127 | - * @access protected |
|
128 | - * @param string $content |
|
129 | - * @param string $template |
|
130 | - * @param int $priority |
|
131 | - * @return void |
|
132 | - */ |
|
133 | - protected function _position_template_part($content, $template, $priority) |
|
134 | - { |
|
135 | - // Event Description content is the actual incoming content itself |
|
136 | - if ($priority === $this->event_desc_priority) { |
|
137 | - $this->event_content = $content; |
|
138 | - } elseif ($priority < $this->event_desc_priority) { |
|
139 | - // everything BEFORE the Event Description |
|
140 | - $this->before_event_content .= EEH_Template::locate_template($template); |
|
141 | - } elseif ($priority > $this->event_desc_priority) { |
|
142 | - // everything AFTER the Event Description |
|
143 | - $this->after_event_content .= EEH_Template::locate_template($template); |
|
144 | - } |
|
145 | - } |
|
146 | - |
|
147 | - |
|
148 | - /** |
|
149 | - * generate_sortable_list_of_template_parts |
|
150 | - * |
|
151 | - * creates an HTML list (<ul>) with list items (<li>) for each template part, |
|
152 | - * in a format that can be used as a sortable list in the admin |
|
153 | - * |
|
154 | - * @access public |
|
155 | - * @param string $list_css_id |
|
156 | - * @param string $list_css_class |
|
157 | - * @param string $list_item_css_class |
|
158 | - * @param string $list_item_css_id_prefix |
|
159 | - * @return string |
|
160 | - */ |
|
161 | - public function generate_sortable_list_of_template_parts( |
|
162 | - $list_css_id = '', |
|
163 | - $list_css_class = '', |
|
164 | - $list_item_css_class = '', |
|
165 | - $list_item_css_id_prefix = '' |
|
166 | - ) { |
|
167 | - $event_archive_display_order = EEH_HTML::ul($list_css_id, $list_css_class); |
|
168 | - $this->template_parts->rewind(); |
|
169 | - // loop through template parts and add template content |
|
170 | - while ($this->template_parts->valid()) { |
|
171 | - $event_archive_display_order .= EEH_HTML::li( |
|
172 | - EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2') . |
|
173 | - EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2') . |
|
174 | - $this->template_parts->current()->label(), |
|
175 | - $list_item_css_id_prefix . $this->template_parts->current()->name(), |
|
176 | - $list_item_css_class |
|
177 | - ); |
|
178 | - $this->template_parts->next(); |
|
179 | - } |
|
180 | - $event_archive_display_order .= EEH_HTML::ulx(); |
|
181 | - return $event_archive_display_order; |
|
182 | - } |
|
183 | - |
|
184 | - |
|
185 | - /** |
|
186 | - * display_template_parts |
|
187 | - * |
|
188 | - * just for debugging purposes |
|
189 | - * |
|
190 | - * @access public |
|
191 | - * @return void |
|
192 | - */ |
|
193 | - public function display_template_parts() |
|
194 | - { |
|
195 | - if (WP_DEBUG) { |
|
196 | - $this->template_parts->rewind(); |
|
197 | - while ($this->template_parts->valid()) { |
|
198 | - EEH_Debug_Tools::printr( |
|
199 | - $this->template_parts->current(), |
|
200 | - 'template_part', |
|
201 | - __FILE__, |
|
202 | - __LINE__ |
|
203 | - ); |
|
204 | - $this->template_parts->next(); |
|
205 | - } |
|
206 | - } |
|
207 | - } |
|
17 | + /** |
|
18 | + * @param EE_Template_Part_PriorityQueue $template_parts |
|
19 | + */ |
|
20 | + protected $template_parts; |
|
21 | + |
|
22 | + /** |
|
23 | + * @param array $priorities |
|
24 | + */ |
|
25 | + protected $priorities = array(); |
|
26 | + |
|
27 | + /** |
|
28 | + * @param int $event_desc_priority |
|
29 | + */ |
|
30 | + protected $event_desc_priority; |
|
31 | + |
|
32 | + /** |
|
33 | + * @param string $before_event_content |
|
34 | + */ |
|
35 | + protected $before_event_content; |
|
36 | + |
|
37 | + /** |
|
38 | + * @param string $event_content |
|
39 | + */ |
|
40 | + protected $event_content; |
|
41 | + |
|
42 | + /** |
|
43 | + * @param string $after_event_content |
|
44 | + */ |
|
45 | + protected $after_event_content; |
|
46 | + |
|
47 | + |
|
48 | + /** |
|
49 | + * class constructor |
|
50 | + */ |
|
51 | + public function __construct() |
|
52 | + { |
|
53 | + $this->template_parts = new EE_Template_Part_PriorityQueue(); |
|
54 | + } |
|
55 | + |
|
56 | + |
|
57 | + /** |
|
58 | + * add_template_part |
|
59 | + * |
|
60 | + * used for setting the details about a particular template part |
|
61 | + * |
|
62 | + * @param string $name - just a simple string identifier - do NOT use 'event' |
|
63 | + * @param string $label - template part label displayed in admin |
|
64 | + * @param string $template - name or path of template to be used by EEH_Template::locate_template() |
|
65 | + * @param int $priority - order in which template parts should be applied |
|
66 | + */ |
|
67 | + public function add_template_part($name, $label, $template, $priority) |
|
68 | + { |
|
69 | + // SplPriorityQueue doesn't play nice with multiple items having the same priority |
|
70 | + // so if the incoming priority is already occupied, then let's increment it by one, |
|
71 | + // and then pass everything back into this method and try again with the new priority |
|
72 | + if (isset($this->priorities[ $priority ])) { |
|
73 | + $priority++; |
|
74 | + $this->add_template_part($name, $label, $template, $priority); |
|
75 | + return; |
|
76 | + } |
|
77 | + // kk now we can mark this priority as being occupied |
|
78 | + $this->priorities[ $priority ] = true; |
|
79 | + // create the template part and add to the queue |
|
80 | + $this->template_parts->insert( |
|
81 | + new EE_Template_Part($name, $label, $template, $priority), |
|
82 | + $priority |
|
83 | + ); |
|
84 | + if ($name === 'event') { |
|
85 | + $this->event_desc_priority = $priority; |
|
86 | + } |
|
87 | + } |
|
88 | + |
|
89 | + |
|
90 | + /** |
|
91 | + * apply_template_part_filters |
|
92 | + * |
|
93 | + * adds template parts to the supplied content |
|
94 | + * according to the details set when the template parts were added |
|
95 | + * |
|
96 | + * @access public |
|
97 | + * @param string $content |
|
98 | + * @return string |
|
99 | + */ |
|
100 | + public function apply_template_part_filters($content = '') |
|
101 | + { |
|
102 | + $this->template_parts->rewind(); |
|
103 | + // loop through template parts and position content |
|
104 | + while ($this->template_parts->valid()) { |
|
105 | + $this->_position_template_part( |
|
106 | + $content, |
|
107 | + $this->template_parts->current()->template(), |
|
108 | + $this->template_parts->current()->priority() |
|
109 | + ); |
|
110 | + $this->template_parts->next(); |
|
111 | + } |
|
112 | + // now simply add our three strings of content together |
|
113 | + return $this->before_event_content . $this->event_content . $this->after_event_content; |
|
114 | + } |
|
115 | + |
|
116 | + |
|
117 | + /** |
|
118 | + * position_template_part |
|
119 | + * |
|
120 | + * based on the priority of the incoming template part |
|
121 | + * relative to the known event description template part priority, |
|
122 | + * this method will assign template parts to one of the following: |
|
123 | + * $this->before_event_content |
|
124 | + * $this->event_content |
|
125 | + * $this->after_event_content |
|
126 | + * |
|
127 | + * @access protected |
|
128 | + * @param string $content |
|
129 | + * @param string $template |
|
130 | + * @param int $priority |
|
131 | + * @return void |
|
132 | + */ |
|
133 | + protected function _position_template_part($content, $template, $priority) |
|
134 | + { |
|
135 | + // Event Description content is the actual incoming content itself |
|
136 | + if ($priority === $this->event_desc_priority) { |
|
137 | + $this->event_content = $content; |
|
138 | + } elseif ($priority < $this->event_desc_priority) { |
|
139 | + // everything BEFORE the Event Description |
|
140 | + $this->before_event_content .= EEH_Template::locate_template($template); |
|
141 | + } elseif ($priority > $this->event_desc_priority) { |
|
142 | + // everything AFTER the Event Description |
|
143 | + $this->after_event_content .= EEH_Template::locate_template($template); |
|
144 | + } |
|
145 | + } |
|
146 | + |
|
147 | + |
|
148 | + /** |
|
149 | + * generate_sortable_list_of_template_parts |
|
150 | + * |
|
151 | + * creates an HTML list (<ul>) with list items (<li>) for each template part, |
|
152 | + * in a format that can be used as a sortable list in the admin |
|
153 | + * |
|
154 | + * @access public |
|
155 | + * @param string $list_css_id |
|
156 | + * @param string $list_css_class |
|
157 | + * @param string $list_item_css_class |
|
158 | + * @param string $list_item_css_id_prefix |
|
159 | + * @return string |
|
160 | + */ |
|
161 | + public function generate_sortable_list_of_template_parts( |
|
162 | + $list_css_id = '', |
|
163 | + $list_css_class = '', |
|
164 | + $list_item_css_class = '', |
|
165 | + $list_item_css_id_prefix = '' |
|
166 | + ) { |
|
167 | + $event_archive_display_order = EEH_HTML::ul($list_css_id, $list_css_class); |
|
168 | + $this->template_parts->rewind(); |
|
169 | + // loop through template parts and add template content |
|
170 | + while ($this->template_parts->valid()) { |
|
171 | + $event_archive_display_order .= EEH_HTML::li( |
|
172 | + EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2') . |
|
173 | + EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2') . |
|
174 | + $this->template_parts->current()->label(), |
|
175 | + $list_item_css_id_prefix . $this->template_parts->current()->name(), |
|
176 | + $list_item_css_class |
|
177 | + ); |
|
178 | + $this->template_parts->next(); |
|
179 | + } |
|
180 | + $event_archive_display_order .= EEH_HTML::ulx(); |
|
181 | + return $event_archive_display_order; |
|
182 | + } |
|
183 | + |
|
184 | + |
|
185 | + /** |
|
186 | + * display_template_parts |
|
187 | + * |
|
188 | + * just for debugging purposes |
|
189 | + * |
|
190 | + * @access public |
|
191 | + * @return void |
|
192 | + */ |
|
193 | + public function display_template_parts() |
|
194 | + { |
|
195 | + if (WP_DEBUG) { |
|
196 | + $this->template_parts->rewind(); |
|
197 | + while ($this->template_parts->valid()) { |
|
198 | + EEH_Debug_Tools::printr( |
|
199 | + $this->template_parts->current(), |
|
200 | + 'template_part', |
|
201 | + __FILE__, |
|
202 | + __LINE__ |
|
203 | + ); |
|
204 | + $this->template_parts->next(); |
|
205 | + } |
|
206 | + } |
|
207 | + } |
|
208 | 208 | } |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | // SplPriorityQueue doesn't play nice with multiple items having the same priority |
70 | 70 | // so if the incoming priority is already occupied, then let's increment it by one, |
71 | 71 | // and then pass everything back into this method and try again with the new priority |
72 | - if (isset($this->priorities[ $priority ])) { |
|
72 | + if (isset($this->priorities[$priority])) { |
|
73 | 73 | $priority++; |
74 | 74 | $this->add_template_part($name, $label, $template, $priority); |
75 | 75 | return; |
76 | 76 | } |
77 | 77 | // kk now we can mark this priority as being occupied |
78 | - $this->priorities[ $priority ] = true; |
|
78 | + $this->priorities[$priority] = true; |
|
79 | 79 | // create the template part and add to the queue |
80 | 80 | $this->template_parts->insert( |
81 | 81 | new EE_Template_Part($name, $label, $template, $priority), |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $this->template_parts->next(); |
111 | 111 | } |
112 | 112 | // now simply add our three strings of content together |
113 | - return $this->before_event_content . $this->event_content . $this->after_event_content; |
|
113 | + return $this->before_event_content.$this->event_content.$this->after_event_content; |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | |
@@ -169,10 +169,10 @@ discard block |
||
169 | 169 | // loop through template parts and add template content |
170 | 170 | while ($this->template_parts->valid()) { |
171 | 171 | $event_archive_display_order .= EEH_HTML::li( |
172 | - EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2') . |
|
173 | - EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2') . |
|
172 | + EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2'). |
|
173 | + EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2'). |
|
174 | 174 | $this->template_parts->current()->label(), |
175 | - $list_item_css_id_prefix . $this->template_parts->current()->name(), |
|
175 | + $list_item_css_id_prefix.$this->template_parts->current()->name(), |
|
176 | 176 | $list_item_css_class |
177 | 177 | ); |
178 | 178 | $this->template_parts->next(); |
@@ -16,112 +16,112 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - /** |
|
20 | - * @type string $name |
|
21 | - */ |
|
22 | - protected $name; |
|
23 | - |
|
24 | - /** |
|
25 | - * @type string $label |
|
26 | - */ |
|
27 | - protected $label; |
|
28 | - |
|
29 | - /** |
|
30 | - * @type string $template |
|
31 | - */ |
|
32 | - protected $template; |
|
33 | - |
|
34 | - /** |
|
35 | - * @type int $priority |
|
36 | - */ |
|
37 | - protected $priority; |
|
38 | - |
|
39 | - |
|
40 | - /** |
|
41 | - * class constructor |
|
42 | - * |
|
43 | - * @param string $name |
|
44 | - * @param string $label |
|
45 | - * @param string $template |
|
46 | - * @param int $priority |
|
47 | - */ |
|
48 | - public function __construct($name, $label, $template, $priority = 100) |
|
49 | - { |
|
50 | - $this->set_name($name); |
|
51 | - $this->set_label($label); |
|
52 | - $this->set_template($template); |
|
53 | - $this->set_priority($priority); |
|
54 | - } |
|
55 | - |
|
56 | - |
|
57 | - /** |
|
58 | - * @return mixed |
|
59 | - */ |
|
60 | - public function name() |
|
61 | - { |
|
62 | - return $this->name; |
|
63 | - } |
|
64 | - |
|
65 | - |
|
66 | - /** |
|
67 | - * @param mixed $name |
|
68 | - */ |
|
69 | - public function set_name($name) |
|
70 | - { |
|
71 | - $this->name = $name; |
|
72 | - } |
|
73 | - |
|
74 | - |
|
75 | - /** |
|
76 | - * @return string |
|
77 | - */ |
|
78 | - public function label() |
|
79 | - { |
|
80 | - return $this->label; |
|
81 | - } |
|
82 | - |
|
83 | - |
|
84 | - /** |
|
85 | - * @param string $label |
|
86 | - */ |
|
87 | - public function set_label($label) |
|
88 | - { |
|
89 | - $this->label = $label; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @return array |
|
95 | - */ |
|
96 | - public function template() |
|
97 | - { |
|
98 | - return $this->template; |
|
99 | - } |
|
100 | - |
|
101 | - |
|
102 | - /** |
|
103 | - * @param string $template |
|
104 | - */ |
|
105 | - public function set_template($template) |
|
106 | - { |
|
107 | - $this->template = $template; |
|
108 | - } |
|
109 | - |
|
110 | - |
|
111 | - /** |
|
112 | - * @return int |
|
113 | - */ |
|
114 | - public function priority() |
|
115 | - { |
|
116 | - return $this->priority; |
|
117 | - } |
|
118 | - |
|
119 | - |
|
120 | - /** |
|
121 | - * @param int $priority |
|
122 | - */ |
|
123 | - public function set_priority($priority) |
|
124 | - { |
|
125 | - $this->priority = intval($priority); |
|
126 | - } |
|
19 | + /** |
|
20 | + * @type string $name |
|
21 | + */ |
|
22 | + protected $name; |
|
23 | + |
|
24 | + /** |
|
25 | + * @type string $label |
|
26 | + */ |
|
27 | + protected $label; |
|
28 | + |
|
29 | + /** |
|
30 | + * @type string $template |
|
31 | + */ |
|
32 | + protected $template; |
|
33 | + |
|
34 | + /** |
|
35 | + * @type int $priority |
|
36 | + */ |
|
37 | + protected $priority; |
|
38 | + |
|
39 | + |
|
40 | + /** |
|
41 | + * class constructor |
|
42 | + * |
|
43 | + * @param string $name |
|
44 | + * @param string $label |
|
45 | + * @param string $template |
|
46 | + * @param int $priority |
|
47 | + */ |
|
48 | + public function __construct($name, $label, $template, $priority = 100) |
|
49 | + { |
|
50 | + $this->set_name($name); |
|
51 | + $this->set_label($label); |
|
52 | + $this->set_template($template); |
|
53 | + $this->set_priority($priority); |
|
54 | + } |
|
55 | + |
|
56 | + |
|
57 | + /** |
|
58 | + * @return mixed |
|
59 | + */ |
|
60 | + public function name() |
|
61 | + { |
|
62 | + return $this->name; |
|
63 | + } |
|
64 | + |
|
65 | + |
|
66 | + /** |
|
67 | + * @param mixed $name |
|
68 | + */ |
|
69 | + public function set_name($name) |
|
70 | + { |
|
71 | + $this->name = $name; |
|
72 | + } |
|
73 | + |
|
74 | + |
|
75 | + /** |
|
76 | + * @return string |
|
77 | + */ |
|
78 | + public function label() |
|
79 | + { |
|
80 | + return $this->label; |
|
81 | + } |
|
82 | + |
|
83 | + |
|
84 | + /** |
|
85 | + * @param string $label |
|
86 | + */ |
|
87 | + public function set_label($label) |
|
88 | + { |
|
89 | + $this->label = $label; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @return array |
|
95 | + */ |
|
96 | + public function template() |
|
97 | + { |
|
98 | + return $this->template; |
|
99 | + } |
|
100 | + |
|
101 | + |
|
102 | + /** |
|
103 | + * @param string $template |
|
104 | + */ |
|
105 | + public function set_template($template) |
|
106 | + { |
|
107 | + $this->template = $template; |
|
108 | + } |
|
109 | + |
|
110 | + |
|
111 | + /** |
|
112 | + * @return int |
|
113 | + */ |
|
114 | + public function priority() |
|
115 | + { |
|
116 | + return $this->priority; |
|
117 | + } |
|
118 | + |
|
119 | + |
|
120 | + /** |
|
121 | + * @param int $priority |
|
122 | + */ |
|
123 | + public function set_priority($priority) |
|
124 | + { |
|
125 | + $this->priority = intval($priority); |
|
126 | + } |
|
127 | 127 | } |
@@ -17,43 +17,43 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - /** |
|
21 | - * add |
|
22 | - * |
|
23 | - * attaches aTemplate_Part to the Collection |
|
24 | - * and sets any supplied data associated with the current iterator entry |
|
25 | - * |
|
26 | - * @access public |
|
27 | - * @param EE_Template_Part $object |
|
28 | - * @param int $priority |
|
29 | - * @return bool |
|
30 | - */ |
|
31 | - public function insert($object, $priority = 100) |
|
32 | - { |
|
33 | - if ($object instanceof EE_Template_Part) { |
|
34 | - parent::insert($object, $priority); |
|
35 | - return true; |
|
36 | - } else { |
|
37 | - return false; |
|
38 | - } |
|
39 | - } |
|
20 | + /** |
|
21 | + * add |
|
22 | + * |
|
23 | + * attaches aTemplate_Part to the Collection |
|
24 | + * and sets any supplied data associated with the current iterator entry |
|
25 | + * |
|
26 | + * @access public |
|
27 | + * @param EE_Template_Part $object |
|
28 | + * @param int $priority |
|
29 | + * @return bool |
|
30 | + */ |
|
31 | + public function insert($object, $priority = 100) |
|
32 | + { |
|
33 | + if ($object instanceof EE_Template_Part) { |
|
34 | + parent::insert($object, $priority); |
|
35 | + return true; |
|
36 | + } else { |
|
37 | + return false; |
|
38 | + } |
|
39 | + } |
|
40 | 40 | |
41 | 41 | |
42 | - /** |
|
43 | - * compare |
|
44 | - * |
|
45 | - * sorts EE_Template_Part in ascending order based on set priority |
|
46 | - * |
|
47 | - * @access public |
|
48 | - * @param int $priority1 |
|
49 | - * @param int $priority2 |
|
50 | - * @return bool |
|
51 | - */ |
|
52 | - public function compare($priority1, $priority2) |
|
53 | - { |
|
54 | - if ($priority1 === $priority2) { |
|
55 | - return 0; |
|
56 | - } |
|
57 | - return $priority1 > $priority2 ? -1 : 1; |
|
58 | - } |
|
42 | + /** |
|
43 | + * compare |
|
44 | + * |
|
45 | + * sorts EE_Template_Part in ascending order based on set priority |
|
46 | + * |
|
47 | + * @access public |
|
48 | + * @param int $priority1 |
|
49 | + * @param int $priority2 |
|
50 | + * @return bool |
|
51 | + */ |
|
52 | + public function compare($priority1, $priority2) |
|
53 | + { |
|
54 | + if ($priority1 === $priority2) { |
|
55 | + return 0; |
|
56 | + } |
|
57 | + return $priority1 > $priority2 ? -1 : 1; |
|
58 | + } |
|
59 | 59 | } |
@@ -14,71 +14,71 @@ |
||
14 | 14 | class EE_Processor_Base |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * Used to indicate whether current request is for an IPN or not. |
|
19 | - * |
|
20 | - * @var bool |
|
21 | - */ |
|
22 | - protected static $IPN = false; |
|
17 | + /** |
|
18 | + * Used to indicate whether current request is for an IPN or not. |
|
19 | + * |
|
20 | + * @var bool |
|
21 | + */ |
|
22 | + protected static $IPN = false; |
|
23 | 23 | |
24 | - /** |
|
25 | - * Used to indicate whether SPCO is being revisited by registrant or not. |
|
26 | - * |
|
27 | - * @var bool |
|
28 | - */ |
|
29 | - protected $_revisit = false; |
|
24 | + /** |
|
25 | + * Used to indicate whether SPCO is being revisited by registrant or not. |
|
26 | + * |
|
27 | + * @var bool |
|
28 | + */ |
|
29 | + protected $_revisit = false; |
|
30 | 30 | |
31 | 31 | |
32 | - /** |
|
33 | - * @param boolean $IPN |
|
34 | - */ |
|
35 | - public static function set_IPN($IPN) |
|
36 | - { |
|
37 | - self::$IPN = filter_var($IPN, FILTER_VALIDATE_BOOLEAN); |
|
38 | - } |
|
32 | + /** |
|
33 | + * @param boolean $IPN |
|
34 | + */ |
|
35 | + public static function set_IPN($IPN) |
|
36 | + { |
|
37 | + self::$IPN = filter_var($IPN, FILTER_VALIDATE_BOOLEAN); |
|
38 | + } |
|
39 | 39 | |
40 | 40 | |
41 | - /** |
|
42 | - * Allows external class (usually checkout) to set whether SPCO is being revisited by registrant or not. |
|
43 | - * |
|
44 | - * @param bool $revisit |
|
45 | - * @return void |
|
46 | - */ |
|
47 | - public function set_revisit($revisit = false) |
|
48 | - { |
|
49 | - $this->_revisit = filter_var($revisit, FILTER_VALIDATE_BOOLEAN); |
|
50 | - } |
|
41 | + /** |
|
42 | + * Allows external class (usually checkout) to set whether SPCO is being revisited by registrant or not. |
|
43 | + * |
|
44 | + * @param bool $revisit |
|
45 | + * @return void |
|
46 | + */ |
|
47 | + public function set_revisit($revisit = false) |
|
48 | + { |
|
49 | + $this->_revisit = filter_var($revisit, FILTER_VALIDATE_BOOLEAN); |
|
50 | + } |
|
51 | 51 | |
52 | 52 | |
53 | - /** |
|
54 | - * debug |
|
55 | - * |
|
56 | - * @param string $class |
|
57 | - * @param string $func |
|
58 | - * @param string $line |
|
59 | - * @param \EE_Transaction $transaction |
|
60 | - * @param array $info |
|
61 | - * @param bool $display_request |
|
62 | - */ |
|
63 | - protected function log( |
|
64 | - $class = '', |
|
65 | - $func = '', |
|
66 | - $line = '', |
|
67 | - EE_Transaction $transaction, |
|
68 | - $info = array(), |
|
69 | - $display_request = false |
|
70 | - ) { |
|
71 | - if (WP_DEBUG && false) { |
|
72 | - if ($transaction instanceof EE_Transaction) { |
|
73 | - // don't serialize objects |
|
74 | - $info = EEH_Debug_Tools::strip_objects($info); |
|
75 | - if ($transaction->ID()) { |
|
76 | - $info['TXN_status'] = $transaction->status_ID(); |
|
77 | - $info['TXN_reg_steps'] = $transaction->reg_steps(); |
|
78 | - $index = 'EE_Transaction: ' . $transaction->ID(); |
|
79 | - EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index); |
|
80 | - } |
|
81 | - } |
|
82 | - } |
|
83 | - } |
|
53 | + /** |
|
54 | + * debug |
|
55 | + * |
|
56 | + * @param string $class |
|
57 | + * @param string $func |
|
58 | + * @param string $line |
|
59 | + * @param \EE_Transaction $transaction |
|
60 | + * @param array $info |
|
61 | + * @param bool $display_request |
|
62 | + */ |
|
63 | + protected function log( |
|
64 | + $class = '', |
|
65 | + $func = '', |
|
66 | + $line = '', |
|
67 | + EE_Transaction $transaction, |
|
68 | + $info = array(), |
|
69 | + $display_request = false |
|
70 | + ) { |
|
71 | + if (WP_DEBUG && false) { |
|
72 | + if ($transaction instanceof EE_Transaction) { |
|
73 | + // don't serialize objects |
|
74 | + $info = EEH_Debug_Tools::strip_objects($info); |
|
75 | + if ($transaction->ID()) { |
|
76 | + $info['TXN_status'] = $transaction->status_ID(); |
|
77 | + $info['TXN_reg_steps'] = $transaction->reg_steps(); |
|
78 | + $index = 'EE_Transaction: ' . $transaction->ID(); |
|
79 | + EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index); |
|
80 | + } |
|
81 | + } |
|
82 | + } |
|
83 | + } |
|
84 | 84 | } |
@@ -75,7 +75,7 @@ |
||
75 | 75 | if ($transaction->ID()) { |
76 | 76 | $info['TXN_status'] = $transaction->status_ID(); |
77 | 77 | $info['TXN_reg_steps'] = $transaction->reg_steps(); |
78 | - $index = 'EE_Transaction: ' . $transaction->ID(); |
|
78 | + $index = 'EE_Transaction: '.$transaction->ID(); |
|
79 | 79 | EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index); |
80 | 80 | } |
81 | 81 | } |
@@ -15,51 +15,51 @@ |
||
15 | 15 | class EE_Help_Tour_final_stop extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Final Stop Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'final-stop-tour'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Final Stop Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'final-stop-tour'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'id' => 'contextual-help-link', |
|
30 | - 'content' => $this->_end(), |
|
31 | - 'button_text' => __('Quit', 'event_espresso'), |
|
32 | - 'options' => array( |
|
33 | - 'tipLocation' => 'left', |
|
34 | - 'tipAdjustmentY' => -20, |
|
35 | - 'tipAdjustmentX' => 10, |
|
36 | - ), |
|
37 | - ), |
|
38 | - ); |
|
39 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'id' => 'contextual-help-link', |
|
30 | + 'content' => $this->_end(), |
|
31 | + 'button_text' => __('Quit', 'event_espresso'), |
|
32 | + 'options' => array( |
|
33 | + 'tipLocation' => 'left', |
|
34 | + 'tipAdjustmentY' => -20, |
|
35 | + 'tipAdjustmentX' => 10, |
|
36 | + ), |
|
37 | + ), |
|
38 | + ); |
|
39 | + } |
|
40 | 40 | |
41 | 41 | |
42 | - /** |
|
43 | - * This is the default last stop for all tours that is displayed at the end of a tour OR when a tour is exited for |
|
44 | - * the first time. |
|
45 | - * |
|
46 | - * @return string |
|
47 | - */ |
|
48 | - protected function _end() |
|
49 | - { |
|
50 | - $query_args = array( |
|
51 | - 'action' => 'admin_option_settings', |
|
52 | - 'page' => 'espresso_general_settings', |
|
53 | - ); |
|
54 | - return '<p>' |
|
55 | - . sprintf( |
|
56 | - __( |
|
57 | - 'That\'s it for the tour! At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons. There are help tours available on all Event Espresso Admin pages. If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', |
|
58 | - 'event_espresso' |
|
59 | - ), |
|
60 | - '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">', |
|
61 | - '</a>' |
|
62 | - ) |
|
63 | - . '</p>'; |
|
64 | - } |
|
42 | + /** |
|
43 | + * This is the default last stop for all tours that is displayed at the end of a tour OR when a tour is exited for |
|
44 | + * the first time. |
|
45 | + * |
|
46 | + * @return string |
|
47 | + */ |
|
48 | + protected function _end() |
|
49 | + { |
|
50 | + $query_args = array( |
|
51 | + 'action' => 'admin_option_settings', |
|
52 | + 'page' => 'espresso_general_settings', |
|
53 | + ); |
|
54 | + return '<p>' |
|
55 | + . sprintf( |
|
56 | + __( |
|
57 | + 'That\'s it for the tour! At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons. There are help tours available on all Event Espresso Admin pages. If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', |
|
58 | + 'event_espresso' |
|
59 | + ), |
|
60 | + '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">', |
|
61 | + '</a>' |
|
62 | + ) |
|
63 | + . '</p>'; |
|
64 | + } |
|
65 | 65 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 'That\'s it for the tour! At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons. There are help tours available on all Event Espresso Admin pages. If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', |
58 | 58 | 'event_espresso' |
59 | 59 | ), |
60 | - '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">', |
|
60 | + '<a href="'.EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')).'">', |
|
61 | 61 | '</a>' |
62 | 62 | ) |
63 | 63 | . '</p>'; |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | */ |
222 | 222 | public function set_submit_button_text($submit_button_text = '') |
223 | 223 | { |
224 | - if (! empty($submit_button_text)) { |
|
224 | + if ( ! empty($submit_button_text)) { |
|
225 | 225 | $this->_submit_button_text = $submit_button_text; |
226 | 226 | } elseif ($this->checkout->next_step instanceof EE_SPCO_Reg_Step) { |
227 | 227 | if ($this->checkout->revisit) { |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | public function reg_form_name() |
380 | 380 | { |
381 | 381 | if (empty($this->_reg_form_name)) { |
382 | - $this->set_reg_form_name('ee-spco-' . $this->slug() . '-reg-step-form'); |
|
382 | + $this->set_reg_form_name('ee-spco-'.$this->slug().'-reg-step-form'); |
|
383 | 383 | } |
384 | 384 | return $this->_reg_form_name; |
385 | 385 | } |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | public function reg_step_url($action = '') |
404 | 404 | { |
405 | 405 | $query_args = array('step' => $this->slug()); |
406 | - if (! empty($action)) { |
|
406 | + if ( ! empty($action)) { |
|
407 | 407 | $query_args['action'] = $action; |
408 | 408 | } |
409 | 409 | // final step has no display |
@@ -433,12 +433,12 @@ discard block |
||
433 | 433 | return new EE_Form_Section_Proper( |
434 | 434 | array( |
435 | 435 | 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
436 | - 'html_id' => 'ee-' . $this->slug() . '-hidden-inputs', |
|
436 | + 'html_id' => 'ee-'.$this->slug().'-hidden-inputs', |
|
437 | 437 | 'subsections' => array( |
438 | 438 | 'next_step' => new EE_Fixed_Hidden_Input( |
439 | 439 | array( |
440 | 440 | 'html_name' => 'next_step', |
441 | - 'html_id' => 'spco-' . $this->slug() . '-next-step', |
|
441 | + 'html_id' => 'spco-'.$this->slug().'-next-step', |
|
442 | 442 | 'default' => $this->checkout->next_step instanceof EE_SPCO_Reg_Step |
443 | 443 | ? $this->checkout->next_step->slug() |
444 | 444 | : '', |
@@ -452,12 +452,12 @@ discard block |
||
452 | 452 | return new EE_Form_Section_Proper( |
453 | 453 | array( |
454 | 454 | 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
455 | - 'html_id' => 'ee-' . $this->slug() . '-hidden-inputs', |
|
455 | + 'html_id' => 'ee-'.$this->slug().'-hidden-inputs', |
|
456 | 456 | 'subsections' => array( |
457 | 457 | 'action' => new EE_Fixed_Hidden_Input( |
458 | 458 | array( |
459 | 459 | 'html_name' => 'action', |
460 | - 'html_id' => 'spco-' . $this->slug() . '-action', |
|
460 | + 'html_id' => 'spco-'.$this->slug().'-action', |
|
461 | 461 | 'default' => apply_filters( |
462 | 462 | 'FHEE__EE_SPCO_Reg_Step__reg_step_hidden_inputs__default_form_action', |
463 | 463 | empty($this->checkout->reg_url_link) |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | 'next_step' => new EE_Fixed_Hidden_Input( |
471 | 471 | array( |
472 | 472 | 'html_name' => 'next_step', |
473 | - 'html_id' => 'spco-' . $this->slug() . '-next-step', |
|
473 | + 'html_id' => 'spco-'.$this->slug().'-next-step', |
|
474 | 474 | 'default' => $this->checkout->next_step instanceof EE_SPCO_Reg_Step |
475 | 475 | ? $this->checkout->next_step->slug() |
476 | 476 | : '', |
@@ -547,7 +547,7 @@ discard block |
||
547 | 547 | */ |
548 | 548 | public function reg_step_submit_button() |
549 | 549 | { |
550 | - if (! $this->checkout->next_step instanceof EE_SPCO_Reg_Step) { |
|
550 | + if ( ! $this->checkout->next_step instanceof EE_SPCO_Reg_Step) { |
|
551 | 551 | return ''; |
552 | 552 | } |
553 | 553 | ob_start(); |
@@ -561,10 +561,10 @@ discard block |
||
561 | 561 | // generate submit button |
562 | 562 | $sbmt_btn = new EE_Submit_Input( |
563 | 563 | array( |
564 | - 'html_name' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), |
|
565 | - 'html_id' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), |
|
564 | + 'html_name' => 'spco-go-to-step-'.$this->checkout->next_step->slug(), |
|
565 | + 'html_id' => 'spco-go-to-step-'.$this->checkout->next_step->slug(), |
|
566 | 566 | 'html_class' => 'spco-next-step-btn', |
567 | - 'other_html_attributes' => ' rel="' . $this->slug() . '"', |
|
567 | + 'other_html_attributes' => ' rel="'.$this->slug().'"', |
|
568 | 568 | 'default' => $this->submit_button_text(), |
569 | 569 | ) |
570 | 570 | ); |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | $sbmt_btn_html = $sbmt_btn->get_html_for_input(); |
573 | 573 | $html .= EEH_HTML::div( |
574 | 574 | apply_filters('FHEE__EE_SPCO_Reg_Step__reg_step_submit_button__sbmt_btn_html', $sbmt_btn_html, $this), |
575 | - 'spco-' . $this->slug() . '-whats-next-buttons-dv', |
|
575 | + 'spco-'.$this->slug().'-whats-next-buttons-dv', |
|
576 | 576 | 'spco-whats-next-buttons' |
577 | 577 | ); |
578 | 578 | return $html; |
@@ -12,640 +12,640 @@ |
||
12 | 12 | abstract class EE_SPCO_Reg_Step |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * $_completed - TRUE if this step has fully completed it's duties |
|
17 | - * |
|
18 | - * @access protected |
|
19 | - * @type bool $_completed |
|
20 | - */ |
|
21 | - protected $_completed = false; |
|
22 | - |
|
23 | - /** |
|
24 | - * $_is_current_step - TRUE if this is the current step |
|
25 | - * |
|
26 | - * @access protected |
|
27 | - * @type bool $_is_current_step |
|
28 | - */ |
|
29 | - protected $_is_current_step = false; |
|
30 | - |
|
31 | - /** |
|
32 | - * $_order - when the reg step should be run relative to other steps |
|
33 | - * |
|
34 | - * @access protected |
|
35 | - * @type int $_template |
|
36 | - */ |
|
37 | - protected $_order = 0; |
|
38 | - |
|
39 | - /** |
|
40 | - * $_slug - URL param for this step |
|
41 | - * |
|
42 | - * @access protected |
|
43 | - * @type string $_slug |
|
44 | - */ |
|
45 | - protected $_slug; |
|
46 | - |
|
47 | - /** |
|
48 | - * $_name - Step Name - translatable string |
|
49 | - * |
|
50 | - * @access protected |
|
51 | - * @type string $_slug |
|
52 | - */ |
|
53 | - protected $_name; |
|
54 | - |
|
55 | - /** |
|
56 | - * $_submit_button_text - translatable string that appears on this step's submit button |
|
57 | - * |
|
58 | - * @access protected |
|
59 | - * @type string $_slug |
|
60 | - */ |
|
61 | - protected $_submit_button_text; |
|
62 | - |
|
63 | - /** |
|
64 | - * $_template - template name |
|
65 | - * |
|
66 | - * @access protected |
|
67 | - * @type string $_template |
|
68 | - */ |
|
69 | - protected $_template; |
|
70 | - |
|
71 | - /** |
|
72 | - * $_reg_form_name - the form input name and id attribute |
|
73 | - * |
|
74 | - * @access protected |
|
75 | - * @var string $_reg_form_name |
|
76 | - */ |
|
77 | - protected $_reg_form_name; |
|
78 | - |
|
79 | - /** |
|
80 | - * $_success_message - text to display upon successful form submission |
|
81 | - * |
|
82 | - * @access private |
|
83 | - * @var string $_success_message |
|
84 | - */ |
|
85 | - protected $_success_message; |
|
86 | - |
|
87 | - /** |
|
88 | - * $_instructions - a brief description of how to complete the reg step. |
|
89 | - * Usually displayed in conjunction with the previous step's success message. |
|
90 | - * |
|
91 | - * @access private |
|
92 | - * @var string $_instructions |
|
93 | - */ |
|
94 | - protected $_instructions; |
|
95 | - |
|
96 | - /** |
|
97 | - * $_valid_data - the normalized and validated data for this step |
|
98 | - * |
|
99 | - * @access public |
|
100 | - * @var array $_valid_data |
|
101 | - */ |
|
102 | - protected $_valid_data = array(); |
|
103 | - |
|
104 | - /** |
|
105 | - * $reg_form - the registration form for this step |
|
106 | - * |
|
107 | - * @access public |
|
108 | - * @var EE_Form_Section_Proper $reg_form |
|
109 | - */ |
|
110 | - public $reg_form; |
|
111 | - |
|
112 | - /** |
|
113 | - * $checkout - EE_Checkout object for handling the properties of the current checkout process |
|
114 | - * |
|
115 | - * @access public |
|
116 | - * @var EE_Checkout $checkout |
|
117 | - */ |
|
118 | - public $checkout; |
|
119 | - |
|
120 | - |
|
121 | - /** |
|
122 | - * @return void |
|
123 | - */ |
|
124 | - abstract public function translate_js_strings(); |
|
125 | - |
|
126 | - |
|
127 | - /** |
|
128 | - * @return void |
|
129 | - */ |
|
130 | - abstract public function enqueue_styles_and_scripts(); |
|
131 | - |
|
132 | - |
|
133 | - /** |
|
134 | - * @return boolean |
|
135 | - */ |
|
136 | - abstract public function initialize_reg_step(); |
|
137 | - |
|
138 | - |
|
139 | - /** |
|
140 | - * @return string |
|
141 | - */ |
|
142 | - abstract public function generate_reg_form(); |
|
143 | - |
|
144 | - |
|
145 | - /** |
|
146 | - * @return boolean |
|
147 | - */ |
|
148 | - abstract public function process_reg_step(); |
|
149 | - |
|
150 | - |
|
151 | - /** |
|
152 | - * @return boolean |
|
153 | - */ |
|
154 | - abstract public function update_reg_step(); |
|
155 | - |
|
156 | - |
|
157 | - /** |
|
158 | - * @return boolean |
|
159 | - */ |
|
160 | - public function completed() |
|
161 | - { |
|
162 | - return $this->_completed; |
|
163 | - } |
|
164 | - |
|
165 | - |
|
166 | - /** |
|
167 | - * set_completed - toggles $_completed to TRUE |
|
168 | - */ |
|
169 | - public function set_completed() |
|
170 | - { |
|
171 | - // DEBUG LOG |
|
172 | - // $this->checkout->log( __CLASS__, __FUNCTION__, __LINE__ ); |
|
173 | - $this->_completed = apply_filters('FHEE__EE_SPCO_Reg_Step__set_completed___completed', true, $this); |
|
174 | - } |
|
175 | - |
|
176 | - |
|
177 | - /** |
|
178 | - * set_completed - toggles $_completed to FALSE |
|
179 | - */ |
|
180 | - public function set_not_completed() |
|
181 | - { |
|
182 | - $this->_completed = false; |
|
183 | - } |
|
184 | - |
|
185 | - |
|
186 | - /** |
|
187 | - * @return string |
|
188 | - */ |
|
189 | - public function name() |
|
190 | - { |
|
191 | - return $this->_name; |
|
192 | - } |
|
193 | - |
|
194 | - |
|
195 | - /** |
|
196 | - * @return string |
|
197 | - */ |
|
198 | - public function slug() |
|
199 | - { |
|
200 | - return $this->_slug; |
|
201 | - } |
|
202 | - |
|
203 | - |
|
204 | - /** |
|
205 | - * submit_button_text |
|
206 | - * the text that appears on the reg step form submit button |
|
207 | - * |
|
208 | - * @return string |
|
209 | - */ |
|
210 | - public function submit_button_text() |
|
211 | - { |
|
212 | - return $this->_submit_button_text; |
|
213 | - } |
|
214 | - |
|
215 | - |
|
216 | - /** |
|
217 | - * set_submit_button_text |
|
218 | - * sets the text that appears on the reg step form submit button |
|
219 | - * |
|
220 | - * @param string $submit_button_text |
|
221 | - */ |
|
222 | - public function set_submit_button_text($submit_button_text = '') |
|
223 | - { |
|
224 | - if (! empty($submit_button_text)) { |
|
225 | - $this->_submit_button_text = $submit_button_text; |
|
226 | - } elseif ($this->checkout->next_step instanceof EE_SPCO_Reg_Step) { |
|
227 | - if ($this->checkout->revisit) { |
|
228 | - $this->_submit_button_text = sprintf( |
|
229 | - __('Update %s', 'event_espresso'), |
|
230 | - $this->checkout->current_step->name() |
|
231 | - ); |
|
232 | - } else { |
|
233 | - $this->_submit_button_text = sprintf( |
|
234 | - __('Proceed to %s', 'event_espresso'), |
|
235 | - $this->checkout->next_step->name() |
|
236 | - ); |
|
237 | - } |
|
238 | - } |
|
239 | - // filters the submit button text |
|
240 | - $this->_submit_button_text = apply_filters( |
|
241 | - 'FHEE__EE_SPCO_Reg_Step__set_submit_button_text___submit_button_text', |
|
242 | - $this->_submit_button_text, |
|
243 | - $this->checkout |
|
244 | - ); |
|
245 | - } |
|
246 | - |
|
247 | - |
|
248 | - /** |
|
249 | - * @param boolean $is_current_step |
|
250 | - */ |
|
251 | - public function set_is_current_step($is_current_step) |
|
252 | - { |
|
253 | - $this->_is_current_step = $is_current_step; |
|
254 | - } |
|
255 | - |
|
256 | - |
|
257 | - /** |
|
258 | - * @return boolean |
|
259 | - */ |
|
260 | - public function is_current_step() |
|
261 | - { |
|
262 | - return $this->_is_current_step; |
|
263 | - } |
|
264 | - |
|
265 | - |
|
266 | - /** |
|
267 | - * @return boolean |
|
268 | - */ |
|
269 | - public function is_final_step() |
|
270 | - { |
|
271 | - return $this instanceof EE_SPCO_Reg_Step_Finalize_Registration ? true : false; |
|
272 | - } |
|
273 | - |
|
274 | - |
|
275 | - /** |
|
276 | - * @param int $order |
|
277 | - */ |
|
278 | - public function set_order($order) |
|
279 | - { |
|
280 | - $this->_order = $order; |
|
281 | - } |
|
282 | - |
|
283 | - |
|
284 | - /** |
|
285 | - * @return int |
|
286 | - */ |
|
287 | - public function order() |
|
288 | - { |
|
289 | - return $this->_order; |
|
290 | - } |
|
291 | - |
|
292 | - |
|
293 | - /** |
|
294 | - * @return string |
|
295 | - */ |
|
296 | - public function template(): string |
|
297 | - { |
|
298 | - return $this->_template; |
|
299 | - } |
|
300 | - |
|
301 | - |
|
302 | - /** |
|
303 | - * @param string $template |
|
304 | - */ |
|
305 | - public function setTemplate(string $template): void |
|
306 | - { |
|
307 | - $this->_template = $template; |
|
308 | - } |
|
309 | - |
|
310 | - |
|
311 | - /** |
|
312 | - * @return string |
|
313 | - */ |
|
314 | - public function success_message() |
|
315 | - { |
|
316 | - return $this->_success_message; |
|
317 | - } |
|
318 | - |
|
319 | - |
|
320 | - /** |
|
321 | - * _set_success_message |
|
322 | - * |
|
323 | - * @param string $success_message |
|
324 | - */ |
|
325 | - protected function _set_success_message($success_message) |
|
326 | - { |
|
327 | - $this->_success_message = $success_message; |
|
328 | - } |
|
329 | - |
|
330 | - |
|
331 | - /** |
|
332 | - * _reset_success_message |
|
333 | - * |
|
334 | - * @return void |
|
335 | - */ |
|
336 | - protected function _reset_success_message() |
|
337 | - { |
|
338 | - $this->_success_message = ''; |
|
339 | - } |
|
340 | - |
|
341 | - |
|
342 | - /** |
|
343 | - * @return string |
|
344 | - */ |
|
345 | - public function _instructions() |
|
346 | - { |
|
347 | - return $this->_instructions; |
|
348 | - } |
|
349 | - |
|
350 | - |
|
351 | - /** |
|
352 | - * @param string $instructions |
|
353 | - */ |
|
354 | - public function set_instructions($instructions) |
|
355 | - { |
|
356 | - $this->_instructions = apply_filters( |
|
357 | - 'FHEE__EE_SPCO_Reg_Step__set_instructions__instructions', |
|
358 | - $instructions, |
|
359 | - $this |
|
360 | - ); |
|
361 | - } |
|
362 | - |
|
363 | - |
|
364 | - /** |
|
365 | - * @param array $valid_data |
|
366 | - */ |
|
367 | - public function set_valid_data($valid_data) |
|
368 | - { |
|
369 | - $this->_valid_data = $valid_data; |
|
370 | - } |
|
371 | - |
|
372 | - |
|
373 | - /** |
|
374 | - * @return array |
|
375 | - */ |
|
376 | - public function valid_data() |
|
377 | - { |
|
378 | - if (empty($this->_valid_data)) { |
|
379 | - $this->_valid_data = $this->reg_form->valid_data(); |
|
380 | - } |
|
381 | - return $this->_valid_data; |
|
382 | - } |
|
383 | - |
|
384 | - |
|
385 | - /** |
|
386 | - * @return string |
|
387 | - */ |
|
388 | - public function reg_form_name() |
|
389 | - { |
|
390 | - if (empty($this->_reg_form_name)) { |
|
391 | - $this->set_reg_form_name('ee-spco-' . $this->slug() . '-reg-step-form'); |
|
392 | - } |
|
393 | - return $this->_reg_form_name; |
|
394 | - } |
|
395 | - |
|
396 | - |
|
397 | - /** |
|
398 | - * @param string $reg_form_name |
|
399 | - */ |
|
400 | - protected function set_reg_form_name($reg_form_name) |
|
401 | - { |
|
402 | - $this->_reg_form_name = $reg_form_name; |
|
403 | - } |
|
404 | - |
|
405 | - |
|
406 | - /** |
|
407 | - * reg_step_url |
|
408 | - * |
|
409 | - * @param string $action |
|
410 | - * @return string |
|
411 | - */ |
|
412 | - public function reg_step_url($action = '') |
|
413 | - { |
|
414 | - $query_args = array('step' => $this->slug()); |
|
415 | - if (! empty($action)) { |
|
416 | - $query_args['action'] = $action; |
|
417 | - } |
|
418 | - // final step has no display |
|
419 | - if ($this instanceof EE_SPCO_Reg_Step_Finalize_Registration && $action === 'display_spco_reg_step') { |
|
420 | - $query_args['action'] = 'process_reg_step'; |
|
421 | - } |
|
422 | - if ($this->checkout->revisit) { |
|
423 | - $query_args['revisit'] = true; |
|
424 | - } |
|
425 | - if ($this->checkout->reg_url_link) { |
|
426 | - $query_args['e_reg_url_link'] = $this->checkout->reg_url_link; |
|
427 | - } |
|
428 | - return add_query_arg($query_args, $this->checkout->reg_page_base_url); |
|
429 | - } |
|
430 | - |
|
431 | - |
|
432 | - /** |
|
433 | - * creates the default hidden inputs section |
|
434 | - * |
|
435 | - * @return EE_Form_Section_Proper |
|
436 | - * @throws \EE_Error |
|
437 | - */ |
|
438 | - public function reg_step_hidden_inputs() |
|
439 | - { |
|
440 | - // hidden inputs for admin registrations |
|
441 | - if ($this->checkout->admin_request) { |
|
442 | - return new EE_Form_Section_Proper( |
|
443 | - array( |
|
444 | - 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
|
445 | - 'html_id' => 'ee-' . $this->slug() . '-hidden-inputs', |
|
446 | - 'subsections' => array( |
|
447 | - 'next_step' => new EE_Fixed_Hidden_Input( |
|
448 | - array( |
|
449 | - 'html_name' => 'next_step', |
|
450 | - 'html_id' => 'spco-' . $this->slug() . '-next-step', |
|
451 | - 'default' => $this->checkout->next_step instanceof EE_SPCO_Reg_Step |
|
452 | - ? $this->checkout->next_step->slug() |
|
453 | - : '', |
|
454 | - ) |
|
455 | - ), |
|
456 | - ), |
|
457 | - ) |
|
458 | - ); |
|
459 | - } |
|
460 | - // hidden inputs for frontend registrations |
|
461 | - return new EE_Form_Section_Proper( |
|
462 | - array( |
|
463 | - 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
|
464 | - 'html_id' => 'ee-' . $this->slug() . '-hidden-inputs', |
|
465 | - 'subsections' => array( |
|
466 | - 'action' => new EE_Fixed_Hidden_Input( |
|
467 | - array( |
|
468 | - 'html_name' => 'action', |
|
469 | - 'html_id' => 'spco-' . $this->slug() . '-action', |
|
470 | - 'default' => apply_filters( |
|
471 | - 'FHEE__EE_SPCO_Reg_Step__reg_step_hidden_inputs__default_form_action', |
|
472 | - empty($this->checkout->reg_url_link) |
|
473 | - ? 'process_reg_step' |
|
474 | - : 'update_reg_step', |
|
475 | - $this |
|
476 | - ), |
|
477 | - ) |
|
478 | - ), |
|
479 | - 'next_step' => new EE_Fixed_Hidden_Input( |
|
480 | - array( |
|
481 | - 'html_name' => 'next_step', |
|
482 | - 'html_id' => 'spco-' . $this->slug() . '-next-step', |
|
483 | - 'default' => $this->checkout->next_step instanceof EE_SPCO_Reg_Step |
|
484 | - ? $this->checkout->next_step->slug() |
|
485 | - : '', |
|
486 | - ) |
|
487 | - ), |
|
488 | - 'e_reg_url_link' => new EE_Fixed_Hidden_Input( |
|
489 | - array( |
|
490 | - 'html_name' => 'e_reg_url_link', |
|
491 | - 'html_id' => 'spco-reg_url_link', |
|
492 | - 'default' => $this->checkout->reg_url_link, |
|
493 | - ) |
|
494 | - ), |
|
495 | - 'revisit' => new EE_Fixed_Hidden_Input( |
|
496 | - array( |
|
497 | - 'html_name' => 'revisit', |
|
498 | - 'html_id' => 'spco-revisit', |
|
499 | - 'default' => $this->checkout->revisit, |
|
500 | - ) |
|
501 | - ), |
|
502 | - ), |
|
503 | - ) |
|
504 | - ); |
|
505 | - } |
|
506 | - |
|
507 | - |
|
508 | - /** |
|
509 | - * generate_reg_form_for_actions |
|
510 | - * |
|
511 | - * @param array $actions |
|
512 | - * @return void |
|
513 | - */ |
|
514 | - public function generate_reg_form_for_actions($actions = array()) |
|
515 | - { |
|
516 | - $actions = array_merge( |
|
517 | - array( |
|
518 | - 'generate_reg_form', |
|
519 | - 'display_spco_reg_step', |
|
520 | - 'process_reg_step', |
|
521 | - 'update_reg_step', |
|
522 | - ), |
|
523 | - $actions |
|
524 | - ); |
|
525 | - $this->checkout->generate_reg_form = in_array($this->checkout->action, $actions, true) ? true : false; |
|
526 | - } |
|
527 | - |
|
528 | - |
|
529 | - /** |
|
530 | - * @return string |
|
531 | - * @throws \EE_Error |
|
532 | - */ |
|
533 | - public function display_reg_form() |
|
534 | - { |
|
535 | - $html = ''; |
|
536 | - if ($this->reg_form instanceof EE_Form_Section_Proper) { |
|
537 | - do_action('AHEE__EE_SPCO_Reg_Step__display_reg_form__reg_form', $this->reg_form, $this); |
|
538 | - $html .= ! $this->checkout->admin_request ? $this->reg_form->form_open($this->reg_step_url()) : ''; |
|
539 | - if (EE_Registry::instance()->REQ->ajax) { |
|
540 | - $this->reg_form->localize_validation_rules(); |
|
541 | - $this->checkout->json_response->add_validation_rules(EE_Form_Section_Proper::js_localization()); |
|
542 | - } |
|
543 | - $html .= $this->reg_form->get_html(); |
|
544 | - $html .= ! $this->checkout->admin_request ? $this->reg_step_submit_button() : ''; |
|
545 | - $html .= ! $this->checkout->admin_request ? $this->reg_form->form_close() : ''; |
|
546 | - } |
|
547 | - return $html; |
|
548 | - } |
|
549 | - |
|
550 | - |
|
551 | - /** |
|
552 | - * div_class - returns nothing for current step, but a css class of "hidden" for others |
|
553 | - * |
|
554 | - * @return string |
|
555 | - * @throws \EE_Error |
|
556 | - */ |
|
557 | - public function reg_step_submit_button() |
|
558 | - { |
|
559 | - if (! $this->checkout->next_step instanceof EE_SPCO_Reg_Step) { |
|
560 | - return ''; |
|
561 | - } |
|
562 | - ob_start(); |
|
563 | - do_action( |
|
564 | - 'AHEE__before_spco_whats_next_buttons', |
|
565 | - $this->slug(), |
|
566 | - $this->checkout->next_step->slug(), |
|
567 | - $this->checkout |
|
568 | - ); |
|
569 | - $html = ob_get_clean(); |
|
570 | - // generate submit button |
|
571 | - $sbmt_btn = new EE_Submit_Input( |
|
572 | - array( |
|
573 | - 'html_name' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), |
|
574 | - 'html_id' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), |
|
575 | - 'html_class' => 'spco-next-step-btn', |
|
576 | - 'other_html_attributes' => ' rel="' . $this->slug() . '"', |
|
577 | - 'default' => $this->submit_button_text(), |
|
578 | - ) |
|
579 | - ); |
|
580 | - $sbmt_btn->set_button_css_attributes(true, 'large'); |
|
581 | - $sbmt_btn_html = $sbmt_btn->get_html_for_input(); |
|
582 | - $html .= EEH_HTML::div( |
|
583 | - apply_filters('FHEE__EE_SPCO_Reg_Step__reg_step_submit_button__sbmt_btn_html', $sbmt_btn_html, $this), |
|
584 | - 'spco-' . $this->slug() . '-whats-next-buttons-dv', |
|
585 | - 'spco-whats-next-buttons' |
|
586 | - ); |
|
587 | - return $html; |
|
588 | - } |
|
589 | - |
|
590 | - |
|
591 | - /** |
|
592 | - * div_class - returns nothing for current step, but a css class of "hidden" for others |
|
593 | - * |
|
594 | - * @return string |
|
595 | - */ |
|
596 | - public function div_class() |
|
597 | - { |
|
598 | - return $this->is_current_step() ? '' : ' hidden'; |
|
599 | - } |
|
600 | - |
|
601 | - |
|
602 | - /** |
|
603 | - * div_class - returns a css class of "hidden" for current step, but nothing for others |
|
604 | - * |
|
605 | - * @return string |
|
606 | - */ |
|
607 | - public function edit_lnk_url() |
|
608 | - { |
|
609 | - return add_query_arg(array('step' => $this->slug()), $this->checkout->reg_page_base_url); |
|
610 | - } |
|
611 | - |
|
612 | - |
|
613 | - /** |
|
614 | - * div_class - returns a css class of "hidden" for current step, but nothing for others |
|
615 | - * |
|
616 | - * @return string |
|
617 | - */ |
|
618 | - public function edit_link_class() |
|
619 | - { |
|
620 | - return $this->is_current_step() ? ' hidden' : ''; |
|
621 | - } |
|
622 | - |
|
623 | - |
|
624 | - /** |
|
625 | - * update_checkout with changes that have been made to the cart |
|
626 | - * |
|
627 | - * @return void |
|
628 | - * @throws \EE_Error |
|
629 | - */ |
|
630 | - public function update_checkout() |
|
631 | - { |
|
632 | - // grab the cart grand total and reset TXN total |
|
633 | - $this->checkout->transaction->set_total($this->checkout->cart->get_cart_grand_total()); |
|
634 | - $this->checkout->stash_transaction_and_checkout(); |
|
635 | - } |
|
636 | - |
|
637 | - |
|
638 | - /** |
|
639 | - * __sleep |
|
640 | - * to conserve db space, let's remove the reg_form and the EE_Checkout object from EE_SPCO_Reg_Step objects upon |
|
641 | - * serialization EE_Checkout will handle the reimplementation of itself upon waking, but we won't bother with the |
|
642 | - * reg form, because if needed, it will be regenerated anyways |
|
643 | - * |
|
644 | - * @return array |
|
645 | - */ |
|
646 | - public function __sleep() |
|
647 | - { |
|
648 | - // remove the reg form and the checkout |
|
649 | - return array_diff(array_keys(get_object_vars($this)), array('reg_form', 'checkout')); |
|
650 | - } |
|
15 | + /** |
|
16 | + * $_completed - TRUE if this step has fully completed it's duties |
|
17 | + * |
|
18 | + * @access protected |
|
19 | + * @type bool $_completed |
|
20 | + */ |
|
21 | + protected $_completed = false; |
|
22 | + |
|
23 | + /** |
|
24 | + * $_is_current_step - TRUE if this is the current step |
|
25 | + * |
|
26 | + * @access protected |
|
27 | + * @type bool $_is_current_step |
|
28 | + */ |
|
29 | + protected $_is_current_step = false; |
|
30 | + |
|
31 | + /** |
|
32 | + * $_order - when the reg step should be run relative to other steps |
|
33 | + * |
|
34 | + * @access protected |
|
35 | + * @type int $_template |
|
36 | + */ |
|
37 | + protected $_order = 0; |
|
38 | + |
|
39 | + /** |
|
40 | + * $_slug - URL param for this step |
|
41 | + * |
|
42 | + * @access protected |
|
43 | + * @type string $_slug |
|
44 | + */ |
|
45 | + protected $_slug; |
|
46 | + |
|
47 | + /** |
|
48 | + * $_name - Step Name - translatable string |
|
49 | + * |
|
50 | + * @access protected |
|
51 | + * @type string $_slug |
|
52 | + */ |
|
53 | + protected $_name; |
|
54 | + |
|
55 | + /** |
|
56 | + * $_submit_button_text - translatable string that appears on this step's submit button |
|
57 | + * |
|
58 | + * @access protected |
|
59 | + * @type string $_slug |
|
60 | + */ |
|
61 | + protected $_submit_button_text; |
|
62 | + |
|
63 | + /** |
|
64 | + * $_template - template name |
|
65 | + * |
|
66 | + * @access protected |
|
67 | + * @type string $_template |
|
68 | + */ |
|
69 | + protected $_template; |
|
70 | + |
|
71 | + /** |
|
72 | + * $_reg_form_name - the form input name and id attribute |
|
73 | + * |
|
74 | + * @access protected |
|
75 | + * @var string $_reg_form_name |
|
76 | + */ |
|
77 | + protected $_reg_form_name; |
|
78 | + |
|
79 | + /** |
|
80 | + * $_success_message - text to display upon successful form submission |
|
81 | + * |
|
82 | + * @access private |
|
83 | + * @var string $_success_message |
|
84 | + */ |
|
85 | + protected $_success_message; |
|
86 | + |
|
87 | + /** |
|
88 | + * $_instructions - a brief description of how to complete the reg step. |
|
89 | + * Usually displayed in conjunction with the previous step's success message. |
|
90 | + * |
|
91 | + * @access private |
|
92 | + * @var string $_instructions |
|
93 | + */ |
|
94 | + protected $_instructions; |
|
95 | + |
|
96 | + /** |
|
97 | + * $_valid_data - the normalized and validated data for this step |
|
98 | + * |
|
99 | + * @access public |
|
100 | + * @var array $_valid_data |
|
101 | + */ |
|
102 | + protected $_valid_data = array(); |
|
103 | + |
|
104 | + /** |
|
105 | + * $reg_form - the registration form for this step |
|
106 | + * |
|
107 | + * @access public |
|
108 | + * @var EE_Form_Section_Proper $reg_form |
|
109 | + */ |
|
110 | + public $reg_form; |
|
111 | + |
|
112 | + /** |
|
113 | + * $checkout - EE_Checkout object for handling the properties of the current checkout process |
|
114 | + * |
|
115 | + * @access public |
|
116 | + * @var EE_Checkout $checkout |
|
117 | + */ |
|
118 | + public $checkout; |
|
119 | + |
|
120 | + |
|
121 | + /** |
|
122 | + * @return void |
|
123 | + */ |
|
124 | + abstract public function translate_js_strings(); |
|
125 | + |
|
126 | + |
|
127 | + /** |
|
128 | + * @return void |
|
129 | + */ |
|
130 | + abstract public function enqueue_styles_and_scripts(); |
|
131 | + |
|
132 | + |
|
133 | + /** |
|
134 | + * @return boolean |
|
135 | + */ |
|
136 | + abstract public function initialize_reg_step(); |
|
137 | + |
|
138 | + |
|
139 | + /** |
|
140 | + * @return string |
|
141 | + */ |
|
142 | + abstract public function generate_reg_form(); |
|
143 | + |
|
144 | + |
|
145 | + /** |
|
146 | + * @return boolean |
|
147 | + */ |
|
148 | + abstract public function process_reg_step(); |
|
149 | + |
|
150 | + |
|
151 | + /** |
|
152 | + * @return boolean |
|
153 | + */ |
|
154 | + abstract public function update_reg_step(); |
|
155 | + |
|
156 | + |
|
157 | + /** |
|
158 | + * @return boolean |
|
159 | + */ |
|
160 | + public function completed() |
|
161 | + { |
|
162 | + return $this->_completed; |
|
163 | + } |
|
164 | + |
|
165 | + |
|
166 | + /** |
|
167 | + * set_completed - toggles $_completed to TRUE |
|
168 | + */ |
|
169 | + public function set_completed() |
|
170 | + { |
|
171 | + // DEBUG LOG |
|
172 | + // $this->checkout->log( __CLASS__, __FUNCTION__, __LINE__ ); |
|
173 | + $this->_completed = apply_filters('FHEE__EE_SPCO_Reg_Step__set_completed___completed', true, $this); |
|
174 | + } |
|
175 | + |
|
176 | + |
|
177 | + /** |
|
178 | + * set_completed - toggles $_completed to FALSE |
|
179 | + */ |
|
180 | + public function set_not_completed() |
|
181 | + { |
|
182 | + $this->_completed = false; |
|
183 | + } |
|
184 | + |
|
185 | + |
|
186 | + /** |
|
187 | + * @return string |
|
188 | + */ |
|
189 | + public function name() |
|
190 | + { |
|
191 | + return $this->_name; |
|
192 | + } |
|
193 | + |
|
194 | + |
|
195 | + /** |
|
196 | + * @return string |
|
197 | + */ |
|
198 | + public function slug() |
|
199 | + { |
|
200 | + return $this->_slug; |
|
201 | + } |
|
202 | + |
|
203 | + |
|
204 | + /** |
|
205 | + * submit_button_text |
|
206 | + * the text that appears on the reg step form submit button |
|
207 | + * |
|
208 | + * @return string |
|
209 | + */ |
|
210 | + public function submit_button_text() |
|
211 | + { |
|
212 | + return $this->_submit_button_text; |
|
213 | + } |
|
214 | + |
|
215 | + |
|
216 | + /** |
|
217 | + * set_submit_button_text |
|
218 | + * sets the text that appears on the reg step form submit button |
|
219 | + * |
|
220 | + * @param string $submit_button_text |
|
221 | + */ |
|
222 | + public function set_submit_button_text($submit_button_text = '') |
|
223 | + { |
|
224 | + if (! empty($submit_button_text)) { |
|
225 | + $this->_submit_button_text = $submit_button_text; |
|
226 | + } elseif ($this->checkout->next_step instanceof EE_SPCO_Reg_Step) { |
|
227 | + if ($this->checkout->revisit) { |
|
228 | + $this->_submit_button_text = sprintf( |
|
229 | + __('Update %s', 'event_espresso'), |
|
230 | + $this->checkout->current_step->name() |
|
231 | + ); |
|
232 | + } else { |
|
233 | + $this->_submit_button_text = sprintf( |
|
234 | + __('Proceed to %s', 'event_espresso'), |
|
235 | + $this->checkout->next_step->name() |
|
236 | + ); |
|
237 | + } |
|
238 | + } |
|
239 | + // filters the submit button text |
|
240 | + $this->_submit_button_text = apply_filters( |
|
241 | + 'FHEE__EE_SPCO_Reg_Step__set_submit_button_text___submit_button_text', |
|
242 | + $this->_submit_button_text, |
|
243 | + $this->checkout |
|
244 | + ); |
|
245 | + } |
|
246 | + |
|
247 | + |
|
248 | + /** |
|
249 | + * @param boolean $is_current_step |
|
250 | + */ |
|
251 | + public function set_is_current_step($is_current_step) |
|
252 | + { |
|
253 | + $this->_is_current_step = $is_current_step; |
|
254 | + } |
|
255 | + |
|
256 | + |
|
257 | + /** |
|
258 | + * @return boolean |
|
259 | + */ |
|
260 | + public function is_current_step() |
|
261 | + { |
|
262 | + return $this->_is_current_step; |
|
263 | + } |
|
264 | + |
|
265 | + |
|
266 | + /** |
|
267 | + * @return boolean |
|
268 | + */ |
|
269 | + public function is_final_step() |
|
270 | + { |
|
271 | + return $this instanceof EE_SPCO_Reg_Step_Finalize_Registration ? true : false; |
|
272 | + } |
|
273 | + |
|
274 | + |
|
275 | + /** |
|
276 | + * @param int $order |
|
277 | + */ |
|
278 | + public function set_order($order) |
|
279 | + { |
|
280 | + $this->_order = $order; |
|
281 | + } |
|
282 | + |
|
283 | + |
|
284 | + /** |
|
285 | + * @return int |
|
286 | + */ |
|
287 | + public function order() |
|
288 | + { |
|
289 | + return $this->_order; |
|
290 | + } |
|
291 | + |
|
292 | + |
|
293 | + /** |
|
294 | + * @return string |
|
295 | + */ |
|
296 | + public function template(): string |
|
297 | + { |
|
298 | + return $this->_template; |
|
299 | + } |
|
300 | + |
|
301 | + |
|
302 | + /** |
|
303 | + * @param string $template |
|
304 | + */ |
|
305 | + public function setTemplate(string $template): void |
|
306 | + { |
|
307 | + $this->_template = $template; |
|
308 | + } |
|
309 | + |
|
310 | + |
|
311 | + /** |
|
312 | + * @return string |
|
313 | + */ |
|
314 | + public function success_message() |
|
315 | + { |
|
316 | + return $this->_success_message; |
|
317 | + } |
|
318 | + |
|
319 | + |
|
320 | + /** |
|
321 | + * _set_success_message |
|
322 | + * |
|
323 | + * @param string $success_message |
|
324 | + */ |
|
325 | + protected function _set_success_message($success_message) |
|
326 | + { |
|
327 | + $this->_success_message = $success_message; |
|
328 | + } |
|
329 | + |
|
330 | + |
|
331 | + /** |
|
332 | + * _reset_success_message |
|
333 | + * |
|
334 | + * @return void |
|
335 | + */ |
|
336 | + protected function _reset_success_message() |
|
337 | + { |
|
338 | + $this->_success_message = ''; |
|
339 | + } |
|
340 | + |
|
341 | + |
|
342 | + /** |
|
343 | + * @return string |
|
344 | + */ |
|
345 | + public function _instructions() |
|
346 | + { |
|
347 | + return $this->_instructions; |
|
348 | + } |
|
349 | + |
|
350 | + |
|
351 | + /** |
|
352 | + * @param string $instructions |
|
353 | + */ |
|
354 | + public function set_instructions($instructions) |
|
355 | + { |
|
356 | + $this->_instructions = apply_filters( |
|
357 | + 'FHEE__EE_SPCO_Reg_Step__set_instructions__instructions', |
|
358 | + $instructions, |
|
359 | + $this |
|
360 | + ); |
|
361 | + } |
|
362 | + |
|
363 | + |
|
364 | + /** |
|
365 | + * @param array $valid_data |
|
366 | + */ |
|
367 | + public function set_valid_data($valid_data) |
|
368 | + { |
|
369 | + $this->_valid_data = $valid_data; |
|
370 | + } |
|
371 | + |
|
372 | + |
|
373 | + /** |
|
374 | + * @return array |
|
375 | + */ |
|
376 | + public function valid_data() |
|
377 | + { |
|
378 | + if (empty($this->_valid_data)) { |
|
379 | + $this->_valid_data = $this->reg_form->valid_data(); |
|
380 | + } |
|
381 | + return $this->_valid_data; |
|
382 | + } |
|
383 | + |
|
384 | + |
|
385 | + /** |
|
386 | + * @return string |
|
387 | + */ |
|
388 | + public function reg_form_name() |
|
389 | + { |
|
390 | + if (empty($this->_reg_form_name)) { |
|
391 | + $this->set_reg_form_name('ee-spco-' . $this->slug() . '-reg-step-form'); |
|
392 | + } |
|
393 | + return $this->_reg_form_name; |
|
394 | + } |
|
395 | + |
|
396 | + |
|
397 | + /** |
|
398 | + * @param string $reg_form_name |
|
399 | + */ |
|
400 | + protected function set_reg_form_name($reg_form_name) |
|
401 | + { |
|
402 | + $this->_reg_form_name = $reg_form_name; |
|
403 | + } |
|
404 | + |
|
405 | + |
|
406 | + /** |
|
407 | + * reg_step_url |
|
408 | + * |
|
409 | + * @param string $action |
|
410 | + * @return string |
|
411 | + */ |
|
412 | + public function reg_step_url($action = '') |
|
413 | + { |
|
414 | + $query_args = array('step' => $this->slug()); |
|
415 | + if (! empty($action)) { |
|
416 | + $query_args['action'] = $action; |
|
417 | + } |
|
418 | + // final step has no display |
|
419 | + if ($this instanceof EE_SPCO_Reg_Step_Finalize_Registration && $action === 'display_spco_reg_step') { |
|
420 | + $query_args['action'] = 'process_reg_step'; |
|
421 | + } |
|
422 | + if ($this->checkout->revisit) { |
|
423 | + $query_args['revisit'] = true; |
|
424 | + } |
|
425 | + if ($this->checkout->reg_url_link) { |
|
426 | + $query_args['e_reg_url_link'] = $this->checkout->reg_url_link; |
|
427 | + } |
|
428 | + return add_query_arg($query_args, $this->checkout->reg_page_base_url); |
|
429 | + } |
|
430 | + |
|
431 | + |
|
432 | + /** |
|
433 | + * creates the default hidden inputs section |
|
434 | + * |
|
435 | + * @return EE_Form_Section_Proper |
|
436 | + * @throws \EE_Error |
|
437 | + */ |
|
438 | + public function reg_step_hidden_inputs() |
|
439 | + { |
|
440 | + // hidden inputs for admin registrations |
|
441 | + if ($this->checkout->admin_request) { |
|
442 | + return new EE_Form_Section_Proper( |
|
443 | + array( |
|
444 | + 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
|
445 | + 'html_id' => 'ee-' . $this->slug() . '-hidden-inputs', |
|
446 | + 'subsections' => array( |
|
447 | + 'next_step' => new EE_Fixed_Hidden_Input( |
|
448 | + array( |
|
449 | + 'html_name' => 'next_step', |
|
450 | + 'html_id' => 'spco-' . $this->slug() . '-next-step', |
|
451 | + 'default' => $this->checkout->next_step instanceof EE_SPCO_Reg_Step |
|
452 | + ? $this->checkout->next_step->slug() |
|
453 | + : '', |
|
454 | + ) |
|
455 | + ), |
|
456 | + ), |
|
457 | + ) |
|
458 | + ); |
|
459 | + } |
|
460 | + // hidden inputs for frontend registrations |
|
461 | + return new EE_Form_Section_Proper( |
|
462 | + array( |
|
463 | + 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
|
464 | + 'html_id' => 'ee-' . $this->slug() . '-hidden-inputs', |
|
465 | + 'subsections' => array( |
|
466 | + 'action' => new EE_Fixed_Hidden_Input( |
|
467 | + array( |
|
468 | + 'html_name' => 'action', |
|
469 | + 'html_id' => 'spco-' . $this->slug() . '-action', |
|
470 | + 'default' => apply_filters( |
|
471 | + 'FHEE__EE_SPCO_Reg_Step__reg_step_hidden_inputs__default_form_action', |
|
472 | + empty($this->checkout->reg_url_link) |
|
473 | + ? 'process_reg_step' |
|
474 | + : 'update_reg_step', |
|
475 | + $this |
|
476 | + ), |
|
477 | + ) |
|
478 | + ), |
|
479 | + 'next_step' => new EE_Fixed_Hidden_Input( |
|
480 | + array( |
|
481 | + 'html_name' => 'next_step', |
|
482 | + 'html_id' => 'spco-' . $this->slug() . '-next-step', |
|
483 | + 'default' => $this->checkout->next_step instanceof EE_SPCO_Reg_Step |
|
484 | + ? $this->checkout->next_step->slug() |
|
485 | + : '', |
|
486 | + ) |
|
487 | + ), |
|
488 | + 'e_reg_url_link' => new EE_Fixed_Hidden_Input( |
|
489 | + array( |
|
490 | + 'html_name' => 'e_reg_url_link', |
|
491 | + 'html_id' => 'spco-reg_url_link', |
|
492 | + 'default' => $this->checkout->reg_url_link, |
|
493 | + ) |
|
494 | + ), |
|
495 | + 'revisit' => new EE_Fixed_Hidden_Input( |
|
496 | + array( |
|
497 | + 'html_name' => 'revisit', |
|
498 | + 'html_id' => 'spco-revisit', |
|
499 | + 'default' => $this->checkout->revisit, |
|
500 | + ) |
|
501 | + ), |
|
502 | + ), |
|
503 | + ) |
|
504 | + ); |
|
505 | + } |
|
506 | + |
|
507 | + |
|
508 | + /** |
|
509 | + * generate_reg_form_for_actions |
|
510 | + * |
|
511 | + * @param array $actions |
|
512 | + * @return void |
|
513 | + */ |
|
514 | + public function generate_reg_form_for_actions($actions = array()) |
|
515 | + { |
|
516 | + $actions = array_merge( |
|
517 | + array( |
|
518 | + 'generate_reg_form', |
|
519 | + 'display_spco_reg_step', |
|
520 | + 'process_reg_step', |
|
521 | + 'update_reg_step', |
|
522 | + ), |
|
523 | + $actions |
|
524 | + ); |
|
525 | + $this->checkout->generate_reg_form = in_array($this->checkout->action, $actions, true) ? true : false; |
|
526 | + } |
|
527 | + |
|
528 | + |
|
529 | + /** |
|
530 | + * @return string |
|
531 | + * @throws \EE_Error |
|
532 | + */ |
|
533 | + public function display_reg_form() |
|
534 | + { |
|
535 | + $html = ''; |
|
536 | + if ($this->reg_form instanceof EE_Form_Section_Proper) { |
|
537 | + do_action('AHEE__EE_SPCO_Reg_Step__display_reg_form__reg_form', $this->reg_form, $this); |
|
538 | + $html .= ! $this->checkout->admin_request ? $this->reg_form->form_open($this->reg_step_url()) : ''; |
|
539 | + if (EE_Registry::instance()->REQ->ajax) { |
|
540 | + $this->reg_form->localize_validation_rules(); |
|
541 | + $this->checkout->json_response->add_validation_rules(EE_Form_Section_Proper::js_localization()); |
|
542 | + } |
|
543 | + $html .= $this->reg_form->get_html(); |
|
544 | + $html .= ! $this->checkout->admin_request ? $this->reg_step_submit_button() : ''; |
|
545 | + $html .= ! $this->checkout->admin_request ? $this->reg_form->form_close() : ''; |
|
546 | + } |
|
547 | + return $html; |
|
548 | + } |
|
549 | + |
|
550 | + |
|
551 | + /** |
|
552 | + * div_class - returns nothing for current step, but a css class of "hidden" for others |
|
553 | + * |
|
554 | + * @return string |
|
555 | + * @throws \EE_Error |
|
556 | + */ |
|
557 | + public function reg_step_submit_button() |
|
558 | + { |
|
559 | + if (! $this->checkout->next_step instanceof EE_SPCO_Reg_Step) { |
|
560 | + return ''; |
|
561 | + } |
|
562 | + ob_start(); |
|
563 | + do_action( |
|
564 | + 'AHEE__before_spco_whats_next_buttons', |
|
565 | + $this->slug(), |
|
566 | + $this->checkout->next_step->slug(), |
|
567 | + $this->checkout |
|
568 | + ); |
|
569 | + $html = ob_get_clean(); |
|
570 | + // generate submit button |
|
571 | + $sbmt_btn = new EE_Submit_Input( |
|
572 | + array( |
|
573 | + 'html_name' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), |
|
574 | + 'html_id' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), |
|
575 | + 'html_class' => 'spco-next-step-btn', |
|
576 | + 'other_html_attributes' => ' rel="' . $this->slug() . '"', |
|
577 | + 'default' => $this->submit_button_text(), |
|
578 | + ) |
|
579 | + ); |
|
580 | + $sbmt_btn->set_button_css_attributes(true, 'large'); |
|
581 | + $sbmt_btn_html = $sbmt_btn->get_html_for_input(); |
|
582 | + $html .= EEH_HTML::div( |
|
583 | + apply_filters('FHEE__EE_SPCO_Reg_Step__reg_step_submit_button__sbmt_btn_html', $sbmt_btn_html, $this), |
|
584 | + 'spco-' . $this->slug() . '-whats-next-buttons-dv', |
|
585 | + 'spco-whats-next-buttons' |
|
586 | + ); |
|
587 | + return $html; |
|
588 | + } |
|
589 | + |
|
590 | + |
|
591 | + /** |
|
592 | + * div_class - returns nothing for current step, but a css class of "hidden" for others |
|
593 | + * |
|
594 | + * @return string |
|
595 | + */ |
|
596 | + public function div_class() |
|
597 | + { |
|
598 | + return $this->is_current_step() ? '' : ' hidden'; |
|
599 | + } |
|
600 | + |
|
601 | + |
|
602 | + /** |
|
603 | + * div_class - returns a css class of "hidden" for current step, but nothing for others |
|
604 | + * |
|
605 | + * @return string |
|
606 | + */ |
|
607 | + public function edit_lnk_url() |
|
608 | + { |
|
609 | + return add_query_arg(array('step' => $this->slug()), $this->checkout->reg_page_base_url); |
|
610 | + } |
|
611 | + |
|
612 | + |
|
613 | + /** |
|
614 | + * div_class - returns a css class of "hidden" for current step, but nothing for others |
|
615 | + * |
|
616 | + * @return string |
|
617 | + */ |
|
618 | + public function edit_link_class() |
|
619 | + { |
|
620 | + return $this->is_current_step() ? ' hidden' : ''; |
|
621 | + } |
|
622 | + |
|
623 | + |
|
624 | + /** |
|
625 | + * update_checkout with changes that have been made to the cart |
|
626 | + * |
|
627 | + * @return void |
|
628 | + * @throws \EE_Error |
|
629 | + */ |
|
630 | + public function update_checkout() |
|
631 | + { |
|
632 | + // grab the cart grand total and reset TXN total |
|
633 | + $this->checkout->transaction->set_total($this->checkout->cart->get_cart_grand_total()); |
|
634 | + $this->checkout->stash_transaction_and_checkout(); |
|
635 | + } |
|
636 | + |
|
637 | + |
|
638 | + /** |
|
639 | + * __sleep |
|
640 | + * to conserve db space, let's remove the reg_form and the EE_Checkout object from EE_SPCO_Reg_Step objects upon |
|
641 | + * serialization EE_Checkout will handle the reimplementation of itself upon waking, but we won't bother with the |
|
642 | + * reg form, because if needed, it will be regenerated anyways |
|
643 | + * |
|
644 | + * @return array |
|
645 | + */ |
|
646 | + public function __sleep() |
|
647 | + { |
|
648 | + // remove the reg form and the checkout |
|
649 | + return array_diff(array_keys(get_object_vars($this)), array('reg_form', 'checkout')); |
|
650 | + } |
|
651 | 651 | } |
@@ -15,289 +15,289 @@ |
||
15 | 15 | class Event_Checkin_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Event Check-in Tour', 'event_espresso'); |
|
21 | - if (isset($this->_req_data['event_id'])) { |
|
22 | - $this->_slug = 'event-checkin-overview-joyride'; |
|
23 | - } else { |
|
24 | - $this->_slug = 'all-event-checkin-overview-joyride'; |
|
25 | - } |
|
26 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Event Check-in Tour', 'event_espresso'); |
|
21 | + if (isset($this->_req_data['event_id'])) { |
|
22 | + $this->_slug = 'event-checkin-overview-joyride'; |
|
23 | + } else { |
|
24 | + $this->_slug = 'all-event-checkin-overview-joyride'; |
|
25 | + } |
|
26 | + } |
|
27 | 27 | |
28 | 28 | |
29 | - protected function _set_tour_stops() |
|
30 | - { |
|
31 | - $this->_stops = array( |
|
32 | - 10 => array( |
|
33 | - 'content' => $this->_start(), |
|
34 | - ), |
|
35 | - 20 => array( |
|
36 | - 'id' => '_REG_count', |
|
37 | - 'content' => $this->_reg_count_stop(), |
|
38 | - 'options' => array( |
|
39 | - 'tipLocation' => 'top', |
|
40 | - 'tipAdjustmentX' => -5, |
|
41 | - 'tipAdjustmentY' => -20, |
|
42 | - ), |
|
43 | - ), |
|
44 | - 30 => array( |
|
45 | - 'id' => 'ATT_name', |
|
46 | - 'content' => $this->_attendee_name_stop(), |
|
47 | - 'options' => array( |
|
48 | - 'tipLocation' => 'top', |
|
49 | - 'tipAdjustmentX' => -5, |
|
50 | - 'tipAdjustmentY' => -20, |
|
51 | - ), |
|
52 | - ), |
|
53 | - 40 => array( |
|
54 | - 'id' => 'ATT_email', |
|
55 | - 'content' => $this->_attendee_email_stop(), |
|
56 | - 'options' => array( |
|
57 | - 'tipLocation' => 'top', |
|
58 | - 'tipAdjustmentX' => -5, |
|
59 | - 'tipAdjustmentY' => -20, |
|
60 | - ), |
|
61 | - ), |
|
62 | - 50 => array( |
|
63 | - 'id' => '_REG_date', |
|
64 | - 'content' => $this->_reg_date_stop(), |
|
65 | - 'options' => array( |
|
66 | - 'tipLocation' => 'top', |
|
67 | - 'tipAdjustmentX' => -5, |
|
68 | - 'tipAdjustmentY' => -20, |
|
69 | - ), |
|
70 | - ), |
|
71 | - 60 => array( |
|
72 | - 'id' => '_REG_code', |
|
73 | - 'content' => $this->_reg_code_stop(), |
|
74 | - 'options' => array( |
|
75 | - 'tipLocation' => 'top', |
|
76 | - 'tipAdjustmentX' => -5, |
|
77 | - 'tipAdjustmentY' => -20, |
|
78 | - ), |
|
79 | - ), |
|
80 | - 80 => array( |
|
81 | - 'id' => '_REG_final_price', |
|
82 | - 'content' => $this->_reg_final_price_stop(), |
|
83 | - 'options' => array( |
|
84 | - 'tipLocation' => 'top', |
|
85 | - 'tipAdjustmentX' => -5, |
|
86 | - 'tipAdjustmentY' => -20, |
|
87 | - ), |
|
88 | - ), |
|
89 | - 90 => array( |
|
90 | - 'id' => 'TXN_paid', |
|
91 | - 'content' => $this->_txn_paid_stop(), |
|
92 | - 'options' => array( |
|
93 | - 'tipLocation' => 'left', |
|
94 | - 'tipAdjustmentX' => 0, |
|
95 | - 'tipAdjustmentY' => -50, |
|
96 | - ), |
|
97 | - ), |
|
98 | - 100 => array( |
|
99 | - 'id' => 'TXN_total', |
|
100 | - 'content' => $this->_txn_total_stop(), |
|
101 | - 'options' => array( |
|
102 | - 'tipLocation' => 'left', |
|
103 | - 'tipAdjustmentX' => 0, |
|
104 | - 'tipAdjustmentY' => -50, |
|
105 | - ), |
|
106 | - ), |
|
107 | - 110 => array( |
|
108 | - 'id' => 'PRC_name', |
|
109 | - 'content' => $this->_prc_name_stop(), |
|
110 | - 'options' => array( |
|
111 | - 'tipLocation' => 'left', |
|
112 | - 'tipAdjustmentX' => 0, |
|
113 | - 'tipAdjustmentY' => -50, |
|
114 | - ), |
|
115 | - ), |
|
116 | - 115 => array( |
|
117 | - 'id' => 'actions', |
|
118 | - 'content' => $this->_actions_stop(), |
|
119 | - 'options' => array( |
|
120 | - 'tipLocation' => 'left', |
|
121 | - 'tipAdjustmentX' => 0, |
|
122 | - 'tipAdjustmentY' => -30, |
|
123 | - ), |
|
124 | - ), |
|
125 | - 120 => array( |
|
126 | - 'class' => 'ee-list-table-legend-container', |
|
127 | - 'content' => $this->_legend_stop(), |
|
128 | - 'options' => array( |
|
129 | - 'tipLocation' => 'top', |
|
130 | - 'tipAdjustmentX' => 15, |
|
131 | - 'tipAdjustmentY' => -40, |
|
132 | - ), |
|
133 | - ), |
|
134 | - 125 => array( |
|
135 | - 'class' => 'bulkactions', |
|
136 | - 'content' => $this->_bulkactions_stop(), |
|
137 | - 'options' => array( |
|
138 | - 'tipLocation' => 'bottom', |
|
139 | - 'tipAdjustmentY' => -30, |
|
140 | - 'tipAdjustmentX' => 15, |
|
141 | - ), |
|
142 | - ), |
|
143 | - 130 => array( |
|
144 | - 'id' => 'event_id', |
|
145 | - 'content' => $this->_event_selector_stop(), |
|
146 | - 'options' => array( |
|
147 | - 'tipLocation' => 'right', |
|
148 | - 'tipAdjustmentY' => -50, |
|
149 | - 'tipAdjustmentX' => 25, |
|
150 | - ), |
|
151 | - ), |
|
152 | - 135 => array( |
|
153 | - 'id' => 'DTT_ID', |
|
154 | - 'content' => $this->_dtt_selector_stop(), |
|
155 | - 'options' => array( |
|
156 | - 'tipLocation' => 'bottom', |
|
157 | - 'tipAdjustmentY' => -30, |
|
158 | - 'tipAdjustmentX' => 15, |
|
159 | - ), |
|
160 | - ), |
|
161 | - 140 => array( |
|
162 | - 'id' => 'event-espresso_page_espresso_registrations-search-input', |
|
163 | - 'content' => $this->_search_stop(), |
|
164 | - 'options' => array( |
|
165 | - 'tipLocation' => 'left', |
|
166 | - 'tipAdjustmentY' => -50, |
|
167 | - 'tipAdjustmentX' => -15, |
|
168 | - ), |
|
169 | - ), |
|
170 | - ); |
|
171 | - } |
|
29 | + protected function _set_tour_stops() |
|
30 | + { |
|
31 | + $this->_stops = array( |
|
32 | + 10 => array( |
|
33 | + 'content' => $this->_start(), |
|
34 | + ), |
|
35 | + 20 => array( |
|
36 | + 'id' => '_REG_count', |
|
37 | + 'content' => $this->_reg_count_stop(), |
|
38 | + 'options' => array( |
|
39 | + 'tipLocation' => 'top', |
|
40 | + 'tipAdjustmentX' => -5, |
|
41 | + 'tipAdjustmentY' => -20, |
|
42 | + ), |
|
43 | + ), |
|
44 | + 30 => array( |
|
45 | + 'id' => 'ATT_name', |
|
46 | + 'content' => $this->_attendee_name_stop(), |
|
47 | + 'options' => array( |
|
48 | + 'tipLocation' => 'top', |
|
49 | + 'tipAdjustmentX' => -5, |
|
50 | + 'tipAdjustmentY' => -20, |
|
51 | + ), |
|
52 | + ), |
|
53 | + 40 => array( |
|
54 | + 'id' => 'ATT_email', |
|
55 | + 'content' => $this->_attendee_email_stop(), |
|
56 | + 'options' => array( |
|
57 | + 'tipLocation' => 'top', |
|
58 | + 'tipAdjustmentX' => -5, |
|
59 | + 'tipAdjustmentY' => -20, |
|
60 | + ), |
|
61 | + ), |
|
62 | + 50 => array( |
|
63 | + 'id' => '_REG_date', |
|
64 | + 'content' => $this->_reg_date_stop(), |
|
65 | + 'options' => array( |
|
66 | + 'tipLocation' => 'top', |
|
67 | + 'tipAdjustmentX' => -5, |
|
68 | + 'tipAdjustmentY' => -20, |
|
69 | + ), |
|
70 | + ), |
|
71 | + 60 => array( |
|
72 | + 'id' => '_REG_code', |
|
73 | + 'content' => $this->_reg_code_stop(), |
|
74 | + 'options' => array( |
|
75 | + 'tipLocation' => 'top', |
|
76 | + 'tipAdjustmentX' => -5, |
|
77 | + 'tipAdjustmentY' => -20, |
|
78 | + ), |
|
79 | + ), |
|
80 | + 80 => array( |
|
81 | + 'id' => '_REG_final_price', |
|
82 | + 'content' => $this->_reg_final_price_stop(), |
|
83 | + 'options' => array( |
|
84 | + 'tipLocation' => 'top', |
|
85 | + 'tipAdjustmentX' => -5, |
|
86 | + 'tipAdjustmentY' => -20, |
|
87 | + ), |
|
88 | + ), |
|
89 | + 90 => array( |
|
90 | + 'id' => 'TXN_paid', |
|
91 | + 'content' => $this->_txn_paid_stop(), |
|
92 | + 'options' => array( |
|
93 | + 'tipLocation' => 'left', |
|
94 | + 'tipAdjustmentX' => 0, |
|
95 | + 'tipAdjustmentY' => -50, |
|
96 | + ), |
|
97 | + ), |
|
98 | + 100 => array( |
|
99 | + 'id' => 'TXN_total', |
|
100 | + 'content' => $this->_txn_total_stop(), |
|
101 | + 'options' => array( |
|
102 | + 'tipLocation' => 'left', |
|
103 | + 'tipAdjustmentX' => 0, |
|
104 | + 'tipAdjustmentY' => -50, |
|
105 | + ), |
|
106 | + ), |
|
107 | + 110 => array( |
|
108 | + 'id' => 'PRC_name', |
|
109 | + 'content' => $this->_prc_name_stop(), |
|
110 | + 'options' => array( |
|
111 | + 'tipLocation' => 'left', |
|
112 | + 'tipAdjustmentX' => 0, |
|
113 | + 'tipAdjustmentY' => -50, |
|
114 | + ), |
|
115 | + ), |
|
116 | + 115 => array( |
|
117 | + 'id' => 'actions', |
|
118 | + 'content' => $this->_actions_stop(), |
|
119 | + 'options' => array( |
|
120 | + 'tipLocation' => 'left', |
|
121 | + 'tipAdjustmentX' => 0, |
|
122 | + 'tipAdjustmentY' => -30, |
|
123 | + ), |
|
124 | + ), |
|
125 | + 120 => array( |
|
126 | + 'class' => 'ee-list-table-legend-container', |
|
127 | + 'content' => $this->_legend_stop(), |
|
128 | + 'options' => array( |
|
129 | + 'tipLocation' => 'top', |
|
130 | + 'tipAdjustmentX' => 15, |
|
131 | + 'tipAdjustmentY' => -40, |
|
132 | + ), |
|
133 | + ), |
|
134 | + 125 => array( |
|
135 | + 'class' => 'bulkactions', |
|
136 | + 'content' => $this->_bulkactions_stop(), |
|
137 | + 'options' => array( |
|
138 | + 'tipLocation' => 'bottom', |
|
139 | + 'tipAdjustmentY' => -30, |
|
140 | + 'tipAdjustmentX' => 15, |
|
141 | + ), |
|
142 | + ), |
|
143 | + 130 => array( |
|
144 | + 'id' => 'event_id', |
|
145 | + 'content' => $this->_event_selector_stop(), |
|
146 | + 'options' => array( |
|
147 | + 'tipLocation' => 'right', |
|
148 | + 'tipAdjustmentY' => -50, |
|
149 | + 'tipAdjustmentX' => 25, |
|
150 | + ), |
|
151 | + ), |
|
152 | + 135 => array( |
|
153 | + 'id' => 'DTT_ID', |
|
154 | + 'content' => $this->_dtt_selector_stop(), |
|
155 | + 'options' => array( |
|
156 | + 'tipLocation' => 'bottom', |
|
157 | + 'tipAdjustmentY' => -30, |
|
158 | + 'tipAdjustmentX' => 15, |
|
159 | + ), |
|
160 | + ), |
|
161 | + 140 => array( |
|
162 | + 'id' => 'event-espresso_page_espresso_registrations-search-input', |
|
163 | + 'content' => $this->_search_stop(), |
|
164 | + 'options' => array( |
|
165 | + 'tipLocation' => 'left', |
|
166 | + 'tipAdjustmentY' => -50, |
|
167 | + 'tipAdjustmentX' => -15, |
|
168 | + ), |
|
169 | + ), |
|
170 | + ); |
|
171 | + } |
|
172 | 172 | |
173 | 173 | |
174 | - protected function _start() |
|
175 | - { |
|
176 | - $content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>'; |
|
177 | - if (isset($this->_req_data['event_id'])) { |
|
178 | - $content .= '<p>' |
|
179 | - . __( |
|
180 | - 'This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.', |
|
181 | - 'event_espresso' |
|
182 | - ) . '</p>'; |
|
183 | - } else { |
|
184 | - $content .= '<p>' |
|
185 | - . __( |
|
186 | - 'This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.', |
|
187 | - 'event_espresso' |
|
188 | - ) . '</p>'; |
|
189 | - } |
|
190 | - return $content; |
|
191 | - } |
|
174 | + protected function _start() |
|
175 | + { |
|
176 | + $content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>'; |
|
177 | + if (isset($this->_req_data['event_id'])) { |
|
178 | + $content .= '<p>' |
|
179 | + . __( |
|
180 | + 'This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.', |
|
181 | + 'event_espresso' |
|
182 | + ) . '</p>'; |
|
183 | + } else { |
|
184 | + $content .= '<p>' |
|
185 | + . __( |
|
186 | + 'This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.', |
|
187 | + 'event_espresso' |
|
188 | + ) . '</p>'; |
|
189 | + } |
|
190 | + return $content; |
|
191 | + } |
|
192 | 192 | |
193 | - protected function _reg_count_stop() |
|
194 | - { |
|
195 | - return '<p>' . __('View registration number.', 'event_espresso') . '</p>'; |
|
196 | - } |
|
193 | + protected function _reg_count_stop() |
|
194 | + { |
|
195 | + return '<p>' . __('View registration number.', 'event_espresso') . '</p>'; |
|
196 | + } |
|
197 | 197 | |
198 | - protected function _attendee_name_stop() |
|
199 | - { |
|
200 | - return '<p>' |
|
201 | - . __( |
|
202 | - 'View name of registrant. Can be sorted in ascending or descending order.', |
|
203 | - 'event_espresso' |
|
204 | - ) . '</p>'; |
|
205 | - } |
|
198 | + protected function _attendee_name_stop() |
|
199 | + { |
|
200 | + return '<p>' |
|
201 | + . __( |
|
202 | + 'View name of registrant. Can be sorted in ascending or descending order.', |
|
203 | + 'event_espresso' |
|
204 | + ) . '</p>'; |
|
205 | + } |
|
206 | 206 | |
207 | - protected function _attendee_email_stop() |
|
208 | - { |
|
209 | - return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>'; |
|
210 | - } |
|
207 | + protected function _attendee_email_stop() |
|
208 | + { |
|
209 | + return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>'; |
|
210 | + } |
|
211 | 211 | |
212 | - protected function _reg_date_stop() |
|
213 | - { |
|
214 | - return '<p>' |
|
215 | - . __( |
|
216 | - 'View registration date. Can be sorted in ascending or descending order.', |
|
217 | - 'event_espresso' |
|
218 | - ) . '</p>'; |
|
219 | - } |
|
212 | + protected function _reg_date_stop() |
|
213 | + { |
|
214 | + return '<p>' |
|
215 | + . __( |
|
216 | + 'View registration date. Can be sorted in ascending or descending order.', |
|
217 | + 'event_espresso' |
|
218 | + ) . '</p>'; |
|
219 | + } |
|
220 | 220 | |
221 | - protected function _reg_code_stop() |
|
222 | - { |
|
223 | - return '<p>' |
|
224 | - . __( |
|
225 | - 'View registration code. Can be sorted in ascending or descending order.', |
|
226 | - 'event_espresso' |
|
227 | - ) . '</p>'; |
|
228 | - } |
|
221 | + protected function _reg_code_stop() |
|
222 | + { |
|
223 | + return '<p>' |
|
224 | + . __( |
|
225 | + 'View registration code. Can be sorted in ascending or descending order.', |
|
226 | + 'event_espresso' |
|
227 | + ) . '</p>'; |
|
228 | + } |
|
229 | 229 | |
230 | - protected function _reg_final_price_stop() |
|
231 | - { |
|
232 | - return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>'; |
|
233 | - } |
|
230 | + protected function _reg_final_price_stop() |
|
231 | + { |
|
232 | + return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>'; |
|
233 | + } |
|
234 | 234 | |
235 | - protected function _txn_paid_stop() |
|
236 | - { |
|
237 | - return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>'; |
|
238 | - } |
|
235 | + protected function _txn_paid_stop() |
|
236 | + { |
|
237 | + return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>'; |
|
238 | + } |
|
239 | 239 | |
240 | - protected function _txn_total_stop() |
|
241 | - { |
|
242 | - return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>'; |
|
243 | - } |
|
240 | + protected function _txn_total_stop() |
|
241 | + { |
|
242 | + return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>'; |
|
243 | + } |
|
244 | 244 | |
245 | - protected function _prc_name_stop() |
|
246 | - { |
|
247 | - return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>'; |
|
248 | - } |
|
245 | + protected function _prc_name_stop() |
|
246 | + { |
|
247 | + return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>'; |
|
248 | + } |
|
249 | 249 | |
250 | - protected function _actions_stop() |
|
251 | - { |
|
252 | - return '<p>' |
|
253 | - . __( |
|
254 | - 'Perform an action to a registration. See legend in bottom left corner.', |
|
255 | - 'event_espresso' |
|
256 | - ) . '</p>'; |
|
257 | - } |
|
250 | + protected function _actions_stop() |
|
251 | + { |
|
252 | + return '<p>' |
|
253 | + . __( |
|
254 | + 'Perform an action to a registration. See legend in bottom left corner.', |
|
255 | + 'event_espresso' |
|
256 | + ) . '</p>'; |
|
257 | + } |
|
258 | 258 | |
259 | - protected function _legend_stop() |
|
260 | - { |
|
261 | - return '<p>' |
|
262 | - . __( |
|
263 | - 'This is the legend that describes the different check-in statuses. Also shows available status for registrations.', |
|
264 | - 'event_espresso' |
|
265 | - ) . '</p>'; |
|
266 | - } |
|
259 | + protected function _legend_stop() |
|
260 | + { |
|
261 | + return '<p>' |
|
262 | + . __( |
|
263 | + 'This is the legend that describes the different check-in statuses. Also shows available status for registrations.', |
|
264 | + 'event_espresso' |
|
265 | + ) . '</p>'; |
|
266 | + } |
|
267 | 267 | |
268 | - protected function _bulkactions_stop() |
|
269 | - { |
|
270 | - return '<p>' |
|
271 | - . __( |
|
272 | - 'Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).', |
|
273 | - 'event_espresso' |
|
274 | - ) . '</p>'; |
|
275 | - } |
|
268 | + protected function _bulkactions_stop() |
|
269 | + { |
|
270 | + return '<p>' |
|
271 | + . __( |
|
272 | + 'Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).', |
|
273 | + 'event_espresso' |
|
274 | + ) . '</p>'; |
|
275 | + } |
|
276 | 276 | |
277 | - protected function _event_selector_stop() |
|
278 | - { |
|
279 | - return '<p>' |
|
280 | - . __( |
|
281 | - 'Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.', |
|
282 | - 'event_espresso' |
|
283 | - ) . '</p>'; |
|
284 | - } |
|
277 | + protected function _event_selector_stop() |
|
278 | + { |
|
279 | + return '<p>' |
|
280 | + . __( |
|
281 | + 'Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.', |
|
282 | + 'event_espresso' |
|
283 | + ) . '</p>'; |
|
284 | + } |
|
285 | 285 | |
286 | - protected function _dtt_selector_stop() |
|
287 | - { |
|
288 | - return '<p>' |
|
289 | - . __( |
|
290 | - 'This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.', |
|
291 | - 'event_espresso' |
|
292 | - ) . '</p>'; |
|
293 | - } |
|
286 | + protected function _dtt_selector_stop() |
|
287 | + { |
|
288 | + return '<p>' |
|
289 | + . __( |
|
290 | + 'This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.', |
|
291 | + 'event_espresso' |
|
292 | + ) . '</p>'; |
|
293 | + } |
|
294 | 294 | |
295 | - protected function _search_stop() |
|
296 | - { |
|
297 | - return '<p>' |
|
298 | - . __( |
|
299 | - 'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', |
|
300 | - 'event_espresso' |
|
301 | - ) . '</p>'; |
|
302 | - } |
|
295 | + protected function _search_stop() |
|
296 | + { |
|
297 | + return '<p>' |
|
298 | + . __( |
|
299 | + 'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', |
|
300 | + 'event_espresso' |
|
301 | + ) . '</p>'; |
|
302 | + } |
|
303 | 303 | } |
@@ -173,26 +173,26 @@ discard block |
||
173 | 173 | |
174 | 174 | protected function _start() |
175 | 175 | { |
176 | - $content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>'; |
|
176 | + $content = '<h3>'.__('Event Check-in', 'event_espresso').'</h3>'; |
|
177 | 177 | if (isset($this->_req_data['event_id'])) { |
178 | 178 | $content .= '<p>' |
179 | 179 | . __( |
180 | 180 | 'This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.', |
181 | 181 | 'event_espresso' |
182 | - ) . '</p>'; |
|
182 | + ).'</p>'; |
|
183 | 183 | } else { |
184 | 184 | $content .= '<p>' |
185 | 185 | . __( |
186 | 186 | 'This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.', |
187 | 187 | 'event_espresso' |
188 | - ) . '</p>'; |
|
188 | + ).'</p>'; |
|
189 | 189 | } |
190 | 190 | return $content; |
191 | 191 | } |
192 | 192 | |
193 | 193 | protected function _reg_count_stop() |
194 | 194 | { |
195 | - return '<p>' . __('View registration number.', 'event_espresso') . '</p>'; |
|
195 | + return '<p>'.__('View registration number.', 'event_espresso').'</p>'; |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | protected function _attendee_name_stop() |
@@ -201,12 +201,12 @@ discard block |
||
201 | 201 | . __( |
202 | 202 | 'View name of registrant. Can be sorted in ascending or descending order.', |
203 | 203 | 'event_espresso' |
204 | - ) . '</p>'; |
|
204 | + ).'</p>'; |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | protected function _attendee_email_stop() |
208 | 208 | { |
209 | - return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>'; |
|
209 | + return '<p>'.__('View email address for a registrant.', 'event_espresso').'</p>'; |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | protected function _reg_date_stop() |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | . __( |
216 | 216 | 'View registration date. Can be sorted in ascending or descending order.', |
217 | 217 | 'event_espresso' |
218 | - ) . '</p>'; |
|
218 | + ).'</p>'; |
|
219 | 219 | } |
220 | 220 | |
221 | 221 | protected function _reg_code_stop() |
@@ -224,27 +224,27 @@ discard block |
||
224 | 224 | . __( |
225 | 225 | 'View registration code. Can be sorted in ascending or descending order.', |
226 | 226 | 'event_espresso' |
227 | - ) . '</p>'; |
|
227 | + ).'</p>'; |
|
228 | 228 | } |
229 | 229 | |
230 | 230 | protected function _reg_final_price_stop() |
231 | 231 | { |
232 | - return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>'; |
|
232 | + return '<p>'.__('View price for ticket.', 'event_espresso').'</p>'; |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | protected function _txn_paid_stop() |
236 | 236 | { |
237 | - return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>'; |
|
237 | + return '<p>'.__('View if registrant has paid for ticket.', 'event_espresso').'</p>'; |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | protected function _txn_total_stop() |
241 | 241 | { |
242 | - return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>'; |
|
242 | + return '<p>'.__('View total amount paid.', 'event_espresso').'</p>'; |
|
243 | 243 | } |
244 | 244 | |
245 | 245 | protected function _prc_name_stop() |
246 | 246 | { |
247 | - return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>'; |
|
247 | + return '<p>'.__('View type of ticket.', 'event_espresso').'</p>'; |
|
248 | 248 | } |
249 | 249 | |
250 | 250 | protected function _actions_stop() |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | . __( |
254 | 254 | 'Perform an action to a registration. See legend in bottom left corner.', |
255 | 255 | 'event_espresso' |
256 | - ) . '</p>'; |
|
256 | + ).'</p>'; |
|
257 | 257 | } |
258 | 258 | |
259 | 259 | protected function _legend_stop() |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | . __( |
263 | 263 | 'This is the legend that describes the different check-in statuses. Also shows available status for registrations.', |
264 | 264 | 'event_espresso' |
265 | - ) . '</p>'; |
|
265 | + ).'</p>'; |
|
266 | 266 | } |
267 | 267 | |
268 | 268 | protected function _bulkactions_stop() |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | . __( |
272 | 272 | 'Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).', |
273 | 273 | 'event_espresso' |
274 | - ) . '</p>'; |
|
274 | + ).'</p>'; |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | protected function _event_selector_stop() |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | . __( |
281 | 281 | 'Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.', |
282 | 282 | 'event_espresso' |
283 | - ) . '</p>'; |
|
283 | + ).'</p>'; |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | protected function _dtt_selector_stop() |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | . __( |
290 | 290 | 'This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.', |
291 | 291 | 'event_espresso' |
292 | - ) . '</p>'; |
|
292 | + ).'</p>'; |
|
293 | 293 | } |
294 | 294 | |
295 | 295 | protected function _search_stop() |
@@ -298,6 +298,6 @@ discard block |
||
298 | 298 | . __( |
299 | 299 | 'Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', |
300 | 300 | 'event_espresso' |
301 | - ) . '</p>'; |
|
301 | + ).'</p>'; |
|
302 | 302 | } |
303 | 303 | } |