PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/news36.travelguides4you.com/news3/wp-content/plugins/penci-shortcodes/mce/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/news36.travelguides4you.com/news3/wp-content/plugins/penci-shortcodes/mce/mce.php |
<?php /** * This file has all the main shortcode functions */ if ( ! function_exists( 'penci_refresh_mce' ) ) { function penci_refresh_mce( $ver ) { $ver += 3; return $ver; } } // init process for button control add_filter( 'tiny_mce_version', 'penci_refresh_mce' ); add_action( 'init', 'penci_pre_add_shortcode_buttons' ); if ( ! function_exists( 'penci_pre_add_shortcode_buttons' ) ) { function penci_pre_add_shortcode_buttons() { // Don't bother doing this stuff if the current user lacks permissions if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) return; // Add only in Rich Editor mode if ( get_user_option( 'rich_editing' ) == 'true' ) { add_filter( "mce_external_plugins", "penci_pre_add_shortcodes_tinymce_plugin" ); add_filter( 'mce_buttons', 'penci_pre_register_shortcode_buttons' ); } } } if ( ! function_exists( 'penci_pre_register_shortcode_buttons' ) ) { function penci_pre_register_shortcode_buttons( $buttons ) { array_push( $buttons, 'penci_pre_shortcodes_button' ); return $buttons; } } // Load the TinyMCE plugin : editor_plugin.js (wp2.5) if ( ! function_exists( 'penci_pre_add_shortcodes_tinymce_plugin' ) ) { function penci_pre_add_shortcodes_tinymce_plugin( $plugin_array ) { $plugin_array['penci_pre_shortcodes_button'] = plugin_dir_url( __FILE__ ) . '/js/mce.js'; return $plugin_array; } }