@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | <li> |
7 | 7 | <strong><?php esc_html_e('ID', 'event_espresso'); ?></strong><br /> |
8 | 8 | <?php printf( |
9 | - esc_html__( |
|
10 | - 'This is the numerical ID for the question. This value is used internally for %s.', |
|
11 | - 'event_espresso' |
|
12 | - ), |
|
13 | - Domain::brandName() |
|
9 | + esc_html__( |
|
10 | + 'This is the numerical ID for the question. This value is used internally for %s.', |
|
11 | + 'event_espresso' |
|
12 | + ), |
|
13 | + Domain::brandName() |
|
14 | 14 | ); ?> |
15 | 15 | </li> |
16 | 16 | <li> |
@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | <p> |
64 | 64 | <strong><?php esc_html_e('Notice', 'event_espresso'); ?></strong><br /> |
65 | 65 | <?php printf( |
66 | - esc_html__( |
|
67 | - 'System questions are created by %s and cannot be deleted. However, they can be edited. Be careful when editing these system questions as they are required for registrations to work correctly.', |
|
68 | - 'event_espresso' |
|
69 | - ), |
|
70 | - Domain::brandName() |
|
66 | + esc_html__( |
|
67 | + 'System questions are created by %s and cannot be deleted. However, they can be edited. Be careful when editing these system questions as they are required for registrations to work correctly.', |
|
68 | + 'event_espresso' |
|
69 | + ), |
|
70 | + Domain::brandName() |
|
71 | 71 | ); ?> |
72 | 72 | </p> |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | <li> |
7 | 7 | <strong><?php esc_html_e('ID', 'event_espresso'); ?></strong><br /> |
8 | 8 | <?php printf( |
9 | - esc_html__('This is the numerical ID for a venue. This value is used internally for %s.', 'event_espresso'), |
|
10 | - Domain::brandName() |
|
9 | + esc_html__('This is the numerical ID for a venue. This value is used internally for %s.', 'event_espresso'), |
|
10 | + Domain::brandName() |
|
11 | 11 | ); ?> |
12 | 12 | </li> |
13 | 13 | <li> |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | <li> |
26 | 26 | <strong><?php esc_html_e('Capacity', 'event_espresso'); ?></strong><br /> |
27 | 27 | <?php printf( |
28 | - esc_html__('This is the capacity of the venue. If no limit is set, then the capacity will be set to infinity (%s).', 'event_espresso'), |
|
29 | - '∞' |
|
28 | + esc_html__('This is the capacity of the venue. If no limit is set, then the capacity will be set to infinity (%s).', 'event_espresso'), |
|
29 | + '∞' |
|
30 | 30 | ); ?> |
31 | 31 | </li> |
32 | 32 | </ul> |
@@ -3,13 +3,13 @@ |
||
3 | 3 | <li> |
4 | 4 | <strong><?php esc_html_e('Check-In', 'event_espresso'); ?></strong><br /> |
5 | 5 | <?php printf( |
6 | - esc_html__( |
|
7 | - 'Shows the Check-In status for an registrant. Available statuses are checked in %1$s, checked out %2$s, or no check-in record is available %3$s.', |
|
8 | - 'event_espresso' |
|
9 | - ), |
|
10 | - '<span class="ee-icon ee-icon-check-in"></span>', |
|
11 | - '<span class="ee-icon ee-icon-check-out"></span>', |
|
12 | - '<span class="dashicons dashicons-no"></span>' |
|
6 | + esc_html__( |
|
7 | + 'Shows the Check-In status for an registrant. Available statuses are checked in %1$s, checked out %2$s, or no check-in record is available %3$s.', |
|
8 | + 'event_espresso' |
|
9 | + ), |
|
10 | + '<span class="ee-icon ee-icon-check-in"></span>', |
|
11 | + '<span class="ee-icon ee-icon-check-out"></span>', |
|
12 | + '<span class="dashicons dashicons-no"></span>' |
|
13 | 13 | ); ?> |
14 | 14 | </li> |
15 | 15 | <li> |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | <li> |
7 | 7 | <strong><?php esc_html_e('ID', 'event_espresso'); ?></strong><br /> |
8 | 8 | <?php printf( |
9 | - esc_html__( |
|
10 | - 'The is the numerical ID of an registration. This value is used internally for %s.', |
|
11 | - 'event_espresso' |
|
12 | - ), |
|
13 | - Domain::brandName() |
|
9 | + esc_html__( |
|
10 | + 'The is the numerical ID of an registration. This value is used internally for %s.', |
|
11 | + 'event_espresso' |
|
12 | + ), |
|
13 | + Domain::brandName() |
|
14 | 14 | ); ?> |
15 | 15 | </li> |
16 | 16 | <li> |
@@ -40,14 +40,14 @@ discard block |
||
40 | 40 | <li> |
41 | 41 | <strong><?php esc_html_e('Actions', 'event_espresso'); ?></strong><br /> |
42 | 42 | <?php printf( |
43 | - esc_html__( |
|
44 | - 'Using the action buttons you can View Registration Details %1$s, Edit Contact Details %2$s, Resend Registration Details %3$s, and View Transaction Details %4$s.', |
|
45 | - 'event_espresso' |
|
46 | - ), |
|
47 | - '<span class="dashicons dashicons-search"></span>', |
|
48 | - '<span class="dashicons dashicons-businessman"></span>', |
|
49 | - '<span class="ee-icon ee-icon-email-send"></span>', |
|
50 | - '<span class="ee-icon ee-icon-cash"></span>' |
|
43 | + esc_html__( |
|
44 | + 'Using the action buttons you can View Registration Details %1$s, Edit Contact Details %2$s, Resend Registration Details %3$s, and View Transaction Details %4$s.', |
|
45 | + 'event_espresso' |
|
46 | + ), |
|
47 | + '<span class="dashicons dashicons-search"></span>', |
|
48 | + '<span class="dashicons dashicons-businessman"></span>', |
|
49 | + '<span class="ee-icon ee-icon-email-send"></span>', |
|
50 | + '<span class="ee-icon ee-icon-cash"></span>' |
|
51 | 51 | ); ?> |
52 | 52 | </li> |
53 | 53 | </ul> |
54 | 54 | \ No newline at end of file |
@@ -4,12 +4,12 @@ |
||
4 | 4 | </p> |
5 | 5 | <p class="ee-attention"> |
6 | 6 | <?php printf( |
7 | - esc_html__( |
|
8 | - 'Notice: Due to a %1$scurrent bug in the WordPress core%2$s, your event should always have at least a title or description or excerpt. Saving an event without at least one of these fields filled out with information will result in your event not saving correctly. You will then need to recreate your event by clicking on the Add Event button.', |
|
9 | - 'event_espresso' |
|
10 | - ), |
|
11 | - '<a href="https://core.trac.wordpress.org/ticket/17115#comment:15">', |
|
12 | - '</a>' |
|
7 | + esc_html__( |
|
8 | + 'Notice: Due to a %1$scurrent bug in the WordPress core%2$s, your event should always have at least a title or description or excerpt. Saving an event without at least one of these fields filled out with information will result in your event not saving correctly. You will then need to recreate your event by clicking on the Add Event button.', |
|
9 | + 'event_espresso' |
|
10 | + ), |
|
11 | + '<a href="https://core.trac.wordpress.org/ticket/17115#comment:15">', |
|
12 | + '</a>' |
|
13 | 13 | ); ?> |
14 | 14 | </p> |
15 | 15 | <ul> |
@@ -38,103 +38,103 @@ |
||
38 | 38 | * @since 4.0 |
39 | 39 | */ |
40 | 40 | if (function_exists('espresso_version')) { |
41 | - if (! function_exists('espresso_duplicate_plugin_error')) { |
|
42 | - /** |
|
43 | - * espresso_duplicate_plugin_error |
|
44 | - * displays if more than one version of EE is activated at the same time |
|
45 | - */ |
|
46 | - function espresso_duplicate_plugin_error() |
|
47 | - { |
|
48 | - ?> |
|
41 | + if (! function_exists('espresso_duplicate_plugin_error')) { |
|
42 | + /** |
|
43 | + * espresso_duplicate_plugin_error |
|
44 | + * displays if more than one version of EE is activated at the same time |
|
45 | + */ |
|
46 | + function espresso_duplicate_plugin_error() |
|
47 | + { |
|
48 | + ?> |
|
49 | 49 | <div class="error"> |
50 | 50 | <p> |
51 | 51 | <?php |
52 | - echo esc_html__( |
|
53 | - 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
54 | - 'event_espresso' |
|
55 | - ); ?> |
|
52 | + echo esc_html__( |
|
53 | + 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
54 | + 'event_espresso' |
|
55 | + ); ?> |
|
56 | 56 | </p> |
57 | 57 | </div> |
58 | 58 | <?php |
59 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
60 | - } |
|
61 | - } |
|
62 | - add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
59 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
60 | + } |
|
61 | + } |
|
62 | + add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
63 | 63 | } else { |
64 | - define('EE_MIN_PHP_VER_REQUIRED', '5.4.0'); |
|
65 | - if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
66 | - /** |
|
67 | - * espresso_minimum_php_version_error |
|
68 | - * |
|
69 | - * @return void |
|
70 | - */ |
|
71 | - function espresso_minimum_php_version_error() |
|
72 | - { |
|
73 | - ?> |
|
64 | + define('EE_MIN_PHP_VER_REQUIRED', '5.4.0'); |
|
65 | + if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
66 | + /** |
|
67 | + * espresso_minimum_php_version_error |
|
68 | + * |
|
69 | + * @return void |
|
70 | + */ |
|
71 | + function espresso_minimum_php_version_error() |
|
72 | + { |
|
73 | + ?> |
|
74 | 74 | <div class="error"> |
75 | 75 | <p> |
76 | 76 | <?php |
77 | - printf( |
|
78 | - esc_html__( |
|
79 | - 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
80 | - 'event_espresso' |
|
81 | - ), |
|
82 | - EE_MIN_PHP_VER_REQUIRED, |
|
83 | - PHP_VERSION, |
|
84 | - '<br/>', |
|
85 | - '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
86 | - ); |
|
87 | - ?> |
|
77 | + printf( |
|
78 | + esc_html__( |
|
79 | + 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
80 | + 'event_espresso' |
|
81 | + ), |
|
82 | + EE_MIN_PHP_VER_REQUIRED, |
|
83 | + PHP_VERSION, |
|
84 | + '<br/>', |
|
85 | + '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
86 | + ); |
|
87 | + ?> |
|
88 | 88 | </p> |
89 | 89 | </div> |
90 | 90 | <?php |
91 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
92 | - } |
|
91 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
92 | + } |
|
93 | 93 | |
94 | - add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
95 | - } else { |
|
96 | - define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
97 | - /** |
|
98 | - * espresso_version |
|
99 | - * Returns the plugin version |
|
100 | - * |
|
101 | - * @return string |
|
102 | - */ |
|
103 | - function espresso_version() |
|
104 | - { |
|
105 | - return apply_filters('FHEE__espresso__espresso_version', '4.9.81.rc.023'); |
|
106 | - } |
|
94 | + add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
95 | + } else { |
|
96 | + define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
97 | + /** |
|
98 | + * espresso_version |
|
99 | + * Returns the plugin version |
|
100 | + * |
|
101 | + * @return string |
|
102 | + */ |
|
103 | + function espresso_version() |
|
104 | + { |
|
105 | + return apply_filters('FHEE__espresso__espresso_version', '4.9.81.rc.023'); |
|
106 | + } |
|
107 | 107 | |
108 | - /** |
|
109 | - * espresso_plugin_activation |
|
110 | - * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
111 | - */ |
|
112 | - function espresso_plugin_activation() |
|
113 | - { |
|
114 | - update_option('ee_espresso_activation', true); |
|
115 | - } |
|
108 | + /** |
|
109 | + * espresso_plugin_activation |
|
110 | + * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
111 | + */ |
|
112 | + function espresso_plugin_activation() |
|
113 | + { |
|
114 | + update_option('ee_espresso_activation', true); |
|
115 | + } |
|
116 | 116 | |
117 | - register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
117 | + register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
118 | 118 | |
119 | - require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
120 | - bootstrap_espresso(); |
|
121 | - } |
|
119 | + require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
120 | + bootstrap_espresso(); |
|
121 | + } |
|
122 | 122 | } |
123 | 123 | if (! function_exists('espresso_deactivate_plugin')) { |
124 | - /** |
|
125 | - * deactivate_plugin |
|
126 | - * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
127 | - * |
|
128 | - * @access public |
|
129 | - * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
130 | - * @return void |
|
131 | - */ |
|
132 | - function espresso_deactivate_plugin($plugin_basename = '') |
|
133 | - { |
|
134 | - if (! function_exists('deactivate_plugins')) { |
|
135 | - require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
136 | - } |
|
137 | - unset($_GET['activate'], $_REQUEST['activate']); |
|
138 | - deactivate_plugins($plugin_basename); |
|
139 | - } |
|
124 | + /** |
|
125 | + * deactivate_plugin |
|
126 | + * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
127 | + * |
|
128 | + * @access public |
|
129 | + * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
130 | + * @return void |
|
131 | + */ |
|
132 | + function espresso_deactivate_plugin($plugin_basename = '') |
|
133 | + { |
|
134 | + if (! function_exists('deactivate_plugins')) { |
|
135 | + require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
136 | + } |
|
137 | + unset($_GET['activate'], $_REQUEST['activate']); |
|
138 | + deactivate_plugins($plugin_basename); |
|
139 | + } |
|
140 | 140 | } |