@@ -8,10 +8,10 @@ |
||
8 | 8 | <table id="general-setting-country-details-tbl" class="form-table"> |
9 | 9 | <tbody> |
10 | 10 | <?php |
11 | - foreach ($inputs as $ID => $input) { |
|
12 | - echo EEH_Form_Fields::generate_form_input($input); // already escaped |
|
13 | - } |
|
14 | - ?> |
|
11 | + foreach ($inputs as $ID => $input) { |
|
12 | + echo EEH_Form_Fields::generate_form_input($input); // already escaped |
|
13 | + } |
|
14 | + ?> |
|
15 | 15 | <tr> |
16 | 16 | <th></th> |
17 | 17 | <td> |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | </h2> |
18 | 18 | <p class="ee-attention"> |
19 | 19 | <?php printf( |
20 | - esc_html__( |
|
21 | - 'The following shortcodes and page settings are required for Event Espresso to function properly. These shortcodes should not be replaced with any other shortcodes. Please view %sthis page%s for a list of optional shortcodes you can use on other pages.', |
|
22 | - 'event_espresso' |
|
23 | - ), |
|
24 | - '<a href="admin.php?page=espresso_support">', |
|
25 | - '</a>' |
|
26 | - ); |
|
20 | + esc_html__( |
|
21 | + 'The following shortcodes and page settings are required for Event Espresso to function properly. These shortcodes should not be replaced with any other shortcodes. Please view %sthis page%s for a list of optional shortcodes you can use on other pages.', |
|
22 | + 'event_espresso' |
|
23 | + ), |
|
24 | + '<a href="admin.php?page=espresso_support">', |
|
25 | + '</a>' |
|
26 | + ); |
|
27 | 27 | ?> |
28 | 28 | </p> |
29 | 29 | |
@@ -50,19 +50,19 @@ discard block |
||
50 | 50 | </select> |
51 | 51 | <span> |
52 | 52 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
53 | - $reg_page_obj, |
|
54 | - '[ESPRESSO_CHECKOUT]' |
|
55 | - ); // already escaped ?> |
|
53 | + $reg_page_obj, |
|
54 | + '[ESPRESSO_CHECKOUT]' |
|
55 | + ); // already escaped ?> |
|
56 | 56 | </span> |
57 | 57 | <br /> |
58 | 58 | <p class="description"> |
59 | 59 | <?php printf( |
60 | - esc_html__( |
|
61 | - 'This page can be hidden from navigation if desired, but should always contain the %s shortcode.', |
|
62 | - 'event_espresso' |
|
63 | - ), |
|
64 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CHECKOUT]</span>' |
|
65 | - ); |
|
60 | + esc_html__( |
|
61 | + 'This page can be hidden from navigation if desired, but should always contain the %s shortcode.', |
|
62 | + 'event_espresso' |
|
63 | + ), |
|
64 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CHECKOUT]</span>' |
|
65 | + ); |
|
66 | 66 | ?> |
67 | 67 | </p> |
68 | 68 | <br /><br /> |
@@ -93,19 +93,19 @@ discard block |
||
93 | 93 | </select> |
94 | 94 | <span> |
95 | 95 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
96 | - $txn_page_obj, |
|
97 | - '[ESPRESSO_TXN_PAGE]' |
|
98 | - ); // already escaped ?> |
|
96 | + $txn_page_obj, |
|
97 | + '[ESPRESSO_TXN_PAGE]' |
|
98 | + ); // already escaped ?> |
|
99 | 99 | </span> |
100 | 100 | <br /> |
101 | 101 | <p class="description"> |
102 | 102 | <?php printf( |
103 | - esc_html__( |
|
104 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
105 | - 'event_espresso' |
|
106 | - ), |
|
107 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_TXN_PAGE]</span>' |
|
108 | - ); |
|
103 | + esc_html__( |
|
104 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
105 | + 'event_espresso' |
|
106 | + ), |
|
107 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_TXN_PAGE]</span>' |
|
108 | + ); |
|
109 | 109 | ?> |
110 | 110 | </p> |
111 | 111 | <br /><br /> |
@@ -132,19 +132,19 @@ discard block |
||
132 | 132 | </select> |
133 | 133 | <span> |
134 | 134 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
135 | - $thank_you_page_obj, |
|
136 | - '[ESPRESSO_THANK_YOU]' |
|
137 | - ); // already escaped ?> |
|
135 | + $thank_you_page_obj, |
|
136 | + '[ESPRESSO_THANK_YOU]' |
|
137 | + ); // already escaped ?> |
|
138 | 138 | </span> |
139 | 139 | <br /> |
140 | 140 | <p class="description"> |
141 | 141 | <?php printf( |
142 | - esc_html__( |
|
143 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
144 | - 'event_espresso' |
|
145 | - ), |
|
146 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_THANK_YOU]</span>' |
|
147 | - ); |
|
142 | + esc_html__( |
|
143 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
144 | + 'event_espresso' |
|
145 | + ), |
|
146 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_THANK_YOU]</span>' |
|
147 | + ); |
|
148 | 148 | ?> |
149 | 149 | </p> |
150 | 150 | <br /><br /> |
@@ -171,19 +171,19 @@ discard block |
||
171 | 171 | </select> |
172 | 172 | <span> |
173 | 173 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
174 | - $cancel_page_obj, |
|
175 | - '[ESPRESSO_CANCELLED]' |
|
176 | - ); // already escaped ?> |
|
174 | + $cancel_page_obj, |
|
175 | + '[ESPRESSO_CANCELLED]' |
|
176 | + ); // already escaped ?> |
|
177 | 177 | </span> |
178 | 178 | <br /> |
179 | 179 | <p class="description"> |
180 | 180 | <?php printf( |
181 | - esc_html__( |
|
182 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain a "cancelled transaction" message and the %s shortcode.', |
|
183 | - 'event_espresso' |
|
184 | - ), |
|
185 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CANCELLED]</span>' |
|
186 | - ); |
|
181 | + esc_html__( |
|
182 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain a "cancelled transaction" message and the %s shortcode.', |
|
183 | + 'event_espresso' |
|
184 | + ), |
|
185 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CANCELLED]</span>' |
|
186 | + ); |
|
187 | 187 | ?> |
188 | 188 | </p> |
189 | 189 | <br /><br /> |
@@ -206,19 +206,19 @@ discard block |
||
206 | 206 | <td> |
207 | 207 | <p class="description"> |
208 | 208 | <?php esc_html_e( |
209 | - 'Events are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
210 | - 'event_espresso' |
|
211 | - ) ?> |
|
209 | + 'Events are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
210 | + 'event_espresso' |
|
211 | + ) ?> |
|
212 | 212 | </p> |
213 | 213 | <p class="description"> |
214 | 214 | <?php printf( |
215 | - esc_html__( |
|
216 | - 'If you would still like your events on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
217 | - 'event_espresso' |
|
218 | - ), |
|
219 | - '<a href="admin.php?page=espresso_support">', |
|
220 | - '</a>' |
|
221 | - ); ?> |
|
215 | + esc_html__( |
|
216 | + 'If you would still like your events on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
217 | + 'event_espresso' |
|
218 | + ), |
|
219 | + '<a href="admin.php?page=espresso_support">', |
|
220 | + '</a>' |
|
221 | + ); ?> |
|
222 | 222 | </p> |
223 | 223 | <br /><br /> |
224 | 224 | </td> |
@@ -240,19 +240,19 @@ discard block |
||
240 | 240 | <td> |
241 | 241 | <p class="description"> |
242 | 242 | <?php esc_html_e( |
243 | - 'Venues are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
244 | - 'event_espresso' |
|
245 | - ) ?> |
|
243 | + 'Venues are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
244 | + 'event_espresso' |
|
245 | + ) ?> |
|
246 | 246 | </p> |
247 | 247 | <p class="description"> |
248 | 248 | <?php printf( |
249 | - esc_html__( |
|
250 | - 'If you would still like your venues on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
251 | - 'event_espresso' |
|
252 | - ), |
|
253 | - '<a href="admin.php?page=espresso_support">', |
|
254 | - '</a>' |
|
255 | - ); ?> |
|
249 | + esc_html__( |
|
250 | + 'If you would still like your venues on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
251 | + 'event_espresso' |
|
252 | + ), |
|
253 | + '<a href="admin.php?page=espresso_support">', |
|
254 | + '</a>' |
|
255 | + ); ?> |
|
256 | 256 | </p> |
257 | 257 | </td> |
258 | 258 | </tr> |
@@ -12,27 +12,27 @@ discard block |
||
12 | 12 | <th colspan="2"> |
13 | 13 | <span class="small-text"> |
14 | 14 | <?php printf( |
15 | - esc_html__('State Appears in%1$sDropdown Select Lists ', 'event_espresso'), |
|
16 | - '<br />' |
|
17 | - ); ?> |
|
15 | + esc_html__('State Appears in%1$sDropdown Select Lists ', 'event_espresso'), |
|
16 | + '<br />' |
|
17 | + ); ?> |
|
18 | 18 | </span> |
19 | 19 | </th> |
20 | 20 | </tr> |
21 | 21 | </thead> |
22 | 22 | <tbody> |
23 | 23 | <?php |
24 | - if ($states) { |
|
25 | - foreach ($states as $STA_ID => $state) { |
|
26 | - $STA_ID = absint($STA_ID); |
|
27 | - ?> |
|
24 | + if ($states) { |
|
25 | + foreach ($states as $STA_ID => $state) { |
|
26 | + $STA_ID = absint($STA_ID); |
|
27 | + ?> |
|
28 | 28 | <tr id="state-<?php echo $STA_ID; ?>-tr" class="country-state-columns"> |
29 | 29 | <?php |
30 | - foreach ($state['inputs'] as $ID => $input) { |
|
31 | - if ($ID != 'STA_ID' && $ID != 'CNT_ISO') { |
|
32 | - echo EEH_Form_Fields::generate_form_input($input); // already escaped |
|
33 | - } |
|
34 | - } |
|
35 | - ?> |
|
30 | + foreach ($state['inputs'] as $ID => $input) { |
|
31 | + if ($ID != 'STA_ID' && $ID != 'CNT_ISO') { |
|
32 | + echo EEH_Form_Fields::generate_form_input($input); // already escaped |
|
33 | + } |
|
34 | + } |
|
35 | + ?> |
|
36 | 36 | <td class="delete-state-td"> |
37 | 37 | <a class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" |
38 | 38 | id="delete-state-<?php echo $STA_ID; ?>-lnk" |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | </td> |
45 | 45 | </tr> |
46 | 46 | <?php |
47 | - } |
|
48 | - ?> |
|
47 | + } |
|
48 | + ?> |
|
49 | 49 | </tbody> |
50 | 50 | </table> |
51 | 51 | <br/> |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | /> |
58 | 58 | <br/> |
59 | 59 | <?php |
60 | - } |
|
61 | - ?> |
|
60 | + } |
|
61 | + ?> |
|
62 | 62 | <table class="form-table add-new-state-tbl"> |
63 | 63 | <tbody> |
64 | 64 | <tr> |
@@ -26,220 +26,220 @@ |
||
26 | 26 | class AdminOptionsSettings extends FormHandler |
27 | 27 | { |
28 | 28 | |
29 | - protected $template_args = array(); |
|
29 | + protected $template_args = array(); |
|
30 | 30 | |
31 | - /** |
|
32 | - * Form constructor. |
|
33 | - * |
|
34 | - * @param \EE_Registry $registry |
|
35 | - */ |
|
36 | - public function __construct(\EE_Registry $registry) |
|
37 | - { |
|
38 | - parent::__construct( |
|
39 | - esc_html__('Admin Options', 'event_espresso'), |
|
40 | - esc_html__('Admin Options', 'event_espresso'), |
|
41 | - 'admin_option_settings', |
|
42 | - '', |
|
43 | - FormHandler::DO_NOT_SETUP_FORM, |
|
44 | - $registry |
|
45 | - ); |
|
46 | - } |
|
31 | + /** |
|
32 | + * Form constructor. |
|
33 | + * |
|
34 | + * @param \EE_Registry $registry |
|
35 | + */ |
|
36 | + public function __construct(\EE_Registry $registry) |
|
37 | + { |
|
38 | + parent::__construct( |
|
39 | + esc_html__('Admin Options', 'event_espresso'), |
|
40 | + esc_html__('Admin Options', 'event_espresso'), |
|
41 | + 'admin_option_settings', |
|
42 | + '', |
|
43 | + FormHandler::DO_NOT_SETUP_FORM, |
|
44 | + $registry |
|
45 | + ); |
|
46 | + } |
|
47 | 47 | |
48 | 48 | |
49 | - /** |
|
50 | - * @param array $template_args |
|
51 | - */ |
|
52 | - public function setTemplateArgs(array $template_args) |
|
53 | - { |
|
54 | - $this->template_args = $template_args; |
|
55 | - } |
|
49 | + /** |
|
50 | + * @param array $template_args |
|
51 | + */ |
|
52 | + public function setTemplateArgs(array $template_args) |
|
53 | + { |
|
54 | + $this->template_args = $template_args; |
|
55 | + } |
|
56 | 56 | |
57 | 57 | |
58 | - /** |
|
59 | - * creates and returns the actual form |
|
60 | - * |
|
61 | - * @return EE_Form_Section_Proper |
|
62 | - * @throws EE_Error |
|
63 | - */ |
|
64 | - public function generate() |
|
65 | - { |
|
66 | - $form = new \EE_Form_Section_Proper( |
|
67 | - array( |
|
68 | - 'name' => 'admin_option_settings', |
|
69 | - 'html_id' => 'admin_option_settings', |
|
70 | - 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
71 | - 'subsections' => array( |
|
72 | - // 'help_tour_activation_hdr' => new EE_Form_Section_HTML( |
|
73 | - // EEH_HTML::h2( |
|
74 | - // esc_html__('Help Tour Global Activation', 'event_espresso') |
|
75 | - // . ' ' |
|
76 | - // . EEH_HTML::span( |
|
77 | - // EEH_Template::get_help_tab_link('help_tour_activation_info'), |
|
78 | - // 'help_tour_activation' |
|
79 | - // ), |
|
80 | - // '', |
|
81 | - // 'ee-admin-settings-hdr' |
|
82 | - // ) |
|
83 | - // ), |
|
84 | - // 'help_tour_activation' => new EE_Yes_No_Input( |
|
85 | - // array( |
|
86 | - // 'html_label_text' => esc_html__('Activate Global Help Tours?', 'event_espresso'), |
|
87 | - // 'html_help_text' => esc_html__( |
|
88 | - // 'This toggles whether the Event Espresso help tours are active globally or not.', |
|
89 | - // 'event_espresso' |
|
90 | - // ), |
|
91 | - // 'default' => isset($this->registry->CFG->admin->help_tour_activation) |
|
92 | - // ? filter_var($this->registry->CFG->admin->help_tour_activation, FILTER_VALIDATE_BOOLEAN) |
|
93 | - // : true, |
|
94 | - // 'required' => false, |
|
95 | - // ) |
|
96 | - // ), |
|
97 | - 'compatibility_hdr' => new EE_Form_Section_HTML( |
|
98 | - EEH_HTML::h2( |
|
99 | - esc_html__('Compatibility Settings', 'event_espresso'), |
|
100 | - '', |
|
101 | - 'ee-admin-settings-hdr' |
|
102 | - ) |
|
103 | - ), |
|
104 | - 'encode_session_data' => new EE_Yes_No_Input( |
|
105 | - array( |
|
106 | - 'html_label_text' => esc_html__('Encode Session Data?', 'event_espresso'), |
|
107 | - 'html_help_text' => sprintf( |
|
108 | - esc_html__( |
|
109 | - 'Some servers and database configurations can cause problems when saving the Event Espresso session data. Setting this option to "Yes" adds an extra layer of encoding to session data to prevent serialization errors, but can be incompatible with some server configurations.%1$sIf you receive "500 internal server" type errors during registration, try turning this option on.%1$sIf you get fatal PHP errors regarding missing base64 functions, then turn this option off.', |
|
110 | - 'event_espresso' |
|
111 | - ), |
|
112 | - '<br>' |
|
113 | - ), |
|
114 | - 'default' => $this->registry->CFG->admin->encode_session_data(), |
|
115 | - 'required' => false, |
|
116 | - ) |
|
117 | - ), |
|
118 | - ), |
|
119 | - ) |
|
120 | - ); |
|
121 | - if ( |
|
122 | - $this->registry->CAP->current_user_can( |
|
123 | - 'manage_options', |
|
124 | - 'display_admin_settings_options_promote_and_affiliate' |
|
125 | - ) |
|
126 | - ) { |
|
127 | - $form->add_subsections( |
|
128 | - array( |
|
129 | - 'promote_ee_hdr' => new EE_Form_Section_HTML( |
|
130 | - EEH_HTML::h2( |
|
131 | - esc_html__('Promote Event Espresso', 'event_espresso') |
|
132 | - . ' ' |
|
133 | - . EEH_HTML::span( |
|
134 | - EEH_Template::get_help_tab_link('affiliate_info'), |
|
135 | - 'affiliate_info' |
|
136 | - ), |
|
137 | - '', |
|
138 | - 'ee-admin-settings-hdr' |
|
139 | - ) |
|
140 | - ), |
|
141 | - 'show_reg_footer' => new EE_Yes_No_Input( |
|
142 | - array( |
|
143 | - 'html_label_text' => esc_html__( |
|
144 | - 'Link to Event Espresso in your Registration Page?', |
|
145 | - 'event_espresso' |
|
146 | - ) |
|
147 | - . EEH_Template::get_help_tab_link('email_validation_info'), |
|
148 | - 'html_help_text' => esc_html__( |
|
149 | - 'adds an unobtrusive link to Event Espresso\'s website in the footer of your registration form. Get an affiliate link (see below) and make money if people click the link and purchase Event Espresso.', |
|
150 | - 'event_espresso' |
|
151 | - ), |
|
152 | - 'default' => filter_var($this->registry->CFG->admin->show_reg_footer, FILTER_VALIDATE_BOOLEAN), |
|
153 | - 'required' => false, |
|
154 | - ) |
|
155 | - ), |
|
156 | - 'affiliate_id' => new EE_Text_Input( |
|
157 | - array( |
|
158 | - 'html_label_text' => sprintf( |
|
159 | - esc_html__('Event Espresso %1$sAffiliate%2$s ID', 'event_espresso'), |
|
160 | - '<a href="https://eventespresso.com/affiliates/" target="_blank">', |
|
161 | - '</a>' |
|
162 | - ), |
|
163 | - 'html_help_text' => esc_html__( |
|
164 | - 'Earn cash for promoting Event Espresso.', |
|
165 | - 'event_espresso' |
|
166 | - ), |
|
167 | - 'html_class' => 'regular-text', |
|
168 | - 'default' => isset($this->registry->CFG->admin->affiliate_id) |
|
169 | - ? $this->registry->CFG->admin->get_pretty('affiliate_id') |
|
170 | - : '', |
|
171 | - 'required' => false, |
|
172 | - ) |
|
173 | - ), |
|
174 | - ), |
|
175 | - // 'help_tour_activation_hdr' |
|
176 | - 'compatibility_hdr' |
|
177 | - ); |
|
178 | - } |
|
179 | - return $form; |
|
180 | - } |
|
58 | + /** |
|
59 | + * creates and returns the actual form |
|
60 | + * |
|
61 | + * @return EE_Form_Section_Proper |
|
62 | + * @throws EE_Error |
|
63 | + */ |
|
64 | + public function generate() |
|
65 | + { |
|
66 | + $form = new \EE_Form_Section_Proper( |
|
67 | + array( |
|
68 | + 'name' => 'admin_option_settings', |
|
69 | + 'html_id' => 'admin_option_settings', |
|
70 | + 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
71 | + 'subsections' => array( |
|
72 | + // 'help_tour_activation_hdr' => new EE_Form_Section_HTML( |
|
73 | + // EEH_HTML::h2( |
|
74 | + // esc_html__('Help Tour Global Activation', 'event_espresso') |
|
75 | + // . ' ' |
|
76 | + // . EEH_HTML::span( |
|
77 | + // EEH_Template::get_help_tab_link('help_tour_activation_info'), |
|
78 | + // 'help_tour_activation' |
|
79 | + // ), |
|
80 | + // '', |
|
81 | + // 'ee-admin-settings-hdr' |
|
82 | + // ) |
|
83 | + // ), |
|
84 | + // 'help_tour_activation' => new EE_Yes_No_Input( |
|
85 | + // array( |
|
86 | + // 'html_label_text' => esc_html__('Activate Global Help Tours?', 'event_espresso'), |
|
87 | + // 'html_help_text' => esc_html__( |
|
88 | + // 'This toggles whether the Event Espresso help tours are active globally or not.', |
|
89 | + // 'event_espresso' |
|
90 | + // ), |
|
91 | + // 'default' => isset($this->registry->CFG->admin->help_tour_activation) |
|
92 | + // ? filter_var($this->registry->CFG->admin->help_tour_activation, FILTER_VALIDATE_BOOLEAN) |
|
93 | + // : true, |
|
94 | + // 'required' => false, |
|
95 | + // ) |
|
96 | + // ), |
|
97 | + 'compatibility_hdr' => new EE_Form_Section_HTML( |
|
98 | + EEH_HTML::h2( |
|
99 | + esc_html__('Compatibility Settings', 'event_espresso'), |
|
100 | + '', |
|
101 | + 'ee-admin-settings-hdr' |
|
102 | + ) |
|
103 | + ), |
|
104 | + 'encode_session_data' => new EE_Yes_No_Input( |
|
105 | + array( |
|
106 | + 'html_label_text' => esc_html__('Encode Session Data?', 'event_espresso'), |
|
107 | + 'html_help_text' => sprintf( |
|
108 | + esc_html__( |
|
109 | + 'Some servers and database configurations can cause problems when saving the Event Espresso session data. Setting this option to "Yes" adds an extra layer of encoding to session data to prevent serialization errors, but can be incompatible with some server configurations.%1$sIf you receive "500 internal server" type errors during registration, try turning this option on.%1$sIf you get fatal PHP errors regarding missing base64 functions, then turn this option off.', |
|
110 | + 'event_espresso' |
|
111 | + ), |
|
112 | + '<br>' |
|
113 | + ), |
|
114 | + 'default' => $this->registry->CFG->admin->encode_session_data(), |
|
115 | + 'required' => false, |
|
116 | + ) |
|
117 | + ), |
|
118 | + ), |
|
119 | + ) |
|
120 | + ); |
|
121 | + if ( |
|
122 | + $this->registry->CAP->current_user_can( |
|
123 | + 'manage_options', |
|
124 | + 'display_admin_settings_options_promote_and_affiliate' |
|
125 | + ) |
|
126 | + ) { |
|
127 | + $form->add_subsections( |
|
128 | + array( |
|
129 | + 'promote_ee_hdr' => new EE_Form_Section_HTML( |
|
130 | + EEH_HTML::h2( |
|
131 | + esc_html__('Promote Event Espresso', 'event_espresso') |
|
132 | + . ' ' |
|
133 | + . EEH_HTML::span( |
|
134 | + EEH_Template::get_help_tab_link('affiliate_info'), |
|
135 | + 'affiliate_info' |
|
136 | + ), |
|
137 | + '', |
|
138 | + 'ee-admin-settings-hdr' |
|
139 | + ) |
|
140 | + ), |
|
141 | + 'show_reg_footer' => new EE_Yes_No_Input( |
|
142 | + array( |
|
143 | + 'html_label_text' => esc_html__( |
|
144 | + 'Link to Event Espresso in your Registration Page?', |
|
145 | + 'event_espresso' |
|
146 | + ) |
|
147 | + . EEH_Template::get_help_tab_link('email_validation_info'), |
|
148 | + 'html_help_text' => esc_html__( |
|
149 | + 'adds an unobtrusive link to Event Espresso\'s website in the footer of your registration form. Get an affiliate link (see below) and make money if people click the link and purchase Event Espresso.', |
|
150 | + 'event_espresso' |
|
151 | + ), |
|
152 | + 'default' => filter_var($this->registry->CFG->admin->show_reg_footer, FILTER_VALIDATE_BOOLEAN), |
|
153 | + 'required' => false, |
|
154 | + ) |
|
155 | + ), |
|
156 | + 'affiliate_id' => new EE_Text_Input( |
|
157 | + array( |
|
158 | + 'html_label_text' => sprintf( |
|
159 | + esc_html__('Event Espresso %1$sAffiliate%2$s ID', 'event_espresso'), |
|
160 | + '<a href="https://eventespresso.com/affiliates/" target="_blank">', |
|
161 | + '</a>' |
|
162 | + ), |
|
163 | + 'html_help_text' => esc_html__( |
|
164 | + 'Earn cash for promoting Event Espresso.', |
|
165 | + 'event_espresso' |
|
166 | + ), |
|
167 | + 'html_class' => 'regular-text', |
|
168 | + 'default' => isset($this->registry->CFG->admin->affiliate_id) |
|
169 | + ? $this->registry->CFG->admin->get_pretty('affiliate_id') |
|
170 | + : '', |
|
171 | + 'required' => false, |
|
172 | + ) |
|
173 | + ), |
|
174 | + ), |
|
175 | + // 'help_tour_activation_hdr' |
|
176 | + 'compatibility_hdr' |
|
177 | + ); |
|
178 | + } |
|
179 | + return $form; |
|
180 | + } |
|
181 | 181 | |
182 | 182 | |
183 | - /** |
|
184 | - * takes the generated form and displays it along with ony other non-form HTML that may be required |
|
185 | - * returns a string of HTML that can be directly echoed in a template |
|
186 | - * |
|
187 | - * @return string |
|
188 | - * @throws LogicException |
|
189 | - * @throws \EE_Error |
|
190 | - */ |
|
191 | - public function display() |
|
192 | - { |
|
193 | - add_filter( |
|
194 | - 'FHEE__EventEspresso_core_libraries_form_sections_form_handlers_FormHandler__display__before_form', |
|
195 | - array($this, 'handleOldAdminOptionsSettingsAction') |
|
196 | - ); |
|
197 | - return parent::display(); |
|
198 | - } |
|
183 | + /** |
|
184 | + * takes the generated form and displays it along with ony other non-form HTML that may be required |
|
185 | + * returns a string of HTML that can be directly echoed in a template |
|
186 | + * |
|
187 | + * @return string |
|
188 | + * @throws LogicException |
|
189 | + * @throws \EE_Error |
|
190 | + */ |
|
191 | + public function display() |
|
192 | + { |
|
193 | + add_filter( |
|
194 | + 'FHEE__EventEspresso_core_libraries_form_sections_form_handlers_FormHandler__display__before_form', |
|
195 | + array($this, 'handleOldAdminOptionsSettingsAction') |
|
196 | + ); |
|
197 | + return parent::display(); |
|
198 | + } |
|
199 | 199 | |
200 | 200 | |
201 | - /** |
|
202 | - * @return string |
|
203 | - */ |
|
204 | - public function handleOldAdminOptionsSettingsAction() |
|
205 | - { |
|
206 | - ob_start(); |
|
207 | - do_action('AHEE__admin_option_settings__template__before', $this->template_args); |
|
208 | - return ob_get_clean(); |
|
209 | - } |
|
201 | + /** |
|
202 | + * @return string |
|
203 | + */ |
|
204 | + public function handleOldAdminOptionsSettingsAction() |
|
205 | + { |
|
206 | + ob_start(); |
|
207 | + do_action('AHEE__admin_option_settings__template__before', $this->template_args); |
|
208 | + return ob_get_clean(); |
|
209 | + } |
|
210 | 210 | |
211 | 211 | |
212 | - /** |
|
213 | - * handles processing the form submission |
|
214 | - * returns true or false depending on whether the form was processed successfully or not |
|
215 | - * |
|
216 | - * @param array $form_data |
|
217 | - * @return bool |
|
218 | - * @throws InvalidFormSubmissionException |
|
219 | - * @throws EE_Error |
|
220 | - * @throws LogicException |
|
221 | - * @throws InvalidArgumentException |
|
222 | - * @throws InvalidDataTypeException |
|
223 | - */ |
|
224 | - public function process($form_data = array()) |
|
225 | - { |
|
226 | - // process form |
|
227 | - $valid_data = (array) parent::process($form_data); |
|
228 | - if (empty($valid_data)) { |
|
229 | - return false; |
|
230 | - } |
|
231 | - $this->registry->CFG->admin->show_reg_footer = isset($form_data['show_reg_footer']) |
|
232 | - ? absint($form_data['show_reg_footer']) |
|
233 | - : $this->registry->CFG->admin->show_reg_footer; |
|
234 | - $this->registry->CFG->admin->affiliate_id = isset($form_data['affiliate_id']) |
|
235 | - ? sanitize_text_field($form_data['affiliate_id']) |
|
236 | - : $this->registry->CFG->admin->affiliate_id; |
|
237 | - // $this->registry->CFG->admin->help_tour_activation = isset($form_data['help_tour_activation']) |
|
238 | - // ? absint($form_data['help_tour_activation']) |
|
239 | - // : $this->registry->CFG->admin->help_tour_activation; |
|
240 | - if (isset($form_data['encode_session_data'])) { |
|
241 | - $this->registry->CFG->admin->set_encode_session_data($form_data['encode_session_data']); |
|
242 | - } |
|
243 | - return false; |
|
244 | - } |
|
212 | + /** |
|
213 | + * handles processing the form submission |
|
214 | + * returns true or false depending on whether the form was processed successfully or not |
|
215 | + * |
|
216 | + * @param array $form_data |
|
217 | + * @return bool |
|
218 | + * @throws InvalidFormSubmissionException |
|
219 | + * @throws EE_Error |
|
220 | + * @throws LogicException |
|
221 | + * @throws InvalidArgumentException |
|
222 | + * @throws InvalidDataTypeException |
|
223 | + */ |
|
224 | + public function process($form_data = array()) |
|
225 | + { |
|
226 | + // process form |
|
227 | + $valid_data = (array) parent::process($form_data); |
|
228 | + if (empty($valid_data)) { |
|
229 | + return false; |
|
230 | + } |
|
231 | + $this->registry->CFG->admin->show_reg_footer = isset($form_data['show_reg_footer']) |
|
232 | + ? absint($form_data['show_reg_footer']) |
|
233 | + : $this->registry->CFG->admin->show_reg_footer; |
|
234 | + $this->registry->CFG->admin->affiliate_id = isset($form_data['affiliate_id']) |
|
235 | + ? sanitize_text_field($form_data['affiliate_id']) |
|
236 | + : $this->registry->CFG->admin->affiliate_id; |
|
237 | + // $this->registry->CFG->admin->help_tour_activation = isset($form_data['help_tour_activation']) |
|
238 | + // ? absint($form_data['help_tour_activation']) |
|
239 | + // : $this->registry->CFG->admin->help_tour_activation; |
|
240 | + if (isset($form_data['encode_session_data'])) { |
|
241 | + $this->registry->CFG->admin->set_encode_session_data($form_data['encode_session_data']); |
|
242 | + } |
|
243 | + return false; |
|
244 | + } |
|
245 | 245 | } |
@@ -7,35 +7,35 @@ discard block |
||
7 | 7 | </p> |
8 | 8 | <p class="ee-attention"> |
9 | 9 | <?php esc_html_e( |
10 | - 'Notice: Your log files may be publicly accessible. Logging should be turned off when its not needed.', |
|
11 | - 'event_espresso' |
|
12 | - ); ?> |
|
10 | + 'Notice: Your log files may be publicly accessible. Logging should be turned off when its not needed.', |
|
11 | + 'event_espresso' |
|
12 | + ); ?> |
|
13 | 13 | </p> |
14 | 14 | <ul> |
15 | 15 | <li> |
16 | 16 | <strong><?php esc_html_e('Enable Remote Logging', 'event_espresso'); ?></strong><br /> |
17 | 17 | <?php esc_html_e( |
18 | - 'Every time a page is accessed on your site, this option will send all Event Espresso registration form data, your server details, and debugging information to a remote server.', |
|
19 | - 'event_espresso' |
|
20 | - ); ?> |
|
18 | + 'Every time a page is accessed on your site, this option will send all Event Espresso registration form data, your server details, and debugging information to a remote server.', |
|
19 | + 'event_espresso' |
|
20 | + ); ?> |
|
21 | 21 | </li> |
22 | 22 | <li> |
23 | 23 | <strong><?php esc_html_e('Remote Logging URL', 'event_espresso'); ?></strong><br /> |
24 | 24 | <?php esc_html_e( |
25 | - 'This option sends all Event Espresso debugging data and get / post variables to the specified URL.', |
|
26 | - 'event_espresso' |
|
27 | - ); ?> |
|
25 | + 'This option sends all Event Espresso debugging data and get / post variables to the specified URL.', |
|
26 | + 'event_espresso' |
|
27 | + ); ?> |
|
28 | 28 | </li> |
29 | 29 | <li> |
30 | 30 | <strong><?php esc_html_e('Send Login Information (Optional)', 'event_espresso'); ?></strong><br /> |
31 | 31 | <?php esc_html_e( |
32 | - 'By using constants in th wp-config.php file, you can send a "key" and "pass" parameters in the remote logging action.', |
|
33 | - 'event_espresso' |
|
34 | - ); ?> |
|
32 | + 'By using constants in th wp-config.php file, you can send a "key" and "pass" parameters in the remote logging action.', |
|
33 | + 'event_espresso' |
|
34 | + ); ?> |
|
35 | 35 | <?php esc_html_e( |
36 | - 'Add the constants below to your wp-config.php file, above the line that says "That\'s all, stop editing! Happy blogging."', |
|
37 | - 'event_espresso' |
|
38 | - ); ?> |
|
36 | + 'Add the constants below to your wp-config.php file, above the line that says "That\'s all, stop editing! Happy blogging."', |
|
37 | + 'event_espresso' |
|
38 | + ); ?> |
|
39 | 39 | <pre> |
40 | 40 | define( 'EELOGGING_PASS', 'YOUR PASSWORD' ); |
41 | 41 | define( 'EELOGGING_KEY', 'YOUR REMOTE KEY' ); |
@@ -48,26 +48,26 @@ discard block |
||
48 | 48 | <ul> |
49 | 49 | <li> |
50 | 50 | <strong><?php esc_html_e( |
51 | - 'Link to Event Espresso in your Registration Page?', |
|
52 | - 'event_espresso' |
|
53 | - ); ?> |
|
51 | + 'Link to Event Espresso in your Registration Page?', |
|
52 | + 'event_espresso' |
|
53 | + ); ?> |
|
54 | 54 | </strong> |
55 | 55 | <br /> |
56 | 56 | <?php esc_html_e( |
57 | - 'Help spread the word about Event Espresso by allowing us to show a small link back to the to Event Espresso website in your registration page.', |
|
58 | - 'event_espresso' |
|
59 | - ); ?> |
|
57 | + 'Help spread the word about Event Espresso by allowing us to show a small link back to the to Event Espresso website in your registration page.', |
|
58 | + 'event_espresso' |
|
59 | + ); ?> |
|
60 | 60 | </li> |
61 | 61 | <li> |
62 | 62 | <strong><?php esc_html_e('Event Espresso Affiliate ID', 'event_espresso'); ?></strong><br /> |
63 | 63 | <?php printf( |
64 | - esc_html__( |
|
65 | - 'You can also monetize this link by signing up to our %1$saffiliate program%2$s and adding in your affiliate ID here.', |
|
66 | - 'event_espresso' |
|
67 | - ), |
|
68 | - '<a href="https://eventespresso.com/affiliates/">', |
|
69 | - '</a>' |
|
70 | - ); ?> |
|
64 | + esc_html__( |
|
65 | + 'You can also monetize this link by signing up to our %1$saffiliate program%2$s and adding in your affiliate ID here.', |
|
66 | + 'event_espresso' |
|
67 | + ), |
|
68 | + '<a href="https://eventespresso.com/affiliates/">', |
|
69 | + '</a>' |
|
70 | + ); ?> |
|
71 | 71 | </li> |
72 | 72 | </ul> |
73 | 73 | <!--<p><strong><?php /*esc_html_e('Help Tour Global Activation', 'event_espresso'); */ ?></strong></p> |
@@ -77,14 +77,14 @@ discard block |
||
77 | 77 | <p> |
78 | 78 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong> |
79 | 79 | <?php esc_html_e( |
80 | - 'Want to see a tour of this screen? Click on the Admin Options Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
81 | - 'event_espresso' |
|
82 | - ); ?> |
|
80 | + 'Want to see a tour of this screen? Click on the Admin Options Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
81 | + 'event_espresso' |
|
82 | + ); ?> |
|
83 | 83 | </p> |
84 | 84 | <p> |
85 | 85 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong><br /> |
86 | 86 | <?php esc_html_e( |
87 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
88 | - 'event_espresso' |
|
89 | - ); ?> |
|
87 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
88 | + 'event_espresso' |
|
89 | + ); ?> |
|
90 | 90 | </p> |
@@ -9,15 +9,15 @@ discard block |
||
9 | 9 | </p> |
10 | 10 | <p> |
11 | 11 | <?php esc_html_e( |
12 | - 'Select your country from the dropdown field. Selecting a different country will partially re-load the page and show updated information.', |
|
13 | - 'event_espresso' |
|
14 | - ); ?> |
|
12 | + 'Select your country from the dropdown field. Selecting a different country will partially re-load the page and show updated information.', |
|
13 | + 'event_espresso' |
|
14 | + ); ?> |
|
15 | 15 | </p> |
16 | 16 | <p class="ee-attention"> |
17 | 17 | <?php esc_html_e( |
18 | - 'Notice: Certain options in Country Details and States/Provinces use a 1 or 0 to indicate a selection. A value of 1 equals yes. A value of 0 equals no.', |
|
19 | - 'event_espresso' |
|
20 | - ); ?> |
|
18 | + 'Notice: Certain options in Country Details and States/Provinces use a 1 or 0 to indicate a selection. A value of 1 equals yes. A value of 0 equals no.', |
|
19 | + 'event_espresso' |
|
20 | + ); ?> |
|
21 | 21 | </p> |
22 | 22 | <p> |
23 | 23 | <strong><?php esc_html_e('Country Details', 'event_espresso'); ?></strong> |
@@ -26,35 +26,35 @@ discard block |
||
26 | 26 | <?php esc_html_e('Fine tune currency and contact data for your own country.', 'event_espresso'); ?> |
27 | 27 | <br /> |
28 | 28 | <?php esc_html_e( |
29 | - 'Your country selection affects the currency that is used throughout Event Espresso. For example, if your country is currently set to United States, then your currency is USD. If you were to switch your country to United Kingdom, then your currency would change to GBP. If you do change your country, be sure to update your contact information on the Your Organization page. This will ensure that your currency and organization information is up-to-date throughout Event Espresso.', |
|
30 | - 'event_espresso' |
|
31 | - ); ?> |
|
29 | + 'Your country selection affects the currency that is used throughout Event Espresso. For example, if your country is currently set to United States, then your currency is USD. If you were to switch your country to United Kingdom, then your currency would change to GBP. If you do change your country, be sure to update your contact information on the Your Organization page. This will ensure that your currency and organization information is up-to-date throughout Event Espresso.', |
|
30 | + 'event_espresso' |
|
31 | + ); ?> |
|
32 | 32 | </p> |
33 | 33 | <p> |
34 | 34 | <strong><?php esc_html_e('States/Provinces', 'event_espresso'); ?></strong> |
35 | 35 | </p> |
36 | 36 | <p> |
37 | 37 | <?php esc_html_e( |
38 | - 'Define the states/provinces that are used in Event Espresso. New states / provinces can be added using the Add New State/Province field.', |
|
39 | - 'event_espresso' |
|
40 | - ); ?> |
|
38 | + 'Define the states/provinces that are used in Event Espresso. New states / provinces can be added using the Add New State/Province field.', |
|
39 | + 'event_espresso' |
|
40 | + ); ?> |
|
41 | 41 | </p> |
42 | 42 | <p> |
43 | 43 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong> |
44 | 44 | <br /> |
45 | 45 | <?php printf( |
46 | - esc_html__( |
|
47 | - 'Want to see a tour of this screen? Click on the Countries Tour button which appears on the right side of the page. %1$sTo learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
48 | - 'event_espresso' |
|
49 | - ), |
|
50 | - '<br />' |
|
51 | - ); ?> |
|
46 | + esc_html__( |
|
47 | + 'Want to see a tour of this screen? Click on the Countries Tour button which appears on the right side of the page. %1$sTo learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
48 | + 'event_espresso' |
|
49 | + ), |
|
50 | + '<br />' |
|
51 | + ); ?> |
|
52 | 52 | </p> |
53 | 53 | <p> |
54 | 54 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong> |
55 | 55 | <br /> |
56 | 56 | <?php esc_html_e( |
57 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
58 | - 'event_espresso' |
|
59 | - ); ?> |
|
57 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
58 | + 'event_espresso' |
|
59 | + ); ?> |
|
60 | 60 | </p> |
61 | 61 | \ No newline at end of file |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | </p> |
4 | 4 | <p> |
5 | 5 | <?php esc_html_e( |
6 | - 'This page shows all critical pages that Event Espresso needs to work correctly.', |
|
7 | - 'event_espresso' |
|
8 | - ); ?> |
|
6 | + 'This page shows all critical pages that Event Espresso needs to work correctly.', |
|
7 | + 'event_espresso' |
|
8 | + ); ?> |
|
9 | 9 | </p> |
10 | 10 | <p><strong><?php esc_html_e('Shortcodes', 'event_espresso'); ?></strong></p> |
11 | 11 | <ul> |
@@ -13,77 +13,77 @@ discard block |
||
13 | 13 | <strong><?php esc_html_e('Registration Checkout Page', 'event_espresso'); ?></strong> |
14 | 14 | <br /> |
15 | 15 | <?php printf( |
16 | - esc_html__( |
|
17 | - 'This page displays all your events and is required. It is important that this page always contain the %s shortcode. It is not required to be in your navigation menu.', |
|
18 | - 'event_espresso' |
|
19 | - ), |
|
20 | - '<strong>[ESPRESSO_CHECKOUT]</strong>' |
|
21 | - ); ?> |
|
16 | + esc_html__( |
|
17 | + 'This page displays all your events and is required. It is important that this page always contain the %s shortcode. It is not required to be in your navigation menu.', |
|
18 | + 'event_espresso' |
|
19 | + ), |
|
20 | + '<strong>[ESPRESSO_CHECKOUT]</strong>' |
|
21 | + ); ?> |
|
22 | 22 | </li> |
23 | 23 | <li> |
24 | 24 | <strong><?php esc_html_e('Transactions Page', 'event_espresso'); ?></strong> |
25 | 25 | <br /> |
26 | 26 | <?php printf( |
27 | - esc_html__( |
|
28 | - 'This page processes the payments and is required. It should only contain the %s shortcode. No other content should be added and it should be hidden from your navigation menu.', |
|
29 | - 'event_espresso' |
|
30 | - ), |
|
31 | - '<strong>[ESPRESSO_TXN_PAGE]</strong>' |
|
32 | - ); ?> |
|
27 | + esc_html__( |
|
28 | + 'This page processes the payments and is required. It should only contain the %s shortcode. No other content should be added and it should be hidden from your navigation menu.', |
|
29 | + 'event_espresso' |
|
30 | + ), |
|
31 | + '<strong>[ESPRESSO_TXN_PAGE]</strong>' |
|
32 | + ); ?> |
|
33 | 33 | </li> |
34 | 34 | <li> |
35 | 35 | <strong><?php esc_html_e('Thank You Page', 'event_espresso'); ?></strong> |
36 | 36 | <br /> |
37 | 37 | <?php printf( |
38 | - esc_html__( |
|
39 | - 'This page is displayed after a successful transaction and is required. It should contain the %s shortcode. Additionally, you may customize this page by adding extra content to the page. It should be hidden from your navigation menu.', |
|
40 | - 'event_espresso' |
|
41 | - ), |
|
42 | - '<strong>[ESPRESSO_THANK_YOU]</strong>' |
|
43 | - ); ?> |
|
38 | + esc_html__( |
|
39 | + 'This page is displayed after a successful transaction and is required. It should contain the %s shortcode. Additionally, you may customize this page by adding extra content to the page. It should be hidden from your navigation menu.', |
|
40 | + 'event_espresso' |
|
41 | + ), |
|
42 | + '<strong>[ESPRESSO_THANK_YOU]</strong>' |
|
43 | + ); ?> |
|
44 | 44 | </li> |
45 | 45 | <li> |
46 | 46 | <strong><?php esc_html_e('Cancel / Return Page', 'event_espresso'); ?></strong> |
47 | 47 | <br /> |
48 | 48 | <?php printf( |
49 | - esc_html__( |
|
50 | - 'This page is displayed after an unsuccessful transaction and is required. It should contain the %s shortcode. Additionally, you may customize this page by adding extra content to the page. It should be hidden from your navigation menu.', |
|
51 | - 'event_espresso' |
|
52 | - ), |
|
53 | - '<strong>[ESPRESSO_CANCELLED]</strong>' |
|
54 | - ); ?> |
|
49 | + esc_html__( |
|
50 | + 'This page is displayed after an unsuccessful transaction and is required. It should contain the %s shortcode. Additionally, you may customize this page by adding extra content to the page. It should be hidden from your navigation menu.', |
|
51 | + 'event_espresso' |
|
52 | + ), |
|
53 | + '<strong>[ESPRESSO_CANCELLED]</strong>' |
|
54 | + ); ?> |
|
55 | 55 | </li> |
56 | 56 | <li> |
57 | 57 | <strong><?php esc_html_e('Event List', 'event_espresso'); ?></strong> |
58 | 58 | <br /> |
59 | 59 | <?php printf( |
60 | - esc_html__( |
|
61 | - 'If you would like to style the look of your events archive page, then follow the WordPress instructions for %1$screating a custom template for archive pages%2$s.', |
|
62 | - 'event_espresso' |
|
63 | - ), |
|
64 | - '<a href="https://codex.wordpress.org/Post_Type_Templates">', |
|
65 | - '</a>' |
|
66 | - ); ?> |
|
60 | + esc_html__( |
|
61 | + 'If you would like to style the look of your events archive page, then follow the WordPress instructions for %1$screating a custom template for archive pages%2$s.', |
|
62 | + 'event_espresso' |
|
63 | + ), |
|
64 | + '<a href="https://codex.wordpress.org/Post_Type_Templates">', |
|
65 | + '</a>' |
|
66 | + ); ?> |
|
67 | 67 | <ul> |
68 | 68 | <li style="list-style-type: circle;"> |
69 | 69 | <?php printf( |
70 | - esc_html__( |
|
71 | - 'Build a template for your events - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
72 | - 'event_espresso' |
|
73 | - ), |
|
74 | - '<strong>archive-espresso_events.php</strong>', |
|
75 | - 'wp-content/themes/twenty-fourteen' |
|
76 | - ); ?> |
|
70 | + esc_html__( |
|
71 | + 'Build a template for your events - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
72 | + 'event_espresso' |
|
73 | + ), |
|
74 | + '<strong>archive-espresso_events.php</strong>', |
|
75 | + 'wp-content/themes/twenty-fourteen' |
|
76 | + ); ?> |
|
77 | 77 | </li> |
78 | 78 | <li style="list-style-type: circle;"> |
79 | 79 | <?php printf( |
80 | - esc_html__( |
|
81 | - 'Build a template for a single event - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
82 | - 'event_espresso' |
|
83 | - ), |
|
84 | - '<strong>single-espresso_events.php</strong>', |
|
85 | - 'wp-content/themes/twenty-fourteen' |
|
86 | - ); ?> |
|
80 | + esc_html__( |
|
81 | + 'Build a template for a single event - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
82 | + 'event_espresso' |
|
83 | + ), |
|
84 | + '<strong>single-espresso_events.php</strong>', |
|
85 | + 'wp-content/themes/twenty-fourteen' |
|
86 | + ); ?> |
|
87 | 87 | </li> |
88 | 88 | </ul> |
89 | 89 | </li> |
@@ -91,33 +91,33 @@ discard block |
||
91 | 91 | <strong><?php esc_html_e('Venue List', 'event_espresso'); ?></strong> |
92 | 92 | <br /> |
93 | 93 | <?php printf( |
94 | - esc_html__( |
|
95 | - 'If you would like to style the look of your venues archive page, then follow the WordPress instructions for %1$screating a custom template for archive pages%2$s.', |
|
96 | - 'event_espresso' |
|
97 | - ), |
|
98 | - '<a href="https://codex.wordpress.org/Post_Type_Templates">', |
|
99 | - '</a>' |
|
100 | - ); ?> |
|
94 | + esc_html__( |
|
95 | + 'If you would like to style the look of your venues archive page, then follow the WordPress instructions for %1$screating a custom template for archive pages%2$s.', |
|
96 | + 'event_espresso' |
|
97 | + ), |
|
98 | + '<a href="https://codex.wordpress.org/Post_Type_Templates">', |
|
99 | + '</a>' |
|
100 | + ); ?> |
|
101 | 101 | <ul> |
102 | 102 | <li style="list-style-type: circle;"> |
103 | 103 | <?php printf( |
104 | - esc_html__( |
|
105 | - 'Build a template for your events - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
106 | - 'event_espresso' |
|
107 | - ), |
|
108 | - '<strong>archive-espresso_venues.php</strong>', |
|
109 | - 'wp-content/themes/twenty-fourteen' |
|
110 | - ); ?> |
|
104 | + esc_html__( |
|
105 | + 'Build a template for your events - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
106 | + 'event_espresso' |
|
107 | + ), |
|
108 | + '<strong>archive-espresso_venues.php</strong>', |
|
109 | + 'wp-content/themes/twenty-fourteen' |
|
110 | + ); ?> |
|
111 | 111 | </li> |
112 | 112 | <li style="list-style-type: circle;"> |
113 | 113 | <?php printf( |
114 | - esc_html__( |
|
115 | - 'Build a template for a single event - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
116 | - 'event_espresso' |
|
117 | - ), |
|
118 | - '<strong>single-espresso_venues.php</strong>', |
|
119 | - 'wp-content/themes/twenty-fourteen' |
|
120 | - ); ?> |
|
114 | + esc_html__( |
|
115 | + 'Build a template for a single event - create a theme template named %1$s Then place it in your theme\'s root directory. For the default WordPress Twenty Thirteen theme, this location will be %2$s.', |
|
116 | + 'event_espresso' |
|
117 | + ), |
|
118 | + '<strong>single-espresso_venues.php</strong>', |
|
119 | + 'wp-content/themes/twenty-fourteen' |
|
120 | + ); ?> |
|
121 | 121 | </li> |
122 | 122 | </ul> |
123 | 123 | </li> |
@@ -127,18 +127,18 @@ discard block |
||
127 | 127 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong> |
128 | 128 | <br /> |
129 | 129 | <?php printf( |
130 | - esc_html__( |
|
131 | - 'Want to see a tour of this screen? Click on the Critical Pages Tour button which appears on the right side of the page. %1$sTo learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
132 | - 'event_espresso' |
|
133 | - ), |
|
134 | - '<br />' |
|
135 | - ); ?> |
|
130 | + esc_html__( |
|
131 | + 'Want to see a tour of this screen? Click on the Critical Pages Tour button which appears on the right side of the page. %1$sTo learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
132 | + 'event_espresso' |
|
133 | + ), |
|
134 | + '<br />' |
|
135 | + ); ?> |
|
136 | 136 | </p> |
137 | 137 | <p> |
138 | 138 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong> |
139 | 139 | <br /> |
140 | 140 | <?php esc_html_e( |
141 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
142 | - 'event_espresso' |
|
143 | - ); ?> |
|
141 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
142 | + 'event_espresso' |
|
143 | + ); ?> |
|
144 | 144 | </p> |
145 | 145 | \ No newline at end of file |
@@ -17,47 +17,47 @@ |
||
17 | 17 | </h3> |
18 | 18 | <p> |
19 | 19 | <?php |
20 | - echo printf( |
|
21 | - esc_html__('%3$sVersion %1$s%4$s is a %2$s bug fix/enhancement release.', 'event_espresso'), |
|
22 | - EVENT_ESPRESSO_VERSION, |
|
23 | - $type, |
|
24 | - '<strong>', |
|
25 | - '</strong>' |
|
26 | - ); |
|
27 | - printf( |
|
28 | - esc_html__('For more information, see %1$sthe release notes%2$s.', 'event_espresso'), |
|
29 | - '<a href="https://eventespresso.com/wiki/ee4-changelog/#' . $version . '">', |
|
30 | - '</a>' |
|
31 | - ); |
|
32 | - ?> |
|
20 | + echo printf( |
|
21 | + esc_html__('%3$sVersion %1$s%4$s is a %2$s bug fix/enhancement release.', 'event_espresso'), |
|
22 | + EVENT_ESPRESSO_VERSION, |
|
23 | + $type, |
|
24 | + '<strong>', |
|
25 | + '</strong>' |
|
26 | + ); |
|
27 | + printf( |
|
28 | + esc_html__('For more information, see %1$sthe release notes%2$s.', 'event_espresso'), |
|
29 | + '<a href="https://eventespresso.com/wiki/ee4-changelog/#' . $version . '">', |
|
30 | + '</a>' |
|
31 | + ); |
|
32 | + ?> |
|
33 | 33 | </p> |
34 | 34 | </div> |
35 | 35 | |
36 | 36 | <div class="changelog"> |
37 | 37 | <?php |
38 | - // maintenance mode on? |
|
39 | - if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
40 | - ?> |
|
38 | + // maintenance mode on? |
|
39 | + if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
40 | + ?> |
|
41 | 41 | <div class="ee-attention"> |
42 | 42 | <h2 class="ee-maintenance-mode-callout"> |
43 | 43 | <?php esc_html_e('Event Espresso is in full maintenance mode.', 'event_espresso'); ?> |
44 | 44 | </h2> |
45 | 45 | <p> |
46 | 46 | <?php |
47 | - printf( |
|
48 | - esc_html__( |
|
49 | - 'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %sEvent Espresso Maintenance%s page.', |
|
50 | - 'event_espresso' |
|
51 | - ), |
|
52 | - '<a href="admin.php?page=espresso_maintenance_settings">', |
|
53 | - '</a>' |
|
54 | - ); |
|
55 | - ?> |
|
47 | + printf( |
|
48 | + esc_html__( |
|
49 | + 'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %sEvent Espresso Maintenance%s page.', |
|
50 | + 'event_espresso' |
|
51 | + ), |
|
52 | + '<a href="admin.php?page=espresso_maintenance_settings">', |
|
53 | + '</a>' |
|
54 | + ); |
|
55 | + ?> |
|
56 | 56 | </p> |
57 | 57 | </div> |
58 | 58 | <?php |
59 | - } |
|
60 | - ?> |
|
59 | + } |
|
60 | + ?> |
|
61 | 61 | |
62 | 62 | <h2 class="about-headline-callout">Initial EE4 Decaf (free) Release</h2> |
63 | 63 | <p>This is the initial release of EE4 Decaf. This is the free version of our very powerful event registration and |
@@ -26,7 +26,7 @@ |
||
26 | 26 | ); |
27 | 27 | printf( |
28 | 28 | esc_html__('For more information, see %1$sthe release notes%2$s.', 'event_espresso'), |
29 | - '<a href="https://eventespresso.com/wiki/ee4-changelog/#' . $version . '">', |
|
29 | + '<a href="https://eventespresso.com/wiki/ee4-changelog/#'.$version.'">', |
|
30 | 30 | '</a>' |
31 | 31 | ); |
32 | 32 | ?> |
@@ -1,19 +1,19 @@ discard block |
||
1 | 1 | <h2 style="text-align: left;"><?php esc_html_e('Who uses Event Espresso?', 'event_espresso'); ?></h2> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - esc_html__( |
|
5 | - 'Event Espresso is used by over 40,000 event organizers across the world. They host %sconferences%s, %sart classes%s, training courses, concerts, fundraisers, workshops, %sfilm festivals%s, %spaint and wine%s, and more.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<a href="https://eventespresso.com/use-cases/conferences/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
9 | - '</a>', |
|
10 | - '<a href="https://eventespresso.com/use-cases/art-classes/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
11 | - '</a>', |
|
12 | - '<a href="https://eventespresso.com/use-cases/film-festival-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
13 | - '</a>', |
|
14 | - '<a href="https://eventespresso.com/use-cases/paint-wine-party-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
15 | - '</a>' |
|
16 | - ); ?> |
|
4 | + esc_html__( |
|
5 | + 'Event Espresso is used by over 40,000 event organizers across the world. They host %sconferences%s, %sart classes%s, training courses, concerts, fundraisers, workshops, %sfilm festivals%s, %spaint and wine%s, and more.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<a href="https://eventespresso.com/use-cases/conferences/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
9 | + '</a>', |
|
10 | + '<a href="https://eventespresso.com/use-cases/art-classes/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
11 | + '</a>', |
|
12 | + '<a href="https://eventespresso.com/use-cases/film-festival-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
13 | + '</a>', |
|
14 | + '<a href="https://eventespresso.com/use-cases/paint-wine-party-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
15 | + '</a>' |
|
16 | + ); ?> |
|
17 | 17 | </p> |
18 | 18 | |
19 | 19 | <h2 class="about-headline-callout"> |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | </div> |
207 | 207 | <?php |
208 | 208 | if (! defined('EE_CAF_URL')) { |
209 | - ?> |
|
209 | + ?> |
|
210 | 210 | <div align="right"> |
211 | 211 | <a |
212 | 212 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | </div> |
398 | 398 | <?php |
399 | 399 | if (! defined('EE_CAF_URL')) { |
400 | - ?> |
|
400 | + ?> |
|
401 | 401 | <div align="right"> |
402 | 402 | <a href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
403 | 403 | target="_blank" |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | </div> |
572 | 572 | <?php |
573 | 573 | if (! defined('EE_CAF_URL')) { |
574 | - ?> |
|
574 | + ?> |
|
575 | 575 | <div align="right"> |
576 | 576 | <a href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
577 | 577 | target="_blank" |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | |
206 | 206 | </div> |
207 | 207 | <?php |
208 | -if (! defined('EE_CAF_URL')) { |
|
208 | +if ( ! defined('EE_CAF_URL')) { |
|
209 | 209 | ?> |
210 | 210 | <div align="right"> |
211 | 211 | <a |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | |
397 | 397 | </div> |
398 | 398 | <?php |
399 | -if (! defined('EE_CAF_URL')) { |
|
399 | +if ( ! defined('EE_CAF_URL')) { |
|
400 | 400 | ?> |
401 | 401 | <div align="right"> |
402 | 402 | <a href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | </div> |
571 | 571 | </div> |
572 | 572 | <?php |
573 | -if (! defined('EE_CAF_URL')) { |
|
573 | +if ( ! defined('EE_CAF_URL')) { |
|
574 | 574 | ?> |
575 | 575 | <div align="right"> |
576 | 576 | <a href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |