@@ -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( |
@@ -17,128 +17,128 @@ discard block |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - protected function _init_page_props() |
|
21 | - { |
|
22 | - $this->page_slug = EE_ABOUT_PG_SLUG; |
|
23 | - $this->page_label = esc_html__('About Event Espresso', 'event_espresso'); |
|
24 | - $this->_admin_base_url = EE_ABOUT_ADMIN_URL; |
|
25 | - $this->_admin_base_path = EE_ABOUT_ADMIN; |
|
26 | - } |
|
27 | - |
|
28 | - |
|
29 | - protected function _ajax_hooks() |
|
30 | - { |
|
31 | - // todo: all hooks for ajax goes here. |
|
32 | - } |
|
33 | - |
|
34 | - |
|
35 | - protected function _define_page_props() |
|
36 | - { |
|
37 | - $this->_labels = array(); |
|
38 | - $this->_admin_page_title = $this->page_label; |
|
39 | - } |
|
40 | - |
|
41 | - |
|
42 | - protected function _set_page_routes() |
|
43 | - { |
|
44 | - $this->_page_routes = array( |
|
45 | - 'default' => array( |
|
46 | - 'func' => '_overview', |
|
47 | - 'capability' => 'manage_options', |
|
48 | - ), |
|
49 | - // 'overview' => '_overview', |
|
50 | - // 'func' => '_overview', |
|
51 | - // 'capability' => 'ee_read_ee' |
|
52 | - // ), |
|
53 | - 'credits' => array( |
|
54 | - 'func' => '_credits', |
|
55 | - 'capability' => 'manage_options', |
|
56 | - ), |
|
57 | - |
|
58 | - 'decafvpro' => array( |
|
59 | - 'func' => '_decafvpro', |
|
60 | - 'capability' => 'manage_options', |
|
61 | - ), |
|
62 | - 'reviews' => array( |
|
63 | - 'func' => '_reviews', |
|
64 | - 'capability' => 'manage_options', |
|
65 | - ), |
|
66 | - ); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - protected function _set_page_config() |
|
71 | - { |
|
72 | - $this->_page_config = array( |
|
73 | - /*'default' => array( |
|
20 | + protected function _init_page_props() |
|
21 | + { |
|
22 | + $this->page_slug = EE_ABOUT_PG_SLUG; |
|
23 | + $this->page_label = esc_html__('About Event Espresso', 'event_espresso'); |
|
24 | + $this->_admin_base_url = EE_ABOUT_ADMIN_URL; |
|
25 | + $this->_admin_base_path = EE_ABOUT_ADMIN; |
|
26 | + } |
|
27 | + |
|
28 | + |
|
29 | + protected function _ajax_hooks() |
|
30 | + { |
|
31 | + // todo: all hooks for ajax goes here. |
|
32 | + } |
|
33 | + |
|
34 | + |
|
35 | + protected function _define_page_props() |
|
36 | + { |
|
37 | + $this->_labels = array(); |
|
38 | + $this->_admin_page_title = $this->page_label; |
|
39 | + } |
|
40 | + |
|
41 | + |
|
42 | + protected function _set_page_routes() |
|
43 | + { |
|
44 | + $this->_page_routes = array( |
|
45 | + 'default' => array( |
|
46 | + 'func' => '_overview', |
|
47 | + 'capability' => 'manage_options', |
|
48 | + ), |
|
49 | + // 'overview' => '_overview', |
|
50 | + // 'func' => '_overview', |
|
51 | + // 'capability' => 'ee_read_ee' |
|
52 | + // ), |
|
53 | + 'credits' => array( |
|
54 | + 'func' => '_credits', |
|
55 | + 'capability' => 'manage_options', |
|
56 | + ), |
|
57 | + |
|
58 | + 'decafvpro' => array( |
|
59 | + 'func' => '_decafvpro', |
|
60 | + 'capability' => 'manage_options', |
|
61 | + ), |
|
62 | + 'reviews' => array( |
|
63 | + 'func' => '_reviews', |
|
64 | + 'capability' => 'manage_options', |
|
65 | + ), |
|
66 | + ); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + protected function _set_page_config() |
|
71 | + { |
|
72 | + $this->_page_config = array( |
|
73 | + /*'default' => array( |
|
74 | 74 | 'nav' => array( |
75 | 75 | 'label' => __('What\'s New', 'event_espresso'), |
76 | 76 | 'order' => 10), |
77 | 77 | 'require_nonce' => FALSE |
78 | 78 | ),*/ |
79 | - // 'overview' => array( |
|
80 | - 'default' => array( |
|
81 | - 'nav' => array( |
|
82 | - 'label' => esc_html__('About', 'event_espresso'), |
|
83 | - 'order' => 20, |
|
84 | - ), |
|
85 | - 'require_nonce' => false, |
|
86 | - ), |
|
87 | - 'credits' => array( |
|
88 | - 'nav' => array( |
|
89 | - 'label' => esc_html__('Credits', 'event_espresso'), |
|
90 | - 'order' => 30, |
|
91 | - ), |
|
92 | - 'require_nonce' => false, |
|
93 | - ), |
|
94 | - |
|
95 | - 'decafvpro' => array( |
|
96 | - 'nav' => array( |
|
97 | - 'label' => esc_html__('Decaf vs Regular', 'event_espresso'), |
|
98 | - 'order' => 40, |
|
99 | - ), |
|
100 | - 'require_nonce' => false, |
|
101 | - ), |
|
102 | - 'reviews' => array( |
|
103 | - 'nav' => array( |
|
104 | - 'label' => esc_html__('Reviews', 'event_espresso'), |
|
105 | - 'order' => 50, |
|
106 | - ), |
|
107 | - 'require_nonce' => false, |
|
108 | - ), |
|
109 | - ); |
|
110 | - } |
|
111 | - |
|
112 | - |
|
113 | - // none of the below group are currently used for Support pages |
|
114 | - protected function _add_screen_options() |
|
115 | - { |
|
116 | - } |
|
117 | - |
|
118 | - protected function _add_feature_pointers() |
|
119 | - { |
|
120 | - } |
|
121 | - |
|
122 | - public function admin_init() |
|
123 | - { |
|
124 | - } |
|
125 | - |
|
126 | - public function admin_notices() |
|
127 | - { |
|
128 | - } |
|
129 | - |
|
130 | - public function admin_footer_scripts() |
|
131 | - { |
|
132 | - } |
|
133 | - |
|
134 | - public function load_scripts_styles() |
|
135 | - { |
|
136 | - } |
|
137 | - |
|
138 | - |
|
139 | - protected function _whats_new() |
|
140 | - { |
|
141 | - /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE; |
|
79 | + // 'overview' => array( |
|
80 | + 'default' => array( |
|
81 | + 'nav' => array( |
|
82 | + 'label' => esc_html__('About', 'event_espresso'), |
|
83 | + 'order' => 20, |
|
84 | + ), |
|
85 | + 'require_nonce' => false, |
|
86 | + ), |
|
87 | + 'credits' => array( |
|
88 | + 'nav' => array( |
|
89 | + 'label' => esc_html__('Credits', 'event_espresso'), |
|
90 | + 'order' => 30, |
|
91 | + ), |
|
92 | + 'require_nonce' => false, |
|
93 | + ), |
|
94 | + |
|
95 | + 'decafvpro' => array( |
|
96 | + 'nav' => array( |
|
97 | + 'label' => esc_html__('Decaf vs Regular', 'event_espresso'), |
|
98 | + 'order' => 40, |
|
99 | + ), |
|
100 | + 'require_nonce' => false, |
|
101 | + ), |
|
102 | + 'reviews' => array( |
|
103 | + 'nav' => array( |
|
104 | + 'label' => esc_html__('Reviews', 'event_espresso'), |
|
105 | + 'order' => 50, |
|
106 | + ), |
|
107 | + 'require_nonce' => false, |
|
108 | + ), |
|
109 | + ); |
|
110 | + } |
|
111 | + |
|
112 | + |
|
113 | + // none of the below group are currently used for Support pages |
|
114 | + protected function _add_screen_options() |
|
115 | + { |
|
116 | + } |
|
117 | + |
|
118 | + protected function _add_feature_pointers() |
|
119 | + { |
|
120 | + } |
|
121 | + |
|
122 | + public function admin_init() |
|
123 | + { |
|
124 | + } |
|
125 | + |
|
126 | + public function admin_notices() |
|
127 | + { |
|
128 | + } |
|
129 | + |
|
130 | + public function admin_footer_scripts() |
|
131 | + { |
|
132 | + } |
|
133 | + |
|
134 | + public function load_scripts_styles() |
|
135 | + { |
|
136 | + } |
|
137 | + |
|
138 | + |
|
139 | + protected function _whats_new() |
|
140 | + { |
|
141 | + /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE; |
|
142 | 142 | $steps = $steps !== FALSE ? $steps : ''; |
143 | 143 | $this->_admin_page_title = sprintf( __('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION ); |
144 | 144 | $settings_message = $steps; |
@@ -146,168 +146,168 @@ discard block |
||
146 | 146 | $template = EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php'; |
147 | 147 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
148 | 148 | $this->display_about_admin_page();*/ |
149 | - } |
|
149 | + } |
|
150 | 150 | |
151 | 151 | |
152 | - protected function _overview() |
|
153 | - { |
|
154 | - /*$this->_template_args['admin_page_title'] = __('About Event Espresso', 'event_espresso'); |
|
152 | + protected function _overview() |
|
153 | + { |
|
154 | + /*$this->_template_args['admin_page_title'] = __('About Event Espresso', 'event_espresso'); |
|
155 | 155 | $this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', 'event_espresso'); |
156 | 156 | $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
157 | 157 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
158 | 158 | $this->display_about_admin_page();*/ |
159 | 159 | |
160 | - // Copied from _whats_new() |
|
161 | - $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
162 | - ? $this->_get_started_steps() : false; |
|
163 | - $steps = $steps !== false ? $steps : ''; |
|
164 | - $this->_admin_page_title = sprintf( |
|
165 | - esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
166 | - EVENT_ESPRESSO_VERSION |
|
167 | - ); |
|
168 | - $settings_message = $steps; |
|
169 | - $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
170 | - 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
|
171 | - 'event_espresso' |
|
172 | - ) . $settings_message; |
|
173 | - $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
174 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
175 | - $template, |
|
176 | - $this->_template_args, |
|
177 | - true |
|
178 | - ); |
|
179 | - $this->display_about_admin_page(); |
|
180 | - } |
|
181 | - |
|
182 | - |
|
183 | - protected function _get_started_steps() |
|
184 | - { |
|
185 | - $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
186 | - $step_one = '<p>' |
|
187 | - . sprintf( |
|
188 | - esc_html__( |
|
189 | - '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.', |
|
190 | - 'event_espresso' |
|
191 | - ), |
|
192 | - '<strong>', |
|
193 | - '</strong>', |
|
194 | - '<a href="admin.php?page=espresso_general_settings">', |
|
195 | - '</a>' |
|
196 | - ) . '</strong></p>'; |
|
197 | - $step_two = '<p>' |
|
198 | - . sprintf( |
|
199 | - esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
|
200 | - '<strong>', |
|
201 | - '</strong>', |
|
202 | - '<a href="admin.php?page=espresso_payment_settings">', |
|
203 | - '</a>' |
|
204 | - ) . '</strong></p>'; |
|
205 | - $step_three = '<p>' |
|
206 | - . sprintf( |
|
207 | - esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
|
208 | - '<strong>', |
|
209 | - '</strong>', |
|
210 | - '<a href="admin.php?page=espresso_events&action=create_new">', |
|
211 | - '</a>' |
|
212 | - ) . '</strong></p>'; |
|
213 | - |
|
214 | - // done? |
|
215 | - $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
|
216 | - $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active( |
|
217 | - EEM_Payment_Method::scope_cart, |
|
218 | - array(array('PMD_type' => 'Invoice')) |
|
219 | - ); |
|
220 | - $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart); |
|
221 | - // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or |
|
222 | - // if only the invoice is active but it's clearly been updated |
|
223 | - $done_step_two = $active_pms_count > 1 || |
|
224 | - ($active_pms_count === 1 && ! $active_invoice_pm) || |
|
225 | - ($active_invoice_pm instanceof EE_Payment_Method && ( |
|
226 | - $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') || |
|
227 | - $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') || |
|
228 | - $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') || |
|
229 | - $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') || |
|
230 | - $active_invoice_pm->get_extra_meta('page_extra_info', true, '') |
|
231 | - ) |
|
232 | - ); |
|
233 | - $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false; |
|
234 | - |
|
235 | - // if ALL steps are done, let's just return FALSE so we don't display anything |
|
236 | - if ($done_step_one && $done_step_two && $done_step_three) { |
|
237 | - return false; |
|
238 | - } |
|
239 | - |
|
240 | - // now let's put it together |
|
241 | - $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | - $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
243 | - $steps .= sprintf( |
|
244 | - '%s' . $step_three . '%s', |
|
245 | - $done_step_three ? '<strike>' : '', |
|
246 | - $done_step_three ? '</strike>' : '' |
|
247 | - ); |
|
248 | - |
|
249 | - return $steps; |
|
250 | - } |
|
251 | - |
|
252 | - |
|
253 | - protected function _credits() |
|
254 | - { |
|
255 | - $this->_template_args['admin_page_title'] = sprintf( |
|
256 | - __('Welcome to Event Espresso %s', 'event_espresso'), |
|
257 | - EVENT_ESPRESSO_VERSION |
|
258 | - ); |
|
259 | - $this->_template_args['admin_page_subtitle'] = __( |
|
260 | - 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
|
261 | - 'event_espresso' |
|
262 | - ); |
|
263 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
264 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
265 | - $template, |
|
266 | - $this->_template_args, |
|
267 | - true |
|
268 | - ); |
|
269 | - $this->display_about_admin_page(); |
|
270 | - } |
|
271 | - |
|
272 | - |
|
273 | - protected function _decafvpro() |
|
274 | - { |
|
275 | - $this->_template_args['admin_page_title'] = sprintf( |
|
276 | - __('Welcome to Event Espresso %s', 'event_espresso'), |
|
277 | - EVENT_ESPRESSO_VERSION |
|
278 | - ); |
|
279 | - $this->_template_args['admin_page_subtitle'] = sprintf( |
|
280 | - __( |
|
281 | - 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
282 | - 'event_espresso' |
|
283 | - ), |
|
284 | - '<em>', |
|
285 | - '</em>', |
|
286 | - '<strong>', |
|
287 | - '</strong>' |
|
288 | - ); |
|
289 | - $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
290 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
291 | - $template, |
|
292 | - $this->_template_args, |
|
293 | - true |
|
294 | - ); |
|
295 | - $this->display_about_admin_page(); |
|
296 | - } |
|
297 | - |
|
298 | - protected function _reviews() |
|
299 | - { |
|
300 | - $this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
301 | - $this->_template_args['admin_page_subtitle'] = __( |
|
302 | - 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
303 | - 'event_espresso' |
|
304 | - ); |
|
305 | - $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
306 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
307 | - $template, |
|
308 | - $this->_template_args, |
|
309 | - true |
|
310 | - ); |
|
311 | - $this->display_about_admin_page(); |
|
312 | - } |
|
160 | + // Copied from _whats_new() |
|
161 | + $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
162 | + ? $this->_get_started_steps() : false; |
|
163 | + $steps = $steps !== false ? $steps : ''; |
|
164 | + $this->_admin_page_title = sprintf( |
|
165 | + esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
166 | + EVENT_ESPRESSO_VERSION |
|
167 | + ); |
|
168 | + $settings_message = $steps; |
|
169 | + $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
170 | + 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
|
171 | + 'event_espresso' |
|
172 | + ) . $settings_message; |
|
173 | + $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
174 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
175 | + $template, |
|
176 | + $this->_template_args, |
|
177 | + true |
|
178 | + ); |
|
179 | + $this->display_about_admin_page(); |
|
180 | + } |
|
181 | + |
|
182 | + |
|
183 | + protected function _get_started_steps() |
|
184 | + { |
|
185 | + $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
186 | + $step_one = '<p>' |
|
187 | + . sprintf( |
|
188 | + esc_html__( |
|
189 | + '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.', |
|
190 | + 'event_espresso' |
|
191 | + ), |
|
192 | + '<strong>', |
|
193 | + '</strong>', |
|
194 | + '<a href="admin.php?page=espresso_general_settings">', |
|
195 | + '</a>' |
|
196 | + ) . '</strong></p>'; |
|
197 | + $step_two = '<p>' |
|
198 | + . sprintf( |
|
199 | + esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
|
200 | + '<strong>', |
|
201 | + '</strong>', |
|
202 | + '<a href="admin.php?page=espresso_payment_settings">', |
|
203 | + '</a>' |
|
204 | + ) . '</strong></p>'; |
|
205 | + $step_three = '<p>' |
|
206 | + . sprintf( |
|
207 | + esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
|
208 | + '<strong>', |
|
209 | + '</strong>', |
|
210 | + '<a href="admin.php?page=espresso_events&action=create_new">', |
|
211 | + '</a>' |
|
212 | + ) . '</strong></p>'; |
|
213 | + |
|
214 | + // done? |
|
215 | + $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
|
216 | + $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active( |
|
217 | + EEM_Payment_Method::scope_cart, |
|
218 | + array(array('PMD_type' => 'Invoice')) |
|
219 | + ); |
|
220 | + $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart); |
|
221 | + // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or |
|
222 | + // if only the invoice is active but it's clearly been updated |
|
223 | + $done_step_two = $active_pms_count > 1 || |
|
224 | + ($active_pms_count === 1 && ! $active_invoice_pm) || |
|
225 | + ($active_invoice_pm instanceof EE_Payment_Method && ( |
|
226 | + $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') || |
|
227 | + $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') || |
|
228 | + $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') || |
|
229 | + $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') || |
|
230 | + $active_invoice_pm->get_extra_meta('page_extra_info', true, '') |
|
231 | + ) |
|
232 | + ); |
|
233 | + $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false; |
|
234 | + |
|
235 | + // if ALL steps are done, let's just return FALSE so we don't display anything |
|
236 | + if ($done_step_one && $done_step_two && $done_step_three) { |
|
237 | + return false; |
|
238 | + } |
|
239 | + |
|
240 | + // now let's put it together |
|
241 | + $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | + $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
243 | + $steps .= sprintf( |
|
244 | + '%s' . $step_three . '%s', |
|
245 | + $done_step_three ? '<strike>' : '', |
|
246 | + $done_step_three ? '</strike>' : '' |
|
247 | + ); |
|
248 | + |
|
249 | + return $steps; |
|
250 | + } |
|
251 | + |
|
252 | + |
|
253 | + protected function _credits() |
|
254 | + { |
|
255 | + $this->_template_args['admin_page_title'] = sprintf( |
|
256 | + __('Welcome to Event Espresso %s', 'event_espresso'), |
|
257 | + EVENT_ESPRESSO_VERSION |
|
258 | + ); |
|
259 | + $this->_template_args['admin_page_subtitle'] = __( |
|
260 | + 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
|
261 | + 'event_espresso' |
|
262 | + ); |
|
263 | + $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
264 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
265 | + $template, |
|
266 | + $this->_template_args, |
|
267 | + true |
|
268 | + ); |
|
269 | + $this->display_about_admin_page(); |
|
270 | + } |
|
271 | + |
|
272 | + |
|
273 | + protected function _decafvpro() |
|
274 | + { |
|
275 | + $this->_template_args['admin_page_title'] = sprintf( |
|
276 | + __('Welcome to Event Espresso %s', 'event_espresso'), |
|
277 | + EVENT_ESPRESSO_VERSION |
|
278 | + ); |
|
279 | + $this->_template_args['admin_page_subtitle'] = sprintf( |
|
280 | + __( |
|
281 | + 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
282 | + 'event_espresso' |
|
283 | + ), |
|
284 | + '<em>', |
|
285 | + '</em>', |
|
286 | + '<strong>', |
|
287 | + '</strong>' |
|
288 | + ); |
|
289 | + $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
290 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
291 | + $template, |
|
292 | + $this->_template_args, |
|
293 | + true |
|
294 | + ); |
|
295 | + $this->display_about_admin_page(); |
|
296 | + } |
|
297 | + |
|
298 | + protected function _reviews() |
|
299 | + { |
|
300 | + $this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
301 | + $this->_template_args['admin_page_subtitle'] = __( |
|
302 | + 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
303 | + 'event_espresso' |
|
304 | + ); |
|
305 | + $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
306 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
307 | + $template, |
|
308 | + $this->_template_args, |
|
309 | + true |
|
310 | + ); |
|
311 | + $this->display_about_admin_page(); |
|
312 | + } |
|
313 | 313 | } |
@@ -169,8 +169,8 @@ discard block |
||
169 | 169 | $this->_template_args['admin_page_subtitle'] = esc_html__( |
170 | 170 | 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
171 | 171 | 'event_espresso' |
172 | - ) . $settings_message; |
|
173 | - $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
172 | + ).$settings_message; |
|
173 | + $template = EE_ABOUT_TEMPLATE_PATH.'ee4-overview.template.php'; |
|
174 | 174 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
175 | 175 | $template, |
176 | 176 | $this->_template_args, |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | protected function _get_started_steps() |
184 | 184 | { |
185 | - $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
185 | + $steps = '<h2>'.esc_html__('Getting Started', 'event_espresso').'</h2>'; |
|
186 | 186 | $step_one = '<p>' |
187 | 187 | . sprintf( |
188 | 188 | esc_html__( |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | '</strong>', |
194 | 194 | '<a href="admin.php?page=espresso_general_settings">', |
195 | 195 | '</a>' |
196 | - ) . '</strong></p>'; |
|
196 | + ).'</strong></p>'; |
|
197 | 197 | $step_two = '<p>' |
198 | 198 | . sprintf( |
199 | 199 | esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | '</strong>', |
202 | 202 | '<a href="admin.php?page=espresso_payment_settings">', |
203 | 203 | '</a>' |
204 | - ) . '</strong></p>'; |
|
204 | + ).'</strong></p>'; |
|
205 | 205 | $step_three = '<p>' |
206 | 206 | . sprintf( |
207 | 207 | esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | '</strong>', |
210 | 210 | '<a href="admin.php?page=espresso_events&action=create_new">', |
211 | 211 | '</a>' |
212 | - ) . '</strong></p>'; |
|
212 | + ).'</strong></p>'; |
|
213 | 213 | |
214 | 214 | // done? |
215 | 215 | $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
@@ -238,10 +238,10 @@ discard block |
||
238 | 238 | } |
239 | 239 | |
240 | 240 | // now let's put it together |
241 | - $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | - $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
241 | + $steps .= sprintf('%s'.$step_one.'%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | + $steps .= sprintf('%s'.$step_two.'%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
243 | 243 | $steps .= sprintf( |
244 | - '%s' . $step_three . '%s', |
|
244 | + '%s'.$step_three.'%s', |
|
245 | 245 | $done_step_three ? '<strike>' : '', |
246 | 246 | $done_step_three ? '</strike>' : '' |
247 | 247 | ); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
261 | 261 | 'event_espresso' |
262 | 262 | ); |
263 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
263 | + $template = EE_ABOUT_TEMPLATE_PATH.'credits.template.php'; |
|
264 | 264 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
265 | 265 | $template, |
266 | 266 | $this->_template_args, |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | '<strong>', |
287 | 287 | '</strong>' |
288 | 288 | ); |
289 | - $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
289 | + $template = EE_ABOUT_TEMPLATE_PATH.'decafvpro.template.php'; |
|
290 | 290 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
291 | 291 | $template, |
292 | 292 | $this->_template_args, |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | 'At Event Espresso, customer satisfaction is our ultimate goal.', |
303 | 303 | 'event_espresso' |
304 | 304 | ); |
305 | - $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
305 | + $template = EE_ABOUT_TEMPLATE_PATH.'reviews.template.php'; |
|
306 | 306 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
307 | 307 | $template, |
308 | 308 | $this->_template_args, |
@@ -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><?php |
3 | - echo sprintf( |
|
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 | - ); ?></p> |
|
3 | + echo sprintf( |
|
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 | + ); ?></p> |
|
17 | 17 | |
18 | 18 | <div class="changelog"> |
19 | 19 | <h2 class="about-headline-callout"><?php _e('Rave Reviews About Event Espresso 4', 'event_espresso'); ?></h2> |
@@ -136,16 +136,16 @@ discard block |
||
136 | 136 | |
137 | 137 | </div> |
138 | 138 | <?php |
139 | - if (! defined('EE_CAF_URL')) { |
|
140 | - ?> |
|
139 | + if (! defined('EE_CAF_URL')) { |
|
140 | + ?> |
|
141 | 141 | <div align="right"><a |
142 | 142 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
143 | 143 | target="_blank" class="button button-primary button-hero"><span |
144 | 144 | class="dashicons dashicons-cart"></span><?php esc_html_e('Upgrade Now!', 'event_espresso') ?></a> |
145 | 145 | </div> |
146 | 146 | <?php |
147 | - } |
|
148 | - ?> |
|
147 | + } |
|
148 | + ?> |
|
149 | 149 | |
150 | 150 | <hr/> |
151 | 151 | <div class="feature-section col three-col about-updates"> |
@@ -256,16 +256,16 @@ discard block |
||
256 | 256 | |
257 | 257 | </div> |
258 | 258 | <?php |
259 | - if (! defined('EE_CAF_URL')) { |
|
260 | - ?> |
|
259 | + if (! defined('EE_CAF_URL')) { |
|
260 | + ?> |
|
261 | 261 | <div align="right"><a |
262 | 262 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
263 | 263 | target="_blank" class="button button-primary button-hero"><span |
264 | 264 | class="dashicons dashicons-cart"></span><?php esc_html_e('Upgrade Now!', 'event_espresso') ?></a> |
265 | 265 | </div> |
266 | 266 | <?php |
267 | - } |
|
268 | - ?> |
|
267 | + } |
|
268 | + ?> |
|
269 | 269 | |
270 | 270 | <hr/> |
271 | 271 | <div class="feature-section col three-col about-updates"> |
@@ -367,14 +367,14 @@ discard block |
||
367 | 367 | </div> |
368 | 368 | </div> |
369 | 369 | <?php |
370 | - if (! defined('EE_CAF_URL')) { |
|
371 | - ?> |
|
370 | + if (! defined('EE_CAF_URL')) { |
|
371 | + ?> |
|
372 | 372 | <div align="right"><a |
373 | 373 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
374 | 374 | target="_blank" class="button button-primary button-hero"><span |
375 | 375 | class="dashicons dashicons-cart"></span><?php esc_html_e('Upgrade Now!', 'event_espresso') ?></a> |
376 | 376 | </div> |
377 | 377 | <?php |
378 | - } |
|
379 | - ?> |
|
378 | + } |
|
379 | + ?> |
|
380 | 380 | </div> |
381 | 381 | \ No newline at end of file |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | </div> |
138 | 138 | <?php |
139 | - if (! defined('EE_CAF_URL')) { |
|
139 | + if ( ! defined('EE_CAF_URL')) { |
|
140 | 140 | ?> |
141 | 141 | <div align="right"><a |
142 | 142 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | |
257 | 257 | </div> |
258 | 258 | <?php |
259 | - if (! defined('EE_CAF_URL')) { |
|
259 | + if ( ! defined('EE_CAF_URL')) { |
|
260 | 260 | ?> |
261 | 261 | <div align="right"><a |
262 | 262 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | </div> |
368 | 368 | </div> |
369 | 369 | <?php |
370 | - if (! defined('EE_CAF_URL')) { |
|
370 | + if ( ! defined('EE_CAF_URL')) { |
|
371 | 371 | ?> |
372 | 372 | <div align="right"><a |
373 | 373 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <p class="about-description"> |
2 | 2 | <?php _e( |
3 | - 'Event Espresso is created by an international team of passionate individuals with a drive to empower your events!', |
|
4 | - 'event_espresso' |
|
5 | - ); ?></p> |
|
3 | + 'Event Espresso is created by an international team of passionate individuals with a drive to empower your events!', |
|
4 | + 'event_espresso' |
|
5 | + ); ?></p> |
|
6 | 6 | <h3 class="wp-people-group"><?php _e('Founders', 'event_espresso'); ?></h3> |
7 | 7 | <ul class="wp-people-group" id="ee-people-group-owners"> |
8 | 8 | <li class="wp-person" id="ee-person-sshoultes"> |
@@ -94,13 +94,13 @@ discard block |
||
94 | 94 | <h3 class="wp-people-group"><?php _e('Contributor Recognition', 'event_espresso'); ?></h3> |
95 | 95 | <p class="description"> |
96 | 96 | <?php printf( |
97 | - __( |
|
98 | - 'For every major release we want to recognize the people who contributed to the release via a GitHub pull request. Want to see your name listed here? %sWhen you submit a pull request that gets included in a major release%s, we\'ll add your name here linked to your GitHub profile.', |
|
99 | - 'event_espresso' |
|
100 | - ), |
|
101 | - '<a href="https://github.com/eventespresso/event-espresso-core" title="Contribute to Event Espresso by making a pull request via GitHub">', |
|
102 | - '</a>' |
|
103 | - ); ?> |
|
97 | + __( |
|
98 | + 'For every major release we want to recognize the people who contributed to the release via a GitHub pull request. Want to see your name listed here? %sWhen you submit a pull request that gets included in a major release%s, we\'ll add your name here linked to your GitHub profile.', |
|
99 | + 'event_espresso' |
|
100 | + ), |
|
101 | + '<a href="https://github.com/eventespresso/event-espresso-core" title="Contribute to Event Espresso by making a pull request via GitHub">', |
|
102 | + '</a>' |
|
103 | + ); ?> |
|
104 | 104 | </p> |
105 | 105 | <p class="wp-credits-list"> |
106 | 106 | <ul> |
@@ -115,43 +115,43 @@ discard block |
||
115 | 115 | <h3 class="wp-people-group"><?php _e('External Libraries', 'event_espresso'); ?></h3> |
116 | 116 | <p class="description"> |
117 | 117 | <?php printf( |
118 | - __( |
|
119 | - 'Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', |
|
120 | - 'event_espresso' |
|
121 | - ), |
|
122 | - '<a href="credits.php">', |
|
123 | - '</a>' |
|
124 | - ); ?> |
|
118 | + __( |
|
119 | + 'Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', |
|
120 | + 'event_espresso' |
|
121 | + ), |
|
122 | + '<a href="credits.php">', |
|
123 | + '</a>' |
|
124 | + ); ?> |
|
125 | 125 | </p> |
126 | 126 | <p class="wp-credits-list"> |
127 | 127 | <a href="http://josscrowcroft.github.io/accounting.js/"><?php _e('accounting.js', 'event_espresso'); ?></a>, |
128 | 128 | <a href="http://dompdf.github.io/"><?php _e('dompdf', 'event_espresso'); ?></a>, |
129 | 129 | <a href="http://zurb.com/playground/jquery-joyride-feature-tour-plugin"> |
130 | 130 | <?php _e( |
131 | - 'joyride2', |
|
132 | - 'event_espresso' |
|
133 | - ); ?></a>, |
|
131 | + 'joyride2', |
|
132 | + 'event_espresso' |
|
133 | + ); ?></a>, |
|
134 | 134 | <a href="http://raveren.github.io/kint/"><?php _e('Kint', 'event_espresso'); ?></a>, |
135 | 135 | <a href="http://momentjs.com/"><?php _e('Moment.js', 'event_espresso'); ?></a>, |
136 | 136 | <a href="http://qtip2.com/"><?php _e('qTip2', 'event_espresso'); ?></a>, |
137 | 137 | <a href="http://trentrichardson.com/examples/timepicker/"><?php _e('jQuery UI Timepicker', 'event_espresso'); ?></a>, |
138 | 138 | <a href="https://github.com/jhogendorn/jQuery-serializeFullArray"> |
139 | 139 | <?php _e( |
140 | - 'SerializeFullArray', |
|
141 | - 'event_espresso' |
|
142 | - ); ?></a> |
|
140 | + 'SerializeFullArray', |
|
141 | + 'event_espresso' |
|
142 | + ); ?></a> |
|
143 | 143 | <a href="https://github.com/jzaefferer/jquery-validation"><?php _e('jQuery Validation', 'event_espresso'); ?></a> |
144 | 144 | </p> |
145 | 145 | |
146 | 146 | <?php |
147 | 147 | function esp_gravatar_profile($email) |
148 | 148 | { |
149 | - echo 'http://www.gravatar.com/' . md5($email); |
|
149 | + echo 'http://www.gravatar.com/' . md5($email); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | function esp_gravatar_image($email, $name) |
153 | 153 | { |
154 | - echo '<img src="http://0.gravatar.com/avatar/' . md5($email) . '?s=60" class="gravatar" alt="' . $name . '"/>'; |
|
154 | + echo '<img src="http://0.gravatar.com/avatar/' . md5($email) . '?s=60" class="gravatar" alt="' . $name . '"/>'; |
|
155 | 155 | } |
156 | 156 | |
157 | 157 | ?> |
@@ -146,12 +146,12 @@ |
||
146 | 146 | <?php |
147 | 147 | function esp_gravatar_profile($email) |
148 | 148 | { |
149 | - echo 'http://www.gravatar.com/' . md5($email); |
|
149 | + echo 'http://www.gravatar.com/'.md5($email); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | function esp_gravatar_image($email, $name) |
153 | 153 | { |
154 | - echo '<img src="http://0.gravatar.com/avatar/' . md5($email) . '?s=60" class="gravatar" alt="' . $name . '"/>'; |
|
154 | + echo '<img src="http://0.gravatar.com/avatar/'.md5($email).'?s=60" class="gravatar" alt="'.$name.'"/>'; |
|
155 | 155 | } |
156 | 156 | |
157 | 157 | ?> |
@@ -1,88 +1,88 @@ discard block |
||
1 | 1 | <div class="changelog"> |
2 | 2 | <?php |
3 | - // maintenance mode on? |
|
4 | - if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
5 | - ?> |
|
3 | + // maintenance mode on? |
|
4 | + if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
5 | + ?> |
|
6 | 6 | <div class="ee-attention"> |
7 | 7 | <h2 class="ee-maintenance-mode-callout"> |
8 | 8 | <?php esc_html_e( |
9 | - 'Event Espresso is in full maintenance mode.', |
|
10 | - 'event_espresso' |
|
11 | - ); ?></h2> |
|
9 | + 'Event Espresso is in full maintenance mode.', |
|
10 | + 'event_espresso' |
|
11 | + ); ?></h2> |
|
12 | 12 | <p> |
13 | 13 | <?php |
14 | - printf( |
|
15 | - esc_html__( |
|
16 | - '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.', |
|
17 | - 'event_espresso' |
|
18 | - ), |
|
19 | - '<a href="admin.php?page=espresso_maintenance_settings">', |
|
20 | - '</a>' |
|
21 | - ); |
|
22 | - ?> |
|
14 | + printf( |
|
15 | + esc_html__( |
|
16 | + '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.', |
|
17 | + 'event_espresso' |
|
18 | + ), |
|
19 | + '<a href="admin.php?page=espresso_maintenance_settings">', |
|
20 | + '</a>' |
|
21 | + ); |
|
22 | + ?> |
|
23 | 23 | </p> |
24 | 24 | </div> |
25 | 25 | <?php |
26 | - } |
|
27 | - ?> |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | |
29 | 29 | <h2 class="about-headline-callout"> |
30 | 30 | <?php esc_html_e( |
31 | - 'Welcome to the Decaf (free) Version of Event Espresso 4!', |
|
32 | - 'event_espresso' |
|
33 | - ); ?></h2> |
|
31 | + 'Welcome to the Decaf (free) Version of Event Espresso 4!', |
|
32 | + 'event_espresso' |
|
33 | + ); ?></h2> |
|
34 | 34 | <p><?php |
35 | - echo sprintf( |
|
36 | - esc_html__( |
|
37 | - 'Manage your events from your WordPress dashboard. Reduce your admin, reduce your costs, make your life easier! This is the Decaf version of Event Espresso, but we also have a premium version called %sEvent Espreso 4 Regular%s and a hosted version called %sEvent Smart%s (SaaS).', |
|
38 | - 'event_espresso' |
|
39 | - ), |
|
40 | - '<a href="?page=espresso_about&action=decafvpro">', |
|
41 | - '</a>', |
|
42 | - '<a href="https://eventsmart.com//?utm_source=ee4_decaf&utm_medium=link&utm_campaign=espresso_about_tab&utm_content=EE4+Decaf">', |
|
43 | - '</a>' |
|
44 | - ); ?></p> |
|
35 | + echo sprintf( |
|
36 | + esc_html__( |
|
37 | + 'Manage your events from your WordPress dashboard. Reduce your admin, reduce your costs, make your life easier! This is the Decaf version of Event Espresso, but we also have a premium version called %sEvent Espreso 4 Regular%s and a hosted version called %sEvent Smart%s (SaaS).', |
|
38 | + 'event_espresso' |
|
39 | + ), |
|
40 | + '<a href="?page=espresso_about&action=decafvpro">', |
|
41 | + '</a>', |
|
42 | + '<a href="https://eventsmart.com//?utm_source=ee4_decaf&utm_medium=link&utm_campaign=espresso_about_tab&utm_content=EE4+Decaf">', |
|
43 | + '</a>' |
|
44 | + ); ?></p> |
|
45 | 45 | <h2> |
46 | 46 | <?php esc_html_e( |
47 | - 'Powering 40,000+ event websites; $100 million in ticket sales per year!', |
|
48 | - 'event_espresso' |
|
49 | - ); ?></h2> |
|
47 | + 'Powering 40,000+ event websites; $100 million in ticket sales per year!', |
|
48 | + 'event_espresso' |
|
49 | + ); ?></h2> |
|
50 | 50 | <p><?php |
51 | - echo sprintf( |
|
52 | - esc_html__( |
|
53 | - 'Event Espresso is a %sWordPress event manager%s which makes it easy for you to register attendees for classes, workshops, events, trainings, conferences or concerts, all from your WordPress website. Event Espresso events are created from the WordPress admin area. You can create signup forms to collect information about your attendees, accept payments, and create reports. The Decaf (free) version of the plugin provides everything that you need to manage your event using WordPress.', |
|
54 | - 'event_espresso' |
|
55 | - ), |
|
56 | - '<a href="http://eventespresso.com/?utm_source=wordpress_org&utm_medium=link&utm_campaign=plugin_description_tab&utm_content=EE4+Decaf">', |
|
57 | - '</a>' |
|
58 | - ); ?></p> |
|
51 | + echo sprintf( |
|
52 | + esc_html__( |
|
53 | + 'Event Espresso is a %sWordPress event manager%s which makes it easy for you to register attendees for classes, workshops, events, trainings, conferences or concerts, all from your WordPress website. Event Espresso events are created from the WordPress admin area. You can create signup forms to collect information about your attendees, accept payments, and create reports. The Decaf (free) version of the plugin provides everything that you need to manage your event using WordPress.', |
|
54 | + 'event_espresso' |
|
55 | + ), |
|
56 | + '<a href="http://eventespresso.com/?utm_source=wordpress_org&utm_medium=link&utm_campaign=plugin_description_tab&utm_content=EE4+Decaf">', |
|
57 | + '</a>' |
|
58 | + ); ?></p> |
|
59 | 59 | <div class="feature-section col three-col about-updates"> |
60 | 60 | <div class="col-1"> |
61 | 61 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/publish_meta_box.jpg"> |
62 | 62 | <h3><?php esc_html_e('Optimized aesthetic', 'event_espresso'); ?></h3> |
63 | 63 | <p><?php |
64 | - esc_html_e( |
|
65 | - 'The Event Espresso 4 dashboard has a fresh, uncluttered design that embraces clarity and simplicity.', |
|
66 | - 'event_espresso' |
|
67 | - ); ?></p> |
|
64 | + esc_html_e( |
|
65 | + 'The Event Espresso 4 dashboard has a fresh, uncluttered design that embraces clarity and simplicity.', |
|
66 | + 'event_espresso' |
|
67 | + ); ?></p> |
|
68 | 68 | </div> |
69 | 69 | <div class="col-2"> |
70 | 70 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/registrations-overview.jpg"> |
71 | 71 | <h3><?php esc_html_e('Integrated management', 'event_espresso'); ?></h3> |
72 | 72 | <p><?php |
73 | - esc_html_e( |
|
74 | - 'We’ve made it easier to know who your customers are and how they’ve done business with you over time.', |
|
75 | - 'event_espresso' |
|
76 | - ); ?></p> |
|
73 | + esc_html_e( |
|
74 | + 'We’ve made it easier to know who your customers are and how they’ve done business with you over time.', |
|
75 | + 'event_espresso' |
|
76 | + ); ?></p> |
|
77 | 77 | </div> |
78 | 78 | <div class="col-3 last-feature"> |
79 | 79 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/refined-bookkeeping.jpg"> |
80 | 80 | <h3><?php esc_html_e('Easy bookkeeping', 'event_espresso'); ?></h3> |
81 | 81 | <p><?php |
82 | - esc_html_e( |
|
83 | - 'Registrations, payment, and transactions have been substantially improved in Event Espresso 4.', |
|
84 | - 'event_espresso' |
|
85 | - ); ?></p> |
|
82 | + esc_html_e( |
|
83 | + 'Registrations, payment, and transactions have been substantially improved in Event Espresso 4.', |
|
84 | + 'event_espresso' |
|
85 | + ); ?></p> |
|
86 | 86 | </div> |
87 | 87 | </div> |
88 | 88 | |
@@ -94,16 +94,16 @@ discard block |
||
94 | 94 | <div> |
95 | 95 | <h3><?php esc_html_e('Higher customer retention', 'event_espresso'); ?></h3> |
96 | 96 | <p><?php |
97 | - esc_html_e( |
|
98 | - 'The Event Espresso 4 registration process is faster than ever. With quick ticket selections, single page check-out, and customizable notifications! Registration that can scale to your business needs.', |
|
99 | - 'event_espresso' |
|
100 | - ); ?></p> |
|
97 | + esc_html_e( |
|
98 | + 'The Event Espresso 4 registration process is faster than ever. With quick ticket selections, single page check-out, and customizable notifications! Registration that can scale to your business needs.', |
|
99 | + 'event_espresso' |
|
100 | + ); ?></p> |
|
101 | 101 | <h4><?php esc_html_e('Ticket selection boxes on any post page or post', 'event_espresso'); ?></h4> |
102 | 102 | <p><?php |
103 | - esc_html_e( |
|
104 | - 'Customers can easily register for classes, events, or conferences, in just a few simple steps. No matter how you use it, Event Espresso 4 will adapt to a multitude of different ticketing and pricing scenarios.', |
|
105 | - 'event_espresso' |
|
106 | - ); ?></p> |
|
103 | + esc_html_e( |
|
104 | + 'Customers can easily register for classes, events, or conferences, in just a few simple steps. No matter how you use it, Event Espresso 4 will adapt to a multitude of different ticketing and pricing scenarios.', |
|
105 | + 'event_espresso' |
|
106 | + ); ?></p> |
|
107 | 107 | </div> |
108 | 108 | <div class="last-feature about-colors-img"> |
109 | 109 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/registrtation-page-large.jpg"> |
@@ -117,22 +117,22 @@ discard block |
||
117 | 117 | <div> |
118 | 118 | <h3><?php esc_html_e('Refined event management', 'event_espresso'); ?></h3> |
119 | 119 | <p><?php |
120 | - esc_html_e( |
|
121 | - 'The new event management screen lets you survey your events at a glance. Want more information? Click to view more. Quickly add/edit prices, dates, or information in any event.', |
|
122 | - 'event_espresso' |
|
123 | - ); ?></p> |
|
120 | + esc_html_e( |
|
121 | + 'The new event management screen lets you survey your events at a glance. Want more information? Click to view more. Quickly add/edit prices, dates, or information in any event.', |
|
122 | + 'event_espresso' |
|
123 | + ); ?></p> |
|
124 | 124 | <h4><?php |
125 | - esc_html_e('Smoother price types, taxes, and price modifiers', 'event_espresso'); ?></h4> |
|
125 | + esc_html_e('Smoother price types, taxes, and price modifiers', 'event_espresso'); ?></h4> |
|
126 | 126 | <p><?php |
127 | - esc_html_e( |
|
128 | - 'Price Types allow you to create new prices that adjust the default ticket (base) price for your system-default ticket', |
|
129 | - 'event_espresso' |
|
130 | - ); ?>.</p> |
|
127 | + esc_html_e( |
|
128 | + 'Price Types allow you to create new prices that adjust the default ticket (base) price for your system-default ticket', |
|
129 | + 'event_espresso' |
|
130 | + ); ?>.</p> |
|
131 | 131 | <p><?php |
132 | - esc_html_e( |
|
133 | - 'Easily categorize a price modifier and indicate how that price gets applied to the running total when a transaction occurs.', |
|
134 | - 'event_espresso' |
|
135 | - ); ?></p> |
|
132 | + esc_html_e( |
|
133 | + 'Easily categorize a price modifier and indicate how that price gets applied to the running total when a transaction occurs.', |
|
134 | + 'event_espresso' |
|
135 | + ); ?></p> |
|
136 | 136 | </div> |
137 | 137 | <div class="last-feature about-themes-img"> |
138 | 138 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/event-management.jpg"> |
@@ -144,68 +144,68 @@ discard block |
||
144 | 144 | |
145 | 145 | <div class="changelog about-event-espresso"> |
146 | 146 | <h2 class="about-headline-callout"><?php |
147 | - esc_html_e( |
|
148 | - 'People Like You Manage Event Registration with WordPress', |
|
149 | - 'event_espresso' |
|
150 | - ); ?></h2> |
|
147 | + esc_html_e( |
|
148 | + 'People Like You Manage Event Registration with WordPress', |
|
149 | + 'event_espresso' |
|
150 | + ); ?></h2> |
|
151 | 151 | <div class="feature-section col two-col"> |
152 | 152 | <div class="grid_6"> |
153 | 153 | <p><?php |
154 | - echo sprintf( |
|
155 | - esc_html__( |
|
156 | - 'Trusted by thousands, Event Espresso is the best WordPress event online registration and ticketing manager plugin–and the best supported with full-time support. Turn your existing blog or website into a %sfully-featured event management website%s and a new way to make money. With Event Espresso you get it all; everything from custom registration forms and emails, seating limits, multiple price options, and discount codes to printable tickets.', |
|
157 | - 'event_espresso' |
|
158 | - ), |
|
159 | - '<strong>', |
|
160 | - '</strong>' |
|
161 | - ); ?></p> |
|
154 | + echo sprintf( |
|
155 | + esc_html__( |
|
156 | + 'Trusted by thousands, Event Espresso is the best WordPress event online registration and ticketing manager plugin–and the best supported with full-time support. Turn your existing blog or website into a %sfully-featured event management website%s and a new way to make money. With Event Espresso you get it all; everything from custom registration forms and emails, seating limits, multiple price options, and discount codes to printable tickets.', |
|
157 | + 'event_espresso' |
|
158 | + ), |
|
159 | + '<strong>', |
|
160 | + '</strong>' |
|
161 | + ); ?></p> |
|
162 | 162 | <p><?php |
163 | - esc_html_e( |
|
164 | - 'Event Espresso works perfectly for classes, workshops, fundraisers, sporting, trainings, conferences, networking, religion, social, non-profit, and nearly any other type of event.', |
|
165 | - 'event_espresso' |
|
166 | - ); ?></p> |
|
163 | + esc_html_e( |
|
164 | + 'Event Espresso works perfectly for classes, workshops, fundraisers, sporting, trainings, conferences, networking, religion, social, non-profit, and nearly any other type of event.', |
|
165 | + 'event_espresso' |
|
166 | + ); ?></p> |
|
167 | 167 | </div> |
168 | 168 | <div class="grid_6"> |
169 | 169 | <p><?php |
170 | - echo sprintf( |
|
171 | - esc_html__( |
|
172 | - 'Our online event registration software can %smake your organization more profitable and efficient%s by helping you save money on registration and ticketing fees, reduce the countless hours of time you spend manually processing registrations, create a “green” and paperless event registration process and you will be open for business to accept registrations and payment 24/7.', |
|
173 | - 'event_espresso' |
|
174 | - ), |
|
175 | - '<strong>', |
|
176 | - '</strong>' |
|
177 | - ); ?></p> |
|
170 | + echo sprintf( |
|
171 | + esc_html__( |
|
172 | + 'Our online event registration software can %smake your organization more profitable and efficient%s by helping you save money on registration and ticketing fees, reduce the countless hours of time you spend manually processing registrations, create a “green” and paperless event registration process and you will be open for business to accept registrations and payment 24/7.', |
|
173 | + 'event_espresso' |
|
174 | + ), |
|
175 | + '<strong>', |
|
176 | + '</strong>' |
|
177 | + ); ?></p> |
|
178 | 178 | <p><?php |
179 | - esc_html_e( |
|
180 | - 'If you\'re doing event registration and ticketing any other way, then you’re wasting time and money. We offer packages and prices to fit any budget, so get started with your online event registration and ticketing management system today.', |
|
181 | - 'event_espresso' |
|
182 | - ); ?></p> |
|
179 | + esc_html_e( |
|
180 | + 'If you\'re doing event registration and ticketing any other way, then you’re wasting time and money. We offer packages and prices to fit any budget, so get started with your online event registration and ticketing management system today.', |
|
181 | + 'event_espresso' |
|
182 | + ); ?></p> |
|
183 | 183 | </div> |
184 | 184 | </div> |
185 | 185 | |
186 | 186 | <div class="feature-section col two-col"> |
187 | 187 | <div> |
188 | 188 | <h3><?php |
189 | - esc_html_e( |
|
190 | - 'Turn your blog into a complete event registration and management system', |
|
191 | - 'event_espresso' |
|
192 | - ); ?></h3> |
|
189 | + esc_html_e( |
|
190 | + 'Turn your blog into a complete event registration and management system', |
|
191 | + 'event_espresso' |
|
192 | + ); ?></h3> |
|
193 | 193 | <p><?php |
194 | - esc_html_e( |
|
195 | - 'Create a beautiful event page with ticket selection, venue details, and an integrated single page checkout system. With WordPress, Event Espresso, and Espresso Arabica 2014 (based on the "Twenty Fourteen" theme by WordPress), your events will certainly sell out faster than ever!', |
|
196 | - 'event_espresso' |
|
197 | - ); ?></p> |
|
194 | + esc_html_e( |
|
195 | + 'Create a beautiful event page with ticket selection, venue details, and an integrated single page checkout system. With WordPress, Event Espresso, and Espresso Arabica 2014 (based on the "Twenty Fourteen" theme by WordPress), your events will certainly sell out faster than ever!', |
|
196 | + 'event_espresso' |
|
197 | + ); ?></p> |
|
198 | 198 | <p><?php |
199 | - esc_html_e( |
|
200 | - 'With a striking design that does not compromise the simplicity of WordPress and Event Espresso 4, Espresso Arabica 2014 will be the best event theme on the market.', |
|
201 | - 'event_espresso' |
|
202 | - ); ?></p> |
|
199 | + esc_html_e( |
|
200 | + 'With a striking design that does not compromise the simplicity of WordPress and Event Espresso 4, Espresso Arabica 2014 will be the best event theme on the market.', |
|
201 | + 'event_espresso' |
|
202 | + ); ?></p> |
|
203 | 203 | <p><?php |
204 | - echo sprintf( |
|
205 | - esc_html__('%sLearn more >>%s', 'event_espresso'), |
|
206 | - '<a href="http://eventespresso.com/wiki/setup-event-espresso-arabica-theme/">', |
|
207 | - '</a>' |
|
208 | - ); ?></p> |
|
204 | + echo sprintf( |
|
205 | + esc_html__('%sLearn more >>%s', 'event_espresso'), |
|
206 | + '<a href="http://eventespresso.com/wiki/setup-event-espresso-arabica-theme/">', |
|
207 | + '</a>' |
|
208 | + ); ?></p> |
|
209 | 209 | </div> |
210 | 210 | <div><img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/single-event-page.jpg"></div> |
211 | 211 | </div> |
@@ -216,10 +216,10 @@ discard block |
||
216 | 216 | |
217 | 217 | <h3><?php esc_html_e('Pick a theme, any theme', 'event_espresso'); ?></h3> |
218 | 218 | <p><?php |
219 | - esc_html_e( |
|
220 | - 'We’ve made it super easy to integrate Event Espresso with almost any properly coded WordPress theme, including many of the thousands of themes available on WordPress.org. The image below shows the same Event Espresso ticketing page across three diffrent WordPress themes.', |
|
221 | - 'event_espresso' |
|
222 | - ); ?></p> |
|
219 | + esc_html_e( |
|
220 | + 'We’ve made it super easy to integrate Event Espresso with almost any properly coded WordPress theme, including many of the thousands of themes available on WordPress.org. The image below shows the same Event Espresso ticketing page across three diffrent WordPress themes.', |
|
221 | + 'event_espresso' |
|
222 | + ); ?></p> |
|
223 | 223 | <p><img class="about-overview-img" src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/multiple-themes.jpg"/></p> |
224 | 224 | <hr> |
225 | 225 |