@@ 245-263 (lines=19) @@ | ||
242 | /** |
|
243 | * enqueue iframe button js |
|
244 | */ |
|
245 | public function embedButtonAssets() |
|
246 | { |
|
247 | \EE_Registry::$i18n_js_strings[ 'iframe_embed_title' ] = esc_html__( |
|
248 | 'copy and paste the following into any other site\'s content to display this event:', |
|
249 | 'event_espresso' |
|
250 | ); |
|
251 | \EE_Registry::$i18n_js_strings[ 'iframe_embed_close_msg' ] = esc_html__( |
|
252 | 'click anywhere outside of this window to close it.', |
|
253 | 'event_espresso' |
|
254 | ); |
|
255 | wp_register_script( |
|
256 | 'iframe_embed_button', |
|
257 | plugin_dir_url( __FILE__ ) . 'iframe-embed-button.js', |
|
258 | array( 'ee-dialog' ), |
|
259 | EVENT_ESPRESSO_VERSION, |
|
260 | true |
|
261 | ); |
|
262 | wp_enqueue_script( 'iframe_embed_button' ); |
|
263 | } |
|
264 | ||
265 | ||
266 |
@@ 680-686 (lines=7) @@ | ||
677 | * |
|
678 | * @return void |
|
679 | */ |
|
680 | public function add_preview_script() { |
|
681 | //error message |
|
682 | EE_Registry::$i18n_js_strings[ 'links_disabled' ] = __( 'All the links on this page have been disabled because this is a generated preview message for the purpose of ensuring layout, style, and content setup. To test generated links, you must trigger an actual message notification.', 'event_espresso' ); |
|
683 | wp_register_script( 'ee-messages-preview-js', EE_LIBRARIES_URL . 'messages/messenger/assets/js/ee-messages-preview.js', array( 'jquery' ), EVENT_ESPRESSO_VERSION, true ); |
|
684 | wp_localize_script( 'ee-messages-preview-js', 'eei18n', EE_Registry::$i18n_js_strings ); |
|
685 | wp_enqueue_script( 'ee-messages-preview-js' ); |
|
686 | } |
|
687 | ||
688 | ||
689 |