/** * admin_init */ public function admin_init() { EE_Registry::$i18n_js_strings = array_merge(EE_Registry::$i18n_js_strings, array('image_confirm' => __('Do you really want to delete this image? Please remember to update your event to complete the removal.', 'event_espresso'), 'event_starts_on' => __('Event Starts on', 'event_espresso'), 'event_ends_on' => __('Event Ends on', 'event_espresso'), 'event_datetime_actions' => __('Actions', 'event_espresso'), 'event_clone_dt_msg' => __('Clone this Event Date and Time', 'event_espresso'), 'remove_event_dt_msg' => __('Remove this Event Time', 'event_espresso'))); }
public function load_scripts_styles_edit() { wp_register_script('ee-event-editor-heartbeat', EVENTS_CAF_ASSETS_URL . 'event-editor-heartbeat.js', array('ee_admin_js', 'heartbeat'), EVENT_ESPRESSO_VERSION, TRUE); /** * load accounting js. */ add_filter('FHEE_load_accounting_js', '__return_true'); //styles wp_enqueue_style('espresso-ui-theme'); wp_enqueue_script('event_editor_js'); wp_enqueue_script('ee-event-editor-heartbeat'); $new_strings = array('image_confirm' => __('Do you really want to delete this image? Please remember to update your event to complete the removal.', 'event_espresso'), 'event_starts_on' => __('Event Starts on', 'event_espresso'), 'event_ends_on' => __('Event Ends on', 'event_espresso'), 'event_datetime_actions' => __('Actions', 'event_espresso'), 'event_clone_dt_msg' => __('Clone this Event Date and Time', 'event_espresso'), 'remove_event_dt_msg' => __('Remove this Event Time', 'event_espresso')); EE_Registry::$i18n_js_strings = array_merge(EE_Registry::$i18n_js_strings, $new_strings); }