@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @access public |
114 | 114 | * @param string $SQL the JOIN clause for the comment feed query |
115 | - * @return void |
|
115 | + * @return string |
|
116 | 116 | */ |
117 | 117 | public static function comment_feed_join($SQL) |
118 | 118 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * |
134 | 134 | * @access public |
135 | 135 | * @param string $SQL the WHERE clause for the comment feed query |
136 | - * @return void |
|
136 | + * @return string |
|
137 | 137 | */ |
138 | 138 | public static function comment_feed_where($SQL) |
139 | 139 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * |
151 | 151 | * @access public |
152 | 152 | * @param string $content |
153 | - * @return void |
|
153 | + * @return string |
|
154 | 154 | */ |
155 | 155 | public static function the_event_feed($content) |
156 | 156 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * |
192 | 192 | * @access public |
193 | 193 | * @param string $content |
194 | - * @return void |
|
194 | + * @return string |
|
195 | 195 | */ |
196 | 196 | public static function the_venue_feed($content) |
197 | 197 | { |
@@ -12,217 +12,217 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * @return EED_Feeds |
|
17 | - */ |
|
18 | - public static function instance() |
|
19 | - { |
|
20 | - return parent::get_instance(__CLASS__); |
|
21 | - } |
|
22 | - |
|
23 | - |
|
24 | - /** |
|
25 | - * set_hooks - for hooking into EE Core, other modules, etc |
|
26 | - * |
|
27 | - * @access public |
|
28 | - * @return void |
|
29 | - */ |
|
30 | - public static function set_hooks() |
|
31 | - { |
|
32 | - add_action('parse_request', array('EED_Feeds', 'parse_request'), 10); |
|
33 | - add_filter('default_feed', array('EED_Feeds', 'default_feed'), 10, 1); |
|
34 | - add_filter('comment_feed_join', array('EED_Feeds', 'comment_feed_join'), 10, 2); |
|
35 | - add_filter('comment_feed_where', array('EED_Feeds', 'comment_feed_where'), 10, 2); |
|
36 | - } |
|
37 | - |
|
38 | - /** |
|
39 | - * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
40 | - * |
|
41 | - * @access public |
|
42 | - * @return void |
|
43 | - */ |
|
44 | - public static function set_hooks_admin() |
|
45 | - { |
|
46 | - } |
|
47 | - |
|
48 | - |
|
49 | - /** |
|
50 | - * run - initial module setup |
|
51 | - * |
|
52 | - * @access public |
|
53 | - * @return void |
|
54 | - */ |
|
55 | - public function run($WP) |
|
56 | - { |
|
57 | - } |
|
58 | - |
|
59 | - |
|
60 | - /** |
|
61 | - * default_feed |
|
62 | - * |
|
63 | - * @access public |
|
64 | - * @param type rss2, atom, rss, rdf, rssjs |
|
65 | - * @return string |
|
66 | - */ |
|
67 | - public static function default_feed($type = 'rss2') |
|
68 | - { |
|
69 | - // rss2, atom, rss, rdf, rssjs |
|
70 | - $type = 'rss2'; |
|
71 | - return $type; |
|
72 | - } |
|
73 | - |
|
74 | - |
|
75 | - /** |
|
76 | - * parse_request |
|
77 | - * |
|
78 | - * @access public |
|
79 | - * @return void |
|
80 | - */ |
|
81 | - public static function parse_request() |
|
82 | - { |
|
83 | - if (EE_Registry::instance()->REQ->is_set('post_type')) { |
|
84 | - // define path to templates |
|
85 | - define('RSS_FEEDS_TEMPLATES_PATH', str_replace('\\', DS, plugin_dir_path(__FILE__)) . 'templates' . DS); |
|
86 | - // what kinda post_type are we dealing with ? |
|
87 | - switch (EE_Registry::instance()->REQ->get('post_type')) { |
|
88 | - case 'espresso_events': |
|
89 | - // for rss2, atom, rss, rdf |
|
90 | - add_filter('the_excerpt_rss', array('EED_Feeds', 'the_event_feed'), 10, 1); |
|
91 | - add_filter('the_content_feed', array('EED_Feeds', 'the_event_feed'), 10, 1); |
|
92 | - // for json ( also uses the above filter ) |
|
93 | - add_filter('rssjs_feed_item', array('EED_Feeds', 'the_event_rssjs_feed'), 10, 1); |
|
94 | - break; |
|
95 | - case 'espresso_venues': |
|
96 | - // for rss2, atom, rss, rdf |
|
97 | - add_filter('the_excerpt_rss', array('EED_Feeds', 'the_venue_feed'), 10, 1); |
|
98 | - add_filter('the_content_feed', array('EED_Feeds', 'the_venue_feed'), 10, 1); |
|
99 | - // for json ( also uses the above filter ) |
|
100 | - add_filter('rssjs_feed_item', array('EED_Feeds', 'the_venue_rssjs_feed'), 10, 1); |
|
101 | - break; |
|
102 | - } |
|
103 | - } |
|
104 | - } |
|
105 | - |
|
106 | - |
|
107 | - /** |
|
108 | - * comment_feed_join - EVEN THOUGH... our espresso_attendees custom post type is set to NOT PUBLIC |
|
109 | - * WordPress thought it would be a good idea to display the comments for them in the RSS feeds... we think NOT |
|
110 | - * so this little snippet of SQL taps into the comment feed query and removes comments for the |
|
111 | - * espresso_attendees post_type |
|
112 | - * |
|
113 | - * @access public |
|
114 | - * @param string $SQL the JOIN clause for the comment feed query |
|
115 | - * @return void |
|
116 | - */ |
|
117 | - public static function comment_feed_join($SQL) |
|
118 | - { |
|
119 | - global $wpdb; |
|
120 | - // check for wp_posts table in JOIN clause |
|
121 | - if (strpos($SQL, $wpdb->posts) !== false) { |
|
122 | - add_filter('EED_Feeds__comment_feed_where__espresso_attendees', '__return_true'); |
|
123 | - } |
|
124 | - return $SQL; |
|
125 | - } |
|
126 | - |
|
127 | - |
|
128 | - /** |
|
129 | - * comment_feed_where - EVEN THOUGH... our espresso_attendees custom post type is set to NOT PUBLIC |
|
130 | - * WordPress thought it would be a good idea to display the comments for them in the RSS feeds... we think NOT |
|
131 | - * so this little snippet of SQL taps into the comment feed query and removes comments for the |
|
132 | - * espresso_attendees post_type |
|
133 | - * |
|
134 | - * @access public |
|
135 | - * @param string $SQL the WHERE clause for the comment feed query |
|
136 | - * @return void |
|
137 | - */ |
|
138 | - public static function comment_feed_where($SQL) |
|
139 | - { |
|
140 | - global $wp_query, $wpdb; |
|
141 | - if ($wp_query->is_comment_feed && apply_filters('EED_Feeds__comment_feed_where__espresso_attendees', false)) { |
|
142 | - $SQL .= " AND $wpdb->posts.post_type != 'espresso_attendees'"; |
|
143 | - } |
|
144 | - return $SQL; |
|
145 | - } |
|
146 | - |
|
147 | - |
|
148 | - /** |
|
149 | - * the_event_feed |
|
150 | - * |
|
151 | - * @access public |
|
152 | - * @param string $content |
|
153 | - * @return void |
|
154 | - */ |
|
155 | - public static function the_event_feed($content) |
|
156 | - { |
|
157 | - if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH . 'espresso_events_feed.template.php')) { |
|
158 | - global $post; |
|
159 | - $template_args = array( |
|
160 | - 'EVT_ID' => $post->ID, |
|
161 | - 'event_description' => get_option('rss_use_excerpt') ? $post->post_excerpt : $post->post_content, |
|
162 | - ); |
|
163 | - $content = EEH_Template::display_template( |
|
164 | - RSS_FEEDS_TEMPLATES_PATH . 'espresso_events_feed.template.php', |
|
165 | - $template_args, |
|
166 | - true |
|
167 | - ); |
|
168 | - } |
|
169 | - return $content; |
|
170 | - } |
|
171 | - |
|
172 | - |
|
173 | - /** |
|
174 | - * the_event_rssjs_feed |
|
175 | - * |
|
176 | - * @access public |
|
177 | - * @param object $item |
|
178 | - * @return void |
|
179 | - */ |
|
180 | - public static function the_event_rssjs_feed($item) |
|
181 | - { |
|
182 | - if (is_feed() && isset($item->description)) { |
|
183 | - $item->description = EED_Feeds::the_event_feed($item->description); |
|
184 | - } |
|
185 | - return $item; |
|
186 | - } |
|
187 | - |
|
188 | - |
|
189 | - /** |
|
190 | - * the_venue_feed |
|
191 | - * |
|
192 | - * @access public |
|
193 | - * @param string $content |
|
194 | - * @return void |
|
195 | - */ |
|
196 | - public static function the_venue_feed($content) |
|
197 | - { |
|
198 | - if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH . 'espresso_venues_feed.template.php')) { |
|
199 | - global $post; |
|
200 | - $template_args = array( |
|
201 | - 'VNU_ID' => $post->ID, |
|
202 | - 'venue_description' => get_option('rss_use_excerpt') ? $post->post_excerpt : $post->post_content, |
|
203 | - ); |
|
204 | - $content = EEH_Template::display_template( |
|
205 | - RSS_FEEDS_TEMPLATES_PATH . 'espresso_venues_feed.template.php', |
|
206 | - $template_args, |
|
207 | - true |
|
208 | - ); |
|
209 | - } |
|
210 | - return $content; |
|
211 | - } |
|
212 | - |
|
213 | - |
|
214 | - /** |
|
215 | - * the_venue_rssjs_feed |
|
216 | - * |
|
217 | - * @access public |
|
218 | - * @param object $item |
|
219 | - * @return void |
|
220 | - */ |
|
221 | - public static function the_venue_rssjs_feed($item) |
|
222 | - { |
|
223 | - if (is_feed() && isset($item->description)) { |
|
224 | - $item->description = EED_Feeds::the_venue_feed($item->description); |
|
225 | - } |
|
226 | - return $item; |
|
227 | - } |
|
15 | + /** |
|
16 | + * @return EED_Feeds |
|
17 | + */ |
|
18 | + public static function instance() |
|
19 | + { |
|
20 | + return parent::get_instance(__CLASS__); |
|
21 | + } |
|
22 | + |
|
23 | + |
|
24 | + /** |
|
25 | + * set_hooks - for hooking into EE Core, other modules, etc |
|
26 | + * |
|
27 | + * @access public |
|
28 | + * @return void |
|
29 | + */ |
|
30 | + public static function set_hooks() |
|
31 | + { |
|
32 | + add_action('parse_request', array('EED_Feeds', 'parse_request'), 10); |
|
33 | + add_filter('default_feed', array('EED_Feeds', 'default_feed'), 10, 1); |
|
34 | + add_filter('comment_feed_join', array('EED_Feeds', 'comment_feed_join'), 10, 2); |
|
35 | + add_filter('comment_feed_where', array('EED_Feeds', 'comment_feed_where'), 10, 2); |
|
36 | + } |
|
37 | + |
|
38 | + /** |
|
39 | + * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
40 | + * |
|
41 | + * @access public |
|
42 | + * @return void |
|
43 | + */ |
|
44 | + public static function set_hooks_admin() |
|
45 | + { |
|
46 | + } |
|
47 | + |
|
48 | + |
|
49 | + /** |
|
50 | + * run - initial module setup |
|
51 | + * |
|
52 | + * @access public |
|
53 | + * @return void |
|
54 | + */ |
|
55 | + public function run($WP) |
|
56 | + { |
|
57 | + } |
|
58 | + |
|
59 | + |
|
60 | + /** |
|
61 | + * default_feed |
|
62 | + * |
|
63 | + * @access public |
|
64 | + * @param type rss2, atom, rss, rdf, rssjs |
|
65 | + * @return string |
|
66 | + */ |
|
67 | + public static function default_feed($type = 'rss2') |
|
68 | + { |
|
69 | + // rss2, atom, rss, rdf, rssjs |
|
70 | + $type = 'rss2'; |
|
71 | + return $type; |
|
72 | + } |
|
73 | + |
|
74 | + |
|
75 | + /** |
|
76 | + * parse_request |
|
77 | + * |
|
78 | + * @access public |
|
79 | + * @return void |
|
80 | + */ |
|
81 | + public static function parse_request() |
|
82 | + { |
|
83 | + if (EE_Registry::instance()->REQ->is_set('post_type')) { |
|
84 | + // define path to templates |
|
85 | + define('RSS_FEEDS_TEMPLATES_PATH', str_replace('\\', DS, plugin_dir_path(__FILE__)) . 'templates' . DS); |
|
86 | + // what kinda post_type are we dealing with ? |
|
87 | + switch (EE_Registry::instance()->REQ->get('post_type')) { |
|
88 | + case 'espresso_events': |
|
89 | + // for rss2, atom, rss, rdf |
|
90 | + add_filter('the_excerpt_rss', array('EED_Feeds', 'the_event_feed'), 10, 1); |
|
91 | + add_filter('the_content_feed', array('EED_Feeds', 'the_event_feed'), 10, 1); |
|
92 | + // for json ( also uses the above filter ) |
|
93 | + add_filter('rssjs_feed_item', array('EED_Feeds', 'the_event_rssjs_feed'), 10, 1); |
|
94 | + break; |
|
95 | + case 'espresso_venues': |
|
96 | + // for rss2, atom, rss, rdf |
|
97 | + add_filter('the_excerpt_rss', array('EED_Feeds', 'the_venue_feed'), 10, 1); |
|
98 | + add_filter('the_content_feed', array('EED_Feeds', 'the_venue_feed'), 10, 1); |
|
99 | + // for json ( also uses the above filter ) |
|
100 | + add_filter('rssjs_feed_item', array('EED_Feeds', 'the_venue_rssjs_feed'), 10, 1); |
|
101 | + break; |
|
102 | + } |
|
103 | + } |
|
104 | + } |
|
105 | + |
|
106 | + |
|
107 | + /** |
|
108 | + * comment_feed_join - EVEN THOUGH... our espresso_attendees custom post type is set to NOT PUBLIC |
|
109 | + * WordPress thought it would be a good idea to display the comments for them in the RSS feeds... we think NOT |
|
110 | + * so this little snippet of SQL taps into the comment feed query and removes comments for the |
|
111 | + * espresso_attendees post_type |
|
112 | + * |
|
113 | + * @access public |
|
114 | + * @param string $SQL the JOIN clause for the comment feed query |
|
115 | + * @return void |
|
116 | + */ |
|
117 | + public static function comment_feed_join($SQL) |
|
118 | + { |
|
119 | + global $wpdb; |
|
120 | + // check for wp_posts table in JOIN clause |
|
121 | + if (strpos($SQL, $wpdb->posts) !== false) { |
|
122 | + add_filter('EED_Feeds__comment_feed_where__espresso_attendees', '__return_true'); |
|
123 | + } |
|
124 | + return $SQL; |
|
125 | + } |
|
126 | + |
|
127 | + |
|
128 | + /** |
|
129 | + * comment_feed_where - EVEN THOUGH... our espresso_attendees custom post type is set to NOT PUBLIC |
|
130 | + * WordPress thought it would be a good idea to display the comments for them in the RSS feeds... we think NOT |
|
131 | + * so this little snippet of SQL taps into the comment feed query and removes comments for the |
|
132 | + * espresso_attendees post_type |
|
133 | + * |
|
134 | + * @access public |
|
135 | + * @param string $SQL the WHERE clause for the comment feed query |
|
136 | + * @return void |
|
137 | + */ |
|
138 | + public static function comment_feed_where($SQL) |
|
139 | + { |
|
140 | + global $wp_query, $wpdb; |
|
141 | + if ($wp_query->is_comment_feed && apply_filters('EED_Feeds__comment_feed_where__espresso_attendees', false)) { |
|
142 | + $SQL .= " AND $wpdb->posts.post_type != 'espresso_attendees'"; |
|
143 | + } |
|
144 | + return $SQL; |
|
145 | + } |
|
146 | + |
|
147 | + |
|
148 | + /** |
|
149 | + * the_event_feed |
|
150 | + * |
|
151 | + * @access public |
|
152 | + * @param string $content |
|
153 | + * @return void |
|
154 | + */ |
|
155 | + public static function the_event_feed($content) |
|
156 | + { |
|
157 | + if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH . 'espresso_events_feed.template.php')) { |
|
158 | + global $post; |
|
159 | + $template_args = array( |
|
160 | + 'EVT_ID' => $post->ID, |
|
161 | + 'event_description' => get_option('rss_use_excerpt') ? $post->post_excerpt : $post->post_content, |
|
162 | + ); |
|
163 | + $content = EEH_Template::display_template( |
|
164 | + RSS_FEEDS_TEMPLATES_PATH . 'espresso_events_feed.template.php', |
|
165 | + $template_args, |
|
166 | + true |
|
167 | + ); |
|
168 | + } |
|
169 | + return $content; |
|
170 | + } |
|
171 | + |
|
172 | + |
|
173 | + /** |
|
174 | + * the_event_rssjs_feed |
|
175 | + * |
|
176 | + * @access public |
|
177 | + * @param object $item |
|
178 | + * @return void |
|
179 | + */ |
|
180 | + public static function the_event_rssjs_feed($item) |
|
181 | + { |
|
182 | + if (is_feed() && isset($item->description)) { |
|
183 | + $item->description = EED_Feeds::the_event_feed($item->description); |
|
184 | + } |
|
185 | + return $item; |
|
186 | + } |
|
187 | + |
|
188 | + |
|
189 | + /** |
|
190 | + * the_venue_feed |
|
191 | + * |
|
192 | + * @access public |
|
193 | + * @param string $content |
|
194 | + * @return void |
|
195 | + */ |
|
196 | + public static function the_venue_feed($content) |
|
197 | + { |
|
198 | + if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH . 'espresso_venues_feed.template.php')) { |
|
199 | + global $post; |
|
200 | + $template_args = array( |
|
201 | + 'VNU_ID' => $post->ID, |
|
202 | + 'venue_description' => get_option('rss_use_excerpt') ? $post->post_excerpt : $post->post_content, |
|
203 | + ); |
|
204 | + $content = EEH_Template::display_template( |
|
205 | + RSS_FEEDS_TEMPLATES_PATH . 'espresso_venues_feed.template.php', |
|
206 | + $template_args, |
|
207 | + true |
|
208 | + ); |
|
209 | + } |
|
210 | + return $content; |
|
211 | + } |
|
212 | + |
|
213 | + |
|
214 | + /** |
|
215 | + * the_venue_rssjs_feed |
|
216 | + * |
|
217 | + * @access public |
|
218 | + * @param object $item |
|
219 | + * @return void |
|
220 | + */ |
|
221 | + public static function the_venue_rssjs_feed($item) |
|
222 | + { |
|
223 | + if (is_feed() && isset($item->description)) { |
|
224 | + $item->description = EED_Feeds::the_venue_feed($item->description); |
|
225 | + } |
|
226 | + return $item; |
|
227 | + } |
|
228 | 228 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | if (EE_Registry::instance()->REQ->is_set('post_type')) { |
84 | 84 | // define path to templates |
85 | - define('RSS_FEEDS_TEMPLATES_PATH', str_replace('\\', DS, plugin_dir_path(__FILE__)) . 'templates' . DS); |
|
85 | + define('RSS_FEEDS_TEMPLATES_PATH', str_replace('\\', DS, plugin_dir_path(__FILE__)).'templates'.DS); |
|
86 | 86 | // what kinda post_type are we dealing with ? |
87 | 87 | switch (EE_Registry::instance()->REQ->get('post_type')) { |
88 | 88 | case 'espresso_events': |
@@ -154,14 +154,14 @@ discard block |
||
154 | 154 | */ |
155 | 155 | public static function the_event_feed($content) |
156 | 156 | { |
157 | - if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH . 'espresso_events_feed.template.php')) { |
|
157 | + if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH.'espresso_events_feed.template.php')) { |
|
158 | 158 | global $post; |
159 | 159 | $template_args = array( |
160 | 160 | 'EVT_ID' => $post->ID, |
161 | 161 | 'event_description' => get_option('rss_use_excerpt') ? $post->post_excerpt : $post->post_content, |
162 | 162 | ); |
163 | 163 | $content = EEH_Template::display_template( |
164 | - RSS_FEEDS_TEMPLATES_PATH . 'espresso_events_feed.template.php', |
|
164 | + RSS_FEEDS_TEMPLATES_PATH.'espresso_events_feed.template.php', |
|
165 | 165 | $template_args, |
166 | 166 | true |
167 | 167 | ); |
@@ -195,14 +195,14 @@ discard block |
||
195 | 195 | */ |
196 | 196 | public static function the_venue_feed($content) |
197 | 197 | { |
198 | - if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH . 'espresso_venues_feed.template.php')) { |
|
198 | + if (is_feed() && is_readable(RSS_FEEDS_TEMPLATES_PATH.'espresso_venues_feed.template.php')) { |
|
199 | 199 | global $post; |
200 | 200 | $template_args = array( |
201 | 201 | 'VNU_ID' => $post->ID, |
202 | 202 | 'venue_description' => get_option('rss_use_excerpt') ? $post->post_excerpt : $post->post_content, |
203 | 203 | ); |
204 | 204 | $content = EEH_Template::display_template( |
205 | - RSS_FEEDS_TEMPLATES_PATH . 'espresso_venues_feed.template.php', |
|
205 | + RSS_FEEDS_TEMPLATES_PATH.'espresso_venues_feed.template.php', |
|
206 | 206 | $template_args, |
207 | 207 | true |
208 | 208 | ); |
@@ -16,36 +16,36 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - public function __construct() |
|
20 | - { |
|
21 | - // define some help/support page related constants |
|
22 | - define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
|
23 | - define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
24 | - define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
25 | - define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
26 | - define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
27 | - parent::__construct(); |
|
28 | - } |
|
19 | + public function __construct() |
|
20 | + { |
|
21 | + // define some help/support page related constants |
|
22 | + define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
|
23 | + define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
24 | + define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
25 | + define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
26 | + define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
27 | + parent::__construct(); |
|
28 | + } |
|
29 | 29 | |
30 | - protected function _set_init_properties() |
|
31 | - { |
|
32 | - $this->label = __('Help & Support', 'event_espresso'); |
|
33 | - } |
|
30 | + protected function _set_init_properties() |
|
31 | + { |
|
32 | + $this->label = __('Help & Support', 'event_espresso'); |
|
33 | + } |
|
34 | 34 | |
35 | - protected function _set_menu_map() |
|
36 | - { |
|
37 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
38 | - array( |
|
39 | - 'menu_group' => 'extras', |
|
40 | - 'menu_order' => 30, |
|
41 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
42 | - 'parent_slug' => 'espresso_events', |
|
43 | - 'menu_slug' => EE_SUPPORT_PG_SLUG, |
|
44 | - 'menu_label' => __('Help & Support', 'event_espresso'), |
|
45 | - 'capability' => 'ee_read_ee', |
|
46 | - 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
47 | - 'admin_init_page' => $this, |
|
48 | - ) |
|
49 | - ); |
|
50 | - } |
|
35 | + protected function _set_menu_map() |
|
36 | + { |
|
37 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
38 | + array( |
|
39 | + 'menu_group' => 'extras', |
|
40 | + 'menu_order' => 30, |
|
41 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
42 | + 'parent_slug' => 'espresso_events', |
|
43 | + 'menu_slug' => EE_SUPPORT_PG_SLUG, |
|
44 | + 'menu_label' => __('Help & Support', 'event_espresso'), |
|
45 | + 'capability' => 'ee_read_ee', |
|
46 | + 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
47 | + 'admin_init_page' => $this, |
|
48 | + ) |
|
49 | + ); |
|
50 | + } |
|
51 | 51 | } |
@@ -20,10 +20,10 @@ |
||
20 | 20 | { |
21 | 21 | // define some help/support page related constants |
22 | 22 | define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
23 | - define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
24 | - define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
25 | - define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
26 | - define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
23 | + define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page='.EE_SUPPORT_PG_SLUG)); |
|
24 | + define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'support/templates/'); |
|
25 | + define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES.'support/'); |
|
26 | + define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL.'support/assets/'); |
|
27 | 27 | parent::__construct(); |
28 | 28 | } |
29 | 29 |
@@ -13,242 +13,242 @@ |
||
13 | 13 | { |
14 | 14 | |
15 | 15 | |
16 | - protected function _init_page_props() |
|
17 | - { |
|
18 | - $this->page_slug = EE_SUPPORT_PG_SLUG; |
|
19 | - $this->page_label = esc_html__('Help & Support', 'event_espresso'); |
|
20 | - $this->_admin_base_url = EE_SUPPORT_ADMIN_URL; |
|
21 | - $this->_admin_base_path = EE_SUPPORT_ADMIN; |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - protected function _ajax_hooks() |
|
26 | - { |
|
27 | - } |
|
28 | - |
|
29 | - |
|
30 | - protected function _define_page_props() |
|
31 | - { |
|
32 | - $this->_labels = array(); |
|
33 | - $this->_admin_page_title = $this->page_label; |
|
34 | - } |
|
35 | - |
|
36 | - |
|
37 | - protected function _set_page_routes() |
|
38 | - { |
|
39 | - $this->_page_routes = array( |
|
40 | - 'default' => array( |
|
41 | - 'func' => '_contact_support', |
|
42 | - 'capability' => 'ee_read_ee', |
|
43 | - ), |
|
44 | - 'developers' => array( |
|
45 | - 'func' => '_developers', |
|
46 | - 'capability' => 'ee_read_ee', |
|
47 | - ), |
|
48 | - 'shortcodes' => array( |
|
49 | - 'func' => '_shortcodes', |
|
50 | - 'capability' => 'ee_read_ee', |
|
51 | - ), |
|
52 | - ); |
|
53 | - } |
|
54 | - |
|
55 | - |
|
56 | - protected function _set_page_config() |
|
57 | - { |
|
58 | - $this->_page_config = array( |
|
59 | - 'default' => array( |
|
60 | - 'nav' => array( |
|
61 | - 'label' => esc_html__('Support', 'event_espresso'), |
|
62 | - 'order' => 30, |
|
63 | - ), |
|
64 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_support_boxes')), |
|
65 | - 'require_nonce' => false, |
|
66 | - ), |
|
67 | - 'developers' => array( |
|
68 | - 'nav' => array( |
|
69 | - 'label' => esc_html__('Developers', 'event_espresso'), |
|
70 | - 'order' => 50, |
|
71 | - ), |
|
72 | - 'metaboxes' => $this->_default_espresso_metaboxes, |
|
73 | - 'require_nonce' => false, |
|
74 | - ), |
|
75 | - 'shortcodes' => array( |
|
76 | - 'nav' => array( |
|
77 | - 'label' => esc_html__('Shortcodes', 'event_espresso'), |
|
78 | - 'order' => 60, |
|
79 | - ), |
|
80 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_shortcodes_boxes')), |
|
81 | - 'require_nonce' => false, |
|
82 | - ), |
|
83 | - ); |
|
84 | - } |
|
85 | - |
|
86 | - |
|
87 | - // none of the below group are currently used for Support pages |
|
88 | - protected function _add_screen_options() |
|
89 | - { |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - protected function _add_feature_pointers() |
|
94 | - { |
|
95 | - } |
|
96 | - |
|
97 | - |
|
98 | - public function admin_init() |
|
99 | - { |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - public function admin_notices() |
|
104 | - { |
|
105 | - } |
|
106 | - |
|
107 | - |
|
108 | - public function admin_footer_scripts() |
|
109 | - { |
|
110 | - } |
|
111 | - |
|
112 | - |
|
113 | - public function load_scripts_styles() |
|
114 | - { |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - protected function _installation() |
|
119 | - { |
|
120 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php'; |
|
121 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
122 | - $template_path, |
|
123 | - '', |
|
124 | - true |
|
125 | - ); |
|
126 | - $this->display_admin_page_with_sidebar(); |
|
127 | - } |
|
128 | - |
|
129 | - |
|
130 | - protected function _resources() |
|
131 | - { |
|
132 | - $this->display_admin_page_with_sidebar(); |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - protected function _add_settings_metabox($box, $label, array $args) |
|
137 | - { |
|
138 | - add_meta_box( |
|
139 | - "espresso_{$box}_settings", |
|
140 | - $label, |
|
141 | - function ($post, $metabox) { |
|
142 | - echo EEH_Template::display_template( |
|
143 | - $metabox['args']['template_path'], |
|
144 | - $metabox['args']['template_args'], |
|
145 | - true |
|
146 | - ); |
|
147 | - }, |
|
148 | - $this->_current_screen->id, |
|
149 | - 'normal', |
|
150 | - 'high', |
|
151 | - apply_filters( |
|
152 | - "FHEE__Support_Admin_Page___add_settings_metabox__{$box}_args_array", |
|
153 | - $args |
|
154 | - ) |
|
155 | - ); |
|
156 | - } |
|
157 | - |
|
158 | - |
|
159 | - protected function _resources_boxes() |
|
160 | - { |
|
161 | - $boxes = apply_filters( |
|
162 | - 'FHEE__Support_Admin_Page___resources_boxes__boxes_array', |
|
163 | - array( |
|
164 | - 'favorite_theme_developers' => esc_html__('Favorite Theme Developers', 'event_espresso'), |
|
165 | - 'highly_recommended_themes' => esc_html__('Highly Recommended Themes', 'event_espresso'), |
|
166 | - 'hire_developer' => esc_html__('Hire a Developer', 'event_espresso'), |
|
167 | - 'partners' => esc_html__('Partners', 'event_espresso'), |
|
168 | - 'recommended_plugins' => esc_html__('Recommended Plugins', 'event_espresso'), |
|
169 | - 'other_resources' => esc_html__('Other Resources', 'event_espresso'), |
|
170 | - ) |
|
171 | - ); |
|
172 | - foreach ($boxes as $box => $label) { |
|
173 | - $this->_add_settings_metabox( |
|
174 | - $box, |
|
175 | - $label, |
|
176 | - array( |
|
177 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
178 | - 'template_args' => $this->_template_args, |
|
179 | - ) |
|
180 | - ); |
|
181 | - } |
|
182 | - } |
|
183 | - |
|
184 | - |
|
185 | - protected function _shortcodes() |
|
186 | - { |
|
187 | - $this->display_admin_page_with_sidebar(); |
|
188 | - } |
|
189 | - |
|
190 | - |
|
191 | - protected function _shortcodes_boxes() |
|
192 | - { |
|
193 | - $boxes = apply_filters( |
|
194 | - 'FHEE__Support_Admin_Page___shortcodes_boxes__boxes_array', |
|
195 | - array( |
|
196 | - 'shortcodes_event_listings' => esc_html__('Event Listings', 'event_espresso'), |
|
197 | - 'shortcodes_ticket_selector' => esc_html__('Event Ticket Selector', 'event_espresso'), |
|
198 | - 'shortcodes_category' => esc_html__('Event Categories', 'event_espresso'), |
|
199 | - 'shortcodes_attendee' => esc_html__('Event Attendees', 'event_espresso') |
|
200 | - /*'shortcodes_single_events' => esc_html__('Single Events', 'event_espresso'),*/ |
|
201 | - /*'shortcodes_attendee_listings' => esc_html__('Attendee Listings', 'event_espresso'),*/ |
|
202 | - ) |
|
203 | - ); |
|
204 | - foreach ($boxes as $box => $label) { |
|
205 | - $this->_add_settings_metabox( |
|
206 | - $box, |
|
207 | - $label, |
|
208 | - array( |
|
209 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
210 | - 'template_args' => $this->_template_args, |
|
211 | - ) |
|
212 | - ); |
|
213 | - } |
|
214 | - } |
|
215 | - |
|
216 | - |
|
217 | - protected function _contact_support() |
|
218 | - { |
|
219 | - $this->display_admin_page_with_sidebar(); |
|
220 | - } |
|
221 | - |
|
222 | - |
|
223 | - protected function _support_boxes() |
|
224 | - { |
|
225 | - $boxes = apply_filters( |
|
226 | - 'FHEE__Support_Admin_Page___support_boxes__boxes_array', |
|
227 | - array( |
|
228 | - 'contact_support' => esc_html__('Contact Support', 'event_espresso'), |
|
229 | - 'important_information' => esc_html__('Important Information', 'event_espresso'), |
|
230 | - ) |
|
231 | - ); |
|
232 | - foreach ($boxes as $box => $label) { |
|
233 | - $this->_add_settings_metabox( |
|
234 | - $box, |
|
235 | - $label, |
|
236 | - array( |
|
237 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
238 | - 'template_args' => $this->_template_args, |
|
239 | - ) |
|
240 | - ); |
|
241 | - } |
|
242 | - } |
|
243 | - |
|
244 | - |
|
245 | - protected function _developers() |
|
246 | - { |
|
247 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
248 | - EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php', |
|
249 | - array(), |
|
250 | - true |
|
251 | - ); |
|
252 | - $this->display_admin_page_with_sidebar(); |
|
253 | - } |
|
16 | + protected function _init_page_props() |
|
17 | + { |
|
18 | + $this->page_slug = EE_SUPPORT_PG_SLUG; |
|
19 | + $this->page_label = esc_html__('Help & Support', 'event_espresso'); |
|
20 | + $this->_admin_base_url = EE_SUPPORT_ADMIN_URL; |
|
21 | + $this->_admin_base_path = EE_SUPPORT_ADMIN; |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + protected function _ajax_hooks() |
|
26 | + { |
|
27 | + } |
|
28 | + |
|
29 | + |
|
30 | + protected function _define_page_props() |
|
31 | + { |
|
32 | + $this->_labels = array(); |
|
33 | + $this->_admin_page_title = $this->page_label; |
|
34 | + } |
|
35 | + |
|
36 | + |
|
37 | + protected function _set_page_routes() |
|
38 | + { |
|
39 | + $this->_page_routes = array( |
|
40 | + 'default' => array( |
|
41 | + 'func' => '_contact_support', |
|
42 | + 'capability' => 'ee_read_ee', |
|
43 | + ), |
|
44 | + 'developers' => array( |
|
45 | + 'func' => '_developers', |
|
46 | + 'capability' => 'ee_read_ee', |
|
47 | + ), |
|
48 | + 'shortcodes' => array( |
|
49 | + 'func' => '_shortcodes', |
|
50 | + 'capability' => 'ee_read_ee', |
|
51 | + ), |
|
52 | + ); |
|
53 | + } |
|
54 | + |
|
55 | + |
|
56 | + protected function _set_page_config() |
|
57 | + { |
|
58 | + $this->_page_config = array( |
|
59 | + 'default' => array( |
|
60 | + 'nav' => array( |
|
61 | + 'label' => esc_html__('Support', 'event_espresso'), |
|
62 | + 'order' => 30, |
|
63 | + ), |
|
64 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_support_boxes')), |
|
65 | + 'require_nonce' => false, |
|
66 | + ), |
|
67 | + 'developers' => array( |
|
68 | + 'nav' => array( |
|
69 | + 'label' => esc_html__('Developers', 'event_espresso'), |
|
70 | + 'order' => 50, |
|
71 | + ), |
|
72 | + 'metaboxes' => $this->_default_espresso_metaboxes, |
|
73 | + 'require_nonce' => false, |
|
74 | + ), |
|
75 | + 'shortcodes' => array( |
|
76 | + 'nav' => array( |
|
77 | + 'label' => esc_html__('Shortcodes', 'event_espresso'), |
|
78 | + 'order' => 60, |
|
79 | + ), |
|
80 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_shortcodes_boxes')), |
|
81 | + 'require_nonce' => false, |
|
82 | + ), |
|
83 | + ); |
|
84 | + } |
|
85 | + |
|
86 | + |
|
87 | + // none of the below group are currently used for Support pages |
|
88 | + protected function _add_screen_options() |
|
89 | + { |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + protected function _add_feature_pointers() |
|
94 | + { |
|
95 | + } |
|
96 | + |
|
97 | + |
|
98 | + public function admin_init() |
|
99 | + { |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + public function admin_notices() |
|
104 | + { |
|
105 | + } |
|
106 | + |
|
107 | + |
|
108 | + public function admin_footer_scripts() |
|
109 | + { |
|
110 | + } |
|
111 | + |
|
112 | + |
|
113 | + public function load_scripts_styles() |
|
114 | + { |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + protected function _installation() |
|
119 | + { |
|
120 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php'; |
|
121 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
122 | + $template_path, |
|
123 | + '', |
|
124 | + true |
|
125 | + ); |
|
126 | + $this->display_admin_page_with_sidebar(); |
|
127 | + } |
|
128 | + |
|
129 | + |
|
130 | + protected function _resources() |
|
131 | + { |
|
132 | + $this->display_admin_page_with_sidebar(); |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + protected function _add_settings_metabox($box, $label, array $args) |
|
137 | + { |
|
138 | + add_meta_box( |
|
139 | + "espresso_{$box}_settings", |
|
140 | + $label, |
|
141 | + function ($post, $metabox) { |
|
142 | + echo EEH_Template::display_template( |
|
143 | + $metabox['args']['template_path'], |
|
144 | + $metabox['args']['template_args'], |
|
145 | + true |
|
146 | + ); |
|
147 | + }, |
|
148 | + $this->_current_screen->id, |
|
149 | + 'normal', |
|
150 | + 'high', |
|
151 | + apply_filters( |
|
152 | + "FHEE__Support_Admin_Page___add_settings_metabox__{$box}_args_array", |
|
153 | + $args |
|
154 | + ) |
|
155 | + ); |
|
156 | + } |
|
157 | + |
|
158 | + |
|
159 | + protected function _resources_boxes() |
|
160 | + { |
|
161 | + $boxes = apply_filters( |
|
162 | + 'FHEE__Support_Admin_Page___resources_boxes__boxes_array', |
|
163 | + array( |
|
164 | + 'favorite_theme_developers' => esc_html__('Favorite Theme Developers', 'event_espresso'), |
|
165 | + 'highly_recommended_themes' => esc_html__('Highly Recommended Themes', 'event_espresso'), |
|
166 | + 'hire_developer' => esc_html__('Hire a Developer', 'event_espresso'), |
|
167 | + 'partners' => esc_html__('Partners', 'event_espresso'), |
|
168 | + 'recommended_plugins' => esc_html__('Recommended Plugins', 'event_espresso'), |
|
169 | + 'other_resources' => esc_html__('Other Resources', 'event_espresso'), |
|
170 | + ) |
|
171 | + ); |
|
172 | + foreach ($boxes as $box => $label) { |
|
173 | + $this->_add_settings_metabox( |
|
174 | + $box, |
|
175 | + $label, |
|
176 | + array( |
|
177 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
178 | + 'template_args' => $this->_template_args, |
|
179 | + ) |
|
180 | + ); |
|
181 | + } |
|
182 | + } |
|
183 | + |
|
184 | + |
|
185 | + protected function _shortcodes() |
|
186 | + { |
|
187 | + $this->display_admin_page_with_sidebar(); |
|
188 | + } |
|
189 | + |
|
190 | + |
|
191 | + protected function _shortcodes_boxes() |
|
192 | + { |
|
193 | + $boxes = apply_filters( |
|
194 | + 'FHEE__Support_Admin_Page___shortcodes_boxes__boxes_array', |
|
195 | + array( |
|
196 | + 'shortcodes_event_listings' => esc_html__('Event Listings', 'event_espresso'), |
|
197 | + 'shortcodes_ticket_selector' => esc_html__('Event Ticket Selector', 'event_espresso'), |
|
198 | + 'shortcodes_category' => esc_html__('Event Categories', 'event_espresso'), |
|
199 | + 'shortcodes_attendee' => esc_html__('Event Attendees', 'event_espresso') |
|
200 | + /*'shortcodes_single_events' => esc_html__('Single Events', 'event_espresso'),*/ |
|
201 | + /*'shortcodes_attendee_listings' => esc_html__('Attendee Listings', 'event_espresso'),*/ |
|
202 | + ) |
|
203 | + ); |
|
204 | + foreach ($boxes as $box => $label) { |
|
205 | + $this->_add_settings_metabox( |
|
206 | + $box, |
|
207 | + $label, |
|
208 | + array( |
|
209 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
210 | + 'template_args' => $this->_template_args, |
|
211 | + ) |
|
212 | + ); |
|
213 | + } |
|
214 | + } |
|
215 | + |
|
216 | + |
|
217 | + protected function _contact_support() |
|
218 | + { |
|
219 | + $this->display_admin_page_with_sidebar(); |
|
220 | + } |
|
221 | + |
|
222 | + |
|
223 | + protected function _support_boxes() |
|
224 | + { |
|
225 | + $boxes = apply_filters( |
|
226 | + 'FHEE__Support_Admin_Page___support_boxes__boxes_array', |
|
227 | + array( |
|
228 | + 'contact_support' => esc_html__('Contact Support', 'event_espresso'), |
|
229 | + 'important_information' => esc_html__('Important Information', 'event_espresso'), |
|
230 | + ) |
|
231 | + ); |
|
232 | + foreach ($boxes as $box => $label) { |
|
233 | + $this->_add_settings_metabox( |
|
234 | + $box, |
|
235 | + $label, |
|
236 | + array( |
|
237 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
238 | + 'template_args' => $this->_template_args, |
|
239 | + ) |
|
240 | + ); |
|
241 | + } |
|
242 | + } |
|
243 | + |
|
244 | + |
|
245 | + protected function _developers() |
|
246 | + { |
|
247 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
248 | + EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php', |
|
249 | + array(), |
|
250 | + true |
|
251 | + ); |
|
252 | + $this->display_admin_page_with_sidebar(); |
|
253 | + } |
|
254 | 254 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | protected function _installation() |
119 | 119 | { |
120 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php'; |
|
120 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'support_admin_details_installation.template.php'; |
|
121 | 121 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
122 | 122 | $template_path, |
123 | 123 | '', |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | add_meta_box( |
139 | 139 | "espresso_{$box}_settings", |
140 | 140 | $label, |
141 | - function ($post, $metabox) { |
|
141 | + function($post, $metabox) { |
|
142 | 142 | echo EEH_Template::display_template( |
143 | 143 | $metabox['args']['template_path'], |
144 | 144 | $metabox['args']['template_args'], |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $box, |
175 | 175 | $label, |
176 | 176 | array( |
177 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
177 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php", |
|
178 | 178 | 'template_args' => $this->_template_args, |
179 | 179 | ) |
180 | 180 | ); |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $box, |
207 | 207 | $label, |
208 | 208 | array( |
209 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
209 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php", |
|
210 | 210 | 'template_args' => $this->_template_args, |
211 | 211 | ) |
212 | 212 | ); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $box, |
235 | 235 | $label, |
236 | 236 | array( |
237 | - 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH . "support_admin_details_{$box}.template.php", |
|
237 | + 'template_path' => EE_SUPPORT_ADMIN_TEMPLATE_PATH."support_admin_details_{$box}.template.php", |
|
238 | 238 | 'template_args' => $this->_template_args, |
239 | 239 | ) |
240 | 240 | ); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | protected function _developers() |
246 | 246 | { |
247 | 247 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
248 | - EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php', |
|
248 | + EE_SUPPORT_ADMIN_TEMPLATE_PATH.'developers_admin_details.template.php', |
|
249 | 249 | array(), |
250 | 250 | true |
251 | 251 | ); |
@@ -3,81 +3,81 @@ |
||
3 | 3 | |
4 | 4 | <h4> |
5 | 5 | <?php esc_html_e( |
6 | - 'You may be able to find an answer for your question or concern here:', |
|
7 | - 'event_espresso' |
|
8 | - ); ?> |
|
6 | + 'You may be able to find an answer for your question or concern here:', |
|
7 | + 'event_espresso' |
|
8 | + ); ?> |
|
9 | 9 | </h4> |
10 | 10 | <ol> |
11 | 11 | <li><strong><em><?php esc_html_e('A known issue.', 'event_espresso'); ?></em></strong> |
12 | 12 | <?php printf( |
13 | - esc_html__( |
|
14 | - 'Some themes and plugins have %1$sknown conflicts%2$s with Event Espresso. (You can also browse the %3$sEvent Espresso support pages%2$s or %4$sEvent Espresso support forums%2$s to see if other members have experienced and solved the problem.)', |
|
15 | - 'event_espresso' |
|
16 | - ), |
|
17 | - '<a href="https://eventespresso.com/wiki/known-third-party-plugin-theme-conflicts/" target="_blank">', |
|
18 | - '</a>', |
|
19 | - '<a href="https://eventespresso.com/support/documentation/versioned-docs/?doc_ver=ee4" target="_blank">', |
|
20 | - '<a href="https://eventespresso.com/support/forums/" target="_blank">' |
|
21 | - ); ?></li> |
|
13 | + esc_html__( |
|
14 | + 'Some themes and plugins have %1$sknown conflicts%2$s with Event Espresso. (You can also browse the %3$sEvent Espresso support pages%2$s or %4$sEvent Espresso support forums%2$s to see if other members have experienced and solved the problem.)', |
|
15 | + 'event_espresso' |
|
16 | + ), |
|
17 | + '<a href="https://eventespresso.com/wiki/known-third-party-plugin-theme-conflicts/" target="_blank">', |
|
18 | + '</a>', |
|
19 | + '<a href="https://eventespresso.com/support/documentation/versioned-docs/?doc_ver=ee4" target="_blank">', |
|
20 | + '<a href="https://eventespresso.com/support/forums/" target="_blank">' |
|
21 | + ); ?></li> |
|
22 | 22 | <li><strong><em><?php esc_html_e('A plugin conflict.', 'event_espresso'); ?></em></strong> |
23 | 23 | <?php esc_html_e( |
24 | - 'You can check to see if there is a plugin conflict by temporarily deactivating all plugins except for Event Espresso. If the problem goes away, then reactivate your plugins one by one until the issue returns. This will help you pinpoint the source of the conflict.', |
|
25 | - 'event_espresso' |
|
26 | - ); ?></li> |
|
24 | + 'You can check to see if there is a plugin conflict by temporarily deactivating all plugins except for Event Espresso. If the problem goes away, then reactivate your plugins one by one until the issue returns. This will help you pinpoint the source of the conflict.', |
|
25 | + 'event_espresso' |
|
26 | + ); ?></li> |
|
27 | 27 | <li> |
28 | 28 | <strong><em><?php esc_html_e('A theme conflict.', 'event_espresso'); ?></em></strong> |
29 | 29 | <?php |
30 | - $default_theme = wp_get_theme(WP_DEFAULT_THEME); |
|
30 | + $default_theme = wp_get_theme(WP_DEFAULT_THEME); |
|
31 | 31 | |
32 | - if ($default_theme->exists()) { |
|
33 | - printf( |
|
34 | - esc_html__( |
|
35 | - 'If your problem is not a known issue or caused by a plugin, then try activating %s (the default WordPress theme).', |
|
36 | - 'event_espresso' |
|
37 | - ), |
|
38 | - $default_theme->get('Name') |
|
39 | - ); |
|
40 | - } else { |
|
41 | - esc_html_e( |
|
42 | - 'If your problem is not a known issue or caused by a plugin, then try activating the default WordPress theme.', |
|
43 | - 'event_espresso' |
|
44 | - ); |
|
45 | - } |
|
46 | - ?> |
|
32 | + if ($default_theme->exists()) { |
|
33 | + printf( |
|
34 | + esc_html__( |
|
35 | + 'If your problem is not a known issue or caused by a plugin, then try activating %s (the default WordPress theme).', |
|
36 | + 'event_espresso' |
|
37 | + ), |
|
38 | + $default_theme->get('Name') |
|
39 | + ); |
|
40 | + } else { |
|
41 | + esc_html_e( |
|
42 | + 'If your problem is not a known issue or caused by a plugin, then try activating the default WordPress theme.', |
|
43 | + 'event_espresso' |
|
44 | + ); |
|
45 | + } |
|
46 | + ?> |
|
47 | 47 | <?php esc_html_e( |
48 | - 'If this solves the problem for you, then something in your theme is causing this issue. Check to see if an update is available for your WordPress theme or reach out to the theme author.', |
|
49 | - 'event_espresso' |
|
50 | - ); ?> |
|
48 | + 'If this solves the problem for you, then something in your theme is causing this issue. Check to see if an update is available for your WordPress theme or reach out to the theme author.', |
|
49 | + 'event_espresso' |
|
50 | + ); ?> |
|
51 | 51 | </li> |
52 | 52 | </ol> |
53 | 53 | |
54 | 54 | <p> |
55 | 55 | <?php esc_html_e( |
56 | - 'If none of the suggestions above help you find a solution, then feel free to reach out to the support team at Event Espresso.', |
|
57 | - 'event_espresso' |
|
58 | - ); ?></p> |
|
56 | + 'If none of the suggestions above help you find a solution, then feel free to reach out to the support team at Event Espresso.', |
|
57 | + 'event_espresso' |
|
58 | + ); ?></p> |
|
59 | 59 | <p> |
60 | 60 | <?php printf( |
61 | - esc_html__( |
|
62 | - 'Login to your account on EventEspresso.com and %1$screate a support post in our member support forums%2$s. Use a %3$sclear and descriptive title%4$s in your support post, %3$sdescribe the issue to the best of your knowledge%4$s, and %3$snever post any sensitive information such as login details%4$s. Be sure to also include %5$simportant information in the section below%2$s about your WordPress site.', |
|
63 | - 'event_espresso' |
|
64 | - ), |
|
65 | - '<a href="https://eventespresso.com/support/forums/" target="_blank">', |
|
66 | - '</a>', |
|
67 | - '<strong>', |
|
68 | - '</strong>', |
|
69 | - '<a href="#espresso_important_information_settings">' |
|
70 | - ); ?></p> |
|
61 | + esc_html__( |
|
62 | + 'Login to your account on EventEspresso.com and %1$screate a support post in our member support forums%2$s. Use a %3$sclear and descriptive title%4$s in your support post, %3$sdescribe the issue to the best of your knowledge%4$s, and %3$snever post any sensitive information such as login details%4$s. Be sure to also include %5$simportant information in the section below%2$s about your WordPress site.', |
|
63 | + 'event_espresso' |
|
64 | + ), |
|
65 | + '<a href="https://eventespresso.com/support/forums/" target="_blank">', |
|
66 | + '</a>', |
|
67 | + '<strong>', |
|
68 | + '</strong>', |
|
69 | + '<a href="#espresso_important_information_settings">' |
|
70 | + ); ?></p> |
|
71 | 71 | |
72 | 72 | <h4><?php esc_html_e('Have an emergency?', 'event_espresso'); ?></h4> |
73 | 73 | |
74 | 74 | <p> |
75 | 75 | <?php printf( |
76 | - esc_html__( |
|
77 | - 'We offer support tokens to members that need help with a time-sensitive issue. A support token will provide you with up to 30 minutes of one-on-one time with a team member at Event Espresso. If you have an emergency and need help quickly, then please %1$spurchase a support token%2$s.', |
|
78 | - 'event_espresso' |
|
79 | - ), |
|
80 | - '<a href="https://eventespresso.com/product/premium-support-token/?utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=help_support_tab&utm_content=support_token" target="_blank">', |
|
81 | - '</a>' |
|
82 | - ); ?></p> |
|
76 | + esc_html__( |
|
77 | + 'We offer support tokens to members that need help with a time-sensitive issue. A support token will provide you with up to 30 minutes of one-on-one time with a team member at Event Espresso. If you have an emergency and need help quickly, then please %1$spurchase a support token%2$s.', |
|
78 | + 'event_espresso' |
|
79 | + ), |
|
80 | + '<a href="https://eventespresso.com/product/premium-support-token/?utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=help_support_tab&utm_content=support_token" target="_blank">', |
|
81 | + '</a>' |
|
82 | + ); ?></p> |
|
83 | 83 | </div> |
84 | 84 | \ No newline at end of file |
@@ -9,9 +9,9 @@ discard block |
||
9 | 9 | <strong>[ESPRESSO_EVENT_ATTENDEES]</strong><br> |
10 | 10 | <p class="description"> |
11 | 11 | <?php _e( |
12 | - 'With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event. If it is used in Event Description, then it will show the attendees for that event.', |
|
13 | - 'event_espresso' |
|
14 | - ); ?> |
|
12 | + 'With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event. If it is used in Event Description, then it will show the attendees for that event.', |
|
13 | + 'event_espresso' |
|
14 | + ); ?> |
|
15 | 15 | </p> |
16 | 16 | <br> |
17 | 17 | </li> |
@@ -40,18 +40,18 @@ discard block |
||
40 | 40 | <strong>[ESPRESSO_EVENT_ATTENDEES status=RAP]</strong><br> |
41 | 41 | <p class="description"> |
42 | 42 | <?php _e( |
43 | - 'You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status. Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.', |
|
44 | - 'event_espresso' |
|
45 | - ); ?> |
|
43 | + 'You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status. Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.', |
|
44 | + 'event_espresso' |
|
45 | + ); ?> |
|
46 | 46 | </p> |
47 | 47 | <p> |
48 | 48 | <?php _e('The statuses you can use are:', 'event_espresso'); ?> |
49 | 49 | <br> |
50 | 50 | <?php |
51 | - foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) { |
|
52 | - echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>'; |
|
53 | - } |
|
54 | - ?> |
|
51 | + foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) { |
|
52 | + echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>'; |
|
53 | + } |
|
54 | + ?> |
|
55 | 55 | |
56 | 56 | </p> |
57 | 57 | <br> |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | <strong>[ESPRESSO_EVENT_ATTENDEES display_on_archives=true]</strong><br> |
61 | 61 | <p class="description"> |
62 | 62 | <?php _e( |
63 | - 'Will display the attendees list when events are viewed on archive pages.', |
|
64 | - 'event_espresso' |
|
65 | - ); ?> |
|
63 | + 'Will display the attendees list when events are viewed on archive pages.', |
|
64 | + 'event_espresso' |
|
65 | + ); ?> |
|
66 | 66 | </p> |
67 | 67 | <br> |
68 | 68 | </li> |
@@ -49,7 +49,7 @@ |
||
49 | 49 | <br> |
50 | 50 | <?php |
51 | 51 | foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) { |
52 | - echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>'; |
|
52 | + echo '<strong>'.$status_code.':</strong>'.' '.$status_label.'<br>'; |
|
53 | 53 | } |
54 | 54 | ?> |
55 | 55 |
@@ -1,16 +1,16 @@ discard block |
||
1 | 1 | <div class="padding"> |
2 | 2 | <p> |
3 | 3 | <?php esc_html_e( |
4 | - 'Displays a list of events based on a set of criteria on a WordPress page or post. Unless otherwise specified, events are sorted by start date.', |
|
5 | - 'event_espresso' |
|
6 | - ); ?><?php echo sprintf( |
|
7 | - esc_html__( |
|
8 | - 'For a full list of available shortcodes, please view the %sshortcode documentation%s on our website.', |
|
9 | - 'event_espresso' |
|
10 | - ), |
|
11 | - '<a href="https://eventespresso.com/wiki/ee4-shortcodes-template-variables/">', |
|
12 | - '</a>' |
|
13 | - ); ?> |
|
4 | + 'Displays a list of events based on a set of criteria on a WordPress page or post. Unless otherwise specified, events are sorted by start date.', |
|
5 | + 'event_espresso' |
|
6 | + ); ?><?php echo sprintf( |
|
7 | + esc_html__( |
|
8 | + 'For a full list of available shortcodes, please view the %sshortcode documentation%s on our website.', |
|
9 | + 'event_espresso' |
|
10 | + ), |
|
11 | + '<a href="https://eventespresso.com/wiki/ee4-shortcodes-template-variables/">', |
|
12 | + '</a>' |
|
13 | + ); ?> |
|
14 | 14 | </p> |
15 | 15 | <ul> |
16 | 16 | <li><strong><?php esc_html_e('Show a list of all of your events', 'event_espresso'); ?></strong><br/> |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | </li> |
22 | 22 | <li><strong> |
23 | 23 | <?php esc_html_e( |
24 | - 'Don\'t display a title/heading before the event list', |
|
25 | - 'event_espresso' |
|
26 | - ); ?></strong><br/> [ESPRESSO_EVENTS show_title=false] |
|
24 | + 'Don\'t display a title/heading before the event list', |
|
25 | + 'event_espresso' |
|
26 | + ); ?></strong><br/> [ESPRESSO_EVENTS show_title=false] |
|
27 | 27 | </li> |
28 | 28 | <li><strong> |
29 | 29 | <?php esc_html_e( |
30 | - 'Limit (paginate) the number of events that are shown in the event list on a page or post', |
|
31 | - 'event_espresso' |
|
32 | - ); ?></strong><br/>[ESPRESSO_EVENTS limit=5] |
|
30 | + 'Limit (paginate) the number of events that are shown in the event list on a page or post', |
|
31 | + 'event_espresso' |
|
32 | + ); ?></strong><br/>[ESPRESSO_EVENTS limit=5] |
|
33 | 33 | </li> |
34 | 34 | <li><strong> |
35 | 35 | <?php esc_html_e('Add a custom CSS class to each event post/article', 'event_espresso'); ?></strong><br/> |
@@ -52,19 +52,19 @@ discard block |
||
52 | 52 | </li> |
53 | 53 | <li><strong> |
54 | 54 | <?php esc_html_e( |
55 | - 'Order the event list by a specific set of parameters (refer to available options below)', |
|
56 | - 'event_espresso' |
|
57 | - ); ?></strong><br/>[ESPRESSO_EVENTS order_by=start_date,id] |
|
55 | + 'Order the event list by a specific set of parameters (refer to available options below)', |
|
56 | + 'event_espresso' |
|
57 | + ); ?></strong><br/>[ESPRESSO_EVENTS order_by=start_date,id] |
|
58 | 58 | </li> |
59 | 59 | </ul> |
60 | 60 | <p> |
61 | 61 | <?php echo sprintf( |
62 | - esc_html__( |
|
63 | - 'These parameters (options) are available for the %s shortcode parameter above. Multiple parameters should be separated by a comma.', |
|
64 | - 'event_espresso' |
|
65 | - ), |
|
66 | - 'order_by' |
|
67 | - ); ?> |
|
62 | + esc_html__( |
|
63 | + 'These parameters (options) are available for the %s shortcode parameter above. Multiple parameters should be separated by a comma.', |
|
64 | + 'event_espresso' |
|
65 | + ), |
|
66 | + 'order_by' |
|
67 | + ); ?> |
|
68 | 68 | </p> |
69 | 69 | id<br/> |
70 | 70 | start_date<br/> |
@@ -1,93 +1,93 @@ |
||
1 | 1 | <div class="padding"> |
2 | 2 | <?php esc_html_e( |
3 | - 'If you want to integrate with Event Espresso or participate in building code, then you are in the right place. The following resources can help you get started.', |
|
4 | - 'event_espresso' |
|
5 | - ); ?> |
|
3 | + 'If you want to integrate with Event Espresso or participate in building code, then you are in the right place. The following resources can help you get started.', |
|
4 | + 'event_espresso' |
|
5 | + ); ?> |
|
6 | 6 | <h2><?php esc_html_e('Developer Resources', 'event_espresso'); ?></h2> |
7 | 7 | <ul> |
8 | 8 | <li> |
9 | 9 | <?php printf( |
10 | - esc_html__('%1$sEvent Espresso 4 Developer Documentation%2$s', 'event_espresso'), |
|
11 | - '<a href="https://github.com/eventespresso/event-espresso-core/tree/master/docs#getting-started-with-the-ee-developer-docs" target="_blank">', |
|
12 | - '</a>' |
|
13 | - ); ?></li> |
|
10 | + esc_html__('%1$sEvent Espresso 4 Developer Documentation%2$s', 'event_espresso'), |
|
11 | + '<a href="https://github.com/eventespresso/event-espresso-core/tree/master/docs#getting-started-with-the-ee-developer-docs" target="_blank">', |
|
12 | + '</a>' |
|
13 | + ); ?></li> |
|
14 | 14 | <li> |
15 | 15 | <?php printf( |
16 | - esc_html__('%1$sEvent Espresso 4 Developer News%2$s', 'event_espresso'), |
|
17 | - '<a href="http://developer.eventespresso.com/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
18 | - '</a>' |
|
19 | - ); ?></li> |
|
16 | + esc_html__('%1$sEvent Espresso 4 Developer News%2$s', 'event_espresso'), |
|
17 | + '<a href="http://developer.eventespresso.com/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
18 | + '</a>' |
|
19 | + ); ?></li> |
|
20 | 20 | <li> |
21 | 21 | <?php printf( |
22 | - esc_html__('%1$sApply%2$s to be listed as an %3$sEvent Espresso Professional%2$s', 'event_espresso'), |
|
23 | - '<a href="https://eventespresso.com/developers/event-espresso-pros-application/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
24 | - '</a>', |
|
25 | - '<a href="https://eventespresso.com/developers/event-espresso-pros/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">' |
|
26 | - ); ?></li> |
|
22 | + esc_html__('%1$sApply%2$s to be listed as an %3$sEvent Espresso Professional%2$s', 'event_espresso'), |
|
23 | + '<a href="https://eventespresso.com/developers/event-espresso-pros-application/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
24 | + '</a>', |
|
25 | + '<a href="https://eventespresso.com/developers/event-espresso-pros/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">' |
|
26 | + ); ?></li> |
|
27 | 27 | </ul> |
28 | 28 | |
29 | 29 | <h2><?php esc_html_e('Event Espresso 4 Articles for Developers', 'event_espresso'); ?></h2> |
30 | 30 | <ul> |
31 | 31 | <li> |
32 | 32 | <?php printf( |
33 | - esc_html__('%1$sCustom Post Types Usage%2$s', 'event_espresso'), |
|
34 | - '<a href="https://eventespresso.com/2014/02/epsresso-brewery-custom-post-types-event-espresso/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
35 | - '</a>' |
|
36 | - ); ?></li> |
|
33 | + esc_html__('%1$sCustom Post Types Usage%2$s', 'event_espresso'), |
|
34 | + '<a href="https://eventespresso.com/2014/02/epsresso-brewery-custom-post-types-event-espresso/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
35 | + '</a>' |
|
36 | + ); ?></li> |
|
37 | 37 | <li> |
38 | 38 | <?php printf( |
39 | - esc_html__('%1$sTheme Development%2$s', 'event_espresso'), |
|
40 | - '<a href="https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
41 | - '</a>' |
|
42 | - ); ?></li> |
|
39 | + esc_html__('%1$sTheme Development%2$s', 'event_espresso'), |
|
40 | + '<a href="https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
41 | + '</a>' |
|
42 | + ); ?></li> |
|
43 | 43 | <li> |
44 | 44 | <?php printf( |
45 | - esc_html__('%1$sCapability System%2$s', 'event_espresso'), |
|
46 | - '<a href="http://developer.eventespresso.com/docs/ee-capability-system-overview/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
47 | - '</a>' |
|
48 | - ); ?></li> |
|
45 | + esc_html__('%1$sCapability System%2$s', 'event_espresso'), |
|
46 | + '<a href="http://developer.eventespresso.com/docs/ee-capability-system-overview/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
47 | + '</a>' |
|
48 | + ); ?></li> |
|
49 | 49 | <li> |
50 | 50 | <?php printf( |
51 | - esc_html__('%1$sPayment Method Development%2$s', 'event_espresso'), |
|
52 | - '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/L--Payment-Methods-and-Gateways/creating-a-payment-method.md" target="_blank">', |
|
53 | - '</a>' |
|
54 | - ); ?></li> |
|
51 | + esc_html__('%1$sPayment Method Development%2$s', 'event_espresso'), |
|
52 | + '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/L--Payment-Methods-and-Gateways/creating-a-payment-method.md" target="_blank">', |
|
53 | + '</a>' |
|
54 | + ); ?></li> |
|
55 | 55 | <li> |
56 | 56 | <?php printf( |
57 | - esc_html__('%1$sMessages System in Event Espresso 4%2$s', 'event_espresso'), |
|
58 | - '<a href="https://eventespresso.com/2014/03/messages-systemyour-tool-getting-word/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
59 | - '</a>' |
|
60 | - ); ?></li> |
|
57 | + esc_html__('%1$sMessages System in Event Espresso 4%2$s', 'event_espresso'), |
|
58 | + '<a href="https://eventespresso.com/2014/03/messages-systemyour-tool-getting-word/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
59 | + '</a>' |
|
60 | + ); ?></li> |
|
61 | 61 | <li> |
62 | 62 | <?php printf( |
63 | - esc_html__( |
|
64 | - '%1$sDatabase Model System%2$s (used for interfacing with EE4 data via WordPress plugins and server side querying)', |
|
65 | - 'event_espresso' |
|
66 | - ), |
|
67 | - '<a href="http://developer.eventespresso.com/docs/using-ee4-model-objects/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
68 | - '</a>' |
|
69 | - ); ?></li> |
|
63 | + esc_html__( |
|
64 | + '%1$sDatabase Model System%2$s (used for interfacing with EE4 data via WordPress plugins and server side querying)', |
|
65 | + 'event_espresso' |
|
66 | + ), |
|
67 | + '<a href="http://developer.eventespresso.com/docs/using-ee4-model-objects/?ee_ver=ee4&utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=ee_support_page&utm_content=developers_tab" target="_blank">', |
|
68 | + '</a>' |
|
69 | + ); ?></li> |
|
70 | 70 | </ul> |
71 | 71 | |
72 | 72 | <h2><?php esc_html_e('REST API Resources', 'event_espresso'); ?></h2> |
73 | 73 | <ul> |
74 | 74 | <li> |
75 | 75 | <?php printf( |
76 | - esc_html__('%1$sREST API: Introduction%2$s', 'event_espresso'), |
|
77 | - '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/C--REST-API/ee4-rest-api-introduction.md" target="_blank">', |
|
78 | - '</a>' |
|
79 | - ); ?></li> |
|
76 | + esc_html__('%1$sREST API: Introduction%2$s', 'event_espresso'), |
|
77 | + '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/C--REST-API/ee4-rest-api-introduction.md" target="_blank">', |
|
78 | + '</a>' |
|
79 | + ); ?></li> |
|
80 | 80 | <li> |
81 | 81 | <?php printf( |
82 | - esc_html__('%1$sREST API: Reading Data%2$s', 'event_espresso'), |
|
83 | - '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/C--REST-API/ee4-rest-api-reading-data.md" target="_blank">', |
|
84 | - '</a>' |
|
85 | - ); ?></li> |
|
82 | + esc_html__('%1$sREST API: Reading Data%2$s', 'event_espresso'), |
|
83 | + '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/C--REST-API/ee4-rest-api-reading-data.md" target="_blank">', |
|
84 | + '</a>' |
|
85 | + ); ?></li> |
|
86 | 86 | <li> |
87 | 87 | <?php printf( |
88 | - esc_html__('%1$sBuilding an EE4 Add-on Using the REST API%2$s', 'event_espresso'), |
|
89 | - '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/T--Tutorials/building-an-ee4-addon-that-uses-angular-js-and-the-ee4-json-rest-api.md" target="_blank">', |
|
90 | - '</a>' |
|
91 | - ); ?></li> |
|
88 | + esc_html__('%1$sBuilding an EE4 Add-on Using the REST API%2$s', 'event_espresso'), |
|
89 | + '<a href="https://github.com/eventespresso/event-espresso-core/blob/master/docs/T--Tutorials/building-an-ee4-addon-that-uses-angular-js-and-the-ee4-json-rest-api.md" target="_blank">', |
|
90 | + '</a>' |
|
91 | + ); ?></li> |
|
92 | 92 | </ul> |
93 | 93 | </div> |
94 | 94 | \ No newline at end of file |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <div class="padding"> |
2 | 2 | <!-- <p><?php _e( |
3 | - 'Download the <a href="https://eventespresso.com/wp-content/plugins/download-monitor/download.php?id=2">Installation Guide</a> as a PDF', |
|
4 | - 'event_espresso' |
|
5 | - ); ?></p> --> |
|
3 | + 'Download the <a href="https://eventespresso.com/wp-content/plugins/download-monitor/download.php?id=2">Installation Guide</a> as a PDF', |
|
4 | + 'event_espresso' |
|
5 | + ); ?></p> --> |
|
6 | 6 | <p> |
7 | 7 | <?php _e('For the latest installation instructions please visit:', 'event_espresso'); ?> |
8 | 8 | <a href="https://eventespresso.com/wiki/installing-event-espresso/" target="_blank">https://eventespresso.com/wiki/installing-event-espresso/</a> |
@@ -1,50 +1,50 @@ discard block |
||
1 | 1 | <div class="padding"> |
2 | 2 | <?php |
3 | - global $wpdb, $wp_version; |
|
4 | - $wp_req_version = '3.1'; |
|
5 | - $php_req_version = '5.2'; |
|
6 | - $mysql_req_version = '5.0'; |
|
7 | - $is_php_valid = version_compare(phpversion(), $php_req_version, '>'); |
|
8 | - $is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>'); |
|
3 | + global $wpdb, $wp_version; |
|
4 | + $wp_req_version = '3.1'; |
|
5 | + $php_req_version = '5.2'; |
|
6 | + $mysql_req_version = '5.0'; |
|
7 | + $is_php_valid = version_compare(phpversion(), $php_req_version, '>'); |
|
8 | + $is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>'); |
|
9 | 9 | |
10 | - if (! version_compare($wp_version, $wp_req_version, '>=')) { |
|
11 | - echo '<p class="red_alert">' |
|
12 | - . __( |
|
13 | - 'This version of Event Espresso requires WordPress version', |
|
14 | - 'event_espresso' |
|
15 | - ) . ' ' . $wp_req_version . '+. ' |
|
16 | - . __( |
|
17 | - 'Please upgrade to the latest version of WordPress.', |
|
18 | - 'event_espresso' |
|
19 | - ) . '</p>'; |
|
20 | - } |
|
21 | - if (! $is_php_valid) { |
|
22 | - echo '<p class="red_alert">' |
|
23 | - . __( |
|
24 | - 'Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:', |
|
25 | - 'event_espresso' |
|
26 | - ) . ' ' . $php_req_version . '</p>'; |
|
27 | - } |
|
28 | - if (! $is_mysql_valid) { |
|
29 | - echo '<p class="red_alert">' |
|
30 | - . __( |
|
31 | - 'Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:', |
|
32 | - 'event_espresso' |
|
33 | - ) . ' ' . $mysql_req_version . '</p>'; |
|
34 | - } |
|
10 | + if (! version_compare($wp_version, $wp_req_version, '>=')) { |
|
11 | + echo '<p class="red_alert">' |
|
12 | + . __( |
|
13 | + 'This version of Event Espresso requires WordPress version', |
|
14 | + 'event_espresso' |
|
15 | + ) . ' ' . $wp_req_version . '+. ' |
|
16 | + . __( |
|
17 | + 'Please upgrade to the latest version of WordPress.', |
|
18 | + 'event_espresso' |
|
19 | + ) . '</p>'; |
|
20 | + } |
|
21 | + if (! $is_php_valid) { |
|
22 | + echo '<p class="red_alert">' |
|
23 | + . __( |
|
24 | + 'Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:', |
|
25 | + 'event_espresso' |
|
26 | + ) . ' ' . $php_req_version . '</p>'; |
|
27 | + } |
|
28 | + if (! $is_mysql_valid) { |
|
29 | + echo '<p class="red_alert">' |
|
30 | + . __( |
|
31 | + 'Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:', |
|
32 | + 'event_espresso' |
|
33 | + ) . ' ' . $mysql_req_version . '</p>'; |
|
34 | + } |
|
35 | 35 | |
36 | - $query_args = array( |
|
37 | - 'page' => 'espresso_maintenance_settings', |
|
38 | - 'action' => 'system_status', |
|
39 | - ); |
|
40 | - $system_status_link = EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')); |
|
36 | + $query_args = array( |
|
37 | + 'page' => 'espresso_maintenance_settings', |
|
38 | + 'action' => 'system_status', |
|
39 | + ); |
|
40 | + $system_status_link = EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')); |
|
41 | 41 | |
42 | - ?> |
|
42 | + ?> |
|
43 | 43 | <a href="<?php echo $system_status_link; ?>" class="button-secondary right"> |
44 | 44 | <?php _e( |
45 | - 'System Information', |
|
46 | - 'event_espresso' |
|
47 | - ); ?></a> |
|
45 | + 'System Information', |
|
46 | + 'event_espresso' |
|
47 | + ); ?></a> |
|
48 | 48 | <div class="localhost-information"> |
49 | 49 | <p><strong><?php esc_html_e('WordPress Version:', 'event_espresso'); ?></strong> <?php echo $wp_version; ?> |
50 | 50 | </p> |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | <p><strong><?php esc_html_e('MySQL Version:', 'event_espresso'); ?></strong> <?php echo $wpdb->db_version(); ?></p> |
53 | 53 | <p><strong> |
54 | 54 | <?php esc_html_e( |
55 | - 'Event Espresso Version:', |
|
56 | - 'event_espresso' |
|
57 | - ); ?></strong> <?php echo EVENT_ESPRESSO_VERSION ?></p> |
|
55 | + 'Event Espresso Version:', |
|
56 | + 'event_espresso' |
|
57 | + ); ?></strong> <?php echo EVENT_ESPRESSO_VERSION ?></p> |
|
58 | 58 | <p><strong><?php esc_html_e('WordPress Address (URL):', 'event_espresso'); ?></strong> <?php echo site_url(); ?></p> |
59 | 59 | <p><strong><?php esc_html_e('Site address (URL):', 'event_espresso'); ?></strong> <?php echo home_url(); ?> |
60 | 60 | </div> |
@@ -7,30 +7,30 @@ |
||
7 | 7 | $is_php_valid = version_compare(phpversion(), $php_req_version, '>'); |
8 | 8 | $is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>'); |
9 | 9 | |
10 | - if (! version_compare($wp_version, $wp_req_version, '>=')) { |
|
10 | + if ( ! version_compare($wp_version, $wp_req_version, '>=')) { |
|
11 | 11 | echo '<p class="red_alert">' |
12 | 12 | . __( |
13 | 13 | 'This version of Event Espresso requires WordPress version', |
14 | 14 | 'event_espresso' |
15 | - ) . ' ' . $wp_req_version . '+. ' |
|
15 | + ).' '.$wp_req_version.'+. ' |
|
16 | 16 | . __( |
17 | 17 | 'Please upgrade to the latest version of WordPress.', |
18 | 18 | 'event_espresso' |
19 | - ) . '</p>'; |
|
19 | + ).'</p>'; |
|
20 | 20 | } |
21 | - if (! $is_php_valid) { |
|
21 | + if ( ! $is_php_valid) { |
|
22 | 22 | echo '<p class="red_alert">' |
23 | 23 | . __( |
24 | 24 | 'Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:', |
25 | 25 | 'event_espresso' |
26 | - ) . ' ' . $php_req_version . '</p>'; |
|
26 | + ).' '.$php_req_version.'</p>'; |
|
27 | 27 | } |
28 | - if (! $is_mysql_valid) { |
|
28 | + if ( ! $is_mysql_valid) { |
|
29 | 29 | echo '<p class="red_alert">' |
30 | 30 | . __( |
31 | 31 | 'Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:', |
32 | 32 | 'event_espresso' |
33 | - ) . ' ' . $mysql_req_version . '</p>'; |
|
33 | + ).' '.$mysql_req_version.'</p>'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | $query_args = array( |