@@ -15,131 +15,131 @@ |
||
15 | 15 | class Messages_Overview_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = esc_html__('Messages Overview Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'messages-overview-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = esc_html__('Messages Overview Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'messages-overview-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'event', |
|
33 | - 'content' => $this->event_column_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentX' => -5, |
|
37 | - 'tipAdjustmentY' => -30, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'message_type', |
|
42 | - 'content' => $this->_message_type_column_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentX' => 20, |
|
46 | - 'tipAdjustmentY' => -30, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'messenger', |
|
51 | - 'content' => $this->_messenger_column_stop(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentX' => 5, |
|
55 | - 'tipAdjustmentY' => -30, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 50 => array( |
|
59 | - 'id' => 'description', |
|
60 | - 'content' => $this->_description_column_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'top', |
|
63 | - 'tipAdjustmentX' => 5, |
|
64 | - 'tipAdjustmentY' => -30, |
|
65 | - ), |
|
66 | - ), |
|
67 | - 60 => array( |
|
68 | - 'class' => 'bulkactions', |
|
69 | - 'content' => $this->_bulk_actions_stop(), |
|
70 | - 'options' => array( |
|
71 | - 'tipLocation' => 'top', |
|
72 | - 'tipAdjustmentX' => 25, |
|
73 | - 'tipAdjustmentY' => -35, |
|
74 | - ), |
|
75 | - ), |
|
76 | - 70 => array( |
|
77 | - 'id' => 'ee_messenger_filter_by', |
|
78 | - 'content' => $this->_filters_stop(), |
|
79 | - 'options' => array( |
|
80 | - 'tipLocation' => 'top', |
|
81 | - 'tipAdjustmentX' => 25, |
|
82 | - 'tipAdjustmentY' => -30, |
|
83 | - ), |
|
84 | - ), |
|
85 | - ); |
|
86 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'event', |
|
33 | + 'content' => $this->event_column_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentX' => -5, |
|
37 | + 'tipAdjustmentY' => -30, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'message_type', |
|
42 | + 'content' => $this->_message_type_column_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentX' => 20, |
|
46 | + 'tipAdjustmentY' => -30, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'messenger', |
|
51 | + 'content' => $this->_messenger_column_stop(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentX' => 5, |
|
55 | + 'tipAdjustmentY' => -30, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 50 => array( |
|
59 | + 'id' => 'description', |
|
60 | + 'content' => $this->_description_column_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'top', |
|
63 | + 'tipAdjustmentX' => 5, |
|
64 | + 'tipAdjustmentY' => -30, |
|
65 | + ), |
|
66 | + ), |
|
67 | + 60 => array( |
|
68 | + 'class' => 'bulkactions', |
|
69 | + 'content' => $this->_bulk_actions_stop(), |
|
70 | + 'options' => array( |
|
71 | + 'tipLocation' => 'top', |
|
72 | + 'tipAdjustmentX' => 25, |
|
73 | + 'tipAdjustmentY' => -35, |
|
74 | + ), |
|
75 | + ), |
|
76 | + 70 => array( |
|
77 | + 'id' => 'ee_messenger_filter_by', |
|
78 | + 'content' => $this->_filters_stop(), |
|
79 | + 'options' => array( |
|
80 | + 'tipLocation' => 'top', |
|
81 | + 'tipAdjustmentX' => 25, |
|
82 | + 'tipAdjustmentY' => -30, |
|
83 | + ), |
|
84 | + ), |
|
85 | + ); |
|
86 | + } |
|
87 | 87 | |
88 | 88 | |
89 | - protected function _start() |
|
90 | - { |
|
91 | - $content = '<h3>' . esc_html__('Messages Overview', 'event_espresso') . '</h3>'; |
|
92 | - $content .= '<p>' |
|
93 | - . esc_html__( |
|
94 | - 'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | - 'event_espresso' |
|
96 | - ) . '</p>'; |
|
97 | - return $content; |
|
98 | - } |
|
89 | + protected function _start() |
|
90 | + { |
|
91 | + $content = '<h3>' . esc_html__('Messages Overview', 'event_espresso') . '</h3>'; |
|
92 | + $content .= '<p>' |
|
93 | + . esc_html__( |
|
94 | + 'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | + 'event_espresso' |
|
96 | + ) . '</p>'; |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function event_column_stop() |
|
101 | - { |
|
102 | - return '<p>' |
|
103 | - . esc_html__( |
|
104 | - 'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.', |
|
105 | - 'event_espresso' |
|
106 | - ) . '</p>'; |
|
107 | - } |
|
100 | + protected function event_column_stop() |
|
101 | + { |
|
102 | + return '<p>' |
|
103 | + . esc_html__( |
|
104 | + 'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.', |
|
105 | + 'event_espresso' |
|
106 | + ) . '</p>'; |
|
107 | + } |
|
108 | 108 | |
109 | - protected function _message_type_column_stop() |
|
110 | - { |
|
111 | - return '<p>' |
|
112 | - . esc_html__( |
|
113 | - 'View the type of message. Can be sorted in ascending or descending order.', |
|
114 | - 'event_espresso' |
|
115 | - ) . '</p>'; |
|
116 | - } |
|
109 | + protected function _message_type_column_stop() |
|
110 | + { |
|
111 | + return '<p>' |
|
112 | + . esc_html__( |
|
113 | + 'View the type of message. Can be sorted in ascending or descending order.', |
|
114 | + 'event_espresso' |
|
115 | + ) . '</p>'; |
|
116 | + } |
|
117 | 117 | |
118 | - protected function _messenger_column_stop() |
|
119 | - { |
|
120 | - return '<p>' |
|
121 | - . esc_html__( |
|
122 | - 'View who messages will be sent to. Can be sorted in ascending or descending order.', |
|
123 | - 'event_espresso' |
|
124 | - ) . '</p>'; |
|
125 | - } |
|
118 | + protected function _messenger_column_stop() |
|
119 | + { |
|
120 | + return '<p>' |
|
121 | + . esc_html__( |
|
122 | + 'View who messages will be sent to. Can be sorted in ascending or descending order.', |
|
123 | + 'event_espresso' |
|
124 | + ) . '</p>'; |
|
125 | + } |
|
126 | 126 | |
127 | - protected function _description_column_stop() |
|
128 | - { |
|
129 | - return '<p>' . esc_html__('View the description for each message type.', 'event_espresso') . '</p>'; |
|
130 | - } |
|
127 | + protected function _description_column_stop() |
|
128 | + { |
|
129 | + return '<p>' . esc_html__('View the description for each message type.', 'event_espresso') . '</p>'; |
|
130 | + } |
|
131 | 131 | |
132 | - protected function _bulk_actions_stop() |
|
133 | - { |
|
134 | - return '<p>' . esc_html__('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>'; |
|
135 | - } |
|
132 | + protected function _bulk_actions_stop() |
|
133 | + { |
|
134 | + return '<p>' . esc_html__('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>'; |
|
135 | + } |
|
136 | 136 | |
137 | - protected function _filters_stop() |
|
138 | - { |
|
139 | - return '<p>' |
|
140 | - . esc_html__( |
|
141 | - 'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.', |
|
142 | - 'event_espresso' |
|
143 | - ) . '</p>'; |
|
144 | - } |
|
137 | + protected function _filters_stop() |
|
138 | + { |
|
139 | + return '<p>' |
|
140 | + . esc_html__( |
|
141 | + 'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.', |
|
142 | + 'event_espresso' |
|
143 | + ) . '</p>'; |
|
144 | + } |
|
145 | 145 | } |
@@ -88,12 +88,12 @@ discard block |
||
88 | 88 | |
89 | 89 | protected function _start() |
90 | 90 | { |
91 | - $content = '<h3>' . esc_html__('Messages Overview', 'event_espresso') . '</h3>'; |
|
91 | + $content = '<h3>'.esc_html__('Messages Overview', 'event_espresso').'</h3>'; |
|
92 | 92 | $content .= '<p>' |
93 | 93 | . esc_html__( |
94 | 94 | 'This tour of the Messages Overview page will go over different areas of the screen to help you understand what they are used for.', |
95 | 95 | 'event_espresso' |
96 | - ) . '</p>'; |
|
96 | + ).'</p>'; |
|
97 | 97 | return $content; |
98 | 98 | } |
99 | 99 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | . esc_html__( |
104 | 104 | 'View if a message is associated with one event or multiple events. Can be sorted in ascending and descending order.', |
105 | 105 | 'event_espresso' |
106 | - ) . '</p>'; |
|
106 | + ).'</p>'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | protected function _message_type_column_stop() |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | . esc_html__( |
113 | 113 | 'View the type of message. Can be sorted in ascending or descending order.', |
114 | 114 | 'event_espresso' |
115 | - ) . '</p>'; |
|
115 | + ).'</p>'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function _messenger_column_stop() |
@@ -121,17 +121,17 @@ discard block |
||
121 | 121 | . esc_html__( |
122 | 122 | 'View who messages will be sent to. Can be sorted in ascending or descending order.', |
123 | 123 | 'event_espresso' |
124 | - ) . '</p>'; |
|
124 | + ).'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _description_column_stop() |
128 | 128 | { |
129 | - return '<p>' . esc_html__('View the description for each message type.', 'event_espresso') . '</p>'; |
|
129 | + return '<p>'.esc_html__('View the description for each message type.', 'event_espresso').'</p>'; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | protected function _bulk_actions_stop() |
133 | 133 | { |
134 | - return '<p>' . esc_html__('Perform bulk actions to multiple message types.', 'event_espresso') . '</p>'; |
|
134 | + return '<p>'.esc_html__('Perform bulk actions to multiple message types.', 'event_espresso').'</p>'; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | protected function _filters_stop() |
@@ -140,6 +140,6 @@ discard block |
||
140 | 140 | . esc_html__( |
141 | 141 | 'You can filter by different notifications by making a selection below and clicking on the filter button. To reset your selection, just click on the reset filters button.', |
142 | 142 | 'event_espresso' |
143 | - ) . '</p>'; |
|
143 | + ).'</p>'; |
|
144 | 144 | } |
145 | 145 | } |
@@ -15,137 +15,137 @@ |
||
15 | 15 | class Message_Templates_Edit_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = esc_html__('Message Template Editor Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'messages-templates-edit-joyride'; |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'submit-msg-context-switcher-sbmt', |
|
33 | - 'content' => $this->_context_switcher_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'bottom', |
|
36 | - 'tipAdjustmentY' => -30, |
|
37 | - 'tipAdjustmentX' => -60, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'class' => 'messages-preview-button"', |
|
42 | - 'content' => $this->_preview_button_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'bottom', |
|
45 | - 'tipAdjustmentY' => -30, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'content' => $this->_template_area_stop(), |
|
50 | - 'options' => array( |
|
51 | - 'tipAdjustmentY' => -100, |
|
52 | - 'tipAdjustmentX' => -60, |
|
53 | - ), |
|
54 | - ), |
|
55 | - 50 => array( |
|
56 | - 'id' => 'mtp_valid_shortcodes', |
|
57 | - 'content' => $this->_mtp_valid_shortcodes_stop(), |
|
58 | - 'options' => array( |
|
59 | - 'tipLocation' => 'left', |
|
60 | - 'tipAdjustmentY' => -50, |
|
61 | - 'tipAdjustmentX' => -15, |
|
62 | - ), |
|
63 | - ), |
|
64 | - 60 => array( |
|
65 | - 'id' => 'mtp_extra_actions', |
|
66 | - 'content' => $this->_mtp_extra_actions_stop(), |
|
67 | - 'options' => array( |
|
68 | - 'tipLocation' => 'left', |
|
69 | - 'tipAdjustmentY' => -50, |
|
70 | - 'tipAdjustmentX' => -15, |
|
71 | - ), |
|
72 | - ), |
|
73 | - 70 => array( |
|
74 | - 'id' => 'espresso_espresso_messages_editor_overview', |
|
75 | - 'content' => $this->_update_metabox_stop(), |
|
76 | - 'options' => array( |
|
77 | - 'tipLocation' => 'left', |
|
78 | - 'tipAdjustmentY' => -50, |
|
79 | - 'tipAdjustmentX' => -15, |
|
80 | - ), |
|
81 | - ), |
|
82 | - ); |
|
83 | - } |
|
84 | - |
|
85 | - |
|
86 | - protected function _start() |
|
87 | - { |
|
88 | - $content = '<h3>' . esc_html__('Message Template Editor', 'event_espresso') . '</h3>'; |
|
89 | - $content .= '<p>' |
|
90 | - . esc_html__( |
|
91 | - 'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.', |
|
92 | - 'event_espresso' |
|
93 | - ) . '</p>'; |
|
94 | - return $content; |
|
95 | - } |
|
96 | - |
|
97 | - |
|
98 | - protected function _context_switcher_stop() |
|
99 | - { |
|
100 | - return '<p>' |
|
101 | - . esc_html__( |
|
102 | - 'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.', |
|
103 | - 'event_espresso' |
|
104 | - ) . '</p>'; |
|
105 | - } |
|
106 | - |
|
107 | - |
|
108 | - protected function _preview_button_stop() |
|
109 | - { |
|
110 | - return '<p>' |
|
111 | - . esc_html__( |
|
112 | - 'Clicking this button will show you a preview of how your message will look.', |
|
113 | - 'event_espresso' |
|
114 | - ) . '</p>'; |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - protected function _template_area_stop() |
|
119 | - { |
|
120 | - return '<p>' |
|
121 | - . esc_html__( |
|
122 | - 'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.', |
|
123 | - 'event_espresso' |
|
124 | - ) . '</p>'; |
|
125 | - } |
|
126 | - |
|
127 | - protected function _mtp_valid_shortcodes_stop() |
|
128 | - { |
|
129 | - return '<p>' |
|
130 | - . esc_html__( |
|
131 | - 'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.', |
|
132 | - 'event_espresso' |
|
133 | - ) . '</p>'; |
|
134 | - } |
|
135 | - |
|
136 | - |
|
137 | - protected function _mtp_extra_actions_stop() |
|
138 | - { |
|
139 | - return '<p>' |
|
140 | - . esc_html__( |
|
141 | - 'Here you will find miscellaneous options to assist you, including a test send button and a reset button.', |
|
142 | - 'event_espresso' |
|
143 | - ) . '</p>'; |
|
144 | - } |
|
145 | - |
|
146 | - |
|
147 | - protected function _update_metabox_stop() |
|
148 | - { |
|
149 | - return '<p>' . esc_html__('When done creating your message, click here to save it.', 'event_espresso') . '</p>'; |
|
150 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = esc_html__('Message Template Editor Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'messages-templates-edit-joyride'; |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'submit-msg-context-switcher-sbmt', |
|
33 | + 'content' => $this->_context_switcher_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'bottom', |
|
36 | + 'tipAdjustmentY' => -30, |
|
37 | + 'tipAdjustmentX' => -60, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'class' => 'messages-preview-button"', |
|
42 | + 'content' => $this->_preview_button_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'bottom', |
|
45 | + 'tipAdjustmentY' => -30, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'content' => $this->_template_area_stop(), |
|
50 | + 'options' => array( |
|
51 | + 'tipAdjustmentY' => -100, |
|
52 | + 'tipAdjustmentX' => -60, |
|
53 | + ), |
|
54 | + ), |
|
55 | + 50 => array( |
|
56 | + 'id' => 'mtp_valid_shortcodes', |
|
57 | + 'content' => $this->_mtp_valid_shortcodes_stop(), |
|
58 | + 'options' => array( |
|
59 | + 'tipLocation' => 'left', |
|
60 | + 'tipAdjustmentY' => -50, |
|
61 | + 'tipAdjustmentX' => -15, |
|
62 | + ), |
|
63 | + ), |
|
64 | + 60 => array( |
|
65 | + 'id' => 'mtp_extra_actions', |
|
66 | + 'content' => $this->_mtp_extra_actions_stop(), |
|
67 | + 'options' => array( |
|
68 | + 'tipLocation' => 'left', |
|
69 | + 'tipAdjustmentY' => -50, |
|
70 | + 'tipAdjustmentX' => -15, |
|
71 | + ), |
|
72 | + ), |
|
73 | + 70 => array( |
|
74 | + 'id' => 'espresso_espresso_messages_editor_overview', |
|
75 | + 'content' => $this->_update_metabox_stop(), |
|
76 | + 'options' => array( |
|
77 | + 'tipLocation' => 'left', |
|
78 | + 'tipAdjustmentY' => -50, |
|
79 | + 'tipAdjustmentX' => -15, |
|
80 | + ), |
|
81 | + ), |
|
82 | + ); |
|
83 | + } |
|
84 | + |
|
85 | + |
|
86 | + protected function _start() |
|
87 | + { |
|
88 | + $content = '<h3>' . esc_html__('Message Template Editor', 'event_espresso') . '</h3>'; |
|
89 | + $content .= '<p>' |
|
90 | + . esc_html__( |
|
91 | + 'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.', |
|
92 | + 'event_espresso' |
|
93 | + ) . '</p>'; |
|
94 | + return $content; |
|
95 | + } |
|
96 | + |
|
97 | + |
|
98 | + protected function _context_switcher_stop() |
|
99 | + { |
|
100 | + return '<p>' |
|
101 | + . esc_html__( |
|
102 | + 'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.', |
|
103 | + 'event_espresso' |
|
104 | + ) . '</p>'; |
|
105 | + } |
|
106 | + |
|
107 | + |
|
108 | + protected function _preview_button_stop() |
|
109 | + { |
|
110 | + return '<p>' |
|
111 | + . esc_html__( |
|
112 | + 'Clicking this button will show you a preview of how your message will look.', |
|
113 | + 'event_espresso' |
|
114 | + ) . '</p>'; |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + protected function _template_area_stop() |
|
119 | + { |
|
120 | + return '<p>' |
|
121 | + . esc_html__( |
|
122 | + 'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.', |
|
123 | + 'event_espresso' |
|
124 | + ) . '</p>'; |
|
125 | + } |
|
126 | + |
|
127 | + protected function _mtp_valid_shortcodes_stop() |
|
128 | + { |
|
129 | + return '<p>' |
|
130 | + . esc_html__( |
|
131 | + 'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.', |
|
132 | + 'event_espresso' |
|
133 | + ) . '</p>'; |
|
134 | + } |
|
135 | + |
|
136 | + |
|
137 | + protected function _mtp_extra_actions_stop() |
|
138 | + { |
|
139 | + return '<p>' |
|
140 | + . esc_html__( |
|
141 | + 'Here you will find miscellaneous options to assist you, including a test send button and a reset button.', |
|
142 | + 'event_espresso' |
|
143 | + ) . '</p>'; |
|
144 | + } |
|
145 | + |
|
146 | + |
|
147 | + protected function _update_metabox_stop() |
|
148 | + { |
|
149 | + return '<p>' . esc_html__('When done creating your message, click here to save it.', 'event_espresso') . '</p>'; |
|
150 | + } |
|
151 | 151 | } |
@@ -85,12 +85,12 @@ discard block |
||
85 | 85 | |
86 | 86 | protected function _start() |
87 | 87 | { |
88 | - $content = '<h3>' . esc_html__('Message Template Editor', 'event_espresso') . '</h3>'; |
|
88 | + $content = '<h3>'.esc_html__('Message Template Editor', 'event_espresso').'</h3>'; |
|
89 | 89 | $content .= '<p>' |
90 | 90 | . esc_html__( |
91 | 91 | 'This tour of the Message Template Editor page will go over different areas of the screen to help you understand what they are used for.', |
92 | 92 | 'event_espresso' |
93 | - ) . '</p>'; |
|
93 | + ).'</p>'; |
|
94 | 94 | return $content; |
95 | 95 | } |
96 | 96 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | . esc_html__( |
102 | 102 | 'This dropdown allows you to swap between the different recipients templates that are available in this message type. Be sure to save changes befor switching to a different context.', |
103 | 103 | 'event_espresso' |
104 | - ) . '</p>'; |
|
104 | + ).'</p>'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | . esc_html__( |
112 | 112 | 'Clicking this button will show you a preview of how your message will look.', |
113 | 113 | 'event_espresso' |
114 | - ) . '</p>'; |
|
114 | + ).'</p>'; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | . esc_html__( |
122 | 122 | 'Depending on the messenger (recipient) and the message type, the main screen can show different boxes. Overall the screen allows you to confirm who the messages go to and who from, and the actual content of the message.', |
123 | 123 | 'event_espresso' |
124 | - ) . '</p>'; |
|
124 | + ).'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _mtp_valid_shortcodes_stop() |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | . esc_html__( |
131 | 131 | 'These shortcodes allow you to quickly add data into your messages, without touching code. From emails, to ticket details, to your company logo, building messages with shortcodes is easy and fast.', |
132 | 132 | 'event_espresso' |
133 | - ) . '</p>'; |
|
133 | + ).'</p>'; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | |
@@ -140,12 +140,12 @@ discard block |
||
140 | 140 | . esc_html__( |
141 | 141 | 'Here you will find miscellaneous options to assist you, including a test send button and a reset button.', |
142 | 142 | 'event_espresso' |
143 | - ) . '</p>'; |
|
143 | + ).'</p>'; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | |
147 | 147 | protected function _update_metabox_stop() |
148 | 148 | { |
149 | - return '<p>' . esc_html__('When done creating your message, click here to save it.', 'event_espresso') . '</p>'; |
|
149 | + return '<p>'.esc_html__('When done creating your message, click here to save it.', 'event_espresso').'</p>'; |
|
150 | 150 | } |
151 | 151 | } |
@@ -12,437 +12,437 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * @return Messages_Admin_Page |
|
17 | - */ |
|
18 | - public function get_admin_page() |
|
19 | - { |
|
20 | - return $this->_admin_page; |
|
21 | - } |
|
22 | - |
|
23 | - |
|
24 | - protected function _setup_data() |
|
25 | - { |
|
26 | - $this->_data = $this->_get_messages($this->_per_page, $this->_view); |
|
27 | - $this->_all_data_count = $this->_get_messages($this->_per_page, $this->_view, true); |
|
28 | - } |
|
29 | - |
|
30 | - |
|
31 | - protected function _set_properties() |
|
32 | - { |
|
33 | - $this->_wp_list_args = array( |
|
34 | - 'singular' => esc_html__('Message', 'event_espresso'), |
|
35 | - 'plural' => esc_html__('Messages', 'event_espresso'), |
|
36 | - 'ajax' => true, |
|
37 | - 'screen' => $this->get_admin_page()->get_current_screen()->id, |
|
38 | - ); |
|
39 | - |
|
40 | - $this->_columns = array( |
|
41 | - 'cb' => '<input type="checkbox" />', |
|
42 | - 'to' => esc_html__('To', 'event_espresso'), |
|
43 | - 'from' => esc_html__('From', 'event_espresso'), |
|
44 | - 'messenger' => esc_html__('Messenger', 'event_espresso'), |
|
45 | - 'message_type' => esc_html__('Message Type', 'event_espresso'), |
|
46 | - 'context' => esc_html__('Context', 'event_espresso'), |
|
47 | - 'modified' => esc_html__('Modified', 'event_espresso'), |
|
48 | - 'action' => esc_html__('Actions', 'event_espresso'), |
|
49 | - 'msg_id' => esc_html__('ID', 'event_espresso'), |
|
50 | - ); |
|
51 | - |
|
52 | - $this->_sortable_columns = array( |
|
53 | - 'modified' => array('MSG_modified' => true), |
|
54 | - 'message_type' => array('MSG_message_type' => false), |
|
55 | - 'messenger' => array('MSG_messenger' => false), |
|
56 | - 'to' => array('MSG_to' => false), |
|
57 | - 'from' => array('MSG_from' => false), |
|
58 | - 'context' => array('MSG_context' => false), |
|
59 | - 'msg_id' => array('MSG_ID', false), |
|
60 | - ); |
|
61 | - |
|
62 | - $this->_primary_column = 'to'; |
|
63 | - |
|
64 | - $this->_hidden_columns = array( |
|
65 | - 'msg_id', |
|
66 | - ); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * This simply sets up the row class for the table rows. |
|
72 | - * Allows for easier overriding of child methods for setting up sorting. |
|
73 | - * |
|
74 | - * @param object $item the current item |
|
75 | - * @return string |
|
76 | - */ |
|
77 | - protected function _get_row_class($item) |
|
78 | - { |
|
79 | - $class = parent::_get_row_class($item); |
|
80 | - // add status class |
|
81 | - $class .= ' ee-status-strip msg-status-' . $item->STS_ID(); |
|
82 | - if ($this->_has_checkbox_column) { |
|
83 | - $class .= ' has-checkbox-column'; |
|
84 | - } |
|
85 | - return $class; |
|
86 | - } |
|
87 | - |
|
88 | - |
|
89 | - /** |
|
90 | - * _get_table_filters |
|
91 | - * We use this to assemble and return any filters that are associated with this table that help further refine what |
|
92 | - * get's shown in the table. |
|
93 | - * |
|
94 | - * @abstract |
|
95 | - * @access protected |
|
96 | - * @return string |
|
97 | - * @throws \EE_Error |
|
98 | - */ |
|
99 | - protected function _get_table_filters() |
|
100 | - { |
|
101 | - $filters = array(); |
|
102 | - |
|
103 | - // get select_inputs |
|
104 | - $select_inputs = array( |
|
105 | - $this->_get_messengers_dropdown_filter(), |
|
106 | - $this->_get_message_types_dropdown_filter(), |
|
107 | - $this->_get_contexts_for_message_types_dropdown_filter(), |
|
108 | - ); |
|
109 | - |
|
110 | - // set filters to select inputs if they aren't empty |
|
111 | - foreach ($select_inputs as $select_input) { |
|
112 | - if ($select_input) { |
|
113 | - $filters[] = $select_input; |
|
114 | - } |
|
115 | - } |
|
116 | - return $filters; |
|
117 | - } |
|
118 | - |
|
119 | - |
|
120 | - protected function _add_view_counts() |
|
121 | - { |
|
122 | - foreach ($this->_views as $view => $args) { |
|
123 | - $this->_views[ $view ]['count'] = $this->_get_messages($this->_per_page, $view, true, true); |
|
124 | - } |
|
125 | - } |
|
126 | - |
|
127 | - |
|
128 | - /** |
|
129 | - * @param EE_Message $message |
|
130 | - * @return string checkbox |
|
131 | - * @throws \EE_Error |
|
132 | - */ |
|
133 | - public function column_cb($message) |
|
134 | - { |
|
135 | - return sprintf('<input type="checkbox" name="MSG_ID[%s]" value="1" />', $message->ID()); |
|
136 | - } |
|
137 | - |
|
138 | - |
|
139 | - /** |
|
140 | - * @param EE_Message $message |
|
141 | - * @return string |
|
142 | - * @throws \EE_Error |
|
143 | - */ |
|
144 | - public function column_msg_id(EE_Message $message) |
|
145 | - { |
|
146 | - return $message->ID(); |
|
147 | - } |
|
148 | - |
|
149 | - |
|
150 | - /** |
|
151 | - * @param EE_Message $message |
|
152 | - * @return string The recipient of the message |
|
153 | - * @throws \EE_Error |
|
154 | - */ |
|
155 | - public function column_to(EE_Message $message) |
|
156 | - { |
|
157 | - EE_Registry::instance()->load_helper('URL'); |
|
158 | - $actions = array(); |
|
159 | - $actions['delete'] = '<a href="' |
|
160 | - . EEH_URL::add_query_args_and_nonce( |
|
161 | - array( |
|
162 | - 'page' => 'espresso_messages', |
|
163 | - 'action' => 'delete_ee_message', |
|
164 | - 'MSG_ID' => $message->ID(), |
|
165 | - ), |
|
166 | - admin_url('admin.php') |
|
167 | - ) |
|
168 | - . '">' . esc_html__('Delete', 'event_espresso') . '</a>'; |
|
169 | - return esc_html($message->to()) . $this->row_actions($actions); |
|
170 | - } |
|
171 | - |
|
172 | - |
|
173 | - /** |
|
174 | - * @param EE_Message $message |
|
175 | - * @return string The sender of the message |
|
176 | - */ |
|
177 | - public function column_from(EE_Message $message) |
|
178 | - { |
|
179 | - return esc_html($message->from()); |
|
180 | - } |
|
181 | - |
|
182 | - |
|
183 | - /** |
|
184 | - * @param EE_Message $message |
|
185 | - * @return string The messenger used to send the message. |
|
186 | - */ |
|
187 | - public function column_messenger(EE_Message $message) |
|
188 | - { |
|
189 | - return ucwords($message->messenger_label()); |
|
190 | - } |
|
191 | - |
|
192 | - |
|
193 | - /** |
|
194 | - * @param EE_Message $message |
|
195 | - * @return string The message type used to generate the message. |
|
196 | - */ |
|
197 | - public function column_message_type(EE_Message $message) |
|
198 | - { |
|
199 | - return ucwords($message->message_type_label()); |
|
200 | - } |
|
201 | - |
|
202 | - |
|
203 | - /** |
|
204 | - * @param EE_Message $message |
|
205 | - * @return string The context the message was generated for. |
|
206 | - */ |
|
207 | - public function column_context(EE_Message $message) |
|
208 | - { |
|
209 | - return $message->context_label(); |
|
210 | - } |
|
211 | - |
|
212 | - |
|
213 | - /** |
|
214 | - * @param EE_Message $message |
|
215 | - * @return string The timestamp when this message was last modified. |
|
216 | - */ |
|
217 | - public function column_modified(EE_Message $message) |
|
218 | - { |
|
219 | - return $message->modified(); |
|
220 | - } |
|
221 | - |
|
222 | - |
|
223 | - /** |
|
224 | - * @param EE_Message $message |
|
225 | - * @return string Actions that can be done on the current message. |
|
226 | - */ |
|
227 | - public function column_action(EE_Message $message) |
|
228 | - { |
|
229 | - EE_Registry::instance()->load_helper('MSG_Template'); |
|
230 | - $action_links = array( |
|
231 | - 'view' => EEH_MSG_Template::get_message_action_link('view', $message), |
|
232 | - 'error' => EEH_MSG_Template::get_message_action_link('error', $message), |
|
233 | - 'generate_now' => EEH_MSG_Template::get_message_action_link('generate_now', $message), |
|
234 | - 'send_now' => EEH_MSG_Template::get_message_action_link('send_now', $message), |
|
235 | - 'queue_for_resending' => EEH_MSG_Template::get_message_action_link('queue_for_resending', $message), |
|
236 | - 'view_transaction' => EEH_MSG_Template::get_message_action_link('view_transaction', $message), |
|
237 | - ); |
|
238 | - $content = ''; |
|
239 | - switch ($message->STS_ID()) { |
|
240 | - case EEM_Message::status_sent: |
|
241 | - $content = $action_links['view'] . $action_links['queue_for_resending'] . $action_links['view_transaction']; |
|
242 | - break; |
|
243 | - case EEM_Message::status_resend: |
|
244 | - $content = $action_links['view'] . $action_links['send_now'] . $action_links['view_transaction']; |
|
245 | - break; |
|
246 | - case EEM_Message::status_retry: |
|
247 | - $content = $action_links['view'] . $action_links['send_now'] . $action_links['error'] . $action_links['view_transaction']; |
|
248 | - break; |
|
249 | - case EEM_Message::status_failed: |
|
250 | - case EEM_Message::status_debug_only: |
|
251 | - $content = $action_links['error'] . $action_links['view_transaction']; |
|
252 | - break; |
|
253 | - case EEM_Message::status_idle: |
|
254 | - $content = $action_links['view'] . $action_links['send_now'] . $action_links['view_transaction']; |
|
255 | - break; |
|
256 | - case EEM_Message::status_incomplete: |
|
257 | - $content = $action_links['generate_now'] . $action_links['view_transaction']; |
|
258 | - break; |
|
259 | - } |
|
260 | - return $content; |
|
261 | - } |
|
262 | - |
|
263 | - |
|
264 | - /** |
|
265 | - * Retrieve the EE_Message objects for the list table. |
|
266 | - * |
|
267 | - * @param int $perpage The number of items per page |
|
268 | - * @param string $view The view items are being retrieved for |
|
269 | - * @param bool $count Whether to just return a count or not. |
|
270 | - * @param bool $all Disregard any paging info (no limit on data returned). |
|
271 | - * @return int|EE_Message[] |
|
272 | - * @throws \EE_Error |
|
273 | - */ |
|
274 | - protected function _get_messages($perpage = 10, $view = 'all', $count = false, $all = false) |
|
275 | - { |
|
276 | - |
|
277 | - $current_page = isset($this->_req_data['paged']) && ! empty($this->_req_data['paged']) |
|
278 | - ? $this->_req_data['paged'] |
|
279 | - : 1; |
|
280 | - |
|
281 | - $per_page = isset($this->_req_data['perpage']) && ! empty($this->_req_data['perpage']) |
|
282 | - ? $this->_req_data['perpage'] |
|
283 | - : $perpage; |
|
284 | - |
|
285 | - $offset = ($current_page - 1) * $per_page; |
|
286 | - $limit = $all || $count ? null : array($offset, $per_page); |
|
287 | - $query_params = array( |
|
288 | - 'order_by' => empty($this->_req_data['orderby']) ? 'MSG_modified' : $this->_req_data['orderby'], |
|
289 | - 'order' => empty($this->_req_data['order']) ? 'DESC' : $this->_req_data['order'], |
|
290 | - 'limit' => $limit, |
|
291 | - ); |
|
292 | - |
|
293 | - /** |
|
294 | - * Any filters coming in from other routes? |
|
295 | - */ |
|
296 | - if (isset($this->_req_data['filterby'])) { |
|
297 | - $query_params = array_merge($query_params, EEM_Message::instance()->filter_by_query_params()); |
|
298 | - if (! $count) { |
|
299 | - $query_params['group_by'] = 'MSG_ID'; |
|
300 | - } |
|
301 | - } |
|
302 | - |
|
303 | - // view conditionals |
|
304 | - if ($view !== 'all' && $count && $all) { |
|
305 | - $query_params[0]['AND*view_conditional'] = array( |
|
306 | - 'STS_ID' => strtoupper($view), |
|
307 | - ); |
|
308 | - } |
|
309 | - |
|
310 | - if (! $all && ! empty($this->_req_data['status']) && $this->_req_data['status'] !== 'all') { |
|
311 | - $query_params[0]['AND*view_conditional'] = $this->_req_data === EEM_Message::status_failed |
|
312 | - ? array( |
|
313 | - 'STS_ID' => array( |
|
314 | - 'IN', |
|
315 | - array(EEM_Message::status_failed, EEM_Message::status_messenger_executing), |
|
316 | - ), |
|
317 | - ) |
|
318 | - : array('STS_ID' => strtoupper($this->_req_data['status'])); |
|
319 | - } |
|
320 | - |
|
321 | - if (! $all && ! empty($this->_req_data['s'])) { |
|
322 | - $search_string = '%' . $this->_req_data['s'] . '%'; |
|
323 | - $query_params[0]['OR'] = array( |
|
324 | - 'MSG_to' => array('LIKE', $search_string), |
|
325 | - 'MSG_from' => array('LIKE', $search_string), |
|
326 | - 'MSG_subject' => array('LIKE', $search_string), |
|
327 | - 'MSG_content' => array('LIKE', $search_string), |
|
328 | - ); |
|
329 | - } |
|
330 | - |
|
331 | - // account for debug only status. We don't show Messages with the EEM_Message::status_debug_only to clients when |
|
332 | - // the messages system is in debug mode. |
|
333 | - // Note: for backward compat with previous iterations, this is necessary because there may be EEM_Message::status_debug_only |
|
334 | - // messages in the database. |
|
335 | - if (! EEM_Message::debug()) { |
|
336 | - $query_params[0]['AND*debug_only_conditional'] = array( |
|
337 | - 'STS_ID' => array('!=', EEM_Message::status_debug_only), |
|
338 | - ); |
|
339 | - } |
|
340 | - |
|
341 | - // account for filters |
|
342 | - if ( |
|
343 | - ! $all |
|
344 | - && isset($this->_req_data['ee_messenger_filter_by']) |
|
345 | - && $this->_req_data['ee_messenger_filter_by'] !== 'none_selected' |
|
346 | - ) { |
|
347 | - $query_params[0]['AND*messenger_filter'] = array( |
|
348 | - 'MSG_messenger' => $this->_req_data['ee_messenger_filter_by'], |
|
349 | - ); |
|
350 | - } |
|
351 | - if ( |
|
352 | - ! $all |
|
353 | - && ! empty($this->_req_data['ee_message_type_filter_by']) |
|
354 | - && $this->_req_data['ee_message_type_filter_by'] !== 'none_selected' |
|
355 | - ) { |
|
356 | - $query_params[0]['AND*message_type_filter'] = array( |
|
357 | - 'MSG_message_type' => $this->_req_data['ee_message_type_filter_by'], |
|
358 | - ); |
|
359 | - } |
|
360 | - |
|
361 | - if ( |
|
362 | - ! $all |
|
363 | - && ! empty($this->_req_data['ee_context_filter_by']) |
|
364 | - && $this->_req_data['ee_context_filter_by'] !== 'none_selected' |
|
365 | - ) { |
|
366 | - $query_params[0]['AND*context_filter'] = array( |
|
367 | - 'MSG_context' => array('IN', explode(',', $this->_req_data['ee_context_filter_by'])), |
|
368 | - ); |
|
369 | - } |
|
370 | - |
|
371 | - return $count |
|
372 | - /** @type int */ |
|
373 | - ? EEM_Message::instance()->count($query_params, null, true) |
|
374 | - /** @type EE_Message[] */ |
|
375 | - : EEM_Message::instance()->get_all($query_params); |
|
376 | - } |
|
377 | - |
|
378 | - |
|
379 | - /** |
|
380 | - * Generate dropdown filter select input for messengers. |
|
381 | - * |
|
382 | - * @return string |
|
383 | - */ |
|
384 | - protected function _get_messengers_dropdown_filter() |
|
385 | - { |
|
386 | - $messenger_options = array(); |
|
387 | - $active_messages_grouped_by_messenger = EEM_Message::instance()->get_all(array('group_by' => 'MSG_messenger')); |
|
388 | - |
|
389 | - // setup array of messenger options |
|
390 | - foreach ($active_messages_grouped_by_messenger as $active_message) { |
|
391 | - if ($active_message instanceof EE_Message) { |
|
392 | - $messenger_options[ $active_message->messenger() ] = ucwords($active_message->messenger_label()); |
|
393 | - } |
|
394 | - } |
|
395 | - return $this->get_admin_page()->get_messengers_select_input($messenger_options); |
|
396 | - } |
|
397 | - |
|
398 | - |
|
399 | - /** |
|
400 | - * Generate dropdown filter select input for message types |
|
401 | - * |
|
402 | - * @return string |
|
403 | - */ |
|
404 | - protected function _get_message_types_dropdown_filter() |
|
405 | - { |
|
406 | - $message_type_options = array(); |
|
407 | - $active_messages_grouped_by_message_type = EEM_Message::instance()->get_all( |
|
408 | - array('group_by' => 'MSG_message_type') |
|
409 | - ); |
|
410 | - |
|
411 | - // setup array of message type options |
|
412 | - foreach ($active_messages_grouped_by_message_type as $active_message) { |
|
413 | - if ($active_message instanceof EE_Message) { |
|
414 | - $message_type_options[ $active_message->message_type() ] = ucwords( |
|
415 | - $active_message->message_type_label() |
|
416 | - ); |
|
417 | - } |
|
418 | - } |
|
419 | - return $this->get_admin_page()->get_message_types_select_input($message_type_options); |
|
420 | - } |
|
421 | - |
|
422 | - |
|
423 | - /** |
|
424 | - * Generate dropdown filter select input for message type contexts |
|
425 | - * |
|
426 | - * @return string |
|
427 | - */ |
|
428 | - protected function _get_contexts_for_message_types_dropdown_filter() |
|
429 | - { |
|
430 | - $context_options = array(); |
|
431 | - $active_messages_grouped_by_context = EEM_Message::instance()->get_all(array('group_by' => 'MSG_context')); |
|
432 | - |
|
433 | - // setup array of context options |
|
434 | - foreach ($active_messages_grouped_by_context as $active_message) { |
|
435 | - if ($active_message instanceof EE_Message) { |
|
436 | - $message_type = $active_message->message_type_object(); |
|
437 | - if ($message_type instanceof EE_message_type) { |
|
438 | - foreach ($message_type->get_contexts() as $context => $context_details) { |
|
439 | - if (isset($context_details['label'])) { |
|
440 | - $context_options[ $context ] = $context_details['label']; |
|
441 | - } |
|
442 | - } |
|
443 | - } |
|
444 | - } |
|
445 | - } |
|
446 | - return $this->get_admin_page()->get_contexts_for_message_types_select_input($context_options); |
|
447 | - } |
|
15 | + /** |
|
16 | + * @return Messages_Admin_Page |
|
17 | + */ |
|
18 | + public function get_admin_page() |
|
19 | + { |
|
20 | + return $this->_admin_page; |
|
21 | + } |
|
22 | + |
|
23 | + |
|
24 | + protected function _setup_data() |
|
25 | + { |
|
26 | + $this->_data = $this->_get_messages($this->_per_page, $this->_view); |
|
27 | + $this->_all_data_count = $this->_get_messages($this->_per_page, $this->_view, true); |
|
28 | + } |
|
29 | + |
|
30 | + |
|
31 | + protected function _set_properties() |
|
32 | + { |
|
33 | + $this->_wp_list_args = array( |
|
34 | + 'singular' => esc_html__('Message', 'event_espresso'), |
|
35 | + 'plural' => esc_html__('Messages', 'event_espresso'), |
|
36 | + 'ajax' => true, |
|
37 | + 'screen' => $this->get_admin_page()->get_current_screen()->id, |
|
38 | + ); |
|
39 | + |
|
40 | + $this->_columns = array( |
|
41 | + 'cb' => '<input type="checkbox" />', |
|
42 | + 'to' => esc_html__('To', 'event_espresso'), |
|
43 | + 'from' => esc_html__('From', 'event_espresso'), |
|
44 | + 'messenger' => esc_html__('Messenger', 'event_espresso'), |
|
45 | + 'message_type' => esc_html__('Message Type', 'event_espresso'), |
|
46 | + 'context' => esc_html__('Context', 'event_espresso'), |
|
47 | + 'modified' => esc_html__('Modified', 'event_espresso'), |
|
48 | + 'action' => esc_html__('Actions', 'event_espresso'), |
|
49 | + 'msg_id' => esc_html__('ID', 'event_espresso'), |
|
50 | + ); |
|
51 | + |
|
52 | + $this->_sortable_columns = array( |
|
53 | + 'modified' => array('MSG_modified' => true), |
|
54 | + 'message_type' => array('MSG_message_type' => false), |
|
55 | + 'messenger' => array('MSG_messenger' => false), |
|
56 | + 'to' => array('MSG_to' => false), |
|
57 | + 'from' => array('MSG_from' => false), |
|
58 | + 'context' => array('MSG_context' => false), |
|
59 | + 'msg_id' => array('MSG_ID', false), |
|
60 | + ); |
|
61 | + |
|
62 | + $this->_primary_column = 'to'; |
|
63 | + |
|
64 | + $this->_hidden_columns = array( |
|
65 | + 'msg_id', |
|
66 | + ); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * This simply sets up the row class for the table rows. |
|
72 | + * Allows for easier overriding of child methods for setting up sorting. |
|
73 | + * |
|
74 | + * @param object $item the current item |
|
75 | + * @return string |
|
76 | + */ |
|
77 | + protected function _get_row_class($item) |
|
78 | + { |
|
79 | + $class = parent::_get_row_class($item); |
|
80 | + // add status class |
|
81 | + $class .= ' ee-status-strip msg-status-' . $item->STS_ID(); |
|
82 | + if ($this->_has_checkbox_column) { |
|
83 | + $class .= ' has-checkbox-column'; |
|
84 | + } |
|
85 | + return $class; |
|
86 | + } |
|
87 | + |
|
88 | + |
|
89 | + /** |
|
90 | + * _get_table_filters |
|
91 | + * We use this to assemble and return any filters that are associated with this table that help further refine what |
|
92 | + * get's shown in the table. |
|
93 | + * |
|
94 | + * @abstract |
|
95 | + * @access protected |
|
96 | + * @return string |
|
97 | + * @throws \EE_Error |
|
98 | + */ |
|
99 | + protected function _get_table_filters() |
|
100 | + { |
|
101 | + $filters = array(); |
|
102 | + |
|
103 | + // get select_inputs |
|
104 | + $select_inputs = array( |
|
105 | + $this->_get_messengers_dropdown_filter(), |
|
106 | + $this->_get_message_types_dropdown_filter(), |
|
107 | + $this->_get_contexts_for_message_types_dropdown_filter(), |
|
108 | + ); |
|
109 | + |
|
110 | + // set filters to select inputs if they aren't empty |
|
111 | + foreach ($select_inputs as $select_input) { |
|
112 | + if ($select_input) { |
|
113 | + $filters[] = $select_input; |
|
114 | + } |
|
115 | + } |
|
116 | + return $filters; |
|
117 | + } |
|
118 | + |
|
119 | + |
|
120 | + protected function _add_view_counts() |
|
121 | + { |
|
122 | + foreach ($this->_views as $view => $args) { |
|
123 | + $this->_views[ $view ]['count'] = $this->_get_messages($this->_per_page, $view, true, true); |
|
124 | + } |
|
125 | + } |
|
126 | + |
|
127 | + |
|
128 | + /** |
|
129 | + * @param EE_Message $message |
|
130 | + * @return string checkbox |
|
131 | + * @throws \EE_Error |
|
132 | + */ |
|
133 | + public function column_cb($message) |
|
134 | + { |
|
135 | + return sprintf('<input type="checkbox" name="MSG_ID[%s]" value="1" />', $message->ID()); |
|
136 | + } |
|
137 | + |
|
138 | + |
|
139 | + /** |
|
140 | + * @param EE_Message $message |
|
141 | + * @return string |
|
142 | + * @throws \EE_Error |
|
143 | + */ |
|
144 | + public function column_msg_id(EE_Message $message) |
|
145 | + { |
|
146 | + return $message->ID(); |
|
147 | + } |
|
148 | + |
|
149 | + |
|
150 | + /** |
|
151 | + * @param EE_Message $message |
|
152 | + * @return string The recipient of the message |
|
153 | + * @throws \EE_Error |
|
154 | + */ |
|
155 | + public function column_to(EE_Message $message) |
|
156 | + { |
|
157 | + EE_Registry::instance()->load_helper('URL'); |
|
158 | + $actions = array(); |
|
159 | + $actions['delete'] = '<a href="' |
|
160 | + . EEH_URL::add_query_args_and_nonce( |
|
161 | + array( |
|
162 | + 'page' => 'espresso_messages', |
|
163 | + 'action' => 'delete_ee_message', |
|
164 | + 'MSG_ID' => $message->ID(), |
|
165 | + ), |
|
166 | + admin_url('admin.php') |
|
167 | + ) |
|
168 | + . '">' . esc_html__('Delete', 'event_espresso') . '</a>'; |
|
169 | + return esc_html($message->to()) . $this->row_actions($actions); |
|
170 | + } |
|
171 | + |
|
172 | + |
|
173 | + /** |
|
174 | + * @param EE_Message $message |
|
175 | + * @return string The sender of the message |
|
176 | + */ |
|
177 | + public function column_from(EE_Message $message) |
|
178 | + { |
|
179 | + return esc_html($message->from()); |
|
180 | + } |
|
181 | + |
|
182 | + |
|
183 | + /** |
|
184 | + * @param EE_Message $message |
|
185 | + * @return string The messenger used to send the message. |
|
186 | + */ |
|
187 | + public function column_messenger(EE_Message $message) |
|
188 | + { |
|
189 | + return ucwords($message->messenger_label()); |
|
190 | + } |
|
191 | + |
|
192 | + |
|
193 | + /** |
|
194 | + * @param EE_Message $message |
|
195 | + * @return string The message type used to generate the message. |
|
196 | + */ |
|
197 | + public function column_message_type(EE_Message $message) |
|
198 | + { |
|
199 | + return ucwords($message->message_type_label()); |
|
200 | + } |
|
201 | + |
|
202 | + |
|
203 | + /** |
|
204 | + * @param EE_Message $message |
|
205 | + * @return string The context the message was generated for. |
|
206 | + */ |
|
207 | + public function column_context(EE_Message $message) |
|
208 | + { |
|
209 | + return $message->context_label(); |
|
210 | + } |
|
211 | + |
|
212 | + |
|
213 | + /** |
|
214 | + * @param EE_Message $message |
|
215 | + * @return string The timestamp when this message was last modified. |
|
216 | + */ |
|
217 | + public function column_modified(EE_Message $message) |
|
218 | + { |
|
219 | + return $message->modified(); |
|
220 | + } |
|
221 | + |
|
222 | + |
|
223 | + /** |
|
224 | + * @param EE_Message $message |
|
225 | + * @return string Actions that can be done on the current message. |
|
226 | + */ |
|
227 | + public function column_action(EE_Message $message) |
|
228 | + { |
|
229 | + EE_Registry::instance()->load_helper('MSG_Template'); |
|
230 | + $action_links = array( |
|
231 | + 'view' => EEH_MSG_Template::get_message_action_link('view', $message), |
|
232 | + 'error' => EEH_MSG_Template::get_message_action_link('error', $message), |
|
233 | + 'generate_now' => EEH_MSG_Template::get_message_action_link('generate_now', $message), |
|
234 | + 'send_now' => EEH_MSG_Template::get_message_action_link('send_now', $message), |
|
235 | + 'queue_for_resending' => EEH_MSG_Template::get_message_action_link('queue_for_resending', $message), |
|
236 | + 'view_transaction' => EEH_MSG_Template::get_message_action_link('view_transaction', $message), |
|
237 | + ); |
|
238 | + $content = ''; |
|
239 | + switch ($message->STS_ID()) { |
|
240 | + case EEM_Message::status_sent: |
|
241 | + $content = $action_links['view'] . $action_links['queue_for_resending'] . $action_links['view_transaction']; |
|
242 | + break; |
|
243 | + case EEM_Message::status_resend: |
|
244 | + $content = $action_links['view'] . $action_links['send_now'] . $action_links['view_transaction']; |
|
245 | + break; |
|
246 | + case EEM_Message::status_retry: |
|
247 | + $content = $action_links['view'] . $action_links['send_now'] . $action_links['error'] . $action_links['view_transaction']; |
|
248 | + break; |
|
249 | + case EEM_Message::status_failed: |
|
250 | + case EEM_Message::status_debug_only: |
|
251 | + $content = $action_links['error'] . $action_links['view_transaction']; |
|
252 | + break; |
|
253 | + case EEM_Message::status_idle: |
|
254 | + $content = $action_links['view'] . $action_links['send_now'] . $action_links['view_transaction']; |
|
255 | + break; |
|
256 | + case EEM_Message::status_incomplete: |
|
257 | + $content = $action_links['generate_now'] . $action_links['view_transaction']; |
|
258 | + break; |
|
259 | + } |
|
260 | + return $content; |
|
261 | + } |
|
262 | + |
|
263 | + |
|
264 | + /** |
|
265 | + * Retrieve the EE_Message objects for the list table. |
|
266 | + * |
|
267 | + * @param int $perpage The number of items per page |
|
268 | + * @param string $view The view items are being retrieved for |
|
269 | + * @param bool $count Whether to just return a count or not. |
|
270 | + * @param bool $all Disregard any paging info (no limit on data returned). |
|
271 | + * @return int|EE_Message[] |
|
272 | + * @throws \EE_Error |
|
273 | + */ |
|
274 | + protected function _get_messages($perpage = 10, $view = 'all', $count = false, $all = false) |
|
275 | + { |
|
276 | + |
|
277 | + $current_page = isset($this->_req_data['paged']) && ! empty($this->_req_data['paged']) |
|
278 | + ? $this->_req_data['paged'] |
|
279 | + : 1; |
|
280 | + |
|
281 | + $per_page = isset($this->_req_data['perpage']) && ! empty($this->_req_data['perpage']) |
|
282 | + ? $this->_req_data['perpage'] |
|
283 | + : $perpage; |
|
284 | + |
|
285 | + $offset = ($current_page - 1) * $per_page; |
|
286 | + $limit = $all || $count ? null : array($offset, $per_page); |
|
287 | + $query_params = array( |
|
288 | + 'order_by' => empty($this->_req_data['orderby']) ? 'MSG_modified' : $this->_req_data['orderby'], |
|
289 | + 'order' => empty($this->_req_data['order']) ? 'DESC' : $this->_req_data['order'], |
|
290 | + 'limit' => $limit, |
|
291 | + ); |
|
292 | + |
|
293 | + /** |
|
294 | + * Any filters coming in from other routes? |
|
295 | + */ |
|
296 | + if (isset($this->_req_data['filterby'])) { |
|
297 | + $query_params = array_merge($query_params, EEM_Message::instance()->filter_by_query_params()); |
|
298 | + if (! $count) { |
|
299 | + $query_params['group_by'] = 'MSG_ID'; |
|
300 | + } |
|
301 | + } |
|
302 | + |
|
303 | + // view conditionals |
|
304 | + if ($view !== 'all' && $count && $all) { |
|
305 | + $query_params[0]['AND*view_conditional'] = array( |
|
306 | + 'STS_ID' => strtoupper($view), |
|
307 | + ); |
|
308 | + } |
|
309 | + |
|
310 | + if (! $all && ! empty($this->_req_data['status']) && $this->_req_data['status'] !== 'all') { |
|
311 | + $query_params[0]['AND*view_conditional'] = $this->_req_data === EEM_Message::status_failed |
|
312 | + ? array( |
|
313 | + 'STS_ID' => array( |
|
314 | + 'IN', |
|
315 | + array(EEM_Message::status_failed, EEM_Message::status_messenger_executing), |
|
316 | + ), |
|
317 | + ) |
|
318 | + : array('STS_ID' => strtoupper($this->_req_data['status'])); |
|
319 | + } |
|
320 | + |
|
321 | + if (! $all && ! empty($this->_req_data['s'])) { |
|
322 | + $search_string = '%' . $this->_req_data['s'] . '%'; |
|
323 | + $query_params[0]['OR'] = array( |
|
324 | + 'MSG_to' => array('LIKE', $search_string), |
|
325 | + 'MSG_from' => array('LIKE', $search_string), |
|
326 | + 'MSG_subject' => array('LIKE', $search_string), |
|
327 | + 'MSG_content' => array('LIKE', $search_string), |
|
328 | + ); |
|
329 | + } |
|
330 | + |
|
331 | + // account for debug only status. We don't show Messages with the EEM_Message::status_debug_only to clients when |
|
332 | + // the messages system is in debug mode. |
|
333 | + // Note: for backward compat with previous iterations, this is necessary because there may be EEM_Message::status_debug_only |
|
334 | + // messages in the database. |
|
335 | + if (! EEM_Message::debug()) { |
|
336 | + $query_params[0]['AND*debug_only_conditional'] = array( |
|
337 | + 'STS_ID' => array('!=', EEM_Message::status_debug_only), |
|
338 | + ); |
|
339 | + } |
|
340 | + |
|
341 | + // account for filters |
|
342 | + if ( |
|
343 | + ! $all |
|
344 | + && isset($this->_req_data['ee_messenger_filter_by']) |
|
345 | + && $this->_req_data['ee_messenger_filter_by'] !== 'none_selected' |
|
346 | + ) { |
|
347 | + $query_params[0]['AND*messenger_filter'] = array( |
|
348 | + 'MSG_messenger' => $this->_req_data['ee_messenger_filter_by'], |
|
349 | + ); |
|
350 | + } |
|
351 | + if ( |
|
352 | + ! $all |
|
353 | + && ! empty($this->_req_data['ee_message_type_filter_by']) |
|
354 | + && $this->_req_data['ee_message_type_filter_by'] !== 'none_selected' |
|
355 | + ) { |
|
356 | + $query_params[0]['AND*message_type_filter'] = array( |
|
357 | + 'MSG_message_type' => $this->_req_data['ee_message_type_filter_by'], |
|
358 | + ); |
|
359 | + } |
|
360 | + |
|
361 | + if ( |
|
362 | + ! $all |
|
363 | + && ! empty($this->_req_data['ee_context_filter_by']) |
|
364 | + && $this->_req_data['ee_context_filter_by'] !== 'none_selected' |
|
365 | + ) { |
|
366 | + $query_params[0]['AND*context_filter'] = array( |
|
367 | + 'MSG_context' => array('IN', explode(',', $this->_req_data['ee_context_filter_by'])), |
|
368 | + ); |
|
369 | + } |
|
370 | + |
|
371 | + return $count |
|
372 | + /** @type int */ |
|
373 | + ? EEM_Message::instance()->count($query_params, null, true) |
|
374 | + /** @type EE_Message[] */ |
|
375 | + : EEM_Message::instance()->get_all($query_params); |
|
376 | + } |
|
377 | + |
|
378 | + |
|
379 | + /** |
|
380 | + * Generate dropdown filter select input for messengers. |
|
381 | + * |
|
382 | + * @return string |
|
383 | + */ |
|
384 | + protected function _get_messengers_dropdown_filter() |
|
385 | + { |
|
386 | + $messenger_options = array(); |
|
387 | + $active_messages_grouped_by_messenger = EEM_Message::instance()->get_all(array('group_by' => 'MSG_messenger')); |
|
388 | + |
|
389 | + // setup array of messenger options |
|
390 | + foreach ($active_messages_grouped_by_messenger as $active_message) { |
|
391 | + if ($active_message instanceof EE_Message) { |
|
392 | + $messenger_options[ $active_message->messenger() ] = ucwords($active_message->messenger_label()); |
|
393 | + } |
|
394 | + } |
|
395 | + return $this->get_admin_page()->get_messengers_select_input($messenger_options); |
|
396 | + } |
|
397 | + |
|
398 | + |
|
399 | + /** |
|
400 | + * Generate dropdown filter select input for message types |
|
401 | + * |
|
402 | + * @return string |
|
403 | + */ |
|
404 | + protected function _get_message_types_dropdown_filter() |
|
405 | + { |
|
406 | + $message_type_options = array(); |
|
407 | + $active_messages_grouped_by_message_type = EEM_Message::instance()->get_all( |
|
408 | + array('group_by' => 'MSG_message_type') |
|
409 | + ); |
|
410 | + |
|
411 | + // setup array of message type options |
|
412 | + foreach ($active_messages_grouped_by_message_type as $active_message) { |
|
413 | + if ($active_message instanceof EE_Message) { |
|
414 | + $message_type_options[ $active_message->message_type() ] = ucwords( |
|
415 | + $active_message->message_type_label() |
|
416 | + ); |
|
417 | + } |
|
418 | + } |
|
419 | + return $this->get_admin_page()->get_message_types_select_input($message_type_options); |
|
420 | + } |
|
421 | + |
|
422 | + |
|
423 | + /** |
|
424 | + * Generate dropdown filter select input for message type contexts |
|
425 | + * |
|
426 | + * @return string |
|
427 | + */ |
|
428 | + protected function _get_contexts_for_message_types_dropdown_filter() |
|
429 | + { |
|
430 | + $context_options = array(); |
|
431 | + $active_messages_grouped_by_context = EEM_Message::instance()->get_all(array('group_by' => 'MSG_context')); |
|
432 | + |
|
433 | + // setup array of context options |
|
434 | + foreach ($active_messages_grouped_by_context as $active_message) { |
|
435 | + if ($active_message instanceof EE_Message) { |
|
436 | + $message_type = $active_message->message_type_object(); |
|
437 | + if ($message_type instanceof EE_message_type) { |
|
438 | + foreach ($message_type->get_contexts() as $context => $context_details) { |
|
439 | + if (isset($context_details['label'])) { |
|
440 | + $context_options[ $context ] = $context_details['label']; |
|
441 | + } |
|
442 | + } |
|
443 | + } |
|
444 | + } |
|
445 | + } |
|
446 | + return $this->get_admin_page()->get_contexts_for_message_types_select_input($context_options); |
|
447 | + } |
|
448 | 448 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $class = parent::_get_row_class($item); |
80 | 80 | // add status class |
81 | - $class .= ' ee-status-strip msg-status-' . $item->STS_ID(); |
|
81 | + $class .= ' ee-status-strip msg-status-'.$item->STS_ID(); |
|
82 | 82 | if ($this->_has_checkbox_column) { |
83 | 83 | $class .= ' has-checkbox-column'; |
84 | 84 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | protected function _add_view_counts() |
121 | 121 | { |
122 | 122 | foreach ($this->_views as $view => $args) { |
123 | - $this->_views[ $view ]['count'] = $this->_get_messages($this->_per_page, $view, true, true); |
|
123 | + $this->_views[$view]['count'] = $this->_get_messages($this->_per_page, $view, true, true); |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
@@ -165,8 +165,8 @@ discard block |
||
165 | 165 | ), |
166 | 166 | admin_url('admin.php') |
167 | 167 | ) |
168 | - . '">' . esc_html__('Delete', 'event_espresso') . '</a>'; |
|
169 | - return esc_html($message->to()) . $this->row_actions($actions); |
|
168 | + . '">'.esc_html__('Delete', 'event_espresso').'</a>'; |
|
169 | + return esc_html($message->to()).$this->row_actions($actions); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | |
@@ -238,23 +238,23 @@ discard block |
||
238 | 238 | $content = ''; |
239 | 239 | switch ($message->STS_ID()) { |
240 | 240 | case EEM_Message::status_sent: |
241 | - $content = $action_links['view'] . $action_links['queue_for_resending'] . $action_links['view_transaction']; |
|
241 | + $content = $action_links['view'].$action_links['queue_for_resending'].$action_links['view_transaction']; |
|
242 | 242 | break; |
243 | 243 | case EEM_Message::status_resend: |
244 | - $content = $action_links['view'] . $action_links['send_now'] . $action_links['view_transaction']; |
|
244 | + $content = $action_links['view'].$action_links['send_now'].$action_links['view_transaction']; |
|
245 | 245 | break; |
246 | 246 | case EEM_Message::status_retry: |
247 | - $content = $action_links['view'] . $action_links['send_now'] . $action_links['error'] . $action_links['view_transaction']; |
|
247 | + $content = $action_links['view'].$action_links['send_now'].$action_links['error'].$action_links['view_transaction']; |
|
248 | 248 | break; |
249 | 249 | case EEM_Message::status_failed: |
250 | 250 | case EEM_Message::status_debug_only: |
251 | - $content = $action_links['error'] . $action_links['view_transaction']; |
|
251 | + $content = $action_links['error'].$action_links['view_transaction']; |
|
252 | 252 | break; |
253 | 253 | case EEM_Message::status_idle: |
254 | - $content = $action_links['view'] . $action_links['send_now'] . $action_links['view_transaction']; |
|
254 | + $content = $action_links['view'].$action_links['send_now'].$action_links['view_transaction']; |
|
255 | 255 | break; |
256 | 256 | case EEM_Message::status_incomplete: |
257 | - $content = $action_links['generate_now'] . $action_links['view_transaction']; |
|
257 | + $content = $action_links['generate_now'].$action_links['view_transaction']; |
|
258 | 258 | break; |
259 | 259 | } |
260 | 260 | return $content; |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | */ |
296 | 296 | if (isset($this->_req_data['filterby'])) { |
297 | 297 | $query_params = array_merge($query_params, EEM_Message::instance()->filter_by_query_params()); |
298 | - if (! $count) { |
|
298 | + if ( ! $count) { |
|
299 | 299 | $query_params['group_by'] = 'MSG_ID'; |
300 | 300 | } |
301 | 301 | } |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | ); |
308 | 308 | } |
309 | 309 | |
310 | - if (! $all && ! empty($this->_req_data['status']) && $this->_req_data['status'] !== 'all') { |
|
310 | + if ( ! $all && ! empty($this->_req_data['status']) && $this->_req_data['status'] !== 'all') { |
|
311 | 311 | $query_params[0]['AND*view_conditional'] = $this->_req_data === EEM_Message::status_failed |
312 | 312 | ? array( |
313 | 313 | 'STS_ID' => array( |
@@ -318,8 +318,8 @@ discard block |
||
318 | 318 | : array('STS_ID' => strtoupper($this->_req_data['status'])); |
319 | 319 | } |
320 | 320 | |
321 | - if (! $all && ! empty($this->_req_data['s'])) { |
|
322 | - $search_string = '%' . $this->_req_data['s'] . '%'; |
|
321 | + if ( ! $all && ! empty($this->_req_data['s'])) { |
|
322 | + $search_string = '%'.$this->_req_data['s'].'%'; |
|
323 | 323 | $query_params[0]['OR'] = array( |
324 | 324 | 'MSG_to' => array('LIKE', $search_string), |
325 | 325 | 'MSG_from' => array('LIKE', $search_string), |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | // the messages system is in debug mode. |
333 | 333 | // Note: for backward compat with previous iterations, this is necessary because there may be EEM_Message::status_debug_only |
334 | 334 | // messages in the database. |
335 | - if (! EEM_Message::debug()) { |
|
335 | + if ( ! EEM_Message::debug()) { |
|
336 | 336 | $query_params[0]['AND*debug_only_conditional'] = array( |
337 | 337 | 'STS_ID' => array('!=', EEM_Message::status_debug_only), |
338 | 338 | ); |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | // setup array of messenger options |
390 | 390 | foreach ($active_messages_grouped_by_messenger as $active_message) { |
391 | 391 | if ($active_message instanceof EE_Message) { |
392 | - $messenger_options[ $active_message->messenger() ] = ucwords($active_message->messenger_label()); |
|
392 | + $messenger_options[$active_message->messenger()] = ucwords($active_message->messenger_label()); |
|
393 | 393 | } |
394 | 394 | } |
395 | 395 | return $this->get_admin_page()->get_messengers_select_input($messenger_options); |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | // setup array of message type options |
412 | 412 | foreach ($active_messages_grouped_by_message_type as $active_message) { |
413 | 413 | if ($active_message instanceof EE_Message) { |
414 | - $message_type_options[ $active_message->message_type() ] = ucwords( |
|
414 | + $message_type_options[$active_message->message_type()] = ucwords( |
|
415 | 415 | $active_message->message_type_label() |
416 | 416 | ); |
417 | 417 | } |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | if ($message_type instanceof EE_message_type) { |
438 | 438 | foreach ($message_type->get_contexts() as $context => $context_details) { |
439 | 439 | if (isset($context_details['label'])) { |
440 | - $context_options[ $context ] = $context_details['label']; |
|
440 | + $context_options[$context] = $context_details['label']; |
|
441 | 441 | } |
442 | 442 | } |
443 | 443 | } |
@@ -15,56 +15,56 @@ |
||
15 | 15 | class Registration_Reports_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = esc_html__('Registration Reports Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'registration-reports-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = esc_html__('Registration Reports Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'registration-reports-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'reg-admin-registrations-per-day-report-dv', |
|
33 | - 'content' => $this->_reg_per_day_report_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentY' => -40, |
|
37 | - ), |
|
38 | - ), |
|
39 | - 30 => array( |
|
40 | - 'id' => 'reg-admin-registrations-per-event-report-dv', |
|
41 | - 'content' => $this->_reg_per_event_report_stop(), |
|
42 | - 'options' => array( |
|
43 | - 'tipLocation' => 'top', |
|
44 | - 'tipAdjustmentY' => -40, |
|
45 | - ), |
|
46 | - ), |
|
47 | - ); |
|
48 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'reg-admin-registrations-per-day-report-dv', |
|
33 | + 'content' => $this->_reg_per_day_report_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentY' => -40, |
|
37 | + ), |
|
38 | + ), |
|
39 | + 30 => array( |
|
40 | + 'id' => 'reg-admin-registrations-per-event-report-dv', |
|
41 | + 'content' => $this->_reg_per_event_report_stop(), |
|
42 | + 'options' => array( |
|
43 | + 'tipLocation' => 'top', |
|
44 | + 'tipAdjustmentY' => -40, |
|
45 | + ), |
|
46 | + ), |
|
47 | + ); |
|
48 | + } |
|
49 | 49 | |
50 | - protected function _start() |
|
51 | - { |
|
52 | - $content = '<h3>' . esc_html__('Registration Reports', 'event_espresso') . '</h3>'; |
|
53 | - $content .= '<p>' |
|
54 | - . esc_html__( |
|
55 | - 'This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.', |
|
56 | - 'event_espresso' |
|
57 | - ) . '</p>'; |
|
58 | - return $content; |
|
59 | - } |
|
50 | + protected function _start() |
|
51 | + { |
|
52 | + $content = '<h3>' . esc_html__('Registration Reports', 'event_espresso') . '</h3>'; |
|
53 | + $content .= '<p>' |
|
54 | + . esc_html__( |
|
55 | + 'This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.', |
|
56 | + 'event_espresso' |
|
57 | + ) . '</p>'; |
|
58 | + return $content; |
|
59 | + } |
|
60 | 60 | |
61 | - protected function _reg_per_day_report_stop() |
|
62 | - { |
|
63 | - return '<p>' . esc_html__('This graph shows registrations for each day.', 'event_espresso') . '</p>'; |
|
64 | - } |
|
61 | + protected function _reg_per_day_report_stop() |
|
62 | + { |
|
63 | + return '<p>' . esc_html__('This graph shows registrations for each day.', 'event_espresso') . '</p>'; |
|
64 | + } |
|
65 | 65 | |
66 | - protected function _reg_per_event_report_stop() |
|
67 | - { |
|
68 | - return '<p>' . esc_html__('This graph shows registrations for each event.', 'event_espresso') . '</p>'; |
|
69 | - } |
|
66 | + protected function _reg_per_event_report_stop() |
|
67 | + { |
|
68 | + return '<p>' . esc_html__('This graph shows registrations for each event.', 'event_espresso') . '</p>'; |
|
69 | + } |
|
70 | 70 | } |
@@ -49,22 +49,22 @@ |
||
49 | 49 | |
50 | 50 | protected function _start() |
51 | 51 | { |
52 | - $content = '<h3>' . esc_html__('Registration Reports', 'event_espresso') . '</h3>'; |
|
52 | + $content = '<h3>'.esc_html__('Registration Reports', 'event_espresso').'</h3>'; |
|
53 | 53 | $content .= '<p>' |
54 | 54 | . esc_html__( |
55 | 55 | 'This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.', |
56 | 56 | 'event_espresso' |
57 | - ) . '</p>'; |
|
57 | + ).'</p>'; |
|
58 | 58 | return $content; |
59 | 59 | } |
60 | 60 | |
61 | 61 | protected function _reg_per_day_report_stop() |
62 | 62 | { |
63 | - return '<p>' . esc_html__('This graph shows registrations for each day.', 'event_espresso') . '</p>'; |
|
63 | + return '<p>'.esc_html__('This graph shows registrations for each day.', 'event_espresso').'</p>'; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | protected function _reg_per_event_report_stop() |
67 | 67 | { |
68 | - return '<p>' . esc_html__('This graph shows registrations for each event.', 'event_espresso') . '</p>'; |
|
68 | + return '<p>'.esc_html__('This graph shows registrations for each event.', 'event_espresso').'</p>'; |
|
69 | 69 | } |
70 | 70 | } |
@@ -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 = esc_html__('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 = esc_html__('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>' . esc_html__('Event Check-in', 'event_espresso') . '</h3>'; |
|
177 | - if (isset($this->_req_data['event_id'])) { |
|
178 | - $content .= '<p>' |
|
179 | - . esc_html__( |
|
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 | - . esc_html__( |
|
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>' . esc_html__('Event Check-in', 'event_espresso') . '</h3>'; |
|
177 | + if (isset($this->_req_data['event_id'])) { |
|
178 | + $content .= '<p>' |
|
179 | + . esc_html__( |
|
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 | + . esc_html__( |
|
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>' . esc_html__('View registration number.', 'event_espresso') . '</p>'; |
|
196 | - } |
|
193 | + protected function _reg_count_stop() |
|
194 | + { |
|
195 | + return '<p>' . esc_html__('View registration number.', 'event_espresso') . '</p>'; |
|
196 | + } |
|
197 | 197 | |
198 | - protected function _attendee_name_stop() |
|
199 | - { |
|
200 | - return '<p>' |
|
201 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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>' . esc_html__('View email address for a registrant.', 'event_espresso') . '</p>'; |
|
210 | - } |
|
207 | + protected function _attendee_email_stop() |
|
208 | + { |
|
209 | + return '<p>' . esc_html__('View email address for a registrant.', 'event_espresso') . '</p>'; |
|
210 | + } |
|
211 | 211 | |
212 | - protected function _reg_date_stop() |
|
213 | - { |
|
214 | - return '<p>' |
|
215 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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>' . esc_html__('View price for ticket.', 'event_espresso') . '</p>'; |
|
233 | - } |
|
230 | + protected function _reg_final_price_stop() |
|
231 | + { |
|
232 | + return '<p>' . esc_html__('View price for ticket.', 'event_espresso') . '</p>'; |
|
233 | + } |
|
234 | 234 | |
235 | - protected function _txn_paid_stop() |
|
236 | - { |
|
237 | - return '<p>' . esc_html__('View if registrant has paid for ticket.', 'event_espresso') . '</p>'; |
|
238 | - } |
|
235 | + protected function _txn_paid_stop() |
|
236 | + { |
|
237 | + return '<p>' . esc_html__('View if registrant has paid for ticket.', 'event_espresso') . '</p>'; |
|
238 | + } |
|
239 | 239 | |
240 | - protected function _txn_total_stop() |
|
241 | - { |
|
242 | - return '<p>' . esc_html__('View total amount paid.', 'event_espresso') . '</p>'; |
|
243 | - } |
|
240 | + protected function _txn_total_stop() |
|
241 | + { |
|
242 | + return '<p>' . esc_html__('View total amount paid.', 'event_espresso') . '</p>'; |
|
243 | + } |
|
244 | 244 | |
245 | - protected function _prc_name_stop() |
|
246 | - { |
|
247 | - return '<p>' . esc_html__('View type of ticket.', 'event_espresso') . '</p>'; |
|
248 | - } |
|
245 | + protected function _prc_name_stop() |
|
246 | + { |
|
247 | + return '<p>' . esc_html__('View type of ticket.', 'event_espresso') . '</p>'; |
|
248 | + } |
|
249 | 249 | |
250 | - protected function _actions_stop() |
|
251 | - { |
|
252 | - return '<p>' |
|
253 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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 | - . esc_html__( |
|
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 | + . esc_html__( |
|
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>' . esc_html__('Event Check-in', 'event_espresso') . '</h3>'; |
|
176 | + $content = '<h3>'.esc_html__('Event Check-in', 'event_espresso').'</h3>'; |
|
177 | 177 | if (isset($this->_req_data['event_id'])) { |
178 | 178 | $content .= '<p>' |
179 | 179 | . esc_html__( |
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 | . esc_html__( |
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>' . esc_html__('View registration number.', 'event_espresso') . '</p>'; |
|
195 | + return '<p>'.esc_html__('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 | . esc_html__( |
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>' . esc_html__('View email address for a registrant.', 'event_espresso') . '</p>'; |
|
209 | + return '<p>'.esc_html__('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 | . esc_html__( |
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 | . esc_html__( |
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>' . esc_html__('View price for ticket.', 'event_espresso') . '</p>'; |
|
232 | + return '<p>'.esc_html__('View price for ticket.', 'event_espresso').'</p>'; |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | protected function _txn_paid_stop() |
236 | 236 | { |
237 | - return '<p>' . esc_html__('View if registrant has paid for ticket.', 'event_espresso') . '</p>'; |
|
237 | + return '<p>'.esc_html__('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>' . esc_html__('View total amount paid.', 'event_espresso') . '</p>'; |
|
242 | + return '<p>'.esc_html__('View total amount paid.', 'event_espresso').'</p>'; |
|
243 | 243 | } |
244 | 244 | |
245 | 245 | protected function _prc_name_stop() |
246 | 246 | { |
247 | - return '<p>' . esc_html__('View type of ticket.', 'event_espresso') . '</p>'; |
|
247 | + return '<p>'.esc_html__('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 | . esc_html__( |
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 | . esc_html__( |
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 | . esc_html__( |
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 | . esc_html__( |
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 | . esc_html__( |
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 | . esc_html__( |
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 | } |
@@ -15,227 +15,227 @@ |
||
15 | 15 | class Contact_List_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = esc_html__('Contact List Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'contact-list-overview-joyride'; |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 15 => array( |
|
32 | - 'id' => 'ATT_ID', |
|
33 | - 'content' => $this->_attendee_id_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentX' => -20, |
|
37 | - 'tipAdjustmentY' => -30, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 20 => array( |
|
41 | - 'id' => 'ATT_fname', |
|
42 | - 'content' => $this->_attendee_name_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentX' => 5, |
|
46 | - 'tipAdjustmentY' => -30, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 30 => array( |
|
50 | - 'id' => 'ATT_lname', |
|
51 | - 'content' => $this->_att_lname_stop(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentX' => 5, |
|
55 | - 'tipAdjustmentY' => -30, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 40 => array( |
|
59 | - 'id' => 'ATT_email', |
|
60 | - 'content' => $this->_att_email_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'top', |
|
63 | - 'tipAdjustmentX' => 10, |
|
64 | - 'tipAdjustmentY' => -30, |
|
65 | - ), |
|
66 | - ), |
|
67 | - 50 => array( |
|
68 | - 'id' => 'ATT_phone', |
|
69 | - 'content' => $this->_att_phone_stop(), |
|
70 | - 'options' => array( |
|
71 | - 'tipLocation' => 'top', |
|
72 | - 'tipAdjustmentX' => -5, |
|
73 | - 'tipAdjustmentY' => -30, |
|
74 | - ), |
|
75 | - ), |
|
76 | - 60 => array( |
|
77 | - 'id' => 'ATT_address', |
|
78 | - 'content' => $this->_att_address_stop(), |
|
79 | - 'options' => array( |
|
80 | - 'tipLocation' => 'top', |
|
81 | - 'tipAdjustmentX' => 0, |
|
82 | - 'tipAdjustmentY' => -30, |
|
83 | - ), |
|
84 | - ), |
|
85 | - 70 => array( |
|
86 | - 'id' => 'ATT_city', |
|
87 | - 'content' => $this->_att_city_stop(), |
|
88 | - 'options' => array( |
|
89 | - 'tipLocation' => 'left', |
|
90 | - 'tipAdjustmentX' => 0, |
|
91 | - 'tipAdjustmentY' => -50, |
|
92 | - ), |
|
93 | - ), |
|
94 | - 80 => array( |
|
95 | - 'id' => 'STA_ID', |
|
96 | - 'content' => $this->_sta_id_stop(), |
|
97 | - 'options' => array( |
|
98 | - 'tipLocation' => 'left', |
|
99 | - 'tipAdjustmentX' => 0, |
|
100 | - 'tipAdjustmentY' => -50, |
|
101 | - ), |
|
102 | - ), |
|
103 | - 90 => array( |
|
104 | - 'id' => 'CNT_ISO', |
|
105 | - 'content' => $this->_cnt_iso_stop(), |
|
106 | - 'options' => array( |
|
107 | - 'tipLocation' => 'left', |
|
108 | - 'tipAdjustmentX' => 0, |
|
109 | - 'tipAdjustmentY' => -50, |
|
110 | - ), |
|
111 | - ), |
|
112 | - 100 => array( |
|
113 | - 'class' => 'bulkactions', |
|
114 | - 'content' => $this->_bulkactions_stop(), |
|
115 | - 'options' => array( |
|
116 | - 'tipLocation' => 'bottom', |
|
117 | - 'tipAdjustmentY' => -30, |
|
118 | - 'tipAdjustmentX' => 15, |
|
119 | - ), |
|
120 | - ), |
|
121 | - 110 => array( |
|
122 | - 'id' => 'event-espresso_page_espresso_registrations-search-input', |
|
123 | - 'content' => $this->_search_stop(), |
|
124 | - 'options' => array( |
|
125 | - 'tipLocation' => 'left', |
|
126 | - 'tipAdjustmentY' => -50, |
|
127 | - 'tipAdjustmentX' => -15, |
|
128 | - ), |
|
129 | - ), |
|
130 | - 120 => array( |
|
131 | - 'id' => 'contact-list-csv-export', |
|
132 | - 'content' => $this->_contact_list_csv_export_stop(), |
|
133 | - 'options' => array( |
|
134 | - 'tipLocation' => 'right', |
|
135 | - 'tipAdjustmentY' => -50, |
|
136 | - 'tipAdjustmentX' => 25, |
|
137 | - ), |
|
138 | - ), |
|
139 | - ); |
|
140 | - } |
|
141 | - |
|
142 | - |
|
143 | - protected function _start() |
|
144 | - { |
|
145 | - $content = '<h3>' . esc_html__('Contact List', 'event_espresso') . '</h3>'; |
|
146 | - $content .= '<p>' |
|
147 | - . esc_html__( |
|
148 | - 'This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.', |
|
149 | - 'event_espresso' |
|
150 | - ) . '</p>'; |
|
151 | - return $content; |
|
152 | - } |
|
153 | - |
|
154 | - protected function _attendee_id_stop() |
|
155 | - { |
|
156 | - return '<p>' |
|
157 | - . esc_html__( |
|
158 | - 'View ID for registrants. Can be sorted in ascending or descending order.', |
|
159 | - 'event_espresso' |
|
160 | - ) . '</p>'; |
|
161 | - } |
|
162 | - |
|
163 | - protected function _attendee_name_stop() |
|
164 | - { |
|
165 | - return '<p>' |
|
166 | - . esc_html__( |
|
167 | - 'View first name for registrants. Can be sorted in ascending or descending order.', |
|
168 | - 'event_espresso' |
|
169 | - ) . '</p>'; |
|
170 | - } |
|
171 | - |
|
172 | - protected function _att_lname_stop() |
|
173 | - { |
|
174 | - return '<p>' |
|
175 | - . esc_html__( |
|
176 | - 'View last name for registrants. Can be sorted in ascending or descending order.', |
|
177 | - 'event_espresso' |
|
178 | - ) . '</p>'; |
|
179 | - } |
|
180 | - |
|
181 | - protected function _att_email_stop() |
|
182 | - { |
|
183 | - return '<p>' |
|
184 | - . esc_html__( |
|
185 | - 'View email address for registrants. Can be sorted in ascending or descending order.', |
|
186 | - 'event_espresso' |
|
187 | - ) . '</p>'; |
|
188 | - } |
|
189 | - |
|
190 | - protected function _att_phone_stop() |
|
191 | - { |
|
192 | - return '<p>' . esc_html__('View phone number for registrants.', 'event_espresso') . '</p>'; |
|
193 | - } |
|
194 | - |
|
195 | - protected function _att_address_stop() |
|
196 | - { |
|
197 | - return '<p>' . esc_html__('View address for registrants.', 'event_espresso') . '</p>'; |
|
198 | - } |
|
199 | - |
|
200 | - protected function _att_city_stop() |
|
201 | - { |
|
202 | - return '<p>' . esc_html__('View city for registrants.', 'event_espresso') . '</p>'; |
|
203 | - } |
|
204 | - |
|
205 | - protected function _sta_id_stop() |
|
206 | - { |
|
207 | - return '<p>' |
|
208 | - . esc_html__( |
|
209 | - 'View state/province for registrants. Can be sorted in ascending or descending order.', |
|
210 | - 'event_espresso' |
|
211 | - ) . '</p>'; |
|
212 | - } |
|
213 | - |
|
214 | - protected function _cnt_iso_stop() |
|
215 | - { |
|
216 | - return '<p>' |
|
217 | - . esc_html__( |
|
218 | - 'View country for registrants. Can be sorted in ascending or descending order.', |
|
219 | - 'event_espresso' |
|
220 | - ) . '</p>'; |
|
221 | - } |
|
222 | - |
|
223 | - protected function _bulkactions_stop() |
|
224 | - { |
|
225 | - return '<p>' . esc_html__('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>'; |
|
226 | - } |
|
227 | - |
|
228 | - protected function _search_stop() |
|
229 | - { |
|
230 | - return '<p>' |
|
231 | - . esc_html__( |
|
232 | - 'Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.', |
|
233 | - 'event_espresso' |
|
234 | - ) . '</p>'; |
|
235 | - } |
|
236 | - |
|
237 | - protected function _contact_list_csv_export_stop() |
|
238 | - { |
|
239 | - return '<p>' . esc_html__('Export your contact list to a CSV file.', 'event_espresso') . '</p>'; |
|
240 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = esc_html__('Contact List Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'contact-list-overview-joyride'; |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 15 => array( |
|
32 | + 'id' => 'ATT_ID', |
|
33 | + 'content' => $this->_attendee_id_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentX' => -20, |
|
37 | + 'tipAdjustmentY' => -30, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 20 => array( |
|
41 | + 'id' => 'ATT_fname', |
|
42 | + 'content' => $this->_attendee_name_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentX' => 5, |
|
46 | + 'tipAdjustmentY' => -30, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 30 => array( |
|
50 | + 'id' => 'ATT_lname', |
|
51 | + 'content' => $this->_att_lname_stop(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentX' => 5, |
|
55 | + 'tipAdjustmentY' => -30, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 40 => array( |
|
59 | + 'id' => 'ATT_email', |
|
60 | + 'content' => $this->_att_email_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'top', |
|
63 | + 'tipAdjustmentX' => 10, |
|
64 | + 'tipAdjustmentY' => -30, |
|
65 | + ), |
|
66 | + ), |
|
67 | + 50 => array( |
|
68 | + 'id' => 'ATT_phone', |
|
69 | + 'content' => $this->_att_phone_stop(), |
|
70 | + 'options' => array( |
|
71 | + 'tipLocation' => 'top', |
|
72 | + 'tipAdjustmentX' => -5, |
|
73 | + 'tipAdjustmentY' => -30, |
|
74 | + ), |
|
75 | + ), |
|
76 | + 60 => array( |
|
77 | + 'id' => 'ATT_address', |
|
78 | + 'content' => $this->_att_address_stop(), |
|
79 | + 'options' => array( |
|
80 | + 'tipLocation' => 'top', |
|
81 | + 'tipAdjustmentX' => 0, |
|
82 | + 'tipAdjustmentY' => -30, |
|
83 | + ), |
|
84 | + ), |
|
85 | + 70 => array( |
|
86 | + 'id' => 'ATT_city', |
|
87 | + 'content' => $this->_att_city_stop(), |
|
88 | + 'options' => array( |
|
89 | + 'tipLocation' => 'left', |
|
90 | + 'tipAdjustmentX' => 0, |
|
91 | + 'tipAdjustmentY' => -50, |
|
92 | + ), |
|
93 | + ), |
|
94 | + 80 => array( |
|
95 | + 'id' => 'STA_ID', |
|
96 | + 'content' => $this->_sta_id_stop(), |
|
97 | + 'options' => array( |
|
98 | + 'tipLocation' => 'left', |
|
99 | + 'tipAdjustmentX' => 0, |
|
100 | + 'tipAdjustmentY' => -50, |
|
101 | + ), |
|
102 | + ), |
|
103 | + 90 => array( |
|
104 | + 'id' => 'CNT_ISO', |
|
105 | + 'content' => $this->_cnt_iso_stop(), |
|
106 | + 'options' => array( |
|
107 | + 'tipLocation' => 'left', |
|
108 | + 'tipAdjustmentX' => 0, |
|
109 | + 'tipAdjustmentY' => -50, |
|
110 | + ), |
|
111 | + ), |
|
112 | + 100 => array( |
|
113 | + 'class' => 'bulkactions', |
|
114 | + 'content' => $this->_bulkactions_stop(), |
|
115 | + 'options' => array( |
|
116 | + 'tipLocation' => 'bottom', |
|
117 | + 'tipAdjustmentY' => -30, |
|
118 | + 'tipAdjustmentX' => 15, |
|
119 | + ), |
|
120 | + ), |
|
121 | + 110 => array( |
|
122 | + 'id' => 'event-espresso_page_espresso_registrations-search-input', |
|
123 | + 'content' => $this->_search_stop(), |
|
124 | + 'options' => array( |
|
125 | + 'tipLocation' => 'left', |
|
126 | + 'tipAdjustmentY' => -50, |
|
127 | + 'tipAdjustmentX' => -15, |
|
128 | + ), |
|
129 | + ), |
|
130 | + 120 => array( |
|
131 | + 'id' => 'contact-list-csv-export', |
|
132 | + 'content' => $this->_contact_list_csv_export_stop(), |
|
133 | + 'options' => array( |
|
134 | + 'tipLocation' => 'right', |
|
135 | + 'tipAdjustmentY' => -50, |
|
136 | + 'tipAdjustmentX' => 25, |
|
137 | + ), |
|
138 | + ), |
|
139 | + ); |
|
140 | + } |
|
141 | + |
|
142 | + |
|
143 | + protected function _start() |
|
144 | + { |
|
145 | + $content = '<h3>' . esc_html__('Contact List', 'event_espresso') . '</h3>'; |
|
146 | + $content .= '<p>' |
|
147 | + . esc_html__( |
|
148 | + 'This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.', |
|
149 | + 'event_espresso' |
|
150 | + ) . '</p>'; |
|
151 | + return $content; |
|
152 | + } |
|
153 | + |
|
154 | + protected function _attendee_id_stop() |
|
155 | + { |
|
156 | + return '<p>' |
|
157 | + . esc_html__( |
|
158 | + 'View ID for registrants. Can be sorted in ascending or descending order.', |
|
159 | + 'event_espresso' |
|
160 | + ) . '</p>'; |
|
161 | + } |
|
162 | + |
|
163 | + protected function _attendee_name_stop() |
|
164 | + { |
|
165 | + return '<p>' |
|
166 | + . esc_html__( |
|
167 | + 'View first name for registrants. Can be sorted in ascending or descending order.', |
|
168 | + 'event_espresso' |
|
169 | + ) . '</p>'; |
|
170 | + } |
|
171 | + |
|
172 | + protected function _att_lname_stop() |
|
173 | + { |
|
174 | + return '<p>' |
|
175 | + . esc_html__( |
|
176 | + 'View last name for registrants. Can be sorted in ascending or descending order.', |
|
177 | + 'event_espresso' |
|
178 | + ) . '</p>'; |
|
179 | + } |
|
180 | + |
|
181 | + protected function _att_email_stop() |
|
182 | + { |
|
183 | + return '<p>' |
|
184 | + . esc_html__( |
|
185 | + 'View email address for registrants. Can be sorted in ascending or descending order.', |
|
186 | + 'event_espresso' |
|
187 | + ) . '</p>'; |
|
188 | + } |
|
189 | + |
|
190 | + protected function _att_phone_stop() |
|
191 | + { |
|
192 | + return '<p>' . esc_html__('View phone number for registrants.', 'event_espresso') . '</p>'; |
|
193 | + } |
|
194 | + |
|
195 | + protected function _att_address_stop() |
|
196 | + { |
|
197 | + return '<p>' . esc_html__('View address for registrants.', 'event_espresso') . '</p>'; |
|
198 | + } |
|
199 | + |
|
200 | + protected function _att_city_stop() |
|
201 | + { |
|
202 | + return '<p>' . esc_html__('View city for registrants.', 'event_espresso') . '</p>'; |
|
203 | + } |
|
204 | + |
|
205 | + protected function _sta_id_stop() |
|
206 | + { |
|
207 | + return '<p>' |
|
208 | + . esc_html__( |
|
209 | + 'View state/province for registrants. Can be sorted in ascending or descending order.', |
|
210 | + 'event_espresso' |
|
211 | + ) . '</p>'; |
|
212 | + } |
|
213 | + |
|
214 | + protected function _cnt_iso_stop() |
|
215 | + { |
|
216 | + return '<p>' |
|
217 | + . esc_html__( |
|
218 | + 'View country for registrants. Can be sorted in ascending or descending order.', |
|
219 | + 'event_espresso' |
|
220 | + ) . '</p>'; |
|
221 | + } |
|
222 | + |
|
223 | + protected function _bulkactions_stop() |
|
224 | + { |
|
225 | + return '<p>' . esc_html__('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>'; |
|
226 | + } |
|
227 | + |
|
228 | + protected function _search_stop() |
|
229 | + { |
|
230 | + return '<p>' |
|
231 | + . esc_html__( |
|
232 | + 'Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.', |
|
233 | + 'event_espresso' |
|
234 | + ) . '</p>'; |
|
235 | + } |
|
236 | + |
|
237 | + protected function _contact_list_csv_export_stop() |
|
238 | + { |
|
239 | + return '<p>' . esc_html__('Export your contact list to a CSV file.', 'event_espresso') . '</p>'; |
|
240 | + } |
|
241 | 241 | } |
@@ -142,12 +142,12 @@ discard block |
||
142 | 142 | |
143 | 143 | protected function _start() |
144 | 144 | { |
145 | - $content = '<h3>' . esc_html__('Contact List', 'event_espresso') . '</h3>'; |
|
145 | + $content = '<h3>'.esc_html__('Contact List', 'event_espresso').'</h3>'; |
|
146 | 146 | $content .= '<p>' |
147 | 147 | . esc_html__( |
148 | 148 | 'This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.', |
149 | 149 | 'event_espresso' |
150 | - ) . '</p>'; |
|
150 | + ).'</p>'; |
|
151 | 151 | return $content; |
152 | 152 | } |
153 | 153 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | . esc_html__( |
158 | 158 | 'View ID for registrants. Can be sorted in ascending or descending order.', |
159 | 159 | 'event_espresso' |
160 | - ) . '</p>'; |
|
160 | + ).'</p>'; |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | protected function _attendee_name_stop() |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | . esc_html__( |
167 | 167 | 'View first name for registrants. Can be sorted in ascending or descending order.', |
168 | 168 | 'event_espresso' |
169 | - ) . '</p>'; |
|
169 | + ).'</p>'; |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | protected function _att_lname_stop() |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | . esc_html__( |
176 | 176 | 'View last name for registrants. Can be sorted in ascending or descending order.', |
177 | 177 | 'event_espresso' |
178 | - ) . '</p>'; |
|
178 | + ).'</p>'; |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | protected function _att_email_stop() |
@@ -184,22 +184,22 @@ discard block |
||
184 | 184 | . esc_html__( |
185 | 185 | 'View email address for registrants. Can be sorted in ascending or descending order.', |
186 | 186 | 'event_espresso' |
187 | - ) . '</p>'; |
|
187 | + ).'</p>'; |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | protected function _att_phone_stop() |
191 | 191 | { |
192 | - return '<p>' . esc_html__('View phone number for registrants.', 'event_espresso') . '</p>'; |
|
192 | + return '<p>'.esc_html__('View phone number for registrants.', 'event_espresso').'</p>'; |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | protected function _att_address_stop() |
196 | 196 | { |
197 | - return '<p>' . esc_html__('View address for registrants.', 'event_espresso') . '</p>'; |
|
197 | + return '<p>'.esc_html__('View address for registrants.', 'event_espresso').'</p>'; |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | protected function _att_city_stop() |
201 | 201 | { |
202 | - return '<p>' . esc_html__('View city for registrants.', 'event_espresso') . '</p>'; |
|
202 | + return '<p>'.esc_html__('View city for registrants.', 'event_espresso').'</p>'; |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | protected function _sta_id_stop() |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | . esc_html__( |
209 | 209 | 'View state/province for registrants. Can be sorted in ascending or descending order.', |
210 | 210 | 'event_espresso' |
211 | - ) . '</p>'; |
|
211 | + ).'</p>'; |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | protected function _cnt_iso_stop() |
@@ -217,12 +217,12 @@ discard block |
||
217 | 217 | . esc_html__( |
218 | 218 | 'View country for registrants. Can be sorted in ascending or descending order.', |
219 | 219 | 'event_espresso' |
220 | - ) . '</p>'; |
|
220 | + ).'</p>'; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | protected function _bulkactions_stop() |
224 | 224 | { |
225 | - return '<p>' . esc_html__('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>'; |
|
225 | + return '<p>'.esc_html__('Perform a bulk action to multiple registrants.', 'event_espresso').'</p>'; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | protected function _search_stop() |
@@ -231,11 +231,11 @@ discard block |
||
231 | 231 | . esc_html__( |
232 | 232 | 'Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.', |
233 | 233 | 'event_espresso' |
234 | - ) . '</p>'; |
|
234 | + ).'</p>'; |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | protected function _contact_list_csv_export_stop() |
238 | 238 | { |
239 | - return '<p>' . esc_html__('Export your contact list to a CSV file.', 'event_espresso') . '</p>'; |
|
239 | + return '<p>'.esc_html__('Export your contact list to a CSV file.', 'event_espresso').'</p>'; |
|
240 | 240 | } |
241 | 241 | } |
@@ -15,123 +15,123 @@ |
||
15 | 15 | class Registration_View_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - public function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = esc_html__('Registration View Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'registration-view-joyride'; |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'reg-admin-reg-details-reg-date-hdr', |
|
33 | - 'content' => $this->_reg_date_title(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentY' => -40, |
|
37 | - 'tipAdjustmentX' => 200, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'reg-admin-reg-details-reg-status-hdr', |
|
42 | - 'content' => $this->_reg_details_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentY' => -50, |
|
46 | - 'tipAdjustmentX' => 300, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'admin-primary-mbox-reg-session-info-tbl', |
|
51 | - 'content' => $this->_reg_details_table(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentY' => 50, |
|
55 | - 'tipAdjustmentX' => 300, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 50 => array( |
|
59 | - 'id' => 'display-additional-registration-session-info', |
|
60 | - 'content' => $this->_display_additional_info_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'top', |
|
63 | - 'tipAdjustmentY' => -30, |
|
64 | - 'tipAdjustmentX' => 0, |
|
65 | - ), |
|
66 | - ), |
|
67 | - 60 => array( |
|
68 | - 'id' => 'edit-reg-registrant-mbox', |
|
69 | - 'content' => $this->_attendee_details_stop(), |
|
70 | - 'options' => array( |
|
71 | - 'tipLocation' => 'left', |
|
72 | - 'tipAdjustmentY' => 0, |
|
73 | - ), |
|
74 | - ), |
|
75 | - 70 => array( |
|
76 | - 'id' => 'edit-reg-questions-mbox', |
|
77 | - 'content' => $this->_edit_reg_question_stop(), |
|
78 | - 'options' => array( |
|
79 | - 'tipLocation' => 'top', |
|
80 | - 'tipAdjustmentY' => 0, |
|
81 | - ), |
|
82 | - ), |
|
83 | - ); |
|
84 | - } |
|
85 | - |
|
86 | - |
|
87 | - protected function _start() |
|
88 | - { |
|
89 | - $content = '<h3>' . esc_html__('Welcome to the Registration Details page!', 'event_espresso') . '</h3>'; |
|
90 | - $content .= '<p>' . esc_html__('An introduction to the registration details page', 'event_espresso') . '</p>'; |
|
91 | - return $content; |
|
92 | - } |
|
93 | - |
|
94 | - |
|
95 | - protected function _reg_date_title() |
|
96 | - { |
|
97 | - return '<p>' . esc_html__('About the reg date', 'event_espresso') . '</p>'; |
|
98 | - } |
|
99 | - |
|
100 | - |
|
101 | - protected function _reg_details_stop() |
|
102 | - { |
|
103 | - return '<p>' |
|
104 | - . esc_html__( |
|
105 | - 'About the reg details area (pending, buttons they can push and what happens)', |
|
106 | - 'event_espresso' |
|
107 | - ) . '</p>'; |
|
108 | - } |
|
109 | - |
|
110 | - |
|
111 | - protected function _reg_details_table() |
|
112 | - { |
|
113 | - return '<p>' . esc_html__('about the registration details metabox', 'event_espresso') . '</p>'; |
|
114 | - } |
|
115 | - |
|
116 | - |
|
117 | - protected function _display_additional_info_stop() |
|
118 | - { |
|
119 | - return '<p>' . esc_html__('what happens when they click this link? What\'s it here for', 'event_espresso') . '</p>'; |
|
120 | - } |
|
121 | - |
|
122 | - |
|
123 | - protected function _attendee_details_stop() |
|
124 | - { |
|
125 | - return '<p>' . esc_html__('details on the registrant attached to this registration', 'event_espresso') . '</p>'; |
|
126 | - } |
|
127 | - |
|
128 | - |
|
129 | - protected function _edit_reg_question_stop() |
|
130 | - { |
|
131 | - return '<p>' |
|
132 | - . esc_html__( |
|
133 | - 'info about how they can edit the questions related to this registration here', |
|
134 | - 'event_espresso' |
|
135 | - ) . '</p>'; |
|
136 | - } |
|
18 | + public function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = esc_html__('Registration View Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'registration-view-joyride'; |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'reg-admin-reg-details-reg-date-hdr', |
|
33 | + 'content' => $this->_reg_date_title(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentY' => -40, |
|
37 | + 'tipAdjustmentX' => 200, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'reg-admin-reg-details-reg-status-hdr', |
|
42 | + 'content' => $this->_reg_details_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentY' => -50, |
|
46 | + 'tipAdjustmentX' => 300, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'admin-primary-mbox-reg-session-info-tbl', |
|
51 | + 'content' => $this->_reg_details_table(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentY' => 50, |
|
55 | + 'tipAdjustmentX' => 300, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 50 => array( |
|
59 | + 'id' => 'display-additional-registration-session-info', |
|
60 | + 'content' => $this->_display_additional_info_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'top', |
|
63 | + 'tipAdjustmentY' => -30, |
|
64 | + 'tipAdjustmentX' => 0, |
|
65 | + ), |
|
66 | + ), |
|
67 | + 60 => array( |
|
68 | + 'id' => 'edit-reg-registrant-mbox', |
|
69 | + 'content' => $this->_attendee_details_stop(), |
|
70 | + 'options' => array( |
|
71 | + 'tipLocation' => 'left', |
|
72 | + 'tipAdjustmentY' => 0, |
|
73 | + ), |
|
74 | + ), |
|
75 | + 70 => array( |
|
76 | + 'id' => 'edit-reg-questions-mbox', |
|
77 | + 'content' => $this->_edit_reg_question_stop(), |
|
78 | + 'options' => array( |
|
79 | + 'tipLocation' => 'top', |
|
80 | + 'tipAdjustmentY' => 0, |
|
81 | + ), |
|
82 | + ), |
|
83 | + ); |
|
84 | + } |
|
85 | + |
|
86 | + |
|
87 | + protected function _start() |
|
88 | + { |
|
89 | + $content = '<h3>' . esc_html__('Welcome to the Registration Details page!', 'event_espresso') . '</h3>'; |
|
90 | + $content .= '<p>' . esc_html__('An introduction to the registration details page', 'event_espresso') . '</p>'; |
|
91 | + return $content; |
|
92 | + } |
|
93 | + |
|
94 | + |
|
95 | + protected function _reg_date_title() |
|
96 | + { |
|
97 | + return '<p>' . esc_html__('About the reg date', 'event_espresso') . '</p>'; |
|
98 | + } |
|
99 | + |
|
100 | + |
|
101 | + protected function _reg_details_stop() |
|
102 | + { |
|
103 | + return '<p>' |
|
104 | + . esc_html__( |
|
105 | + 'About the reg details area (pending, buttons they can push and what happens)', |
|
106 | + 'event_espresso' |
|
107 | + ) . '</p>'; |
|
108 | + } |
|
109 | + |
|
110 | + |
|
111 | + protected function _reg_details_table() |
|
112 | + { |
|
113 | + return '<p>' . esc_html__('about the registration details metabox', 'event_espresso') . '</p>'; |
|
114 | + } |
|
115 | + |
|
116 | + |
|
117 | + protected function _display_additional_info_stop() |
|
118 | + { |
|
119 | + return '<p>' . esc_html__('what happens when they click this link? What\'s it here for', 'event_espresso') . '</p>'; |
|
120 | + } |
|
121 | + |
|
122 | + |
|
123 | + protected function _attendee_details_stop() |
|
124 | + { |
|
125 | + return '<p>' . esc_html__('details on the registrant attached to this registration', 'event_espresso') . '</p>'; |
|
126 | + } |
|
127 | + |
|
128 | + |
|
129 | + protected function _edit_reg_question_stop() |
|
130 | + { |
|
131 | + return '<p>' |
|
132 | + . esc_html__( |
|
133 | + 'info about how they can edit the questions related to this registration here', |
|
134 | + 'event_espresso' |
|
135 | + ) . '</p>'; |
|
136 | + } |
|
137 | 137 | } |
@@ -86,15 +86,15 @@ discard block |
||
86 | 86 | |
87 | 87 | protected function _start() |
88 | 88 | { |
89 | - $content = '<h3>' . esc_html__('Welcome to the Registration Details page!', 'event_espresso') . '</h3>'; |
|
90 | - $content .= '<p>' . esc_html__('An introduction to the registration details page', 'event_espresso') . '</p>'; |
|
89 | + $content = '<h3>'.esc_html__('Welcome to the Registration Details page!', 'event_espresso').'</h3>'; |
|
90 | + $content .= '<p>'.esc_html__('An introduction to the registration details page', 'event_espresso').'</p>'; |
|
91 | 91 | return $content; |
92 | 92 | } |
93 | 93 | |
94 | 94 | |
95 | 95 | protected function _reg_date_title() |
96 | 96 | { |
97 | - return '<p>' . esc_html__('About the reg date', 'event_espresso') . '</p>'; |
|
97 | + return '<p>'.esc_html__('About the reg date', 'event_espresso').'</p>'; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | |
@@ -104,25 +104,25 @@ discard block |
||
104 | 104 | . esc_html__( |
105 | 105 | 'About the reg details area (pending, buttons they can push and what happens)', |
106 | 106 | 'event_espresso' |
107 | - ) . '</p>'; |
|
107 | + ).'</p>'; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | |
111 | 111 | protected function _reg_details_table() |
112 | 112 | { |
113 | - return '<p>' . esc_html__('about the registration details metabox', 'event_espresso') . '</p>'; |
|
113 | + return '<p>'.esc_html__('about the registration details metabox', 'event_espresso').'</p>'; |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | |
117 | 117 | protected function _display_additional_info_stop() |
118 | 118 | { |
119 | - return '<p>' . esc_html__('what happens when they click this link? What\'s it here for', 'event_espresso') . '</p>'; |
|
119 | + return '<p>'.esc_html__('what happens when they click this link? What\'s it here for', 'event_espresso').'</p>'; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | |
123 | 123 | protected function _attendee_details_stop() |
124 | 124 | { |
125 | - return '<p>' . esc_html__('details on the registrant attached to this registration', 'event_espresso') . '</p>'; |
|
125 | + return '<p>'.esc_html__('details on the registrant attached to this registration', 'event_espresso').'</p>'; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | |
@@ -132,6 +132,6 @@ discard block |
||
132 | 132 | . esc_html__( |
133 | 133 | 'info about how they can edit the questions related to this registration here', |
134 | 134 | 'event_espresso' |
135 | - ) . '</p>'; |
|
135 | + ).'</p>'; |
|
136 | 136 | } |
137 | 137 | } |
@@ -15,275 +15,275 @@ |
||
15 | 15 | class Registration_Overview_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = esc_html__('Registrations Overview Tour', 'event_espresso'); |
|
21 | - if (isset($this->_req_data['event_id'])) { |
|
22 | - $this->_slug = 'registration-per-event-overview-joyride'; |
|
23 | - } else { |
|
24 | - $this->_slug = 'registration-overview-joyride'; |
|
25 | - } |
|
26 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = esc_html__('Registrations Overview Tour', 'event_espresso'); |
|
21 | + if (isset($this->_req_data['event_id'])) { |
|
22 | + $this->_slug = 'registration-per-event-overview-joyride'; |
|
23 | + } else { |
|
24 | + $this->_slug = 'registration-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_ID', |
|
37 | - 'content' => $this->_reg_id_stop(), |
|
38 | - 'options' => array( |
|
39 | - 'tipLocation' => 'top', |
|
40 | - 'tipAdjustmentX' => -20, |
|
41 | - 'tipAdjustmentY' => -30, |
|
42 | - ), |
|
43 | - ), |
|
44 | - 30 => array( |
|
45 | - 'id' => '_REG_count', |
|
46 | - 'content' => $this->_reg_count_stop(), |
|
47 | - 'options' => array( |
|
48 | - 'tipLocation' => 'top', |
|
49 | - 'tipAdjustmentX' => -5, |
|
50 | - 'tipAdjustmentY' => -30, |
|
51 | - ), |
|
52 | - ), |
|
53 | - 40 => array( |
|
54 | - 'id' => 'ATT_fname', |
|
55 | - 'content' => $this->_attendee_name_stop(), |
|
56 | - 'options' => array( |
|
57 | - 'tipLocation' => 'top', |
|
58 | - 'tipAdjustmentX' => -5, |
|
59 | - 'tipAdjustmentY' => -30, |
|
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' => -30, |
|
69 | - ), |
|
70 | - ), |
|
71 | - 60 => array( |
|
72 | - 'id' => 'event_name', |
|
73 | - 'content' => $this->_event_name_stop(), |
|
74 | - 'options' => array( |
|
75 | - 'tipLocation' => 'top', |
|
76 | - 'tipAdjustmentX' => -5, |
|
77 | - 'tipAdjustmentY' => -30, |
|
78 | - ), |
|
79 | - ), |
|
80 | - 70 => array( |
|
81 | - 'id' => 'DTT_EVT_start', |
|
82 | - 'content' => $this->_dtt_evt_start_stop(), |
|
83 | - 'options' => array( |
|
84 | - 'tipLocation' => 'top', |
|
85 | - 'tipAdjustmentX' => 5, |
|
86 | - 'tipAdjustmentY' => -30, |
|
87 | - ), |
|
88 | - ), |
|
89 | - 80 => array( |
|
90 | - 'id' => '_REG_code', |
|
91 | - 'content' => $this->_reg_code_stop(), |
|
92 | - 'options' => array( |
|
93 | - 'tipLocation' => 'top', |
|
94 | - 'tipAdjustmentX' => 0, |
|
95 | - 'tipAdjustmentY' => -30, |
|
96 | - ), |
|
97 | - ), |
|
98 | - 90 => array( |
|
99 | - 'id' => '_REG_final_price', |
|
100 | - 'content' => $this->_txn_total_stop(), |
|
101 | - 'options' => array( |
|
102 | - 'tipLocation' => 'left', |
|
103 | - 'tipAdjustmentX' => 5, |
|
104 | - 'tipAdjustmentY' => -50, |
|
105 | - ), |
|
106 | - ), |
|
107 | - 100 => array( |
|
108 | - 'id' => 'actions', |
|
109 | - 'content' => $this->_actions_stop(), |
|
110 | - 'options' => array( |
|
111 | - 'tipLocation' => 'left', |
|
112 | - 'tipAdjustmentX' => 0, |
|
113 | - 'tipAdjustmentY' => -50, |
|
114 | - ), |
|
115 | - ), |
|
116 | - 110 => array( |
|
117 | - 'class' => 'ee-list-table-legend-container', |
|
118 | - 'content' => $this->_legend_stop(), |
|
119 | - 'options' => array( |
|
120 | - 'tipLocation' => 'right', |
|
121 | - 'tipAdjustmentX' => 15, |
|
122 | - 'tipAdjustmentY' => -40, |
|
123 | - ), |
|
124 | - ), |
|
125 | - 120 => array( |
|
126 | - 'class' => 'subsubsub', |
|
127 | - 'content' => $this->_views_stop(), |
|
128 | - 'options' => array( |
|
129 | - 'tipLocation' => 'right', |
|
130 | - 'tipAdjustmentY' => -50, |
|
131 | - 'tipAdjustmentX' => 15, |
|
132 | - ), |
|
133 | - ), |
|
134 | - 130 => array( |
|
135 | - 'class' => 'bulkactions', |
|
136 | - 'content' => $this->_bulkactions_stop(), |
|
137 | - 'options' => array( |
|
138 | - 'tipLocation' => 'bottom', |
|
139 | - 'tipAdjustmentY' => -30, |
|
140 | - 'tipAdjustmentX' => 15, |
|
141 | - ), |
|
142 | - ), |
|
143 | - 140 => array( |
|
144 | - 'id' => 'EVT_CAT', |
|
145 | - 'content' => $this->_stop_about_filters(), |
|
146 | - 'options' => array( |
|
147 | - 'tipLocation' => 'top', |
|
148 | - 'tipAdjustmentY' => -40, |
|
149 | - 'tipAdjustmentX' => 25, |
|
150 | - ), |
|
151 | - ), |
|
152 | - 150 => array( |
|
153 | - 'id' => 'event-espresso_page_espresso_registrations-search-input', |
|
154 | - 'content' => $this->_search_stop(), |
|
155 | - 'options' => array( |
|
156 | - 'tipLocation' => 'left', |
|
157 | - 'tipAdjustmentY' => -50, |
|
158 | - 'tipAdjustmentX' => -15, |
|
159 | - ), |
|
160 | - ), |
|
161 | - ); |
|
162 | - } |
|
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_ID', |
|
37 | + 'content' => $this->_reg_id_stop(), |
|
38 | + 'options' => array( |
|
39 | + 'tipLocation' => 'top', |
|
40 | + 'tipAdjustmentX' => -20, |
|
41 | + 'tipAdjustmentY' => -30, |
|
42 | + ), |
|
43 | + ), |
|
44 | + 30 => array( |
|
45 | + 'id' => '_REG_count', |
|
46 | + 'content' => $this->_reg_count_stop(), |
|
47 | + 'options' => array( |
|
48 | + 'tipLocation' => 'top', |
|
49 | + 'tipAdjustmentX' => -5, |
|
50 | + 'tipAdjustmentY' => -30, |
|
51 | + ), |
|
52 | + ), |
|
53 | + 40 => array( |
|
54 | + 'id' => 'ATT_fname', |
|
55 | + 'content' => $this->_attendee_name_stop(), |
|
56 | + 'options' => array( |
|
57 | + 'tipLocation' => 'top', |
|
58 | + 'tipAdjustmentX' => -5, |
|
59 | + 'tipAdjustmentY' => -30, |
|
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' => -30, |
|
69 | + ), |
|
70 | + ), |
|
71 | + 60 => array( |
|
72 | + 'id' => 'event_name', |
|
73 | + 'content' => $this->_event_name_stop(), |
|
74 | + 'options' => array( |
|
75 | + 'tipLocation' => 'top', |
|
76 | + 'tipAdjustmentX' => -5, |
|
77 | + 'tipAdjustmentY' => -30, |
|
78 | + ), |
|
79 | + ), |
|
80 | + 70 => array( |
|
81 | + 'id' => 'DTT_EVT_start', |
|
82 | + 'content' => $this->_dtt_evt_start_stop(), |
|
83 | + 'options' => array( |
|
84 | + 'tipLocation' => 'top', |
|
85 | + 'tipAdjustmentX' => 5, |
|
86 | + 'tipAdjustmentY' => -30, |
|
87 | + ), |
|
88 | + ), |
|
89 | + 80 => array( |
|
90 | + 'id' => '_REG_code', |
|
91 | + 'content' => $this->_reg_code_stop(), |
|
92 | + 'options' => array( |
|
93 | + 'tipLocation' => 'top', |
|
94 | + 'tipAdjustmentX' => 0, |
|
95 | + 'tipAdjustmentY' => -30, |
|
96 | + ), |
|
97 | + ), |
|
98 | + 90 => array( |
|
99 | + 'id' => '_REG_final_price', |
|
100 | + 'content' => $this->_txn_total_stop(), |
|
101 | + 'options' => array( |
|
102 | + 'tipLocation' => 'left', |
|
103 | + 'tipAdjustmentX' => 5, |
|
104 | + 'tipAdjustmentY' => -50, |
|
105 | + ), |
|
106 | + ), |
|
107 | + 100 => array( |
|
108 | + 'id' => 'actions', |
|
109 | + 'content' => $this->_actions_stop(), |
|
110 | + 'options' => array( |
|
111 | + 'tipLocation' => 'left', |
|
112 | + 'tipAdjustmentX' => 0, |
|
113 | + 'tipAdjustmentY' => -50, |
|
114 | + ), |
|
115 | + ), |
|
116 | + 110 => array( |
|
117 | + 'class' => 'ee-list-table-legend-container', |
|
118 | + 'content' => $this->_legend_stop(), |
|
119 | + 'options' => array( |
|
120 | + 'tipLocation' => 'right', |
|
121 | + 'tipAdjustmentX' => 15, |
|
122 | + 'tipAdjustmentY' => -40, |
|
123 | + ), |
|
124 | + ), |
|
125 | + 120 => array( |
|
126 | + 'class' => 'subsubsub', |
|
127 | + 'content' => $this->_views_stop(), |
|
128 | + 'options' => array( |
|
129 | + 'tipLocation' => 'right', |
|
130 | + 'tipAdjustmentY' => -50, |
|
131 | + 'tipAdjustmentX' => 15, |
|
132 | + ), |
|
133 | + ), |
|
134 | + 130 => array( |
|
135 | + 'class' => 'bulkactions', |
|
136 | + 'content' => $this->_bulkactions_stop(), |
|
137 | + 'options' => array( |
|
138 | + 'tipLocation' => 'bottom', |
|
139 | + 'tipAdjustmentY' => -30, |
|
140 | + 'tipAdjustmentX' => 15, |
|
141 | + ), |
|
142 | + ), |
|
143 | + 140 => array( |
|
144 | + 'id' => 'EVT_CAT', |
|
145 | + 'content' => $this->_stop_about_filters(), |
|
146 | + 'options' => array( |
|
147 | + 'tipLocation' => 'top', |
|
148 | + 'tipAdjustmentY' => -40, |
|
149 | + 'tipAdjustmentX' => 25, |
|
150 | + ), |
|
151 | + ), |
|
152 | + 150 => array( |
|
153 | + 'id' => 'event-espresso_page_espresso_registrations-search-input', |
|
154 | + 'content' => $this->_search_stop(), |
|
155 | + 'options' => array( |
|
156 | + 'tipLocation' => 'left', |
|
157 | + 'tipAdjustmentY' => -50, |
|
158 | + 'tipAdjustmentX' => -15, |
|
159 | + ), |
|
160 | + ), |
|
161 | + ); |
|
162 | + } |
|
163 | 163 | |
164 | 164 | |
165 | - protected function _start() |
|
166 | - { |
|
167 | - $content = '<h3>' . esc_html__('Registration Overview', 'event_espresso') . '</h3>'; |
|
168 | - if (isset($this->_req_data['event_id'])) { |
|
169 | - $content .= '<p>' |
|
170 | - . esc_html__( |
|
171 | - 'An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event. There are also some changes to the available columns in this view.', |
|
172 | - 'event_espresso' |
|
173 | - ) . '</p>'; |
|
174 | - } else { |
|
175 | - $content .= '<p>' |
|
176 | - . esc_html__( |
|
177 | - 'This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.', |
|
178 | - 'event_espresso' |
|
179 | - ) . '</p>'; |
|
180 | - } |
|
181 | - return $content; |
|
182 | - } |
|
165 | + protected function _start() |
|
166 | + { |
|
167 | + $content = '<h3>' . esc_html__('Registration Overview', 'event_espresso') . '</h3>'; |
|
168 | + if (isset($this->_req_data['event_id'])) { |
|
169 | + $content .= '<p>' |
|
170 | + . esc_html__( |
|
171 | + 'An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event. There are also some changes to the available columns in this view.', |
|
172 | + 'event_espresso' |
|
173 | + ) . '</p>'; |
|
174 | + } else { |
|
175 | + $content .= '<p>' |
|
176 | + . esc_html__( |
|
177 | + 'This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.', |
|
178 | + 'event_espresso' |
|
179 | + ) . '</p>'; |
|
180 | + } |
|
181 | + return $content; |
|
182 | + } |
|
183 | 183 | |
184 | - protected function _reg_id_stop() |
|
185 | - { |
|
186 | - return '<p>' |
|
187 | - . esc_html__( |
|
188 | - 'View the registration ID. Can be sorted in ascending or descending order.', |
|
189 | - 'event_espresso' |
|
190 | - ) . '</p>'; |
|
191 | - } |
|
184 | + protected function _reg_id_stop() |
|
185 | + { |
|
186 | + return '<p>' |
|
187 | + . esc_html__( |
|
188 | + 'View the registration ID. Can be sorted in ascending or descending order.', |
|
189 | + 'event_espresso' |
|
190 | + ) . '</p>'; |
|
191 | + } |
|
192 | 192 | |
193 | - protected function _reg_count_stop() |
|
194 | - { |
|
195 | - return '<p>' . esc_html__('View registration number.', 'event_espresso') . '</p>'; |
|
196 | - } |
|
193 | + protected function _reg_count_stop() |
|
194 | + { |
|
195 | + return '<p>' . esc_html__('View registration number.', 'event_espresso') . '</p>'; |
|
196 | + } |
|
197 | 197 | |
198 | - protected function _attendee_name_stop() |
|
199 | - { |
|
200 | - return '<p>' |
|
201 | - . esc_html__( |
|
202 | - 'View the name of the 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 | + . esc_html__( |
|
202 | + 'View the name of the registrant. Can be sorted in ascending or descending order.', |
|
203 | + 'event_espresso' |
|
204 | + ) . '</p>'; |
|
205 | + } |
|
206 | 206 | |
207 | - protected function _reg_date_stop() |
|
208 | - { |
|
209 | - return '<p>' |
|
210 | - . esc_html__( |
|
211 | - 'View registration date. Can be sorted in ascending or descending order.', |
|
212 | - 'event_espresso' |
|
213 | - ) . '</p>'; |
|
214 | - } |
|
207 | + protected function _reg_date_stop() |
|
208 | + { |
|
209 | + return '<p>' |
|
210 | + . esc_html__( |
|
211 | + 'View registration date. Can be sorted in ascending or descending order.', |
|
212 | + 'event_espresso' |
|
213 | + ) . '</p>'; |
|
214 | + } |
|
215 | 215 | |
216 | - protected function _event_name_stop() |
|
217 | - { |
|
218 | - return '<p>' |
|
219 | - . esc_html__( |
|
220 | - 'View the name of the event. Can be sorted in ascending or descending order.', |
|
221 | - 'event_espresso' |
|
222 | - ) . '</p>'; |
|
223 | - } |
|
216 | + protected function _event_name_stop() |
|
217 | + { |
|
218 | + return '<p>' |
|
219 | + . esc_html__( |
|
220 | + 'View the name of the event. Can be sorted in ascending or descending order.', |
|
221 | + 'event_espresso' |
|
222 | + ) . '</p>'; |
|
223 | + } |
|
224 | 224 | |
225 | - protected function _dtt_evt_start_stop() |
|
226 | - { |
|
227 | - return '<p>' |
|
228 | - . esc_html__( |
|
229 | - 'View the date of the event. Can be sorted in ascending or descending order.', |
|
230 | - 'event_espresso' |
|
231 | - ) . '</p>'; |
|
232 | - } |
|
225 | + protected function _dtt_evt_start_stop() |
|
226 | + { |
|
227 | + return '<p>' |
|
228 | + . esc_html__( |
|
229 | + 'View the date of the event. Can be sorted in ascending or descending order.', |
|
230 | + 'event_espresso' |
|
231 | + ) . '</p>'; |
|
232 | + } |
|
233 | 233 | |
234 | - protected function _reg_code_stop() |
|
235 | - { |
|
236 | - return '<p>' . esc_html__('View registration code for a registrant.', 'event_espresso') . '</p>'; |
|
237 | - } |
|
234 | + protected function _reg_code_stop() |
|
235 | + { |
|
236 | + return '<p>' . esc_html__('View registration code for a registrant.', 'event_espresso') . '</p>'; |
|
237 | + } |
|
238 | 238 | |
239 | - protected function _txn_total_stop() |
|
240 | - { |
|
241 | - return '<p>' . esc_html__('View price of registration.', 'event_espresso') . '</p>'; |
|
242 | - } |
|
239 | + protected function _txn_total_stop() |
|
240 | + { |
|
241 | + return '<p>' . esc_html__('View price of registration.', 'event_espresso') . '</p>'; |
|
242 | + } |
|
243 | 243 | |
244 | - protected function _actions_stop() |
|
245 | - { |
|
246 | - return '<p>' |
|
247 | - . esc_html__( |
|
248 | - 'Perform an action to a registration. See legend in bottom left corner.', |
|
249 | - 'event_espresso' |
|
250 | - ) . '</p>'; |
|
251 | - } |
|
244 | + protected function _actions_stop() |
|
245 | + { |
|
246 | + return '<p>' |
|
247 | + . esc_html__( |
|
248 | + 'Perform an action to a registration. See legend in bottom left corner.', |
|
249 | + 'event_espresso' |
|
250 | + ) . '</p>'; |
|
251 | + } |
|
252 | 252 | |
253 | - protected function _legend_stop() |
|
254 | - { |
|
255 | - return '<p>' |
|
256 | - . esc_html__( |
|
257 | - 'This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.', |
|
258 | - 'event_espresso' |
|
259 | - ) . '</p>'; |
|
260 | - } |
|
253 | + protected function _legend_stop() |
|
254 | + { |
|
255 | + return '<p>' |
|
256 | + . esc_html__( |
|
257 | + 'This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.', |
|
258 | + 'event_espresso' |
|
259 | + ) . '</p>'; |
|
260 | + } |
|
261 | 261 | |
262 | - protected function _views_stop() |
|
263 | - { |
|
264 | - return '<p>' |
|
265 | - . esc_html__( |
|
266 | - 'You can select different views by time period or look at registrations which have been moved to the trash.', |
|
267 | - 'event_espresso' |
|
268 | - ) . '</p>'; |
|
269 | - } |
|
262 | + protected function _views_stop() |
|
263 | + { |
|
264 | + return '<p>' |
|
265 | + . esc_html__( |
|
266 | + 'You can select different views by time period or look at registrations which have been moved to the trash.', |
|
267 | + 'event_espresso' |
|
268 | + ) . '</p>'; |
|
269 | + } |
|
270 | 270 | |
271 | - protected function _bulkactions_stop() |
|
272 | - { |
|
273 | - return '<p>' . esc_html__('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>'; |
|
274 | - } |
|
271 | + protected function _bulkactions_stop() |
|
272 | + { |
|
273 | + return '<p>' . esc_html__('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>'; |
|
274 | + } |
|
275 | 275 | |
276 | - protected function _stop_about_filters() |
|
277 | - { |
|
278 | - return '<p>' . esc_html__('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>'; |
|
279 | - } |
|
276 | + protected function _stop_about_filters() |
|
277 | + { |
|
278 | + return '<p>' . esc_html__('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>'; |
|
279 | + } |
|
280 | 280 | |
281 | - protected function _search_stop() |
|
282 | - { |
|
283 | - return '<p>' |
|
284 | - . esc_html__( |
|
285 | - '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.', |
|
286 | - 'event_espresso' |
|
287 | - ) . '</p>'; |
|
288 | - } |
|
281 | + protected function _search_stop() |
|
282 | + { |
|
283 | + return '<p>' |
|
284 | + . esc_html__( |
|
285 | + '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.', |
|
286 | + 'event_espresso' |
|
287 | + ) . '</p>'; |
|
288 | + } |
|
289 | 289 | } |
@@ -164,19 +164,19 @@ discard block |
||
164 | 164 | |
165 | 165 | protected function _start() |
166 | 166 | { |
167 | - $content = '<h3>' . esc_html__('Registration Overview', 'event_espresso') . '</h3>'; |
|
167 | + $content = '<h3>'.esc_html__('Registration Overview', 'event_espresso').'</h3>'; |
|
168 | 168 | if (isset($this->_req_data['event_id'])) { |
169 | 169 | $content .= '<p>' |
170 | 170 | . esc_html__( |
171 | 171 | 'An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event. There are also some changes to the available columns in this view.', |
172 | 172 | 'event_espresso' |
173 | - ) . '</p>'; |
|
173 | + ).'</p>'; |
|
174 | 174 | } else { |
175 | 175 | $content .= '<p>' |
176 | 176 | . esc_html__( |
177 | 177 | 'This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.', |
178 | 178 | 'event_espresso' |
179 | - ) . '</p>'; |
|
179 | + ).'</p>'; |
|
180 | 180 | } |
181 | 181 | return $content; |
182 | 182 | } |
@@ -187,12 +187,12 @@ discard block |
||
187 | 187 | . esc_html__( |
188 | 188 | 'View the registration ID. Can be sorted in ascending or descending order.', |
189 | 189 | 'event_espresso' |
190 | - ) . '</p>'; |
|
190 | + ).'</p>'; |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | protected function _reg_count_stop() |
194 | 194 | { |
195 | - return '<p>' . esc_html__('View registration number.', 'event_espresso') . '</p>'; |
|
195 | + return '<p>'.esc_html__('View registration number.', 'event_espresso').'</p>'; |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | protected function _attendee_name_stop() |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | . esc_html__( |
202 | 202 | 'View the name of the 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 _reg_date_stop() |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | . esc_html__( |
211 | 211 | 'View registration date. Can be sorted in ascending or descending order.', |
212 | 212 | 'event_espresso' |
213 | - ) . '</p>'; |
|
213 | + ).'</p>'; |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | protected function _event_name_stop() |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | . esc_html__( |
220 | 220 | 'View the name of the event. Can be sorted in ascending or descending order.', |
221 | 221 | 'event_espresso' |
222 | - ) . '</p>'; |
|
222 | + ).'</p>'; |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | protected function _dtt_evt_start_stop() |
@@ -228,17 +228,17 @@ discard block |
||
228 | 228 | . esc_html__( |
229 | 229 | 'View the date of the event. Can be sorted in ascending or descending order.', |
230 | 230 | 'event_espresso' |
231 | - ) . '</p>'; |
|
231 | + ).'</p>'; |
|
232 | 232 | } |
233 | 233 | |
234 | 234 | protected function _reg_code_stop() |
235 | 235 | { |
236 | - return '<p>' . esc_html__('View registration code for a registrant.', 'event_espresso') . '</p>'; |
|
236 | + return '<p>'.esc_html__('View registration code for a registrant.', 'event_espresso').'</p>'; |
|
237 | 237 | } |
238 | 238 | |
239 | 239 | protected function _txn_total_stop() |
240 | 240 | { |
241 | - return '<p>' . esc_html__('View price of registration.', 'event_espresso') . '</p>'; |
|
241 | + return '<p>'.esc_html__('View price of registration.', 'event_espresso').'</p>'; |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | protected function _actions_stop() |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | . esc_html__( |
248 | 248 | 'Perform an action to a registration. See legend in bottom left corner.', |
249 | 249 | 'event_espresso' |
250 | - ) . '</p>'; |
|
250 | + ).'</p>'; |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | protected function _legend_stop() |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | . esc_html__( |
257 | 257 | 'This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.', |
258 | 258 | 'event_espresso' |
259 | - ) . '</p>'; |
|
259 | + ).'</p>'; |
|
260 | 260 | } |
261 | 261 | |
262 | 262 | protected function _views_stop() |
@@ -265,17 +265,17 @@ discard block |
||
265 | 265 | . esc_html__( |
266 | 266 | 'You can select different views by time period or look at registrations which have been moved to the trash.', |
267 | 267 | 'event_espresso' |
268 | - ) . '</p>'; |
|
268 | + ).'</p>'; |
|
269 | 269 | } |
270 | 270 | |
271 | 271 | protected function _bulkactions_stop() |
272 | 272 | { |
273 | - return '<p>' . esc_html__('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>'; |
|
273 | + return '<p>'.esc_html__('Perform a bulk action to multiple registrations.', 'event_espresso').'</p>'; |
|
274 | 274 | } |
275 | 275 | |
276 | 276 | protected function _stop_about_filters() |
277 | 277 | { |
278 | - return '<p>' . esc_html__('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>'; |
|
278 | + return '<p>'.esc_html__('Registrations can be filtered by date, categories, or status.', 'event_espresso').'</p>'; |
|
279 | 279 | } |
280 | 280 | |
281 | 281 | protected function _search_stop() |
@@ -284,6 +284,6 @@ discard block |
||
284 | 284 | . esc_html__( |
285 | 285 | '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.', |
286 | 286 | 'event_espresso' |
287 | - ) . '</p>'; |
|
287 | + ).'</p>'; |
|
288 | 288 | } |
289 | 289 | } |
@@ -15,127 +15,127 @@ |
||
15 | 15 | class Registration_Details_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = esc_html__('Registration Details Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'registration-view-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = esc_html__('Registration Details Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'registration-view-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'reg-admin-reg-details-reg-date-hdr', |
|
33 | - 'content' => $this->_reg_date_title(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentY' => -40, |
|
37 | - 'tipAdjustmentX' => 200, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'reg-admin-reg-details-reg-status-hdr', |
|
42 | - 'content' => $this->_reg_details_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentY' => -40, |
|
46 | - 'tipAdjustmentX' => 200, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'display-additional-registration-session-info', |
|
51 | - 'content' => $this->_reg_details_table(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentY' => -225, |
|
55 | - 'tipAdjustmentX' => 50, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 50 => array( |
|
59 | - 'id' => 'display-additional-registration-session-info', |
|
60 | - 'content' => $this->_display_additional_info_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'top', |
|
63 | - 'tipAdjustmentY' => -35, |
|
64 | - 'tipAdjustmentX' => 45, |
|
65 | - ), |
|
66 | - ), |
|
67 | - 60 => array( |
|
68 | - 'id' => 'edit-reg-questions-mbox', |
|
69 | - 'content' => $this->_edit_reg_question_stop(), |
|
70 | - 'options' => array( |
|
71 | - 'tipLocation' => 'top', |
|
72 | - 'tipAdjustmentY' => -30, |
|
73 | - 'tipAdjustmentX' => 75, |
|
74 | - ), |
|
75 | - ), |
|
76 | - 70 => array( |
|
77 | - 'id' => 'edit-reg-registrant-mbox', |
|
78 | - 'content' => $this->_attendee_details_stop(), |
|
79 | - 'options' => array( |
|
80 | - 'tipLocation' => 'left', |
|
81 | - 'tipAdjustmentY' => 0, |
|
82 | - 'tipAdjustmentX' => 0, |
|
83 | - ), |
|
84 | - ), |
|
85 | - ); |
|
86 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'reg-admin-reg-details-reg-date-hdr', |
|
33 | + 'content' => $this->_reg_date_title(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentY' => -40, |
|
37 | + 'tipAdjustmentX' => 200, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'reg-admin-reg-details-reg-status-hdr', |
|
42 | + 'content' => $this->_reg_details_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentY' => -40, |
|
46 | + 'tipAdjustmentX' => 200, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'display-additional-registration-session-info', |
|
51 | + 'content' => $this->_reg_details_table(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentY' => -225, |
|
55 | + 'tipAdjustmentX' => 50, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 50 => array( |
|
59 | + 'id' => 'display-additional-registration-session-info', |
|
60 | + 'content' => $this->_display_additional_info_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'top', |
|
63 | + 'tipAdjustmentY' => -35, |
|
64 | + 'tipAdjustmentX' => 45, |
|
65 | + ), |
|
66 | + ), |
|
67 | + 60 => array( |
|
68 | + 'id' => 'edit-reg-questions-mbox', |
|
69 | + 'content' => $this->_edit_reg_question_stop(), |
|
70 | + 'options' => array( |
|
71 | + 'tipLocation' => 'top', |
|
72 | + 'tipAdjustmentY' => -30, |
|
73 | + 'tipAdjustmentX' => 75, |
|
74 | + ), |
|
75 | + ), |
|
76 | + 70 => array( |
|
77 | + 'id' => 'edit-reg-registrant-mbox', |
|
78 | + 'content' => $this->_attendee_details_stop(), |
|
79 | + 'options' => array( |
|
80 | + 'tipLocation' => 'left', |
|
81 | + 'tipAdjustmentY' => 0, |
|
82 | + 'tipAdjustmentX' => 0, |
|
83 | + ), |
|
84 | + ), |
|
85 | + ); |
|
86 | + } |
|
87 | 87 | |
88 | 88 | |
89 | - protected function _start() |
|
90 | - { |
|
91 | - $content = '<h3>' . esc_html__('Registration Details', 'event_espresso') . '</h3>'; |
|
92 | - $content .= '<p>' |
|
93 | - . esc_html__( |
|
94 | - 'This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | - 'event_espresso' |
|
96 | - ) . '</p>'; |
|
97 | - return $content; |
|
98 | - } |
|
89 | + protected function _start() |
|
90 | + { |
|
91 | + $content = '<h3>' . esc_html__('Registration Details', 'event_espresso') . '</h3>'; |
|
92 | + $content .= '<p>' |
|
93 | + . esc_html__( |
|
94 | + 'This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | + 'event_espresso' |
|
96 | + ) . '</p>'; |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _reg_date_title() |
|
101 | - { |
|
102 | - return '<p>' . esc_html__('This is the date that the registration occurred on.', 'event_espresso') . '</p>'; |
|
103 | - } |
|
100 | + protected function _reg_date_title() |
|
101 | + { |
|
102 | + return '<p>' . esc_html__('This is the date that the registration occurred on.', 'event_espresso') . '</p>'; |
|
103 | + } |
|
104 | 104 | |
105 | - protected function _reg_details_stop() |
|
106 | - { |
|
107 | - return '<p>' |
|
108 | - . esc_html__( |
|
109 | - 'The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.', |
|
110 | - 'event_espresso' |
|
111 | - ) . '</p>'; |
|
112 | - } |
|
105 | + protected function _reg_details_stop() |
|
106 | + { |
|
107 | + return '<p>' |
|
108 | + . esc_html__( |
|
109 | + 'The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.', |
|
110 | + 'event_espresso' |
|
111 | + ) . '</p>'; |
|
112 | + } |
|
113 | 113 | |
114 | - protected function _reg_details_table() |
|
115 | - { |
|
116 | - return '<p>' |
|
117 | - . esc_html__( |
|
118 | - 'The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.', |
|
119 | - 'event_espresso' |
|
120 | - ) . '</p>'; |
|
121 | - } |
|
114 | + protected function _reg_details_table() |
|
115 | + { |
|
116 | + return '<p>' |
|
117 | + . esc_html__( |
|
118 | + 'The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.', |
|
119 | + 'event_espresso' |
|
120 | + ) . '</p>'; |
|
121 | + } |
|
122 | 122 | |
123 | - protected function _display_additional_info_stop() |
|
124 | - { |
|
125 | - return '<p>' |
|
126 | - . esc_html__( |
|
127 | - 'You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.', |
|
128 | - 'event_espresso' |
|
129 | - ) . '</p>'; |
|
130 | - } |
|
123 | + protected function _display_additional_info_stop() |
|
124 | + { |
|
125 | + return '<p>' |
|
126 | + . esc_html__( |
|
127 | + 'You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.', |
|
128 | + 'event_espresso' |
|
129 | + ) . '</p>'; |
|
130 | + } |
|
131 | 131 | |
132 | - protected function _edit_reg_question_stop() |
|
133 | - { |
|
134 | - return '<p>' . esc_html__('View the answers to your custom questions below.', 'event_espresso') . '</p>'; |
|
135 | - } |
|
132 | + protected function _edit_reg_question_stop() |
|
133 | + { |
|
134 | + return '<p>' . esc_html__('View the answers to your custom questions below.', 'event_espresso') . '</p>'; |
|
135 | + } |
|
136 | 136 | |
137 | - protected function _attendee_details_stop() |
|
138 | - { |
|
139 | - return '<p>' . esc_html__('View details on the registrant attached to this registration.', 'event_espresso') . '</p>'; |
|
140 | - } |
|
137 | + protected function _attendee_details_stop() |
|
138 | + { |
|
139 | + return '<p>' . esc_html__('View details on the registrant attached to this registration.', 'event_espresso') . '</p>'; |
|
140 | + } |
|
141 | 141 | } |
@@ -88,18 +88,18 @@ discard block |
||
88 | 88 | |
89 | 89 | protected function _start() |
90 | 90 | { |
91 | - $content = '<h3>' . esc_html__('Registration Details', 'event_espresso') . '</h3>'; |
|
91 | + $content = '<h3>'.esc_html__('Registration Details', 'event_espresso').'</h3>'; |
|
92 | 92 | $content .= '<p>' |
93 | 93 | . esc_html__( |
94 | 94 | 'This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.', |
95 | 95 | 'event_espresso' |
96 | - ) . '</p>'; |
|
96 | + ).'</p>'; |
|
97 | 97 | return $content; |
98 | 98 | } |
99 | 99 | |
100 | 100 | protected function _reg_date_title() |
101 | 101 | { |
102 | - return '<p>' . esc_html__('This is the date that the registration occurred on.', 'event_espresso') . '</p>'; |
|
102 | + return '<p>'.esc_html__('This is the date that the registration occurred on.', 'event_espresso').'</p>'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | protected function _reg_details_stop() |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | . esc_html__( |
109 | 109 | 'The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.', |
110 | 110 | 'event_espresso' |
111 | - ) . '</p>'; |
|
111 | + ).'</p>'; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | protected function _reg_details_table() |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | . esc_html__( |
118 | 118 | 'The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.', |
119 | 119 | 'event_espresso' |
120 | - ) . '</p>'; |
|
120 | + ).'</p>'; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | protected function _display_additional_info_stop() |
@@ -126,16 +126,16 @@ discard block |
||
126 | 126 | . esc_html__( |
127 | 127 | 'You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.', |
128 | 128 | 'event_espresso' |
129 | - ) . '</p>'; |
|
129 | + ).'</p>'; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | protected function _edit_reg_question_stop() |
133 | 133 | { |
134 | - return '<p>' . esc_html__('View the answers to your custom questions below.', 'event_espresso') . '</p>'; |
|
134 | + return '<p>'.esc_html__('View the answers to your custom questions below.', 'event_espresso').'</p>'; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | protected function _attendee_details_stop() |
138 | 138 | { |
139 | - return '<p>' . esc_html__('View details on the registrant attached to this registration.', 'event_espresso') . '</p>'; |
|
139 | + return '<p>'.esc_html__('View details on the registrant attached to this registration.', 'event_espresso').'</p>'; |
|
140 | 140 | } |
141 | 141 | } |