@@ -38,138 +38,138 @@ |
||
| 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', '7.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', '7.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="https://www.php.net/downloads.php">https://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="https://www.php.net/downloads.php">https://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__); |
|
| 94 | + add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
| 95 | + } else { |
|
| 96 | + define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
| 97 | 97 | |
| 98 | - require_once __DIR__ . '/vendor/autoload.php'; |
|
| 98 | + require_once __DIR__ . '/vendor/autoload.php'; |
|
| 99 | 99 | |
| 100 | - /** |
|
| 101 | - * espresso_version |
|
| 102 | - * Returns the plugin version |
|
| 103 | - * |
|
| 104 | - * @return string |
|
| 105 | - */ |
|
| 106 | - function espresso_version(): string |
|
| 107 | - { |
|
| 108 | - return apply_filters('FHEE__espresso__espresso_version', '5.0.50'); |
|
| 109 | - } |
|
| 100 | + /** |
|
| 101 | + * espresso_version |
|
| 102 | + * Returns the plugin version |
|
| 103 | + * |
|
| 104 | + * @return string |
|
| 105 | + */ |
|
| 106 | + function espresso_version(): string |
|
| 107 | + { |
|
| 108 | + return apply_filters('FHEE__espresso__espresso_version', '5.0.50'); |
|
| 109 | + } |
|
| 110 | 110 | |
| 111 | - /** |
|
| 112 | - * espresso_plugin_activation |
|
| 113 | - * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
| 114 | - */ |
|
| 115 | - function espresso_plugin_activation() |
|
| 116 | - { |
|
| 117 | - update_option('ee_espresso_activation', true); |
|
| 118 | - update_option('event-espresso-core_allow_tracking', 'no'); |
|
| 119 | - update_option('event-espresso-core_tracking_notice', 'hide'); |
|
| 120 | - // Run WP GraphQL activation callback |
|
| 121 | - espressoLoadWpGraphQL(); |
|
| 122 | - graphql_activation_callback(); |
|
| 123 | - } |
|
| 111 | + /** |
|
| 112 | + * espresso_plugin_activation |
|
| 113 | + * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
| 114 | + */ |
|
| 115 | + function espresso_plugin_activation() |
|
| 116 | + { |
|
| 117 | + update_option('ee_espresso_activation', true); |
|
| 118 | + update_option('event-espresso-core_allow_tracking', 'no'); |
|
| 119 | + update_option('event-espresso-core_tracking_notice', 'hide'); |
|
| 120 | + // Run WP GraphQL activation callback |
|
| 121 | + espressoLoadWpGraphQL(); |
|
| 122 | + graphql_activation_callback(); |
|
| 123 | + } |
|
| 124 | 124 | |
| 125 | - register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
| 125 | + register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
| 126 | 126 | |
| 127 | - /** |
|
| 128 | - * espresso_plugin_deactivation |
|
| 129 | - */ |
|
| 130 | - function espresso_plugin_deactivation() |
|
| 131 | - { |
|
| 132 | - // Run WP GraphQL deactivation callback |
|
| 133 | - espressoLoadWpGraphQL(); |
|
| 134 | - graphql_deactivation_callback(); |
|
| 135 | - delete_option('event-espresso-core_allow_tracking'); |
|
| 136 | - delete_option('event-espresso-core_tracking_notice'); |
|
| 137 | - } |
|
| 138 | - register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation'); |
|
| 127 | + /** |
|
| 128 | + * espresso_plugin_deactivation |
|
| 129 | + */ |
|
| 130 | + function espresso_plugin_deactivation() |
|
| 131 | + { |
|
| 132 | + // Run WP GraphQL deactivation callback |
|
| 133 | + espressoLoadWpGraphQL(); |
|
| 134 | + graphql_deactivation_callback(); |
|
| 135 | + delete_option('event-espresso-core_allow_tracking'); |
|
| 136 | + delete_option('event-espresso-core_tracking_notice'); |
|
| 137 | + } |
|
| 138 | + register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation'); |
|
| 139 | 139 | |
| 140 | - require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
| 141 | - bootstrap_espresso(); |
|
| 142 | - } |
|
| 140 | + require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
| 141 | + bootstrap_espresso(); |
|
| 142 | + } |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | if (! function_exists('espresso_deactivate_plugin')) { |
| 146 | - /** |
|
| 147 | - * deactivate_plugin |
|
| 148 | - * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
| 149 | - * |
|
| 150 | - * @access public |
|
| 151 | - * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
| 152 | - * @return void |
|
| 153 | - */ |
|
| 154 | - function espresso_deactivate_plugin(string $plugin_basename = '') |
|
| 155 | - { |
|
| 156 | - if (! function_exists('deactivate_plugins')) { |
|
| 157 | - require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
| 158 | - } |
|
| 159 | - unset($_GET['activate'], $_REQUEST['activate']); |
|
| 160 | - deactivate_plugins($plugin_basename); |
|
| 161 | - } |
|
| 146 | + /** |
|
| 147 | + * deactivate_plugin |
|
| 148 | + * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
| 149 | + * |
|
| 150 | + * @access public |
|
| 151 | + * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
| 152 | + * @return void |
|
| 153 | + */ |
|
| 154 | + function espresso_deactivate_plugin(string $plugin_basename = '') |
|
| 155 | + { |
|
| 156 | + if (! function_exists('deactivate_plugins')) { |
|
| 157 | + require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
| 158 | + } |
|
| 159 | + unset($_GET['activate'], $_REQUEST['activate']); |
|
| 160 | + deactivate_plugins($plugin_basename); |
|
| 161 | + } |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | |
| 165 | 165 | if (! function_exists('espressoLoadWpGraphQL')) { |
| 166 | - function espressoLoadWpGraphQL() |
|
| 167 | - { |
|
| 168 | - if ( |
|
| 169 | - ! class_exists('WPGraphQL') |
|
| 170 | - && is_readable(__DIR__ . '/vendor/wp-graphql/wp-graphql/wp-graphql.php') |
|
| 171 | - ) { |
|
| 172 | - require_once __DIR__ . '/vendor/wp-graphql/wp-graphql/wp-graphql.php'; |
|
| 173 | - } |
|
| 174 | - } |
|
| 166 | + function espressoLoadWpGraphQL() |
|
| 167 | + { |
|
| 168 | + if ( |
|
| 169 | + ! class_exists('WPGraphQL') |
|
| 170 | + && is_readable(__DIR__ . '/vendor/wp-graphql/wp-graphql/wp-graphql.php') |
|
| 171 | + ) { |
|
| 172 | + require_once __DIR__ . '/vendor/wp-graphql/wp-graphql/wp-graphql.php'; |
|
| 173 | + } |
|
| 174 | + } |
|
| 175 | 175 | } |
@@ -10,262 +10,262 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class EEH_Parse_Shortcodes |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * holds the template |
|
| 15 | - * |
|
| 16 | - * @access private |
|
| 17 | - * @var mixed (string|array) |
|
| 18 | - */ |
|
| 19 | - private $_template; |
|
| 20 | - |
|
| 21 | - |
|
| 22 | - /** |
|
| 23 | - * holds the incoming data object |
|
| 24 | - * |
|
| 25 | - * @access private |
|
| 26 | - * @var object |
|
| 27 | - */ |
|
| 28 | - private $_data; |
|
| 29 | - |
|
| 30 | - |
|
| 31 | - /** |
|
| 32 | - * will hold an array of EE_Shortcodes library objects. |
|
| 33 | - * |
|
| 34 | - * @access private |
|
| 35 | - * @var EE_Shortcodes[] |
|
| 36 | - */ |
|
| 37 | - private $_shortcode_objs = array(); |
|
| 38 | - |
|
| 39 | - |
|
| 40 | - /** |
|
| 41 | - * This kicks off the parsing of shortcodes in message templates |
|
| 42 | - * |
|
| 43 | - * @param string $template This is the incoming string to be parsed |
|
| 44 | - * @param EE_Messages_Addressee $data This is the incoming data object |
|
| 45 | - * @param array $valid_shortcodes An array of strings that correspond to EE_Shortcode libraries |
|
| 46 | - * @param EE_message_type $message_type The message type that called the parser |
|
| 47 | - * @param EE_messenger $messenger The active messenger for this parsing session. |
|
| 48 | - * @param EE_Message $message |
|
| 49 | - * @return string The parsed template string |
|
| 50 | - */ |
|
| 51 | - public function parse_message_template( |
|
| 52 | - $template, |
|
| 53 | - EE_Messages_Addressee $data, |
|
| 54 | - $valid_shortcodes, |
|
| 55 | - EE_message_type $message_type, |
|
| 56 | - EE_messenger $messenger, |
|
| 57 | - EE_Message $message |
|
| 58 | - ) { |
|
| 59 | - $extra_data = array( |
|
| 60 | - 'messenger' => $messenger, |
|
| 61 | - 'message_type' => $message_type, |
|
| 62 | - 'message' => $message, |
|
| 63 | - ); |
|
| 64 | - $this->_init_data($template, $data, $valid_shortcodes, $extra_data); |
|
| 65 | - $this->_template = is_array($template) ? $template['main'] : $template; |
|
| 66 | - return $this->_parse_message_template(); |
|
| 67 | - } |
|
| 68 | - |
|
| 69 | - |
|
| 70 | - public function parse_attendee_list_template( |
|
| 71 | - $template, |
|
| 72 | - EE_Registration $registration, |
|
| 73 | - $valid_shortcodes, |
|
| 74 | - $extra_data = array() |
|
| 75 | - ) { |
|
| 76 | - $this->_init_data($template, $registration, $valid_shortcodes, $extra_data); |
|
| 77 | - $this->_template = is_array($template) ? $template['attendee_list'] : $template; |
|
| 78 | - return $this->_parse_message_template(); |
|
| 79 | - } |
|
| 80 | - |
|
| 81 | - public function parse_event_list_template($template, EE_Event $event, $valid_shortcodes, $extra_data = array()) |
|
| 82 | - { |
|
| 83 | - $this->_init_data($template, $event, $valid_shortcodes, $extra_data); |
|
| 84 | - $this->_template = is_array($template) ? $template['event_list'] : $template; |
|
| 85 | - return $this->_parse_message_template(); |
|
| 86 | - } |
|
| 87 | - |
|
| 88 | - |
|
| 89 | - public function parse_ticket_list_template($template, EE_Ticket $ticket, $valid_shortcodes, $extra_data = array()) |
|
| 90 | - { |
|
| 91 | - $this->_init_data($template, $ticket, $valid_shortcodes, $extra_data); |
|
| 92 | - $this->_template = is_array($template) ? $template['ticket_list'] : $template; |
|
| 93 | - return $this->_parse_message_template(); |
|
| 94 | - } |
|
| 95 | - |
|
| 96 | - |
|
| 97 | - public function parse_line_item_list_template( |
|
| 98 | - $template, |
|
| 99 | - EE_Line_Item $line_item, |
|
| 100 | - $valid_shortcodes, |
|
| 101 | - $extra_data = array() |
|
| 102 | - ) { |
|
| 103 | - $this->_init_data($template, $line_item, $valid_shortcodes, $extra_data); |
|
| 104 | - $this->_template = is_array($template) ? $template['ticket_line_item_no_pms'] : $template; |
|
| 105 | - return $this->_parse_message_template(); |
|
| 106 | - } |
|
| 107 | - |
|
| 108 | - |
|
| 109 | - public function parse_payment_list_template( |
|
| 110 | - $template, |
|
| 111 | - EE_Payment $payment_item, |
|
| 112 | - $valid_shortcodes, |
|
| 113 | - $extra_data = array() |
|
| 114 | - ) { |
|
| 115 | - $this->_init_data($template, $payment_item, $valid_shortcodes, $extra_data); |
|
| 116 | - $this->_template = is_array($template) ? $template['payment_list'] : $template; |
|
| 117 | - return $this->_parse_message_template(); |
|
| 118 | - } |
|
| 119 | - |
|
| 120 | - |
|
| 121 | - public function parse_datetime_list_template( |
|
| 122 | - $template, |
|
| 123 | - EE_Datetime $datetime, |
|
| 124 | - $valid_shortcodes, |
|
| 125 | - $extra_data = array() |
|
| 126 | - ) { |
|
| 127 | - $this->_init_data($template, $datetime, $valid_shortcodes, $extra_data); |
|
| 128 | - $this->_template = is_array($template) ? $template['datetime_list'] : $template; |
|
| 129 | - return $this->_parse_message_template(); |
|
| 130 | - } |
|
| 131 | - |
|
| 132 | - |
|
| 133 | - public function parse_question_list_template($template, EE_Answer $answer, $valid_shortcodes, $extra_data = array()) |
|
| 134 | - { |
|
| 135 | - $this->_init_data($template, $answer, $valid_shortcodes, $extra_data); |
|
| 136 | - $this->_template = is_array($template) ? $template['question_list'] : $template; |
|
| 137 | - return $this->_parse_message_template(); |
|
| 138 | - } |
|
| 139 | - |
|
| 140 | - |
|
| 141 | - private function _init_data($template, $data, $valid_shortcodes, $extra_data = array()) |
|
| 142 | - { |
|
| 143 | - $this->_reset_props(); |
|
| 144 | - $this->_data['template'] = $template; |
|
| 145 | - $this->_data['data'] = $data; |
|
| 146 | - $this->_data['extra_data'] = $extra_data; |
|
| 147 | - $this->_set_shortcodes($valid_shortcodes); |
|
| 148 | - } |
|
| 149 | - |
|
| 150 | - |
|
| 151 | - private function _reset_props() |
|
| 152 | - { |
|
| 153 | - $this->_template = $this->_data = null; |
|
| 154 | - $this->_shortcode_objs = array(); |
|
| 155 | - } |
|
| 156 | - |
|
| 157 | - |
|
| 158 | - /** |
|
| 159 | - * takes the given template and parses it with the $_shortcodes property |
|
| 160 | - * |
|
| 161 | - * @return string |
|
| 162 | - */ |
|
| 163 | - private function _parse_message_template(): string |
|
| 164 | - { |
|
| 165 | - // now let's get a list of shortcodes that are found in the given template |
|
| 166 | - preg_match_all(EE_Shortcodes::REGEX_SHORTCODE_FULL, $this->_template, $matches); |
|
| 167 | - $shortcodes = $matches[0]; // this should be an array of shortcodes in the template string. |
|
| 168 | - |
|
| 169 | - $matched_code = array(); |
|
| 170 | - $sc_values = array(); |
|
| 171 | - |
|
| 172 | - $list_type_shortcodes = array( |
|
| 173 | - '[ATTENDEE_LIST]', |
|
| 174 | - '[EVENT_LIST]', |
|
| 175 | - '[TICKET_LIST]', |
|
| 176 | - '[DATETIME_LIST]', |
|
| 177 | - '[QUESTION_LIST]', |
|
| 178 | - '[RECIPIENT_QUESTION_LIST]', |
|
| 179 | - '[PRIMARY_REGISTRANT_QUESTION_LIST]', |
|
| 180 | - '[RECIPIENT_TICKET_LIST]', |
|
| 181 | - '[PRIMARY_REGISTRANT_TICKET_LIST]', |
|
| 182 | - '[RECIPIENT_DATETIME_LIST]', |
|
| 183 | - '[PRIMARY_REGISTRANT_DATETIME_LIST]', |
|
| 184 | - '[TICKET_LINE_ITEM_LIST]', |
|
| 185 | - '[TAX_LINE_ITEM_LIST]', |
|
| 186 | - '[ADDITIONAL_LINE_ITEM_LIST]', |
|
| 187 | - '[PRICE_MODIFIER_LINE_ITEM_LIST]', |
|
| 188 | - '[PAYMENT_LIST_*]', |
|
| 189 | - ); |
|
| 190 | - |
|
| 191 | - $list_type_shortcodes = apply_filters( |
|
| 192 | - 'FHEE__EEH_Parse_Shortcodes___parse_message_template__list_type_shortcodes', |
|
| 193 | - $list_type_shortcodes |
|
| 194 | - ); |
|
| 195 | - |
|
| 196 | - // now lets go ahead and loop through our parsers for each shortcode and set up the values |
|
| 197 | - foreach ($shortcodes as $shortcode) { |
|
| 198 | - // truncate full shortcode to shortcode name only (ie: remove attributes and dynamic portions) |
|
| 199 | - $short_code_name = EE_Shortcodes::extractShortcode($shortcode); |
|
| 200 | - |
|
| 201 | - foreach ($this->_shortcode_objs as $sc_obj) { |
|
| 202 | - if (! $sc_obj instanceof EE_Shortcodes) { |
|
| 203 | - continue; |
|
| 204 | - } |
|
| 205 | - // check if the given shortcode is in this object, if not, move on |
|
| 206 | - if (! array_key_exists($short_code_name, $sc_obj->get_shortcodes())) { |
|
| 207 | - continue; |
|
| 208 | - } |
|
| 209 | - |
|
| 210 | - // if this isn't a "list" type shortcode then we'll send along the data vanilla instead of in an array. |
|
| 211 | - if (! in_array($shortcode, $list_type_shortcodes)) { |
|
| 212 | - $data_send = ! is_object($this->_data) && isset($this->_data['data']) ? $this->_data['data'] : $this->_data; |
|
| 213 | - } else { |
|
| 214 | - $data_send = $this->_data; |
|
| 215 | - } |
|
| 216 | - |
|
| 217 | - // is this a conditional type shortcode? If it is then we actually parse the template here. |
|
| 218 | - if ($this->_is_conditional_shortcode($shortcode)) { |
|
| 219 | - // most shortcode parsers are not going to have a match for this shortcode |
|
| 220 | - // and will return an empty string so we need to make sure that we're only replacing |
|
| 221 | - // the template when there is a non-empty string. |
|
| 222 | - $parsed = $sc_obj->parser($shortcode, $data_send, $this->_data['extra_data']); |
|
| 223 | - if ($parsed) { |
|
| 224 | - $this->_template = $parsed; |
|
| 225 | - } |
|
| 226 | - } |
|
| 227 | - $parsed = $sc_obj->parser($shortcode, $data_send, $this->_data['extra_data']); |
|
| 228 | - |
|
| 229 | - $matched_code[] = $shortcode; |
|
| 230 | - $sc_values[] = $parsed; |
|
| 231 | - } |
|
| 232 | - } |
|
| 233 | - |
|
| 234 | - // now we've got parsed values for all the shortcodes in the template so we can go ahead and swap the shortcodes out. |
|
| 235 | - return str_replace(array_values($matched_code), array_values($sc_values), $this->_template); |
|
| 236 | - } |
|
| 237 | - |
|
| 238 | - |
|
| 239 | - /** |
|
| 240 | - * Simply returns whether the given shortcode matches the structure for a conditional shortcode. |
|
| 241 | - * |
|
| 242 | - * Does it match this format: `[IF_` |
|
| 243 | - * |
|
| 244 | - * @param $shortcode |
|
| 245 | - * @return bool |
|
| 246 | - */ |
|
| 247 | - protected function _is_conditional_shortcode($shortcode): bool |
|
| 248 | - { |
|
| 249 | - return strpos($shortcode, '[IF_') === 0; |
|
| 250 | - } |
|
| 251 | - |
|
| 252 | - |
|
| 253 | - /** |
|
| 254 | - * This sets the shortcodes property from the incoming array of valid shortcodes that corresponds to names of |
|
| 255 | - * various EE_Shortcode library objects |
|
| 256 | - * |
|
| 257 | - * @param array $valid_shortcodes an array of strings corresponding to EE_Shortcode Library objects |
|
| 258 | - * @return void |
|
| 259 | - */ |
|
| 260 | - private function _set_shortcodes(array $valid_shortcodes) |
|
| 261 | - { |
|
| 262 | - foreach ($valid_shortcodes as $shortcode_ref) { |
|
| 263 | - $ref = ucwords(str_replace('_', ' ', $shortcode_ref)); |
|
| 264 | - $ref = str_replace(' ', '_', $ref); |
|
| 265 | - $classname = 'EE_' . $ref . '_Shortcodes'; |
|
| 266 | - if (class_exists($classname) && ! isset($this->_shortcode_objs[ $classname ])) { |
|
| 267 | - $this->_shortcode_objs[ $classname ] = new $classname(); |
|
| 268 | - } |
|
| 269 | - } |
|
| 270 | - } |
|
| 13 | + /** |
|
| 14 | + * holds the template |
|
| 15 | + * |
|
| 16 | + * @access private |
|
| 17 | + * @var mixed (string|array) |
|
| 18 | + */ |
|
| 19 | + private $_template; |
|
| 20 | + |
|
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * holds the incoming data object |
|
| 24 | + * |
|
| 25 | + * @access private |
|
| 26 | + * @var object |
|
| 27 | + */ |
|
| 28 | + private $_data; |
|
| 29 | + |
|
| 30 | + |
|
| 31 | + /** |
|
| 32 | + * will hold an array of EE_Shortcodes library objects. |
|
| 33 | + * |
|
| 34 | + * @access private |
|
| 35 | + * @var EE_Shortcodes[] |
|
| 36 | + */ |
|
| 37 | + private $_shortcode_objs = array(); |
|
| 38 | + |
|
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * This kicks off the parsing of shortcodes in message templates |
|
| 42 | + * |
|
| 43 | + * @param string $template This is the incoming string to be parsed |
|
| 44 | + * @param EE_Messages_Addressee $data This is the incoming data object |
|
| 45 | + * @param array $valid_shortcodes An array of strings that correspond to EE_Shortcode libraries |
|
| 46 | + * @param EE_message_type $message_type The message type that called the parser |
|
| 47 | + * @param EE_messenger $messenger The active messenger for this parsing session. |
|
| 48 | + * @param EE_Message $message |
|
| 49 | + * @return string The parsed template string |
|
| 50 | + */ |
|
| 51 | + public function parse_message_template( |
|
| 52 | + $template, |
|
| 53 | + EE_Messages_Addressee $data, |
|
| 54 | + $valid_shortcodes, |
|
| 55 | + EE_message_type $message_type, |
|
| 56 | + EE_messenger $messenger, |
|
| 57 | + EE_Message $message |
|
| 58 | + ) { |
|
| 59 | + $extra_data = array( |
|
| 60 | + 'messenger' => $messenger, |
|
| 61 | + 'message_type' => $message_type, |
|
| 62 | + 'message' => $message, |
|
| 63 | + ); |
|
| 64 | + $this->_init_data($template, $data, $valid_shortcodes, $extra_data); |
|
| 65 | + $this->_template = is_array($template) ? $template['main'] : $template; |
|
| 66 | + return $this->_parse_message_template(); |
|
| 67 | + } |
|
| 68 | + |
|
| 69 | + |
|
| 70 | + public function parse_attendee_list_template( |
|
| 71 | + $template, |
|
| 72 | + EE_Registration $registration, |
|
| 73 | + $valid_shortcodes, |
|
| 74 | + $extra_data = array() |
|
| 75 | + ) { |
|
| 76 | + $this->_init_data($template, $registration, $valid_shortcodes, $extra_data); |
|
| 77 | + $this->_template = is_array($template) ? $template['attendee_list'] : $template; |
|
| 78 | + return $this->_parse_message_template(); |
|
| 79 | + } |
|
| 80 | + |
|
| 81 | + public function parse_event_list_template($template, EE_Event $event, $valid_shortcodes, $extra_data = array()) |
|
| 82 | + { |
|
| 83 | + $this->_init_data($template, $event, $valid_shortcodes, $extra_data); |
|
| 84 | + $this->_template = is_array($template) ? $template['event_list'] : $template; |
|
| 85 | + return $this->_parse_message_template(); |
|
| 86 | + } |
|
| 87 | + |
|
| 88 | + |
|
| 89 | + public function parse_ticket_list_template($template, EE_Ticket $ticket, $valid_shortcodes, $extra_data = array()) |
|
| 90 | + { |
|
| 91 | + $this->_init_data($template, $ticket, $valid_shortcodes, $extra_data); |
|
| 92 | + $this->_template = is_array($template) ? $template['ticket_list'] : $template; |
|
| 93 | + return $this->_parse_message_template(); |
|
| 94 | + } |
|
| 95 | + |
|
| 96 | + |
|
| 97 | + public function parse_line_item_list_template( |
|
| 98 | + $template, |
|
| 99 | + EE_Line_Item $line_item, |
|
| 100 | + $valid_shortcodes, |
|
| 101 | + $extra_data = array() |
|
| 102 | + ) { |
|
| 103 | + $this->_init_data($template, $line_item, $valid_shortcodes, $extra_data); |
|
| 104 | + $this->_template = is_array($template) ? $template['ticket_line_item_no_pms'] : $template; |
|
| 105 | + return $this->_parse_message_template(); |
|
| 106 | + } |
|
| 107 | + |
|
| 108 | + |
|
| 109 | + public function parse_payment_list_template( |
|
| 110 | + $template, |
|
| 111 | + EE_Payment $payment_item, |
|
| 112 | + $valid_shortcodes, |
|
| 113 | + $extra_data = array() |
|
| 114 | + ) { |
|
| 115 | + $this->_init_data($template, $payment_item, $valid_shortcodes, $extra_data); |
|
| 116 | + $this->_template = is_array($template) ? $template['payment_list'] : $template; |
|
| 117 | + return $this->_parse_message_template(); |
|
| 118 | + } |
|
| 119 | + |
|
| 120 | + |
|
| 121 | + public function parse_datetime_list_template( |
|
| 122 | + $template, |
|
| 123 | + EE_Datetime $datetime, |
|
| 124 | + $valid_shortcodes, |
|
| 125 | + $extra_data = array() |
|
| 126 | + ) { |
|
| 127 | + $this->_init_data($template, $datetime, $valid_shortcodes, $extra_data); |
|
| 128 | + $this->_template = is_array($template) ? $template['datetime_list'] : $template; |
|
| 129 | + return $this->_parse_message_template(); |
|
| 130 | + } |
|
| 131 | + |
|
| 132 | + |
|
| 133 | + public function parse_question_list_template($template, EE_Answer $answer, $valid_shortcodes, $extra_data = array()) |
|
| 134 | + { |
|
| 135 | + $this->_init_data($template, $answer, $valid_shortcodes, $extra_data); |
|
| 136 | + $this->_template = is_array($template) ? $template['question_list'] : $template; |
|
| 137 | + return $this->_parse_message_template(); |
|
| 138 | + } |
|
| 139 | + |
|
| 140 | + |
|
| 141 | + private function _init_data($template, $data, $valid_shortcodes, $extra_data = array()) |
|
| 142 | + { |
|
| 143 | + $this->_reset_props(); |
|
| 144 | + $this->_data['template'] = $template; |
|
| 145 | + $this->_data['data'] = $data; |
|
| 146 | + $this->_data['extra_data'] = $extra_data; |
|
| 147 | + $this->_set_shortcodes($valid_shortcodes); |
|
| 148 | + } |
|
| 149 | + |
|
| 150 | + |
|
| 151 | + private function _reset_props() |
|
| 152 | + { |
|
| 153 | + $this->_template = $this->_data = null; |
|
| 154 | + $this->_shortcode_objs = array(); |
|
| 155 | + } |
|
| 156 | + |
|
| 157 | + |
|
| 158 | + /** |
|
| 159 | + * takes the given template and parses it with the $_shortcodes property |
|
| 160 | + * |
|
| 161 | + * @return string |
|
| 162 | + */ |
|
| 163 | + private function _parse_message_template(): string |
|
| 164 | + { |
|
| 165 | + // now let's get a list of shortcodes that are found in the given template |
|
| 166 | + preg_match_all(EE_Shortcodes::REGEX_SHORTCODE_FULL, $this->_template, $matches); |
|
| 167 | + $shortcodes = $matches[0]; // this should be an array of shortcodes in the template string. |
|
| 168 | + |
|
| 169 | + $matched_code = array(); |
|
| 170 | + $sc_values = array(); |
|
| 171 | + |
|
| 172 | + $list_type_shortcodes = array( |
|
| 173 | + '[ATTENDEE_LIST]', |
|
| 174 | + '[EVENT_LIST]', |
|
| 175 | + '[TICKET_LIST]', |
|
| 176 | + '[DATETIME_LIST]', |
|
| 177 | + '[QUESTION_LIST]', |
|
| 178 | + '[RECIPIENT_QUESTION_LIST]', |
|
| 179 | + '[PRIMARY_REGISTRANT_QUESTION_LIST]', |
|
| 180 | + '[RECIPIENT_TICKET_LIST]', |
|
| 181 | + '[PRIMARY_REGISTRANT_TICKET_LIST]', |
|
| 182 | + '[RECIPIENT_DATETIME_LIST]', |
|
| 183 | + '[PRIMARY_REGISTRANT_DATETIME_LIST]', |
|
| 184 | + '[TICKET_LINE_ITEM_LIST]', |
|
| 185 | + '[TAX_LINE_ITEM_LIST]', |
|
| 186 | + '[ADDITIONAL_LINE_ITEM_LIST]', |
|
| 187 | + '[PRICE_MODIFIER_LINE_ITEM_LIST]', |
|
| 188 | + '[PAYMENT_LIST_*]', |
|
| 189 | + ); |
|
| 190 | + |
|
| 191 | + $list_type_shortcodes = apply_filters( |
|
| 192 | + 'FHEE__EEH_Parse_Shortcodes___parse_message_template__list_type_shortcodes', |
|
| 193 | + $list_type_shortcodes |
|
| 194 | + ); |
|
| 195 | + |
|
| 196 | + // now lets go ahead and loop through our parsers for each shortcode and set up the values |
|
| 197 | + foreach ($shortcodes as $shortcode) { |
|
| 198 | + // truncate full shortcode to shortcode name only (ie: remove attributes and dynamic portions) |
|
| 199 | + $short_code_name = EE_Shortcodes::extractShortcode($shortcode); |
|
| 200 | + |
|
| 201 | + foreach ($this->_shortcode_objs as $sc_obj) { |
|
| 202 | + if (! $sc_obj instanceof EE_Shortcodes) { |
|
| 203 | + continue; |
|
| 204 | + } |
|
| 205 | + // check if the given shortcode is in this object, if not, move on |
|
| 206 | + if (! array_key_exists($short_code_name, $sc_obj->get_shortcodes())) { |
|
| 207 | + continue; |
|
| 208 | + } |
|
| 209 | + |
|
| 210 | + // if this isn't a "list" type shortcode then we'll send along the data vanilla instead of in an array. |
|
| 211 | + if (! in_array($shortcode, $list_type_shortcodes)) { |
|
| 212 | + $data_send = ! is_object($this->_data) && isset($this->_data['data']) ? $this->_data['data'] : $this->_data; |
|
| 213 | + } else { |
|
| 214 | + $data_send = $this->_data; |
|
| 215 | + } |
|
| 216 | + |
|
| 217 | + // is this a conditional type shortcode? If it is then we actually parse the template here. |
|
| 218 | + if ($this->_is_conditional_shortcode($shortcode)) { |
|
| 219 | + // most shortcode parsers are not going to have a match for this shortcode |
|
| 220 | + // and will return an empty string so we need to make sure that we're only replacing |
|
| 221 | + // the template when there is a non-empty string. |
|
| 222 | + $parsed = $sc_obj->parser($shortcode, $data_send, $this->_data['extra_data']); |
|
| 223 | + if ($parsed) { |
|
| 224 | + $this->_template = $parsed; |
|
| 225 | + } |
|
| 226 | + } |
|
| 227 | + $parsed = $sc_obj->parser($shortcode, $data_send, $this->_data['extra_data']); |
|
| 228 | + |
|
| 229 | + $matched_code[] = $shortcode; |
|
| 230 | + $sc_values[] = $parsed; |
|
| 231 | + } |
|
| 232 | + } |
|
| 233 | + |
|
| 234 | + // now we've got parsed values for all the shortcodes in the template so we can go ahead and swap the shortcodes out. |
|
| 235 | + return str_replace(array_values($matched_code), array_values($sc_values), $this->_template); |
|
| 236 | + } |
|
| 237 | + |
|
| 238 | + |
|
| 239 | + /** |
|
| 240 | + * Simply returns whether the given shortcode matches the structure for a conditional shortcode. |
|
| 241 | + * |
|
| 242 | + * Does it match this format: `[IF_` |
|
| 243 | + * |
|
| 244 | + * @param $shortcode |
|
| 245 | + * @return bool |
|
| 246 | + */ |
|
| 247 | + protected function _is_conditional_shortcode($shortcode): bool |
|
| 248 | + { |
|
| 249 | + return strpos($shortcode, '[IF_') === 0; |
|
| 250 | + } |
|
| 251 | + |
|
| 252 | + |
|
| 253 | + /** |
|
| 254 | + * This sets the shortcodes property from the incoming array of valid shortcodes that corresponds to names of |
|
| 255 | + * various EE_Shortcode library objects |
|
| 256 | + * |
|
| 257 | + * @param array $valid_shortcodes an array of strings corresponding to EE_Shortcode Library objects |
|
| 258 | + * @return void |
|
| 259 | + */ |
|
| 260 | + private function _set_shortcodes(array $valid_shortcodes) |
|
| 261 | + { |
|
| 262 | + foreach ($valid_shortcodes as $shortcode_ref) { |
|
| 263 | + $ref = ucwords(str_replace('_', ' ', $shortcode_ref)); |
|
| 264 | + $ref = str_replace(' ', '_', $ref); |
|
| 265 | + $classname = 'EE_' . $ref . '_Shortcodes'; |
|
| 266 | + if (class_exists($classname) && ! isset($this->_shortcode_objs[ $classname ])) { |
|
| 267 | + $this->_shortcode_objs[ $classname ] = new $classname(); |
|
| 268 | + } |
|
| 269 | + } |
|
| 270 | + } |
|
| 271 | 271 | } |
@@ -199,16 +199,16 @@ discard block |
||
| 199 | 199 | $short_code_name = EE_Shortcodes::extractShortcode($shortcode); |
| 200 | 200 | |
| 201 | 201 | foreach ($this->_shortcode_objs as $sc_obj) { |
| 202 | - if (! $sc_obj instanceof EE_Shortcodes) { |
|
| 202 | + if ( ! $sc_obj instanceof EE_Shortcodes) { |
|
| 203 | 203 | continue; |
| 204 | 204 | } |
| 205 | 205 | // check if the given shortcode is in this object, if not, move on |
| 206 | - if (! array_key_exists($short_code_name, $sc_obj->get_shortcodes())) { |
|
| 206 | + if ( ! array_key_exists($short_code_name, $sc_obj->get_shortcodes())) { |
|
| 207 | 207 | continue; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | // if this isn't a "list" type shortcode then we'll send along the data vanilla instead of in an array. |
| 211 | - if (! in_array($shortcode, $list_type_shortcodes)) { |
|
| 211 | + if ( ! in_array($shortcode, $list_type_shortcodes)) { |
|
| 212 | 212 | $data_send = ! is_object($this->_data) && isset($this->_data['data']) ? $this->_data['data'] : $this->_data; |
| 213 | 213 | } else { |
| 214 | 214 | $data_send = $this->_data; |
@@ -262,9 +262,9 @@ discard block |
||
| 262 | 262 | foreach ($valid_shortcodes as $shortcode_ref) { |
| 263 | 263 | $ref = ucwords(str_replace('_', ' ', $shortcode_ref)); |
| 264 | 264 | $ref = str_replace(' ', '_', $ref); |
| 265 | - $classname = 'EE_' . $ref . '_Shortcodes'; |
|
| 266 | - if (class_exists($classname) && ! isset($this->_shortcode_objs[ $classname ])) { |
|
| 267 | - $this->_shortcode_objs[ $classname ] = new $classname(); |
|
| 265 | + $classname = 'EE_'.$ref.'_Shortcodes'; |
|
| 266 | + if (class_exists($classname) && ! isset($this->_shortcode_objs[$classname])) { |
|
| 267 | + $this->_shortcode_objs[$classname] = new $classname(); |
|
| 268 | 268 | } |
| 269 | 269 | } |
| 270 | 270 | } |
@@ -15,500 +15,500 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | abstract class EE_Shortcodes extends EE_Base |
| 17 | 17 | { |
| 18 | - /** |
|
| 19 | - * matches a full shortcode including shortcodes with attributes or dynamic shortcodes |
|
| 20 | - * examples: |
|
| 21 | - * [RECIPIENT_LNAME] |
|
| 22 | - * [RECEIPT_URL download=true] |
|
| 23 | - * [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] |
|
| 24 | - */ |
|
| 25 | - public const REGEX_SHORTCODE_FULL = '/(\[.+?])/'; |
|
| 26 | - |
|
| 27 | - /** |
|
| 28 | - * matches the opening [ plus dynamic or static shortcode name including _*, but nothing else |
|
| 29 | - * examples: |
|
| 30 | - * [RECIPIENT_LNAME] matches as [RECIPIENT_LNAME |
|
| 31 | - * [RECEIPT_URL download=true] matches as [RECEIPT_URL |
|
| 32 | - * [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] matches as [PAYMENT_LINK_IF_NEEDED_* |
|
| 33 | - * [PRIMARY_REGISTRANT_ANSWER_*Student ID] matches as [PRIMARY_REGISTRANT_ANSWER_* |
|
| 34 | - * [PRIMARY_REGISTRANT_ANSWER_* Student ID] matches as [PRIMARY_REGISTRANT_ANSWER_* |
|
| 35 | - */ |
|
| 36 | - public const REGEX_SHORTCODE_NAME_ONLY = '/(?:\[[A-Z0-9_]+\*?)/'; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * matches the opening [ plus the dynamic shortcode name including _*, but nothing else |
|
| 40 | - * examples: |
|
| 41 | - * [RECIPIENT_LNAME] does not match |
|
| 42 | - * [RECEIPT_URL download=true] does not match |
|
| 43 | - * [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] matches as [PAYMENT_LINK_IF_NEEDED_* |
|
| 44 | - */ |
|
| 45 | - public const REGEX_SHORTCODE_DYNAMIC = '/(\[[A-Z_]+_\*)/'; |
|
| 46 | - |
|
| 47 | - |
|
| 48 | - /** |
|
| 49 | - * holds label for library |
|
| 50 | - * This is used for referencing the library label |
|
| 51 | - * |
|
| 52 | - * @var string |
|
| 53 | - */ |
|
| 54 | - public string $label; |
|
| 55 | - |
|
| 56 | - |
|
| 57 | - public string $name; |
|
| 58 | - |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * This property is used for referencing a short description of the library |
|
| 62 | - * |
|
| 63 | - * @var string |
|
| 64 | - */ |
|
| 65 | - public string $description; |
|
| 66 | - |
|
| 67 | - |
|
| 68 | - /** |
|
| 69 | - * This will hold an array of shortcodes with the key as the shortcode ([shortcode]) and the value as a |
|
| 70 | - * label/description for the shortcode. |
|
| 71 | - * |
|
| 72 | - * @var array |
|
| 73 | - */ |
|
| 74 | - protected array $_shortcodes = []; |
|
| 75 | - |
|
| 76 | - |
|
| 77 | - /** |
|
| 78 | - * This will hold the incoming data item sent to the parser method |
|
| 79 | - * |
|
| 80 | - * @var array|object |
|
| 81 | - */ |
|
| 82 | - protected $_data; |
|
| 83 | - |
|
| 84 | - |
|
| 85 | - /** |
|
| 86 | - * some shortcodes may require extra data to parse. This property is provided for that. |
|
| 87 | - * |
|
| 88 | - * @var array|EE_Messages_Addressee |
|
| 89 | - */ |
|
| 90 | - protected $_extra_data; |
|
| 91 | - |
|
| 92 | - |
|
| 93 | - /** |
|
| 94 | - * EE_messenger used to generate the template being parsed. |
|
| 95 | - * |
|
| 96 | - * @since 4.5.0 |
|
| 97 | - * @var EE_messenger |
|
| 98 | - */ |
|
| 99 | - protected EE_messenger $_messenger; |
|
| 100 | - |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * message type used to generate the template being parsed. |
|
| 104 | - * |
|
| 105 | - * @since 4.5.0 |
|
| 106 | - * @var EE_message_type|null |
|
| 107 | - */ |
|
| 108 | - protected ?EE_message_type $_message_type = null; |
|
| 109 | - |
|
| 110 | - |
|
| 111 | - /** |
|
| 112 | - * context used for the template being parsed |
|
| 113 | - * |
|
| 114 | - * @since 4.5.0 |
|
| 115 | - * @var string |
|
| 116 | - */ |
|
| 117 | - protected string $_context; |
|
| 118 | - |
|
| 119 | - |
|
| 120 | - /** |
|
| 121 | - * Specific Message Template Group ID |
|
| 122 | - * |
|
| 123 | - * @since 4.5.0 |
|
| 124 | - * @var int |
|
| 125 | - */ |
|
| 126 | - protected int $_GRP_ID; |
|
| 127 | - |
|
| 128 | - |
|
| 129 | - /** |
|
| 130 | - * @since 4.9.0 |
|
| 131 | - * @type EE_Message|null |
|
| 132 | - */ |
|
| 133 | - protected ?EE_Message $_message = null; |
|
| 134 | - |
|
| 135 | - |
|
| 136 | - /** |
|
| 137 | - * This will hold an instance of the EEH_Parse_Shortcodes helper that will be used when handling list type |
|
| 138 | - * shortcodes |
|
| 139 | - * |
|
| 140 | - * @var EEH_Parse_Shortcodes |
|
| 141 | - */ |
|
| 142 | - protected EEH_Parse_Shortcodes $_shortcode_helper; |
|
| 143 | - |
|
| 144 | - |
|
| 145 | - public function __construct() |
|
| 146 | - { |
|
| 147 | - $this->_set_defaults(); |
|
| 148 | - $this->_set_shortcode_helper(); |
|
| 149 | - $this->_init_props(); |
|
| 150 | - } |
|
| 151 | - |
|
| 152 | - |
|
| 153 | - /** |
|
| 154 | - * This sets the defaults for the properties. Child classes will override these properties in their _init_props |
|
| 155 | - * method |
|
| 156 | - */ |
|
| 157 | - private function _set_defaults() |
|
| 158 | - { |
|
| 159 | - $this->name = $this->description = ''; |
|
| 160 | - $this->_shortcodes = []; |
|
| 161 | - } |
|
| 162 | - |
|
| 163 | - |
|
| 164 | - /** |
|
| 165 | - * loads an instance of the EE_Shortcode_Parser helper when requested |
|
| 166 | - */ |
|
| 167 | - protected function _set_shortcode_helper() |
|
| 168 | - { |
|
| 169 | - // get shortcode_replace instance - set when _get_messages is called in child... |
|
| 170 | - $this->_shortcode_helper = new EEH_Parse_Shortcodes(); |
|
| 171 | - } |
|
| 172 | - |
|
| 173 | - |
|
| 174 | - public function get_shortcode_helper(): EEH_Parse_Shortcodes |
|
| 175 | - { |
|
| 176 | - return $this->_shortcode_helper; |
|
| 177 | - } |
|
| 178 | - |
|
| 179 | - |
|
| 180 | - /** |
|
| 181 | - * This is the public method for kicking of the parser included with each child. It can be overridden by child |
|
| 182 | - * classes if necessary (see EE_Questions_Answers for example) |
|
| 183 | - * |
|
| 184 | - * @param string $shortcode incoming shortcode to be parsed |
|
| 185 | - * @param object|array $data incoming data to be used for parsing |
|
| 186 | - * @param object|array $extra_data extra incoming data (usually EE_Messages_Addressee) |
|
| 187 | - * @return string parsed shortcode. |
|
| 188 | - */ |
|
| 189 | - public function parser(string $shortcode, $data, $extra_data = []): string |
|
| 190 | - { |
|
| 191 | - // filter setup shortcodes |
|
| 192 | - $this->_shortcodes = $this->get_shortcodes(); |
|
| 193 | - |
|
| 194 | - // Extract the shortcode name from the full shortcode |
|
| 195 | - $shortcode_to_verify = EE_Shortcodes::extractShortcode($shortcode); |
|
| 18 | + /** |
|
| 19 | + * matches a full shortcode including shortcodes with attributes or dynamic shortcodes |
|
| 20 | + * examples: |
|
| 21 | + * [RECIPIENT_LNAME] |
|
| 22 | + * [RECEIPT_URL download=true] |
|
| 23 | + * [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] |
|
| 24 | + */ |
|
| 25 | + public const REGEX_SHORTCODE_FULL = '/(\[.+?])/'; |
|
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * matches the opening [ plus dynamic or static shortcode name including _*, but nothing else |
|
| 29 | + * examples: |
|
| 30 | + * [RECIPIENT_LNAME] matches as [RECIPIENT_LNAME |
|
| 31 | + * [RECEIPT_URL download=true] matches as [RECEIPT_URL |
|
| 32 | + * [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] matches as [PAYMENT_LINK_IF_NEEDED_* |
|
| 33 | + * [PRIMARY_REGISTRANT_ANSWER_*Student ID] matches as [PRIMARY_REGISTRANT_ANSWER_* |
|
| 34 | + * [PRIMARY_REGISTRANT_ANSWER_* Student ID] matches as [PRIMARY_REGISTRANT_ANSWER_* |
|
| 35 | + */ |
|
| 36 | + public const REGEX_SHORTCODE_NAME_ONLY = '/(?:\[[A-Z0-9_]+\*?)/'; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * matches the opening [ plus the dynamic shortcode name including _*, but nothing else |
|
| 40 | + * examples: |
|
| 41 | + * [RECIPIENT_LNAME] does not match |
|
| 42 | + * [RECEIPT_URL download=true] does not match |
|
| 43 | + * [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] matches as [PAYMENT_LINK_IF_NEEDED_* |
|
| 44 | + */ |
|
| 45 | + public const REGEX_SHORTCODE_DYNAMIC = '/(\[[A-Z_]+_\*)/'; |
|
| 46 | + |
|
| 47 | + |
|
| 48 | + /** |
|
| 49 | + * holds label for library |
|
| 50 | + * This is used for referencing the library label |
|
| 51 | + * |
|
| 52 | + * @var string |
|
| 53 | + */ |
|
| 54 | + public string $label; |
|
| 55 | + |
|
| 56 | + |
|
| 57 | + public string $name; |
|
| 58 | + |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * This property is used for referencing a short description of the library |
|
| 62 | + * |
|
| 63 | + * @var string |
|
| 64 | + */ |
|
| 65 | + public string $description; |
|
| 66 | + |
|
| 67 | + |
|
| 68 | + /** |
|
| 69 | + * This will hold an array of shortcodes with the key as the shortcode ([shortcode]) and the value as a |
|
| 70 | + * label/description for the shortcode. |
|
| 71 | + * |
|
| 72 | + * @var array |
|
| 73 | + */ |
|
| 74 | + protected array $_shortcodes = []; |
|
| 75 | + |
|
| 76 | + |
|
| 77 | + /** |
|
| 78 | + * This will hold the incoming data item sent to the parser method |
|
| 79 | + * |
|
| 80 | + * @var array|object |
|
| 81 | + */ |
|
| 82 | + protected $_data; |
|
| 83 | + |
|
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * some shortcodes may require extra data to parse. This property is provided for that. |
|
| 87 | + * |
|
| 88 | + * @var array|EE_Messages_Addressee |
|
| 89 | + */ |
|
| 90 | + protected $_extra_data; |
|
| 91 | + |
|
| 92 | + |
|
| 93 | + /** |
|
| 94 | + * EE_messenger used to generate the template being parsed. |
|
| 95 | + * |
|
| 96 | + * @since 4.5.0 |
|
| 97 | + * @var EE_messenger |
|
| 98 | + */ |
|
| 99 | + protected EE_messenger $_messenger; |
|
| 100 | + |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * message type used to generate the template being parsed. |
|
| 104 | + * |
|
| 105 | + * @since 4.5.0 |
|
| 106 | + * @var EE_message_type|null |
|
| 107 | + */ |
|
| 108 | + protected ?EE_message_type $_message_type = null; |
|
| 109 | + |
|
| 110 | + |
|
| 111 | + /** |
|
| 112 | + * context used for the template being parsed |
|
| 113 | + * |
|
| 114 | + * @since 4.5.0 |
|
| 115 | + * @var string |
|
| 116 | + */ |
|
| 117 | + protected string $_context; |
|
| 118 | + |
|
| 119 | + |
|
| 120 | + /** |
|
| 121 | + * Specific Message Template Group ID |
|
| 122 | + * |
|
| 123 | + * @since 4.5.0 |
|
| 124 | + * @var int |
|
| 125 | + */ |
|
| 126 | + protected int $_GRP_ID; |
|
| 127 | + |
|
| 128 | + |
|
| 129 | + /** |
|
| 130 | + * @since 4.9.0 |
|
| 131 | + * @type EE_Message|null |
|
| 132 | + */ |
|
| 133 | + protected ?EE_Message $_message = null; |
|
| 134 | + |
|
| 135 | + |
|
| 136 | + /** |
|
| 137 | + * This will hold an instance of the EEH_Parse_Shortcodes helper that will be used when handling list type |
|
| 138 | + * shortcodes |
|
| 139 | + * |
|
| 140 | + * @var EEH_Parse_Shortcodes |
|
| 141 | + */ |
|
| 142 | + protected EEH_Parse_Shortcodes $_shortcode_helper; |
|
| 143 | + |
|
| 144 | + |
|
| 145 | + public function __construct() |
|
| 146 | + { |
|
| 147 | + $this->_set_defaults(); |
|
| 148 | + $this->_set_shortcode_helper(); |
|
| 149 | + $this->_init_props(); |
|
| 150 | + } |
|
| 151 | + |
|
| 152 | + |
|
| 153 | + /** |
|
| 154 | + * This sets the defaults for the properties. Child classes will override these properties in their _init_props |
|
| 155 | + * method |
|
| 156 | + */ |
|
| 157 | + private function _set_defaults() |
|
| 158 | + { |
|
| 159 | + $this->name = $this->description = ''; |
|
| 160 | + $this->_shortcodes = []; |
|
| 161 | + } |
|
| 162 | + |
|
| 163 | + |
|
| 164 | + /** |
|
| 165 | + * loads an instance of the EE_Shortcode_Parser helper when requested |
|
| 166 | + */ |
|
| 167 | + protected function _set_shortcode_helper() |
|
| 168 | + { |
|
| 169 | + // get shortcode_replace instance - set when _get_messages is called in child... |
|
| 170 | + $this->_shortcode_helper = new EEH_Parse_Shortcodes(); |
|
| 171 | + } |
|
| 172 | + |
|
| 173 | + |
|
| 174 | + public function get_shortcode_helper(): EEH_Parse_Shortcodes |
|
| 175 | + { |
|
| 176 | + return $this->_shortcode_helper; |
|
| 177 | + } |
|
| 178 | + |
|
| 179 | + |
|
| 180 | + /** |
|
| 181 | + * This is the public method for kicking of the parser included with each child. It can be overridden by child |
|
| 182 | + * classes if necessary (see EE_Questions_Answers for example) |
|
| 183 | + * |
|
| 184 | + * @param string $shortcode incoming shortcode to be parsed |
|
| 185 | + * @param object|array $data incoming data to be used for parsing |
|
| 186 | + * @param object|array $extra_data extra incoming data (usually EE_Messages_Addressee) |
|
| 187 | + * @return string parsed shortcode. |
|
| 188 | + */ |
|
| 189 | + public function parser(string $shortcode, $data, $extra_data = []): string |
|
| 190 | + { |
|
| 191 | + // filter setup shortcodes |
|
| 192 | + $this->_shortcodes = $this->get_shortcodes(); |
|
| 193 | + |
|
| 194 | + // Extract the shortcode name from the full shortcode |
|
| 195 | + $shortcode_to_verify = EE_Shortcodes::extractShortcode($shortcode); |
|
| 196 | 196 | |
| 197 | - // first we want to make sure this is a valid shortcode |
|
| 198 | - if (! array_key_exists($shortcode_to_verify, $this->_shortcodes)) { |
|
| 199 | - // get out, this parser doesn't handle the incoming shortcode. |
|
| 200 | - return ''; |
|
| 201 | - } |
|
| 202 | - $this->_data = $data; |
|
| 203 | - $this->_extra_data = $extra_data; |
|
| 204 | - $this->_set_messages_properties(); |
|
| 205 | - $parsed = (string) apply_filters( |
|
| 206 | - 'FHEE__' . get_class($this) . '__parser_after', |
|
| 207 | - $this->_parser($shortcode), |
|
| 208 | - $shortcode, |
|
| 209 | - $data, |
|
| 210 | - $extra_data, |
|
| 211 | - $this |
|
| 212 | - ); |
|
| 213 | - |
|
| 214 | - // note the below filter applies to ALL shortcode parsers... be careful! |
|
| 215 | - return (string) apply_filters( |
|
| 216 | - 'FHEE__EE_Shortcodes__parser_after', |
|
| 217 | - $parsed, |
|
| 218 | - $shortcode, |
|
| 219 | - $data, |
|
| 220 | - $extra_data, |
|
| 221 | - $this |
|
| 222 | - ); |
|
| 223 | - } |
|
| 224 | - |
|
| 225 | - |
|
| 226 | - /** |
|
| 227 | - * This method just returns the shortcodes in the $_shortcodes array property. |
|
| 228 | - * |
|
| 229 | - * @return array array of shortcodes => description pairs |
|
| 230 | - */ |
|
| 231 | - public function get_shortcodes(): array |
|
| 232 | - { |
|
| 233 | - $this->_shortcodes = (array) apply_filters( |
|
| 234 | - 'FHEE__' . get_class($this) . '__shortcodes', |
|
| 235 | - $this->_shortcodes, |
|
| 236 | - $this |
|
| 237 | - ); |
|
| 238 | - |
|
| 239 | - // note the below filter applies to ALL shortcode parsers... be careful! |
|
| 240 | - return (array) apply_filters('FHEE__EE_Shortcodes__shortcodes', $this->_shortcodes, $this); |
|
| 241 | - } |
|
| 242 | - |
|
| 243 | - /** |
|
| 244 | - * This method parses a full shortcode passed and returns only the shortcode name |
|
| 245 | - * This is includes both static and dynamic shortcodes (no attributes are returned if the shortcode is matched) |
|
| 246 | - * If no shortcode name can be matched, the full shortcode is returned. |
|
| 247 | - * |
|
| 248 | - * @return string parsed shortcode [EXAMPLE]/[EXAMPLE_*] |
|
| 249 | - * @since $VID |
|
| 250 | - */ |
|
| 251 | - public static function extractShortcode($shortcodeToParse): string |
|
| 252 | - { |
|
| 253 | - // We need to set up any dynamic shortcodes so that they work with the array_key_exists |
|
| 254 | - preg_match_all(EE_Shortcodes::REGEX_SHORTCODE_NAME_ONLY, $shortcodeToParse, $matches); |
|
| 255 | - $short_code_name = ! empty($matches[0][0]) |
|
| 256 | - ? $matches[0][0] |
|
| 257 | - : $shortcodeToParse; |
|
| 258 | - return rtrim($short_code_name, ']') . ']'; |
|
| 259 | - } |
|
| 260 | - |
|
| 261 | - |
|
| 262 | - /** |
|
| 263 | - * Child classes use this method to set the $name, $description, and $_shortcodes properties. |
|
| 264 | - * |
|
| 265 | - * @abstract |
|
| 266 | - * @return void |
|
| 267 | - */ |
|
| 268 | - abstract protected function _init_props(); |
|
| 269 | - |
|
| 270 | - |
|
| 271 | - /** |
|
| 272 | - * This method will give parsing instructions for each shortcode defined in the _shortcodes array. Child methods |
|
| 273 | - * will have to take care of handling. |
|
| 274 | - * |
|
| 275 | - * @abstract |
|
| 276 | - * @param string $shortcode the shortcode to be parsed. |
|
| 277 | - * @return string parsed shortcode |
|
| 278 | - */ |
|
| 279 | - abstract protected function _parser($shortcode); |
|
| 280 | - |
|
| 281 | - |
|
| 282 | - /** |
|
| 283 | - * This just validates incoming data for list type shortcode parsers (and they call this method) to make sure it |
|
| 284 | - * meets their requirements |
|
| 285 | - * |
|
| 286 | - * @return void If validation fails we'll throw an exception. |
|
| 287 | - * @throws EE_Error |
|
| 288 | - */ |
|
| 289 | - protected function _validate_list_requirements() |
|
| 290 | - { |
|
| 291 | - // first test to make sure we've got an array! |
|
| 292 | - if (! is_array($this->_data)) { |
|
| 293 | - throw new EE_Error( |
|
| 294 | - sprintf( |
|
| 295 | - esc_html__( |
|
| 296 | - 'Expecting an array for the data sent to %s. Instead it was %s', |
|
| 297 | - 'event_espresso' |
|
| 298 | - ), |
|
| 299 | - get_class($this), |
|
| 300 | - gettype($this->_data) |
|
| 301 | - ) |
|
| 302 | - ); |
|
| 303 | - } |
|
| 304 | - |
|
| 305 | - // next test to make sure we've got the required template in the index! |
|
| 306 | - if (! isset($this->_data['template'])) { |
|
| 307 | - throw new EE_Error( |
|
| 308 | - esc_html__( |
|
| 309 | - 'The incoming data does not have the required template index in its array', |
|
| 310 | - 'event_espresso' |
|
| 311 | - ) |
|
| 312 | - ); |
|
| 313 | - } |
|
| 314 | - |
|
| 315 | - // next test to make sure we've got a data index in the incoming data array |
|
| 316 | - if (! isset($this->_data['data'])) { |
|
| 317 | - throw new EE_Error( |
|
| 318 | - esc_html__( |
|
| 319 | - 'The incoming data does not have the required data index in its array', |
|
| 320 | - 'event_espresso' |
|
| 321 | - ) |
|
| 322 | - ); |
|
| 323 | - } |
|
| 324 | - |
|
| 325 | - // all is well let's make sure _extra_data always has the values needed. |
|
| 326 | - // let's make sure that extra_data includes all templates (for later parsing if necessary) |
|
| 327 | - if (empty($this->_extra_data) || (empty($this->_extra_data['data']) && empty($this->_extra_data['template']))) { |
|
| 328 | - $this->_extra_data['data'] = $this->_data['data']; |
|
| 329 | - $this->_extra_data['template'] = $this->_data['template']; |
|
| 330 | - } |
|
| 331 | - } |
|
| 332 | - |
|
| 333 | - |
|
| 334 | - /** |
|
| 335 | - * This returns any attributes that may be existing on an EE_Shortcode |
|
| 336 | - * |
|
| 337 | - * @param string $shortcode incoming shortcode |
|
| 338 | - * @return array An array with the attributes |
|
| 339 | - * @since 4.5.0 |
|
| 340 | - */ |
|
| 341 | - protected function _get_shortcode_attrs(string $shortcode): array |
|
| 342 | - { |
|
| 343 | - // make sure the required wp helper function is present |
|
| 344 | - // require the shortcode file if necessary |
|
| 345 | - if (! function_exists('shortcode_parse_atts')) { |
|
| 346 | - require_once(ABSPATH . WPINC . '/shortcodes.php'); |
|
| 347 | - } |
|
| 348 | - |
|
| 349 | - // let's get any attributes that may be present and set the defaults. |
|
| 350 | - $shortcode_to_parse = str_replace(['[', ']'], '', $shortcode); |
|
| 351 | - return shortcode_parse_atts($shortcode_to_parse); |
|
| 352 | - } |
|
| 353 | - |
|
| 354 | - |
|
| 355 | - /** |
|
| 356 | - * Conditional blocks are shortcode patterns with an opening conditional tag `[IF_*]` and a corresponding |
|
| 357 | - * closing tag (eg `[/IF_*]`). The content within the tags will be displayed/hidden depending on whatever |
|
| 358 | - * conditions existed in the opening tag. This method handles parsing the actual template to show/hide this |
|
| 359 | - * conditional content. |
|
| 360 | - * |
|
| 361 | - * @param string $shortcode This should be the original shortcode as used in the template and passed to the parser. |
|
| 362 | - * @param bool $show true means the opening and closing tags are removed and the content is left showing, |
|
| 363 | - * false means the opening and closing tags and the contained content are removed. |
|
| 364 | - * @return string The template for the shortcode is returned. |
|
| 365 | - * @since 4.9.32 |
|
| 366 | - * |
|
| 367 | - */ |
|
| 368 | - protected function _mutate_conditional_block_in_template(string $shortcode, bool $show = true): string |
|
| 369 | - { |
|
| 370 | - // first let's get all the matches in the template for this particular shortcode. |
|
| 371 | - preg_match_all('~' . $this->_get_conditional_block_regex($shortcode) . '~', $this->_data['template'], $matches); |
|
| 372 | - |
|
| 373 | - if ($matches && is_array($matches[0]) && ! empty($matches[0])) { |
|
| 374 | - // we need to hide all instances of the matches |
|
| 375 | - foreach ($matches[0] as $index => $content_to_show_or_hide) { |
|
| 376 | - $content_to_show_or_hide = preg_quote($content_to_show_or_hide); |
|
| 377 | - $replacement = $show ? $matches[4][ $index ] : ''; |
|
| 378 | - $this->_data['template'] = preg_replace( |
|
| 379 | - '~' . $content_to_show_or_hide . '~', |
|
| 380 | - $replacement, |
|
| 381 | - $this->_data['template'] |
|
| 382 | - ); |
|
| 383 | - } |
|
| 384 | - } |
|
| 385 | - // return $template |
|
| 386 | - return $this->_data['template']; |
|
| 387 | - } |
|
| 388 | - |
|
| 389 | - |
|
| 390 | - /** |
|
| 391 | - * This returns the regex pattern to use for conditional shortcodes parsing. |
|
| 392 | - * |
|
| 393 | - * Note: regex comes in part from the WP `get_shortcode_regex` expression in \wp-includes\shortcodes.php |
|
| 394 | - * |
|
| 395 | - * @param string $shortcode |
|
| 396 | - * @return string |
|
| 397 | - * @since 4.9.32 |
|
| 398 | - */ |
|
| 399 | - private function _get_conditional_block_regex(string $shortcode): string |
|
| 400 | - { |
|
| 401 | - // get just the shortcode tag for the match |
|
| 402 | - preg_match('@\[([^<>&/\[\]\x00-\x20=]++)@', $shortcode, $shortcode_tag_matches); |
|
| 403 | - if (empty($shortcode_tag_matches[1])) { |
|
| 404 | - return $this->_data['template']; |
|
| 405 | - } |
|
| 406 | - |
|
| 407 | - $shortcode_tag = $shortcode_tag_matches[1]; |
|
| 408 | - // get attributes_part_of_tag |
|
| 409 | - $attributes_part = preg_quote(str_replace([$shortcode_tag, '[', ']'], '', $shortcode)); |
|
| 410 | - // escape |
|
| 411 | - $shortcode_tag = preg_quote($shortcode_tag); |
|
| 412 | - |
|
| 413 | - return |
|
| 414 | - '\[' // Opening Bracket |
|
| 415 | - . "($shortcode_tag)$attributes_part" // 1: Shortcode Name |
|
| 416 | - . '(?![\w-])' // Not followed by word character or hyphen |
|
| 417 | - . '(' // 2: Unroll the loop: Inside the opening shortcode tag |
|
| 418 | - . '[^\]\/]*' // Not a closing bracket or forward slash |
|
| 419 | - . '(?:' |
|
| 420 | - . '\/(?!\])' // A forward slash not followed by a closing bracket |
|
| 421 | - . '[^\]\/]*' // Not a closing bracket or forward slash. |
|
| 422 | - . ')*?' |
|
| 423 | - . ')' |
|
| 424 | - . '(?:' |
|
| 425 | - . '(\/)' // 3. Self closing tag ... |
|
| 426 | - . '\]' // ... and closing bracket |
|
| 427 | - . '|' |
|
| 428 | - . '\]' // Closing bracket |
|
| 429 | - . '(?:' |
|
| 430 | - . '(' // 4: Unroll the loop: Optionally, anything between the opening and closing brackets |
|
| 431 | - . '[^\[]*+' // Not an opening bracket |
|
| 432 | - . '(?:' |
|
| 433 | - . '\[(?!\/\1\])' // An opening bracket not followed by the closing shortcode tag. |
|
| 434 | - . '[^\[]*+' // Not an opening bracket |
|
| 435 | - . ')*+' |
|
| 436 | - . ')' |
|
| 437 | - . '\[\/\1\]' // Closing shortcode tag |
|
| 438 | - . ')?' |
|
| 439 | - . ')'; |
|
| 440 | - } |
|
| 441 | - |
|
| 442 | - |
|
| 443 | - /** |
|
| 444 | - * This sets the properties related to the messages system |
|
| 445 | - * |
|
| 446 | - * @return void |
|
| 447 | - * @since 4.5.0 |
|
| 448 | - */ |
|
| 449 | - protected function _set_messages_properties() |
|
| 450 | - { |
|
| 451 | - // should be in _extra_data |
|
| 452 | - if (isset($this->_extra_data['messenger'])) { |
|
| 453 | - $this->_messenger = $this->_extra_data['messenger']; |
|
| 454 | - $this->_message_type = $this->_extra_data['message_type']; |
|
| 455 | - $this->_context = $this->_extra_data['message'] instanceof EE_Message |
|
| 456 | - ? $this->_extra_data['message']->context() |
|
| 457 | - : ''; |
|
| 458 | - $this->_GRP_ID = $this->_extra_data['message'] instanceof EE_Message |
|
| 459 | - ? $this->_extra_data['message']->GRP_ID() |
|
| 460 | - : 0; |
|
| 461 | - $this->_message = $this->_extra_data['message'] instanceof EE_Message |
|
| 462 | - ? $this->_extra_data['message'] |
|
| 463 | - : null; |
|
| 464 | - } |
|
| 465 | - } |
|
| 466 | - |
|
| 467 | - |
|
| 468 | - /** |
|
| 469 | - * This returns whatever the set message type object is that was set on this shortcode parser. |
|
| 470 | - * |
|
| 471 | - * @return EE_message_type|null |
|
| 472 | - * @since 4.5.0 |
|
| 473 | - */ |
|
| 474 | - public function get_set_message_type(): ?EE_message_type |
|
| 475 | - { |
|
| 476 | - return $this->_message_type; |
|
| 477 | - } |
|
| 478 | - |
|
| 479 | - |
|
| 480 | - /** |
|
| 481 | - * This returns whatever the set messenger object is that was set on this shortcode parser |
|
| 482 | - * |
|
| 483 | - * @return EE_messenger |
|
| 484 | - * @since 4.5.0 |
|
| 485 | - */ |
|
| 486 | - public function get_set_messenger(): EE_messenger |
|
| 487 | - { |
|
| 488 | - return $this->_messenger; |
|
| 489 | - } |
|
| 490 | - |
|
| 491 | - |
|
| 492 | - /** |
|
| 493 | - * This returns whatever the set context string is on this shortcode parser. |
|
| 494 | - * |
|
| 495 | - * @return string |
|
| 496 | - * @since 4.5.0 |
|
| 497 | - */ |
|
| 498 | - public function get_set_context(): string |
|
| 499 | - { |
|
| 500 | - return $this->_context; |
|
| 501 | - } |
|
| 502 | - |
|
| 503 | - |
|
| 504 | - /** |
|
| 505 | - * This returns whatever the set EE_Message object is on this shortcode. |
|
| 506 | - * |
|
| 507 | - * @return EE_Message|null |
|
| 508 | - * @since 4.9.0 |
|
| 509 | - */ |
|
| 510 | - public function get_set_message(): ?EE_Message |
|
| 511 | - { |
|
| 512 | - return $this->_message; |
|
| 513 | - } |
|
| 197 | + // first we want to make sure this is a valid shortcode |
|
| 198 | + if (! array_key_exists($shortcode_to_verify, $this->_shortcodes)) { |
|
| 199 | + // get out, this parser doesn't handle the incoming shortcode. |
|
| 200 | + return ''; |
|
| 201 | + } |
|
| 202 | + $this->_data = $data; |
|
| 203 | + $this->_extra_data = $extra_data; |
|
| 204 | + $this->_set_messages_properties(); |
|
| 205 | + $parsed = (string) apply_filters( |
|
| 206 | + 'FHEE__' . get_class($this) . '__parser_after', |
|
| 207 | + $this->_parser($shortcode), |
|
| 208 | + $shortcode, |
|
| 209 | + $data, |
|
| 210 | + $extra_data, |
|
| 211 | + $this |
|
| 212 | + ); |
|
| 213 | + |
|
| 214 | + // note the below filter applies to ALL shortcode parsers... be careful! |
|
| 215 | + return (string) apply_filters( |
|
| 216 | + 'FHEE__EE_Shortcodes__parser_after', |
|
| 217 | + $parsed, |
|
| 218 | + $shortcode, |
|
| 219 | + $data, |
|
| 220 | + $extra_data, |
|
| 221 | + $this |
|
| 222 | + ); |
|
| 223 | + } |
|
| 224 | + |
|
| 225 | + |
|
| 226 | + /** |
|
| 227 | + * This method just returns the shortcodes in the $_shortcodes array property. |
|
| 228 | + * |
|
| 229 | + * @return array array of shortcodes => description pairs |
|
| 230 | + */ |
|
| 231 | + public function get_shortcodes(): array |
|
| 232 | + { |
|
| 233 | + $this->_shortcodes = (array) apply_filters( |
|
| 234 | + 'FHEE__' . get_class($this) . '__shortcodes', |
|
| 235 | + $this->_shortcodes, |
|
| 236 | + $this |
|
| 237 | + ); |
|
| 238 | + |
|
| 239 | + // note the below filter applies to ALL shortcode parsers... be careful! |
|
| 240 | + return (array) apply_filters('FHEE__EE_Shortcodes__shortcodes', $this->_shortcodes, $this); |
|
| 241 | + } |
|
| 242 | + |
|
| 243 | + /** |
|
| 244 | + * This method parses a full shortcode passed and returns only the shortcode name |
|
| 245 | + * This is includes both static and dynamic shortcodes (no attributes are returned if the shortcode is matched) |
|
| 246 | + * If no shortcode name can be matched, the full shortcode is returned. |
|
| 247 | + * |
|
| 248 | + * @return string parsed shortcode [EXAMPLE]/[EXAMPLE_*] |
|
| 249 | + * @since $VID |
|
| 250 | + */ |
|
| 251 | + public static function extractShortcode($shortcodeToParse): string |
|
| 252 | + { |
|
| 253 | + // We need to set up any dynamic shortcodes so that they work with the array_key_exists |
|
| 254 | + preg_match_all(EE_Shortcodes::REGEX_SHORTCODE_NAME_ONLY, $shortcodeToParse, $matches); |
|
| 255 | + $short_code_name = ! empty($matches[0][0]) |
|
| 256 | + ? $matches[0][0] |
|
| 257 | + : $shortcodeToParse; |
|
| 258 | + return rtrim($short_code_name, ']') . ']'; |
|
| 259 | + } |
|
| 260 | + |
|
| 261 | + |
|
| 262 | + /** |
|
| 263 | + * Child classes use this method to set the $name, $description, and $_shortcodes properties. |
|
| 264 | + * |
|
| 265 | + * @abstract |
|
| 266 | + * @return void |
|
| 267 | + */ |
|
| 268 | + abstract protected function _init_props(); |
|
| 269 | + |
|
| 270 | + |
|
| 271 | + /** |
|
| 272 | + * This method will give parsing instructions for each shortcode defined in the _shortcodes array. Child methods |
|
| 273 | + * will have to take care of handling. |
|
| 274 | + * |
|
| 275 | + * @abstract |
|
| 276 | + * @param string $shortcode the shortcode to be parsed. |
|
| 277 | + * @return string parsed shortcode |
|
| 278 | + */ |
|
| 279 | + abstract protected function _parser($shortcode); |
|
| 280 | + |
|
| 281 | + |
|
| 282 | + /** |
|
| 283 | + * This just validates incoming data for list type shortcode parsers (and they call this method) to make sure it |
|
| 284 | + * meets their requirements |
|
| 285 | + * |
|
| 286 | + * @return void If validation fails we'll throw an exception. |
|
| 287 | + * @throws EE_Error |
|
| 288 | + */ |
|
| 289 | + protected function _validate_list_requirements() |
|
| 290 | + { |
|
| 291 | + // first test to make sure we've got an array! |
|
| 292 | + if (! is_array($this->_data)) { |
|
| 293 | + throw new EE_Error( |
|
| 294 | + sprintf( |
|
| 295 | + esc_html__( |
|
| 296 | + 'Expecting an array for the data sent to %s. Instead it was %s', |
|
| 297 | + 'event_espresso' |
|
| 298 | + ), |
|
| 299 | + get_class($this), |
|
| 300 | + gettype($this->_data) |
|
| 301 | + ) |
|
| 302 | + ); |
|
| 303 | + } |
|
| 304 | + |
|
| 305 | + // next test to make sure we've got the required template in the index! |
|
| 306 | + if (! isset($this->_data['template'])) { |
|
| 307 | + throw new EE_Error( |
|
| 308 | + esc_html__( |
|
| 309 | + 'The incoming data does not have the required template index in its array', |
|
| 310 | + 'event_espresso' |
|
| 311 | + ) |
|
| 312 | + ); |
|
| 313 | + } |
|
| 314 | + |
|
| 315 | + // next test to make sure we've got a data index in the incoming data array |
|
| 316 | + if (! isset($this->_data['data'])) { |
|
| 317 | + throw new EE_Error( |
|
| 318 | + esc_html__( |
|
| 319 | + 'The incoming data does not have the required data index in its array', |
|
| 320 | + 'event_espresso' |
|
| 321 | + ) |
|
| 322 | + ); |
|
| 323 | + } |
|
| 324 | + |
|
| 325 | + // all is well let's make sure _extra_data always has the values needed. |
|
| 326 | + // let's make sure that extra_data includes all templates (for later parsing if necessary) |
|
| 327 | + if (empty($this->_extra_data) || (empty($this->_extra_data['data']) && empty($this->_extra_data['template']))) { |
|
| 328 | + $this->_extra_data['data'] = $this->_data['data']; |
|
| 329 | + $this->_extra_data['template'] = $this->_data['template']; |
|
| 330 | + } |
|
| 331 | + } |
|
| 332 | + |
|
| 333 | + |
|
| 334 | + /** |
|
| 335 | + * This returns any attributes that may be existing on an EE_Shortcode |
|
| 336 | + * |
|
| 337 | + * @param string $shortcode incoming shortcode |
|
| 338 | + * @return array An array with the attributes |
|
| 339 | + * @since 4.5.0 |
|
| 340 | + */ |
|
| 341 | + protected function _get_shortcode_attrs(string $shortcode): array |
|
| 342 | + { |
|
| 343 | + // make sure the required wp helper function is present |
|
| 344 | + // require the shortcode file if necessary |
|
| 345 | + if (! function_exists('shortcode_parse_atts')) { |
|
| 346 | + require_once(ABSPATH . WPINC . '/shortcodes.php'); |
|
| 347 | + } |
|
| 348 | + |
|
| 349 | + // let's get any attributes that may be present and set the defaults. |
|
| 350 | + $shortcode_to_parse = str_replace(['[', ']'], '', $shortcode); |
|
| 351 | + return shortcode_parse_atts($shortcode_to_parse); |
|
| 352 | + } |
|
| 353 | + |
|
| 354 | + |
|
| 355 | + /** |
|
| 356 | + * Conditional blocks are shortcode patterns with an opening conditional tag `[IF_*]` and a corresponding |
|
| 357 | + * closing tag (eg `[/IF_*]`). The content within the tags will be displayed/hidden depending on whatever |
|
| 358 | + * conditions existed in the opening tag. This method handles parsing the actual template to show/hide this |
|
| 359 | + * conditional content. |
|
| 360 | + * |
|
| 361 | + * @param string $shortcode This should be the original shortcode as used in the template and passed to the parser. |
|
| 362 | + * @param bool $show true means the opening and closing tags are removed and the content is left showing, |
|
| 363 | + * false means the opening and closing tags and the contained content are removed. |
|
| 364 | + * @return string The template for the shortcode is returned. |
|
| 365 | + * @since 4.9.32 |
|
| 366 | + * |
|
| 367 | + */ |
|
| 368 | + protected function _mutate_conditional_block_in_template(string $shortcode, bool $show = true): string |
|
| 369 | + { |
|
| 370 | + // first let's get all the matches in the template for this particular shortcode. |
|
| 371 | + preg_match_all('~' . $this->_get_conditional_block_regex($shortcode) . '~', $this->_data['template'], $matches); |
|
| 372 | + |
|
| 373 | + if ($matches && is_array($matches[0]) && ! empty($matches[0])) { |
|
| 374 | + // we need to hide all instances of the matches |
|
| 375 | + foreach ($matches[0] as $index => $content_to_show_or_hide) { |
|
| 376 | + $content_to_show_or_hide = preg_quote($content_to_show_or_hide); |
|
| 377 | + $replacement = $show ? $matches[4][ $index ] : ''; |
|
| 378 | + $this->_data['template'] = preg_replace( |
|
| 379 | + '~' . $content_to_show_or_hide . '~', |
|
| 380 | + $replacement, |
|
| 381 | + $this->_data['template'] |
|
| 382 | + ); |
|
| 383 | + } |
|
| 384 | + } |
|
| 385 | + // return $template |
|
| 386 | + return $this->_data['template']; |
|
| 387 | + } |
|
| 388 | + |
|
| 389 | + |
|
| 390 | + /** |
|
| 391 | + * This returns the regex pattern to use for conditional shortcodes parsing. |
|
| 392 | + * |
|
| 393 | + * Note: regex comes in part from the WP `get_shortcode_regex` expression in \wp-includes\shortcodes.php |
|
| 394 | + * |
|
| 395 | + * @param string $shortcode |
|
| 396 | + * @return string |
|
| 397 | + * @since 4.9.32 |
|
| 398 | + */ |
|
| 399 | + private function _get_conditional_block_regex(string $shortcode): string |
|
| 400 | + { |
|
| 401 | + // get just the shortcode tag for the match |
|
| 402 | + preg_match('@\[([^<>&/\[\]\x00-\x20=]++)@', $shortcode, $shortcode_tag_matches); |
|
| 403 | + if (empty($shortcode_tag_matches[1])) { |
|
| 404 | + return $this->_data['template']; |
|
| 405 | + } |
|
| 406 | + |
|
| 407 | + $shortcode_tag = $shortcode_tag_matches[1]; |
|
| 408 | + // get attributes_part_of_tag |
|
| 409 | + $attributes_part = preg_quote(str_replace([$shortcode_tag, '[', ']'], '', $shortcode)); |
|
| 410 | + // escape |
|
| 411 | + $shortcode_tag = preg_quote($shortcode_tag); |
|
| 412 | + |
|
| 413 | + return |
|
| 414 | + '\[' // Opening Bracket |
|
| 415 | + . "($shortcode_tag)$attributes_part" // 1: Shortcode Name |
|
| 416 | + . '(?![\w-])' // Not followed by word character or hyphen |
|
| 417 | + . '(' // 2: Unroll the loop: Inside the opening shortcode tag |
|
| 418 | + . '[^\]\/]*' // Not a closing bracket or forward slash |
|
| 419 | + . '(?:' |
|
| 420 | + . '\/(?!\])' // A forward slash not followed by a closing bracket |
|
| 421 | + . '[^\]\/]*' // Not a closing bracket or forward slash. |
|
| 422 | + . ')*?' |
|
| 423 | + . ')' |
|
| 424 | + . '(?:' |
|
| 425 | + . '(\/)' // 3. Self closing tag ... |
|
| 426 | + . '\]' // ... and closing bracket |
|
| 427 | + . '|' |
|
| 428 | + . '\]' // Closing bracket |
|
| 429 | + . '(?:' |
|
| 430 | + . '(' // 4: Unroll the loop: Optionally, anything between the opening and closing brackets |
|
| 431 | + . '[^\[]*+' // Not an opening bracket |
|
| 432 | + . '(?:' |
|
| 433 | + . '\[(?!\/\1\])' // An opening bracket not followed by the closing shortcode tag. |
|
| 434 | + . '[^\[]*+' // Not an opening bracket |
|
| 435 | + . ')*+' |
|
| 436 | + . ')' |
|
| 437 | + . '\[\/\1\]' // Closing shortcode tag |
|
| 438 | + . ')?' |
|
| 439 | + . ')'; |
|
| 440 | + } |
|
| 441 | + |
|
| 442 | + |
|
| 443 | + /** |
|
| 444 | + * This sets the properties related to the messages system |
|
| 445 | + * |
|
| 446 | + * @return void |
|
| 447 | + * @since 4.5.0 |
|
| 448 | + */ |
|
| 449 | + protected function _set_messages_properties() |
|
| 450 | + { |
|
| 451 | + // should be in _extra_data |
|
| 452 | + if (isset($this->_extra_data['messenger'])) { |
|
| 453 | + $this->_messenger = $this->_extra_data['messenger']; |
|
| 454 | + $this->_message_type = $this->_extra_data['message_type']; |
|
| 455 | + $this->_context = $this->_extra_data['message'] instanceof EE_Message |
|
| 456 | + ? $this->_extra_data['message']->context() |
|
| 457 | + : ''; |
|
| 458 | + $this->_GRP_ID = $this->_extra_data['message'] instanceof EE_Message |
|
| 459 | + ? $this->_extra_data['message']->GRP_ID() |
|
| 460 | + : 0; |
|
| 461 | + $this->_message = $this->_extra_data['message'] instanceof EE_Message |
|
| 462 | + ? $this->_extra_data['message'] |
|
| 463 | + : null; |
|
| 464 | + } |
|
| 465 | + } |
|
| 466 | + |
|
| 467 | + |
|
| 468 | + /** |
|
| 469 | + * This returns whatever the set message type object is that was set on this shortcode parser. |
|
| 470 | + * |
|
| 471 | + * @return EE_message_type|null |
|
| 472 | + * @since 4.5.0 |
|
| 473 | + */ |
|
| 474 | + public function get_set_message_type(): ?EE_message_type |
|
| 475 | + { |
|
| 476 | + return $this->_message_type; |
|
| 477 | + } |
|
| 478 | + |
|
| 479 | + |
|
| 480 | + /** |
|
| 481 | + * This returns whatever the set messenger object is that was set on this shortcode parser |
|
| 482 | + * |
|
| 483 | + * @return EE_messenger |
|
| 484 | + * @since 4.5.0 |
|
| 485 | + */ |
|
| 486 | + public function get_set_messenger(): EE_messenger |
|
| 487 | + { |
|
| 488 | + return $this->_messenger; |
|
| 489 | + } |
|
| 490 | + |
|
| 491 | + |
|
| 492 | + /** |
|
| 493 | + * This returns whatever the set context string is on this shortcode parser. |
|
| 494 | + * |
|
| 495 | + * @return string |
|
| 496 | + * @since 4.5.0 |
|
| 497 | + */ |
|
| 498 | + public function get_set_context(): string |
|
| 499 | + { |
|
| 500 | + return $this->_context; |
|
| 501 | + } |
|
| 502 | + |
|
| 503 | + |
|
| 504 | + /** |
|
| 505 | + * This returns whatever the set EE_Message object is on this shortcode. |
|
| 506 | + * |
|
| 507 | + * @return EE_Message|null |
|
| 508 | + * @since 4.9.0 |
|
| 509 | + */ |
|
| 510 | + public function get_set_message(): ?EE_Message |
|
| 511 | + { |
|
| 512 | + return $this->_message; |
|
| 513 | + } |
|
| 514 | 514 | } |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | $shortcode_to_verify = EE_Shortcodes::extractShortcode($shortcode); |
| 196 | 196 | |
| 197 | 197 | // first we want to make sure this is a valid shortcode |
| 198 | - if (! array_key_exists($shortcode_to_verify, $this->_shortcodes)) { |
|
| 198 | + if ( ! array_key_exists($shortcode_to_verify, $this->_shortcodes)) { |
|
| 199 | 199 | // get out, this parser doesn't handle the incoming shortcode. |
| 200 | 200 | return ''; |
| 201 | 201 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | $this->_extra_data = $extra_data; |
| 204 | 204 | $this->_set_messages_properties(); |
| 205 | 205 | $parsed = (string) apply_filters( |
| 206 | - 'FHEE__' . get_class($this) . '__parser_after', |
|
| 206 | + 'FHEE__'.get_class($this).'__parser_after', |
|
| 207 | 207 | $this->_parser($shortcode), |
| 208 | 208 | $shortcode, |
| 209 | 209 | $data, |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | public function get_shortcodes(): array |
| 232 | 232 | { |
| 233 | 233 | $this->_shortcodes = (array) apply_filters( |
| 234 | - 'FHEE__' . get_class($this) . '__shortcodes', |
|
| 234 | + 'FHEE__'.get_class($this).'__shortcodes', |
|
| 235 | 235 | $this->_shortcodes, |
| 236 | 236 | $this |
| 237 | 237 | ); |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | $short_code_name = ! empty($matches[0][0]) |
| 256 | 256 | ? $matches[0][0] |
| 257 | 257 | : $shortcodeToParse; |
| 258 | - return rtrim($short_code_name, ']') . ']'; |
|
| 258 | + return rtrim($short_code_name, ']').']'; |
|
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | protected function _validate_list_requirements() |
| 290 | 290 | { |
| 291 | 291 | // first test to make sure we've got an array! |
| 292 | - if (! is_array($this->_data)) { |
|
| 292 | + if ( ! is_array($this->_data)) { |
|
| 293 | 293 | throw new EE_Error( |
| 294 | 294 | sprintf( |
| 295 | 295 | esc_html__( |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | // next test to make sure we've got the required template in the index! |
| 306 | - if (! isset($this->_data['template'])) { |
|
| 306 | + if ( ! isset($this->_data['template'])) { |
|
| 307 | 307 | throw new EE_Error( |
| 308 | 308 | esc_html__( |
| 309 | 309 | 'The incoming data does not have the required template index in its array', |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | // next test to make sure we've got a data index in the incoming data array |
| 316 | - if (! isset($this->_data['data'])) { |
|
| 316 | + if ( ! isset($this->_data['data'])) { |
|
| 317 | 317 | throw new EE_Error( |
| 318 | 318 | esc_html__( |
| 319 | 319 | 'The incoming data does not have the required data index in its array', |
@@ -342,8 +342,8 @@ discard block |
||
| 342 | 342 | { |
| 343 | 343 | // make sure the required wp helper function is present |
| 344 | 344 | // require the shortcode file if necessary |
| 345 | - if (! function_exists('shortcode_parse_atts')) { |
|
| 346 | - require_once(ABSPATH . WPINC . '/shortcodes.php'); |
|
| 345 | + if ( ! function_exists('shortcode_parse_atts')) { |
|
| 346 | + require_once(ABSPATH.WPINC.'/shortcodes.php'); |
|
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | // let's get any attributes that may be present and set the defaults. |
@@ -368,15 +368,15 @@ discard block |
||
| 368 | 368 | protected function _mutate_conditional_block_in_template(string $shortcode, bool $show = true): string |
| 369 | 369 | { |
| 370 | 370 | // first let's get all the matches in the template for this particular shortcode. |
| 371 | - preg_match_all('~' . $this->_get_conditional_block_regex($shortcode) . '~', $this->_data['template'], $matches); |
|
| 371 | + preg_match_all('~'.$this->_get_conditional_block_regex($shortcode).'~', $this->_data['template'], $matches); |
|
| 372 | 372 | |
| 373 | 373 | if ($matches && is_array($matches[0]) && ! empty($matches[0])) { |
| 374 | 374 | // we need to hide all instances of the matches |
| 375 | 375 | foreach ($matches[0] as $index => $content_to_show_or_hide) { |
| 376 | 376 | $content_to_show_or_hide = preg_quote($content_to_show_or_hide); |
| 377 | - $replacement = $show ? $matches[4][ $index ] : ''; |
|
| 377 | + $replacement = $show ? $matches[4][$index] : ''; |
|
| 378 | 378 | $this->_data['template'] = preg_replace( |
| 379 | - '~' . $content_to_show_or_hide . '~', |
|
| 379 | + '~'.$content_to_show_or_hide.'~', |
|
| 380 | 380 | $replacement, |
| 381 | 381 | $this->_data['template'] |
| 382 | 382 | ); |
@@ -15,602 +15,602 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | abstract class EE_Messages_Validator extends EE_Base |
| 17 | 17 | { |
| 18 | - /** |
|
| 19 | - * These properties just hold the name for the Messenger and Message Type (defined by child classes). |
|
| 20 | - * These are used for retrieving objects etc. |
|
| 21 | - * |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - protected string $_m_name = ''; |
|
| 25 | - |
|
| 26 | - protected string $_mt_name = ''; |
|
| 27 | - |
|
| 28 | - |
|
| 29 | - /** |
|
| 30 | - * This will hold any error messages from the validation process. |
|
| 31 | - * The _errors property holds an associative array of error messages |
|
| 32 | - * listing the field as the key and the message as the value. |
|
| 33 | - * |
|
| 34 | - * @var array |
|
| 35 | - */ |
|
| 36 | - private array $_errors = []; |
|
| 37 | - |
|
| 38 | - |
|
| 39 | - /** |
|
| 40 | - * holds an array of fields being validated |
|
| 41 | - * |
|
| 42 | - * @var array |
|
| 43 | - */ |
|
| 44 | - protected array $_fields = []; |
|
| 45 | - |
|
| 46 | - |
|
| 47 | - /** |
|
| 48 | - * this will hold the incoming context |
|
| 49 | - * |
|
| 50 | - * @var string |
|
| 51 | - */ |
|
| 52 | - protected string $_context = ''; |
|
| 53 | - |
|
| 54 | - |
|
| 55 | - /** |
|
| 56 | - * this holds an array of fields and the relevant validation information |
|
| 57 | - * that the incoming fields data get validated against. |
|
| 58 | - * This gets setup in the _set_props() method. |
|
| 59 | - * |
|
| 60 | - * @var array |
|
| 61 | - */ |
|
| 62 | - protected array $_validators = []; |
|
| 63 | - |
|
| 64 | - protected EE_messenger $_messenger; |
|
| 65 | - |
|
| 66 | - |
|
| 67 | - protected EE_message_type $_message_type; |
|
| 68 | - |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * will hold any valid_shortcode modifications made by the _modify_validator() method. |
|
| 72 | - * |
|
| 73 | - * @var array |
|
| 74 | - */ |
|
| 75 | - protected array $_valid_shortcodes_modifier = []; |
|
| 76 | - |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * There may be times when a message type wants to include a shortcode group but exclude specific |
|
| 80 | - * shortcodes. If that's the case then it can set this property as an array of shortcodes to exclude and |
|
| 81 | - * they will not be allowed. |
|
| 82 | - * Array should be indexed by field and values are an array of specific shortcodes to exclude. |
|
| 83 | - * |
|
| 84 | - * @var array |
|
| 85 | - */ |
|
| 86 | - protected array $_specific_shortcode_excludes = []; |
|
| 87 | - |
|
| 88 | - |
|
| 89 | - /** |
|
| 90 | - * Runs the validator using the incoming fields array as the fields/values to check. |
|
| 91 | - * |
|
| 92 | - * @param array $fields The fields sent by the EEM object. |
|
| 93 | - * @param string $context |
|
| 94 | - * @throws EE_Error |
|
| 95 | - * @throws ReflectionException |
|
| 96 | - */ |
|
| 97 | - public function __construct($fields, $context) |
|
| 98 | - { |
|
| 99 | - // checks that child class has set _m_name and _mt_name, otherwise we get out. |
|
| 100 | - if (empty($this->_m_name) || empty($this->_mt_name)) { |
|
| 101 | - throw new EE_Error( |
|
| 102 | - esc_html__( |
|
| 103 | - 'EE_Messages_Validator child classes MUST set the $_m_name and $_mt_name property. Check that the child class is doing this', |
|
| 104 | - 'event_espresso' |
|
| 105 | - ) |
|
| 106 | - ); |
|
| 107 | - } |
|
| 108 | - $this->_fields = (array) $fields; |
|
| 109 | - $this->_context = (string) $context; |
|
| 110 | - |
|
| 111 | - $this->loadMessengerAndMessageType(); |
|
| 112 | - // modify any messenger/message_type specific validation instructions. This is what child classes define. |
|
| 113 | - $this->_modify_validator(); |
|
| 114 | - // let's set validators property |
|
| 115 | - $this->setValidators(); |
|
| 116 | - } |
|
| 117 | - |
|
| 118 | - |
|
| 119 | - /** |
|
| 120 | - * Child classes instantiate this and use it to modify the _validator_config array property |
|
| 121 | - * for the messenger using messengers set_validate_config() method. |
|
| 122 | - * This is so we can specify specific validation instructions for a messenger/message_type combo |
|
| 123 | - * that aren't handled by the defaults setup in the messenger. |
|
| 124 | - * |
|
| 125 | - * @abstract |
|
| 126 | - * @return void |
|
| 127 | - */ |
|
| 128 | - abstract protected function _modify_validator(); |
|
| 129 | - |
|
| 130 | - |
|
| 131 | - /** |
|
| 132 | - * loads all objects used by validator |
|
| 133 | - * |
|
| 134 | - * @throws EE_Error |
|
| 135 | - */ |
|
| 136 | - private function loadMessengerAndMessageType() |
|
| 137 | - { |
|
| 138 | - // load messenger |
|
| 139 | - $messenger = ucwords(str_replace('_', ' ', $this->_m_name)); |
|
| 140 | - $messenger = str_replace(' ', '_', $messenger); |
|
| 141 | - $messenger = 'EE_' . $messenger . '_messenger'; |
|
| 142 | - |
|
| 143 | - if (! class_exists($messenger)) { |
|
| 144 | - throw new EE_Error( |
|
| 145 | - sprintf( |
|
| 146 | - esc_html__('There is no messenger class for the given string (%s)', 'event_espresso'), |
|
| 147 | - $this->_m_name |
|
| 148 | - ) |
|
| 149 | - ); |
|
| 150 | - } |
|
| 151 | - |
|
| 152 | - $this->_messenger = new $messenger(); |
|
| 153 | - |
|
| 154 | - // load message type |
|
| 155 | - $message_type = ucwords(str_replace('_', ' ', $this->_mt_name)); |
|
| 156 | - $message_type = str_replace(' ', '_', $message_type); |
|
| 157 | - $message_type = 'EE_' . $message_type . '_message_type'; |
|
| 158 | - |
|
| 159 | - if (! class_exists($message_type)) { |
|
| 160 | - throw new EE_Error( |
|
| 161 | - sprintf( |
|
| 162 | - esc_html__('There is no message type class for the given string (%s)', 'event_espresso'), |
|
| 163 | - $this->_mt_name |
|
| 164 | - ) |
|
| 165 | - ); |
|
| 166 | - } |
|
| 167 | - |
|
| 168 | - $this->_message_type = new $message_type(); |
|
| 169 | - } |
|
| 170 | - |
|
| 171 | - |
|
| 172 | - /** |
|
| 173 | - * used to set the $_validators property |
|
| 174 | - * |
|
| 175 | - * @return void |
|
| 176 | - * @throws ReflectionException |
|
| 177 | - */ |
|
| 178 | - private function setValidators() |
|
| 179 | - { |
|
| 180 | - // let's get all valid shortcodes from mt and message type |
|
| 181 | - // (messenger will have its set in the _validator_config property for the messenger) |
|
| 182 | - $mt_codes = $this->_message_type->get_valid_shortcodes(); |
|
| 183 | - // get messenger validator_config |
|
| 184 | - $msgr_validator = $this->_messenger->get_validator_config(); |
|
| 185 | - // we only want the valid shortcodes for the given context! |
|
| 186 | - $context = $this->_context; |
|
| 187 | - $mt_codes = $mt_codes[ $context ]; |
|
| 188 | - // in this first loop we're just getting all shortcode group indexes from the msgr_validator |
|
| 189 | - // into a single array (so we can get the appropriate shortcode objects for the groups) |
|
| 190 | - $shortcode_groups = $mt_codes; |
|
| 191 | - $groups_per_field = []; |
|
| 192 | - |
|
| 193 | - foreach ($msgr_validator as $field => $config) { |
|
| 194 | - if (! isset($config['shortcodes'])) { |
|
| 195 | - continue; |
|
| 196 | - } //Nothing to see here. |
|
| 197 | - $groups_per_field[ $field ] = array_intersect($config['shortcodes'], $mt_codes); |
|
| 198 | - $shortcode_groups = array_merge($config['shortcodes'], $shortcode_groups); |
|
| 199 | - } |
|
| 200 | - $shortcode_groups = array_unique($shortcode_groups); |
|
| 201 | - |
|
| 202 | - // okay now we've got our groups. |
|
| 203 | - // Let's get the codes from the objects into an array indexed by group for easy retrieval later. |
|
| 204 | - $codes_from_objs = []; |
|
| 205 | - |
|
| 206 | - foreach ($shortcode_groups as $group) { |
|
| 207 | - $ref = ucwords(str_replace('_', ' ', $group)); |
|
| 208 | - $ref = str_replace(' ', '_', $ref); |
|
| 209 | - $classname = 'EE_' . $ref . '_Shortcodes'; |
|
| 210 | - if (class_exists($classname)) { |
|
| 211 | - $a = new ReflectionClass($classname); |
|
| 212 | - $obj = $a->newInstance(); |
|
| 213 | - $codes_from_objs[ $group ] = $obj->get_shortcodes(); |
|
| 214 | - } |
|
| 215 | - } |
|
| 216 | - |
|
| 217 | - // let's just replace the $mt shortcode group indexes with the actual shortcodes (unique) |
|
| 218 | - $final_mt_codes = []; |
|
| 219 | - foreach ($mt_codes as $group) { |
|
| 220 | - $final_mt_codes = array_merge($final_mt_codes, $codes_from_objs[ $group ]); |
|
| 221 | - } |
|
| 222 | - $mt_codes = $final_mt_codes; |
|
| 223 | - |
|
| 224 | - // k now in this next loop we're going to loop through $msgr_validator again |
|
| 225 | - // and set up the _validators property from the data we've setup so far. |
|
| 226 | - foreach ($msgr_validator as $field => $config) { |
|
| 227 | - // if required shortcode is not in our list of codes for the given field, then we skip this field. |
|
| 228 | - $required = isset($config['required']) |
|
| 229 | - ? array_intersect($config['required'], array_keys($mt_codes)) |
|
| 230 | - : true; |
|
| 231 | - if (empty($required)) { |
|
| 232 | - continue; |
|
| 233 | - } |
|
| 234 | - |
|
| 235 | - if (isset($this->_valid_shortcodes_modifier[ $context ][ $field ])) { |
|
| 236 | - // If we have an override then we use it to indicate the codes we want. |
|
| 237 | - $this->_validators[ $field ]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 238 | - $this->_valid_shortcodes_modifier[ $context ][ $field ], |
|
| 239 | - $codes_from_objs |
|
| 240 | - ); |
|
| 241 | - } elseif (isset($groups_per_field[ $field ])) { |
|
| 242 | - // we have specific shortcodes for a field so we need to use them |
|
| 243 | - $this->_validators[ $field ]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 244 | - $groups_per_field[ $field ], |
|
| 245 | - $codes_from_objs |
|
| 246 | - ); |
|
| 247 | - } elseif (empty($config)) { |
|
| 248 | - // no config so we're assuming we're just going to use the shortcodes from the message type context |
|
| 249 | - $this->_validators[ $field ]['shortcodes'] = $mt_codes; |
|
| 250 | - } elseif (isset($config['specific_shortcodes'])) { |
|
| 251 | - // we have specific shortcodes so we need to use them |
|
| 252 | - $this->_validators[ $field ]['shortcodes'] = $config['specific_shortcodes']; |
|
| 253 | - } else { |
|
| 254 | - // otherwise the shortcodes are what is set by the messenger for that field |
|
| 255 | - foreach ($config['shortcodes'] as $group) { |
|
| 256 | - $this->_validators[ $field ]['shortcodes'] = isset($this->_validators[ $field ]['shortcodes']) |
|
| 257 | - ? array_merge($this->_validators[ $field ]['shortcodes'], $codes_from_objs[ $group ]) |
|
| 258 | - : $codes_from_objs[ $group ]; |
|
| 259 | - } |
|
| 260 | - } |
|
| 261 | - |
|
| 262 | - // now let's just make sure that any excluded specific shortcodes are removed. |
|
| 263 | - $specific_excludes = $this->get_specific_shortcode_excludes(); |
|
| 264 | - if (isset($specific_excludes[ $field ])) { |
|
| 265 | - foreach ($specific_excludes[ $field ] as $sex) { |
|
| 266 | - if (isset($this->_validators[ $field ]['shortcodes'][ $sex ])) { |
|
| 267 | - unset($this->_validators[ $field ]['shortcodes'][ $sex ]); |
|
| 268 | - } |
|
| 269 | - } |
|
| 270 | - } |
|
| 271 | - |
|
| 272 | - // hey! don't forget to include the type if present! |
|
| 273 | - $this->_validators[ $field ]['type'] = $config['type'] ?? null; |
|
| 274 | - } |
|
| 275 | - } |
|
| 276 | - |
|
| 277 | - |
|
| 278 | - /** |
|
| 279 | - * This just returns the validators property that contains information |
|
| 280 | - * about the various shortcodes and their availability with each field |
|
| 281 | - * |
|
| 282 | - * @return array |
|
| 283 | - */ |
|
| 284 | - public function get_validators(): array |
|
| 285 | - { |
|
| 286 | - return $this->_validators; |
|
| 287 | - } |
|
| 288 | - |
|
| 289 | - |
|
| 290 | - /** |
|
| 291 | - * This simply returns the specific shortcode_excludes property that is set. |
|
| 292 | - * |
|
| 293 | - * @return array |
|
| 294 | - * @since 4.5.0 |
|
| 295 | - */ |
|
| 296 | - public function get_specific_shortcode_excludes(): array |
|
| 297 | - { |
|
| 298 | - // specific validator filter |
|
| 299 | - $shortcode_excludes = (array) apply_filters( |
|
| 300 | - 'FHEE__' . get_class($this) . '__get_specific_shortcode_excludes;', |
|
| 301 | - $this->_specific_shortcode_excludes, |
|
| 302 | - $this->_context |
|
| 303 | - ); |
|
| 304 | - // global filter |
|
| 305 | - return (array) apply_filters( |
|
| 306 | - 'FHEE__EE_Messages_Validator__get_specific_shortcode_excludes', |
|
| 307 | - $shortcode_excludes, |
|
| 308 | - $this->_context, |
|
| 309 | - $this |
|
| 310 | - ); |
|
| 311 | - } |
|
| 312 | - |
|
| 313 | - |
|
| 314 | - /** |
|
| 315 | - * This is the main method that handles validation |
|
| 316 | - * What it does is loop through the _fields (the ones that get validated) |
|
| 317 | - * and checks them against the shortcodes array for the field and the 'type' indicated by the |
|
| 318 | - * |
|
| 319 | - * @return array|bool if errors present we return the array otherwise true |
|
| 320 | - */ |
|
| 321 | - public function validate() |
|
| 322 | - { |
|
| 323 | - // some defaults |
|
| 324 | - $template_fields = $this->_messenger->get_template_fields(); |
|
| 325 | - // loop through the fields and check! |
|
| 326 | - foreach ($this->_fields as $field => $value) { |
|
| 327 | - $this->_errors[ $field ] = []; |
|
| 328 | - $err_msg = ''; |
|
| 329 | - $field_label = ''; |
|
| 330 | - // if field is not present in the _validators array then we continue |
|
| 331 | - if (! isset($this->_validators[ $field ])) { |
|
| 332 | - unset($this->_errors[ $field ]); |
|
| 333 | - continue; |
|
| 334 | - } |
|
| 335 | - |
|
| 336 | - // get the translated field label! |
|
| 337 | - // first check if it's in the main fields list |
|
| 338 | - if (isset($template_fields[ $field ])) { |
|
| 339 | - // most likely the field is found in the 'extra' array. |
|
| 340 | - $field_label = ! empty($template_fields[ $field ]) |
|
| 341 | - ? $template_fields[ $field ]['label'] |
|
| 342 | - : $field; |
|
| 343 | - } |
|
| 344 | - |
|
| 345 | - // if field label is empty OR is equal to the current field |
|
| 346 | - // then we need to loop through the 'extra' fields in the template_fields config (if present) |
|
| 347 | - if (isset($template_fields['extra']) && (empty($field_label) || $field_label === $field)) { |
|
| 348 | - foreach ($template_fields['extra'] as $main_field => $secondary_field) { |
|
| 349 | - foreach ($secondary_field as $name => $values) { |
|
| 350 | - if ($name === $field) { |
|
| 351 | - $field_label = $values['label']; |
|
| 352 | - } |
|
| 353 | - |
|
| 354 | - // if we've got a 'main' secondary field, let's see if that matches what field we're on |
|
| 355 | - // which means it contains the label for this field. |
|
| 356 | - if ($name === 'main' && $main_field === $field_label) { |
|
| 357 | - $field_label = $values['label']; |
|
| 358 | - } |
|
| 359 | - } |
|
| 360 | - } |
|
| 361 | - } |
|
| 362 | - |
|
| 363 | - // field is present. Let's validate shortcodes first (but only if shortcodes present). |
|
| 364 | - if ( |
|
| 365 | - isset($this->_validators[ $field ]['shortcodes']) |
|
| 366 | - && ! empty($this->_validators[ $field ]['shortcodes']) |
|
| 367 | - ) { |
|
| 368 | - $valid_shortcodes = array_keys((array) $this->_validators[ $field ]['shortcodes']); |
|
| 369 | - $invalid_shortcodes = $this->findInvalidShortcodes((string) $value, $valid_shortcodes); |
|
| 370 | - // if true then that means there is a returned error message |
|
| 371 | - // that we'll need to add to the _errors array for this field. |
|
| 372 | - if ($invalid_shortcodes) { |
|
| 373 | - $v_s = array_keys($this->_validators[ $field ]['shortcodes']); |
|
| 374 | - $err_msg = sprintf( |
|
| 375 | - esc_html__( |
|
| 376 | - '%3$sThe following shortcodes were found in the "%1$s" field that ARE not valid: %2$s%4$s', |
|
| 377 | - 'event_espresso' |
|
| 378 | - ), |
|
| 379 | - '<strong>' . $field_label . '</strong>', |
|
| 380 | - $invalid_shortcodes, |
|
| 381 | - '<p>', |
|
| 382 | - '</p >' |
|
| 383 | - ); |
|
| 384 | - $err_msg .= sprintf( |
|
| 385 | - esc_html__('%2$sValid shortcodes for this field are: %1$s%3$s', 'event_espresso'), |
|
| 386 | - implode(', ', $v_s), |
|
| 387 | - '<strong>', |
|
| 388 | - '</strong>' |
|
| 389 | - ); |
|
| 390 | - } |
|
| 391 | - } |
|
| 392 | - |
|
| 393 | - // if there's a "type" to be validated then let's do that too. |
|
| 394 | - if (isset($this->_validators[ $field ]['type']) && ! empty($this->_validators[ $field ]['type'])) { |
|
| 395 | - switch ($this->_validators[ $field ]['type']) { |
|
| 396 | - case 'number': |
|
| 397 | - if (! is_numeric($value)) { |
|
| 398 | - $err_msg .= sprintf( |
|
| 399 | - esc_html__( |
|
| 400 | - '%3$sThe %1$s field is supposed to be a number. The value given (%2$s) is not. Please double-check and make sure the field contains a number%4$s', |
|
| 401 | - 'event_espresso' |
|
| 402 | - ), |
|
| 403 | - $field_label, |
|
| 404 | - $value, |
|
| 405 | - '<p>', |
|
| 406 | - '</p >' |
|
| 407 | - ); |
|
| 408 | - } |
|
| 409 | - break; |
|
| 410 | - case 'email': |
|
| 411 | - $valid_email = $this->_validate_email((string) $value); |
|
| 412 | - if (! $valid_email) { |
|
| 413 | - $err_msg .= htmlentities( |
|
| 414 | - sprintf( |
|
| 415 | - esc_html__( |
|
| 416 | - 'The %1$s field has at least one string that is not a valid email address record. Valid emails are in the format: "Name <[email protected]>" or "[email protected]" and multiple emails can be separated by a comma.', |
|
| 417 | - 'event_espresso' |
|
| 418 | - ), |
|
| 419 | - $field_label |
|
| 420 | - ) |
|
| 421 | - ); |
|
| 422 | - } |
|
| 423 | - break; |
|
| 424 | - default: |
|
| 425 | - break; |
|
| 426 | - } |
|
| 427 | - } |
|
| 428 | - |
|
| 429 | - // if $err_msg isn't empty, let's set up the _errors array for this field. |
|
| 430 | - if (! empty($err_msg)) { |
|
| 431 | - $this->_errors[ $field ]['msg'] = $err_msg; |
|
| 432 | - } else { |
|
| 433 | - unset($this->_errors[ $field ]); |
|
| 434 | - } |
|
| 435 | - } |
|
| 436 | - |
|
| 437 | - // if we have ANY errors, then we want to make sure we return the values |
|
| 438 | - // for ALL the fields so the user doesn't have to retype them all. |
|
| 439 | - if (! empty($this->_errors)) { |
|
| 440 | - foreach ($this->_fields as $field => $value) { |
|
| 441 | - $this->_errors[ $field ]['value'] = stripslashes($value); |
|
| 442 | - } |
|
| 443 | - } |
|
| 444 | - |
|
| 445 | - // return any errors or just TRUE if everything validates |
|
| 446 | - return empty($this->_errors) |
|
| 447 | - ? true |
|
| 448 | - : $this->_errors; |
|
| 449 | - } |
|
| 450 | - |
|
| 451 | - |
|
| 452 | - /** |
|
| 453 | - * Reassembles and returns an array of valid shortcodes |
|
| 454 | - * given the array of groups and array of shortcodes indexed by group. |
|
| 455 | - * |
|
| 456 | - * @param array $groups array of shortcode groups that we want shortcodes for |
|
| 457 | - * @param array $codes_from_objs All the codes available. |
|
| 458 | - * @return array an array of actual shortcodes (that will be used for validation). |
|
| 459 | - */ |
|
| 460 | - private function reassembleValidShortcodesFromGroup(array $groups, array $codes_from_objs): array |
|
| 461 | - { |
|
| 462 | - $shortcodes = []; |
|
| 463 | - foreach ($groups as $group) { |
|
| 464 | - $shortcodes = array_merge($shortcodes, $codes_from_objs[ $group ]); |
|
| 465 | - } |
|
| 466 | - return $shortcodes; |
|
| 467 | - } |
|
| 468 | - |
|
| 469 | - |
|
| 470 | - /** |
|
| 471 | - * Validates a string against a list of accepted shortcodes |
|
| 472 | - * This function takes in an array of shortcodes |
|
| 473 | - * and makes sure that the given string ONLY contains shortcodes in that array. |
|
| 474 | - * |
|
| 475 | - * @param string $value string to evaluate |
|
| 476 | - * @param array $valid_shortcodes array of shortcodes that are acceptable. |
|
| 477 | - * @return bool|string return either a list of invalid shortcodes OR false if the shortcodes validate. |
|
| 478 | - * @deprecated 5.0.48 |
|
| 479 | - */ |
|
| 480 | - protected function _invalid_shortcodes(string $value, array $valid_shortcodes) |
|
| 481 | - { |
|
| 482 | - return $this->findInvalidShortcodes($value, $valid_shortcodes) ?: false; |
|
| 483 | - } |
|
| 484 | - |
|
| 485 | - |
|
| 486 | - /** |
|
| 487 | - * Validates a string against a list of accepted shortcodes |
|
| 488 | - * This function takes in an array of shortcodes |
|
| 489 | - * and makes sure that the given string ONLY contains shortcodes in that array. |
|
| 490 | - * |
|
| 491 | - * @param string $incoming_text string to evaluate |
|
| 492 | - * @param array $valid_shortcodes array of shortcodes that are acceptable. |
|
| 493 | - * @return string return either a list of invalid shortcodes OR false if the shortcodes validate. |
|
| 494 | - */ |
|
| 495 | - protected function findInvalidShortcodes(string $incoming_text, array $valid_shortcodes): string |
|
| 496 | - { |
|
| 497 | - // first we need to go through the string and get ALL the shortcodes in the string |
|
| 498 | - // matches the opening [ plus the shortcode name, but nothing else |
|
| 499 | - // examples: |
|
| 500 | - // [RECIPIENT_LNAME] matches as [RECIPIENT_LNAME |
|
| 501 | - // [RECEIPT_URL download=true] matches as [RECEIPT_URL |
|
| 502 | - // [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] matches as [PAYMENT_LINK_IF_NEEDED_* |
|
| 503 | - preg_match_all(EE_Shortcodes::REGEX_SHORTCODE_NAME_ONLY, $incoming_text, $matches); |
|
| 504 | - $shortcodes_in_text = $matches[0]; |
|
| 505 | - // now all we need to do is add the closing ] to each shortcode to make them "valid" |
|
| 506 | - $shortcodes_in_text = array_map('EE_Shortcodes::extractShortcode', $shortcodes_in_text); |
|
| 507 | - // get a diff of the shortcodes in the string vs the valid shortcodes |
|
| 508 | - $invalid_shortcodes = array_diff($shortcodes_in_text, $valid_shortcodes); |
|
| 509 | - if (empty($invalid_shortcodes)) { |
|
| 510 | - return ''; |
|
| 511 | - } |
|
| 512 | - // made it here? then let's assemble the error message |
|
| 513 | - return '<strong>' . implode('</strong>,<strong>', $invalid_shortcodes) . '</strong>'; |
|
| 514 | - } |
|
| 515 | - |
|
| 516 | - |
|
| 517 | - /** |
|
| 518 | - * Validates an incoming string and makes sure we have valid emails in the string. |
|
| 519 | - * |
|
| 520 | - * @param string $value incoming value to validate |
|
| 521 | - * @return bool true if the string validates, false if it doesn't |
|
| 522 | - */ |
|
| 523 | - protected function _validate_email(string $value): bool |
|
| 524 | - { |
|
| 525 | - $or_val = $value; |
|
| 526 | - |
|
| 527 | - // empty strings will validate because this is how a message template |
|
| 528 | - // for a particular context can be "turned off" (if there is no email then no message) |
|
| 529 | - if (empty($value)) { |
|
| 530 | - return true; |
|
| 531 | - } |
|
| 532 | - |
|
| 533 | - // first determine if there ARE any shortcodes. |
|
| 534 | - // If there are shortcodes and then later we find that there were no other valid emails |
|
| 535 | - // but the field isn't empty... |
|
| 536 | - // that means we've got extra commas that were left after stripping out shortcodes so probably still valid. |
|
| 537 | - $has_shortcodes = preg_match(EE_Shortcodes::REGEX_SHORTCODE_FULL, $value); |
|
| 538 | - |
|
| 539 | - // first we need to strip out all the shortcodes! |
|
| 540 | - $value = preg_replace(EE_Shortcodes::REGEX_SHORTCODE_FULL, '', $value); |
|
| 541 | - |
|
| 542 | - // if original value is not empty and new value is, then we've parsed out a shortcode |
|
| 543 | - // and we now have an empty string which DOES validate. |
|
| 544 | - // We also validate complete empty field for email because |
|
| 545 | - // it's possible that this message is being "turned off" for a particular context |
|
| 546 | - |
|
| 547 | - |
|
| 548 | - if (! empty($or_val) && empty($value)) { |
|
| 549 | - return true; |
|
| 550 | - } |
|
| 551 | - |
|
| 552 | - // trim any commas from beginning and end of string ( after whitespace trimmed ); |
|
| 553 | - $value = trim(trim($value), ','); |
|
| 554 | - |
|
| 555 | - // next we need to split up the string if it's comma-delimited. |
|
| 556 | - $emails = explode(',', $value); |
|
| 557 | - $empty = false; // used to indicate that there is an empty comma. |
|
| 558 | - // now let's loop through the emails and do our checks |
|
| 559 | - foreach ($emails as $email) { |
|
| 560 | - if (empty($email)) { |
|
| 561 | - $empty = true; |
|
| 562 | - continue; |
|
| 563 | - } |
|
| 564 | - |
|
| 565 | - // trim whitespace |
|
| 566 | - $email = trim($email); |
|
| 567 | - // either its of type "[email protected]", or its of type "fname lname <[email protected]>" |
|
| 568 | - if (is_email($email)) { |
|
| 569 | - continue; |
|
| 570 | - } |
|
| 571 | - $matches = []; |
|
| 572 | - $validate = (bool) preg_match('/(.*)<(.+)>/', $email, $matches); |
|
| 573 | - if ($validate && is_email($matches[2])) { |
|
| 574 | - continue; |
|
| 575 | - } |
|
| 576 | - return false; |
|
| 577 | - } |
|
| 578 | - |
|
| 579 | - return ! ($empty && ! $has_shortcodes); |
|
| 580 | - } |
|
| 581 | - |
|
| 582 | - |
|
| 583 | - /** |
|
| 584 | - * Magic getter |
|
| 585 | - * Using this to provide back compat with add-ons referencing deprecated properties. |
|
| 586 | - * |
|
| 587 | - * @param string $property Property being requested |
|
| 588 | - * @return mixed |
|
| 589 | - * @throws Exception |
|
| 590 | - */ |
|
| 591 | - public function __get($property) |
|
| 592 | - { |
|
| 593 | - $expected_properties_map = [ |
|
| 594 | - /** |
|
| 595 | - * @deprecated 4.9.0 |
|
| 596 | - */ |
|
| 597 | - '_MSGR' => '_messenger', |
|
| 598 | - /** |
|
| 599 | - * @deprecated 4.9.0 |
|
| 600 | - */ |
|
| 601 | - '_MSGTYP' => '_message_type', |
|
| 602 | - ]; |
|
| 603 | - |
|
| 604 | - if (isset($expected_properties_map[ $property ])) { |
|
| 605 | - return $this->{$expected_properties_map[ $property ]}; |
|
| 606 | - } |
|
| 607 | - |
|
| 608 | - throw new Exception( |
|
| 609 | - sprintf( |
|
| 610 | - esc_html__('The property %1$s being requested on %2$s does not exist', 'event_espresso'), |
|
| 611 | - $property, |
|
| 612 | - get_class($this) |
|
| 613 | - ) |
|
| 614 | - ); |
|
| 615 | - } |
|
| 18 | + /** |
|
| 19 | + * These properties just hold the name for the Messenger and Message Type (defined by child classes). |
|
| 20 | + * These are used for retrieving objects etc. |
|
| 21 | + * |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + protected string $_m_name = ''; |
|
| 25 | + |
|
| 26 | + protected string $_mt_name = ''; |
|
| 27 | + |
|
| 28 | + |
|
| 29 | + /** |
|
| 30 | + * This will hold any error messages from the validation process. |
|
| 31 | + * The _errors property holds an associative array of error messages |
|
| 32 | + * listing the field as the key and the message as the value. |
|
| 33 | + * |
|
| 34 | + * @var array |
|
| 35 | + */ |
|
| 36 | + private array $_errors = []; |
|
| 37 | + |
|
| 38 | + |
|
| 39 | + /** |
|
| 40 | + * holds an array of fields being validated |
|
| 41 | + * |
|
| 42 | + * @var array |
|
| 43 | + */ |
|
| 44 | + protected array $_fields = []; |
|
| 45 | + |
|
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * this will hold the incoming context |
|
| 49 | + * |
|
| 50 | + * @var string |
|
| 51 | + */ |
|
| 52 | + protected string $_context = ''; |
|
| 53 | + |
|
| 54 | + |
|
| 55 | + /** |
|
| 56 | + * this holds an array of fields and the relevant validation information |
|
| 57 | + * that the incoming fields data get validated against. |
|
| 58 | + * This gets setup in the _set_props() method. |
|
| 59 | + * |
|
| 60 | + * @var array |
|
| 61 | + */ |
|
| 62 | + protected array $_validators = []; |
|
| 63 | + |
|
| 64 | + protected EE_messenger $_messenger; |
|
| 65 | + |
|
| 66 | + |
|
| 67 | + protected EE_message_type $_message_type; |
|
| 68 | + |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * will hold any valid_shortcode modifications made by the _modify_validator() method. |
|
| 72 | + * |
|
| 73 | + * @var array |
|
| 74 | + */ |
|
| 75 | + protected array $_valid_shortcodes_modifier = []; |
|
| 76 | + |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * There may be times when a message type wants to include a shortcode group but exclude specific |
|
| 80 | + * shortcodes. If that's the case then it can set this property as an array of shortcodes to exclude and |
|
| 81 | + * they will not be allowed. |
|
| 82 | + * Array should be indexed by field and values are an array of specific shortcodes to exclude. |
|
| 83 | + * |
|
| 84 | + * @var array |
|
| 85 | + */ |
|
| 86 | + protected array $_specific_shortcode_excludes = []; |
|
| 87 | + |
|
| 88 | + |
|
| 89 | + /** |
|
| 90 | + * Runs the validator using the incoming fields array as the fields/values to check. |
|
| 91 | + * |
|
| 92 | + * @param array $fields The fields sent by the EEM object. |
|
| 93 | + * @param string $context |
|
| 94 | + * @throws EE_Error |
|
| 95 | + * @throws ReflectionException |
|
| 96 | + */ |
|
| 97 | + public function __construct($fields, $context) |
|
| 98 | + { |
|
| 99 | + // checks that child class has set _m_name and _mt_name, otherwise we get out. |
|
| 100 | + if (empty($this->_m_name) || empty($this->_mt_name)) { |
|
| 101 | + throw new EE_Error( |
|
| 102 | + esc_html__( |
|
| 103 | + 'EE_Messages_Validator child classes MUST set the $_m_name and $_mt_name property. Check that the child class is doing this', |
|
| 104 | + 'event_espresso' |
|
| 105 | + ) |
|
| 106 | + ); |
|
| 107 | + } |
|
| 108 | + $this->_fields = (array) $fields; |
|
| 109 | + $this->_context = (string) $context; |
|
| 110 | + |
|
| 111 | + $this->loadMessengerAndMessageType(); |
|
| 112 | + // modify any messenger/message_type specific validation instructions. This is what child classes define. |
|
| 113 | + $this->_modify_validator(); |
|
| 114 | + // let's set validators property |
|
| 115 | + $this->setValidators(); |
|
| 116 | + } |
|
| 117 | + |
|
| 118 | + |
|
| 119 | + /** |
|
| 120 | + * Child classes instantiate this and use it to modify the _validator_config array property |
|
| 121 | + * for the messenger using messengers set_validate_config() method. |
|
| 122 | + * This is so we can specify specific validation instructions for a messenger/message_type combo |
|
| 123 | + * that aren't handled by the defaults setup in the messenger. |
|
| 124 | + * |
|
| 125 | + * @abstract |
|
| 126 | + * @return void |
|
| 127 | + */ |
|
| 128 | + abstract protected function _modify_validator(); |
|
| 129 | + |
|
| 130 | + |
|
| 131 | + /** |
|
| 132 | + * loads all objects used by validator |
|
| 133 | + * |
|
| 134 | + * @throws EE_Error |
|
| 135 | + */ |
|
| 136 | + private function loadMessengerAndMessageType() |
|
| 137 | + { |
|
| 138 | + // load messenger |
|
| 139 | + $messenger = ucwords(str_replace('_', ' ', $this->_m_name)); |
|
| 140 | + $messenger = str_replace(' ', '_', $messenger); |
|
| 141 | + $messenger = 'EE_' . $messenger . '_messenger'; |
|
| 142 | + |
|
| 143 | + if (! class_exists($messenger)) { |
|
| 144 | + throw new EE_Error( |
|
| 145 | + sprintf( |
|
| 146 | + esc_html__('There is no messenger class for the given string (%s)', 'event_espresso'), |
|
| 147 | + $this->_m_name |
|
| 148 | + ) |
|
| 149 | + ); |
|
| 150 | + } |
|
| 151 | + |
|
| 152 | + $this->_messenger = new $messenger(); |
|
| 153 | + |
|
| 154 | + // load message type |
|
| 155 | + $message_type = ucwords(str_replace('_', ' ', $this->_mt_name)); |
|
| 156 | + $message_type = str_replace(' ', '_', $message_type); |
|
| 157 | + $message_type = 'EE_' . $message_type . '_message_type'; |
|
| 158 | + |
|
| 159 | + if (! class_exists($message_type)) { |
|
| 160 | + throw new EE_Error( |
|
| 161 | + sprintf( |
|
| 162 | + esc_html__('There is no message type class for the given string (%s)', 'event_espresso'), |
|
| 163 | + $this->_mt_name |
|
| 164 | + ) |
|
| 165 | + ); |
|
| 166 | + } |
|
| 167 | + |
|
| 168 | + $this->_message_type = new $message_type(); |
|
| 169 | + } |
|
| 170 | + |
|
| 171 | + |
|
| 172 | + /** |
|
| 173 | + * used to set the $_validators property |
|
| 174 | + * |
|
| 175 | + * @return void |
|
| 176 | + * @throws ReflectionException |
|
| 177 | + */ |
|
| 178 | + private function setValidators() |
|
| 179 | + { |
|
| 180 | + // let's get all valid shortcodes from mt and message type |
|
| 181 | + // (messenger will have its set in the _validator_config property for the messenger) |
|
| 182 | + $mt_codes = $this->_message_type->get_valid_shortcodes(); |
|
| 183 | + // get messenger validator_config |
|
| 184 | + $msgr_validator = $this->_messenger->get_validator_config(); |
|
| 185 | + // we only want the valid shortcodes for the given context! |
|
| 186 | + $context = $this->_context; |
|
| 187 | + $mt_codes = $mt_codes[ $context ]; |
|
| 188 | + // in this first loop we're just getting all shortcode group indexes from the msgr_validator |
|
| 189 | + // into a single array (so we can get the appropriate shortcode objects for the groups) |
|
| 190 | + $shortcode_groups = $mt_codes; |
|
| 191 | + $groups_per_field = []; |
|
| 192 | + |
|
| 193 | + foreach ($msgr_validator as $field => $config) { |
|
| 194 | + if (! isset($config['shortcodes'])) { |
|
| 195 | + continue; |
|
| 196 | + } //Nothing to see here. |
|
| 197 | + $groups_per_field[ $field ] = array_intersect($config['shortcodes'], $mt_codes); |
|
| 198 | + $shortcode_groups = array_merge($config['shortcodes'], $shortcode_groups); |
|
| 199 | + } |
|
| 200 | + $shortcode_groups = array_unique($shortcode_groups); |
|
| 201 | + |
|
| 202 | + // okay now we've got our groups. |
|
| 203 | + // Let's get the codes from the objects into an array indexed by group for easy retrieval later. |
|
| 204 | + $codes_from_objs = []; |
|
| 205 | + |
|
| 206 | + foreach ($shortcode_groups as $group) { |
|
| 207 | + $ref = ucwords(str_replace('_', ' ', $group)); |
|
| 208 | + $ref = str_replace(' ', '_', $ref); |
|
| 209 | + $classname = 'EE_' . $ref . '_Shortcodes'; |
|
| 210 | + if (class_exists($classname)) { |
|
| 211 | + $a = new ReflectionClass($classname); |
|
| 212 | + $obj = $a->newInstance(); |
|
| 213 | + $codes_from_objs[ $group ] = $obj->get_shortcodes(); |
|
| 214 | + } |
|
| 215 | + } |
|
| 216 | + |
|
| 217 | + // let's just replace the $mt shortcode group indexes with the actual shortcodes (unique) |
|
| 218 | + $final_mt_codes = []; |
|
| 219 | + foreach ($mt_codes as $group) { |
|
| 220 | + $final_mt_codes = array_merge($final_mt_codes, $codes_from_objs[ $group ]); |
|
| 221 | + } |
|
| 222 | + $mt_codes = $final_mt_codes; |
|
| 223 | + |
|
| 224 | + // k now in this next loop we're going to loop through $msgr_validator again |
|
| 225 | + // and set up the _validators property from the data we've setup so far. |
|
| 226 | + foreach ($msgr_validator as $field => $config) { |
|
| 227 | + // if required shortcode is not in our list of codes for the given field, then we skip this field. |
|
| 228 | + $required = isset($config['required']) |
|
| 229 | + ? array_intersect($config['required'], array_keys($mt_codes)) |
|
| 230 | + : true; |
|
| 231 | + if (empty($required)) { |
|
| 232 | + continue; |
|
| 233 | + } |
|
| 234 | + |
|
| 235 | + if (isset($this->_valid_shortcodes_modifier[ $context ][ $field ])) { |
|
| 236 | + // If we have an override then we use it to indicate the codes we want. |
|
| 237 | + $this->_validators[ $field ]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 238 | + $this->_valid_shortcodes_modifier[ $context ][ $field ], |
|
| 239 | + $codes_from_objs |
|
| 240 | + ); |
|
| 241 | + } elseif (isset($groups_per_field[ $field ])) { |
|
| 242 | + // we have specific shortcodes for a field so we need to use them |
|
| 243 | + $this->_validators[ $field ]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 244 | + $groups_per_field[ $field ], |
|
| 245 | + $codes_from_objs |
|
| 246 | + ); |
|
| 247 | + } elseif (empty($config)) { |
|
| 248 | + // no config so we're assuming we're just going to use the shortcodes from the message type context |
|
| 249 | + $this->_validators[ $field ]['shortcodes'] = $mt_codes; |
|
| 250 | + } elseif (isset($config['specific_shortcodes'])) { |
|
| 251 | + // we have specific shortcodes so we need to use them |
|
| 252 | + $this->_validators[ $field ]['shortcodes'] = $config['specific_shortcodes']; |
|
| 253 | + } else { |
|
| 254 | + // otherwise the shortcodes are what is set by the messenger for that field |
|
| 255 | + foreach ($config['shortcodes'] as $group) { |
|
| 256 | + $this->_validators[ $field ]['shortcodes'] = isset($this->_validators[ $field ]['shortcodes']) |
|
| 257 | + ? array_merge($this->_validators[ $field ]['shortcodes'], $codes_from_objs[ $group ]) |
|
| 258 | + : $codes_from_objs[ $group ]; |
|
| 259 | + } |
|
| 260 | + } |
|
| 261 | + |
|
| 262 | + // now let's just make sure that any excluded specific shortcodes are removed. |
|
| 263 | + $specific_excludes = $this->get_specific_shortcode_excludes(); |
|
| 264 | + if (isset($specific_excludes[ $field ])) { |
|
| 265 | + foreach ($specific_excludes[ $field ] as $sex) { |
|
| 266 | + if (isset($this->_validators[ $field ]['shortcodes'][ $sex ])) { |
|
| 267 | + unset($this->_validators[ $field ]['shortcodes'][ $sex ]); |
|
| 268 | + } |
|
| 269 | + } |
|
| 270 | + } |
|
| 271 | + |
|
| 272 | + // hey! don't forget to include the type if present! |
|
| 273 | + $this->_validators[ $field ]['type'] = $config['type'] ?? null; |
|
| 274 | + } |
|
| 275 | + } |
|
| 276 | + |
|
| 277 | + |
|
| 278 | + /** |
|
| 279 | + * This just returns the validators property that contains information |
|
| 280 | + * about the various shortcodes and their availability with each field |
|
| 281 | + * |
|
| 282 | + * @return array |
|
| 283 | + */ |
|
| 284 | + public function get_validators(): array |
|
| 285 | + { |
|
| 286 | + return $this->_validators; |
|
| 287 | + } |
|
| 288 | + |
|
| 289 | + |
|
| 290 | + /** |
|
| 291 | + * This simply returns the specific shortcode_excludes property that is set. |
|
| 292 | + * |
|
| 293 | + * @return array |
|
| 294 | + * @since 4.5.0 |
|
| 295 | + */ |
|
| 296 | + public function get_specific_shortcode_excludes(): array |
|
| 297 | + { |
|
| 298 | + // specific validator filter |
|
| 299 | + $shortcode_excludes = (array) apply_filters( |
|
| 300 | + 'FHEE__' . get_class($this) . '__get_specific_shortcode_excludes;', |
|
| 301 | + $this->_specific_shortcode_excludes, |
|
| 302 | + $this->_context |
|
| 303 | + ); |
|
| 304 | + // global filter |
|
| 305 | + return (array) apply_filters( |
|
| 306 | + 'FHEE__EE_Messages_Validator__get_specific_shortcode_excludes', |
|
| 307 | + $shortcode_excludes, |
|
| 308 | + $this->_context, |
|
| 309 | + $this |
|
| 310 | + ); |
|
| 311 | + } |
|
| 312 | + |
|
| 313 | + |
|
| 314 | + /** |
|
| 315 | + * This is the main method that handles validation |
|
| 316 | + * What it does is loop through the _fields (the ones that get validated) |
|
| 317 | + * and checks them against the shortcodes array for the field and the 'type' indicated by the |
|
| 318 | + * |
|
| 319 | + * @return array|bool if errors present we return the array otherwise true |
|
| 320 | + */ |
|
| 321 | + public function validate() |
|
| 322 | + { |
|
| 323 | + // some defaults |
|
| 324 | + $template_fields = $this->_messenger->get_template_fields(); |
|
| 325 | + // loop through the fields and check! |
|
| 326 | + foreach ($this->_fields as $field => $value) { |
|
| 327 | + $this->_errors[ $field ] = []; |
|
| 328 | + $err_msg = ''; |
|
| 329 | + $field_label = ''; |
|
| 330 | + // if field is not present in the _validators array then we continue |
|
| 331 | + if (! isset($this->_validators[ $field ])) { |
|
| 332 | + unset($this->_errors[ $field ]); |
|
| 333 | + continue; |
|
| 334 | + } |
|
| 335 | + |
|
| 336 | + // get the translated field label! |
|
| 337 | + // first check if it's in the main fields list |
|
| 338 | + if (isset($template_fields[ $field ])) { |
|
| 339 | + // most likely the field is found in the 'extra' array. |
|
| 340 | + $field_label = ! empty($template_fields[ $field ]) |
|
| 341 | + ? $template_fields[ $field ]['label'] |
|
| 342 | + : $field; |
|
| 343 | + } |
|
| 344 | + |
|
| 345 | + // if field label is empty OR is equal to the current field |
|
| 346 | + // then we need to loop through the 'extra' fields in the template_fields config (if present) |
|
| 347 | + if (isset($template_fields['extra']) && (empty($field_label) || $field_label === $field)) { |
|
| 348 | + foreach ($template_fields['extra'] as $main_field => $secondary_field) { |
|
| 349 | + foreach ($secondary_field as $name => $values) { |
|
| 350 | + if ($name === $field) { |
|
| 351 | + $field_label = $values['label']; |
|
| 352 | + } |
|
| 353 | + |
|
| 354 | + // if we've got a 'main' secondary field, let's see if that matches what field we're on |
|
| 355 | + // which means it contains the label for this field. |
|
| 356 | + if ($name === 'main' && $main_field === $field_label) { |
|
| 357 | + $field_label = $values['label']; |
|
| 358 | + } |
|
| 359 | + } |
|
| 360 | + } |
|
| 361 | + } |
|
| 362 | + |
|
| 363 | + // field is present. Let's validate shortcodes first (but only if shortcodes present). |
|
| 364 | + if ( |
|
| 365 | + isset($this->_validators[ $field ]['shortcodes']) |
|
| 366 | + && ! empty($this->_validators[ $field ]['shortcodes']) |
|
| 367 | + ) { |
|
| 368 | + $valid_shortcodes = array_keys((array) $this->_validators[ $field ]['shortcodes']); |
|
| 369 | + $invalid_shortcodes = $this->findInvalidShortcodes((string) $value, $valid_shortcodes); |
|
| 370 | + // if true then that means there is a returned error message |
|
| 371 | + // that we'll need to add to the _errors array for this field. |
|
| 372 | + if ($invalid_shortcodes) { |
|
| 373 | + $v_s = array_keys($this->_validators[ $field ]['shortcodes']); |
|
| 374 | + $err_msg = sprintf( |
|
| 375 | + esc_html__( |
|
| 376 | + '%3$sThe following shortcodes were found in the "%1$s" field that ARE not valid: %2$s%4$s', |
|
| 377 | + 'event_espresso' |
|
| 378 | + ), |
|
| 379 | + '<strong>' . $field_label . '</strong>', |
|
| 380 | + $invalid_shortcodes, |
|
| 381 | + '<p>', |
|
| 382 | + '</p >' |
|
| 383 | + ); |
|
| 384 | + $err_msg .= sprintf( |
|
| 385 | + esc_html__('%2$sValid shortcodes for this field are: %1$s%3$s', 'event_espresso'), |
|
| 386 | + implode(', ', $v_s), |
|
| 387 | + '<strong>', |
|
| 388 | + '</strong>' |
|
| 389 | + ); |
|
| 390 | + } |
|
| 391 | + } |
|
| 392 | + |
|
| 393 | + // if there's a "type" to be validated then let's do that too. |
|
| 394 | + if (isset($this->_validators[ $field ]['type']) && ! empty($this->_validators[ $field ]['type'])) { |
|
| 395 | + switch ($this->_validators[ $field ]['type']) { |
|
| 396 | + case 'number': |
|
| 397 | + if (! is_numeric($value)) { |
|
| 398 | + $err_msg .= sprintf( |
|
| 399 | + esc_html__( |
|
| 400 | + '%3$sThe %1$s field is supposed to be a number. The value given (%2$s) is not. Please double-check and make sure the field contains a number%4$s', |
|
| 401 | + 'event_espresso' |
|
| 402 | + ), |
|
| 403 | + $field_label, |
|
| 404 | + $value, |
|
| 405 | + '<p>', |
|
| 406 | + '</p >' |
|
| 407 | + ); |
|
| 408 | + } |
|
| 409 | + break; |
|
| 410 | + case 'email': |
|
| 411 | + $valid_email = $this->_validate_email((string) $value); |
|
| 412 | + if (! $valid_email) { |
|
| 413 | + $err_msg .= htmlentities( |
|
| 414 | + sprintf( |
|
| 415 | + esc_html__( |
|
| 416 | + 'The %1$s field has at least one string that is not a valid email address record. Valid emails are in the format: "Name <[email protected]>" or "[email protected]" and multiple emails can be separated by a comma.', |
|
| 417 | + 'event_espresso' |
|
| 418 | + ), |
|
| 419 | + $field_label |
|
| 420 | + ) |
|
| 421 | + ); |
|
| 422 | + } |
|
| 423 | + break; |
|
| 424 | + default: |
|
| 425 | + break; |
|
| 426 | + } |
|
| 427 | + } |
|
| 428 | + |
|
| 429 | + // if $err_msg isn't empty, let's set up the _errors array for this field. |
|
| 430 | + if (! empty($err_msg)) { |
|
| 431 | + $this->_errors[ $field ]['msg'] = $err_msg; |
|
| 432 | + } else { |
|
| 433 | + unset($this->_errors[ $field ]); |
|
| 434 | + } |
|
| 435 | + } |
|
| 436 | + |
|
| 437 | + // if we have ANY errors, then we want to make sure we return the values |
|
| 438 | + // for ALL the fields so the user doesn't have to retype them all. |
|
| 439 | + if (! empty($this->_errors)) { |
|
| 440 | + foreach ($this->_fields as $field => $value) { |
|
| 441 | + $this->_errors[ $field ]['value'] = stripslashes($value); |
|
| 442 | + } |
|
| 443 | + } |
|
| 444 | + |
|
| 445 | + // return any errors or just TRUE if everything validates |
|
| 446 | + return empty($this->_errors) |
|
| 447 | + ? true |
|
| 448 | + : $this->_errors; |
|
| 449 | + } |
|
| 450 | + |
|
| 451 | + |
|
| 452 | + /** |
|
| 453 | + * Reassembles and returns an array of valid shortcodes |
|
| 454 | + * given the array of groups and array of shortcodes indexed by group. |
|
| 455 | + * |
|
| 456 | + * @param array $groups array of shortcode groups that we want shortcodes for |
|
| 457 | + * @param array $codes_from_objs All the codes available. |
|
| 458 | + * @return array an array of actual shortcodes (that will be used for validation). |
|
| 459 | + */ |
|
| 460 | + private function reassembleValidShortcodesFromGroup(array $groups, array $codes_from_objs): array |
|
| 461 | + { |
|
| 462 | + $shortcodes = []; |
|
| 463 | + foreach ($groups as $group) { |
|
| 464 | + $shortcodes = array_merge($shortcodes, $codes_from_objs[ $group ]); |
|
| 465 | + } |
|
| 466 | + return $shortcodes; |
|
| 467 | + } |
|
| 468 | + |
|
| 469 | + |
|
| 470 | + /** |
|
| 471 | + * Validates a string against a list of accepted shortcodes |
|
| 472 | + * This function takes in an array of shortcodes |
|
| 473 | + * and makes sure that the given string ONLY contains shortcodes in that array. |
|
| 474 | + * |
|
| 475 | + * @param string $value string to evaluate |
|
| 476 | + * @param array $valid_shortcodes array of shortcodes that are acceptable. |
|
| 477 | + * @return bool|string return either a list of invalid shortcodes OR false if the shortcodes validate. |
|
| 478 | + * @deprecated 5.0.48 |
|
| 479 | + */ |
|
| 480 | + protected function _invalid_shortcodes(string $value, array $valid_shortcodes) |
|
| 481 | + { |
|
| 482 | + return $this->findInvalidShortcodes($value, $valid_shortcodes) ?: false; |
|
| 483 | + } |
|
| 484 | + |
|
| 485 | + |
|
| 486 | + /** |
|
| 487 | + * Validates a string against a list of accepted shortcodes |
|
| 488 | + * This function takes in an array of shortcodes |
|
| 489 | + * and makes sure that the given string ONLY contains shortcodes in that array. |
|
| 490 | + * |
|
| 491 | + * @param string $incoming_text string to evaluate |
|
| 492 | + * @param array $valid_shortcodes array of shortcodes that are acceptable. |
|
| 493 | + * @return string return either a list of invalid shortcodes OR false if the shortcodes validate. |
|
| 494 | + */ |
|
| 495 | + protected function findInvalidShortcodes(string $incoming_text, array $valid_shortcodes): string |
|
| 496 | + { |
|
| 497 | + // first we need to go through the string and get ALL the shortcodes in the string |
|
| 498 | + // matches the opening [ plus the shortcode name, but nothing else |
|
| 499 | + // examples: |
|
| 500 | + // [RECIPIENT_LNAME] matches as [RECIPIENT_LNAME |
|
| 501 | + // [RECEIPT_URL download=true] matches as [RECEIPT_URL |
|
| 502 | + // [PAYMENT_LINK_IF_NEEDED_* custom_text='pay me now man!'] matches as [PAYMENT_LINK_IF_NEEDED_* |
|
| 503 | + preg_match_all(EE_Shortcodes::REGEX_SHORTCODE_NAME_ONLY, $incoming_text, $matches); |
|
| 504 | + $shortcodes_in_text = $matches[0]; |
|
| 505 | + // now all we need to do is add the closing ] to each shortcode to make them "valid" |
|
| 506 | + $shortcodes_in_text = array_map('EE_Shortcodes::extractShortcode', $shortcodes_in_text); |
|
| 507 | + // get a diff of the shortcodes in the string vs the valid shortcodes |
|
| 508 | + $invalid_shortcodes = array_diff($shortcodes_in_text, $valid_shortcodes); |
|
| 509 | + if (empty($invalid_shortcodes)) { |
|
| 510 | + return ''; |
|
| 511 | + } |
|
| 512 | + // made it here? then let's assemble the error message |
|
| 513 | + return '<strong>' . implode('</strong>,<strong>', $invalid_shortcodes) . '</strong>'; |
|
| 514 | + } |
|
| 515 | + |
|
| 516 | + |
|
| 517 | + /** |
|
| 518 | + * Validates an incoming string and makes sure we have valid emails in the string. |
|
| 519 | + * |
|
| 520 | + * @param string $value incoming value to validate |
|
| 521 | + * @return bool true if the string validates, false if it doesn't |
|
| 522 | + */ |
|
| 523 | + protected function _validate_email(string $value): bool |
|
| 524 | + { |
|
| 525 | + $or_val = $value; |
|
| 526 | + |
|
| 527 | + // empty strings will validate because this is how a message template |
|
| 528 | + // for a particular context can be "turned off" (if there is no email then no message) |
|
| 529 | + if (empty($value)) { |
|
| 530 | + return true; |
|
| 531 | + } |
|
| 532 | + |
|
| 533 | + // first determine if there ARE any shortcodes. |
|
| 534 | + // If there are shortcodes and then later we find that there were no other valid emails |
|
| 535 | + // but the field isn't empty... |
|
| 536 | + // that means we've got extra commas that were left after stripping out shortcodes so probably still valid. |
|
| 537 | + $has_shortcodes = preg_match(EE_Shortcodes::REGEX_SHORTCODE_FULL, $value); |
|
| 538 | + |
|
| 539 | + // first we need to strip out all the shortcodes! |
|
| 540 | + $value = preg_replace(EE_Shortcodes::REGEX_SHORTCODE_FULL, '', $value); |
|
| 541 | + |
|
| 542 | + // if original value is not empty and new value is, then we've parsed out a shortcode |
|
| 543 | + // and we now have an empty string which DOES validate. |
|
| 544 | + // We also validate complete empty field for email because |
|
| 545 | + // it's possible that this message is being "turned off" for a particular context |
|
| 546 | + |
|
| 547 | + |
|
| 548 | + if (! empty($or_val) && empty($value)) { |
|
| 549 | + return true; |
|
| 550 | + } |
|
| 551 | + |
|
| 552 | + // trim any commas from beginning and end of string ( after whitespace trimmed ); |
|
| 553 | + $value = trim(trim($value), ','); |
|
| 554 | + |
|
| 555 | + // next we need to split up the string if it's comma-delimited. |
|
| 556 | + $emails = explode(',', $value); |
|
| 557 | + $empty = false; // used to indicate that there is an empty comma. |
|
| 558 | + // now let's loop through the emails and do our checks |
|
| 559 | + foreach ($emails as $email) { |
|
| 560 | + if (empty($email)) { |
|
| 561 | + $empty = true; |
|
| 562 | + continue; |
|
| 563 | + } |
|
| 564 | + |
|
| 565 | + // trim whitespace |
|
| 566 | + $email = trim($email); |
|
| 567 | + // either its of type "[email protected]", or its of type "fname lname <[email protected]>" |
|
| 568 | + if (is_email($email)) { |
|
| 569 | + continue; |
|
| 570 | + } |
|
| 571 | + $matches = []; |
|
| 572 | + $validate = (bool) preg_match('/(.*)<(.+)>/', $email, $matches); |
|
| 573 | + if ($validate && is_email($matches[2])) { |
|
| 574 | + continue; |
|
| 575 | + } |
|
| 576 | + return false; |
|
| 577 | + } |
|
| 578 | + |
|
| 579 | + return ! ($empty && ! $has_shortcodes); |
|
| 580 | + } |
|
| 581 | + |
|
| 582 | + |
|
| 583 | + /** |
|
| 584 | + * Magic getter |
|
| 585 | + * Using this to provide back compat with add-ons referencing deprecated properties. |
|
| 586 | + * |
|
| 587 | + * @param string $property Property being requested |
|
| 588 | + * @return mixed |
|
| 589 | + * @throws Exception |
|
| 590 | + */ |
|
| 591 | + public function __get($property) |
|
| 592 | + { |
|
| 593 | + $expected_properties_map = [ |
|
| 594 | + /** |
|
| 595 | + * @deprecated 4.9.0 |
|
| 596 | + */ |
|
| 597 | + '_MSGR' => '_messenger', |
|
| 598 | + /** |
|
| 599 | + * @deprecated 4.9.0 |
|
| 600 | + */ |
|
| 601 | + '_MSGTYP' => '_message_type', |
|
| 602 | + ]; |
|
| 603 | + |
|
| 604 | + if (isset($expected_properties_map[ $property ])) { |
|
| 605 | + return $this->{$expected_properties_map[ $property ]}; |
|
| 606 | + } |
|
| 607 | + |
|
| 608 | + throw new Exception( |
|
| 609 | + sprintf( |
|
| 610 | + esc_html__('The property %1$s being requested on %2$s does not exist', 'event_espresso'), |
|
| 611 | + $property, |
|
| 612 | + get_class($this) |
|
| 613 | + ) |
|
| 614 | + ); |
|
| 615 | + } |
|
| 616 | 616 | } |
@@ -138,9 +138,9 @@ discard block |
||
| 138 | 138 | // load messenger |
| 139 | 139 | $messenger = ucwords(str_replace('_', ' ', $this->_m_name)); |
| 140 | 140 | $messenger = str_replace(' ', '_', $messenger); |
| 141 | - $messenger = 'EE_' . $messenger . '_messenger'; |
|
| 141 | + $messenger = 'EE_'.$messenger.'_messenger'; |
|
| 142 | 142 | |
| 143 | - if (! class_exists($messenger)) { |
|
| 143 | + if ( ! class_exists($messenger)) { |
|
| 144 | 144 | throw new EE_Error( |
| 145 | 145 | sprintf( |
| 146 | 146 | esc_html__('There is no messenger class for the given string (%s)', 'event_espresso'), |
@@ -154,9 +154,9 @@ discard block |
||
| 154 | 154 | // load message type |
| 155 | 155 | $message_type = ucwords(str_replace('_', ' ', $this->_mt_name)); |
| 156 | 156 | $message_type = str_replace(' ', '_', $message_type); |
| 157 | - $message_type = 'EE_' . $message_type . '_message_type'; |
|
| 157 | + $message_type = 'EE_'.$message_type.'_message_type'; |
|
| 158 | 158 | |
| 159 | - if (! class_exists($message_type)) { |
|
| 159 | + if ( ! class_exists($message_type)) { |
|
| 160 | 160 | throw new EE_Error( |
| 161 | 161 | sprintf( |
| 162 | 162 | esc_html__('There is no message type class for the given string (%s)', 'event_espresso'), |
@@ -184,17 +184,17 @@ discard block |
||
| 184 | 184 | $msgr_validator = $this->_messenger->get_validator_config(); |
| 185 | 185 | // we only want the valid shortcodes for the given context! |
| 186 | 186 | $context = $this->_context; |
| 187 | - $mt_codes = $mt_codes[ $context ]; |
|
| 187 | + $mt_codes = $mt_codes[$context]; |
|
| 188 | 188 | // in this first loop we're just getting all shortcode group indexes from the msgr_validator |
| 189 | 189 | // into a single array (so we can get the appropriate shortcode objects for the groups) |
| 190 | 190 | $shortcode_groups = $mt_codes; |
| 191 | 191 | $groups_per_field = []; |
| 192 | 192 | |
| 193 | 193 | foreach ($msgr_validator as $field => $config) { |
| 194 | - if (! isset($config['shortcodes'])) { |
|
| 194 | + if ( ! isset($config['shortcodes'])) { |
|
| 195 | 195 | continue; |
| 196 | 196 | } //Nothing to see here. |
| 197 | - $groups_per_field[ $field ] = array_intersect($config['shortcodes'], $mt_codes); |
|
| 197 | + $groups_per_field[$field] = array_intersect($config['shortcodes'], $mt_codes); |
|
| 198 | 198 | $shortcode_groups = array_merge($config['shortcodes'], $shortcode_groups); |
| 199 | 199 | } |
| 200 | 200 | $shortcode_groups = array_unique($shortcode_groups); |
@@ -206,18 +206,18 @@ discard block |
||
| 206 | 206 | foreach ($shortcode_groups as $group) { |
| 207 | 207 | $ref = ucwords(str_replace('_', ' ', $group)); |
| 208 | 208 | $ref = str_replace(' ', '_', $ref); |
| 209 | - $classname = 'EE_' . $ref . '_Shortcodes'; |
|
| 209 | + $classname = 'EE_'.$ref.'_Shortcodes'; |
|
| 210 | 210 | if (class_exists($classname)) { |
| 211 | 211 | $a = new ReflectionClass($classname); |
| 212 | 212 | $obj = $a->newInstance(); |
| 213 | - $codes_from_objs[ $group ] = $obj->get_shortcodes(); |
|
| 213 | + $codes_from_objs[$group] = $obj->get_shortcodes(); |
|
| 214 | 214 | } |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | // let's just replace the $mt shortcode group indexes with the actual shortcodes (unique) |
| 218 | 218 | $final_mt_codes = []; |
| 219 | 219 | foreach ($mt_codes as $group) { |
| 220 | - $final_mt_codes = array_merge($final_mt_codes, $codes_from_objs[ $group ]); |
|
| 220 | + $final_mt_codes = array_merge($final_mt_codes, $codes_from_objs[$group]); |
|
| 221 | 221 | } |
| 222 | 222 | $mt_codes = $final_mt_codes; |
| 223 | 223 | |
@@ -232,45 +232,45 @@ discard block |
||
| 232 | 232 | continue; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | - if (isset($this->_valid_shortcodes_modifier[ $context ][ $field ])) { |
|
| 235 | + if (isset($this->_valid_shortcodes_modifier[$context][$field])) { |
|
| 236 | 236 | // If we have an override then we use it to indicate the codes we want. |
| 237 | - $this->_validators[ $field ]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 238 | - $this->_valid_shortcodes_modifier[ $context ][ $field ], |
|
| 237 | + $this->_validators[$field]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 238 | + $this->_valid_shortcodes_modifier[$context][$field], |
|
| 239 | 239 | $codes_from_objs |
| 240 | 240 | ); |
| 241 | - } elseif (isset($groups_per_field[ $field ])) { |
|
| 241 | + } elseif (isset($groups_per_field[$field])) { |
|
| 242 | 242 | // we have specific shortcodes for a field so we need to use them |
| 243 | - $this->_validators[ $field ]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 244 | - $groups_per_field[ $field ], |
|
| 243 | + $this->_validators[$field]['shortcodes'] = $this->reassembleValidShortcodesFromGroup( |
|
| 244 | + $groups_per_field[$field], |
|
| 245 | 245 | $codes_from_objs |
| 246 | 246 | ); |
| 247 | 247 | } elseif (empty($config)) { |
| 248 | 248 | // no config so we're assuming we're just going to use the shortcodes from the message type context |
| 249 | - $this->_validators[ $field ]['shortcodes'] = $mt_codes; |
|
| 249 | + $this->_validators[$field]['shortcodes'] = $mt_codes; |
|
| 250 | 250 | } elseif (isset($config['specific_shortcodes'])) { |
| 251 | 251 | // we have specific shortcodes so we need to use them |
| 252 | - $this->_validators[ $field ]['shortcodes'] = $config['specific_shortcodes']; |
|
| 252 | + $this->_validators[$field]['shortcodes'] = $config['specific_shortcodes']; |
|
| 253 | 253 | } else { |
| 254 | 254 | // otherwise the shortcodes are what is set by the messenger for that field |
| 255 | 255 | foreach ($config['shortcodes'] as $group) { |
| 256 | - $this->_validators[ $field ]['shortcodes'] = isset($this->_validators[ $field ]['shortcodes']) |
|
| 257 | - ? array_merge($this->_validators[ $field ]['shortcodes'], $codes_from_objs[ $group ]) |
|
| 258 | - : $codes_from_objs[ $group ]; |
|
| 256 | + $this->_validators[$field]['shortcodes'] = isset($this->_validators[$field]['shortcodes']) |
|
| 257 | + ? array_merge($this->_validators[$field]['shortcodes'], $codes_from_objs[$group]) |
|
| 258 | + : $codes_from_objs[$group]; |
|
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | // now let's just make sure that any excluded specific shortcodes are removed. |
| 263 | 263 | $specific_excludes = $this->get_specific_shortcode_excludes(); |
| 264 | - if (isset($specific_excludes[ $field ])) { |
|
| 265 | - foreach ($specific_excludes[ $field ] as $sex) { |
|
| 266 | - if (isset($this->_validators[ $field ]['shortcodes'][ $sex ])) { |
|
| 267 | - unset($this->_validators[ $field ]['shortcodes'][ $sex ]); |
|
| 264 | + if (isset($specific_excludes[$field])) { |
|
| 265 | + foreach ($specific_excludes[$field] as $sex) { |
|
| 266 | + if (isset($this->_validators[$field]['shortcodes'][$sex])) { |
|
| 267 | + unset($this->_validators[$field]['shortcodes'][$sex]); |
|
| 268 | 268 | } |
| 269 | 269 | } |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | // hey! don't forget to include the type if present! |
| 273 | - $this->_validators[ $field ]['type'] = $config['type'] ?? null; |
|
| 273 | + $this->_validators[$field]['type'] = $config['type'] ?? null; |
|
| 274 | 274 | } |
| 275 | 275 | } |
| 276 | 276 | |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | { |
| 298 | 298 | // specific validator filter |
| 299 | 299 | $shortcode_excludes = (array) apply_filters( |
| 300 | - 'FHEE__' . get_class($this) . '__get_specific_shortcode_excludes;', |
|
| 300 | + 'FHEE__'.get_class($this).'__get_specific_shortcode_excludes;', |
|
| 301 | 301 | $this->_specific_shortcode_excludes, |
| 302 | 302 | $this->_context |
| 303 | 303 | ); |
@@ -324,21 +324,21 @@ discard block |
||
| 324 | 324 | $template_fields = $this->_messenger->get_template_fields(); |
| 325 | 325 | // loop through the fields and check! |
| 326 | 326 | foreach ($this->_fields as $field => $value) { |
| 327 | - $this->_errors[ $field ] = []; |
|
| 327 | + $this->_errors[$field] = []; |
|
| 328 | 328 | $err_msg = ''; |
| 329 | 329 | $field_label = ''; |
| 330 | 330 | // if field is not present in the _validators array then we continue |
| 331 | - if (! isset($this->_validators[ $field ])) { |
|
| 332 | - unset($this->_errors[ $field ]); |
|
| 331 | + if ( ! isset($this->_validators[$field])) { |
|
| 332 | + unset($this->_errors[$field]); |
|
| 333 | 333 | continue; |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | 336 | // get the translated field label! |
| 337 | 337 | // first check if it's in the main fields list |
| 338 | - if (isset($template_fields[ $field ])) { |
|
| 338 | + if (isset($template_fields[$field])) { |
|
| 339 | 339 | // most likely the field is found in the 'extra' array. |
| 340 | - $field_label = ! empty($template_fields[ $field ]) |
|
| 341 | - ? $template_fields[ $field ]['label'] |
|
| 340 | + $field_label = ! empty($template_fields[$field]) |
|
| 341 | + ? $template_fields[$field]['label'] |
|
| 342 | 342 | : $field; |
| 343 | 343 | } |
| 344 | 344 | |
@@ -362,21 +362,21 @@ discard block |
||
| 362 | 362 | |
| 363 | 363 | // field is present. Let's validate shortcodes first (but only if shortcodes present). |
| 364 | 364 | if ( |
| 365 | - isset($this->_validators[ $field ]['shortcodes']) |
|
| 366 | - && ! empty($this->_validators[ $field ]['shortcodes']) |
|
| 365 | + isset($this->_validators[$field]['shortcodes']) |
|
| 366 | + && ! empty($this->_validators[$field]['shortcodes']) |
|
| 367 | 367 | ) { |
| 368 | - $valid_shortcodes = array_keys((array) $this->_validators[ $field ]['shortcodes']); |
|
| 368 | + $valid_shortcodes = array_keys((array) $this->_validators[$field]['shortcodes']); |
|
| 369 | 369 | $invalid_shortcodes = $this->findInvalidShortcodes((string) $value, $valid_shortcodes); |
| 370 | 370 | // if true then that means there is a returned error message |
| 371 | 371 | // that we'll need to add to the _errors array for this field. |
| 372 | 372 | if ($invalid_shortcodes) { |
| 373 | - $v_s = array_keys($this->_validators[ $field ]['shortcodes']); |
|
| 373 | + $v_s = array_keys($this->_validators[$field]['shortcodes']); |
|
| 374 | 374 | $err_msg = sprintf( |
| 375 | 375 | esc_html__( |
| 376 | 376 | '%3$sThe following shortcodes were found in the "%1$s" field that ARE not valid: %2$s%4$s', |
| 377 | 377 | 'event_espresso' |
| 378 | 378 | ), |
| 379 | - '<strong>' . $field_label . '</strong>', |
|
| 379 | + '<strong>'.$field_label.'</strong>', |
|
| 380 | 380 | $invalid_shortcodes, |
| 381 | 381 | '<p>', |
| 382 | 382 | '</p >' |
@@ -391,10 +391,10 @@ discard block |
||
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | // if there's a "type" to be validated then let's do that too. |
| 394 | - if (isset($this->_validators[ $field ]['type']) && ! empty($this->_validators[ $field ]['type'])) { |
|
| 395 | - switch ($this->_validators[ $field ]['type']) { |
|
| 394 | + if (isset($this->_validators[$field]['type']) && ! empty($this->_validators[$field]['type'])) { |
|
| 395 | + switch ($this->_validators[$field]['type']) { |
|
| 396 | 396 | case 'number': |
| 397 | - if (! is_numeric($value)) { |
|
| 397 | + if ( ! is_numeric($value)) { |
|
| 398 | 398 | $err_msg .= sprintf( |
| 399 | 399 | esc_html__( |
| 400 | 400 | '%3$sThe %1$s field is supposed to be a number. The value given (%2$s) is not. Please double-check and make sure the field contains a number%4$s', |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | break; |
| 410 | 410 | case 'email': |
| 411 | 411 | $valid_email = $this->_validate_email((string) $value); |
| 412 | - if (! $valid_email) { |
|
| 412 | + if ( ! $valid_email) { |
|
| 413 | 413 | $err_msg .= htmlentities( |
| 414 | 414 | sprintf( |
| 415 | 415 | esc_html__( |
@@ -427,18 +427,18 @@ discard block |
||
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | // if $err_msg isn't empty, let's set up the _errors array for this field. |
| 430 | - if (! empty($err_msg)) { |
|
| 431 | - $this->_errors[ $field ]['msg'] = $err_msg; |
|
| 430 | + if ( ! empty($err_msg)) { |
|
| 431 | + $this->_errors[$field]['msg'] = $err_msg; |
|
| 432 | 432 | } else { |
| 433 | - unset($this->_errors[ $field ]); |
|
| 433 | + unset($this->_errors[$field]); |
|
| 434 | 434 | } |
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | // if we have ANY errors, then we want to make sure we return the values |
| 438 | 438 | // for ALL the fields so the user doesn't have to retype them all. |
| 439 | - if (! empty($this->_errors)) { |
|
| 439 | + if ( ! empty($this->_errors)) { |
|
| 440 | 440 | foreach ($this->_fields as $field => $value) { |
| 441 | - $this->_errors[ $field ]['value'] = stripslashes($value); |
|
| 441 | + $this->_errors[$field]['value'] = stripslashes($value); |
|
| 442 | 442 | } |
| 443 | 443 | } |
| 444 | 444 | |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | { |
| 462 | 462 | $shortcodes = []; |
| 463 | 463 | foreach ($groups as $group) { |
| 464 | - $shortcodes = array_merge($shortcodes, $codes_from_objs[ $group ]); |
|
| 464 | + $shortcodes = array_merge($shortcodes, $codes_from_objs[$group]); |
|
| 465 | 465 | } |
| 466 | 466 | return $shortcodes; |
| 467 | 467 | } |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | return ''; |
| 511 | 511 | } |
| 512 | 512 | // made it here? then let's assemble the error message |
| 513 | - return '<strong>' . implode('</strong>,<strong>', $invalid_shortcodes) . '</strong>'; |
|
| 513 | + return '<strong>'.implode('</strong>,<strong>', $invalid_shortcodes).'</strong>'; |
|
| 514 | 514 | } |
| 515 | 515 | |
| 516 | 516 | |
@@ -545,7 +545,7 @@ discard block |
||
| 545 | 545 | // it's possible that this message is being "turned off" for a particular context |
| 546 | 546 | |
| 547 | 547 | |
| 548 | - if (! empty($or_val) && empty($value)) { |
|
| 548 | + if ( ! empty($or_val) && empty($value)) { |
|
| 549 | 549 | return true; |
| 550 | 550 | } |
| 551 | 551 | |
@@ -601,8 +601,8 @@ discard block |
||
| 601 | 601 | '_MSGTYP' => '_message_type', |
| 602 | 602 | ]; |
| 603 | 603 | |
| 604 | - if (isset($expected_properties_map[ $property ])) { |
|
| 605 | - return $this->{$expected_properties_map[ $property ]}; |
|
| 604 | + if (isset($expected_properties_map[$property])) { |
|
| 605 | + return $this->{$expected_properties_map[$property]}; |
|
| 606 | 606 | } |
| 607 | 607 | |
| 608 | 608 | throw new Exception( |
@@ -2,140 +2,140 @@ discard block |
||
| 2 | 2 | /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ |
| 3 | 3 | $generated_i18n_strings = array( |
| 4 | 4 | // Reference: packages/ui-components/src/Pagination/constants.ts:6 |
| 5 | - __( '2', 'event_espresso' ), |
|
| 5 | + __('2', 'event_espresso'), |
|
| 6 | 6 | |
| 7 | 7 | // Reference: packages/ui-components/src/Pagination/constants.ts:7 |
| 8 | - __( '6', 'event_espresso' ), |
|
| 8 | + __('6', 'event_espresso'), |
|
| 9 | 9 | |
| 10 | 10 | // Reference: packages/ui-components/src/Pagination/constants.ts:8 |
| 11 | - __( '12', 'event_espresso' ), |
|
| 11 | + __('12', 'event_espresso'), |
|
| 12 | 12 | |
| 13 | 13 | // Reference: packages/ui-components/src/Pagination/constants.ts:9 |
| 14 | - __( '24', 'event_espresso' ), |
|
| 14 | + __('24', 'event_espresso'), |
|
| 15 | 15 | |
| 16 | 16 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
| 17 | - __( '48', 'event_espresso' ), |
|
| 17 | + __('48', 'event_espresso'), |
|
| 18 | 18 | |
| 19 | 19 | // Reference: packages/ui-components/src/Pagination/constants.ts:11 |
| 20 | - __( '96', 'event_espresso' ), |
|
| 20 | + __('96', 'event_espresso'), |
|
| 21 | 21 | |
| 22 | 22 | // Reference: domains/core/admin/blocks/src/components/AvatarImage.tsx:27 |
| 23 | - __( 'contact avatar', 'event_espresso' ), |
|
| 23 | + __('contact avatar', 'event_espresso'), |
|
| 24 | 24 | |
| 25 | 25 | // Reference: domains/core/admin/blocks/src/components/OrderByControl.tsx:12 |
| 26 | - __( 'Order by', 'event_espresso' ), |
|
| 26 | + __('Order by', 'event_espresso'), |
|
| 27 | 27 | |
| 28 | 28 | // Reference: domains/core/admin/blocks/src/components/RegStatusControl.tsx:17 |
| 29 | 29 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectStatus.tsx:13 |
| 30 | - __( 'Select Registration Status', 'event_espresso' ), |
|
| 30 | + __('Select Registration Status', 'event_espresso'), |
|
| 31 | 31 | |
| 32 | 32 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:14 |
| 33 | - __( 'Ascending', 'event_espresso' ), |
|
| 33 | + __('Ascending', 'event_espresso'), |
|
| 34 | 34 | |
| 35 | 35 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:18 |
| 36 | - __( 'Descending', 'event_espresso' ), |
|
| 36 | + __('Descending', 'event_espresso'), |
|
| 37 | 37 | |
| 38 | 38 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:24 |
| 39 | - __( 'Sort order:', 'event_espresso' ), |
|
| 39 | + __('Sort order:', 'event_espresso'), |
|
| 40 | 40 | |
| 41 | 41 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:41 |
| 42 | - __( 'There was some error fetching attendees list', 'event_espresso' ), |
|
| 42 | + __('There was some error fetching attendees list', 'event_espresso'), |
|
| 43 | 43 | |
| 44 | 44 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:47 |
| 45 | - __( 'To get started, select what event you want to show attendees from in the block settings.', 'event_espresso' ), |
|
| 45 | + __('To get started, select what event you want to show attendees from in the block settings.', 'event_espresso'), |
|
| 46 | 46 | |
| 47 | 47 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:53 |
| 48 | - __( 'There are no attendees for selected options.', 'event_espresso' ), |
|
| 48 | + __('There are no attendees for selected options.', 'event_espresso'), |
|
| 49 | 49 | |
| 50 | 50 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:12 |
| 51 | - __( 'Display on Archives', 'event_espresso' ), |
|
| 51 | + __('Display on Archives', 'event_espresso'), |
|
| 52 | 52 | |
| 53 | 53 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:17 |
| 54 | - __( 'Attendees are shown whenever this post is listed in an archive view.', 'event_espresso' ), |
|
| 54 | + __('Attendees are shown whenever this post is listed in an archive view.', 'event_espresso'), |
|
| 55 | 55 | |
| 56 | 56 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:18 |
| 57 | - __( 'Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso' ), |
|
| 57 | + __('Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso'), |
|
| 58 | 58 | |
| 59 | 59 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:29 |
| 60 | - __( 'Number of Attendees to Display:', 'event_espresso' ), |
|
| 60 | + __('Number of Attendees to Display:', 'event_espresso'), |
|
| 61 | 61 | |
| 62 | 62 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:34 |
| 63 | 63 | /* translators: %d attendees count */ |
| 64 | - _n_noop( 'Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso' ), |
|
| 64 | + _n_noop('Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso'), |
|
| 65 | 65 | |
| 66 | 66 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:27 |
| 67 | - __( 'Display Gravatar', 'event_espresso' ), |
|
| 67 | + __('Display Gravatar', 'event_espresso'), |
|
| 68 | 68 | |
| 69 | 69 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:32 |
| 70 | - __( 'Gravatar images are shown for each attendee.', 'event_espresso' ), |
|
| 70 | + __('Gravatar images are shown for each attendee.', 'event_espresso'), |
|
| 71 | 71 | |
| 72 | 72 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:33 |
| 73 | - __( 'No gravatar images are shown for each attendee.', 'event_espresso' ), |
|
| 73 | + __('No gravatar images are shown for each attendee.', 'event_espresso'), |
|
| 74 | 74 | |
| 75 | 75 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:38 |
| 76 | - __( 'Size of Gravatar', 'event_espresso' ), |
|
| 76 | + __('Size of Gravatar', 'event_espresso'), |
|
| 77 | 77 | |
| 78 | 78 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectDatetime.tsx:22 |
| 79 | - __( 'Select Datetime', 'event_espresso' ), |
|
| 79 | + __('Select Datetime', 'event_espresso'), |
|
| 80 | 80 | |
| 81 | 81 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectEvent.tsx:22 |
| 82 | 82 | // Reference: domains/core/admin/blocks/src/event/controls/SelectEvent.tsx:22 |
| 83 | - __( 'Select Event', 'event_espresso' ), |
|
| 83 | + __('Select Event', 'event_espresso'), |
|
| 84 | 84 | |
| 85 | 85 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:11 |
| 86 | - __( 'Attendee id', 'event_espresso' ), |
|
| 86 | + __('Attendee id', 'event_espresso'), |
|
| 87 | 87 | |
| 88 | 88 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:15 |
| 89 | - __( 'Last name only', 'event_espresso' ), |
|
| 89 | + __('Last name only', 'event_espresso'), |
|
| 90 | 90 | |
| 91 | 91 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:19 |
| 92 | - __( 'First name only', 'event_espresso' ), |
|
| 92 | + __('First name only', 'event_espresso'), |
|
| 93 | 93 | |
| 94 | 94 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:23 |
| 95 | - __( 'First, then Last name', 'event_espresso' ), |
|
| 95 | + __('First, then Last name', 'event_espresso'), |
|
| 96 | 96 | |
| 97 | 97 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:27 |
| 98 | - __( 'Last, then First name', 'event_espresso' ), |
|
| 98 | + __('Last, then First name', 'event_espresso'), |
|
| 99 | 99 | |
| 100 | 100 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:41 |
| 101 | - __( 'Order Attendees by:', 'event_espresso' ), |
|
| 101 | + __('Order Attendees by:', 'event_espresso'), |
|
| 102 | 102 | |
| 103 | 103 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectTicket.tsx:22 |
| 104 | - __( 'Select Ticket', 'event_espresso' ), |
|
| 104 | + __('Select Ticket', 'event_espresso'), |
|
| 105 | 105 | |
| 106 | 106 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:21 |
| 107 | - __( 'Filter By Settings', 'event_espresso' ), |
|
| 107 | + __('Filter By Settings', 'event_espresso'), |
|
| 108 | 108 | |
| 109 | 109 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:36 |
| 110 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
| 110 | + __('Gravatar Setttings', 'event_espresso'), |
|
| 111 | 111 | |
| 112 | 112 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:39 |
| 113 | - __( 'Archive Settings', 'event_espresso' ), |
|
| 113 | + __('Archive Settings', 'event_espresso'), |
|
| 114 | 114 | |
| 115 | 115 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:10 |
| 116 | - __( 'Event Attendees', 'event_espresso' ), |
|
| 116 | + __('Event Attendees', 'event_espresso'), |
|
| 117 | 117 | |
| 118 | 118 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:11 |
| 119 | - __( 'Displays a list of people that have registered for the specified event', 'event_espresso' ), |
|
| 119 | + __('Displays a list of people that have registered for the specified event', 'event_espresso'), |
|
| 120 | 120 | |
| 121 | 121 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
| 122 | 122 | // Reference: domains/core/admin/blocks/src/event/index.tsx:12 |
| 123 | 123 | // Reference: packages/edtr-services/src/constants.ts:25 |
| 124 | - __( 'event', 'event_espresso' ), |
|
| 124 | + __('event', 'event_espresso'), |
|
| 125 | 125 | |
| 126 | 126 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
| 127 | - __( 'attendees', 'event_espresso' ), |
|
| 127 | + __('attendees', 'event_espresso'), |
|
| 128 | 128 | |
| 129 | 129 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
| 130 | - __( 'list', 'event_espresso' ), |
|
| 130 | + __('list', 'event_espresso'), |
|
| 131 | 131 | |
| 132 | 132 | // Reference: domains/core/admin/blocks/src/event/DisplayField.tsx:41 |
| 133 | - __( 'An unknown error occurred while fetching event details.', 'event_espresso' ), |
|
| 133 | + __('An unknown error occurred while fetching event details.', 'event_espresso'), |
|
| 134 | 134 | |
| 135 | 135 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:10 |
| 136 | 136 | // Reference: domains/core/admin/blocks/src/services/utils.ts:24 |
| 137 | 137 | // Reference: packages/utils/src/list/index.ts:13 |
| 138 | - __( 'Select…', 'event_espresso' ), |
|
| 138 | + __('Select…', 'event_espresso'), |
|
| 139 | 139 | |
| 140 | 140 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:15 |
| 141 | 141 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:75 |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:189 |
| 145 | 145 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:48 |
| 146 | 146 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:42 |
| 147 | - __( 'Name', 'event_espresso' ), |
|
| 147 | + __('Name', 'event_espresso'), |
|
| 148 | 148 | |
| 149 | 149 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:19 |
| 150 | 150 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:80 |
@@ -152,411 +152,411 @@ discard block |
||
| 152 | 152 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:194 |
| 153 | 153 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:54 |
| 154 | 154 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
| 155 | - __( 'Description', 'event_espresso' ), |
|
| 155 | + __('Description', 'event_espresso'), |
|
| 156 | 156 | |
| 157 | 157 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:23 |
| 158 | - __( 'Short description', 'event_espresso' ), |
|
| 158 | + __('Short description', 'event_espresso'), |
|
| 159 | 159 | |
| 160 | 160 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:35 |
| 161 | - __( 'Select Field', 'event_espresso' ), |
|
| 161 | + __('Select Field', 'event_espresso'), |
|
| 162 | 162 | |
| 163 | 163 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:27 |
| 164 | - __( 'Text Color', 'event_espresso' ), |
|
| 164 | + __('Text Color', 'event_espresso'), |
|
| 165 | 165 | |
| 166 | 166 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:32 |
| 167 | - __( 'Background Color', 'event_espresso' ), |
|
| 167 | + __('Background Color', 'event_espresso'), |
|
| 168 | 168 | |
| 169 | 169 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:41 |
| 170 | 170 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:23 |
| 171 | 171 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:22 |
| 172 | - __( 'Settings', 'event_espresso' ), |
|
| 172 | + __('Settings', 'event_espresso'), |
|
| 173 | 173 | |
| 174 | 174 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:45 |
| 175 | - __( 'Typography', 'event_espresso' ), |
|
| 175 | + __('Typography', 'event_espresso'), |
|
| 176 | 176 | |
| 177 | 177 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:48 |
| 178 | - __( 'Color', 'event_espresso' ), |
|
| 178 | + __('Color', 'event_espresso'), |
|
| 179 | 179 | |
| 180 | 180 | // Reference: domains/core/admin/blocks/src/event/index.tsx:12 |
| 181 | - __( 'field', 'event_espresso' ), |
|
| 181 | + __('field', 'event_espresso'), |
|
| 182 | 182 | |
| 183 | 183 | // Reference: domains/core/admin/blocks/src/event/index.tsx:8 |
| 184 | - __( 'Event Field', 'event_espresso' ), |
|
| 184 | + __('Event Field', 'event_espresso'), |
|
| 185 | 185 | |
| 186 | 186 | // Reference: domains/core/admin/blocks/src/event/index.tsx:9 |
| 187 | - __( 'Displays the selected field of an event', 'event_espresso' ), |
|
| 187 | + __('Displays the selected field of an event', 'event_espresso'), |
|
| 188 | 188 | |
| 189 | 189 | // Reference: domains/core/admin/blocks/src/services/utils.ts:17 |
| 190 | - __( 'Error', 'event_espresso' ), |
|
| 190 | + __('Error', 'event_espresso'), |
|
| 191 | 191 | |
| 192 | 192 | // Reference: domains/core/admin/blocks/src/services/utils.ts:9 |
| 193 | - __( 'Loading…', 'event_espresso' ), |
|
| 193 | + __('Loading…', 'event_espresso'), |
|
| 194 | 194 | |
| 195 | 195 | // Reference: domains/core/admin/eventEditor/src/ui/EventDescription.tsx:33 |
| 196 | - __( 'Event Description', 'event_espresso' ), |
|
| 196 | + __('Event Description', 'event_espresso'), |
|
| 197 | 197 | |
| 198 | 198 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:28 |
| 199 | - __( 'Active status', 'event_espresso' ), |
|
| 199 | + __('Active status', 'event_espresso'), |
|
| 200 | 200 | |
| 201 | 201 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:12 |
| 202 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
| 202 | + __('Alternative Registration Page', 'event_espresso'), |
|
| 203 | 203 | |
| 204 | 204 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:25 |
| 205 | - __( 'Default Registration Status', 'event_espresso' ), |
|
| 205 | + __('Default Registration Status', 'event_espresso'), |
|
| 206 | 206 | |
| 207 | 207 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:8 |
| 208 | - __( 'Donations Enabled', 'event_espresso' ), |
|
| 208 | + __('Donations Enabled', 'event_espresso'), |
|
| 209 | 209 | |
| 210 | 210 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:8 |
| 211 | - __( 'Donations Disabled', 'event_espresso' ), |
|
| 211 | + __('Donations Disabled', 'event_espresso'), |
|
| 212 | 212 | |
| 213 | 213 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:16 |
| 214 | - __( 'Event Manager', 'event_espresso' ), |
|
| 214 | + __('Event Manager', 'event_espresso'), |
|
| 215 | 215 | |
| 216 | 216 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:15 |
| 217 | - __( 'Event Phone Number', 'event_espresso' ), |
|
| 217 | + __('Event Phone Number', 'event_espresso'), |
|
| 218 | 218 | |
| 219 | 219 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:13 |
| 220 | - __( 'Max Registrations per Transaction', 'event_espresso' ), |
|
| 220 | + __('Max Registrations per Transaction', 'event_espresso'), |
|
| 221 | 221 | |
| 222 | 222 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:8 |
| 223 | - __( 'Ticket Selector Enabled', 'event_espresso' ), |
|
| 223 | + __('Ticket Selector Enabled', 'event_espresso'), |
|
| 224 | 224 | |
| 225 | 225 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:8 |
| 226 | - __( 'Ticket Selector Disabled', 'event_espresso' ), |
|
| 226 | + __('Ticket Selector Disabled', 'event_espresso'), |
|
| 227 | 227 | |
| 228 | 228 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:41 |
| 229 | - __( 'Event Details', 'event_espresso' ), |
|
| 229 | + __('Event Details', 'event_espresso'), |
|
| 230 | 230 | |
| 231 | 231 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:47 |
| 232 | - __( 'Registration Options', 'event_espresso' ), |
|
| 232 | + __('Registration Options', 'event_espresso'), |
|
| 233 | 233 | |
| 234 | 234 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
| 235 | - __( 'primary information about the date', 'event_espresso' ), |
|
| 235 | + __('primary information about the date', 'event_espresso'), |
|
| 236 | 236 | |
| 237 | 237 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
| 238 | - __( 'Date Details', 'event_espresso' ), |
|
| 238 | + __('Date Details', 'event_espresso'), |
|
| 239 | 239 | |
| 240 | 240 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
| 241 | 241 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
| 242 | 242 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
| 243 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
| 243 | + __('relations between tickets and dates', 'event_espresso'), |
|
| 244 | 244 | |
| 245 | 245 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
| 246 | - __( 'Assign Tickets', 'event_espresso' ), |
|
| 246 | + __('Assign Tickets', 'event_espresso'), |
|
| 247 | 247 | |
| 248 | 248 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/FooterButtons.tsx:22 |
| 249 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
| 249 | + __('Save and assign tickets', 'event_espresso'), |
|
| 250 | 250 | |
| 251 | 251 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:30 |
| 252 | 252 | /* translators: %d database id */ |
| 253 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
| 253 | + __('Edit datetime %s', 'event_espresso'), |
|
| 254 | 254 | |
| 255 | 255 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:33 |
| 256 | - __( 'New Datetime', 'event_espresso' ), |
|
| 256 | + __('New Datetime', 'event_espresso'), |
|
| 257 | 257 | |
| 258 | 258 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:43 |
| 259 | - __( 'modal for datetime', 'event_espresso' ), |
|
| 259 | + __('modal for datetime', 'event_espresso'), |
|
| 260 | 260 | |
| 261 | 261 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:110 |
| 262 | 262 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:107 |
| 263 | 263 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:224 |
| 264 | 264 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:106 |
| 265 | - __( 'Details', 'event_espresso' ), |
|
| 265 | + __('Details', 'event_espresso'), |
|
| 266 | 266 | |
| 267 | 267 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:114 |
| 268 | 268 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:111 |
| 269 | 269 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:83 |
| 270 | - __( 'Capacity', 'event_espresso' ), |
|
| 270 | + __('Capacity', 'event_espresso'), |
|
| 271 | 271 | |
| 272 | 272 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:119 |
| 273 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
| 273 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
| 274 | 274 | |
| 275 | 275 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:123 |
| 276 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
| 276 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
| 277 | 277 | |
| 278 | 278 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:129 |
| 279 | 279 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:164 |
| 280 | - __( 'Trash', 'event_espresso' ), |
|
| 280 | + __('Trash', 'event_espresso'), |
|
| 281 | 281 | |
| 282 | 282 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:71 |
| 283 | 283 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:44 |
| 284 | 284 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:185 |
| 285 | 285 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:44 |
| 286 | - __( 'Basics', 'event_espresso' ), |
|
| 286 | + __('Basics', 'event_espresso'), |
|
| 287 | 287 | |
| 288 | 288 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:88 |
| 289 | 289 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:62 |
| 290 | 290 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:62 |
| 291 | - __( 'Dates', 'event_espresso' ), |
|
| 291 | + __('Dates', 'event_espresso'), |
|
| 292 | 292 | |
| 293 | 293 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
| 294 | 294 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:53 |
| 295 | 295 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:206 |
| 296 | - __( 'Start Date', 'event_espresso' ), |
|
| 296 | + __('Start Date', 'event_espresso'), |
|
| 297 | 297 | |
| 298 | 298 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:99 |
| 299 | 299 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:67 |
| 300 | 300 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:213 |
| 301 | - __( 'End Date', 'event_espresso' ), |
|
| 301 | + __('End Date', 'event_espresso'), |
|
| 302 | 302 | |
| 303 | 303 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DateRegistrationsLink.tsx:25 |
| 304 | 304 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketRegistrationsLink.tsx:13 |
| 305 | - __( 'total registrations.', 'event_espresso' ), |
|
| 305 | + __('total registrations.', 'event_espresso'), |
|
| 306 | 306 | |
| 307 | 307 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DateRegistrationsLink.tsx:26 |
| 308 | - __( 'view ALL registrations for this date.', 'event_espresso' ), |
|
| 308 | + __('view ALL registrations for this date.', 'event_espresso'), |
|
| 309 | 309 | |
| 310 | 310 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DateSoldLink.tsx:13 |
| 311 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
| 311 | + __('view approved registrations for this date.', 'event_espresso'), |
|
| 312 | 312 | |
| 313 | 313 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:35 |
| 314 | 314 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:33 |
| 315 | - __( 'Event Dates', 'event_espresso' ), |
|
| 315 | + __('Event Dates', 'event_espresso'), |
|
| 316 | 316 | |
| 317 | 317 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:38 |
| 318 | - __( 'loading event dates…', 'event_espresso' ), |
|
| 318 | + __('loading event dates…', 'event_espresso'), |
|
| 319 | 319 | |
| 320 | 320 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:20 |
| 321 | - __( 'Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso' ), |
|
| 321 | + __('Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso'), |
|
| 322 | 322 | |
| 323 | 323 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:30 |
| 324 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
| 324 | + __('Ticket Assignments', 'event_espresso'), |
|
| 325 | 325 | |
| 326 | 326 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:25 |
| 327 | - __( 'Number of related tickets', 'event_espresso' ), |
|
| 327 | + __('Number of related tickets', 'event_espresso'), |
|
| 328 | 328 | |
| 329 | 329 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:26 |
| 330 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
| 330 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
| 331 | 331 | |
| 332 | 332 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:34 |
| 333 | - __( 'assign tickets', 'event_espresso' ), |
|
| 333 | + __('assign tickets', 'event_espresso'), |
|
| 334 | 334 | |
| 335 | 335 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:21 |
| 336 | - __( 'event datetime main menu', 'event_espresso' ), |
|
| 336 | + __('event datetime main menu', 'event_espresso'), |
|
| 337 | 337 | |
| 338 | 338 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:33 |
| 339 | - __( 'edit datetime', 'event_espresso' ), |
|
| 339 | + __('edit datetime', 'event_espresso'), |
|
| 340 | 340 | |
| 341 | 341 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:34 |
| 342 | - __( 'copy datetime', 'event_espresso' ), |
|
| 342 | + __('copy datetime', 'event_espresso'), |
|
| 343 | 343 | |
| 344 | 344 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:15 |
| 345 | 345 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:48 |
| 346 | - __( 'delete permanently', 'event_espresso' ), |
|
| 346 | + __('delete permanently', 'event_espresso'), |
|
| 347 | 347 | |
| 348 | 348 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:15 |
| 349 | - __( 'trash datetime', 'event_espresso' ), |
|
| 349 | + __('trash datetime', 'event_espresso'), |
|
| 350 | 350 | |
| 351 | 351 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:18 |
| 352 | - __( 'Permanently Delete Datetime?', 'event_espresso' ), |
|
| 352 | + __('Permanently Delete Datetime?', 'event_espresso'), |
|
| 353 | 353 | |
| 354 | 354 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:18 |
| 355 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
| 355 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
| 356 | 356 | |
| 357 | 357 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:20 |
| 358 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
| 358 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
| 359 | 359 | |
| 360 | 360 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:23 |
| 361 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
| 361 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
| 362 | 362 | |
| 363 | 363 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:33 |
| 364 | - __( 'delete', 'event_espresso' ), |
|
| 364 | + __('delete', 'event_espresso'), |
|
| 365 | 365 | |
| 366 | 366 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:34 |
| 367 | 367 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:39 |
| 368 | 368 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:43 |
| 369 | - __( 'bulk actions', 'event_espresso' ), |
|
| 369 | + __('bulk actions', 'event_espresso'), |
|
| 370 | 370 | |
| 371 | 371 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:38 |
| 372 | - __( 'edit datetime details', 'event_espresso' ), |
|
| 372 | + __('edit datetime details', 'event_espresso'), |
|
| 373 | 373 | |
| 374 | 374 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:42 |
| 375 | - __( 'delete datetimes', 'event_espresso' ), |
|
| 375 | + __('delete datetimes', 'event_espresso'), |
|
| 376 | 376 | |
| 377 | 377 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:42 |
| 378 | - __( 'trash datetimes', 'event_espresso' ), |
|
| 378 | + __('trash datetimes', 'event_espresso'), |
|
| 379 | 379 | |
| 380 | 380 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
| 381 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
| 381 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
| 382 | 382 | |
| 383 | 383 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
| 384 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
| 384 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
| 385 | 385 | |
| 386 | 386 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
| 387 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
| 387 | + __('Delete datetimes permanently', 'event_espresso'), |
|
| 388 | 388 | |
| 389 | 389 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
| 390 | - __( 'Trash datetimes', 'event_espresso' ), |
|
| 390 | + __('Trash datetimes', 'event_espresso'), |
|
| 391 | 391 | |
| 392 | 392 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:21 |
| 393 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
| 393 | + __('Bulk edit date details', 'event_espresso'), |
|
| 394 | 394 | |
| 395 | 395 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
| 396 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
| 396 | + __('any changes will be applied to ALL of the selected dates.', 'event_espresso'), |
|
| 397 | 397 | |
| 398 | 398 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
| 399 | 399 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
| 400 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
| 400 | + __('Name must be at least three characters', 'event_espresso'), |
|
| 401 | 401 | |
| 402 | 402 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:66 |
| 403 | 403 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:66 |
| 404 | - __( 'Shift dates', 'event_espresso' ), |
|
| 404 | + __('Shift dates', 'event_espresso'), |
|
| 405 | 405 | |
| 406 | 406 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:91 |
| 407 | 407 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:90 |
| 408 | - __( 'earlier', 'event_espresso' ), |
|
| 408 | + __('earlier', 'event_espresso'), |
|
| 409 | 409 | |
| 410 | 410 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:95 |
| 411 | 411 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:94 |
| 412 | - __( 'later', 'event_espresso' ), |
|
| 412 | + __('later', 'event_espresso'), |
|
| 413 | 413 | |
| 414 | 414 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:31 |
| 415 | 415 | /* translators: click to edit capacity<linebreak>(registration limit)… */ |
| 416 | - __( 'click to edit capacity%s(registration limit)…', 'event_espresso' ), |
|
| 416 | + __('click to edit capacity%s(registration limit)…', 'event_espresso'), |
|
| 417 | 417 | |
| 418 | 418 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:31 |
| 419 | 419 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:27 |
| 420 | 420 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:34 |
| 421 | - __( 'starts', 'event_espresso' ), |
|
| 421 | + __('starts', 'event_espresso'), |
|
| 422 | 422 | |
| 423 | 423 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
| 424 | 424 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:34 |
| 425 | 425 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:47 |
| 426 | - __( 'ends', 'event_espresso' ), |
|
| 426 | + __('ends', 'event_espresso'), |
|
| 427 | 427 | |
| 428 | 428 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
| 429 | - __( 'started', 'event_espresso' ), |
|
| 429 | + __('started', 'event_espresso'), |
|
| 430 | 430 | |
| 431 | 431 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
| 432 | - __( 'ended', 'event_espresso' ), |
|
| 432 | + __('ended', 'event_espresso'), |
|
| 433 | 433 | |
| 434 | 434 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:46 |
| 435 | - __( 'Edit Event Date', 'event_espresso' ), |
|
| 435 | + __('Edit Event Date', 'event_espresso'), |
|
| 436 | 436 | |
| 437 | 437 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:50 |
| 438 | - __( 'edit start and end dates', 'event_espresso' ), |
|
| 438 | + __('edit start and end dates', 'event_espresso'), |
|
| 439 | 439 | |
| 440 | 440 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:16 |
| 441 | 441 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:16 |
| 442 | - __( 'sold', 'event_espresso' ), |
|
| 442 | + __('sold', 'event_espresso'), |
|
| 443 | 443 | |
| 444 | 444 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:21 |
| 445 | - __( 'capacity', 'event_espresso' ), |
|
| 445 | + __('capacity', 'event_espresso'), |
|
| 446 | 446 | |
| 447 | 447 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:27 |
| 448 | 448 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:26 |
| 449 | - __( 'reg list', 'event_espresso' ), |
|
| 449 | + __('reg list', 'event_espresso'), |
|
| 450 | 450 | |
| 451 | 451 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:44 |
| 452 | 452 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:38 |
| 453 | - __( 'add description…', 'event_espresso' ), |
|
| 453 | + __('add description…', 'event_espresso'), |
|
| 454 | 454 | |
| 455 | 455 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:45 |
| 456 | 456 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:36 |
| 457 | - __( 'Edit description', 'event_espresso' ), |
|
| 457 | + __('Edit description', 'event_espresso'), |
|
| 458 | 458 | |
| 459 | 459 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:46 |
| 460 | 460 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:37 |
| 461 | - __( 'click to edit description…', 'event_espresso' ), |
|
| 461 | + __('click to edit description…', 'event_espresso'), |
|
| 462 | 462 | |
| 463 | 463 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
| 464 | - __( 'View Registrations for this Date', 'event_espresso' ), |
|
| 464 | + __('View Registrations for this Date', 'event_espresso'), |
|
| 465 | 465 | |
| 466 | 466 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:19 |
| 467 | - __( 'Manage Ticket Assignments', 'event_espresso' ), |
|
| 467 | + __('Manage Ticket Assignments', 'event_espresso'), |
|
| 468 | 468 | |
| 469 | 469 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:24 |
| 470 | - __( 'Move Date to Trash', 'event_espresso' ), |
|
| 470 | + __('Move Date to Trash', 'event_espresso'), |
|
| 471 | 471 | |
| 472 | 472 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:29 |
| 473 | 473 | // Reference: packages/constants/src/datetime.ts:6 |
| 474 | - __( 'Active', 'event_espresso' ), |
|
| 474 | + __('Active', 'event_espresso'), |
|
| 475 | 475 | |
| 476 | 476 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:30 |
| 477 | 477 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:29 |
| 478 | - __( 'Trashed', 'event_espresso' ), |
|
| 478 | + __('Trashed', 'event_espresso'), |
|
| 479 | 479 | |
| 480 | 480 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:31 |
| 481 | 481 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:30 |
| 482 | 482 | // Reference: packages/constants/src/datetime.ts:8 |
| 483 | - __( 'Expired', 'event_espresso' ), |
|
| 483 | + __('Expired', 'event_espresso'), |
|
| 484 | 484 | |
| 485 | 485 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:32 |
| 486 | 486 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:32 |
| 487 | - __( 'Sold Out', 'event_espresso' ), |
|
| 487 | + __('Sold Out', 'event_espresso'), |
|
| 488 | 488 | |
| 489 | 489 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:33 |
| 490 | 490 | // Reference: packages/constants/src/datetime.ts:12 |
| 491 | - __( 'Upcoming', 'event_espresso' ), |
|
| 491 | + __('Upcoming', 'event_espresso'), |
|
| 492 | 492 | |
| 493 | 493 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:9 |
| 494 | - __( 'Edit Event Date Details', 'event_espresso' ), |
|
| 494 | + __('Edit Event Date Details', 'event_espresso'), |
|
| 495 | 495 | |
| 496 | 496 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:41 |
| 497 | 497 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:41 |
| 498 | - __( 'click to edit title…', 'event_espresso' ), |
|
| 498 | + __('click to edit title…', 'event_espresso'), |
|
| 499 | 499 | |
| 500 | 500 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:42 |
| 501 | 501 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:42 |
| 502 | - __( 'add title…', 'event_espresso' ), |
|
| 502 | + __('add title…', 'event_espresso'), |
|
| 503 | 503 | |
| 504 | 504 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:17 |
| 505 | 505 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:17 |
| 506 | - __( 'ON', 'event_espresso' ), |
|
| 506 | + __('ON', 'event_espresso'), |
|
| 507 | 507 | |
| 508 | 508 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
| 509 | - __( 'end dates only', 'event_espresso' ), |
|
| 509 | + __('end dates only', 'event_espresso'), |
|
| 510 | 510 | |
| 511 | 511 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
| 512 | - __( 'start and end dates', 'event_espresso' ), |
|
| 512 | + __('start and end dates', 'event_espresso'), |
|
| 513 | 513 | |
| 514 | 514 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
| 515 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
| 515 | + __('dates above 90% capacity', 'event_espresso'), |
|
| 516 | 516 | |
| 517 | 517 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
| 518 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
| 518 | + __('dates above 75% capacity', 'event_espresso'), |
|
| 519 | 519 | |
| 520 | 520 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
| 521 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
| 521 | + __('dates above 50% capacity', 'event_espresso'), |
|
| 522 | 522 | |
| 523 | 523 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
| 524 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
| 524 | + __('dates below 50% capacity', 'event_espresso'), |
|
| 525 | 525 | |
| 526 | 526 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
| 527 | - __( 'all dates', 'event_espresso' ), |
|
| 527 | + __('all dates', 'event_espresso'), |
|
| 528 | 528 | |
| 529 | 529 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
| 530 | - __( 'all active and upcoming', 'event_espresso' ), |
|
| 530 | + __('all active and upcoming', 'event_espresso'), |
|
| 531 | 531 | |
| 532 | 532 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
| 533 | - __( 'active dates only', 'event_espresso' ), |
|
| 533 | + __('active dates only', 'event_espresso'), |
|
| 534 | 534 | |
| 535 | 535 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
| 536 | - __( 'upcoming dates only', 'event_espresso' ), |
|
| 536 | + __('upcoming dates only', 'event_espresso'), |
|
| 537 | 537 | |
| 538 | 538 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
| 539 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
| 539 | + __('next active or upcoming only', 'event_espresso'), |
|
| 540 | 540 | |
| 541 | 541 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
| 542 | - __( 'sold out dates only', 'event_espresso' ), |
|
| 542 | + __('sold out dates only', 'event_espresso'), |
|
| 543 | 543 | |
| 544 | 544 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
| 545 | - __( 'recently expired dates', 'event_espresso' ), |
|
| 545 | + __('recently expired dates', 'event_espresso'), |
|
| 546 | 546 | |
| 547 | 547 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
| 548 | - __( 'all expired dates', 'event_espresso' ), |
|
| 548 | + __('all expired dates', 'event_espresso'), |
|
| 549 | 549 | |
| 550 | 550 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
| 551 | - __( 'trashed dates only', 'event_espresso' ), |
|
| 551 | + __('trashed dates only', 'event_espresso'), |
|
| 552 | 552 | |
| 553 | 553 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
| 554 | 554 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:9 |
| 555 | 555 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:60 |
| 556 | - __( 'start date', 'event_espresso' ), |
|
| 556 | + __('start date', 'event_espresso'), |
|
| 557 | 557 | |
| 558 | 558 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
| 559 | - __( 'name', 'event_espresso' ), |
|
| 559 | + __('name', 'event_espresso'), |
|
| 560 | 560 | |
| 561 | 561 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
| 562 | 562 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:33 |
@@ -564,176 +564,176 @@ discard block |
||
| 564 | 564 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:27 |
| 565 | 565 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:33 |
| 566 | 566 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
| 567 | - __( 'ID', 'event_espresso' ), |
|
| 567 | + __('ID', 'event_espresso'), |
|
| 568 | 568 | |
| 569 | 569 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
| 570 | 570 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
| 571 | - __( 'custom order', 'event_espresso' ), |
|
| 571 | + __('custom order', 'event_espresso'), |
|
| 572 | 572 | |
| 573 | 573 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
| 574 | 574 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:51 |
| 575 | - __( 'display', 'event_espresso' ), |
|
| 575 | + __('display', 'event_espresso'), |
|
| 576 | 576 | |
| 577 | 577 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
| 578 | - __( 'recurrence', 'event_espresso' ), |
|
| 578 | + __('recurrence', 'event_espresso'), |
|
| 579 | 579 | |
| 580 | 580 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
| 581 | 581 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
| 582 | - __( 'sales', 'event_espresso' ), |
|
| 582 | + __('sales', 'event_espresso'), |
|
| 583 | 583 | |
| 584 | 584 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
| 585 | 585 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
| 586 | - __( 'sort by', 'event_espresso' ), |
|
| 586 | + __('sort by', 'event_espresso'), |
|
| 587 | 587 | |
| 588 | 588 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
| 589 | 589 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
| 590 | 590 | // Reference: packages/ee-components/src/EntityList/EntityListFilterBar.tsx:38 |
| 591 | - __( 'search', 'event_espresso' ), |
|
| 591 | + __('search', 'event_espresso'), |
|
| 592 | 592 | |
| 593 | 593 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
| 594 | 594 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
| 595 | - __( 'status', 'event_espresso' ), |
|
| 595 | + __('status', 'event_espresso'), |
|
| 596 | 596 | |
| 597 | 597 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
| 598 | - __( 'start dates only', 'event_espresso' ), |
|
| 598 | + __('start dates only', 'event_espresso'), |
|
| 599 | 599 | |
| 600 | 600 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
| 601 | 601 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:12 |
| 602 | 602 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:18 |
| 603 | - __( 'Add New Date', 'event_espresso' ), |
|
| 603 | + __('Add New Date', 'event_espresso'), |
|
| 604 | 604 | |
| 605 | 605 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
| 606 | - __( 'Add Single Date', 'event_espresso' ), |
|
| 606 | + __('Add Single Date', 'event_espresso'), |
|
| 607 | 607 | |
| 608 | 608 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:44 |
| 609 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
| 609 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
| 610 | 610 | |
| 611 | 611 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:46 |
| 612 | - __( 'Single Date', 'event_espresso' ), |
|
| 612 | + __('Single Date', 'event_espresso'), |
|
| 613 | 613 | |
| 614 | 614 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:108 |
| 615 | - __( 'Reg list', 'event_espresso' ), |
|
| 615 | + __('Reg list', 'event_espresso'), |
|
| 616 | 616 | |
| 617 | 617 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:109 |
| 618 | - __( 'Regs', 'event_espresso' ), |
|
| 618 | + __('Regs', 'event_espresso'), |
|
| 619 | 619 | |
| 620 | 620 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:124 |
| 621 | 621 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:123 |
| 622 | 622 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:59 |
| 623 | - __( 'Actions', 'event_espresso' ), |
|
| 623 | + __('Actions', 'event_espresso'), |
|
| 624 | 624 | |
| 625 | 625 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:54 |
| 626 | - __( 'Start', 'event_espresso' ), |
|
| 626 | + __('Start', 'event_espresso'), |
|
| 627 | 627 | |
| 628 | 628 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:68 |
| 629 | - __( 'End', 'event_espresso' ), |
|
| 629 | + __('End', 'event_espresso'), |
|
| 630 | 630 | |
| 631 | 631 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:84 |
| 632 | - __( 'Cap', 'event_espresso' ), |
|
| 632 | + __('Cap', 'event_espresso'), |
|
| 633 | 633 | |
| 634 | 634 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:96 |
| 635 | 635 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:100 |
| 636 | - __( 'Sold', 'event_espresso' ), |
|
| 636 | + __('Sold', 'event_espresso'), |
|
| 637 | 637 | |
| 638 | 638 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:33 |
| 639 | 639 | // Reference: packages/form-builder/src/constants.ts:67 |
| 640 | - __( 'Text Input', 'event_espresso' ), |
|
| 640 | + __('Text Input', 'event_espresso'), |
|
| 641 | 641 | |
| 642 | 642 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:34 |
| 643 | 643 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:32 |
| 644 | - __( 'Attendee First Name', 'event_espresso' ), |
|
| 644 | + __('Attendee First Name', 'event_espresso'), |
|
| 645 | 645 | |
| 646 | 646 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:39 |
| 647 | 647 | /* translators: field name */ |
| 648 | - __( 'Registration form must have a field of type "%1$s" which maps to "%2$s"', 'event_espresso' ), |
|
| 648 | + __('Registration form must have a field of type "%1$s" which maps to "%2$s"', 'event_espresso'), |
|
| 649 | 649 | |
| 650 | 650 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:40 |
| 651 | 651 | // Reference: packages/form-builder/src/constants.ts:82 |
| 652 | - __( 'Email Address', 'event_espresso' ), |
|
| 652 | + __('Email Address', 'event_espresso'), |
|
| 653 | 653 | |
| 654 | 654 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:41 |
| 655 | 655 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:40 |
| 656 | - __( 'Attendee Email Address', 'event_espresso' ), |
|
| 656 | + __('Attendee Email Address', 'event_espresso'), |
|
| 657 | 657 | |
| 658 | 658 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:49 |
| 659 | - __( 'Please add the required fields', 'event_espresso' ), |
|
| 659 | + __('Please add the required fields', 'event_espresso'), |
|
| 660 | 660 | |
| 661 | 661 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/RegistrationForm.tsx:12 |
| 662 | - __( 'Registration Form', 'event_espresso' ), |
|
| 662 | + __('Registration Form', 'event_espresso'), |
|
| 663 | 663 | |
| 664 | 664 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:13 |
| 665 | - __( 'primary registrant', 'event_espresso' ), |
|
| 665 | + __('primary registrant', 'event_espresso'), |
|
| 666 | 666 | |
| 667 | 667 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:17 |
| 668 | - __( 'purchaser', 'event_espresso' ), |
|
| 668 | + __('purchaser', 'event_espresso'), |
|
| 669 | 669 | |
| 670 | 670 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:21 |
| 671 | - __( 'registrants', 'event_espresso' ), |
|
| 671 | + __('registrants', 'event_espresso'), |
|
| 672 | 672 | |
| 673 | 673 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:36 |
| 674 | - __( 'Attendee Last Name', 'event_espresso' ), |
|
| 674 | + __('Attendee Last Name', 'event_espresso'), |
|
| 675 | 675 | |
| 676 | 676 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:44 |
| 677 | - __( 'Attendee Address', 'event_espresso' ), |
|
| 677 | + __('Attendee Address', 'event_espresso'), |
|
| 678 | 678 | |
| 679 | 679 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:9 |
| 680 | - __( 'all', 'event_espresso' ), |
|
| 680 | + __('all', 'event_espresso'), |
|
| 681 | 681 | |
| 682 | 682 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
| 683 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
| 684 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
| 683 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
| 684 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
| 685 | 685 | |
| 686 | 686 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
| 687 | - __( 'Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. |
|
| 688 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
| 687 | + __('Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. |
|
| 688 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
| 689 | 689 | |
| 690 | 690 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
| 691 | - __( 'Please Update Assignments', 'event_espresso' ), |
|
| 691 | + __('Please Update Assignments', 'event_espresso'), |
|
| 692 | 692 | |
| 693 | 693 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:26 |
| 694 | - __( 'There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso' ), |
|
| 694 | + __('There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso'), |
|
| 695 | 695 | |
| 696 | 696 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:29 |
| 697 | - __( 'Alert!', 'event_espresso' ), |
|
| 697 | + __('Alert!', 'event_espresso'), |
|
| 698 | 698 | |
| 699 | 699 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:42 |
| 700 | 700 | /* translators: 1 entity id, 2 entity name */ |
| 701 | - __( 'Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso' ), |
|
| 701 | + __('Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso'), |
|
| 702 | 702 | |
| 703 | 703 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:49 |
| 704 | 704 | /* translators: 1 entity id, 2 entity name */ |
| 705 | - __( 'Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso' ), |
|
| 705 | + __('Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso'), |
|
| 706 | 706 | |
| 707 | 707 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal.tsx:45 |
| 708 | 708 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:13 |
| 709 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
| 709 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
| 710 | 710 | |
| 711 | 711 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:10 |
| 712 | - __( 'existing relation', 'event_espresso' ), |
|
| 712 | + __('existing relation', 'event_espresso'), |
|
| 713 | 713 | |
| 714 | 714 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:15 |
| 715 | - __( 'remove existing relation', 'event_espresso' ), |
|
| 715 | + __('remove existing relation', 'event_espresso'), |
|
| 716 | 716 | |
| 717 | 717 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:20 |
| 718 | - __( 'add new relation', 'event_espresso' ), |
|
| 718 | + __('add new relation', 'event_espresso'), |
|
| 719 | 719 | |
| 720 | 720 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:25 |
| 721 | - __( 'invalid relation', 'event_espresso' ), |
|
| 721 | + __('invalid relation', 'event_espresso'), |
|
| 722 | 722 | |
| 723 | 723 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:29 |
| 724 | - __( 'no relation', 'event_espresso' ), |
|
| 724 | + __('no relation', 'event_espresso'), |
|
| 725 | 725 | |
| 726 | 726 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:15 |
| 727 | - __( 'Assignments', 'event_espresso' ), |
|
| 727 | + __('Assignments', 'event_espresso'), |
|
| 728 | 728 | |
| 729 | 729 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:16 |
| 730 | - __( 'Event Dates are listed below', 'event_espresso' ), |
|
| 730 | + __('Event Dates are listed below', 'event_espresso'), |
|
| 731 | 731 | |
| 732 | 732 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:17 |
| 733 | - __( 'Tickets are listed along the top', 'event_espresso' ), |
|
| 733 | + __('Tickets are listed along the top', 'event_espresso'), |
|
| 734 | 734 | |
| 735 | 735 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:18 |
| 736 | - __( 'Click the cell buttons to toggle assigments', 'event_espresso' ), |
|
| 736 | + __('Click the cell buttons to toggle assigments', 'event_espresso'), |
|
| 737 | 737 | |
| 738 | 738 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/useSubmitButtonProps.ts:29 |
| 739 | 739 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
@@ -742,1579 +742,1579 @@ discard block |
||
| 742 | 742 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:29 |
| 743 | 743 | // Reference: packages/ui-components/src/Modal/useSubmitButtonProps.tsx:13 |
| 744 | 744 | // Reference: packages/ui-components/src/Stepper/buttons/Submit.tsx:7 |
| 745 | - __( 'Submit', 'event_espresso' ), |
|
| 745 | + __('Submit', 'event_espresso'), |
|
| 746 | 746 | |
| 747 | 747 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:20 |
| 748 | - __( 'All Dates', 'event_espresso' ), |
|
| 748 | + __('All Dates', 'event_espresso'), |
|
| 749 | 749 | |
| 750 | 750 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:27 |
| 751 | - __( 'dates by month', 'event_espresso' ), |
|
| 751 | + __('dates by month', 'event_espresso'), |
|
| 752 | 752 | |
| 753 | 753 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:16 |
| 754 | - __( 'show expired tickets', 'event_espresso' ), |
|
| 754 | + __('show expired tickets', 'event_espresso'), |
|
| 755 | 755 | |
| 756 | 756 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:13 |
| 757 | - __( 'show trashed dates', 'event_espresso' ), |
|
| 757 | + __('show trashed dates', 'event_espresso'), |
|
| 758 | 758 | |
| 759 | 759 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:16 |
| 760 | - __( 'show trashed tickets', 'event_espresso' ), |
|
| 760 | + __('show trashed tickets', 'event_espresso'), |
|
| 761 | 761 | |
| 762 | 762 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/Container.tsx:38 |
| 763 | 763 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actions/Actions.tsx:25 |
| 764 | - __( 'Default tickets', 'event_espresso' ), |
|
| 764 | + __('Default tickets', 'event_espresso'), |
|
| 765 | 765 | |
| 766 | 766 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/ModalBody.tsx:63 |
| 767 | 767 | // Reference: packages/edtr-services/src/constants.ts:26 |
| 768 | - __( 'ticket', 'event_espresso' ), |
|
| 768 | + __('ticket', 'event_espresso'), |
|
| 769 | 769 | |
| 770 | 770 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:26 |
| 771 | 771 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:33 |
| 772 | - __( 'Set ticket prices', 'event_espresso' ), |
|
| 772 | + __('Set ticket prices', 'event_espresso'), |
|
| 773 | 773 | |
| 774 | 774 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:31 |
| 775 | - __( 'Skip prices - Save', 'event_espresso' ), |
|
| 775 | + __('Skip prices - Save', 'event_espresso'), |
|
| 776 | 776 | |
| 777 | 777 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:37 |
| 778 | 778 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:57 |
| 779 | - __( 'Ticket details', 'event_espresso' ), |
|
| 779 | + __('Ticket details', 'event_espresso'), |
|
| 780 | 780 | |
| 781 | 781 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:38 |
| 782 | - __( 'Save', 'event_espresso' ), |
|
| 782 | + __('Save', 'event_espresso'), |
|
| 783 | 783 | |
| 784 | 784 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:22 |
| 785 | 785 | /* translators: %s ticket id */ |
| 786 | - __( 'Edit ticket %s', 'event_espresso' ), |
|
| 786 | + __('Edit ticket %s', 'event_espresso'), |
|
| 787 | 787 | |
| 788 | 788 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:25 |
| 789 | 789 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:33 |
| 790 | - __( 'New Ticket Details', 'event_espresso' ), |
|
| 790 | + __('New Ticket Details', 'event_espresso'), |
|
| 791 | 791 | |
| 792 | 792 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
| 793 | 793 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
| 794 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
| 794 | + __('primary information about the ticket', 'event_espresso'), |
|
| 795 | 795 | |
| 796 | 796 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
| 797 | 797 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
| 798 | - __( 'Ticket Details', 'event_espresso' ), |
|
| 798 | + __('Ticket Details', 'event_espresso'), |
|
| 799 | 799 | |
| 800 | 800 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:12 |
| 801 | 801 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:12 |
| 802 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
| 802 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
| 803 | 803 | |
| 804 | 804 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:14 |
| 805 | 805 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:14 |
| 806 | - __( 'Price Calculator', 'event_espresso' ), |
|
| 806 | + __('Price Calculator', 'event_espresso'), |
|
| 807 | 807 | |
| 808 | 808 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
| 809 | 809 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
| 810 | - __( 'Assign Dates', 'event_espresso' ), |
|
| 810 | + __('Assign Dates', 'event_espresso'), |
|
| 811 | 811 | |
| 812 | 812 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:39 |
| 813 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
| 813 | + __('Skip prices - assign dates', 'event_espresso'), |
|
| 814 | 814 | |
| 815 | 815 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:50 |
| 816 | - __( 'Save and assign dates', 'event_espresso' ), |
|
| 816 | + __('Save and assign dates', 'event_espresso'), |
|
| 817 | 817 | |
| 818 | 818 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:29 |
| 819 | 819 | /* translators: %1$s ticket name, %2$s ticket id */ |
| 820 | - __( 'Edit ticket "%1$s" - %2$s', 'event_espresso' ), |
|
| 820 | + __('Edit ticket "%1$s" - %2$s', 'event_espresso'), |
|
| 821 | 821 | |
| 822 | 822 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:43 |
| 823 | - __( 'modal for ticket', 'event_espresso' ), |
|
| 823 | + __('modal for ticket', 'event_espresso'), |
|
| 824 | 824 | |
| 825 | 825 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:101 |
| 826 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
| 826 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
| 827 | 827 | |
| 828 | 828 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:107 |
| 829 | 829 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:119 |
| 830 | - __( 'Number of Uses', 'event_espresso' ), |
|
| 830 | + __('Number of Uses', 'event_espresso'), |
|
| 831 | 831 | |
| 832 | 832 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:113 |
| 833 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
| 833 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
| 834 | 834 | |
| 835 | 835 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:117 |
| 836 | - __( 'Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso' ), |
|
| 836 | + __('Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso'), |
|
| 837 | 837 | |
| 838 | 838 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:125 |
| 839 | 839 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:127 |
| 840 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
| 840 | + __('Minimum Quantity', 'event_espresso'), |
|
| 841 | 841 | |
| 842 | 842 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:130 |
| 843 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
| 843 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
| 844 | 844 | |
| 845 | 845 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:134 |
| 846 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
| 846 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
| 847 | 847 | |
| 848 | 848 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:140 |
| 849 | 849 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:135 |
| 850 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
| 850 | + __('Maximum Quantity', 'event_espresso'), |
|
| 851 | 851 | |
| 852 | 852 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:146 |
| 853 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
| 853 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
| 854 | 854 | |
| 855 | 855 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:150 |
| 856 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
| 856 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
| 857 | 857 | |
| 858 | 858 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:156 |
| 859 | 859 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:144 |
| 860 | - __( 'Required Ticket', 'event_espresso' ), |
|
| 860 | + __('Required Ticket', 'event_espresso'), |
|
| 861 | 861 | |
| 862 | 862 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:158 |
| 863 | - __( 'If enabled, the ticket must be selected and will appear first in ticket lists.', 'event_espresso' ), |
|
| 863 | + __('If enabled, the ticket must be selected and will appear first in ticket lists.', 'event_espresso'), |
|
| 864 | 864 | |
| 865 | 865 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:170 |
| 866 | - __( 'Visibility', 'event_espresso' ), |
|
| 866 | + __('Visibility', 'event_espresso'), |
|
| 867 | 867 | |
| 868 | 868 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:202 |
| 869 | - __( 'Ticket Sales', 'event_espresso' ), |
|
| 869 | + __('Ticket Sales', 'event_espresso'), |
|
| 870 | 870 | |
| 871 | 871 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:93 |
| 872 | 872 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:110 |
| 873 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
| 873 | + __('Quantity For Sale', 'event_espresso'), |
|
| 874 | 874 | |
| 875 | 875 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:99 |
| 876 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
| 876 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
| 877 | 877 | |
| 878 | 878 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketRegistrationsLink.tsx:14 |
| 879 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
| 879 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
| 880 | 880 | |
| 881 | 881 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketSoldLink.tsx:13 |
| 882 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
| 882 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
| 883 | 883 | |
| 884 | 884 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:36 |
| 885 | - __( 'Available Tickets', 'event_espresso' ), |
|
| 885 | + __('Available Tickets', 'event_espresso'), |
|
| 886 | 886 | |
| 887 | 887 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:39 |
| 888 | - __( 'loading tickets…', 'event_espresso' ), |
|
| 888 | + __('loading tickets…', 'event_espresso'), |
|
| 889 | 889 | |
| 890 | 890 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:26 |
| 891 | - __( 'Number of related dates', 'event_espresso' ), |
|
| 891 | + __('Number of related dates', 'event_espresso'), |
|
| 892 | 892 | |
| 893 | 893 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
| 894 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
| 894 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
| 895 | 895 | |
| 896 | 896 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:37 |
| 897 | - __( 'assign dates', 'event_espresso' ), |
|
| 897 | + __('assign dates', 'event_espresso'), |
|
| 898 | 898 | |
| 899 | 899 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:19 |
| 900 | - __( 'Permanently Delete Ticket?', 'event_espresso' ), |
|
| 900 | + __('Permanently Delete Ticket?', 'event_espresso'), |
|
| 901 | 901 | |
| 902 | 902 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:19 |
| 903 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
| 903 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
| 904 | 904 | |
| 905 | 905 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:22 |
| 906 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
| 906 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
| 907 | 907 | |
| 908 | 908 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:48 |
| 909 | 909 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Trash.tsx:6 |
| 910 | - __( 'trash ticket', 'event_espresso' ), |
|
| 910 | + __('trash ticket', 'event_espresso'), |
|
| 911 | 911 | |
| 912 | 912 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:25 |
| 913 | - __( 'ticket main menu', 'event_espresso' ), |
|
| 913 | + __('ticket main menu', 'event_espresso'), |
|
| 914 | 914 | |
| 915 | 915 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:38 |
| 916 | 916 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Edit.tsx:15 |
| 917 | - __( 'edit ticket', 'event_espresso' ), |
|
| 917 | + __('edit ticket', 'event_espresso'), |
|
| 918 | 918 | |
| 919 | 919 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:39 |
| 920 | - __( 'copy ticket', 'event_espresso' ), |
|
| 920 | + __('copy ticket', 'event_espresso'), |
|
| 921 | 921 | |
| 922 | 922 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:43 |
| 923 | - __( 'edit ticket details', 'event_espresso' ), |
|
| 923 | + __('edit ticket details', 'event_espresso'), |
|
| 924 | 924 | |
| 925 | 925 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
| 926 | - __( 'delete tickets', 'event_espresso' ), |
|
| 926 | + __('delete tickets', 'event_espresso'), |
|
| 927 | 927 | |
| 928 | 928 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
| 929 | - __( 'trash tickets', 'event_espresso' ), |
|
| 929 | + __('trash tickets', 'event_espresso'), |
|
| 930 | 930 | |
| 931 | 931 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:51 |
| 932 | - __( 'edit ticket prices', 'event_espresso' ), |
|
| 932 | + __('edit ticket prices', 'event_espresso'), |
|
| 933 | 933 | |
| 934 | 934 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
| 935 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
| 935 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
| 936 | 936 | |
| 937 | 937 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
| 938 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
| 938 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
| 939 | 939 | |
| 940 | 940 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
| 941 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
| 941 | + __('Delete tickets permanently', 'event_espresso'), |
|
| 942 | 942 | |
| 943 | 943 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
| 944 | - __( 'Trash tickets', 'event_espresso' ), |
|
| 944 | + __('Trash tickets', 'event_espresso'), |
|
| 945 | 945 | |
| 946 | 946 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:21 |
| 947 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
| 947 | + __('Bulk edit ticket details', 'event_espresso'), |
|
| 948 | 948 | |
| 949 | 949 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
| 950 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
| 950 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
| 951 | 951 | |
| 952 | 952 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:19 |
| 953 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
| 953 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
| 954 | 954 | |
| 955 | 955 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
| 956 | - __( 'Edit all prices together', 'event_espresso' ), |
|
| 956 | + __('Edit all prices together', 'event_espresso'), |
|
| 957 | 957 | |
| 958 | 958 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:21 |
| 959 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
| 959 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
| 960 | 960 | |
| 961 | 961 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
| 962 | - __( 'Edit prices individually', 'event_espresso' ), |
|
| 962 | + __('Edit prices individually', 'event_espresso'), |
|
| 963 | 963 | |
| 964 | 964 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:26 |
| 965 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
| 965 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
| 966 | 966 | |
| 967 | 967 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:14 |
| 968 | 968 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:34 |
| 969 | 969 | // Reference: packages/form/src/ResetButton.tsx:18 |
| 970 | 970 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
| 971 | - __( 'Reset', 'event_espresso' ), |
|
| 971 | + __('Reset', 'event_espresso'), |
|
| 972 | 972 | |
| 973 | 973 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
| 974 | 974 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:76 |
| 975 | 975 | // Reference: packages/ui-components/src/Modal/useCancelButtonProps.tsx:10 |
| 976 | - __( 'Cancel', 'event_espresso' ), |
|
| 976 | + __('Cancel', 'event_espresso'), |
|
| 977 | 977 | |
| 978 | 978 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:26 |
| 979 | 979 | /* translators: %s ticket name */ |
| 980 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
| 980 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
| 981 | 981 | |
| 982 | 982 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:30 |
| 983 | - __( 'sales start', 'event_espresso' ), |
|
| 983 | + __('sales start', 'event_espresso'), |
|
| 984 | 984 | |
| 985 | 985 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:33 |
| 986 | - __( 'sales began', 'event_espresso' ), |
|
| 986 | + __('sales began', 'event_espresso'), |
|
| 987 | 987 | |
| 988 | 988 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:35 |
| 989 | - __( 'sales ended', 'event_espresso' ), |
|
| 989 | + __('sales ended', 'event_espresso'), |
|
| 990 | 990 | |
| 991 | 991 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:36 |
| 992 | - __( 'sales end', 'event_espresso' ), |
|
| 992 | + __('sales end', 'event_espresso'), |
|
| 993 | 993 | |
| 994 | 994 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:50 |
| 995 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
| 995 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
| 996 | 996 | |
| 997 | 997 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:54 |
| 998 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
| 998 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
| 999 | 999 | |
| 1000 | 1000 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:21 |
| 1001 | - __( 'quantity', 'event_espresso' ), |
|
| 1001 | + __('quantity', 'event_espresso'), |
|
| 1002 | 1002 | |
| 1003 | 1003 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:28 |
| 1004 | 1004 | // Reference: packages/edtr-services/src/apollo/mutations/tickets/useUpdateTicketQtyByCapacity.ts:78 |
| 1005 | - __( 'Ticket quantity has been adjusted because it cannot be more than the related event date capacity.', 'event_espresso' ), |
|
| 1005 | + __('Ticket quantity has been adjusted because it cannot be more than the related event date capacity.', 'event_espresso'), |
|
| 1006 | 1006 | |
| 1007 | 1007 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:51 |
| 1008 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
| 1008 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
| 1009 | 1009 | |
| 1010 | 1010 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
| 1011 | - __( 'Manage Date Assignments', 'event_espresso' ), |
|
| 1011 | + __('Manage Date Assignments', 'event_espresso'), |
|
| 1012 | 1012 | |
| 1013 | 1013 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:19 |
| 1014 | 1014 | // Reference: packages/tpc/src/components/table/Table.tsx:43 |
| 1015 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
| 1015 | + __('Ticket Price Calculator', 'event_espresso'), |
|
| 1016 | 1016 | |
| 1017 | 1017 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:24 |
| 1018 | - __( 'Move Ticket to Trash', 'event_espresso' ), |
|
| 1018 | + __('Move Ticket to Trash', 'event_espresso'), |
|
| 1019 | 1019 | |
| 1020 | 1020 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:31 |
| 1021 | 1021 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:54 |
| 1022 | - __( 'On Sale', 'event_espresso' ), |
|
| 1022 | + __('On Sale', 'event_espresso'), |
|
| 1023 | 1023 | |
| 1024 | 1024 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:33 |
| 1025 | - __( 'Pending', 'event_espresso' ), |
|
| 1025 | + __('Pending', 'event_espresso'), |
|
| 1026 | 1026 | |
| 1027 | 1027 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:9 |
| 1028 | - __( 'Edit Ticket Details', 'event_espresso' ), |
|
| 1028 | + __('Edit Ticket Details', 'event_espresso'), |
|
| 1029 | 1029 | |
| 1030 | 1030 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:45 |
| 1031 | - __( 'edit ticket total…', 'event_espresso' ), |
|
| 1031 | + __('edit ticket total…', 'event_espresso'), |
|
| 1032 | 1032 | |
| 1033 | 1033 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:70 |
| 1034 | - __( 'set price…', 'event_espresso' ), |
|
| 1034 | + __('set price…', 'event_espresso'), |
|
| 1035 | 1035 | |
| 1036 | 1036 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:23 |
| 1037 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
| 1037 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
| 1038 | 1038 | |
| 1039 | 1039 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
| 1040 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
| 1040 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
| 1041 | 1041 | |
| 1042 | 1042 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
| 1043 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
| 1043 | + __('ticket sales start and end dates', 'event_espresso'), |
|
| 1044 | 1044 | |
| 1045 | 1045 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
| 1046 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
| 1046 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
| 1047 | 1047 | |
| 1048 | 1048 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
| 1049 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
| 1049 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
| 1050 | 1050 | |
| 1051 | 1051 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
| 1052 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
| 1052 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
| 1053 | 1053 | |
| 1054 | 1054 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
| 1055 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
| 1055 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
| 1056 | 1056 | |
| 1057 | 1057 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
| 1058 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
| 1058 | + __('all tickets for all dates', 'event_espresso'), |
|
| 1059 | 1059 | |
| 1060 | 1060 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
| 1061 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
| 1061 | + __('all on sale and sale pending', 'event_espresso'), |
|
| 1062 | 1062 | |
| 1063 | 1063 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
| 1064 | - __( 'on sale tickets only', 'event_espresso' ), |
|
| 1064 | + __('on sale tickets only', 'event_espresso'), |
|
| 1065 | 1065 | |
| 1066 | 1066 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
| 1067 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
| 1067 | + __('sale pending tickets only', 'event_espresso'), |
|
| 1068 | 1068 | |
| 1069 | 1069 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
| 1070 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
| 1070 | + __('next on sale or sale pending only', 'event_espresso'), |
|
| 1071 | 1071 | |
| 1072 | 1072 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
| 1073 | - __( 'sold out tickets only', 'event_espresso' ), |
|
| 1073 | + __('sold out tickets only', 'event_espresso'), |
|
| 1074 | 1074 | |
| 1075 | 1075 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
| 1076 | - __( 'expired tickets only', 'event_espresso' ), |
|
| 1076 | + __('expired tickets only', 'event_espresso'), |
|
| 1077 | 1077 | |
| 1078 | 1078 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
| 1079 | - __( 'trashed tickets only', 'event_espresso' ), |
|
| 1079 | + __('trashed tickets only', 'event_espresso'), |
|
| 1080 | 1080 | |
| 1081 | 1081 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
| 1082 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
| 1082 | + __('all tickets for above dates', 'event_espresso'), |
|
| 1083 | 1083 | |
| 1084 | 1084 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
| 1085 | - __( 'ticket sale date', 'event_espresso' ), |
|
| 1085 | + __('ticket sale date', 'event_espresso'), |
|
| 1086 | 1086 | |
| 1087 | 1087 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
| 1088 | - __( 'ticket name', 'event_espresso' ), |
|
| 1088 | + __('ticket name', 'event_espresso'), |
|
| 1089 | 1089 | |
| 1090 | 1090 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
| 1091 | - __( 'ticket ID', 'event_espresso' ), |
|
| 1091 | + __('ticket ID', 'event_espresso'), |
|
| 1092 | 1092 | |
| 1093 | 1093 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
| 1094 | - __( 'linked', 'event_espresso' ), |
|
| 1094 | + __('linked', 'event_espresso'), |
|
| 1095 | 1095 | |
| 1096 | 1096 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
| 1097 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
| 1097 | + __('ticket sales start date only', 'event_espresso'), |
|
| 1098 | 1098 | |
| 1099 | 1099 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
| 1100 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
| 1100 | + __('ticket sales end date only', 'event_espresso'), |
|
| 1101 | 1101 | |
| 1102 | 1102 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:18 |
| 1103 | - __( 'Add New Ticket', 'event_espresso' ), |
|
| 1103 | + __('Add New Ticket', 'event_espresso'), |
|
| 1104 | 1104 | |
| 1105 | 1105 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:32 |
| 1106 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
| 1106 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
| 1107 | 1107 | |
| 1108 | 1108 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:34 |
| 1109 | - __( 'Single Ticket', 'event_espresso' ), |
|
| 1109 | + __('Single Ticket', 'event_espresso'), |
|
| 1110 | 1110 | |
| 1111 | 1111 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:39 |
| 1112 | - __( 'Tickets', 'event_espresso' ), |
|
| 1112 | + __('Tickets', 'event_espresso'), |
|
| 1113 | 1113 | |
| 1114 | 1114 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:110 |
| 1115 | - __( 'Reg List', 'event_espresso' ), |
|
| 1115 | + __('Reg List', 'event_espresso'), |
|
| 1116 | 1116 | |
| 1117 | 1117 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:53 |
| 1118 | - __( 'Goes on Sale', 'event_espresso' ), |
|
| 1118 | + __('Goes on Sale', 'event_espresso'), |
|
| 1119 | 1119 | |
| 1120 | 1120 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:67 |
| 1121 | - __( 'Sale Ends', 'event_espresso' ), |
|
| 1121 | + __('Sale Ends', 'event_espresso'), |
|
| 1122 | 1122 | |
| 1123 | 1123 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:68 |
| 1124 | - __( 'Ends', 'event_espresso' ), |
|
| 1124 | + __('Ends', 'event_espresso'), |
|
| 1125 | 1125 | |
| 1126 | 1126 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:80 |
| 1127 | - __( 'Price', 'event_espresso' ), |
|
| 1127 | + __('Price', 'event_espresso'), |
|
| 1128 | 1128 | |
| 1129 | 1129 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:90 |
| 1130 | - __( 'Qty', 'event_espresso' ), |
|
| 1130 | + __('Qty', 'event_espresso'), |
|
| 1131 | 1131 | |
| 1132 | 1132 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:104 |
| 1133 | - __( 'Venue telephone', 'event_espresso' ), |
|
| 1133 | + __('Venue telephone', 'event_espresso'), |
|
| 1134 | 1134 | |
| 1135 | 1135 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:111 |
| 1136 | - __( 'Edit this Venue', 'event_espresso' ), |
|
| 1136 | + __('Edit this Venue', 'event_espresso'), |
|
| 1137 | 1137 | |
| 1138 | 1138 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:120 |
| 1139 | - __( 'Select a Venue for the Event', 'event_espresso' ), |
|
| 1139 | + __('Select a Venue for the Event', 'event_espresso'), |
|
| 1140 | 1140 | |
| 1141 | 1141 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:21 |
| 1142 | - __( 'Venue Details', 'event_espresso' ), |
|
| 1142 | + __('Venue Details', 'event_espresso'), |
|
| 1143 | 1143 | |
| 1144 | 1144 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:39 |
| 1145 | - __( 'unlimited space', 'event_espresso' ), |
|
| 1145 | + __('unlimited space', 'event_espresso'), |
|
| 1146 | 1146 | |
| 1147 | 1147 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:42 |
| 1148 | 1148 | /* translators: %d venue capacity */ |
| 1149 | - __( 'Space for up to %d people', 'event_espresso' ), |
|
| 1149 | + __('Space for up to %d people', 'event_espresso'), |
|
| 1150 | 1150 | |
| 1151 | 1151 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:53 |
| 1152 | - __( 'Venue address', 'event_espresso' ), |
|
| 1152 | + __('Venue address', 'event_espresso'), |
|
| 1153 | 1153 | |
| 1154 | 1154 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:59 |
| 1155 | - __( 'Venue Details card', 'event_espresso' ), |
|
| 1155 | + __('Venue Details card', 'event_espresso'), |
|
| 1156 | 1156 | |
| 1157 | 1157 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:68 |
| 1158 | - __( 'no image', 'event_espresso' ), |
|
| 1158 | + __('no image', 'event_espresso'), |
|
| 1159 | 1159 | |
| 1160 | 1160 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:72 |
| 1161 | - __( 'Venue name', 'event_espresso' ), |
|
| 1161 | + __('Venue name', 'event_espresso'), |
|
| 1162 | 1162 | |
| 1163 | 1163 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:96 |
| 1164 | - __( 'Venue capacity', 'event_espresso' ), |
|
| 1164 | + __('Venue capacity', 'event_espresso'), |
|
| 1165 | 1165 | |
| 1166 | 1166 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:29 |
| 1167 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
| 1167 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
| 1168 | 1168 | |
| 1169 | 1169 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:40 |
| 1170 | - __( 'Skip', 'event_espresso' ), |
|
| 1170 | + __('Skip', 'event_espresso'), |
|
| 1171 | 1171 | |
| 1172 | 1172 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:42 |
| 1173 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
| 1173 | + __('Sure I\'ll help', 'event_espresso'), |
|
| 1174 | 1174 | |
| 1175 | 1175 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:23 |
| 1176 | - __( 'pagination', 'event_espresso' ), |
|
| 1176 | + __('pagination', 'event_espresso'), |
|
| 1177 | 1177 | |
| 1178 | 1178 | // Reference: packages/adapters/src/TagSelector/TagSelector.tsx:113 |
| 1179 | - __( 'toggle menu', 'event_espresso' ), |
|
| 1179 | + __('toggle menu', 'event_espresso'), |
|
| 1180 | 1180 | |
| 1181 | 1181 | // Reference: packages/constants/src/datetime.ts:10 |
| 1182 | - __( 'Postponed', 'event_espresso' ), |
|
| 1182 | + __('Postponed', 'event_espresso'), |
|
| 1183 | 1183 | |
| 1184 | 1184 | // Reference: packages/constants/src/datetime.ts:11 |
| 1185 | - __( 'SoldOut', 'event_espresso' ), |
|
| 1185 | + __('SoldOut', 'event_espresso'), |
|
| 1186 | 1186 | |
| 1187 | 1187 | // Reference: packages/constants/src/datetime.ts:7 |
| 1188 | 1188 | // Reference: packages/predicates/src/registration/statusOptions.ts:11 |
| 1189 | - __( 'Cancelled', 'event_espresso' ), |
|
| 1189 | + __('Cancelled', 'event_espresso'), |
|
| 1190 | 1190 | |
| 1191 | 1191 | // Reference: packages/constants/src/datetime.ts:9 |
| 1192 | - __( 'Inactive', 'event_espresso' ), |
|
| 1192 | + __('Inactive', 'event_espresso'), |
|
| 1193 | 1193 | |
| 1194 | 1194 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:25 |
| 1195 | - __( 'error creating %s', 'event_espresso' ), |
|
| 1195 | + __('error creating %s', 'event_espresso'), |
|
| 1196 | 1196 | |
| 1197 | 1197 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:26 |
| 1198 | - __( 'error deleting %s', 'event_espresso' ), |
|
| 1198 | + __('error deleting %s', 'event_espresso'), |
|
| 1199 | 1199 | |
| 1200 | 1200 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:27 |
| 1201 | - __( 'error updating %s', 'event_espresso' ), |
|
| 1201 | + __('error updating %s', 'event_espresso'), |
|
| 1202 | 1202 | |
| 1203 | 1203 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:28 |
| 1204 | - __( 'creating %s', 'event_espresso' ), |
|
| 1204 | + __('creating %s', 'event_espresso'), |
|
| 1205 | 1205 | |
| 1206 | 1206 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:29 |
| 1207 | - __( 'deleting %s', 'event_espresso' ), |
|
| 1207 | + __('deleting %s', 'event_espresso'), |
|
| 1208 | 1208 | |
| 1209 | 1209 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:30 |
| 1210 | - __( 'updating %s', 'event_espresso' ), |
|
| 1210 | + __('updating %s', 'event_espresso'), |
|
| 1211 | 1211 | |
| 1212 | 1212 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:31 |
| 1213 | - __( 'successfully created %s', 'event_espresso' ), |
|
| 1213 | + __('successfully created %s', 'event_espresso'), |
|
| 1214 | 1214 | |
| 1215 | 1215 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:32 |
| 1216 | - __( 'successfully deleted %s', 'event_espresso' ), |
|
| 1216 | + __('successfully deleted %s', 'event_espresso'), |
|
| 1217 | 1217 | |
| 1218 | 1218 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:33 |
| 1219 | - __( 'successfully updated %s', 'event_espresso' ), |
|
| 1219 | + __('successfully updated %s', 'event_espresso'), |
|
| 1220 | 1220 | |
| 1221 | 1221 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:13 |
| 1222 | - __( 'day in range', 'event_espresso' ), |
|
| 1222 | + __('day in range', 'event_espresso'), |
|
| 1223 | 1223 | |
| 1224 | 1224 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:17 |
| 1225 | 1225 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:78 |
| 1226 | - __( 'end date', 'event_espresso' ), |
|
| 1226 | + __('end date', 'event_espresso'), |
|
| 1227 | 1227 | |
| 1228 | 1228 | // Reference: packages/dates/src/components/DateTimePicker.tsx:17 |
| 1229 | 1229 | // Reference: packages/dates/src/components/TimePicker.tsx:17 |
| 1230 | 1230 | // Reference: packages/form-builder/src/state/utils.ts:433 |
| 1231 | - __( 'time', 'event_espresso' ), |
|
| 1231 | + __('time', 'event_espresso'), |
|
| 1232 | 1232 | |
| 1233 | 1233 | // Reference: packages/dates/src/constants.ts:7 |
| 1234 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
| 1234 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
| 1235 | 1235 | |
| 1236 | 1236 | // Reference: packages/dates/src/constants.ts:9 |
| 1237 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
| 1237 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
| 1238 | 1238 | |
| 1239 | 1239 | // Reference: packages/dates/src/utils/misc.ts:16 |
| 1240 | - __( 'month(s)', 'event_espresso' ), |
|
| 1240 | + __('month(s)', 'event_espresso'), |
|
| 1241 | 1241 | |
| 1242 | 1242 | // Reference: packages/dates/src/utils/misc.ts:17 |
| 1243 | - __( 'week(s)', 'event_espresso' ), |
|
| 1243 | + __('week(s)', 'event_espresso'), |
|
| 1244 | 1244 | |
| 1245 | 1245 | // Reference: packages/dates/src/utils/misc.ts:18 |
| 1246 | - __( 'day(s)', 'event_espresso' ), |
|
| 1246 | + __('day(s)', 'event_espresso'), |
|
| 1247 | 1247 | |
| 1248 | 1248 | // Reference: packages/dates/src/utils/misc.ts:19 |
| 1249 | - __( 'hour(s)', 'event_espresso' ), |
|
| 1249 | + __('hour(s)', 'event_espresso'), |
|
| 1250 | 1250 | |
| 1251 | 1251 | // Reference: packages/dates/src/utils/misc.ts:20 |
| 1252 | - __( 'minute(s)', 'event_espresso' ), |
|
| 1252 | + __('minute(s)', 'event_espresso'), |
|
| 1253 | 1253 | |
| 1254 | 1254 | // Reference: packages/edtr-services/src/apollo/mutations/useReorderEntities.ts:63 |
| 1255 | - __( 'order updated', 'event_espresso' ), |
|
| 1255 | + __('order updated', 'event_espresso'), |
|
| 1256 | 1256 | |
| 1257 | 1257 | // Reference: packages/edtr-services/src/constants.ts:24 |
| 1258 | - __( 'datetime', 'event_espresso' ), |
|
| 1258 | + __('datetime', 'event_espresso'), |
|
| 1259 | 1259 | |
| 1260 | 1260 | // Reference: packages/edtr-services/src/constants.ts:27 |
| 1261 | - __( 'price', 'event_espresso' ), |
|
| 1261 | + __('price', 'event_espresso'), |
|
| 1262 | 1262 | |
| 1263 | 1263 | // Reference: packages/edtr-services/src/constants.ts:28 |
| 1264 | 1264 | // Reference: packages/tpc/src/components/price/input/Type.tsx:30 |
| 1265 | - __( 'price type', 'event_espresso' ), |
|
| 1265 | + __('price type', 'event_espresso'), |
|
| 1266 | 1266 | |
| 1267 | 1267 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:38 |
| 1268 | 1268 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:39 |
| 1269 | - __( 'End date has been adjusted', 'event_espresso' ), |
|
| 1269 | + __('End date has been adjusted', 'event_espresso'), |
|
| 1270 | 1270 | |
| 1271 | 1271 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:59 |
| 1272 | - __( 'Required', 'event_espresso' ), |
|
| 1272 | + __('Required', 'event_espresso'), |
|
| 1273 | 1273 | |
| 1274 | 1274 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:64 |
| 1275 | - __( 'Start Date is required', 'event_espresso' ), |
|
| 1275 | + __('Start Date is required', 'event_espresso'), |
|
| 1276 | 1276 | |
| 1277 | 1277 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:68 |
| 1278 | - __( 'End Date is required', 'event_espresso' ), |
|
| 1278 | + __('End Date is required', 'event_espresso'), |
|
| 1279 | 1279 | |
| 1280 | 1280 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:30 |
| 1281 | - __( 'no results found', 'event_espresso' ), |
|
| 1281 | + __('no results found', 'event_espresso'), |
|
| 1282 | 1282 | |
| 1283 | 1283 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:31 |
| 1284 | - __( 'try changing filter settings', 'event_espresso' ), |
|
| 1284 | + __('try changing filter settings', 'event_espresso'), |
|
| 1285 | 1285 | |
| 1286 | 1286 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:38 |
| 1287 | 1287 | /* translators: %d entity id */ |
| 1288 | - __( 'select entity with id %d', 'event_espresso' ), |
|
| 1288 | + __('select entity with id %d', 'event_espresso'), |
|
| 1289 | 1289 | |
| 1290 | 1290 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:41 |
| 1291 | - __( 'select all entities', 'event_espresso' ), |
|
| 1291 | + __('select all entities', 'event_espresso'), |
|
| 1292 | 1292 | |
| 1293 | 1293 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:21 |
| 1294 | - __( 'Note: ', 'event_espresso' ), |
|
| 1294 | + __('Note: ', 'event_espresso'), |
|
| 1295 | 1295 | |
| 1296 | 1296 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:21 |
| 1297 | - __( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ), |
|
| 1297 | + __('any changes will be applied to ALL of the selected entities.', 'event_espresso'), |
|
| 1298 | 1298 | |
| 1299 | 1299 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:28 |
| 1300 | - __( 'Bulk edit details', 'event_espresso' ), |
|
| 1300 | + __('Bulk edit details', 'event_espresso'), |
|
| 1301 | 1301 | |
| 1302 | 1302 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:17 |
| 1303 | - __( 'Are you sure you want to bulk update the details?', 'event_espresso' ), |
|
| 1303 | + __('Are you sure you want to bulk update the details?', 'event_espresso'), |
|
| 1304 | 1304 | |
| 1305 | 1305 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:18 |
| 1306 | - __( 'Bulk update details', 'event_espresso' ), |
|
| 1306 | + __('Bulk update details', 'event_espresso'), |
|
| 1307 | 1307 | |
| 1308 | 1308 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:26 |
| 1309 | - __( 'set order', 'event_espresso' ), |
|
| 1309 | + __('set order', 'event_espresso'), |
|
| 1310 | 1310 | |
| 1311 | 1311 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:28 |
| 1312 | - __( 'Set Custom Dates Order - this is how dates are ordered on the frontend', 'event_espresso' ), |
|
| 1312 | + __('Set Custom Dates Order - this is how dates are ordered on the frontend', 'event_espresso'), |
|
| 1313 | 1313 | |
| 1314 | 1314 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:29 |
| 1315 | - __( 'Set Custom Tickets Order - this is how tickets are ordered on the frontend', 'event_espresso' ), |
|
| 1315 | + __('Set Custom Tickets Order - this is how tickets are ordered on the frontend', 'event_espresso'), |
|
| 1316 | 1316 | |
| 1317 | 1317 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:33 |
| 1318 | - __( 'delete form element', 'event_espresso' ), |
|
| 1318 | + __('delete form element', 'event_espresso'), |
|
| 1319 | 1319 | |
| 1320 | 1320 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:50 |
| 1321 | - __( 'form element settings', 'event_espresso' ), |
|
| 1321 | + __('form element settings', 'event_espresso'), |
|
| 1322 | 1322 | |
| 1323 | 1323 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:60 |
| 1324 | - __( 'copy form element', 'event_espresso' ), |
|
| 1324 | + __('copy form element', 'event_espresso'), |
|
| 1325 | 1325 | |
| 1326 | 1326 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:70 |
| 1327 | - __( 'click, hold, and drag to reorder form element', 'event_espresso' ), |
|
| 1327 | + __('click, hold, and drag to reorder form element', 'event_espresso'), |
|
| 1328 | 1328 | |
| 1329 | 1329 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:20 |
| 1330 | - __( 'remove option', 'event_espresso' ), |
|
| 1330 | + __('remove option', 'event_espresso'), |
|
| 1331 | 1331 | |
| 1332 | 1332 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:42 |
| 1333 | - __( 'value', 'event_espresso' ), |
|
| 1333 | + __('value', 'event_espresso'), |
|
| 1334 | 1334 | |
| 1335 | 1335 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:52 |
| 1336 | - __( 'label', 'event_espresso' ), |
|
| 1336 | + __('label', 'event_espresso'), |
|
| 1337 | 1337 | |
| 1338 | 1338 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:63 |
| 1339 | - __( 'click, hold, and drag to reorder field option', 'event_espresso' ), |
|
| 1339 | + __('click, hold, and drag to reorder field option', 'event_espresso'), |
|
| 1340 | 1340 | |
| 1341 | 1341 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:61 |
| 1342 | - __( 'Options are the choices you give people to select from.', 'event_espresso' ), |
|
| 1342 | + __('Options are the choices you give people to select from.', 'event_espresso'), |
|
| 1343 | 1343 | |
| 1344 | 1344 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:63 |
| 1345 | - __( 'The value is a simple key that will be saved to the database and the label is what is shown to the user.', 'event_espresso' ), |
|
| 1345 | + __('The value is a simple key that will be saved to the database and the label is what is shown to the user.', 'event_espresso'), |
|
| 1346 | 1346 | |
| 1347 | 1347 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:96 |
| 1348 | - __( 'add new option', 'event_espresso' ), |
|
| 1348 | + __('add new option', 'event_espresso'), |
|
| 1349 | 1349 | |
| 1350 | 1350 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:27 |
| 1351 | 1351 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:26 |
| 1352 | - __( 'Styles', 'event_espresso' ), |
|
| 1352 | + __('Styles', 'event_espresso'), |
|
| 1353 | 1353 | |
| 1354 | 1354 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:31 |
| 1355 | - __( 'Validation', 'event_espresso' ), |
|
| 1355 | + __('Validation', 'event_espresso'), |
|
| 1356 | 1356 | |
| 1357 | 1357 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:18 |
| 1358 | - __( 'Change input type', 'event_espresso' ), |
|
| 1358 | + __('Change input type', 'event_espresso'), |
|
| 1359 | 1359 | |
| 1360 | 1360 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:19 |
| 1361 | - __( 'Some configurations might be lost. Are you sure you want to change the input type?', 'event_espresso' ), |
|
| 1361 | + __('Some configurations might be lost. Are you sure you want to change the input type?', 'event_espresso'), |
|
| 1362 | 1362 | |
| 1363 | 1363 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:40 |
| 1364 | - __( 'type', 'event_espresso' ), |
|
| 1364 | + __('type', 'event_espresso'), |
|
| 1365 | 1365 | |
| 1366 | 1366 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:26 |
| 1367 | 1367 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:17 |
| 1368 | - __( 'public label', 'event_espresso' ), |
|
| 1368 | + __('public label', 'event_espresso'), |
|
| 1369 | 1369 | |
| 1370 | 1370 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:33 |
| 1371 | 1371 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:22 |
| 1372 | - __( 'admin label', 'event_espresso' ), |
|
| 1372 | + __('admin label', 'event_espresso'), |
|
| 1373 | 1373 | |
| 1374 | 1374 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:40 |
| 1375 | - __( 'content', 'event_espresso' ), |
|
| 1375 | + __('content', 'event_espresso'), |
|
| 1376 | 1376 | |
| 1377 | 1377 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:48 |
| 1378 | - __( 'options', 'event_espresso' ), |
|
| 1378 | + __('options', 'event_espresso'), |
|
| 1379 | 1379 | |
| 1380 | 1380 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:51 |
| 1381 | - __( 'placeholder', 'event_espresso' ), |
|
| 1381 | + __('placeholder', 'event_espresso'), |
|
| 1382 | 1382 | |
| 1383 | 1383 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:57 |
| 1384 | - __( 'admin only', 'event_espresso' ), |
|
| 1384 | + __('admin only', 'event_espresso'), |
|
| 1385 | 1385 | |
| 1386 | 1386 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:62 |
| 1387 | - __( 'help text', 'event_espresso' ), |
|
| 1387 | + __('help text', 'event_espresso'), |
|
| 1388 | 1388 | |
| 1389 | 1389 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:71 |
| 1390 | - __( 'maps to', 'event_espresso' ), |
|
| 1390 | + __('maps to', 'event_espresso'), |
|
| 1391 | 1391 | |
| 1392 | 1392 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:15 |
| 1393 | 1393 | // Reference: packages/form-builder/src/FormSection/Tabs/Styles.tsx:13 |
| 1394 | - __( 'css class', 'event_espresso' ), |
|
| 1394 | + __('css class', 'event_espresso'), |
|
| 1395 | 1395 | |
| 1396 | 1396 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:20 |
| 1397 | - __( 'help text css class', 'event_espresso' ), |
|
| 1397 | + __('help text css class', 'event_espresso'), |
|
| 1398 | 1398 | |
| 1399 | 1399 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:27 |
| 1400 | - __( 'size', 'event_espresso' ), |
|
| 1400 | + __('size', 'event_espresso'), |
|
| 1401 | 1401 | |
| 1402 | 1402 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:35 |
| 1403 | - __( 'step', 'event_espresso' ), |
|
| 1403 | + __('step', 'event_espresso'), |
|
| 1404 | 1404 | |
| 1405 | 1405 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:41 |
| 1406 | - __( 'maxlength', 'event_espresso' ), |
|
| 1406 | + __('maxlength', 'event_espresso'), |
|
| 1407 | 1407 | |
| 1408 | 1408 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:123 |
| 1409 | - __( 'min', 'event_espresso' ), |
|
| 1409 | + __('min', 'event_espresso'), |
|
| 1410 | 1410 | |
| 1411 | 1411 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:128 |
| 1412 | - __( 'max', 'event_espresso' ), |
|
| 1412 | + __('max', 'event_espresso'), |
|
| 1413 | 1413 | |
| 1414 | 1414 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:28 |
| 1415 | - __( 'Germany', 'event_espresso' ), |
|
| 1415 | + __('Germany', 'event_espresso'), |
|
| 1416 | 1416 | |
| 1417 | 1417 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:32 |
| 1418 | - __( 'France', 'event_espresso' ), |
|
| 1418 | + __('France', 'event_espresso'), |
|
| 1419 | 1419 | |
| 1420 | 1420 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:36 |
| 1421 | - __( 'United Kingdom', 'event_espresso' ), |
|
| 1421 | + __('United Kingdom', 'event_espresso'), |
|
| 1422 | 1422 | |
| 1423 | 1423 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:40 |
| 1424 | - __( 'United States', 'event_espresso' ), |
|
| 1424 | + __('United States', 'event_espresso'), |
|
| 1425 | 1425 | |
| 1426 | 1426 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:44 |
| 1427 | - __( 'Custom', 'event_espresso' ), |
|
| 1427 | + __('Custom', 'event_espresso'), |
|
| 1428 | 1428 | |
| 1429 | 1429 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:54 |
| 1430 | - __( 'required', 'event_espresso' ), |
|
| 1430 | + __('required', 'event_espresso'), |
|
| 1431 | 1431 | |
| 1432 | 1432 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:59 |
| 1433 | - __( 'required text', 'event_espresso' ), |
|
| 1433 | + __('required text', 'event_espresso'), |
|
| 1434 | 1434 | |
| 1435 | 1435 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:66 |
| 1436 | - __( 'autocomplete', 'event_espresso' ), |
|
| 1436 | + __('autocomplete', 'event_espresso'), |
|
| 1437 | 1437 | |
| 1438 | 1438 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:74 |
| 1439 | - __( 'custom format', 'event_espresso' ), |
|
| 1439 | + __('custom format', 'event_espresso'), |
|
| 1440 | 1440 | |
| 1441 | 1441 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:75 |
| 1442 | - __( 'format', 'event_espresso' ), |
|
| 1442 | + __('format', 'event_espresso'), |
|
| 1443 | 1443 | |
| 1444 | 1444 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:83 |
| 1445 | - __( 'pattern', 'event_espresso' ), |
|
| 1445 | + __('pattern', 'event_espresso'), |
|
| 1446 | 1446 | |
| 1447 | 1447 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:110 |
| 1448 | - __( 'add new form element', 'event_espresso' ), |
|
| 1448 | + __('add new form element', 'event_espresso'), |
|
| 1449 | 1449 | |
| 1450 | 1450 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:117 |
| 1451 | 1451 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:52 |
| 1452 | - __( 'Add', 'event_espresso' ), |
|
| 1452 | + __('Add', 'event_espresso'), |
|
| 1453 | 1453 | |
| 1454 | 1454 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:76 |
| 1455 | - __( 'Add Form Element', 'event_espresso' ), |
|
| 1455 | + __('Add Form Element', 'event_espresso'), |
|
| 1456 | 1456 | |
| 1457 | 1457 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:85 |
| 1458 | - __( 'form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso' ), |
|
| 1458 | + __('form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso'), |
|
| 1459 | 1459 | |
| 1460 | 1460 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:92 |
| 1461 | - __( 'load existing form section', 'event_espresso' ), |
|
| 1461 | + __('load existing form section', 'event_espresso'), |
|
| 1462 | 1462 | |
| 1463 | 1463 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:33 |
| 1464 | - __( 'delete form section', 'event_espresso' ), |
|
| 1464 | + __('delete form section', 'event_espresso'), |
|
| 1465 | 1465 | |
| 1466 | 1466 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:48 |
| 1467 | - __( 'form section settings', 'event_espresso' ), |
|
| 1467 | + __('form section settings', 'event_espresso'), |
|
| 1468 | 1468 | |
| 1469 | 1469 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:58 |
| 1470 | - __( 'copy form section', 'event_espresso' ), |
|
| 1470 | + __('copy form section', 'event_espresso'), |
|
| 1471 | 1471 | |
| 1472 | 1472 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:75 |
| 1473 | - __( 'click, hold, and drag to reorder form section', 'event_espresso' ), |
|
| 1473 | + __('click, hold, and drag to reorder form section', 'event_espresso'), |
|
| 1474 | 1474 | |
| 1475 | 1475 | // Reference: packages/form-builder/src/FormSection/FormSections.tsx:27 |
| 1476 | - __( 'Add Form Section', 'event_espresso' ), |
|
| 1476 | + __('Add Form Section', 'event_espresso'), |
|
| 1477 | 1477 | |
| 1478 | 1478 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:47 |
| 1479 | - __( 'save form section for use in other forms', 'event_espresso' ), |
|
| 1479 | + __('save form section for use in other forms', 'event_espresso'), |
|
| 1480 | 1480 | |
| 1481 | 1481 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:51 |
| 1482 | - __( 'save as', 'event_espresso' ), |
|
| 1482 | + __('save as', 'event_espresso'), |
|
| 1483 | 1483 | |
| 1484 | 1484 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:55 |
| 1485 | - __( 'default', 'event_espresso' ), |
|
| 1485 | + __('default', 'event_espresso'), |
|
| 1486 | 1486 | |
| 1487 | 1487 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:60 |
| 1488 | - __( ' a copy of this form section will be automatically added to ALL new events', 'event_espresso' ), |
|
| 1488 | + __(' a copy of this form section will be automatically added to ALL new events', 'event_espresso'), |
|
| 1489 | 1489 | |
| 1490 | 1490 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:64 |
| 1491 | - __( 'shared', 'event_espresso' ), |
|
| 1491 | + __('shared', 'event_espresso'), |
|
| 1492 | 1492 | |
| 1493 | 1493 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:67 |
| 1494 | - __( 'a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso' ), |
|
| 1494 | + __('a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso'), |
|
| 1495 | 1495 | |
| 1496 | 1496 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:27 |
| 1497 | - __( 'show label', 'event_espresso' ), |
|
| 1497 | + __('show label', 'event_espresso'), |
|
| 1498 | 1498 | |
| 1499 | 1499 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:33 |
| 1500 | - __( 'applies to', 'event_espresso' ), |
|
| 1500 | + __('applies to', 'event_espresso'), |
|
| 1501 | 1501 | |
| 1502 | 1502 | // Reference: packages/form-builder/src/constants.ts:102 |
| 1503 | 1503 | // Reference: packages/form-builder/src/state/utils.ts:436 |
| 1504 | - __( 'URL', 'event_espresso' ), |
|
| 1504 | + __('URL', 'event_espresso'), |
|
| 1505 | 1505 | |
| 1506 | 1506 | // Reference: packages/form-builder/src/constants.ts:104 |
| 1507 | - __( 'adds a text input for entering a URL address', 'event_espresso' ), |
|
| 1507 | + __('adds a text input for entering a URL address', 'event_espresso'), |
|
| 1508 | 1508 | |
| 1509 | 1509 | // Reference: packages/form-builder/src/constants.ts:107 |
| 1510 | - __( 'Date', 'event_espresso' ), |
|
| 1510 | + __('Date', 'event_espresso'), |
|
| 1511 | 1511 | |
| 1512 | 1512 | // Reference: packages/form-builder/src/constants.ts:109 |
| 1513 | - __( 'adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso' ), |
|
| 1513 | + __('adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso'), |
|
| 1514 | 1514 | |
| 1515 | 1515 | // Reference: packages/form-builder/src/constants.ts:112 |
| 1516 | 1516 | // Reference: packages/form-builder/src/state/utils.ts:369 |
| 1517 | - __( 'Local Date', 'event_espresso' ), |
|
| 1517 | + __('Local Date', 'event_espresso'), |
|
| 1518 | 1518 | |
| 1519 | 1519 | // Reference: packages/form-builder/src/constants.ts:117 |
| 1520 | - __( 'Month', 'event_espresso' ), |
|
| 1520 | + __('Month', 'event_espresso'), |
|
| 1521 | 1521 | |
| 1522 | 1522 | // Reference: packages/form-builder/src/constants.ts:119 |
| 1523 | - __( 'adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
| 1523 | + __('adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso'), |
|
| 1524 | 1524 | |
| 1525 | 1525 | // Reference: packages/form-builder/src/constants.ts:122 |
| 1526 | - __( 'Time', 'event_espresso' ), |
|
| 1526 | + __('Time', 'event_espresso'), |
|
| 1527 | 1527 | |
| 1528 | 1528 | // Reference: packages/form-builder/src/constants.ts:124 |
| 1529 | - __( 'adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso' ), |
|
| 1529 | + __('adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso'), |
|
| 1530 | 1530 | |
| 1531 | 1531 | // Reference: packages/form-builder/src/constants.ts:127 |
| 1532 | - __( 'Week', 'event_espresso' ), |
|
| 1532 | + __('Week', 'event_espresso'), |
|
| 1533 | 1533 | |
| 1534 | 1534 | // Reference: packages/form-builder/src/constants.ts:129 |
| 1535 | - __( 'adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
| 1535 | + __('adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso'), |
|
| 1536 | 1536 | |
| 1537 | 1537 | // Reference: packages/form-builder/src/constants.ts:132 |
| 1538 | - __( 'Day Selector', 'event_espresso' ), |
|
| 1538 | + __('Day Selector', 'event_espresso'), |
|
| 1539 | 1539 | |
| 1540 | 1540 | // Reference: packages/form-builder/src/constants.ts:134 |
| 1541 | - __( 'adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso' ), |
|
| 1541 | + __('adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso'), |
|
| 1542 | 1542 | |
| 1543 | 1543 | // Reference: packages/form-builder/src/constants.ts:137 |
| 1544 | - __( 'Month Selector', 'event_espresso' ), |
|
| 1544 | + __('Month Selector', 'event_espresso'), |
|
| 1545 | 1545 | |
| 1546 | 1546 | // Reference: packages/form-builder/src/constants.ts:139 |
| 1547 | - __( 'adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso' ), |
|
| 1547 | + __('adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso'), |
|
| 1548 | 1548 | |
| 1549 | 1549 | // Reference: packages/form-builder/src/constants.ts:142 |
| 1550 | - __( 'Year Selector', 'event_espresso' ), |
|
| 1550 | + __('Year Selector', 'event_espresso'), |
|
| 1551 | 1551 | |
| 1552 | 1552 | // Reference: packages/form-builder/src/constants.ts:144 |
| 1553 | - __( 'adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso' ), |
|
| 1553 | + __('adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso'), |
|
| 1554 | 1554 | |
| 1555 | 1555 | // Reference: packages/form-builder/src/constants.ts:147 |
| 1556 | - __( 'Radio Buttons', 'event_espresso' ), |
|
| 1556 | + __('Radio Buttons', 'event_espresso'), |
|
| 1557 | 1557 | |
| 1558 | 1558 | // Reference: packages/form-builder/src/constants.ts:149 |
| 1559 | - __( 'adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso' ), |
|
| 1559 | + __('adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso'), |
|
| 1560 | 1560 | |
| 1561 | 1561 | // Reference: packages/form-builder/src/constants.ts:152 |
| 1562 | 1562 | // Reference: packages/form-builder/src/state/utils.ts:375 |
| 1563 | - __( 'Decimal Number', 'event_espresso' ), |
|
| 1563 | + __('Decimal Number', 'event_espresso'), |
|
| 1564 | 1564 | |
| 1565 | 1565 | // Reference: packages/form-builder/src/constants.ts:154 |
| 1566 | - __( 'adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso' ), |
|
| 1566 | + __('adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso'), |
|
| 1567 | 1567 | |
| 1568 | 1568 | // Reference: packages/form-builder/src/constants.ts:157 |
| 1569 | 1569 | // Reference: packages/form-builder/src/state/utils.ts:378 |
| 1570 | - __( 'Whole Number', 'event_espresso' ), |
|
| 1570 | + __('Whole Number', 'event_espresso'), |
|
| 1571 | 1571 | |
| 1572 | 1572 | // Reference: packages/form-builder/src/constants.ts:159 |
| 1573 | - __( 'adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso' ), |
|
| 1573 | + __('adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso'), |
|
| 1574 | 1574 | |
| 1575 | 1575 | // Reference: packages/form-builder/src/constants.ts:162 |
| 1576 | - __( 'Number Range', 'event_espresso' ), |
|
| 1576 | + __('Number Range', 'event_espresso'), |
|
| 1577 | 1577 | |
| 1578 | 1578 | // Reference: packages/form-builder/src/constants.ts:167 |
| 1579 | - __( 'Phone Number', 'event_espresso' ), |
|
| 1579 | + __('Phone Number', 'event_espresso'), |
|
| 1580 | 1580 | |
| 1581 | 1581 | // Reference: packages/form-builder/src/constants.ts:172 |
| 1582 | - __( 'Dropdown', 'event_espresso' ), |
|
| 1582 | + __('Dropdown', 'event_espresso'), |
|
| 1583 | 1583 | |
| 1584 | 1584 | // Reference: packages/form-builder/src/constants.ts:174 |
| 1585 | - __( 'adds a dropdown selector that accepts a single value', 'event_espresso' ), |
|
| 1585 | + __('adds a dropdown selector that accepts a single value', 'event_espresso'), |
|
| 1586 | 1586 | |
| 1587 | 1587 | // Reference: packages/form-builder/src/constants.ts:177 |
| 1588 | - __( 'Multi Select', 'event_espresso' ), |
|
| 1588 | + __('Multi Select', 'event_espresso'), |
|
| 1589 | 1589 | |
| 1590 | 1590 | // Reference: packages/form-builder/src/constants.ts:179 |
| 1591 | - __( 'adds a dropdown selector that accepts multiple values', 'event_espresso' ), |
|
| 1591 | + __('adds a dropdown selector that accepts multiple values', 'event_espresso'), |
|
| 1592 | 1592 | |
| 1593 | 1593 | // Reference: packages/form-builder/src/constants.ts:182 |
| 1594 | - __( 'Toggle/Switch', 'event_espresso' ), |
|
| 1594 | + __('Toggle/Switch', 'event_espresso'), |
|
| 1595 | 1595 | |
| 1596 | 1596 | // Reference: packages/form-builder/src/constants.ts:184 |
| 1597 | - __( 'adds a toggle or a switch to accept true or false value', 'event_espresso' ), |
|
| 1597 | + __('adds a toggle or a switch to accept true or false value', 'event_espresso'), |
|
| 1598 | 1598 | |
| 1599 | 1599 | // Reference: packages/form-builder/src/constants.ts:187 |
| 1600 | - __( 'Multi Checkbox', 'event_espresso' ), |
|
| 1600 | + __('Multi Checkbox', 'event_espresso'), |
|
| 1601 | 1601 | |
| 1602 | 1602 | // Reference: packages/form-builder/src/constants.ts:189 |
| 1603 | - __( 'adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso' ), |
|
| 1603 | + __('adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso'), |
|
| 1604 | 1604 | |
| 1605 | 1605 | // Reference: packages/form-builder/src/constants.ts:192 |
| 1606 | - __( 'Country Selector', 'event_espresso' ), |
|
| 1606 | + __('Country Selector', 'event_espresso'), |
|
| 1607 | 1607 | |
| 1608 | 1608 | // Reference: packages/form-builder/src/constants.ts:194 |
| 1609 | - __( 'adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso' ), |
|
| 1609 | + __('adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso'), |
|
| 1610 | 1610 | |
| 1611 | 1611 | // Reference: packages/form-builder/src/constants.ts:197 |
| 1612 | - __( 'State Selector', 'event_espresso' ), |
|
| 1612 | + __('State Selector', 'event_espresso'), |
|
| 1613 | 1613 | |
| 1614 | 1614 | // Reference: packages/form-builder/src/constants.ts:202 |
| 1615 | - __( 'Button', 'event_espresso' ), |
|
| 1615 | + __('Button', 'event_espresso'), |
|
| 1616 | 1616 | |
| 1617 | 1617 | // Reference: packages/form-builder/src/constants.ts:204 |
| 1618 | - __( 'adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso' ), |
|
| 1618 | + __('adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso'), |
|
| 1619 | 1619 | |
| 1620 | 1620 | // Reference: packages/form-builder/src/constants.ts:207 |
| 1621 | - __( 'Reset Button', 'event_espresso' ), |
|
| 1621 | + __('Reset Button', 'event_espresso'), |
|
| 1622 | 1622 | |
| 1623 | 1623 | // Reference: packages/form-builder/src/constants.ts:209 |
| 1624 | - __( 'adds a button that will reset the form back to its original state.', 'event_espresso' ), |
|
| 1624 | + __('adds a button that will reset the form back to its original state.', 'event_espresso'), |
|
| 1625 | 1625 | |
| 1626 | 1626 | // Reference: packages/form-builder/src/constants.ts:55 |
| 1627 | - __( 'Form Section', 'event_espresso' ), |
|
| 1627 | + __('Form Section', 'event_espresso'), |
|
| 1628 | 1628 | |
| 1629 | 1629 | // Reference: packages/form-builder/src/constants.ts:57 |
| 1630 | - __( 'Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso' ), |
|
| 1630 | + __('Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso'), |
|
| 1631 | 1631 | |
| 1632 | 1632 | // Reference: packages/form-builder/src/constants.ts:62 |
| 1633 | - __( 'HTML Block', 'event_espresso' ), |
|
| 1633 | + __('HTML Block', 'event_espresso'), |
|
| 1634 | 1634 | |
| 1635 | 1635 | // Reference: packages/form-builder/src/constants.ts:64 |
| 1636 | - __( 'allows you to add HTML like headings or text paragraphs to your form', 'event_espresso' ), |
|
| 1636 | + __('allows you to add HTML like headings or text paragraphs to your form', 'event_espresso'), |
|
| 1637 | 1637 | |
| 1638 | 1638 | // Reference: packages/form-builder/src/constants.ts:69 |
| 1639 | - __( 'adds a text input that only accepts plain text', 'event_espresso' ), |
|
| 1639 | + __('adds a text input that only accepts plain text', 'event_espresso'), |
|
| 1640 | 1640 | |
| 1641 | 1641 | // Reference: packages/form-builder/src/constants.ts:72 |
| 1642 | - __( 'Plain Text Area', 'event_espresso' ), |
|
| 1642 | + __('Plain Text Area', 'event_espresso'), |
|
| 1643 | 1643 | |
| 1644 | 1644 | // Reference: packages/form-builder/src/constants.ts:74 |
| 1645 | - __( 'adds a textarea block that only accepts plain text', 'event_espresso' ), |
|
| 1645 | + __('adds a textarea block that only accepts plain text', 'event_espresso'), |
|
| 1646 | 1646 | |
| 1647 | 1647 | // Reference: packages/form-builder/src/constants.ts:77 |
| 1648 | - __( 'HTML Text Area', 'event_espresso' ), |
|
| 1648 | + __('HTML Text Area', 'event_espresso'), |
|
| 1649 | 1649 | |
| 1650 | 1650 | // Reference: packages/form-builder/src/constants.ts:79 |
| 1651 | - __( 'adds a textarea block that accepts text including simple HTML markup', 'event_espresso' ), |
|
| 1651 | + __('adds a textarea block that accepts text including simple HTML markup', 'event_espresso'), |
|
| 1652 | 1652 | |
| 1653 | 1653 | // Reference: packages/form-builder/src/constants.ts:84 |
| 1654 | - __( 'adds a text input that only accepts a valid email address', 'event_espresso' ), |
|
| 1654 | + __('adds a text input that only accepts a valid email address', 'event_espresso'), |
|
| 1655 | 1655 | |
| 1656 | 1656 | // Reference: packages/form-builder/src/constants.ts:87 |
| 1657 | - __( 'Email Confirmation', 'event_espresso' ), |
|
| 1657 | + __('Email Confirmation', 'event_espresso'), |
|
| 1658 | 1658 | |
| 1659 | 1659 | // Reference: packages/form-builder/src/constants.ts:92 |
| 1660 | - __( 'Password', 'event_espresso' ), |
|
| 1660 | + __('Password', 'event_espresso'), |
|
| 1661 | 1661 | |
| 1662 | 1662 | // Reference: packages/form-builder/src/constants.ts:94 |
| 1663 | - __( 'adds a text input that accepts text but masks what the user enters', 'event_espresso' ), |
|
| 1663 | + __('adds a text input that accepts text but masks what the user enters', 'event_espresso'), |
|
| 1664 | 1664 | |
| 1665 | 1665 | // Reference: packages/form-builder/src/constants.ts:97 |
| 1666 | - __( 'Password Confirmation', 'event_espresso' ), |
|
| 1666 | + __('Password Confirmation', 'event_espresso'), |
|
| 1667 | 1667 | |
| 1668 | 1668 | // Reference: packages/form-builder/src/data/useElementMutator.ts:54 |
| 1669 | - __( 'element', 'event_espresso' ), |
|
| 1669 | + __('element', 'event_espresso'), |
|
| 1670 | 1670 | |
| 1671 | 1671 | // Reference: packages/form-builder/src/data/useSectionMutator.ts:54 |
| 1672 | - __( 'section', 'event_espresso' ), |
|
| 1672 | + __('section', 'event_espresso'), |
|
| 1673 | 1673 | |
| 1674 | 1674 | // Reference: packages/form-builder/src/state/utils.ts:360 |
| 1675 | - __( 'click', 'event_espresso' ), |
|
| 1675 | + __('click', 'event_espresso'), |
|
| 1676 | 1676 | |
| 1677 | 1677 | // Reference: packages/form-builder/src/state/utils.ts:363 |
| 1678 | - __( 'checkboxes', 'event_espresso' ), |
|
| 1678 | + __('checkboxes', 'event_espresso'), |
|
| 1679 | 1679 | |
| 1680 | 1680 | // Reference: packages/form-builder/src/state/utils.ts:366 |
| 1681 | - __( 'date', 'event_espresso' ), |
|
| 1681 | + __('date', 'event_espresso'), |
|
| 1682 | 1682 | |
| 1683 | 1683 | // Reference: packages/form-builder/src/state/utils.ts:372 |
| 1684 | - __( 'day', 'event_espresso' ), |
|
| 1684 | + __('day', 'event_espresso'), |
|
| 1685 | 1685 | |
| 1686 | 1686 | // Reference: packages/form-builder/src/state/utils.ts:381 |
| 1687 | - __( 'email address', 'event_espresso' ), |
|
| 1687 | + __('email address', 'event_espresso'), |
|
| 1688 | 1688 | |
| 1689 | 1689 | // Reference: packages/form-builder/src/state/utils.ts:384 |
| 1690 | - __( 'confirm email address', 'event_espresso' ), |
|
| 1690 | + __('confirm email address', 'event_espresso'), |
|
| 1691 | 1691 | |
| 1692 | 1692 | // Reference: packages/form-builder/src/state/utils.ts:388 |
| 1693 | - __( 'month', 'event_espresso' ), |
|
| 1693 | + __('month', 'event_espresso'), |
|
| 1694 | 1694 | |
| 1695 | 1695 | // Reference: packages/form-builder/src/state/utils.ts:391 |
| 1696 | - __( 'password', 'event_espresso' ), |
|
| 1696 | + __('password', 'event_espresso'), |
|
| 1697 | 1697 | |
| 1698 | 1698 | // Reference: packages/form-builder/src/state/utils.ts:394 |
| 1699 | - __( 'confirm password', 'event_espresso' ), |
|
| 1699 | + __('confirm password', 'event_espresso'), |
|
| 1700 | 1700 | |
| 1701 | 1701 | // Reference: packages/form-builder/src/state/utils.ts:397 |
| 1702 | - __( 'radio buttons', 'event_espresso' ), |
|
| 1702 | + __('radio buttons', 'event_espresso'), |
|
| 1703 | 1703 | |
| 1704 | 1704 | // Reference: packages/form-builder/src/state/utils.ts:400 |
| 1705 | - __( 'number range', 'event_espresso' ), |
|
| 1705 | + __('number range', 'event_espresso'), |
|
| 1706 | 1706 | |
| 1707 | 1707 | // Reference: packages/form-builder/src/state/utils.ts:403 |
| 1708 | - __( 'selection dropdown', 'event_espresso' ), |
|
| 1708 | + __('selection dropdown', 'event_espresso'), |
|
| 1709 | 1709 | |
| 1710 | 1710 | // Reference: packages/form-builder/src/state/utils.ts:406 |
| 1711 | - __( 'country', 'event_espresso' ), |
|
| 1711 | + __('country', 'event_espresso'), |
|
| 1712 | 1712 | |
| 1713 | 1713 | // Reference: packages/form-builder/src/state/utils.ts:409 |
| 1714 | - __( 'multi-select dropdown', 'event_espresso' ), |
|
| 1714 | + __('multi-select dropdown', 'event_espresso'), |
|
| 1715 | 1715 | |
| 1716 | 1716 | // Reference: packages/form-builder/src/state/utils.ts:412 |
| 1717 | - __( 'state/province', 'event_espresso' ), |
|
| 1717 | + __('state/province', 'event_espresso'), |
|
| 1718 | 1718 | |
| 1719 | 1719 | // Reference: packages/form-builder/src/state/utils.ts:415 |
| 1720 | - __( 'on/off switch', 'event_espresso' ), |
|
| 1720 | + __('on/off switch', 'event_espresso'), |
|
| 1721 | 1721 | |
| 1722 | 1722 | // Reference: packages/form-builder/src/state/utils.ts:418 |
| 1723 | - __( 'reset', 'event_espresso' ), |
|
| 1723 | + __('reset', 'event_espresso'), |
|
| 1724 | 1724 | |
| 1725 | 1725 | // Reference: packages/form-builder/src/state/utils.ts:421 |
| 1726 | - __( 'phone number', 'event_espresso' ), |
|
| 1726 | + __('phone number', 'event_espresso'), |
|
| 1727 | 1727 | |
| 1728 | 1728 | // Reference: packages/form-builder/src/state/utils.ts:424 |
| 1729 | - __( 'text', 'event_espresso' ), |
|
| 1729 | + __('text', 'event_espresso'), |
|
| 1730 | 1730 | |
| 1731 | 1731 | // Reference: packages/form-builder/src/state/utils.ts:427 |
| 1732 | - __( 'simple textarea', 'event_espresso' ), |
|
| 1732 | + __('simple textarea', 'event_espresso'), |
|
| 1733 | 1733 | |
| 1734 | 1734 | // Reference: packages/form-builder/src/state/utils.ts:430 |
| 1735 | - __( 'html textarea', 'event_espresso' ), |
|
| 1735 | + __('html textarea', 'event_espresso'), |
|
| 1736 | 1736 | |
| 1737 | 1737 | // Reference: packages/form-builder/src/state/utils.ts:439 |
| 1738 | - __( 'week', 'event_espresso' ), |
|
| 1738 | + __('week', 'event_espresso'), |
|
| 1739 | 1739 | |
| 1740 | 1740 | // Reference: packages/form-builder/src/state/utils.ts:442 |
| 1741 | - __( 'year', 'event_espresso' ), |
|
| 1741 | + __('year', 'event_espresso'), |
|
| 1742 | 1742 | |
| 1743 | 1743 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:13 |
| 1744 | - __( 'Select Image', 'event_espresso' ), |
|
| 1744 | + __('Select Image', 'event_espresso'), |
|
| 1745 | 1745 | |
| 1746 | 1746 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:45 |
| 1747 | 1747 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:11 |
| 1748 | 1748 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:12 |
| 1749 | 1749 | // Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:32 |
| 1750 | - __( 'Select', 'event_espresso' ), |
|
| 1750 | + __('Select', 'event_espresso'), |
|
| 1751 | 1751 | |
| 1752 | 1752 | // Reference: packages/form/src/renderers/FormRenderer.tsx:51 |
| 1753 | - __( 'Form Errors', 'event_espresso' ), |
|
| 1753 | + __('Form Errors', 'event_espresso'), |
|
| 1754 | 1754 | |
| 1755 | 1755 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:36 |
| 1756 | 1756 | /* translators: %d the entry number */ |
| 1757 | - __( 'Entry %d', 'event_espresso' ), |
|
| 1757 | + __('Entry %d', 'event_espresso'), |
|
| 1758 | 1758 | |
| 1759 | 1759 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
| 1760 | 1760 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
| 1761 | - __( 'sold out', 'event_espresso' ), |
|
| 1761 | + __('sold out', 'event_espresso'), |
|
| 1762 | 1762 | |
| 1763 | 1763 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
| 1764 | 1764 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
| 1765 | - __( 'expired', 'event_espresso' ), |
|
| 1765 | + __('expired', 'event_espresso'), |
|
| 1766 | 1766 | |
| 1767 | 1767 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
| 1768 | - __( 'upcoming', 'event_espresso' ), |
|
| 1768 | + __('upcoming', 'event_espresso'), |
|
| 1769 | 1769 | |
| 1770 | 1770 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
| 1771 | - __( 'active', 'event_espresso' ), |
|
| 1771 | + __('active', 'event_espresso'), |
|
| 1772 | 1772 | |
| 1773 | 1773 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
| 1774 | 1774 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
| 1775 | - __( 'trashed', 'event_espresso' ), |
|
| 1775 | + __('trashed', 'event_espresso'), |
|
| 1776 | 1776 | |
| 1777 | 1777 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
| 1778 | - __( 'cancelled', 'event_espresso' ), |
|
| 1778 | + __('cancelled', 'event_espresso'), |
|
| 1779 | 1779 | |
| 1780 | 1780 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
| 1781 | - __( 'postponed', 'event_espresso' ), |
|
| 1781 | + __('postponed', 'event_espresso'), |
|
| 1782 | 1782 | |
| 1783 | 1783 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
| 1784 | - __( 'inactive', 'event_espresso' ), |
|
| 1784 | + __('inactive', 'event_espresso'), |
|
| 1785 | 1785 | |
| 1786 | 1786 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
| 1787 | - __( 'pending', 'event_espresso' ), |
|
| 1787 | + __('pending', 'event_espresso'), |
|
| 1788 | 1788 | |
| 1789 | 1789 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
| 1790 | - __( 'on sale', 'event_espresso' ), |
|
| 1790 | + __('on sale', 'event_espresso'), |
|
| 1791 | 1791 | |
| 1792 | 1792 | // Reference: packages/helpers/src/tickets/ticketVisibilityOptions.ts:7 |
| 1793 | - __( 'Where the ticket can be viewed throughout the UI. ', 'event_espresso' ), |
|
| 1793 | + __('Where the ticket can be viewed throughout the UI. ', 'event_espresso'), |
|
| 1794 | 1794 | |
| 1795 | 1795 | // Reference: packages/predicates/src/registration/statusOptions.ts:16 |
| 1796 | - __( 'Declined', 'event_espresso' ), |
|
| 1796 | + __('Declined', 'event_espresso'), |
|
| 1797 | 1797 | |
| 1798 | 1798 | // Reference: packages/predicates/src/registration/statusOptions.ts:21 |
| 1799 | - __( 'Incomplete', 'event_espresso' ), |
|
| 1799 | + __('Incomplete', 'event_espresso'), |
|
| 1800 | 1800 | |
| 1801 | 1801 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
| 1802 | - __( 'Not Approved', 'event_espresso' ), |
|
| 1802 | + __('Not Approved', 'event_espresso'), |
|
| 1803 | 1803 | |
| 1804 | 1804 | // Reference: packages/predicates/src/registration/statusOptions.ts:31 |
| 1805 | - __( 'Pending Payment', 'event_espresso' ), |
|
| 1805 | + __('Pending Payment', 'event_espresso'), |
|
| 1806 | 1806 | |
| 1807 | 1807 | // Reference: packages/predicates/src/registration/statusOptions.ts:36 |
| 1808 | - __( 'Wait List', 'event_espresso' ), |
|
| 1808 | + __('Wait List', 'event_espresso'), |
|
| 1809 | 1809 | |
| 1810 | 1810 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
| 1811 | - __( 'Approved', 'event_espresso' ), |
|
| 1811 | + __('Approved', 'event_espresso'), |
|
| 1812 | 1812 | |
| 1813 | 1813 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:9 |
| 1814 | 1814 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:10 |
| 1815 | - __( 'Select media', 'event_espresso' ), |
|
| 1815 | + __('Select media', 'event_espresso'), |
|
| 1816 | 1816 | |
| 1817 | 1817 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/RichTextEditor.tsx:84 |
| 1818 | - __( 'Write something…', 'event_espresso' ), |
|
| 1818 | + __('Write something…', 'event_espresso'), |
|
| 1819 | 1819 | |
| 1820 | 1820 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/Toolbar.tsx:20 |
| 1821 | - __( 'RTE Toolbar', 'event_espresso' ), |
|
| 1821 | + __('RTE Toolbar', 'event_espresso'), |
|
| 1822 | 1822 | |
| 1823 | 1823 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:11 |
| 1824 | - __( 'Normal', 'event_espresso' ), |
|
| 1824 | + __('Normal', 'event_espresso'), |
|
| 1825 | 1825 | |
| 1826 | 1826 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:12 |
| 1827 | - __( 'H1', 'event_espresso' ), |
|
| 1827 | + __('H1', 'event_espresso'), |
|
| 1828 | 1828 | |
| 1829 | 1829 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:13 |
| 1830 | - __( 'H2', 'event_espresso' ), |
|
| 1830 | + __('H2', 'event_espresso'), |
|
| 1831 | 1831 | |
| 1832 | 1832 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:14 |
| 1833 | - __( 'H3', 'event_espresso' ), |
|
| 1833 | + __('H3', 'event_espresso'), |
|
| 1834 | 1834 | |
| 1835 | 1835 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:15 |
| 1836 | - __( 'H4', 'event_espresso' ), |
|
| 1836 | + __('H4', 'event_espresso'), |
|
| 1837 | 1837 | |
| 1838 | 1838 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:16 |
| 1839 | - __( 'H5', 'event_espresso' ), |
|
| 1839 | + __('H5', 'event_espresso'), |
|
| 1840 | 1840 | |
| 1841 | 1841 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:17 |
| 1842 | - __( 'H6', 'event_espresso' ), |
|
| 1842 | + __('H6', 'event_espresso'), |
|
| 1843 | 1843 | |
| 1844 | 1844 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:18 |
| 1845 | - __( 'Block quote', 'event_espresso' ), |
|
| 1845 | + __('Block quote', 'event_espresso'), |
|
| 1846 | 1846 | |
| 1847 | 1847 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:19 |
| 1848 | - __( 'Code', 'event_espresso' ), |
|
| 1848 | + __('Code', 'event_espresso'), |
|
| 1849 | 1849 | |
| 1850 | 1850 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:36 |
| 1851 | - __( 'Set color', 'event_espresso' ), |
|
| 1851 | + __('Set color', 'event_espresso'), |
|
| 1852 | 1852 | |
| 1853 | 1853 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:45 |
| 1854 | - __( 'Text color', 'event_espresso' ), |
|
| 1854 | + __('Text color', 'event_espresso'), |
|
| 1855 | 1855 | |
| 1856 | 1856 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:47 |
| 1857 | - __( 'Background color', 'event_espresso' ), |
|
| 1857 | + __('Background color', 'event_espresso'), |
|
| 1858 | 1858 | |
| 1859 | 1859 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:39 |
| 1860 | - __( 'Add image', 'event_espresso' ), |
|
| 1860 | + __('Add image', 'event_espresso'), |
|
| 1861 | 1861 | |
| 1862 | 1862 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:51 |
| 1863 | - __( 'Image URL', 'event_espresso' ), |
|
| 1863 | + __('Image URL', 'event_espresso'), |
|
| 1864 | 1864 | |
| 1865 | 1865 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:55 |
| 1866 | - __( 'Alt text', 'event_espresso' ), |
|
| 1866 | + __('Alt text', 'event_espresso'), |
|
| 1867 | 1867 | |
| 1868 | 1868 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:56 |
| 1869 | - __( 'Width', 'event_espresso' ), |
|
| 1869 | + __('Width', 'event_espresso'), |
|
| 1870 | 1870 | |
| 1871 | 1871 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:60 |
| 1872 | - __( 'Height', 'event_espresso' ), |
|
| 1872 | + __('Height', 'event_espresso'), |
|
| 1873 | 1873 | |
| 1874 | 1874 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:54 |
| 1875 | - __( 'Edit link', 'event_espresso' ), |
|
| 1875 | + __('Edit link', 'event_espresso'), |
|
| 1876 | 1876 | |
| 1877 | 1877 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:64 |
| 1878 | - __( 'URL title', 'event_espresso' ), |
|
| 1878 | + __('URL title', 'event_espresso'), |
|
| 1879 | 1879 | |
| 1880 | 1880 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:11 |
| 1881 | - __( 'Unordered list', 'event_espresso' ), |
|
| 1881 | + __('Unordered list', 'event_espresso'), |
|
| 1882 | 1882 | |
| 1883 | 1883 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:12 |
| 1884 | - __( 'Ordered list', 'event_espresso' ), |
|
| 1884 | + __('Ordered list', 'event_espresso'), |
|
| 1885 | 1885 | |
| 1886 | 1886 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:13 |
| 1887 | 1887 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:13 |
| 1888 | - __( 'Indent', 'event_espresso' ), |
|
| 1888 | + __('Indent', 'event_espresso'), |
|
| 1889 | 1889 | |
| 1890 | 1890 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:14 |
| 1891 | 1891 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:14 |
| 1892 | - __( 'Outdent', 'event_espresso' ), |
|
| 1892 | + __('Outdent', 'event_espresso'), |
|
| 1893 | 1893 | |
| 1894 | 1894 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:11 |
| 1895 | - __( 'Unordered textalign', 'event_espresso' ), |
|
| 1895 | + __('Unordered textalign', 'event_espresso'), |
|
| 1896 | 1896 | |
| 1897 | 1897 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:12 |
| 1898 | - __( 'Ordered textalign', 'event_espresso' ), |
|
| 1898 | + __('Ordered textalign', 'event_espresso'), |
|
| 1899 | 1899 | |
| 1900 | 1900 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/render/Image/Toolbar.tsx:32 |
| 1901 | - __( 'Image toolbar', 'event_espresso' ), |
|
| 1901 | + __('Image toolbar', 'event_espresso'), |
|
| 1902 | 1902 | |
| 1903 | 1903 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:62 |
| 1904 | 1904 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:35 |
| 1905 | - __( 'Visual editor', 'event_espresso' ), |
|
| 1905 | + __('Visual editor', 'event_espresso'), |
|
| 1906 | 1906 | |
| 1907 | 1907 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:66 |
| 1908 | 1908 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:39 |
| 1909 | - __( 'HTML editor', 'event_espresso' ), |
|
| 1909 | + __('HTML editor', 'event_espresso'), |
|
| 1910 | 1910 | |
| 1911 | 1911 | // Reference: packages/rich-text-editor/src/rte-old/components/RichTextEditor/RichTextEditor.tsx:51 |
| 1912 | - __( 'Mode', 'event_espresso' ), |
|
| 1912 | + __('Mode', 'event_espresso'), |
|
| 1913 | 1913 | |
| 1914 | 1914 | // Reference: packages/rich-text-editor/src/rte-old/components/RichTextEditor/RichTextEditor.tsx:55 |
| 1915 | - __( 'Text Mode - click to switch to html mode', 'event_espresso' ), |
|
| 1915 | + __('Text Mode - click to switch to html mode', 'event_espresso'), |
|
| 1916 | 1916 | |
| 1917 | 1917 | // Reference: packages/rich-text-editor/src/rte-old/components/RichTextEditor/RichTextEditor.tsx:56 |
| 1918 | - __( 'Html Mode - click to switch to plaintext mode', 'event_espresso' ), |
|
| 1918 | + __('Html Mode - click to switch to plaintext mode', 'event_espresso'), |
|
| 1919 | 1919 | |
| 1920 | 1920 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:68 |
| 1921 | - __( 'Add Media', 'event_espresso' ), |
|
| 1921 | + __('Add Media', 'event_espresso'), |
|
| 1922 | 1922 | |
| 1923 | 1923 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:16 |
| 1924 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
| 1924 | + __('add new price modifier after this row', 'event_espresso'), |
|
| 1925 | 1925 | |
| 1926 | 1926 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:14 |
| 1927 | - __( 'Delete all prices', 'event_espresso' ), |
|
| 1927 | + __('Delete all prices', 'event_espresso'), |
|
| 1928 | 1928 | |
| 1929 | 1929 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:27 |
| 1930 | - __( 'Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso' ), |
|
| 1930 | + __('Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso'), |
|
| 1931 | 1931 | |
| 1932 | 1932 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:31 |
| 1933 | - __( 'Delete all prices?', 'event_espresso' ), |
|
| 1933 | + __('Delete all prices?', 'event_espresso'), |
|
| 1934 | 1934 | |
| 1935 | 1935 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
| 1936 | - __( 'delete price modifier', 'event_espresso' ), |
|
| 1936 | + __('delete price modifier', 'event_espresso'), |
|
| 1937 | 1937 | |
| 1938 | 1938 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:14 |
| 1939 | - __( 'Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso' ), |
|
| 1939 | + __('Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso'), |
|
| 1940 | 1940 | |
| 1941 | 1941 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:17 |
| 1942 | - __( 'Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso' ), |
|
| 1942 | + __('Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso'), |
|
| 1943 | 1943 | |
| 1944 | 1944 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
| 1945 | - __( 'Disable reverse calculate', 'event_espresso' ), |
|
| 1945 | + __('Disable reverse calculate', 'event_espresso'), |
|
| 1946 | 1946 | |
| 1947 | 1947 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
| 1948 | - __( 'Enable reverse calculate', 'event_espresso' ), |
|
| 1948 | + __('Enable reverse calculate', 'event_espresso'), |
|
| 1949 | 1949 | |
| 1950 | 1950 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:28 |
| 1951 | - __( 'ticket price calculator', 'event_espresso' ), |
|
| 1951 | + __('ticket price calculator', 'event_espresso'), |
|
| 1952 | 1952 | |
| 1953 | 1953 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:9 |
| 1954 | - __( 'Add default taxes', 'event_espresso' ), |
|
| 1954 | + __('Add default taxes', 'event_espresso'), |
|
| 1955 | 1955 | |
| 1956 | 1956 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:10 |
| 1957 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
| 1957 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
| 1958 | 1958 | |
| 1959 | 1959 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:14 |
| 1960 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
| 1960 | + __('Remove all taxes?', 'event_espresso'), |
|
| 1961 | 1961 | |
| 1962 | 1962 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:7 |
| 1963 | - __( 'Remove taxes', 'event_espresso' ), |
|
| 1963 | + __('Remove taxes', 'event_espresso'), |
|
| 1964 | 1964 | |
| 1965 | 1965 | // Reference: packages/tpc/src/components/AddDefaultPricesButton.tsx:9 |
| 1966 | - __( 'Add default prices', 'event_espresso' ), |
|
| 1966 | + __('Add default prices', 'event_espresso'), |
|
| 1967 | 1967 | |
| 1968 | 1968 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:29 |
| 1969 | - __( 'Modify default prices.', 'event_espresso' ), |
|
| 1969 | + __('Modify default prices.', 'event_espresso'), |
|
| 1970 | 1970 | |
| 1971 | 1971 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:29 |
| 1972 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
| 1972 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
| 1973 | 1973 | |
| 1974 | 1974 | // Reference: packages/tpc/src/components/LockedTicketsBanner.tsx:12 |
| 1975 | 1975 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:74 |
| 1976 | - __( 'Price editing is disabled!', 'event_espresso' ), |
|
| 1976 | + __('Price editing is disabled!', 'event_espresso'), |
|
| 1977 | 1977 | |
| 1978 | 1978 | // Reference: packages/tpc/src/components/NoPriceTypesBanner.tsx:12 |
| 1979 | - __( 'One or more price types are missing. Maybe they were placed in the trash?', 'event_espresso' ), |
|
| 1979 | + __('One or more price types are missing. Maybe they were placed in the trash?', 'event_espresso'), |
|
| 1980 | 1980 | |
| 1981 | 1981 | // Reference: packages/tpc/src/components/NoPriceTypesBanner.tsx:17 |
| 1982 | 1982 | /* translators: %s link to price types admin */ |
| 1983 | - __( 'Go to the%sto restore (untrash) your price types and/or create some new ones.', 'event_espresso' ), |
|
| 1983 | + __('Go to the%sto restore (untrash) your price types and/or create some new ones.', 'event_espresso'), |
|
| 1984 | 1984 | |
| 1985 | 1985 | // Reference: packages/tpc/src/components/NoPriceTypesBanner.tsx:18 |
| 1986 | - __( 'price types admin page', 'event_espresso' ), |
|
| 1986 | + __('price types admin page', 'event_espresso'), |
|
| 1987 | 1987 | |
| 1988 | 1988 | // Reference: packages/tpc/src/components/NoPriceTypesBanner.tsx:26 |
| 1989 | - __( 'Missing Price Types!', 'event_espresso' ), |
|
| 1989 | + __('Missing Price Types!', 'event_espresso'), |
|
| 1990 | 1990 | |
| 1991 | 1991 | // Reference: packages/tpc/src/components/NoPricesBanner.tsx:14 |
| 1992 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
| 1992 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
| 1993 | 1993 | |
| 1994 | 1994 | // Reference: packages/tpc/src/components/NoPricesBanner.tsx:21 |
| 1995 | 1995 | /* translators: %s default prices */ |
| 1996 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
| 1996 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
| 1997 | 1997 | |
| 1998 | 1998 | // Reference: packages/tpc/src/components/NoPricesBanner.tsx:22 |
| 1999 | - __( 'default prices', 'event_espresso' ), |
|
| 1999 | + __('default prices', 'event_espresso'), |
|
| 2000 | 2000 | |
| 2001 | 2001 | // Reference: packages/tpc/src/components/NoPricesBanner.tsx:29 |
| 2002 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
| 2002 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
| 2003 | 2003 | |
| 2004 | 2004 | // Reference: packages/tpc/src/components/NoPricesBanner.tsx:31 |
| 2005 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
| 2005 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
| 2006 | 2006 | |
| 2007 | 2007 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:22 |
| 2008 | 2008 | // Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:7 |
| 2009 | 2009 | // Reference: packages/ui-components/src/Confirm/useConfirmWithButton.tsx:10 |
| 2010 | 2010 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:52 |
| 2011 | - __( 'Changes will be lost if you proceed.', 'event_espresso' ), |
|
| 2011 | + __('Changes will be lost if you proceed.', 'event_espresso'), |
|
| 2012 | 2012 | |
| 2013 | 2013 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:33 |
| 2014 | 2014 | /* translators: %s ticket name */ |
| 2015 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
| 2015 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
| 2016 | 2016 | |
| 2017 | 2017 | // Reference: packages/tpc/src/components/price/input/Amount.tsx:23 |
| 2018 | - __( 'amount', 'event_espresso' ), |
|
| 2018 | + __('amount', 'event_espresso'), |
|
| 2019 | 2019 | |
| 2020 | 2020 | // Reference: packages/tpc/src/components/price/input/Amount.tsx:27 |
| 2021 | - __( 'amount…', 'event_espresso' ), |
|
| 2021 | + __('amount…', 'event_espresso'), |
|
| 2022 | 2022 | |
| 2023 | 2023 | // Reference: packages/tpc/src/components/price/input/Description.tsx:15 |
| 2024 | - __( 'price description', 'event_espresso' ), |
|
| 2024 | + __('price description', 'event_espresso'), |
|
| 2025 | 2025 | |
| 2026 | 2026 | // Reference: packages/tpc/src/components/price/input/Description.tsx:18 |
| 2027 | - __( 'description…', 'event_espresso' ), |
|
| 2027 | + __('description…', 'event_espresso'), |
|
| 2028 | 2028 | |
| 2029 | 2029 | // Reference: packages/tpc/src/components/price/input/ID.tsx:7 |
| 2030 | - __( 'price id', 'event_espresso' ), |
|
| 2030 | + __('price id', 'event_espresso'), |
|
| 2031 | 2031 | |
| 2032 | 2032 | // Reference: packages/tpc/src/components/price/input/Name.tsx:15 |
| 2033 | - __( 'price name', 'event_espresso' ), |
|
| 2033 | + __('price name', 'event_espresso'), |
|
| 2034 | 2034 | |
| 2035 | 2035 | // Reference: packages/tpc/src/components/price/input/Name.tsx:18 |
| 2036 | - __( 'label…', 'event_espresso' ), |
|
| 2036 | + __('label…', 'event_espresso'), |
|
| 2037 | 2037 | |
| 2038 | 2038 | // Reference: packages/tpc/src/components/price/input/Order.tsx:21 |
| 2039 | - __( 'price order', 'event_espresso' ), |
|
| 2039 | + __('price order', 'event_espresso'), |
|
| 2040 | 2040 | |
| 2041 | 2041 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:50 |
| 2042 | - __( 'Total', 'event_espresso' ), |
|
| 2042 | + __('Total', 'event_espresso'), |
|
| 2043 | 2043 | |
| 2044 | 2044 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:59 |
| 2045 | - __( 'ticket total', 'event_espresso' ), |
|
| 2045 | + __('ticket total', 'event_espresso'), |
|
| 2046 | 2046 | |
| 2047 | 2047 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
| 2048 | - __( 'Order', 'event_espresso' ), |
|
| 2048 | + __('Order', 'event_espresso'), |
|
| 2049 | 2049 | |
| 2050 | 2050 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
| 2051 | - __( 'Price Type', 'event_espresso' ), |
|
| 2051 | + __('Price Type', 'event_espresso'), |
|
| 2052 | 2052 | |
| 2053 | 2053 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
| 2054 | - __( 'Label', 'event_espresso' ), |
|
| 2054 | + __('Label', 'event_espresso'), |
|
| 2055 | 2055 | |
| 2056 | 2056 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
| 2057 | - __( 'Amount', 'event_espresso' ), |
|
| 2057 | + __('Amount', 'event_espresso'), |
|
| 2058 | 2058 | |
| 2059 | 2059 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:22 |
| 2060 | - __( 'Copy ticket', 'event_espresso' ), |
|
| 2060 | + __('Copy ticket', 'event_espresso'), |
|
| 2061 | 2061 | |
| 2062 | 2062 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:26 |
| 2063 | - __( 'Copy and archive this ticket', 'event_espresso' ), |
|
| 2063 | + __('Copy and archive this ticket', 'event_espresso'), |
|
| 2064 | 2064 | |
| 2065 | 2065 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:29 |
| 2066 | - __( 'OK', 'event_espresso' ), |
|
| 2066 | + __('OK', 'event_espresso'), |
|
| 2067 | 2067 | |
| 2068 | 2068 | // Reference: packages/tpc/src/utils/constants.ts:8 |
| 2069 | - __( 'Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then trash the old tickets.', 'event_espresso' ), |
|
| 2069 | + __('Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then trash the old tickets.', 'event_espresso'), |
|
| 2070 | 2070 | |
| 2071 | 2071 | // Reference: packages/ui-components/src/ActiveFilters/ActiveFilters.tsx:8 |
| 2072 | - __( 'active filters:', 'event_espresso' ), |
|
| 2072 | + __('active filters:', 'event_espresso'), |
|
| 2073 | 2073 | |
| 2074 | 2074 | // Reference: packages/ui-components/src/ActiveFilters/FilterTag/index.tsx:15 |
| 2075 | 2075 | /* translators: %s filter name */ |
| 2076 | - __( 'remove filter - %s', 'event_espresso' ), |
|
| 2076 | + __('remove filter - %s', 'event_espresso'), |
|
| 2077 | 2077 | |
| 2078 | 2078 | // Reference: packages/ui-components/src/Address/Address.tsx:105 |
| 2079 | - __( 'Country:', 'event_espresso' ), |
|
| 2079 | + __('Country:', 'event_espresso'), |
|
| 2080 | 2080 | |
| 2081 | 2081 | // Reference: packages/ui-components/src/Address/Address.tsx:113 |
| 2082 | - __( 'Zip:', 'event_espresso' ), |
|
| 2082 | + __('Zip:', 'event_espresso'), |
|
| 2083 | 2083 | |
| 2084 | 2084 | // Reference: packages/ui-components/src/Address/Address.tsx:81 |
| 2085 | - __( 'Address:', 'event_espresso' ), |
|
| 2085 | + __('Address:', 'event_espresso'), |
|
| 2086 | 2086 | |
| 2087 | 2087 | // Reference: packages/ui-components/src/Address/Address.tsx:89 |
| 2088 | - __( 'City:', 'event_espresso' ), |
|
| 2088 | + __('City:', 'event_espresso'), |
|
| 2089 | 2089 | |
| 2090 | 2090 | // Reference: packages/ui-components/src/Address/Address.tsx:97 |
| 2091 | - __( 'State:', 'event_espresso' ), |
|
| 2091 | + __('State:', 'event_espresso'), |
|
| 2092 | 2092 | |
| 2093 | 2093 | // Reference: packages/ui-components/src/CalendarDateRange/CalendarDateRange.tsx:37 |
| 2094 | - __( 'to', 'event_espresso' ), |
|
| 2094 | + __('to', 'event_espresso'), |
|
| 2095 | 2095 | |
| 2096 | 2096 | // Reference: packages/ui-components/src/CalendarPageDate/CalendarPageDate.tsx:54 |
| 2097 | - __( 'TO', 'event_espresso' ), |
|
| 2097 | + __('TO', 'event_espresso'), |
|
| 2098 | 2098 | |
| 2099 | 2099 | // Reference: packages/ui-components/src/ColorPicker/ColorPicker.tsx:60 |
| 2100 | - __( 'Custom color', 'event_espresso' ), |
|
| 2100 | + __('Custom color', 'event_espresso'), |
|
| 2101 | 2101 | |
| 2102 | 2102 | // Reference: packages/ui-components/src/ColorPicker/Swatch.tsx:23 |
| 2103 | 2103 | /* translators: color name */ |
| 2104 | - __( 'Color: %s', 'event_espresso' ), |
|
| 2104 | + __('Color: %s', 'event_espresso'), |
|
| 2105 | 2105 | |
| 2106 | 2106 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:13 |
| 2107 | - __( 'Cyan bluish gray', 'event_espresso' ), |
|
| 2107 | + __('Cyan bluish gray', 'event_espresso'), |
|
| 2108 | 2108 | |
| 2109 | 2109 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:17 |
| 2110 | - __( 'White', 'event_espresso' ), |
|
| 2110 | + __('White', 'event_espresso'), |
|
| 2111 | 2111 | |
| 2112 | 2112 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:21 |
| 2113 | - __( 'Pale pink', 'event_espresso' ), |
|
| 2113 | + __('Pale pink', 'event_espresso'), |
|
| 2114 | 2114 | |
| 2115 | 2115 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:25 |
| 2116 | - __( 'Vivid red', 'event_espresso' ), |
|
| 2116 | + __('Vivid red', 'event_espresso'), |
|
| 2117 | 2117 | |
| 2118 | 2118 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:29 |
| 2119 | - __( 'Luminous vivid orange', 'event_espresso' ), |
|
| 2119 | + __('Luminous vivid orange', 'event_espresso'), |
|
| 2120 | 2120 | |
| 2121 | 2121 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:33 |
| 2122 | - __( 'Luminous vivid amber', 'event_espresso' ), |
|
| 2122 | + __('Luminous vivid amber', 'event_espresso'), |
|
| 2123 | 2123 | |
| 2124 | 2124 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:37 |
| 2125 | - __( 'Light green cyan', 'event_espresso' ), |
|
| 2125 | + __('Light green cyan', 'event_espresso'), |
|
| 2126 | 2126 | |
| 2127 | 2127 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:41 |
| 2128 | - __( 'Vivid green cyan', 'event_espresso' ), |
|
| 2128 | + __('Vivid green cyan', 'event_espresso'), |
|
| 2129 | 2129 | |
| 2130 | 2130 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:45 |
| 2131 | - __( 'Pale cyan blue', 'event_espresso' ), |
|
| 2131 | + __('Pale cyan blue', 'event_espresso'), |
|
| 2132 | 2132 | |
| 2133 | 2133 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:49 |
| 2134 | - __( 'Vivid cyan blue', 'event_espresso' ), |
|
| 2134 | + __('Vivid cyan blue', 'event_espresso'), |
|
| 2135 | 2135 | |
| 2136 | 2136 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:53 |
| 2137 | - __( 'Vivid purple', 'event_espresso' ), |
|
| 2137 | + __('Vivid purple', 'event_espresso'), |
|
| 2138 | 2138 | |
| 2139 | 2139 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:9 |
| 2140 | - __( 'Black', 'event_espresso' ), |
|
| 2140 | + __('Black', 'event_espresso'), |
|
| 2141 | 2141 | |
| 2142 | 2142 | // Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:8 |
| 2143 | 2143 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:24 |
| 2144 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
| 2144 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
| 2145 | 2145 | |
| 2146 | 2146 | // Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:9 |
| 2147 | 2147 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:25 |
| 2148 | - __( 'Yes, discard changes', 'event_espresso' ), |
|
| 2148 | + __('Yes, discard changes', 'event_espresso'), |
|
| 2149 | 2149 | |
| 2150 | 2150 | // Reference: packages/ui-components/src/Confirm/ConfirmDelete.tsx:7 |
| 2151 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
| 2151 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
| 2152 | 2152 | |
| 2153 | 2153 | // Reference: packages/ui-components/src/Confirm/useConfirmWithButton.tsx:11 |
| 2154 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
| 2154 | + __('Please confirm this action.', 'event_espresso'), |
|
| 2155 | 2155 | |
| 2156 | 2156 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:39 |
| 2157 | - __( 'cancel', 'event_espresso' ), |
|
| 2157 | + __('cancel', 'event_espresso'), |
|
| 2158 | 2158 | |
| 2159 | 2159 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:40 |
| 2160 | - __( 'confirm', 'event_espresso' ), |
|
| 2160 | + __('confirm', 'event_espresso'), |
|
| 2161 | 2161 | |
| 2162 | 2162 | // Reference: packages/ui-components/src/CurrencyDisplay/CurrencyDisplay.tsx:35 |
| 2163 | - __( 'free', 'event_espresso' ), |
|
| 2163 | + __('free', 'event_espresso'), |
|
| 2164 | 2164 | |
| 2165 | 2165 | // Reference: packages/ui-components/src/DateTimeRangePicker/DateTimeRangePicker.tsx:117 |
| 2166 | 2166 | // Reference: packages/ui-components/src/Popover/PopoverForm/PopoverForm.tsx:44 |
| 2167 | - __( 'save', 'event_espresso' ), |
|
| 2167 | + __('save', 'event_espresso'), |
|
| 2168 | 2168 | |
| 2169 | 2169 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
| 2170 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
| 2170 | + __('Hide Debug Info', 'event_espresso'), |
|
| 2171 | 2171 | |
| 2172 | 2172 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
| 2173 | - __( 'Show Debug Info', 'event_espresso' ), |
|
| 2173 | + __('Show Debug Info', 'event_espresso'), |
|
| 2174 | 2174 | |
| 2175 | 2175 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:49 |
| 2176 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
| 2176 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
| 2177 | 2177 | |
| 2178 | 2178 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/CopyEntity.tsx:8 |
| 2179 | - __( 'copy', 'event_espresso' ), |
|
| 2179 | + __('copy', 'event_espresso'), |
|
| 2180 | 2180 | |
| 2181 | 2181 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/EditEntity.tsx:8 |
| 2182 | - __( 'edit', 'event_espresso' ), |
|
| 2182 | + __('edit', 'event_espresso'), |
|
| 2183 | 2183 | |
| 2184 | 2184 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/TrashEntity.tsx:8 |
| 2185 | - __( 'trash', 'event_espresso' ), |
|
| 2185 | + __('trash', 'event_espresso'), |
|
| 2186 | 2186 | |
| 2187 | 2187 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Untrash.tsx:8 |
| 2188 | - __( 'untrash', 'event_espresso' ), |
|
| 2188 | + __('untrash', 'event_espresso'), |
|
| 2189 | 2189 | |
| 2190 | 2190 | // Reference: packages/ui-components/src/EntityList/EntityList.tsx:23 |
| 2191 | - __( 'OOPS!', 'event_espresso' ), |
|
| 2191 | + __('OOPS!', 'event_espresso'), |
|
| 2192 | 2192 | |
| 2193 | 2193 | // Reference: packages/ui-components/src/EntityList/EntityList.tsx:23 |
| 2194 | - __( 'Error Loading Entites List', 'event_espresso' ), |
|
| 2194 | + __('Error Loading Entites List', 'event_espresso'), |
|
| 2195 | 2195 | |
| 2196 | 2196 | // Reference: packages/ui-components/src/EntityList/RegistrationsLink/index.tsx:12 |
| 2197 | - __( 'click to open the registrations admin page in a new tab or window', 'event_espresso' ), |
|
| 2197 | + __('click to open the registrations admin page in a new tab or window', 'event_espresso'), |
|
| 2198 | 2198 | |
| 2199 | 2199 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:22 |
| 2200 | - __( 'card view', 'event_espresso' ), |
|
| 2200 | + __('card view', 'event_espresso'), |
|
| 2201 | 2201 | |
| 2202 | 2202 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:21 |
| 2203 | - __( 'table view', 'event_espresso' ), |
|
| 2203 | + __('table view', 'event_espresso'), |
|
| 2204 | 2204 | |
| 2205 | 2205 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
| 2206 | - __( 'hide bulk actions', 'event_espresso' ), |
|
| 2206 | + __('hide bulk actions', 'event_espresso'), |
|
| 2207 | 2207 | |
| 2208 | 2208 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
| 2209 | - __( 'show bulk actions', 'event_espresso' ), |
|
| 2209 | + __('show bulk actions', 'event_espresso'), |
|
| 2210 | 2210 | |
| 2211 | 2211 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:23 |
| 2212 | - __( 'filters', 'event_espresso' ), |
|
| 2212 | + __('filters', 'event_espresso'), |
|
| 2213 | 2213 | |
| 2214 | 2214 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:38 |
| 2215 | - __( 'legend', 'event_espresso' ), |
|
| 2215 | + __('legend', 'event_espresso'), |
|
| 2216 | 2216 | |
| 2217 | 2217 | // Reference: packages/ui-components/src/LoadingNotice/LoadingNotice.tsx:11 |
| 2218 | - __( 'loading…', 'event_espresso' ), |
|
| 2218 | + __('loading…', 'event_espresso'), |
|
| 2219 | 2219 | |
| 2220 | 2220 | // Reference: packages/ui-components/src/Modal/Modal.tsx:59 |
| 2221 | - __( 'close modal', 'event_espresso' ), |
|
| 2221 | + __('close modal', 'event_espresso'), |
|
| 2222 | 2222 | |
| 2223 | 2223 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:10 |
| 2224 | - __( 'jump to previous', 'event_espresso' ), |
|
| 2224 | + __('jump to previous', 'event_espresso'), |
|
| 2225 | 2225 | |
| 2226 | 2226 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:11 |
| 2227 | - __( 'jump to next', 'event_espresso' ), |
|
| 2227 | + __('jump to next', 'event_espresso'), |
|
| 2228 | 2228 | |
| 2229 | 2229 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:12 |
| 2230 | - __( 'page', 'event_espresso' ), |
|
| 2230 | + __('page', 'event_espresso'), |
|
| 2231 | 2231 | |
| 2232 | 2232 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:8 |
| 2233 | - __( 'previous', 'event_espresso' ), |
|
| 2233 | + __('previous', 'event_espresso'), |
|
| 2234 | 2234 | |
| 2235 | 2235 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:9 |
| 2236 | - __( 'next', 'event_espresso' ), |
|
| 2236 | + __('next', 'event_espresso'), |
|
| 2237 | 2237 | |
| 2238 | 2238 | // Reference: packages/ui-components/src/Pagination/PerPage.tsx:45 |
| 2239 | 2239 | /* translators: %1$d is first item #, %2$d is last item #, %3$d is total items, ex: 20-30 of 100 items */ |
| 2240 | - __( '%1$d-%2$d of %3$d items', 'event_espresso' ), |
|
| 2240 | + __('%1$d-%2$d of %3$d items', 'event_espresso'), |
|
| 2241 | 2241 | |
| 2242 | 2242 | // Reference: packages/ui-components/src/Pagination/PerPage.tsx:54 |
| 2243 | - __( 'items per page', 'event_espresso' ), |
|
| 2243 | + __('items per page', 'event_espresso'), |
|
| 2244 | 2244 | |
| 2245 | 2245 | // Reference: packages/ui-components/src/Pagination/constants.ts:11 |
| 2246 | 2246 | /* translators: %s is per page value */ |
| 2247 | - __( '%s / page', 'event_espresso' ), |
|
| 2247 | + __('%s / page', 'event_espresso'), |
|
| 2248 | 2248 | |
| 2249 | 2249 | // Reference: packages/ui-components/src/Pagination/constants.ts:12 |
| 2250 | - __( 'show all', 'event_espresso' ), |
|
| 2250 | + __('show all', 'event_espresso'), |
|
| 2251 | 2251 | |
| 2252 | 2252 | // Reference: packages/ui-components/src/Pagination/constants.ts:15 |
| 2253 | - __( 'Next Page', 'event_espresso' ), |
|
| 2253 | + __('Next Page', 'event_espresso'), |
|
| 2254 | 2254 | |
| 2255 | 2255 | // Reference: packages/ui-components/src/Pagination/constants.ts:16 |
| 2256 | - __( 'Previous Page', 'event_espresso' ), |
|
| 2256 | + __('Previous Page', 'event_espresso'), |
|
| 2257 | 2257 | |
| 2258 | 2258 | // Reference: packages/ui-components/src/PercentSign/index.tsx:10 |
| 2259 | - __( '%', 'event_espresso' ), |
|
| 2259 | + __('%', 'event_espresso'), |
|
| 2260 | 2260 | |
| 2261 | 2261 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:31 |
| 2262 | 2262 | /* translators: entity type to select */ |
| 2263 | - __( 'Select an existing %s to use as a template.', 'event_espresso' ), |
|
| 2263 | + __('Select an existing %s to use as a template.', 'event_espresso'), |
|
| 2264 | 2264 | |
| 2265 | 2265 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:38 |
| 2266 | - __( 'or', 'event_espresso' ), |
|
| 2266 | + __('or', 'event_espresso'), |
|
| 2267 | 2267 | |
| 2268 | 2268 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:43 |
| 2269 | 2269 | /* translators: entity type to add */ |
| 2270 | - __( 'Add a new %s and insert details manually', 'event_espresso' ), |
|
| 2270 | + __('Add a new %s and insert details manually', 'event_espresso'), |
|
| 2271 | 2271 | |
| 2272 | 2272 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:48 |
| 2273 | - __( 'Add New', 'event_espresso' ), |
|
| 2273 | + __('Add New', 'event_espresso'), |
|
| 2274 | 2274 | |
| 2275 | 2275 | // Reference: packages/ui-components/src/Stepper/buttons/Next.tsx:8 |
| 2276 | - __( 'Next', 'event_espresso' ), |
|
| 2276 | + __('Next', 'event_espresso'), |
|
| 2277 | 2277 | |
| 2278 | 2278 | // Reference: packages/ui-components/src/Stepper/buttons/Previous.tsx:8 |
| 2279 | - __( 'Previous', 'event_espresso' ), |
|
| 2279 | + __('Previous', 'event_espresso'), |
|
| 2280 | 2280 | |
| 2281 | 2281 | // Reference: packages/ui-components/src/Steps/Steps.tsx:31 |
| 2282 | - __( 'Steps', 'event_espresso' ), |
|
| 2282 | + __('Steps', 'event_espresso'), |
|
| 2283 | 2283 | |
| 2284 | 2284 | // Reference: packages/ui-components/src/TabbableText/index.tsx:21 |
| 2285 | - __( 'click to edit…', 'event_espresso' ), |
|
| 2285 | + __('click to edit…', 'event_espresso'), |
|
| 2286 | 2286 | |
| 2287 | 2287 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:14 |
| 2288 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
| 2288 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
| 2289 | 2289 | |
| 2290 | 2290 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:19 |
| 2291 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
| 2291 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
| 2292 | 2292 | |
| 2293 | 2293 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:9 |
| 2294 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
| 2294 | + __('Your Local Time Zone', 'event_espresso'), |
|
| 2295 | 2295 | |
| 2296 | 2296 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:25 |
| 2297 | - __( 'click for timezone information', 'event_espresso' ), |
|
| 2297 | + __('click for timezone information', 'event_espresso'), |
|
| 2298 | 2298 | |
| 2299 | 2299 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:30 |
| 2300 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
| 2300 | + __('This Date Converted To:', 'event_espresso'), |
|
| 2301 | 2301 | |
| 2302 | 2302 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:120 |
| 2303 | - __( 'Add New Venue', 'event_espresso' ), |
|
| 2303 | + __('Add New Venue', 'event_espresso'), |
|
| 2304 | 2304 | |
| 2305 | 2305 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:36 |
| 2306 | - __( '~ no venue ~', 'event_espresso' ), |
|
| 2306 | + __('~ no venue ~', 'event_espresso'), |
|
| 2307 | 2307 | |
| 2308 | 2308 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:43 |
| 2309 | - __( 'assign venue…', 'event_espresso' ), |
|
| 2309 | + __('assign venue…', 'event_espresso'), |
|
| 2310 | 2310 | |
| 2311 | 2311 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:44 |
| 2312 | - __( 'click to select a venue…', 'event_espresso' ), |
|
| 2312 | + __('click to select a venue…', 'event_espresso'), |
|
| 2313 | 2313 | |
| 2314 | 2314 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:51 |
| 2315 | - __( 'select all', 'event_espresso' ), |
|
| 2315 | + __('select all', 'event_espresso'), |
|
| 2316 | 2316 | |
| 2317 | 2317 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:54 |
| 2318 | - __( 'apply', 'event_espresso' ) |
|
| 2318 | + __('apply', 'event_espresso') |
|
| 2319 | 2319 | ); |
| 2320 | 2320 | /* THIS IS THE END OF THE GENERATED FILE */ |