#add-map .dashicons { color: #888; margin: 0 4px 0 0; vertical-align: text-top; height: 18px; width: 18px; background-image: url(' . plugins_url("maplayerbutton.svg", __FILE__) . '); background-repeat: no-repeat; } #add-map { padding-left: 0.4em; } #add-map.disabled { pointer-events:none; padding-left: 0.4em; } ' . __("miniAudioPlayer", "wpmbmap") . ''; } class miniaudioplayer_check_href { function __construct() { add_filter('mce_external_plugins', array(&$this, 'add_map_tinymce_plugin')); add_filter('tiny_mce_before_init', array(&$this, 'add_map_TinyMCE_css')); } //include the tinymce javascript plugin function add_map_tinymce_plugin($plugin_array) { $plugin_array['wpmbmap'] = plugins_url('map_short_code.js?_=' . MINIAUDIOPLAYER_VERSION, __FILE__); return $plugin_array; } //include the css file to style the graphic that replaces the shortcode function add_map_TinyMCE_css($in) { if (!empty($in['content_css'])) $in['content_css'] .= "," . plugins_url('map_short_code.css?_=' . MINIAUDIOPLAYER_VERSION, __FILE__); return $in; } } //add_action("init", create_function('', 'new miniaudioplayer_check_href();')); add_action("init", function(){ new miniaudioplayer_check_href(); }); $custom_player_id = "map_" . rand(); // Displays the lightbox popup to insert a YTPlayer shortcode to a post/page function miniaudioplayer_add_popup() { $exclude_class = get_option('miniAudioPlayer_excluded'); $showVolumeLevel = get_option('miniAudioPlayer_showVolumeLevel'); $allowMute = get_option('miniAudioPlayer_allowMute'); $showTime = get_option('miniAudioPlayer_showTime'); $showRew = get_option('miniAudioPlayer_showRew'); $width = get_option('miniAudioPlayer_width'); $skin = get_option('miniAudioPlayer_skin'); $miniAudioPlayer_animate = get_option('miniAudioPlayer_animate'); $miniAudioPlayer_add_gradient = get_option('miniAudioPlayer_add_gradient'); $volume = get_option('miniAudioPlayer_volume'); $downloadable = get_option('miniAudioPlayer_download'); $custom_skin_name = get_option('miniAudioPlayer_custom_skin_name'); $downloadable_security = get_option('miniAudioPlayer_download_security'); ?>