Plugin Directory

Changeset 2147879


Ignore:
Timestamp:
08/29/2019 02:32:18 PM (7 years ago)
Author:
pupunzi
Message:

1.9.1

  • Bugfix: I introdiced an incorrect path to the the editor javascript file that prevent the miniaudioplayer window to display and generate a blocking javascript error.
Location:
wp-miniaudioplayer
Files:
47 added
1 deleted
12 edited
9 copied

Legend:

Unmodified
Added
Removed
  • wp-miniaudioplayer/tags/1.9.0/css/TinyMCE_player.css

    r2147389 r2147879  
    1 /*___________________________________________________________________________________________________________________________________________________
    2  _ jquery.mb.components                                                                                                                             _
    3  _                                                                                                                                                  _
    4  _ file: TinyMCE_player.css                                                                                                                         _
    5  _ last modified: 8/29/19 12:04 AM                                                                                                                  _
    6  _                                                                                                                                                  _
    7  _ Open Lab s.r.l., Florence - Italy                                                                                                                _
    8  _                                                                                                                                                  _
    9  _ email: [email protected]                                                                                                                       _
    10  _ site: http://pupunzi.com                                                                                                                         _
    11  _       http://open-lab.com                                                                                                                        _
    12  _ blog: http://pupunzi.open-lab.com                                                                                                                _
    13  _ Q&A:  http://jquery.pupunzi.com                                                                                                                  _
    14  _                                                                                                                                                  _
    15  _ Licences: MIT, GPL                                                                                                                               _
    16  _    http://www.opensource.org/licenses/mit-license.php                                                                                            _
    17  _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
    18  _                                                                                                                                                  _
    19  _ Copyright (c) 2001-2019. Matteo Bicocchi (Pupunzi);                                                                                              _
    20  ___________________________________________________________________________________________________________________________________________________*/
    21 
    221@charset "UTF-8";
    232
  • wp-miniaudioplayer/tags/1.9.0/css/TinyMCE_player_notAll.css

    r2147389 r2147879  
    1 /*___________________________________________________________________________________________________________________________________________________
    2  _ jquery.mb.components                                                                                                                             _
    3  _                                                                                                                                                  _
    4  _ file: TinyMCE_player_notAll.css                                                                                                                  _
    5  _ last modified: 8/29/19 12:04 AM                                                                                                                  _
    6  _                                                                                                                                                  _
    7  _ Open Lab s.r.l., Florence - Italy                                                                                                                _
    8  _                                                                                                                                                  _
    9  _ email: [email protected]                                                                                                                       _
    10  _ site: http://pupunzi.com                                                                                                                         _
    11  _       http://open-lab.com                                                                                                                        _
    12  _ blog: http://pupunzi.open-lab.com                                                                                                                _
    13  _ Q&A:  http://jquery.pupunzi.com                                                                                                                  _
    14  _                                                                                                                                                  _
    15  _ Licences: MIT, GPL                                                                                                                               _
    16  _    http://www.opensource.org/licenses/mit-license.php                                                                                            _
    17  _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
    18  _                                                                                                                                                  _
    19  _ Copyright (c) 2001-2019. Matteo Bicocchi (Pupunzi);                                                                                              _
    20  ___________________________________________________________________________________________________________________________________________________*/
    21 
    221@charset "UTF-8";
    232
  • wp-miniaudioplayer/tags/1.9.0/css/font/DroidSansMono/demo.html

    r2147389 r2147879  
    1 <!--–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
    2   jquery.mb.components                                                                                                                              –
    3                                                                                                                                                     –
    4   file: demo.html                                                                                                                                   –
    5   last modified: 8/29/19 12:04 AM                                                                                                                   –
    6                                                                                                                                                     –
    7   Open Lab s.r.l., Florence - Italy                                                                                                                 –
    8                                                                                                                                                     –
    9   email: [email protected]                                                                                                                        –
    10   site: http://pupunzi.com                                                                                                                          –
    11         http://open-lab.com                                                                                                                         –
    12   blog: http://pupunzi.open-lab.com                                                                                                                 –
    13   Q&A:  http://jquery.pupunzi.com                                                                                                                   –
    14                                                                                                                                                     –
    15   Licences: MIT, GPL                                                                                                                                –
    16      http://www.opensource.org/licenses/mit-license.php                                                                                             –
    17      http://www.gnu.org/licenses/gpl.html                                                                                                           –
    18                                                                                                                                                     –
    19   Copyright (c) 2001-2019. Matteo Bicocchi (Pupunzi);                                                                                               –
    20   –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––-->
     1<!--
     2  ~ /*******************************************************************************
     3  ~  jquery.mb.components
     4  ~  file: demo.html
     5  ~
     6  ~  Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
     7  ~  Open lab srl, Firenze - Italy
     8  ~  email: [email protected]
     9  ~  site:  http://pupunzi.com
     10  ~  blog:  http://pupunzi.open-lab.com
     11  ~     http://open-lab.com
     12  ~
     13  ~  Licences: MIT, GPL
     14  ~  http://www.opensource.org/licenses/mit-license.php
     15  ~  http://www.gnu.org/licenses/gpl.html
     16  ~
     17  ~  last modified: 07/01/14 22.50
     18  ~  ******************************************************************************/
     19  -->
    2120
    2221<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  • wp-miniaudioplayer/tags/1.9.0/css/font/DroidSansMono/stylesheet.css

    r2147389 r2147879  
    1 /*___________________________________________________________________________________________________________________________________________________
    2  _ jquery.mb.components                                                                                                                             _
    3  _                                                                                                                                                  _
    4  _ file: stylesheet.css                                                                                                                             _
    5  _ last modified: 8/29/19 12:04 AM                                                                                                                  _
    6  _                                                                                                                                                  _
    7  _ Open Lab s.r.l., Florence - Italy                                                                                                                _
    8  _                                                                                                                                                  _
    9  _ email: [email protected]                                                                                                                       _
    10  _ site: http://pupunzi.com                                                                                                                         _
    11  _       http://open-lab.com                                                                                                                        _
    12  _ blog: http://pupunzi.open-lab.com                                                                                                                _
    13  _ Q&A:  http://jquery.pupunzi.com                                                                                                                  _
    14  _                                                                                                                                                  _
    15  _ Licences: MIT, GPL                                                                                                                               _
    16  _    http://www.opensource.org/licenses/mit-license.php                                                                                            _
    17  _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
    18  _                                                                                                                                                  _
    19  _ Copyright (c) 2001-2019. Matteo Bicocchi (Pupunzi);                                                                                              _
    20  ___________________________________________________________________________________________________________________________________________________*/
     1/*
     2 * ******************************************************************************
     3 *  jquery.mb.components
     4 *  file: stylesheet.css
     5 *
     6 *  Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
     7 *  Open lab srl, Firenze - Italy
     8 *  email: [email protected]
     9 *  site:   http://pupunzi.com
     10 *  blog:   http://pupunzi.open-lab.com
     11 *  http://open-lab.com
     12 *
     13 *  Licences: MIT, GPL
     14 *  http://www.opensource.org/licenses/mit-license.php
     15 *  http://www.gnu.org/licenses/gpl.html
     16 *
     17 *  last modified: 07/01/14 22.50
     18 *  *****************************************************************************
     19 */
    2120
    2221/* Generated by Font Squirrel (http://www.fontsquirrel.com) on May 19, 2011 05:14:32 AM America/New_York */
  • wp-miniaudioplayer/tags/1.9.0/css/miniplayer.css

    r2147389 r2147879  
    1 /*___________________________________________________________________________________________________________________________________________________
    2  _ jquery.mb.components                                                                                                                             _
    3  _                                                                                                                                                  _
    4  _ file: miniplayer.css                                                                                                                             _
    5  _ last modified: 8/29/19 12:04 AM                                                                                                                  _
    6  _                                                                                                                                                  _
    7  _ Open Lab s.r.l., Florence - Italy                                                                                                                _
    8  _                                                                                                                                                  _
    9  _ email: [email protected]                                                                                                                       _
    10  _ site: http://pupunzi.com                                                                                                                         _
    11  _       http://open-lab.com                                                                                                                        _
    12  _ blog: http://pupunzi.open-lab.com                                                                                                                _
    13  _ Q&A:  http://jquery.pupunzi.com                                                                                                                  _
    14  _                                                                                                                                                  _
    15  _ Licences: MIT, GPL                                                                                                                               _
    16  _    http://www.opensource.org/licenses/mit-license.php                                                                                            _
    17  _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
    18  _                                                                                                                                                  _
    19  _ Copyright (c) 2001-2019. Matteo Bicocchi (Pupunzi);                                                                                              _
    20  ___________________________________________________________________________________________________________________________________________________*/
    21 
    221@charset "UTF-8";
    232
  • wp-miniaudioplayer/tags/1.9.0/inc/popup.php

    r2147389 r2147879  
    2626{
    2727
    28     if (get_user_option('rich_editing') != 'true')
    29         return;
    30 
    31     add_action('media_buttons', 'miniaudioplayer_add_icon');
    32     add_action('admin_footer', 'miniaudioplayer_add_popup');
     28    if (get_user_option('rich_editing') != 'true')
     29        return;
     30
     31    add_action('media_buttons', 'miniaudioplayer_add_icon');
     32    add_action('admin_footer', 'miniaudioplayer_add_popup');
    3333}
    3434
     
    3636function miniaudioplayer_add_icon()
    3737{
    38     global $ytpl_popup_id;
    39     echo '<style>
     38    global $ytpl_popup_id;
     39    echo '<style>
    4040    #add-map .dashicons {
    4141        color: #888;
     
    4545        width: 18px;
    4646
    47         background-image: url(' . plugins_url("/inc/maplayerbutton.svg") . ');
     47        background-image: url(' . plugins_url("maplayerbutton.svg", __FILE__) . ');
    4848        background-repeat: no-repeat;
    4949    }
     
    6464class miniaudioplayer_check_href
    6565{
    66     function __construct()
    67     {
    68         add_filter('mce_external_plugins', array(&$this, 'add_map_tinymce_plugin'));
    69         add_filter('tiny_mce_before_init', array(&$this, 'add_map_TinyMCE_css'));
    70     }
    71 
    72     //include the tinymce javascript plugin
    73     function add_map_tinymce_plugin($plugin_array)
    74     {
    75         $plugin_array['wpmbmap'] = plugins_url('/inc/map_short_code.js?_=' . MINIAUDIOPLAYER_VERSION, __FILE__);
    76         return $plugin_array;
    77     }
    78 
    79     //include the css file to style the graphic that replaces the shortcode
    80     function add_map_TinyMCE_css($in)
    81     {
    82         $in['content_css'] .= "," . plugins_url('/inc/map_short_code.css', __FILE__);;
    83         return $in;
    84     }
     66    function __construct()
     67    {
     68        add_filter('mce_external_plugins', array(&$this, 'add_map_tinymce_plugin'));
     69        add_filter('tiny_mce_before_init', array(&$this, 'add_map_TinyMCE_css'));
     70    }
     71
     72    //include the tinymce javascript plugin
     73    function add_map_tinymce_plugin($plugin_array)
     74    {
     75        $plugin_array['wpmbmap'] = plugins_url('map_short_code.js?_=' . MINIAUDIOPLAYER_VERSION, __FILE__);
     76        return $plugin_array;
     77    }
     78
     79    //include the css file to style the graphic that replaces the shortcode
     80    function add_map_TinyMCE_css($in)
     81    {
     82        $in['content_css'] .= "," . plugins_url('map_short_code.css?_=' . MINIAUDIOPLAYER_VERSION, __FILE__, __FILE__);;
     83        return $in;
     84    }
    8585}
    8686add_action("init", create_function('', 'new miniaudioplayer_check_href();'));
     
    9292function miniaudioplayer_add_popup()
    9393{
    94     $exclude_class = get_option('miniAudioPlayer_excluded');
    95     $showVolumeLevel = get_option('miniAudioPlayer_showVolumeLevel');
    96     $allowMute = get_option('miniAudioPlayer_allowMute');
    97     $showTime = get_option('miniAudioPlayer_showTime');
    98     $showRew = get_option('miniAudioPlayer_showRew');
    99     $width = get_option('miniAudioPlayer_width');
    100     $skin = get_option('miniAudioPlayer_skin');
    101     $miniAudioPlayer_animate = get_option('miniAudioPlayer_animate');
    102     $miniAudioPlayer_add_gradient = get_option('miniAudioPlayer_add_gradient');
    103     $volume = get_option('miniAudioPlayer_volume');
    104     $downloadable = get_option('miniAudioPlayer_download');
    105     $custom_skin_name = get_option('miniAudioPlayer_custom_skin_name');
    106     $downloadable_security = get_option('miniAudioPlayer_download_security');
    107     ?>
     94    $exclude_class = get_option('miniAudioPlayer_excluded');
     95    $showVolumeLevel = get_option('miniAudioPlayer_showVolumeLevel');
     96    $allowMute = get_option('miniAudioPlayer_allowMute');
     97    $showTime = get_option('miniAudioPlayer_showTime');
     98    $showRew = get_option('miniAudioPlayer_showRew');
     99    $width = get_option('miniAudioPlayer_width');
     100    $skin = get_option('miniAudioPlayer_skin');
     101    $miniAudioPlayer_animate = get_option('miniAudioPlayer_animate');
     102    $miniAudioPlayer_add_gradient = get_option('miniAudioPlayer_add_gradient');
     103    $volume = get_option('miniAudioPlayer_volume');
     104    $downloadable = get_option('miniAudioPlayer_download');
     105    $custom_skin_name = get_option('miniAudioPlayer_custom_skin_name');
     106    $downloadable_security = get_option('miniAudioPlayer_download_security');
     107    ?>
    108108  <div id="map-form" style="display: none;">
    109109    <style>
     
    354354
    355355          <script>
    356               function manageSecurity(el) {
    357                   var security = jQuery('[name=downloadablesecurity]');
    358                   if (jQuery(el).is(":checked")) {
    359                       security.removeAttr('disabled');
    360                   } else {
    361                       security.attr('disabled', 'disabled');
    362                       security.removeAttr('checked');
    363                   }
    364               }
     356              function manageSecurity(el) {
     357                  var security = jQuery('[name=downloadablesecurity]');
     358                  if (jQuery(el).is(":checked")) {
     359                      security.removeAttr('disabled');
     360                  } else {
     361                      security.attr('disabled', 'disabled');
     362                      security.removeAttr('checked');
     363                  }
     364              }
    365365          </script>
    366366
     
    379379  <script>
    380380
    381       var selection = null;
    382       var tmpInfo = {};
    383 
    384       jQuery(function () {
    385           jQuery(".wp-editor-tabs button").on("click.map", function () {
    386 
    387               setTimeout(function () {
    388                   if (!tinyMCE.activeEditor || tinyMCE.activeEditor.isHidden()) {
    389                       jQuery("#add-map").css("opacity", .5);
    390                   } else {
    391                       jQuery("#add-map").css("opacity", 1);
    392                   }
    393               }, 400)
    394           })
    395       });
    396 
    397       function getFromMetatags() {
    398           if (typeof ID3 == "object") {
    399               ID3.loadTags(document.audioURL, function () {
    400                   var info = {};
    401                   info.title = ID3.getTag(document.audioURL, "title");
    402                   info.artist = ID3.getTag(document.audioURL, "artist");
    403                   info.album = ID3.getTag(document.audioURL, "album");
    404                   info.track = ID3.getTag(document.audioURL, "track");
    405                   info.size = ID3.getTag(document.audioURL, "size");
    406                   if (info.title && info.title != undefined) {
    407                       jQuery("[name='audiotitle']").val(info.title + " - " + info.artist);
    408 
    409                       tmpInfo = info;
    410                   } else {
    411                       jquery("button#metadata").after("no meta-data available for this file");
    412                   }
    413               })
    414           }
    415       }
    416 
    417       function miniaudioplayer_show_editor() {
    418 
    419           if (tinyMCE.activeEditor == null || tinyMCE.activeEditor.isHidden() != false) {
    420               alert("You should switch to the visual editor");
    421               return;
    422           }
    423 
    424           var map_editor = tinyMCE.activeEditor;
    425 
    426           var map_form = jQuery('#map-form form').get(0);
    427 
    428           var selection = map_editor.selection.getNode();
    429           map_editor.isValidURL = false;
    430           map_editor.isHref = false;
    431 
    432           if (jQuery(selection).is("a[href *= '.mp3']") || jQuery(selection).find("a[href *= '.mp3']").lenght > 0 || jQuery(selection).prev().is("a[href *= '.mp3']")) {
    433               map_editor.isHref = true;
    434               map_editor.isValidURL = true;
    435           } else if (jQuery(selection).is("a") || jQuery(selection).find("a").lenght > 0 || jQuery(selection).prev().is("a")) {
    436               map_editor.isHref = true;
    437           }
    438 
    439           if (!map_editor.isHref) {
    440               alert("Select a link to an mp3 file to customize the player.");
    441               return;
    442           }
    443 
    444           if (!map_editor.isValidURL) {
    445               var d = confirm("the selected Link doesn't seams a valid MP3 path; do you want to continue anyway?");
    446               if (!d)
    447                   return;
    448 
    449           }
    450           map_form.reset();
    451 
    452           jQuery("body").css({overflow: "hidden"});
    453           jQuery("#map-form").slideDown(300);
    454 
    455           selection = map_editor.selection.getNode();
    456 
    457           map_editor.selection.select(selection, true);
    458 
    459           var $selection = jQuery(selection);
    460 
    461           var map_element = $selection.find("a[href *= '.mp3']");
    462           if (map_element.length) {
    463               selection = map_editor.selection.select(map_element.get(0), true);
    464           } else if ($selection.prev().is("a[href *= '.mp3']")) {
    465               selection = map_editor.selection.select($selection.prev().get(0), true);
    466           }
    467 
    468           $selection = jQuery(selection);
    469 
    470           var url = document.audioURL = $selection.attr("href");
    471           var title = $selection.html();
    472           var isExcluded = $selection.hasClass("<?php echo $exclude_class ?>");
    473 
    474           var metadata = $selection.metadata();
    475 
    476           if (metadata.volume)
    477               metadata.volume = parseFloat(metadata.volume) * 10;
    478 
    479           if (jQuery.isEmptyObject(metadata)) {
    480               var defaultmeta = {
    481                   showVolumeLevel:<?php echo empty($showVolumeLevel) ? false : $showVolumeLevel ?>,
    482                   allowMute:<?php echo $allowMute ? "true" : "false"?>,
    483                   showTime:<?php echo $showTime ? "true" : "false"?>,
    484                   showRew:<?php echo $showRew ? "true" : "false"?>,
    485                   width: "<?php echo $width ?>",
    486                   skin: "<?php echo $skin ?>",
    487                   animate:<?php echo $miniAudioPlayer_animate ? "true" : "false" ?>,
    488                   loop: false,
    489                   addGradientOverlay: <?php echo $miniAudioPlayer_add_gradient ? "true" : "false" ?>,
    490                   downloadable:<?php echo $downloadable ? "true" : "false" ?>,
    491                   downloadable_security:<?php echo $downloadable_security ? "true" : "false" ?>,
    492                   volume: parseFloat(<?php echo $volume ?>) * 10
    493               };
    494               jQuery.extend(metadata, defaultmeta);
    495           }
    496 
    497           jQuery.extend(metadata, {exclude: isExcluded});
    498 
    499           jQuery("[name='url']", map_form).val(url);
    500 
    501           jQuery("[name='audiotitle']", map_form).val(title);
    502 
    503           for (var i in metadata) {
    504               if (typeof metadata[i] == "boolean") {
    505                   if (eval(metadata[i]) == true)
    506                       jQuery("[name=" + i + "]").attr("checked", "checked");
    507                   else
    508                       jQuery("[name=" + i + "]").removeAttr("checked");
    509               } else
    510                   jQuery("[name=" + i + "]").val(metadata[i]);
    511           }
    512 
    513           var map_form = jQuery('#map-form form').get(0);
    514           map_form.onsubmit = miniaudioplayer_insertCode;
    515       }
    516 
    517       function miniaudioplayer_insertCode(e) {
    518 
    519           var map_editor = tinyMCE.activeEditor;
    520           var map_form = jQuery('#map-form form').get(0);
    521 
    522           var map_params = "{";
    523           if (jQuery("[name='skin']", map_form).val().length > 0)
    524               map_params += "skin:'" + jQuery("[name='skin']").val() + "', ";
    525           map_params += "animate:" + (jQuery("[name='animate']").is(":checked") ? "true" : "false") + ", ";
    526           if (jQuery("[name='width']", map_form).val().length > 0)
    527               map_params += "width:'" + jQuery("[name='width']", map_form).val() + "', ";
    528           if (jQuery("[name='volume']", map_form).val().length > 0)
    529               map_params += "volume:" + jQuery("[name='volume']", map_form).val() / 10 + ", ";
    530           map_params += "autoplay:" + (jQuery("[name='autoplay']", map_form).is(":checked") ? "true" : "false") + ", ";
    531           map_params += "loop:" + (jQuery("[name='loop']", map_form).is(":checked") ? "true" : "false") + ", ";
    532           map_params += "showVolumeLevel:" + (jQuery("[name='showVolumeLevel']", map_form).is(":checked") ? "true" : "false") + ", ";
    533           map_params += "showTime:" + (jQuery("[name='showTime']", map_form).is(":checked") ? "true" : "false") + ", ";
    534           map_params += "allowMute:" + (jQuery("[name='allowMute']", map_form).is(":checked") ? "true" : "false") + ", ";
    535           map_params += "showRew:" + (jQuery("[name='showRew']", map_form).is(":checked") ? "true" : "false") + ", ";
    536           map_params += "addGradientOverlay:" + (jQuery("[name='addGradientOverlay']", map_form).is(":checked") ? "true" : "false") + ", ";
    537           map_params += "downloadable:" + (jQuery("[name='downloadable']", map_form).is(":checked") ? "true" : "false") + ", ";
    538           map_params += "downloadablesecurity:" + (jQuery("[name='downloadablesecurity']", map_form).is(":checked") ? "true" : "false") + ", ";
    539           map_params += "id3: false";
    540           map_params += "}";
    541           map_params = map_params.replace(", }", "}");
    542 
    543           var isExcluded = jQuery("[name='exclude']", map_form).is(":checked") ? "<?php echo $exclude_class ?> " : "";
    544 
    545           var map_a = "<a id='mbmaplayer_" + new Date().getTime() + "' class=";
    546           map_a += "\"mb_map " + isExcluded + map_params + "\" ";
    547 
    548           for (var x in tmpInfo) {
    549               map_a += "meta-" + x + "=\"" + tmpInfo[x] + "\" ";
    550           }
    551           map_a += "href=\"" + jQuery("[name='url']", map_form).val() + "\">";
    552           map_a += jQuery("[name='audiotitle']", map_form).val();
    553           map_a += "</a>";
    554           map_editor.execCommand('mceInsertContent', 0, map_a);
    555 
    556           miniaudioplayer_hide_editor();
    557 
    558           return false;
    559       }
    560 
    561       function miniaudioplayer_hide_editor() {
    562           jQuery("#map-form").slideUp(300);
    563           jQuery("body").css({overflow: "auto"});
    564       }
    565 
    566       jQuery("body").on("click", "#map-form", function (e) {
    567           var target = e.originalEvent.target;
    568           if (jQuery(target).parents().is("#map-form"))
    569               return;
    570           miniaudioplayer_hide_editor();
    571       });
    572 
    573 
    574       /*
    575    * ******************************************************************************
    576    *  file: metadata.js
    577    */
    578 
    579 
    580       jQuery.extend({
    581           metadata: {
    582               defaults: {type: "class", name: "metadata", cre: /({.*})/, single: "metadata"}, setType: function (b, e) {
    583                   this.defaults.type = b;
    584                   this.defaults.name = e
    585               }, get: function (b, e) {
    586                   var c = jQuery.extend({}, this.defaults, e);
    587                   c.single.length || (c.single = "metadata");
    588                   var a = jQuery.data(b, c.single);
    589                   if (a) return a;
    590                   a = "{}";
    591                   if ("class" == c.type) {
    592                       var d = c.cre.exec(b.className);
    593                       d && (a = d[1])
    594                   } else if ("elem" == c.type) {
    595                       if (!b.getElementsByTagName) return;
    596                       d = b.getElementsByTagName(c.name);
    597                       d.length && (a = jQuery.trim(d[0].innerHTML))
    598                   } else void 0 !=
    599                   b.getAttribute && (d = b.getAttribute(c.name)) && (a = d);
    600                   0 > a.indexOf("{") && (a = "{" + a + "}");
    601                   a = eval("(" + a + ")");
    602                   jQuery.data(b, c.single, a);
    603                   return a
    604               }
    605           }
    606       });
    607       jQuery.fn.metadata = function (b) {
    608           return jQuery.metadata.get(this[0], b)
    609       };
    610 
    611       /*
    612    * ******************************************************************************
    613    *  file: id3.min.js
    614    */
    615     var q=null;function y(g,i,d){function f(b,h,e,a,d,f){var j=c();if(j){typeof f==="undefined"&&(f=!0);if(h)typeof j.onload!="undefined"?j.onload=function(){j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e();j=q}:j.onreadystatechange=function(){if(j.readyState==4)j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e(),j=q};j.open("GET",b,f);j.overrideMimeType&&j.overrideMimeType("text/plain; charset=x-user-defined");a&&j.setRequestHeader("Range",
    616       "bytes="+a[0]+"-"+a[1]);j.setRequestHeader("If-Modified-Since","Sat, 1 Jan 1970 00:00:00 GMT");j.send(q)}else e&&e()}function c(){var b=q;window.XMLHttpRequest?b=new XMLHttpRequest:window.F&&(b=new ActiveXObject("Microsoft.XMLHTTP"));return b}function a(b,h){var e=c();if(e){if(h)typeof e.onload!="undefined"?e.onload=function(){e.status=="200"&&h(this);e=q}:e.onreadystatechange=function(){e.readyState==4&&(e.status=="200"&&h(this),e=q)};e.open("HEAD",b,!0);e.send(q)}}function b(b,h){var e,a;function c(b){var p=
    617       ~~(b[0]/e)-a,b=~~(b[1]/e)+1+a;p<0&&(p=0);b>=blockTotal&&(b=blockTotal-1);return[p,b]}function g(a,c){for(;n[a[0]];)if(a[0]++,a[0]>a[1]){c&&c();return}for(;n[a[1]];)if(a[1]--,a[0]>a[1]){c&&c();return}var k=[a[0]*e,(a[1]+1)*e-1];f(b,function(b){parseInt(b.getResponseHeader("Content-Length"),10)==h&&(a[0]=0,a[1]=blockTotal-1,k[0]=0,k[1]=h-1);for(var b={data:b.W||b.responseText,s:k[0]},p=a[0];p<=a[1];p++)n[p]=b;i+=k[1]-k[0]+1;c&&c()},d,k,j,!!c)}var j,i=0,l=new z("",0,h),n=[];e=e||2048;a=typeof a==="undefined"?
    618       0:a;blockTotal=~~((h-1)/e)+1;for(var m in l)l.hasOwnProperty(m)&&typeof l[m]==="function"&&(this[m]=l[m]);this.a=function(b){var a;g(c([b,b]));a=n[~~(b/e)];if(typeof a.data=="string")return a.data.charCodeAt(b-a.s)&255;else if(typeof a.data=="unknown")return IEBinary_getByteAt(a.data,b-a.s)};this.N=function(){return i};this.f=function(b,a){g(c(b),a)}}(function(){a(g,function(a){a=parseInt(a.getResponseHeader("Content-Length"),10)||-1;i(new b(g,a))})})()}
    619     function z(g,i,d){var f=g,c=i||0,a=0;this.P=function(){return f};if(typeof g=="string")a=d||f.length,this.a=function(b){return f.charCodeAt(b+c)&255};else if(typeof g=="unknown")a=d||IEBinary_getLength(f),this.a=function(b){return IEBinary_getByteAt(f,b+c)};this.n=function(b,a){for(var h=Array(a),e=0;e<a;e++)h[e]=this.a(b+e);return h};this.j=function(){return a};this.d=function(b,a){return(this.a(b)&1<<a)!=0};this.Q=function(b){b=this.a(b);return b>127?b-256:b};this.r=function(b,a){var h=a?(this.a(b)<<
    620       8)+this.a(b+1):(this.a(b+1)<<8)+this.a(b);h<0&&(h+=65536);return h};this.S=function(b,a){var h=this.r(b,a);return h>32767?h-65536:h};this.h=function(b,a){var h=this.a(b),e=this.a(b+1),c=this.a(b+2),d=this.a(b+3),h=a?(((h<<8)+e<<8)+c<<8)+d:(((d<<8)+c<<8)+e<<8)+h;h<0&&(h+=4294967296);return h};this.R=function(b,a){var c=this.h(b,a);return c>2147483647?c-4294967296:c};this.q=function(b){var a=this.a(b),c=this.a(b+1),b=this.a(b+2),a=((a<<8)+c<<8)+b;a<0&&(a+=16777216);return a};this.c=function(b,a){for(var c=
    621       [],e=b,d=0;e<b+a;e++,d++)c[d]=String.fromCharCode(this.a(e));return c.join("")};this.e=function(b,a,c){b=this.n(b,a);switch(c.toLowerCase()){case "utf-16":case "utf-16le":case "utf-16be":var a=c,e,d=0,f=1,c=0;e=Math.min(e||b.length,b.length);b[0]==254&&b[1]==255?(a=!0,d=2):b[0]==255&&b[1]==254&&(a=!1,d=2);a&&(f=0,c=1);for(var a=[],g=0;d<e;g++){var j=b[d+f],i=(j<<8)+b[d+c];d+=2;if(i==0)break;else j<216||j>=224?a[g]=String.fromCharCode(i):(j=(b[d+f]<<8)+b[d+c],d+=2,a[g]=String.fromCharCode(i,j))}b=
    622       new String(a.join(""));b.g=d;break;case "utf-8":e=0;d=Math.min(d||b.length,b.length);b[0]==239&&b[1]==187&&b[2]==191&&(e=3);f=[];for(c=0;e<d;c++)if(a=b[e++],a==0)break;else a<128?f[c]=String.fromCharCode(a):a>=194&&a<224?(g=b[e++],f[c]=String.fromCharCode(((a&31)<<6)+(g&63))):a>=224&&a<240?(g=b[e++],i=b[e++],f[c]=String.fromCharCode(((a&255)<<12)+((g&63)<<6)+(i&63))):a>=240&&a<245&&(g=b[e++],i=b[e++],j=b[e++],a=((a&7)<<18)+((g&63)<<12)+((i&63)<<6)+(j&63)-65536,f[c]=String.fromCharCode((a>>10)+55296,
    623       (a&1023)+56320));b=new String(f.join(""));b.g=e;break;default:d=[];f=f||b.length;for(e=0;e<f;){c=b[e++];if(c==0)break;d[e-1]=String.fromCharCode(c)}b=new String(d.join(""));b.g=e}return b};this.M=function(a){return String.fromCharCode(this.a(a))};this.Z=function(){return window.btoa(f)};this.L=function(a){f=window.atob(a)};this.f=function(a,c){c()}}document.write("<script type='text/vbscript'>\r\nFunction IEBinary_getByteAt(strBinary, iOffset)\r\n\tIEBinary_getByteAt = AscB(MidB(strBinary,iOffset+1,1))\r\nEnd Function\r\nFunction IEBinary_getLength(strBinary)\r\n\tIEBinary_getLength = LenB(strBinary)\r\nEnd Function\r\n<\/script>\r\n");(function(g){g.FileAPIReader=function(g){return function(d,f){var c=new FileReader;c.onload=function(a){f(new z(a.target.result))};c.readAsBinaryString(g)}}})(this);(function(g){g.k={i:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",z:function(g){for(var d="",f,c,a,b,p,h,e=0;e<g.length;)f=g[e++],c=g[e++],a=g[e++],b=f>>2,f=(f&3)<<4|c>>4,p=(c&15)<<2|a>>6,h=a&63,isNaN(c)?p=h=64:isNaN(a)&&(h=64),d=d+Base64.i.charAt(b)+Base64.i.charAt(f)+Base64.i.charAt(p)+Base64.i.charAt(h);return d}};g.Base64=g.k;g.k.encodeBytes=g.k.z})(this);(function(g){var i=g.t={},d={},f=[0,7];i.C=function(c,a,b){b=b||{};(b.dataReader||y)(c,function(g){g.f(f,function(){var f=g.c(4,7)=="ftypM4A"?ID4:g.c(0,3)=="ID3"?ID3v2:ID3v1;f.o(g,function(){var e=b.tags,i=f.p(g,e),e=d[c]||{},k;for(k in i)i.hasOwnProperty(k)&&(e[k]=i[k]);d[c]=e;a&&a()})})})};i.A=function(c){if(!d[c])return q;var a={},b;for(b in d[c])d[c].hasOwnProperty(b)&&(a[b]=d[c][b]);return a};i.B=function(c,a){if(!d[c])return q;return d[c][a]};g.ID3=g.t;i.loadTags=i.C;i.getAllTags=i.A;i.getTag=
    624       i.B})(this);(function(g){var i=g.u={},d=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","AlternRock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock",
    625         "Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychadelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk-Rock","National Folk","Swing","Fast Fusion","Bebob","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock",
    626         "Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","Acapella","Euro-House","Dance Hall"];i.o=function(d,c){var a=d.j();d.f([a-128-1,a],c)};i.p=function(f){var c=f.j()-128;if(f.c(c,3)=="TAG"){var a=f.c(c+3,30).replace(/\0/g,
    627       ""),b=f.c(c+33,30).replace(/\0/g,""),g=f.c(c+63,30).replace(/\0/g,""),h=f.c(c+93,4).replace(/\0/g,"");if(f.a(c+97+28)==0)var e=f.c(c+97,28).replace(/\0/g,""),i=f.a(c+97+29);else e="",i=0;f=f.a(c+97+30);return{version:"1.1",title:a,artist:b,album:g,year:h,comment:e,track:i,genre:f<255?d[f]:""}}else return{}};g.ID3v1=g.u})(this);(function(g){function i(a,b){var c=b.a(a),d=b.a(a+1),e=b.a(a+2);return b.a(a+3)&127|(e&127)<<7|(d&127)<<14|(c&127)<<21}var d=g.G={};d.b={};d.frames={BUF:"Recommended buffer size",CNT:"Play counter",COM:"Comments",CRA:"Audio encryption",CRM:"Encrypted meta frame",ETC:"Event timing codes",EQU:"Equalization",GEO:"General encapsulated object",IPL:"Involved people list",LNK:"Linked information",MCI:"Music CD Identifier",MLL:"MPEG location lookup table",PIC:"Attached picture",POP:"Popularimeter",REV:"Reverb",
    628         RVA:"Relative volume adjustment",SLT:"Synchronized lyric/text",STC:"Synced tempo codes",TAL:"Album/Movie/Show title",TBP:"BPM (Beats Per Minute)",TCM:"Composer",TCO:"Content type",TCR:"Copyright message",TDA:"Date",TDY:"Playlist delay",TEN:"Encoded by",TFT:"File type",TIM:"Time",TKE:"Initial key",TLA:"Language(s)",TLE:"Length",TMT:"Media type",TOA:"Original artist(s)/performer(s)",TOF:"Original filename",TOL:"Original Lyricist(s)/text writer(s)",TOR:"Original release year",TOT:"Original album/Movie/Show title",
    629         TP1:"Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group",TP2:"Band/Orchestra/Accompaniment",TP3:"Conductor/Performer refinement",TP4:"Interpreted, remixed, or otherwise modified by",TPA:"Part of a set",TPB:"Publisher",TRC:"ISRC (International Standard Recording Code)",TRD:"Recording dates",TRK:"Track number/Position in set",TSI:"Size",TSS:"Software/hardware and settings used for encoding",TT1:"Content group description",TT2:"Title/Songname/Content description",TT3:"Subtitle/Description refinement",
    630         TXT:"Lyricist/text writer",TXX:"User defined text information frame",TYE:"Year",UFI:"Unique file identifier",ULT:"Unsychronized lyric/text transcription",WAF:"Official audio file webpage",WAR:"Official artist/performer webpage",WAS:"Official audio source webpage",WCM:"Commercial information",WCP:"Copyright/Legal information",WPB:"Publishers official webpage",WXX:"User defined URL link frame",AENC:"Audio encryption",APIC:"Attached picture",COMM:"Comments",COMR:"Commercial frame",ENCR:"Encryption method registration",
    631         EQUA:"Equalization",ETCO:"Event timing codes",GEOB:"General encapsulated object",GRID:"Group identification registration",IPLS:"Involved people list",LINK:"Linked information",MCDI:"Music CD identifier",MLLT:"MPEG location lookup table",OWNE:"Ownership frame",PRIV:"Private frame",PCNT:"Play counter",POPM:"Popularimeter",POSS:"Position synchronisation frame",RBUF:"Recommended buffer size",RVAD:"Relative volume adjustment",RVRB:"Reverb",SYLT:"Synchronized lyric/text",SYTC:"Synchronized tempo codes",
    632         TALB:"Album/Movie/Show title",TBPM:"BPM (beats per minute)",TCOM:"Composer",TCON:"Content type",TCOP:"Copyright message",TDAT:"Date",TDLY:"Playlist delay",TENC:"Encoded by",TEXT:"Lyricist/Text writer",TFLT:"File type",TIME:"Time",TIT1:"Content group description",TIT2:"Title/songname/content description",TIT3:"Subtitle/Description refinement",TKEY:"Initial key",TLAN:"Language(s)",TLEN:"Length",TMED:"Media type",TOAL:"Original album/movie/show title",TOFN:"Original filename",TOLY:"Original lyricist(s)/text writer(s)",
    633         TOPE:"Original artist(s)/performer(s)",TORY:"Original release year",TOWN:"File owner/licensee",TPE1:"Lead performer(s)/Soloist(s)",TPE2:"Band/orchestra/accompaniment",TPE3:"Conductor/performer refinement",TPE4:"Interpreted, remixed, or otherwise modified by",TPOS:"Part of a set",TPUB:"Publisher",TRCK:"Track number/Position in set",TRDA:"Recording dates",TRSN:"Internet radio station name",TRSO:"Internet radio station owner",TSIZ:"Size",TSRC:"ISRC (international standard recording code)",TSSE:"Software/Hardware and settings used for encoding",
    634         TYER:"Year",TXXX:"User defined text information frame",UFID:"Unique file identifier",USER:"Terms of use",USLT:"Unsychronized lyric/text transcription",WCOM:"Commercial information",WCOP:"Copyright/Legal information",WOAF:"Official audio file webpage",WOAR:"Official artist/performer webpage",WOAS:"Official audio source webpage",WORS:"Official internet radio station homepage",WPAY:"Payment",WPUB:"Publishers official webpage",WXXX:"User defined URL link frame"};var f={title:["TIT2","TT2"],artist:["TPE1",
    635             "TP1"],album:["TALB","TAL"],year:["TYER","TYE"],comment:["COMM","COM"],track:["TRCK","TRK"],genre:["TCON","TCO"],picture:["APIC","PIC"],lyrics:["USLT","ULT"]},c=["title","artist","album","track"];d.o=function(a,b){a.f([0,i(6,a)],b)};d.p=function(a,b){var g=0,h=a.a(g+3);if(h>4)return{version:">2.4"};var e=a.a(g+4),v=a.d(g+5,7),k=a.d(g+5,6),s=a.d(g+5,5),j=i(g+6,a);g+=10;if(k){var o=a.h(g,!0);g+=o+4}var h={version:"2."+h+"."+e,major:h,revision:e,flags:{unsynchronisation:v,extended_header:k,experimental_indicator:s},
    636         size:j},l;if(v)l={};else{j-=10;for(var v=a,e=b,k={},s=h.major,o=[],n=0,m;m=(e||c)[n];n++)o=o.concat(f[m]||[m]);for(e=o;g<j;){o=q;n=v;m=g;var u=q;switch(s){case 2:l=n.c(m,3);var r=n.q(m+3),t=6;break;case 3:l=n.c(m,4);r=n.h(m+4,!0);t=10;break;case 4:l=n.c(m,4),r=i(m+4,n),t=10}if(l=="")break;g+=t+r;if(!(e.indexOf(l)<0)&&(s>2&&(u={message:{Y:n.d(m+8,6),K:n.d(m+8,5),V:n.d(m+8,4)},m:{T:n.d(m+8+1,7),H:n.d(m+8+1,3),J:n.d(m+8+1,2),D:n.d(m+8+1,1),w:n.d(m+8+1,0)}}),m+=t,u&&u.m.w&&(i(m,n),m+=4,r-=4),!u||!u.m.D))l in
    637     d.b?o=d.b[l]:l[0]=="T"&&(o=d.b["T*"]),o=o?o(m,r,n,u):void 0,o={id:l,size:r,description:l in d.frames?d.frames[l]:"Unknown",data:o},l in k?(k[l].id&&(k[l]=[k[l]]),k[l].push(o)):k[l]=o}l=k}for(var w in f)if(f.hasOwnProperty(w)){a:{r=f[w];typeof r=="string"&&(r=[r]);t=0;for(g=void 0;g=r[t];t++)if(g in l){a=l[g].data;break a}a=void 0}a&&(h[w]=a)}for(var x in l)l.hasOwnProperty(x)&&(h[x]=l[x]);return h};g.ID3v2=d})(this);(function(){function g(d){var f;switch(d){case 0:f="iso-8859-1";break;case 1:f="utf-16";break;case 2:f="utf-16be";break;case 3:f="utf-8"}return f}var i=["32x32 pixels 'file icon' (PNG only)","Other file icon","Cover (front)","Cover (back)","Leaflet page","Media (e.g. lable side of CD)","Lead artist/lead performer/soloist","Artist/performer","Conductor","Band/Orchestra","Composer","Lyricist/text writer","Recording Location","During recording","During performance","Movie/video screen capture","A bright coloured fish",
    638         "Illustration","Band/artist logotype","Publisher/Studio logotype"];ID3v2.b.APIC=function(d,f,c,a,b){var b=b||"3",a=d,p=g(c.a(d));switch(b){case "2":var h=c.c(d+1,3);d+=4;break;case "3":case "4":h=c.e(d+1,f-(d-a),p),d+=1+h.g}b=c.a(d,1);b=i[b];p=c.e(d+1,f-(d-a),p);d+=1+p.g;return{format:h.toString(),type:b,description:p.toString(),data:c.n(d,a+f-d)}};ID3v2.b.COMM=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,X:h.toString(),text:d.toString()}};
    639         ID3v2.b.COM=ID3v2.b.COMM;ID3v2.b.PIC=function(d,f,c,a){return ID3v2.b.APIC(d,f,c,a,"2")};ID3v2.b.PCNT=function(d,f,c){return c.O(d)};ID3v2.b.CNT=ID3v2.b.PCNT;ID3v2.b["T*"]=function(d,f,c){var a=g(c.a(d));return c.e(d+1,f-1,a).toString()};ID3v2.b.TCON=function(){return ID3v2.b["T*"].apply(this,arguments).replace(/^\(\d+\)/,"")};ID3v2.b.TCO=ID3v2.b.TCON;ID3v2.b.USLT=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,I:h.toString(),U:d.toString()}};
    640         ID3v2.b.ULT=ID3v2.b.USLT})();(function(g){function i(c,a,b,d){var g=c.h(a,!0);if(g==0)d();else{var e=c.c(a+4,4);["moov","udta","meta","ilst"].indexOf(e)>-1?(e=="meta"&&(a+=4),c.f([a+8,a+8+8],function(){i(c,a+8,g-8,d)})):c.f([a+(e in f.l?0:g),a+g+8],function(){i(c,a+g,b,d)})}}function d(c,a,b,g,h){for(var h=h===void 0?"":h+"  ",e=b;e<b+g;){var i=a.h(e,!0);if(i==0)break;var k=a.c(e+4,4);if(["moov","udta","meta","ilst"].indexOf(k)>-1){k=="meta"&&(e+=4);d(c,a,e+8,i-8,h);break}if(f.l[k]){var s=a.q(e+16+1),j=f.l[k],s=f.types[s];if(k==
    641       "trkn")c[j[0]]=a.a(e+16+11),c.count=a.a(e+16+13);else{var k=e+16+4+4,o=i-16-4-4;switch(s){case "text":c[j[0]]=a.e(k,o,"UTF-8");break;case "uint8":c[j[0]]=a.r(k);break;case "jpeg":case "png":c[j[0]]={m:"image/"+s,data:a.n(k,o)}}}}e+=i}}var f=g.v={};f.types={0:"uint8",1:"text",13:"jpeg",14:"png",21:"uint8"};f.l={"\u00a9alb":["album"],"\u00a9art":["artist"],"\u00a9ART":["artist"],aART:["artist"],"\u00a9day":["year"],"\u00a9nam":["title"],"\u00a9gen":["genre"],trkn:["track"],"\u00a9wrt":["composer"],
    642         "\u00a9too":["encoder"],cprt:["copyright"],covr:["picture"],"\u00a9grp":["grouping"],keyw:["keyword"],"\u00a9lyr":["lyrics"],"\u00a9gen":["genre"]};f.o=function(c,a){c.f([0,7],function(){i(c,0,c.j(),a)})};f.p=function(c){var a={};d(a,c,0,c.j());return a};g.ID4=g.v})(this);
     381      var selection = null;
     382      var tmpInfo = {};
     383
     384      jQuery(function () {
     385          jQuery(".wp-editor-tabs button").on("click.map", function () {
     386
     387              setTimeout(function () {
     388                  if (!tinyMCE.activeEditor || tinyMCE.activeEditor.isHidden()) {
     389                      jQuery("#add-map").css("opacity", .5);
     390                  } else {
     391                      jQuery("#add-map").css("opacity", 1);
     392                  }
     393              }, 400)
     394          })
     395      });
     396
     397      function getFromMetatags() {
     398          if (typeof ID3 == "object") {
     399              ID3.loadTags(document.audioURL, function () {
     400                  var info = {};
     401                  info.title = ID3.getTag(document.audioURL, "title");
     402                  info.artist = ID3.getTag(document.audioURL, "artist");
     403                  info.album = ID3.getTag(document.audioURL, "album");
     404                  info.track = ID3.getTag(document.audioURL, "track");
     405                  info.size = ID3.getTag(document.audioURL, "size");
     406                  if (info.title && info.title != undefined) {
     407                      jQuery("[name='audiotitle']").val(info.title + " - " + info.artist);
     408
     409                      tmpInfo = info;
     410                  } else {
     411                      jquery("button#metadata").after("no meta-data available for this file");
     412                  }
     413              })
     414          }
     415      }
     416
     417      function miniaudioplayer_show_editor() {
     418
     419          if (tinyMCE.activeEditor == null || tinyMCE.activeEditor.isHidden() != false) {
     420              alert("You should switch to the visual editor");
     421              return;
     422          }
     423
     424          var map_editor = tinyMCE.activeEditor;
     425
     426          var map_form = jQuery('#map-form form').get(0);
     427
     428          var selection = map_editor.selection.getNode();
     429          map_editor.isValidURL = false;
     430          map_editor.isHref = false;
     431
     432          if (jQuery(selection).is("a[href *= '.mp3']") || jQuery(selection).find("a[href *= '.mp3']").lenght > 0 || jQuery(selection).prev().is("a[href *= '.mp3']")) {
     433              map_editor.isHref = true;
     434              map_editor.isValidURL = true;
     435          } else if (jQuery(selection).is("a") || jQuery(selection).find("a").lenght > 0 || jQuery(selection).prev().is("a")) {
     436              map_editor.isHref = true;
     437          }
     438
     439          if (!map_editor.isHref) {
     440              alert("Select a link to an mp3 file to customize the player.");
     441              return;
     442          }
     443
     444          if (!map_editor.isValidURL) {
     445              var d = confirm("the selected Link doesn't seams a valid MP3 path; do you want to continue anyway?");
     446              if (!d)
     447                  return;
     448
     449          }
     450          map_form.reset();
     451
     452          jQuery("body").css({overflow: "hidden"});
     453          jQuery("#map-form").slideDown(300);
     454
     455          selection = map_editor.selection.getNode();
     456
     457          map_editor.selection.select(selection, true);
     458
     459          var $selection = jQuery(selection);
     460
     461          var map_element = $selection.find("a[href *= '.mp3']");
     462          if (map_element.length) {
     463              selection = map_editor.selection.select(map_element.get(0), true);
     464          } else if ($selection.prev().is("a[href *= '.mp3']")) {
     465              selection = map_editor.selection.select($selection.prev().get(0), true);
     466          }
     467
     468          $selection = jQuery(selection);
     469
     470          var url = document.audioURL = $selection.attr("href");
     471          var title = $selection.html();
     472          var isExcluded = $selection.hasClass("<?php echo $exclude_class ?>");
     473
     474          var metadata = $selection.metadata();
     475
     476          if (metadata.volume)
     477              metadata.volume = parseFloat(metadata.volume) * 10;
     478
     479          if (jQuery.isEmptyObject(metadata)) {
     480              var defaultmeta = {
     481                  showVolumeLevel:<?php echo empty($showVolumeLevel) ? false : $showVolumeLevel ?>,
     482                  allowMute:<?php echo $allowMute ? "true" : "false"?>,
     483                  showTime:<?php echo $showTime ? "true" : "false"?>,
     484                  showRew:<?php echo $showRew ? "true" : "false"?>,
     485                  width: "<?php echo $width ?>",
     486                  skin: "<?php echo $skin ?>",
     487                  animate:<?php echo $miniAudioPlayer_animate ? "true" : "false" ?>,
     488                  loop: false,
     489                  addGradientOverlay: <?php echo $miniAudioPlayer_add_gradient ? "true" : "false" ?>,
     490                  downloadable:<?php echo $downloadable ? "true" : "false" ?>,
     491                  downloadable_security:<?php echo $downloadable_security ? "true" : "false" ?>,
     492                  volume: parseFloat(<?php echo $volume ?>) * 10
     493              };
     494              jQuery.extend(metadata, defaultmeta);
     495          }
     496
     497          jQuery.extend(metadata, {exclude: isExcluded});
     498
     499          jQuery("[name='url']", map_form).val(url);
     500
     501          jQuery("[name='audiotitle']", map_form).val(title);
     502
     503          for (var i in metadata) {
     504              if (typeof metadata[i] == "boolean") {
     505                  if (eval(metadata[i]) == true)
     506                      jQuery("[name=" + i + "]").attr("checked", "checked");
     507                  else
     508                      jQuery("[name=" + i + "]").removeAttr("checked");
     509              } else
     510                  jQuery("[name=" + i + "]").val(metadata[i]);
     511          }
     512
     513          var map_form = jQuery('#map-form form').get(0);
     514          map_form.onsubmit = miniaudioplayer_insertCode;
     515      }
     516
     517      function miniaudioplayer_insertCode(e) {
     518
     519          var map_editor = tinyMCE.activeEditor;
     520          var map_form = jQuery('#map-form form').get(0);
     521
     522          var map_params = "{";
     523          if (jQuery("[name='skin']", map_form).val().length > 0)
     524              map_params += "skin:'" + jQuery("[name='skin']").val() + "', ";
     525          map_params += "animate:" + (jQuery("[name='animate']").is(":checked") ? "true" : "false") + ", ";
     526          if (jQuery("[name='width']", map_form).val().length > 0)
     527              map_params += "width:'" + jQuery("[name='width']", map_form).val() + "', ";
     528          if (jQuery("[name='volume']", map_form).val().length > 0)
     529              map_params += "volume:" + jQuery("[name='volume']", map_form).val() / 10 + ", ";
     530          map_params += "autoplay:" + (jQuery("[name='autoplay']", map_form).is(":checked") ? "true" : "false") + ", ";
     531          map_params += "loop:" + (jQuery("[name='loop']", map_form).is(":checked") ? "true" : "false") + ", ";
     532          map_params += "showVolumeLevel:" + (jQuery("[name='showVolumeLevel']", map_form).is(":checked") ? "true" : "false") + ", ";
     533          map_params += "showTime:" + (jQuery("[name='showTime']", map_form).is(":checked") ? "true" : "false") + ", ";
     534          map_params += "allowMute:" + (jQuery("[name='allowMute']", map_form).is(":checked") ? "true" : "false") + ", ";
     535          map_params += "showRew:" + (jQuery("[name='showRew']", map_form).is(":checked") ? "true" : "false") + ", ";
     536          map_params += "addGradientOverlay:" + (jQuery("[name='addGradientOverlay']", map_form).is(":checked") ? "true" : "false") + ", ";
     537          map_params += "downloadable:" + (jQuery("[name='downloadable']", map_form).is(":checked") ? "true" : "false") + ", ";
     538          map_params += "downloadablesecurity:" + (jQuery("[name='downloadablesecurity']", map_form).is(":checked") ? "true" : "false") + ", ";
     539          map_params += "id3: false";
     540          map_params += "}";
     541          map_params = map_params.replace(", }", "}");
     542
     543          var isExcluded = jQuery("[name='exclude']", map_form).is(":checked") ? "<?php echo $exclude_class ?> " : "";
     544
     545          var map_a = "<a id='mbmaplayer_" + new Date().getTime() + "' class=";
     546          map_a += "\"mb_map " + isExcluded + map_params + "\" ";
     547
     548          for (var x in tmpInfo) {
     549              map_a += "meta-" + x + "=\"" + tmpInfo[x] + "\" ";
     550          }
     551          map_a += "href=\"" + jQuery("[name='url']", map_form).val() + "\">";
     552          map_a += jQuery("[name='audiotitle']", map_form).val();
     553          map_a += "</a>";
     554          map_editor.execCommand('mceInsertContent', 0, map_a);
     555
     556          miniaudioplayer_hide_editor();
     557
     558          return false;
     559      }
     560
     561      function miniaudioplayer_hide_editor() {
     562          jQuery("#map-form").slideUp(300);
     563          jQuery("body").css({overflow: "auto"});
     564      }
     565
     566      jQuery("body").on("click", "#map-form", function (e) {
     567          var target = e.originalEvent.target;
     568          if (jQuery(target).parents().is("#map-form"))
     569              return;
     570          miniaudioplayer_hide_editor();
     571      });
     572
     573
     574      /*
     575     * ******************************************************************************
     576     *  file: metadata.js
     577     */
     578
     579
     580      jQuery.extend({
     581          metadata: {
     582              defaults: {type: "class", name: "metadata", cre: /({.*})/, single: "metadata"}, setType: function (b, e) {
     583                  this.defaults.type = b;
     584                  this.defaults.name = e
     585              }, get: function (b, e) {
     586                  var c = jQuery.extend({}, this.defaults, e);
     587                  c.single.length || (c.single = "metadata");
     588                  var a = jQuery.data(b, c.single);
     589                  if (a) return a;
     590                  a = "{}";
     591                  if ("class" == c.type) {
     592                      var d = c.cre.exec(b.className);
     593                      d && (a = d[1])
     594                  } else if ("elem" == c.type) {
     595                      if (!b.getElementsByTagName) return;
     596                      d = b.getElementsByTagName(c.name);
     597                      d.length && (a = jQuery.trim(d[0].innerHTML))
     598                  } else void 0 !=
     599                  b.getAttribute && (d = b.getAttribute(c.name)) && (a = d);
     600                  0 > a.indexOf("{") && (a = "{" + a + "}");
     601                  a = eval("(" + a + ")");
     602                  jQuery.data(b, c.single, a);
     603                  return a
     604              }
     605          }
     606      });
     607      jQuery.fn.metadata = function (b) {
     608          return jQuery.metadata.get(this[0], b)
     609      };
     610
     611      /*
     612     * ******************************************************************************
     613     *  file: id3.min.js
     614     */
     615      var q=null;function y(g,i,d){function f(b,h,e,a,d,f){var j=c();if(j){typeof f==="undefined"&&(f=!0);if(h)typeof j.onload!="undefined"?j.onload=function(){j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e();j=q}:j.onreadystatechange=function(){if(j.readyState==4)j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e(),j=q};j.open("GET",b,f);j.overrideMimeType&&j.overrideMimeType("text/plain; charset=x-user-defined");a&&j.setRequestHeader("Range",
     616          "bytes="+a[0]+"-"+a[1]);j.setRequestHeader("If-Modified-Since","Sat, 1 Jan 1970 00:00:00 GMT");j.send(q)}else e&&e()}function c(){var b=q;window.XMLHttpRequest?b=new XMLHttpRequest:window.F&&(b=new ActiveXObject("Microsoft.XMLHTTP"));return b}function a(b,h){var e=c();if(e){if(h)typeof e.onload!="undefined"?e.onload=function(){e.status=="200"&&h(this);e=q}:e.onreadystatechange=function(){e.readyState==4&&(e.status=="200"&&h(this),e=q)};e.open("HEAD",b,!0);e.send(q)}}function b(b,h){var e,a;function c(b){var p=
     617          ~~(b[0]/e)-a,b=~~(b[1]/e)+1+a;p<0&&(p=0);b>=blockTotal&&(b=blockTotal-1);return[p,b]}function g(a,c){for(;n[a[0]];)if(a[0]++,a[0]>a[1]){c&&c();return}for(;n[a[1]];)if(a[1]--,a[0]>a[1]){c&&c();return}var k=[a[0]*e,(a[1]+1)*e-1];f(b,function(b){parseInt(b.getResponseHeader("Content-Length"),10)==h&&(a[0]=0,a[1]=blockTotal-1,k[0]=0,k[1]=h-1);for(var b={data:b.W||b.responseText,s:k[0]},p=a[0];p<=a[1];p++)n[p]=b;i+=k[1]-k[0]+1;c&&c()},d,k,j,!!c)}var j,i=0,l=new z("",0,h),n=[];e=e||2048;a=typeof a==="undefined"?
     618          0:a;blockTotal=~~((h-1)/e)+1;for(var m in l)l.hasOwnProperty(m)&&typeof l[m]==="function"&&(this[m]=l[m]);this.a=function(b){var a;g(c([b,b]));a=n[~~(b/e)];if(typeof a.data=="string")return a.data.charCodeAt(b-a.s)&255;else if(typeof a.data=="unknown")return IEBinary_getByteAt(a.data,b-a.s)};this.N=function(){return i};this.f=function(b,a){g(c(b),a)}}(function(){a(g,function(a){a=parseInt(a.getResponseHeader("Content-Length"),10)||-1;i(new b(g,a))})})()}
     619      function z(g,i,d){var f=g,c=i||0,a=0;this.P=function(){return f};if(typeof g=="string")a=d||f.length,this.a=function(b){return f.charCodeAt(b+c)&255};else if(typeof g=="unknown")a=d||IEBinary_getLength(f),this.a=function(b){return IEBinary_getByteAt(f,b+c)};this.n=function(b,a){for(var h=Array(a),e=0;e<a;e++)h[e]=this.a(b+e);return h};this.j=function(){return a};this.d=function(b,a){return(this.a(b)&1<<a)!=0};this.Q=function(b){b=this.a(b);return b>127?b-256:b};this.r=function(b,a){var h=a?(this.a(b)<<
     620          8)+this.a(b+1):(this.a(b+1)<<8)+this.a(b);h<0&&(h+=65536);return h};this.S=function(b,a){var h=this.r(b,a);return h>32767?h-65536:h};this.h=function(b,a){var h=this.a(b),e=this.a(b+1),c=this.a(b+2),d=this.a(b+3),h=a?(((h<<8)+e<<8)+c<<8)+d:(((d<<8)+c<<8)+e<<8)+h;h<0&&(h+=4294967296);return h};this.R=function(b,a){var c=this.h(b,a);return c>2147483647?c-4294967296:c};this.q=function(b){var a=this.a(b),c=this.a(b+1),b=this.a(b+2),a=((a<<8)+c<<8)+b;a<0&&(a+=16777216);return a};this.c=function(b,a){for(var c=
     621          [],e=b,d=0;e<b+a;e++,d++)c[d]=String.fromCharCode(this.a(e));return c.join("")};this.e=function(b,a,c){b=this.n(b,a);switch(c.toLowerCase()){case "utf-16":case "utf-16le":case "utf-16be":var a=c,e,d=0,f=1,c=0;e=Math.min(e||b.length,b.length);b[0]==254&&b[1]==255?(a=!0,d=2):b[0]==255&&b[1]==254&&(a=!1,d=2);a&&(f=0,c=1);for(var a=[],g=0;d<e;g++){var j=b[d+f],i=(j<<8)+b[d+c];d+=2;if(i==0)break;else j<216||j>=224?a[g]=String.fromCharCode(i):(j=(b[d+f]<<8)+b[d+c],d+=2,a[g]=String.fromCharCode(i,j))}b=
     622          new String(a.join(""));b.g=d;break;case "utf-8":e=0;d=Math.min(d||b.length,b.length);b[0]==239&&b[1]==187&&b[2]==191&&(e=3);f=[];for(c=0;e<d;c++)if(a=b[e++],a==0)break;else a<128?f[c]=String.fromCharCode(a):a>=194&&a<224?(g=b[e++],f[c]=String.fromCharCode(((a&31)<<6)+(g&63))):a>=224&&a<240?(g=b[e++],i=b[e++],f[c]=String.fromCharCode(((a&255)<<12)+((g&63)<<6)+(i&63))):a>=240&&a<245&&(g=b[e++],i=b[e++],j=b[e++],a=((a&7)<<18)+((g&63)<<12)+((i&63)<<6)+(j&63)-65536,f[c]=String.fromCharCode((a>>10)+55296,
     623          (a&1023)+56320));b=new String(f.join(""));b.g=e;break;default:d=[];f=f||b.length;for(e=0;e<f;){c=b[e++];if(c==0)break;d[e-1]=String.fromCharCode(c)}b=new String(d.join(""));b.g=e}return b};this.M=function(a){return String.fromCharCode(this.a(a))};this.Z=function(){return window.btoa(f)};this.L=function(a){f=window.atob(a)};this.f=function(a,c){c()}}document.write("<script type='text/vbscript'>\r\nFunction IEBinary_getByteAt(strBinary, iOffset)\r\n\tIEBinary_getByteAt = AscB(MidB(strBinary,iOffset+1,1))\r\nEnd Function\r\nFunction IEBinary_getLength(strBinary)\r\n\tIEBinary_getLength = LenB(strBinary)\r\nEnd Function\r\n<\/script>\r\n");(function(g){g.FileAPIReader=function(g){return function(d,f){var c=new FileReader;c.onload=function(a){f(new z(a.target.result))};c.readAsBinaryString(g)}}})(this);(function(g){g.k={i:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",z:function(g){for(var d="",f,c,a,b,p,h,e=0;e<g.length;)f=g[e++],c=g[e++],a=g[e++],b=f>>2,f=(f&3)<<4|c>>4,p=(c&15)<<2|a>>6,h=a&63,isNaN(c)?p=h=64:isNaN(a)&&(h=64),d=d+Base64.i.charAt(b)+Base64.i.charAt(f)+Base64.i.charAt(p)+Base64.i.charAt(h);return d}};g.Base64=g.k;g.k.encodeBytes=g.k.z})(this);(function(g){var i=g.t={},d={},f=[0,7];i.C=function(c,a,b){b=b||{};(b.dataReader||y)(c,function(g){g.f(f,function(){var f=g.c(4,7)=="ftypM4A"?ID4:g.c(0,3)=="ID3"?ID3v2:ID3v1;f.o(g,function(){var e=b.tags,i=f.p(g,e),e=d[c]||{},k;for(k in i)i.hasOwnProperty(k)&&(e[k]=i[k]);d[c]=e;a&&a()})})})};i.A=function(c){if(!d[c])return q;var a={},b;for(b in d[c])d[c].hasOwnProperty(b)&&(a[b]=d[c][b]);return a};i.B=function(c,a){if(!d[c])return q;return d[c][a]};g.ID3=g.t;i.loadTags=i.C;i.getAllTags=i.A;i.getTag=
     624          i.B})(this);(function(g){var i=g.u={},d=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","AlternRock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock",
     625          "Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychadelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk-Rock","National Folk","Swing","Fast Fusion","Bebob","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock",
     626          "Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","Acapella","Euro-House","Dance Hall"];i.o=function(d,c){var a=d.j();d.f([a-128-1,a],c)};i.p=function(f){var c=f.j()-128;if(f.c(c,3)=="TAG"){var a=f.c(c+3,30).replace(/\0/g,
     627          ""),b=f.c(c+33,30).replace(/\0/g,""),g=f.c(c+63,30).replace(/\0/g,""),h=f.c(c+93,4).replace(/\0/g,"");if(f.a(c+97+28)==0)var e=f.c(c+97,28).replace(/\0/g,""),i=f.a(c+97+29);else e="",i=0;f=f.a(c+97+30);return{version:"1.1",title:a,artist:b,album:g,year:h,comment:e,track:i,genre:f<255?d[f]:""}}else return{}};g.ID3v1=g.u})(this);(function(g){function i(a,b){var c=b.a(a),d=b.a(a+1),e=b.a(a+2);return b.a(a+3)&127|(e&127)<<7|(d&127)<<14|(c&127)<<21}var d=g.G={};d.b={};d.frames={BUF:"Recommended buffer size",CNT:"Play counter",COM:"Comments",CRA:"Audio encryption",CRM:"Encrypted meta frame",ETC:"Event timing codes",EQU:"Equalization",GEO:"General encapsulated object",IPL:"Involved people list",LNK:"Linked information",MCI:"Music CD Identifier",MLL:"MPEG location lookup table",PIC:"Attached picture",POP:"Popularimeter",REV:"Reverb",
     628          RVA:"Relative volume adjustment",SLT:"Synchronized lyric/text",STC:"Synced tempo codes",TAL:"Album/Movie/Show title",TBP:"BPM (Beats Per Minute)",TCM:"Composer",TCO:"Content type",TCR:"Copyright message",TDA:"Date",TDY:"Playlist delay",TEN:"Encoded by",TFT:"File type",TIM:"Time",TKE:"Initial key",TLA:"Language(s)",TLE:"Length",TMT:"Media type",TOA:"Original artist(s)/performer(s)",TOF:"Original filename",TOL:"Original Lyricist(s)/text writer(s)",TOR:"Original release year",TOT:"Original album/Movie/Show title",
     629          TP1:"Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group",TP2:"Band/Orchestra/Accompaniment",TP3:"Conductor/Performer refinement",TP4:"Interpreted, remixed, or otherwise modified by",TPA:"Part of a set",TPB:"Publisher",TRC:"ISRC (International Standard Recording Code)",TRD:"Recording dates",TRK:"Track number/Position in set",TSI:"Size",TSS:"Software/hardware and settings used for encoding",TT1:"Content group description",TT2:"Title/Songname/Content description",TT3:"Subtitle/Description refinement",
     630          TXT:"Lyricist/text writer",TXX:"User defined text information frame",TYE:"Year",UFI:"Unique file identifier",ULT:"Unsychronized lyric/text transcription",WAF:"Official audio file webpage",WAR:"Official artist/performer webpage",WAS:"Official audio source webpage",WCM:"Commercial information",WCP:"Copyright/Legal information",WPB:"Publishers official webpage",WXX:"User defined URL link frame",AENC:"Audio encryption",APIC:"Attached picture",COMM:"Comments",COMR:"Commercial frame",ENCR:"Encryption method registration",
     631          EQUA:"Equalization",ETCO:"Event timing codes",GEOB:"General encapsulated object",GRID:"Group identification registration",IPLS:"Involved people list",LINK:"Linked information",MCDI:"Music CD identifier",MLLT:"MPEG location lookup table",OWNE:"Ownership frame",PRIV:"Private frame",PCNT:"Play counter",POPM:"Popularimeter",POSS:"Position synchronisation frame",RBUF:"Recommended buffer size",RVAD:"Relative volume adjustment",RVRB:"Reverb",SYLT:"Synchronized lyric/text",SYTC:"Synchronized tempo codes",
     632          TALB:"Album/Movie/Show title",TBPM:"BPM (beats per minute)",TCOM:"Composer",TCON:"Content type",TCOP:"Copyright message",TDAT:"Date",TDLY:"Playlist delay",TENC:"Encoded by",TEXT:"Lyricist/Text writer",TFLT:"File type",TIME:"Time",TIT1:"Content group description",TIT2:"Title/songname/content description",TIT3:"Subtitle/Description refinement",TKEY:"Initial key",TLAN:"Language(s)",TLEN:"Length",TMED:"Media type",TOAL:"Original album/movie/show title",TOFN:"Original filename",TOLY:"Original lyricist(s)/text writer(s)",
     633          TOPE:"Original artist(s)/performer(s)",TORY:"Original release year",TOWN:"File owner/licensee",TPE1:"Lead performer(s)/Soloist(s)",TPE2:"Band/orchestra/accompaniment",TPE3:"Conductor/performer refinement",TPE4:"Interpreted, remixed, or otherwise modified by",TPOS:"Part of a set",TPUB:"Publisher",TRCK:"Track number/Position in set",TRDA:"Recording dates",TRSN:"Internet radio station name",TRSO:"Internet radio station owner",TSIZ:"Size",TSRC:"ISRC (international standard recording code)",TSSE:"Software/Hardware and settings used for encoding",
     634          TYER:"Year",TXXX:"User defined text information frame",UFID:"Unique file identifier",USER:"Terms of use",USLT:"Unsychronized lyric/text transcription",WCOM:"Commercial information",WCOP:"Copyright/Legal information",WOAF:"Official audio file webpage",WOAR:"Official artist/performer webpage",WOAS:"Official audio source webpage",WORS:"Official internet radio station homepage",WPAY:"Payment",WPUB:"Publishers official webpage",WXXX:"User defined URL link frame"};var f={title:["TIT2","TT2"],artist:["TPE1",
     635              "TP1"],album:["TALB","TAL"],year:["TYER","TYE"],comment:["COMM","COM"],track:["TRCK","TRK"],genre:["TCON","TCO"],picture:["APIC","PIC"],lyrics:["USLT","ULT"]},c=["title","artist","album","track"];d.o=function(a,b){a.f([0,i(6,a)],b)};d.p=function(a,b){var g=0,h=a.a(g+3);if(h>4)return{version:">2.4"};var e=a.a(g+4),v=a.d(g+5,7),k=a.d(g+5,6),s=a.d(g+5,5),j=i(g+6,a);g+=10;if(k){var o=a.h(g,!0);g+=o+4}var h={version:"2."+h+"."+e,major:h,revision:e,flags:{unsynchronisation:v,extended_header:k,experimental_indicator:s},
     636          size:j},l;if(v)l={};else{j-=10;for(var v=a,e=b,k={},s=h.major,o=[],n=0,m;m=(e||c)[n];n++)o=o.concat(f[m]||[m]);for(e=o;g<j;){o=q;n=v;m=g;var u=q;switch(s){case 2:l=n.c(m,3);var r=n.q(m+3),t=6;break;case 3:l=n.c(m,4);r=n.h(m+4,!0);t=10;break;case 4:l=n.c(m,4),r=i(m+4,n),t=10}if(l=="")break;g+=t+r;if(!(e.indexOf(l)<0)&&(s>2&&(u={message:{Y:n.d(m+8,6),K:n.d(m+8,5),V:n.d(m+8,4)},m:{T:n.d(m+8+1,7),H:n.d(m+8+1,3),J:n.d(m+8+1,2),D:n.d(m+8+1,1),w:n.d(m+8+1,0)}}),m+=t,u&&u.m.w&&(i(m,n),m+=4,r-=4),!u||!u.m.D))l in
     637      d.b?o=d.b[l]:l[0]=="T"&&(o=d.b["T*"]),o=o?o(m,r,n,u):void 0,o={id:l,size:r,description:l in d.frames?d.frames[l]:"Unknown",data:o},l in k?(k[l].id&&(k[l]=[k[l]]),k[l].push(o)):k[l]=o}l=k}for(var w in f)if(f.hasOwnProperty(w)){a:{r=f[w];typeof r=="string"&&(r=[r]);t=0;for(g=void 0;g=r[t];t++)if(g in l){a=l[g].data;break a}a=void 0}a&&(h[w]=a)}for(var x in l)l.hasOwnProperty(x)&&(h[x]=l[x]);return h};g.ID3v2=d})(this);(function(){function g(d){var f;switch(d){case 0:f="iso-8859-1";break;case 1:f="utf-16";break;case 2:f="utf-16be";break;case 3:f="utf-8"}return f}var i=["32x32 pixels 'file icon' (PNG only)","Other file icon","Cover (front)","Cover (back)","Leaflet page","Media (e.g. lable side of CD)","Lead artist/lead performer/soloist","Artist/performer","Conductor","Band/Orchestra","Composer","Lyricist/text writer","Recording Location","During recording","During performance","Movie/video screen capture","A bright coloured fish",
     638          "Illustration","Band/artist logotype","Publisher/Studio logotype"];ID3v2.b.APIC=function(d,f,c,a,b){var b=b||"3",a=d,p=g(c.a(d));switch(b){case "2":var h=c.c(d+1,3);d+=4;break;case "3":case "4":h=c.e(d+1,f-(d-a),p),d+=1+h.g}b=c.a(d,1);b=i[b];p=c.e(d+1,f-(d-a),p);d+=1+p.g;return{format:h.toString(),type:b,description:p.toString(),data:c.n(d,a+f-d)}};ID3v2.b.COMM=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,X:h.toString(),text:d.toString()}};
     639          ID3v2.b.COM=ID3v2.b.COMM;ID3v2.b.PIC=function(d,f,c,a){return ID3v2.b.APIC(d,f,c,a,"2")};ID3v2.b.PCNT=function(d,f,c){return c.O(d)};ID3v2.b.CNT=ID3v2.b.PCNT;ID3v2.b["T*"]=function(d,f,c){var a=g(c.a(d));return c.e(d+1,f-1,a).toString()};ID3v2.b.TCON=function(){return ID3v2.b["T*"].apply(this,arguments).replace(/^\(\d+\)/,"")};ID3v2.b.TCO=ID3v2.b.TCON;ID3v2.b.USLT=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,I:h.toString(),U:d.toString()}};
     640          ID3v2.b.ULT=ID3v2.b.USLT})();(function(g){function i(c,a,b,d){var g=c.h(a,!0);if(g==0)d();else{var e=c.c(a+4,4);["moov","udta","meta","ilst"].indexOf(e)>-1?(e=="meta"&&(a+=4),c.f([a+8,a+8+8],function(){i(c,a+8,g-8,d)})):c.f([a+(e in f.l?0:g),a+g+8],function(){i(c,a+g,b,d)})}}function d(c,a,b,g,h){for(var h=h===void 0?"":h+"  ",e=b;e<b+g;){var i=a.h(e,!0);if(i==0)break;var k=a.c(e+4,4);if(["moov","udta","meta","ilst"].indexOf(k)>-1){k=="meta"&&(e+=4);d(c,a,e+8,i-8,h);break}if(f.l[k]){var s=a.q(e+16+1),j=f.l[k],s=f.types[s];if(k==
     641          "trkn")c[j[0]]=a.a(e+16+11),c.count=a.a(e+16+13);else{var k=e+16+4+4,o=i-16-4-4;switch(s){case "text":c[j[0]]=a.e(k,o,"UTF-8");break;case "uint8":c[j[0]]=a.r(k);break;case "jpeg":case "png":c[j[0]]={m:"image/"+s,data:a.n(k,o)}}}}e+=i}}var f=g.v={};f.types={0:"uint8",1:"text",13:"jpeg",14:"png",21:"uint8"};f.l={"\u00a9alb":["album"],"\u00a9art":["artist"],"\u00a9ART":["artist"],aART:["artist"],"\u00a9day":["year"],"\u00a9nam":["title"],"\u00a9gen":["genre"],trkn:["track"],"\u00a9wrt":["composer"],
     642          "\u00a9too":["encoder"],cprt:["copyright"],covr:["picture"],"\u00a9grp":["grouping"],keyw:["keyword"],"\u00a9lyr":["lyrics"],"\u00a9gen":["genre"]};f.o=function(c,a){c.f([0,7],function(){i(c,0,c.j(),a)})};f.p=function(c){var a={};d(a,c,0,c.j());return a};g.ID4=g.v})(this);
    643643
    644644
    645645  </script>
    646646
    647     <?php
     647    <?php
    648648
    649649}
  • wp-miniaudioplayer/tags/1.9.0/js/id3.min.js

    r2147389 r2147879  
    1 /*___________________________________________________________________________________________________________________________________________________
    2  _ jquery.mb.components                                                                                                                             _
    3  _                                                                                                                                                  _
    4  _ file: id3.min.js                                                                                                                                 _
    5  _ last modified: 8/29/19 12:04 AM                                                                                                                  _
    6  _                                                                                                                                                  _
    7  _ Open Lab s.r.l., Florence - Italy                                                                                                                _
    8  _                                                                                                                                                  _
    9  _ email: [email protected]                                                                                                                       _
    10  _ site: http://pupunzi.com                                                                                                                         _
    11  _       http://open-lab.com                                                                                                                        _
    12  _ blog: http://pupunzi.open-lab.com                                                                                                                _
    13  _ Q&A:  http://jquery.pupunzi.com                                                                                                                  _
    14  _                                                                                                                                                  _
    15  _ Licences: MIT, GPL                                                                                                                               _
    16  _    http://www.opensource.org/licenses/mit-license.php                                                                                            _
    17  _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
    18  _                                                                                                                                                  _
    19  _ Copyright (c) 2001-2019. Matteo Bicocchi (Pupunzi);                                                                                              _
    20  ___________________________________________________________________________________________________________________________________________________*/
     1/*
     2 * ******************************************************************************
     3 *  jquery.mb.components
     4 *  file: id3.min.js
     5 *
     6 *  Copyright (c) 2001-2013. Matteo Bicocchi (Pupunzi);
     7 *  Open lab srl, Firenze - Italy
     8 *  email: [email protected]
     9 *  site:   http://pupunzi.com
     10 *  blog:   http://pupunzi.open-lab.com
     11 *  http://open-lab.com
     12 *
     13 *  Licences: MIT, GPL
     14 *  http://www.opensource.org/licenses/mit-license.php
     15 *  http://www.gnu.org/licenses/gpl.html
     16 *
     17 *  last modified: 31/01/13 23.44
     18 *  *****************************************************************************
     19 */
    2120
    2221var q=null;function y(g,i,d){function f(b,h,e,a,d,f){var j=c();if(j){typeof f==="undefined"&&(f=!0);if(h)typeof j.onload!="undefined"?j.onload=function(){j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e();j=q}:j.onreadystatechange=function(){if(j.readyState==4)j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e(),j=q};j.open("GET",b,f);j.overrideMimeType&&j.overrideMimeType("text/plain; charset=x-user-defined");a&&j.setRequestHeader("Range",
  • wp-miniaudioplayer/tags/1.9.0/js/map_overwrite_default_me.js

    r2147389 r2147879  
    33 _                                                                                                                                                  _
    44 _ file: map_overwrite_default_me.js                                                                                                                _
    5  _ last modified: 8/29/19 12:04 AM                                                                                                                  _
     5 _ last modified: 04/06/15 19.49                                                                                                                    _
    66 _                                                                                                                                                  _
    77 _ Open Lab s.r.l., Florence - Italy                                                                                                                _
     
    1717 _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
    1818 _                                                                                                                                                  _
    19  _ Copyright (c) 2001-2019. Matteo Bicocchi (Pupunzi);                                                                                              _
     19 _ Copyright (c) 2001-2015. Matteo Bicocchi (Pupunzi);                                                                                              _
    2020 ___________________________________________________________________________________________________________________________________________________*/
    2121
  • wp-miniaudioplayer/tags/1.9.1/miniAudioPlayer.php

    r2147716 r2147879  
    2626Description: Transform your mp3 audio file link into a nice, small light player. ! IMPORTANT - if you customized the skin for the previous version you need to regenerate it from <a href="http://pupunzi.com/mb.components/mb.miniAudioPlayer/demo/skinMaker.html" target="_blank">here</a>.
    2727Author: Pupunzi (Matteo Bicocchi)
    28 Version: 1.9.0
     28Version: 1.9.1
    2929Author URI: http://pupunzi.com
    3030Text Domain: wp-miniaudioplayer
    3131*/
    3232
    33 define("MINIAUDIOPLAYER_VERSION", "1.9.0");
     33define("MINIAUDIOPLAYER_VERSION", "1.9.1");
    3434register_activation_hook(__FILE__, 'miniAudioPlayer_install');
    3535
  • wp-miniaudioplayer/tags/1.9.1/readme.txt

    r2147716 r2147879  
    55Requires at least: 3.3
    66Tested up to: 5.2
    7 Stable tag: 1.9.0
     7Stable tag: 1.9.1
    88Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DSHAHSJJCQ53Y
    99
     
    8787== Changelog ==
    8888
     89= 1.9.1 =
     90* Bugfix: I introdiced an incorrect path to the the editor javascript file that prevent the miniaudioplayer window to display and generate a blocking javascript error.
     91
    8992= 1.9.0 =
    9093* New update and security issue fixed: There was a potential security issue within the download method that has been fixed using the HTML5 download tag instead of streaming the file via PHP. Now the plugin can replace the default Wordpress 5 (Gutenberg) audio player.
  • wp-miniaudioplayer/trunk/inc/popup.php

    r2147389 r2147879  
    2626{
    2727
    28     if (get_user_option('rich_editing') != 'true')
    29         return;
    30 
    31     add_action('media_buttons', 'miniaudioplayer_add_icon');
    32     add_action('admin_footer', 'miniaudioplayer_add_popup');
     28    if (get_user_option('rich_editing') != 'true')
     29        return;
     30
     31    add_action('media_buttons', 'miniaudioplayer_add_icon');
     32    add_action('admin_footer', 'miniaudioplayer_add_popup');
    3333}
    3434
     
    3636function miniaudioplayer_add_icon()
    3737{
    38     global $ytpl_popup_id;
    39     echo '<style>
     38    global $ytpl_popup_id;
     39    echo '<style>
    4040    #add-map .dashicons {
    4141        color: #888;
     
    4545        width: 18px;
    4646
    47         background-image: url(' . plugins_url("/inc/maplayerbutton.svg") . ');
     47        background-image: url(' . plugins_url("maplayerbutton.svg", __FILE__) . ');
    4848        background-repeat: no-repeat;
    4949    }
     
    6464class miniaudioplayer_check_href
    6565{
    66     function __construct()
    67     {
    68         add_filter('mce_external_plugins', array(&$this, 'add_map_tinymce_plugin'));
    69         add_filter('tiny_mce_before_init', array(&$this, 'add_map_TinyMCE_css'));
    70     }
    71 
    72     //include the tinymce javascript plugin
    73     function add_map_tinymce_plugin($plugin_array)
    74     {
    75         $plugin_array['wpmbmap'] = plugins_url('/inc/map_short_code.js?_=' . MINIAUDIOPLAYER_VERSION, __FILE__);
    76         return $plugin_array;
    77     }
    78 
    79     //include the css file to style the graphic that replaces the shortcode
    80     function add_map_TinyMCE_css($in)
    81     {
    82         $in['content_css'] .= "," . plugins_url('/inc/map_short_code.css', __FILE__);;
    83         return $in;
    84     }
     66    function __construct()
     67    {
     68        add_filter('mce_external_plugins', array(&$this, 'add_map_tinymce_plugin'));
     69        add_filter('tiny_mce_before_init', array(&$this, 'add_map_TinyMCE_css'));
     70    }
     71
     72    //include the tinymce javascript plugin
     73    function add_map_tinymce_plugin($plugin_array)
     74    {
     75        $plugin_array['wpmbmap'] = plugins_url('map_short_code.js?_=' . MINIAUDIOPLAYER_VERSION, __FILE__);
     76        return $plugin_array;
     77    }
     78
     79    //include the css file to style the graphic that replaces the shortcode
     80    function add_map_TinyMCE_css($in)
     81    {
     82        $in['content_css'] .= "," . plugins_url('map_short_code.css?_=' . MINIAUDIOPLAYER_VERSION, __FILE__, __FILE__);;
     83        return $in;
     84    }
    8585}
    8686add_action("init", create_function('', 'new miniaudioplayer_check_href();'));
     
    9292function miniaudioplayer_add_popup()
    9393{
    94     $exclude_class = get_option('miniAudioPlayer_excluded');
    95     $showVolumeLevel = get_option('miniAudioPlayer_showVolumeLevel');
    96     $allowMute = get_option('miniAudioPlayer_allowMute');
    97     $showTime = get_option('miniAudioPlayer_showTime');
    98     $showRew = get_option('miniAudioPlayer_showRew');
    99     $width = get_option('miniAudioPlayer_width');
    100     $skin = get_option('miniAudioPlayer_skin');
    101     $miniAudioPlayer_animate = get_option('miniAudioPlayer_animate');
    102     $miniAudioPlayer_add_gradient = get_option('miniAudioPlayer_add_gradient');
    103     $volume = get_option('miniAudioPlayer_volume');
    104     $downloadable = get_option('miniAudioPlayer_download');
    105     $custom_skin_name = get_option('miniAudioPlayer_custom_skin_name');
    106     $downloadable_security = get_option('miniAudioPlayer_download_security');
    107     ?>
     94    $exclude_class = get_option('miniAudioPlayer_excluded');
     95    $showVolumeLevel = get_option('miniAudioPlayer_showVolumeLevel');
     96    $allowMute = get_option('miniAudioPlayer_allowMute');
     97    $showTime = get_option('miniAudioPlayer_showTime');
     98    $showRew = get_option('miniAudioPlayer_showRew');
     99    $width = get_option('miniAudioPlayer_width');
     100    $skin = get_option('miniAudioPlayer_skin');
     101    $miniAudioPlayer_animate = get_option('miniAudioPlayer_animate');
     102    $miniAudioPlayer_add_gradient = get_option('miniAudioPlayer_add_gradient');
     103    $volume = get_option('miniAudioPlayer_volume');
     104    $downloadable = get_option('miniAudioPlayer_download');
     105    $custom_skin_name = get_option('miniAudioPlayer_custom_skin_name');
     106    $downloadable_security = get_option('miniAudioPlayer_download_security');
     107    ?>
    108108  <div id="map-form" style="display: none;">
    109109    <style>
     
    354354
    355355          <script>
    356               function manageSecurity(el) {
    357                   var security = jQuery('[name=downloadablesecurity]');
    358                   if (jQuery(el).is(":checked")) {
    359                       security.removeAttr('disabled');
    360                   } else {
    361                       security.attr('disabled', 'disabled');
    362                       security.removeAttr('checked');
    363                   }
    364               }
     356              function manageSecurity(el) {
     357                  var security = jQuery('[name=downloadablesecurity]');
     358                  if (jQuery(el).is(":checked")) {
     359                      security.removeAttr('disabled');
     360                  } else {
     361                      security.attr('disabled', 'disabled');
     362                      security.removeAttr('checked');
     363                  }
     364              }
    365365          </script>
    366366
     
    379379  <script>
    380380
    381       var selection = null;
    382       var tmpInfo = {};
    383 
    384       jQuery(function () {
    385           jQuery(".wp-editor-tabs button").on("click.map", function () {
    386 
    387               setTimeout(function () {
    388                   if (!tinyMCE.activeEditor || tinyMCE.activeEditor.isHidden()) {
    389                       jQuery("#add-map").css("opacity", .5);
    390                   } else {
    391                       jQuery("#add-map").css("opacity", 1);
    392                   }
    393               }, 400)
    394           })
    395       });
    396 
    397       function getFromMetatags() {
    398           if (typeof ID3 == "object") {
    399               ID3.loadTags(document.audioURL, function () {
    400                   var info = {};
    401                   info.title = ID3.getTag(document.audioURL, "title");
    402                   info.artist = ID3.getTag(document.audioURL, "artist");
    403                   info.album = ID3.getTag(document.audioURL, "album");
    404                   info.track = ID3.getTag(document.audioURL, "track");
    405                   info.size = ID3.getTag(document.audioURL, "size");
    406                   if (info.title && info.title != undefined) {
    407                       jQuery("[name='audiotitle']").val(info.title + " - " + info.artist);
    408 
    409                       tmpInfo = info;
    410                   } else {
    411                       jquery("button#metadata").after("no meta-data available for this file");
    412                   }
    413               })
    414           }
    415       }
    416 
    417       function miniaudioplayer_show_editor() {
    418 
    419           if (tinyMCE.activeEditor == null || tinyMCE.activeEditor.isHidden() != false) {
    420               alert("You should switch to the visual editor");
    421               return;
    422           }
    423 
    424           var map_editor = tinyMCE.activeEditor;
    425 
    426           var map_form = jQuery('#map-form form').get(0);
    427 
    428           var selection = map_editor.selection.getNode();
    429           map_editor.isValidURL = false;
    430           map_editor.isHref = false;
    431 
    432           if (jQuery(selection).is("a[href *= '.mp3']") || jQuery(selection).find("a[href *= '.mp3']").lenght > 0 || jQuery(selection).prev().is("a[href *= '.mp3']")) {
    433               map_editor.isHref = true;
    434               map_editor.isValidURL = true;
    435           } else if (jQuery(selection).is("a") || jQuery(selection).find("a").lenght > 0 || jQuery(selection).prev().is("a")) {
    436               map_editor.isHref = true;
    437           }
    438 
    439           if (!map_editor.isHref) {
    440               alert("Select a link to an mp3 file to customize the player.");
    441               return;
    442           }
    443 
    444           if (!map_editor.isValidURL) {
    445               var d = confirm("the selected Link doesn't seams a valid MP3 path; do you want to continue anyway?");
    446               if (!d)
    447                   return;
    448 
    449           }
    450           map_form.reset();
    451 
    452           jQuery("body").css({overflow: "hidden"});
    453           jQuery("#map-form").slideDown(300);
    454 
    455           selection = map_editor.selection.getNode();
    456 
    457           map_editor.selection.select(selection, true);
    458 
    459           var $selection = jQuery(selection);
    460 
    461           var map_element = $selection.find("a[href *= '.mp3']");
    462           if (map_element.length) {
    463               selection = map_editor.selection.select(map_element.get(0), true);
    464           } else if ($selection.prev().is("a[href *= '.mp3']")) {
    465               selection = map_editor.selection.select($selection.prev().get(0), true);
    466           }
    467 
    468           $selection = jQuery(selection);
    469 
    470           var url = document.audioURL = $selection.attr("href");
    471           var title = $selection.html();
    472           var isExcluded = $selection.hasClass("<?php echo $exclude_class ?>");
    473 
    474           var metadata = $selection.metadata();
    475 
    476           if (metadata.volume)
    477               metadata.volume = parseFloat(metadata.volume) * 10;
    478 
    479           if (jQuery.isEmptyObject(metadata)) {
    480               var defaultmeta = {
    481                   showVolumeLevel:<?php echo empty($showVolumeLevel) ? false : $showVolumeLevel ?>,
    482                   allowMute:<?php echo $allowMute ? "true" : "false"?>,
    483                   showTime:<?php echo $showTime ? "true" : "false"?>,
    484                   showRew:<?php echo $showRew ? "true" : "false"?>,
    485                   width: "<?php echo $width ?>",
    486                   skin: "<?php echo $skin ?>",
    487                   animate:<?php echo $miniAudioPlayer_animate ? "true" : "false" ?>,
    488                   loop: false,
    489                   addGradientOverlay: <?php echo $miniAudioPlayer_add_gradient ? "true" : "false" ?>,
    490                   downloadable:<?php echo $downloadable ? "true" : "false" ?>,
    491                   downloadable_security:<?php echo $downloadable_security ? "true" : "false" ?>,
    492                   volume: parseFloat(<?php echo $volume ?>) * 10
    493               };
    494               jQuery.extend(metadata, defaultmeta);
    495           }
    496 
    497           jQuery.extend(metadata, {exclude: isExcluded});
    498 
    499           jQuery("[name='url']", map_form).val(url);
    500 
    501           jQuery("[name='audiotitle']", map_form).val(title);
    502 
    503           for (var i in metadata) {
    504               if (typeof metadata[i] == "boolean") {
    505                   if (eval(metadata[i]) == true)
    506                       jQuery("[name=" + i + "]").attr("checked", "checked");
    507                   else
    508                       jQuery("[name=" + i + "]").removeAttr("checked");
    509               } else
    510                   jQuery("[name=" + i + "]").val(metadata[i]);
    511           }
    512 
    513           var map_form = jQuery('#map-form form').get(0);
    514           map_form.onsubmit = miniaudioplayer_insertCode;
    515       }
    516 
    517       function miniaudioplayer_insertCode(e) {
    518 
    519           var map_editor = tinyMCE.activeEditor;
    520           var map_form = jQuery('#map-form form').get(0);
    521 
    522           var map_params = "{";
    523           if (jQuery("[name='skin']", map_form).val().length > 0)
    524               map_params += "skin:'" + jQuery("[name='skin']").val() + "', ";
    525           map_params += "animate:" + (jQuery("[name='animate']").is(":checked") ? "true" : "false") + ", ";
    526           if (jQuery("[name='width']", map_form).val().length > 0)
    527               map_params += "width:'" + jQuery("[name='width']", map_form).val() + "', ";
    528           if (jQuery("[name='volume']", map_form).val().length > 0)
    529               map_params += "volume:" + jQuery("[name='volume']", map_form).val() / 10 + ", ";
    530           map_params += "autoplay:" + (jQuery("[name='autoplay']", map_form).is(":checked") ? "true" : "false") + ", ";
    531           map_params += "loop:" + (jQuery("[name='loop']", map_form).is(":checked") ? "true" : "false") + ", ";
    532           map_params += "showVolumeLevel:" + (jQuery("[name='showVolumeLevel']", map_form).is(":checked") ? "true" : "false") + ", ";
    533           map_params += "showTime:" + (jQuery("[name='showTime']", map_form).is(":checked") ? "true" : "false") + ", ";
    534           map_params += "allowMute:" + (jQuery("[name='allowMute']", map_form).is(":checked") ? "true" : "false") + ", ";
    535           map_params += "showRew:" + (jQuery("[name='showRew']", map_form).is(":checked") ? "true" : "false") + ", ";
    536           map_params += "addGradientOverlay:" + (jQuery("[name='addGradientOverlay']", map_form).is(":checked") ? "true" : "false") + ", ";
    537           map_params += "downloadable:" + (jQuery("[name='downloadable']", map_form).is(":checked") ? "true" : "false") + ", ";
    538           map_params += "downloadablesecurity:" + (jQuery("[name='downloadablesecurity']", map_form).is(":checked") ? "true" : "false") + ", ";
    539           map_params += "id3: false";
    540           map_params += "}";
    541           map_params = map_params.replace(", }", "}");
    542 
    543           var isExcluded = jQuery("[name='exclude']", map_form).is(":checked") ? "<?php echo $exclude_class ?> " : "";
    544 
    545           var map_a = "<a id='mbmaplayer_" + new Date().getTime() + "' class=";
    546           map_a += "\"mb_map " + isExcluded + map_params + "\" ";
    547 
    548           for (var x in tmpInfo) {
    549               map_a += "meta-" + x + "=\"" + tmpInfo[x] + "\" ";
    550           }
    551           map_a += "href=\"" + jQuery("[name='url']", map_form).val() + "\">";
    552           map_a += jQuery("[name='audiotitle']", map_form).val();
    553           map_a += "</a>";
    554           map_editor.execCommand('mceInsertContent', 0, map_a);
    555 
    556           miniaudioplayer_hide_editor();
    557 
    558           return false;
    559       }
    560 
    561       function miniaudioplayer_hide_editor() {
    562           jQuery("#map-form").slideUp(300);
    563           jQuery("body").css({overflow: "auto"});
    564       }
    565 
    566       jQuery("body").on("click", "#map-form", function (e) {
    567           var target = e.originalEvent.target;
    568           if (jQuery(target).parents().is("#map-form"))
    569               return;
    570           miniaudioplayer_hide_editor();
    571       });
    572 
    573 
    574       /*
    575    * ******************************************************************************
    576    *  file: metadata.js
    577    */
    578 
    579 
    580       jQuery.extend({
    581           metadata: {
    582               defaults: {type: "class", name: "metadata", cre: /({.*})/, single: "metadata"}, setType: function (b, e) {
    583                   this.defaults.type = b;
    584                   this.defaults.name = e
    585               }, get: function (b, e) {
    586                   var c = jQuery.extend({}, this.defaults, e);
    587                   c.single.length || (c.single = "metadata");
    588                   var a = jQuery.data(b, c.single);
    589                   if (a) return a;
    590                   a = "{}";
    591                   if ("class" == c.type) {
    592                       var d = c.cre.exec(b.className);
    593                       d && (a = d[1])
    594                   } else if ("elem" == c.type) {
    595                       if (!b.getElementsByTagName) return;
    596                       d = b.getElementsByTagName(c.name);
    597                       d.length && (a = jQuery.trim(d[0].innerHTML))
    598                   } else void 0 !=
    599                   b.getAttribute && (d = b.getAttribute(c.name)) && (a = d);
    600                   0 > a.indexOf("{") && (a = "{" + a + "}");
    601                   a = eval("(" + a + ")");
    602                   jQuery.data(b, c.single, a);
    603                   return a
    604               }
    605           }
    606       });
    607       jQuery.fn.metadata = function (b) {
    608           return jQuery.metadata.get(this[0], b)
    609       };
    610 
    611       /*
    612    * ******************************************************************************
    613    *  file: id3.min.js
    614    */
    615       var q=null;function y(g,i,d){function f(b,h,e,a,d,f){var j=c();if(j){typeof f==="undefined"&&(f=!0);if(h)typeof j.onload!="undefined"?j.onload=function(){j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e();j=q}:j.onreadystatechange=function(){if(j.readyState==4)j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e(),j=q};j.open("GET",b,f);j.overrideMimeType&&j.overrideMimeType("text/plain; charset=x-user-defined");a&&j.setRequestHeader("Range",
    616         "bytes="+a[0]+"-"+a[1]);j.setRequestHeader("If-Modified-Since","Sat, 1 Jan 1970 00:00:00 GMT");j.send(q)}else e&&e()}function c(){var b=q;window.XMLHttpRequest?b=new XMLHttpRequest:window.F&&(b=new ActiveXObject("Microsoft.XMLHTTP"));return b}function a(b,h){var e=c();if(e){if(h)typeof e.onload!="undefined"?e.onload=function(){e.status=="200"&&h(this);e=q}:e.onreadystatechange=function(){e.readyState==4&&(e.status=="200"&&h(this),e=q)};e.open("HEAD",b,!0);e.send(q)}}function b(b,h){var e,a;function c(b){var p=
    617         ~~(b[0]/e)-a,b=~~(b[1]/e)+1+a;p<0&&(p=0);b>=blockTotal&&(b=blockTotal-1);return[p,b]}function g(a,c){for(;n[a[0]];)if(a[0]++,a[0]>a[1]){c&&c();return}for(;n[a[1]];)if(a[1]--,a[0]>a[1]){c&&c();return}var k=[a[0]*e,(a[1]+1)*e-1];f(b,function(b){parseInt(b.getResponseHeader("Content-Length"),10)==h&&(a[0]=0,a[1]=blockTotal-1,k[0]=0,k[1]=h-1);for(var b={data:b.W||b.responseText,s:k[0]},p=a[0];p<=a[1];p++)n[p]=b;i+=k[1]-k[0]+1;c&&c()},d,k,j,!!c)}var j,i=0,l=new z("",0,h),n=[];e=e||2048;a=typeof a==="undefined"?
    618         0:a;blockTotal=~~((h-1)/e)+1;for(var m in l)l.hasOwnProperty(m)&&typeof l[m]==="function"&&(this[m]=l[m]);this.a=function(b){var a;g(c([b,b]));a=n[~~(b/e)];if(typeof a.data=="string")return a.data.charCodeAt(b-a.s)&255;else if(typeof a.data=="unknown")return IEBinary_getByteAt(a.data,b-a.s)};this.N=function(){return i};this.f=function(b,a){g(c(b),a)}}(function(){a(g,function(a){a=parseInt(a.getResponseHeader("Content-Length"),10)||-1;i(new b(g,a))})})()}
    619       function z(g,i,d){var f=g,c=i||0,a=0;this.P=function(){return f};if(typeof g=="string")a=d||f.length,this.a=function(b){return f.charCodeAt(b+c)&255};else if(typeof g=="unknown")a=d||IEBinary_getLength(f),this.a=function(b){return IEBinary_getByteAt(f,b+c)};this.n=function(b,a){for(var h=Array(a),e=0;e<a;e++)h[e]=this.a(b+e);return h};this.j=function(){return a};this.d=function(b,a){return(this.a(b)&1<<a)!=0};this.Q=function(b){b=this.a(b);return b>127?b-256:b};this.r=function(b,a){var h=a?(this.a(b)<<
    620         8)+this.a(b+1):(this.a(b+1)<<8)+this.a(b);h<0&&(h+=65536);return h};this.S=function(b,a){var h=this.r(b,a);return h>32767?h-65536:h};this.h=function(b,a){var h=this.a(b),e=this.a(b+1),c=this.a(b+2),d=this.a(b+3),h=a?(((h<<8)+e<<8)+c<<8)+d:(((d<<8)+c<<8)+e<<8)+h;h<0&&(h+=4294967296);return h};this.R=function(b,a){var c=this.h(b,a);return c>2147483647?c-4294967296:c};this.q=function(b){var a=this.a(b),c=this.a(b+1),b=this.a(b+2),a=((a<<8)+c<<8)+b;a<0&&(a+=16777216);return a};this.c=function(b,a){for(var c=
    621         [],e=b,d=0;e<b+a;e++,d++)c[d]=String.fromCharCode(this.a(e));return c.join("")};this.e=function(b,a,c){b=this.n(b,a);switch(c.toLowerCase()){case "utf-16":case "utf-16le":case "utf-16be":var a=c,e,d=0,f=1,c=0;e=Math.min(e||b.length,b.length);b[0]==254&&b[1]==255?(a=!0,d=2):b[0]==255&&b[1]==254&&(a=!1,d=2);a&&(f=0,c=1);for(var a=[],g=0;d<e;g++){var j=b[d+f],i=(j<<8)+b[d+c];d+=2;if(i==0)break;else j<216||j>=224?a[g]=String.fromCharCode(i):(j=(b[d+f]<<8)+b[d+c],d+=2,a[g]=String.fromCharCode(i,j))}b=
    622         new String(a.join(""));b.g=d;break;case "utf-8":e=0;d=Math.min(d||b.length,b.length);b[0]==239&&b[1]==187&&b[2]==191&&(e=3);f=[];for(c=0;e<d;c++)if(a=b[e++],a==0)break;else a<128?f[c]=String.fromCharCode(a):a>=194&&a<224?(g=b[e++],f[c]=String.fromCharCode(((a&31)<<6)+(g&63))):a>=224&&a<240?(g=b[e++],i=b[e++],f[c]=String.fromCharCode(((a&255)<<12)+((g&63)<<6)+(i&63))):a>=240&&a<245&&(g=b[e++],i=b[e++],j=b[e++],a=((a&7)<<18)+((g&63)<<12)+((i&63)<<6)+(j&63)-65536,f[c]=String.fromCharCode((a>>10)+55296,
    623         (a&1023)+56320));b=new String(f.join(""));b.g=e;break;default:d=[];f=f||b.length;for(e=0;e<f;){c=b[e++];if(c==0)break;d[e-1]=String.fromCharCode(c)}b=new String(d.join(""));b.g=e}return b};this.M=function(a){return String.fromCharCode(this.a(a))};this.Z=function(){return window.btoa(f)};this.L=function(a){f=window.atob(a)};this.f=function(a,c){c()}}document.write("<script type='text/vbscript'>\r\nFunction IEBinary_getByteAt(strBinary, iOffset)\r\n\tIEBinary_getByteAt = AscB(MidB(strBinary,iOffset+1,1))\r\nEnd Function\r\nFunction IEBinary_getLength(strBinary)\r\n\tIEBinary_getLength = LenB(strBinary)\r\nEnd Function\r\n<\/script>\r\n");(function(g){g.FileAPIReader=function(g){return function(d,f){var c=new FileReader;c.onload=function(a){f(new z(a.target.result))};c.readAsBinaryString(g)}}})(this);(function(g){g.k={i:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",z:function(g){for(var d="",f,c,a,b,p,h,e=0;e<g.length;)f=g[e++],c=g[e++],a=g[e++],b=f>>2,f=(f&3)<<4|c>>4,p=(c&15)<<2|a>>6,h=a&63,isNaN(c)?p=h=64:isNaN(a)&&(h=64),d=d+Base64.i.charAt(b)+Base64.i.charAt(f)+Base64.i.charAt(p)+Base64.i.charAt(h);return d}};g.Base64=g.k;g.k.encodeBytes=g.k.z})(this);(function(g){var i=g.t={},d={},f=[0,7];i.C=function(c,a,b){b=b||{};(b.dataReader||y)(c,function(g){g.f(f,function(){var f=g.c(4,7)=="ftypM4A"?ID4:g.c(0,3)=="ID3"?ID3v2:ID3v1;f.o(g,function(){var e=b.tags,i=f.p(g,e),e=d[c]||{},k;for(k in i)i.hasOwnProperty(k)&&(e[k]=i[k]);d[c]=e;a&&a()})})})};i.A=function(c){if(!d[c])return q;var a={},b;for(b in d[c])d[c].hasOwnProperty(b)&&(a[b]=d[c][b]);return a};i.B=function(c,a){if(!d[c])return q;return d[c][a]};g.ID3=g.t;i.loadTags=i.C;i.getAllTags=i.A;i.getTag=
    624         i.B})(this);(function(g){var i=g.u={},d=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","AlternRock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock",
    625           "Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychadelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk-Rock","National Folk","Swing","Fast Fusion","Bebob","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock",
    626           "Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","Acapella","Euro-House","Dance Hall"];i.o=function(d,c){var a=d.j();d.f([a-128-1,a],c)};i.p=function(f){var c=f.j()-128;if(f.c(c,3)=="TAG"){var a=f.c(c+3,30).replace(/\0/g,
    627         ""),b=f.c(c+33,30).replace(/\0/g,""),g=f.c(c+63,30).replace(/\0/g,""),h=f.c(c+93,4).replace(/\0/g,"");if(f.a(c+97+28)==0)var e=f.c(c+97,28).replace(/\0/g,""),i=f.a(c+97+29);else e="",i=0;f=f.a(c+97+30);return{version:"1.1",title:a,artist:b,album:g,year:h,comment:e,track:i,genre:f<255?d[f]:""}}else return{}};g.ID3v1=g.u})(this);(function(g){function i(a,b){var c=b.a(a),d=b.a(a+1),e=b.a(a+2);return b.a(a+3)&127|(e&127)<<7|(d&127)<<14|(c&127)<<21}var d=g.G={};d.b={};d.frames={BUF:"Recommended buffer size",CNT:"Play counter",COM:"Comments",CRA:"Audio encryption",CRM:"Encrypted meta frame",ETC:"Event timing codes",EQU:"Equalization",GEO:"General encapsulated object",IPL:"Involved people list",LNK:"Linked information",MCI:"Music CD Identifier",MLL:"MPEG location lookup table",PIC:"Attached picture",POP:"Popularimeter",REV:"Reverb",
    628           RVA:"Relative volume adjustment",SLT:"Synchronized lyric/text",STC:"Synced tempo codes",TAL:"Album/Movie/Show title",TBP:"BPM (Beats Per Minute)",TCM:"Composer",TCO:"Content type",TCR:"Copyright message",TDA:"Date",TDY:"Playlist delay",TEN:"Encoded by",TFT:"File type",TIM:"Time",TKE:"Initial key",TLA:"Language(s)",TLE:"Length",TMT:"Media type",TOA:"Original artist(s)/performer(s)",TOF:"Original filename",TOL:"Original Lyricist(s)/text writer(s)",TOR:"Original release year",TOT:"Original album/Movie/Show title",
    629           TP1:"Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group",TP2:"Band/Orchestra/Accompaniment",TP3:"Conductor/Performer refinement",TP4:"Interpreted, remixed, or otherwise modified by",TPA:"Part of a set",TPB:"Publisher",TRC:"ISRC (International Standard Recording Code)",TRD:"Recording dates",TRK:"Track number/Position in set",TSI:"Size",TSS:"Software/hardware and settings used for encoding",TT1:"Content group description",TT2:"Title/Songname/Content description",TT3:"Subtitle/Description refinement",
    630           TXT:"Lyricist/text writer",TXX:"User defined text information frame",TYE:"Year",UFI:"Unique file identifier",ULT:"Unsychronized lyric/text transcription",WAF:"Official audio file webpage",WAR:"Official artist/performer webpage",WAS:"Official audio source webpage",WCM:"Commercial information",WCP:"Copyright/Legal information",WPB:"Publishers official webpage",WXX:"User defined URL link frame",AENC:"Audio encryption",APIC:"Attached picture",COMM:"Comments",COMR:"Commercial frame",ENCR:"Encryption method registration",
    631           EQUA:"Equalization",ETCO:"Event timing codes",GEOB:"General encapsulated object",GRID:"Group identification registration",IPLS:"Involved people list",LINK:"Linked information",MCDI:"Music CD identifier",MLLT:"MPEG location lookup table",OWNE:"Ownership frame",PRIV:"Private frame",PCNT:"Play counter",POPM:"Popularimeter",POSS:"Position synchronisation frame",RBUF:"Recommended buffer size",RVAD:"Relative volume adjustment",RVRB:"Reverb",SYLT:"Synchronized lyric/text",SYTC:"Synchronized tempo codes",
    632           TALB:"Album/Movie/Show title",TBPM:"BPM (beats per minute)",TCOM:"Composer",TCON:"Content type",TCOP:"Copyright message",TDAT:"Date",TDLY:"Playlist delay",TENC:"Encoded by",TEXT:"Lyricist/Text writer",TFLT:"File type",TIME:"Time",TIT1:"Content group description",TIT2:"Title/songname/content description",TIT3:"Subtitle/Description refinement",TKEY:"Initial key",TLAN:"Language(s)",TLEN:"Length",TMED:"Media type",TOAL:"Original album/movie/show title",TOFN:"Original filename",TOLY:"Original lyricist(s)/text writer(s)",
    633           TOPE:"Original artist(s)/performer(s)",TORY:"Original release year",TOWN:"File owner/licensee",TPE1:"Lead performer(s)/Soloist(s)",TPE2:"Band/orchestra/accompaniment",TPE3:"Conductor/performer refinement",TPE4:"Interpreted, remixed, or otherwise modified by",TPOS:"Part of a set",TPUB:"Publisher",TRCK:"Track number/Position in set",TRDA:"Recording dates",TRSN:"Internet radio station name",TRSO:"Internet radio station owner",TSIZ:"Size",TSRC:"ISRC (international standard recording code)",TSSE:"Software/Hardware and settings used for encoding",
    634           TYER:"Year",TXXX:"User defined text information frame",UFID:"Unique file identifier",USER:"Terms of use",USLT:"Unsychronized lyric/text transcription",WCOM:"Commercial information",WCOP:"Copyright/Legal information",WOAF:"Official audio file webpage",WOAR:"Official artist/performer webpage",WOAS:"Official audio source webpage",WORS:"Official internet radio station homepage",WPAY:"Payment",WPUB:"Publishers official webpage",WXXX:"User defined URL link frame"};var f={title:["TIT2","TT2"],artist:["TPE1",
    635               "TP1"],album:["TALB","TAL"],year:["TYER","TYE"],comment:["COMM","COM"],track:["TRCK","TRK"],genre:["TCON","TCO"],picture:["APIC","PIC"],lyrics:["USLT","ULT"]},c=["title","artist","album","track"];d.o=function(a,b){a.f([0,i(6,a)],b)};d.p=function(a,b){var g=0,h=a.a(g+3);if(h>4)return{version:">2.4"};var e=a.a(g+4),v=a.d(g+5,7),k=a.d(g+5,6),s=a.d(g+5,5),j=i(g+6,a);g+=10;if(k){var o=a.h(g,!0);g+=o+4}var h={version:"2."+h+"."+e,major:h,revision:e,flags:{unsynchronisation:v,extended_header:k,experimental_indicator:s},
    636           size:j},l;if(v)l={};else{j-=10;for(var v=a,e=b,k={},s=h.major,o=[],n=0,m;m=(e||c)[n];n++)o=o.concat(f[m]||[m]);for(e=o;g<j;){o=q;n=v;m=g;var u=q;switch(s){case 2:l=n.c(m,3);var r=n.q(m+3),t=6;break;case 3:l=n.c(m,4);r=n.h(m+4,!0);t=10;break;case 4:l=n.c(m,4),r=i(m+4,n),t=10}if(l=="")break;g+=t+r;if(!(e.indexOf(l)<0)&&(s>2&&(u={message:{Y:n.d(m+8,6),K:n.d(m+8,5),V:n.d(m+8,4)},m:{T:n.d(m+8+1,7),H:n.d(m+8+1,3),J:n.d(m+8+1,2),D:n.d(m+8+1,1),w:n.d(m+8+1,0)}}),m+=t,u&&u.m.w&&(i(m,n),m+=4,r-=4),!u||!u.m.D))l in
    637       d.b?o=d.b[l]:l[0]=="T"&&(o=d.b["T*"]),o=o?o(m,r,n,u):void 0,o={id:l,size:r,description:l in d.frames?d.frames[l]:"Unknown",data:o},l in k?(k[l].id&&(k[l]=[k[l]]),k[l].push(o)):k[l]=o}l=k}for(var w in f)if(f.hasOwnProperty(w)){a:{r=f[w];typeof r=="string"&&(r=[r]);t=0;for(g=void 0;g=r[t];t++)if(g in l){a=l[g].data;break a}a=void 0}a&&(h[w]=a)}for(var x in l)l.hasOwnProperty(x)&&(h[x]=l[x]);return h};g.ID3v2=d})(this);(function(){function g(d){var f;switch(d){case 0:f="iso-8859-1";break;case 1:f="utf-16";break;case 2:f="utf-16be";break;case 3:f="utf-8"}return f}var i=["32x32 pixels 'file icon' (PNG only)","Other file icon","Cover (front)","Cover (back)","Leaflet page","Media (e.g. lable side of CD)","Lead artist/lead performer/soloist","Artist/performer","Conductor","Band/Orchestra","Composer","Lyricist/text writer","Recording Location","During recording","During performance","Movie/video screen capture","A bright coloured fish",
    638           "Illustration","Band/artist logotype","Publisher/Studio logotype"];ID3v2.b.APIC=function(d,f,c,a,b){var b=b||"3",a=d,p=g(c.a(d));switch(b){case "2":var h=c.c(d+1,3);d+=4;break;case "3":case "4":h=c.e(d+1,f-(d-a),p),d+=1+h.g}b=c.a(d,1);b=i[b];p=c.e(d+1,f-(d-a),p);d+=1+p.g;return{format:h.toString(),type:b,description:p.toString(),data:c.n(d,a+f-d)}};ID3v2.b.COMM=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,X:h.toString(),text:d.toString()}};
    639           ID3v2.b.COM=ID3v2.b.COMM;ID3v2.b.PIC=function(d,f,c,a){return ID3v2.b.APIC(d,f,c,a,"2")};ID3v2.b.PCNT=function(d,f,c){return c.O(d)};ID3v2.b.CNT=ID3v2.b.PCNT;ID3v2.b["T*"]=function(d,f,c){var a=g(c.a(d));return c.e(d+1,f-1,a).toString()};ID3v2.b.TCON=function(){return ID3v2.b["T*"].apply(this,arguments).replace(/^\(\d+\)/,"")};ID3v2.b.TCO=ID3v2.b.TCON;ID3v2.b.USLT=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,I:h.toString(),U:d.toString()}};
    640           ID3v2.b.ULT=ID3v2.b.USLT})();(function(g){function i(c,a,b,d){var g=c.h(a,!0);if(g==0)d();else{var e=c.c(a+4,4);["moov","udta","meta","ilst"].indexOf(e)>-1?(e=="meta"&&(a+=4),c.f([a+8,a+8+8],function(){i(c,a+8,g-8,d)})):c.f([a+(e in f.l?0:g),a+g+8],function(){i(c,a+g,b,d)})}}function d(c,a,b,g,h){for(var h=h===void 0?"":h+"  ",e=b;e<b+g;){var i=a.h(e,!0);if(i==0)break;var k=a.c(e+4,4);if(["moov","udta","meta","ilst"].indexOf(k)>-1){k=="meta"&&(e+=4);d(c,a,e+8,i-8,h);break}if(f.l[k]){var s=a.q(e+16+1),j=f.l[k],s=f.types[s];if(k==
    641         "trkn")c[j[0]]=a.a(e+16+11),c.count=a.a(e+16+13);else{var k=e+16+4+4,o=i-16-4-4;switch(s){case "text":c[j[0]]=a.e(k,o,"UTF-8");break;case "uint8":c[j[0]]=a.r(k);break;case "jpeg":case "png":c[j[0]]={m:"image/"+s,data:a.n(k,o)}}}}e+=i}}var f=g.v={};f.types={0:"uint8",1:"text",13:"jpeg",14:"png",21:"uint8"};f.l={"\u00a9alb":["album"],"\u00a9art":["artist"],"\u00a9ART":["artist"],aART:["artist"],"\u00a9day":["year"],"\u00a9nam":["title"],"\u00a9gen":["genre"],trkn:["track"],"\u00a9wrt":["composer"],
    642           "\u00a9too":["encoder"],cprt:["copyright"],covr:["picture"],"\u00a9grp":["grouping"],keyw:["keyword"],"\u00a9lyr":["lyrics"],"\u00a9gen":["genre"]};f.o=function(c,a){c.f([0,7],function(){i(c,0,c.j(),a)})};f.p=function(c){var a={};d(a,c,0,c.j());return a};g.ID4=g.v})(this);
     381      var selection = null;
     382      var tmpInfo = {};
     383
     384      jQuery(function () {
     385          jQuery(".wp-editor-tabs button").on("click.map", function () {
     386
     387              setTimeout(function () {
     388                  if (!tinyMCE.activeEditor || tinyMCE.activeEditor.isHidden()) {
     389                      jQuery("#add-map").css("opacity", .5);
     390                  } else {
     391                      jQuery("#add-map").css("opacity", 1);
     392                  }
     393              }, 400)
     394          })
     395      });
     396
     397      function getFromMetatags() {
     398          if (typeof ID3 == "object") {
     399              ID3.loadTags(document.audioURL, function () {
     400                  var info = {};
     401                  info.title = ID3.getTag(document.audioURL, "title");
     402                  info.artist = ID3.getTag(document.audioURL, "artist");
     403                  info.album = ID3.getTag(document.audioURL, "album");
     404                  info.track = ID3.getTag(document.audioURL, "track");
     405                  info.size = ID3.getTag(document.audioURL, "size");
     406                  if (info.title && info.title != undefined) {
     407                      jQuery("[name='audiotitle']").val(info.title + " - " + info.artist);
     408
     409                      tmpInfo = info;
     410                  } else {
     411                      jquery("button#metadata").after("no meta-data available for this file");
     412                  }
     413              })
     414          }
     415      }
     416
     417      function miniaudioplayer_show_editor() {
     418
     419          if (tinyMCE.activeEditor == null || tinyMCE.activeEditor.isHidden() != false) {
     420              alert("You should switch to the visual editor");
     421              return;
     422          }
     423
     424          var map_editor = tinyMCE.activeEditor;
     425
     426          var map_form = jQuery('#map-form form').get(0);
     427
     428          var selection = map_editor.selection.getNode();
     429          map_editor.isValidURL = false;
     430          map_editor.isHref = false;
     431
     432          if (jQuery(selection).is("a[href *= '.mp3']") || jQuery(selection).find("a[href *= '.mp3']").lenght > 0 || jQuery(selection).prev().is("a[href *= '.mp3']")) {
     433              map_editor.isHref = true;
     434              map_editor.isValidURL = true;
     435          } else if (jQuery(selection).is("a") || jQuery(selection).find("a").lenght > 0 || jQuery(selection).prev().is("a")) {
     436              map_editor.isHref = true;
     437          }
     438
     439          if (!map_editor.isHref) {
     440              alert("Select a link to an mp3 file to customize the player.");
     441              return;
     442          }
     443
     444          if (!map_editor.isValidURL) {
     445              var d = confirm("the selected Link doesn't seams a valid MP3 path; do you want to continue anyway?");
     446              if (!d)
     447                  return;
     448
     449          }
     450          map_form.reset();
     451
     452          jQuery("body").css({overflow: "hidden"});
     453          jQuery("#map-form").slideDown(300);
     454
     455          selection = map_editor.selection.getNode();
     456
     457          map_editor.selection.select(selection, true);
     458
     459          var $selection = jQuery(selection);
     460
     461          var map_element = $selection.find("a[href *= '.mp3']");
     462          if (map_element.length) {
     463              selection = map_editor.selection.select(map_element.get(0), true);
     464          } else if ($selection.prev().is("a[href *= '.mp3']")) {
     465              selection = map_editor.selection.select($selection.prev().get(0), true);
     466          }
     467
     468          $selection = jQuery(selection);
     469
     470          var url = document.audioURL = $selection.attr("href");
     471          var title = $selection.html();
     472          var isExcluded = $selection.hasClass("<?php echo $exclude_class ?>");
     473
     474          var metadata = $selection.metadata();
     475
     476          if (metadata.volume)
     477              metadata.volume = parseFloat(metadata.volume) * 10;
     478
     479          if (jQuery.isEmptyObject(metadata)) {
     480              var defaultmeta = {
     481                  showVolumeLevel:<?php echo empty($showVolumeLevel) ? false : $showVolumeLevel ?>,
     482                  allowMute:<?php echo $allowMute ? "true" : "false"?>,
     483                  showTime:<?php echo $showTime ? "true" : "false"?>,
     484                  showRew:<?php echo $showRew ? "true" : "false"?>,
     485                  width: "<?php echo $width ?>",
     486                  skin: "<?php echo $skin ?>",
     487                  animate:<?php echo $miniAudioPlayer_animate ? "true" : "false" ?>,
     488                  loop: false,
     489                  addGradientOverlay: <?php echo $miniAudioPlayer_add_gradient ? "true" : "false" ?>,
     490                  downloadable:<?php echo $downloadable ? "true" : "false" ?>,
     491                  downloadable_security:<?php echo $downloadable_security ? "true" : "false" ?>,
     492                  volume: parseFloat(<?php echo $volume ?>) * 10
     493              };
     494              jQuery.extend(metadata, defaultmeta);
     495          }
     496
     497          jQuery.extend(metadata, {exclude: isExcluded});
     498
     499          jQuery("[name='url']", map_form).val(url);
     500
     501          jQuery("[name='audiotitle']", map_form).val(title);
     502
     503          for (var i in metadata) {
     504              if (typeof metadata[i] == "boolean") {
     505                  if (eval(metadata[i]) == true)
     506                      jQuery("[name=" + i + "]").attr("checked", "checked");
     507                  else
     508                      jQuery("[name=" + i + "]").removeAttr("checked");
     509              } else
     510                  jQuery("[name=" + i + "]").val(metadata[i]);
     511          }
     512
     513          var map_form = jQuery('#map-form form').get(0);
     514          map_form.onsubmit = miniaudioplayer_insertCode;
     515      }
     516
     517      function miniaudioplayer_insertCode(e) {
     518
     519          var map_editor = tinyMCE.activeEditor;
     520          var map_form = jQuery('#map-form form').get(0);
     521
     522          var map_params = "{";
     523          if (jQuery("[name='skin']", map_form).val().length > 0)
     524              map_params += "skin:'" + jQuery("[name='skin']").val() + "', ";
     525          map_params += "animate:" + (jQuery("[name='animate']").is(":checked") ? "true" : "false") + ", ";
     526          if (jQuery("[name='width']", map_form).val().length > 0)
     527              map_params += "width:'" + jQuery("[name='width']", map_form).val() + "', ";
     528          if (jQuery("[name='volume']", map_form).val().length > 0)
     529              map_params += "volume:" + jQuery("[name='volume']", map_form).val() / 10 + ", ";
     530          map_params += "autoplay:" + (jQuery("[name='autoplay']", map_form).is(":checked") ? "true" : "false") + ", ";
     531          map_params += "loop:" + (jQuery("[name='loop']", map_form).is(":checked") ? "true" : "false") + ", ";
     532          map_params += "showVolumeLevel:" + (jQuery("[name='showVolumeLevel']", map_form).is(":checked") ? "true" : "false") + ", ";
     533          map_params += "showTime:" + (jQuery("[name='showTime']", map_form).is(":checked") ? "true" : "false") + ", ";
     534          map_params += "allowMute:" + (jQuery("[name='allowMute']", map_form).is(":checked") ? "true" : "false") + ", ";
     535          map_params += "showRew:" + (jQuery("[name='showRew']", map_form).is(":checked") ? "true" : "false") + ", ";
     536          map_params += "addGradientOverlay:" + (jQuery("[name='addGradientOverlay']", map_form).is(":checked") ? "true" : "false") + ", ";
     537          map_params += "downloadable:" + (jQuery("[name='downloadable']", map_form).is(":checked") ? "true" : "false") + ", ";
     538          map_params += "downloadablesecurity:" + (jQuery("[name='downloadablesecurity']", map_form).is(":checked") ? "true" : "false") + ", ";
     539          map_params += "id3: false";
     540          map_params += "}";
     541          map_params = map_params.replace(", }", "}");
     542
     543          var isExcluded = jQuery("[name='exclude']", map_form).is(":checked") ? "<?php echo $exclude_class ?> " : "";
     544
     545          var map_a = "<a id='mbmaplayer_" + new Date().getTime() + "' class=";
     546          map_a += "\"mb_map " + isExcluded + map_params + "\" ";
     547
     548          for (var x in tmpInfo) {
     549              map_a += "meta-" + x + "=\"" + tmpInfo[x] + "\" ";
     550          }
     551          map_a += "href=\"" + jQuery("[name='url']", map_form).val() + "\">";
     552          map_a += jQuery("[name='audiotitle']", map_form).val();
     553          map_a += "</a>";
     554          map_editor.execCommand('mceInsertContent', 0, map_a);
     555
     556          miniaudioplayer_hide_editor();
     557
     558          return false;
     559      }
     560
     561      function miniaudioplayer_hide_editor() {
     562          jQuery("#map-form").slideUp(300);
     563          jQuery("body").css({overflow: "auto"});
     564      }
     565
     566      jQuery("body").on("click", "#map-form", function (e) {
     567          var target = e.originalEvent.target;
     568          if (jQuery(target).parents().is("#map-form"))
     569              return;
     570          miniaudioplayer_hide_editor();
     571      });
     572
     573
     574      /*
     575     * ******************************************************************************
     576     *  file: metadata.js
     577     */
     578
     579
     580      jQuery.extend({
     581          metadata: {
     582              defaults: {type: "class", name: "metadata", cre: /({.*})/, single: "metadata"}, setType: function (b, e) {
     583                  this.defaults.type = b;
     584                  this.defaults.name = e
     585              }, get: function (b, e) {
     586                  var c = jQuery.extend({}, this.defaults, e);
     587                  c.single.length || (c.single = "metadata");
     588                  var a = jQuery.data(b, c.single);
     589                  if (a) return a;
     590                  a = "{}";
     591                  if ("class" == c.type) {
     592                      var d = c.cre.exec(b.className);
     593                      d && (a = d[1])
     594                  } else if ("elem" == c.type) {
     595                      if (!b.getElementsByTagName) return;
     596                      d = b.getElementsByTagName(c.name);
     597                      d.length && (a = jQuery.trim(d[0].innerHTML))
     598                  } else void 0 !=
     599                  b.getAttribute && (d = b.getAttribute(c.name)) && (a = d);
     600                  0 > a.indexOf("{") && (a = "{" + a + "}");
     601                  a = eval("(" + a + ")");
     602                  jQuery.data(b, c.single, a);
     603                  return a
     604              }
     605          }
     606      });
     607      jQuery.fn.metadata = function (b) {
     608          return jQuery.metadata.get(this[0], b)
     609      };
     610
     611      /*
     612     * ******************************************************************************
     613     *  file: id3.min.js
     614     */
     615      var q=null;function y(g,i,d){function f(b,h,e,a,d,f){var j=c();if(j){typeof f==="undefined"&&(f=!0);if(h)typeof j.onload!="undefined"?j.onload=function(){j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e();j=q}:j.onreadystatechange=function(){if(j.readyState==4)j.status=="200"||j.status=="206"?(j.fileSize=d||j.getResponseHeader("Content-Length"),h(j)):e&&e(),j=q};j.open("GET",b,f);j.overrideMimeType&&j.overrideMimeType("text/plain; charset=x-user-defined");a&&j.setRequestHeader("Range",
     616          "bytes="+a[0]+"-"+a[1]);j.setRequestHeader("If-Modified-Since","Sat, 1 Jan 1970 00:00:00 GMT");j.send(q)}else e&&e()}function c(){var b=q;window.XMLHttpRequest?b=new XMLHttpRequest:window.F&&(b=new ActiveXObject("Microsoft.XMLHTTP"));return b}function a(b,h){var e=c();if(e){if(h)typeof e.onload!="undefined"?e.onload=function(){e.status=="200"&&h(this);e=q}:e.onreadystatechange=function(){e.readyState==4&&(e.status=="200"&&h(this),e=q)};e.open("HEAD",b,!0);e.send(q)}}function b(b,h){var e,a;function c(b){var p=
     617          ~~(b[0]/e)-a,b=~~(b[1]/e)+1+a;p<0&&(p=0);b>=blockTotal&&(b=blockTotal-1);return[p,b]}function g(a,c){for(;n[a[0]];)if(a[0]++,a[0]>a[1]){c&&c();return}for(;n[a[1]];)if(a[1]--,a[0]>a[1]){c&&c();return}var k=[a[0]*e,(a[1]+1)*e-1];f(b,function(b){parseInt(b.getResponseHeader("Content-Length"),10)==h&&(a[0]=0,a[1]=blockTotal-1,k[0]=0,k[1]=h-1);for(var b={data:b.W||b.responseText,s:k[0]},p=a[0];p<=a[1];p++)n[p]=b;i+=k[1]-k[0]+1;c&&c()},d,k,j,!!c)}var j,i=0,l=new z("",0,h),n=[];e=e||2048;a=typeof a==="undefined"?
     618          0:a;blockTotal=~~((h-1)/e)+1;for(var m in l)l.hasOwnProperty(m)&&typeof l[m]==="function"&&(this[m]=l[m]);this.a=function(b){var a;g(c([b,b]));a=n[~~(b/e)];if(typeof a.data=="string")return a.data.charCodeAt(b-a.s)&255;else if(typeof a.data=="unknown")return IEBinary_getByteAt(a.data,b-a.s)};this.N=function(){return i};this.f=function(b,a){g(c(b),a)}}(function(){a(g,function(a){a=parseInt(a.getResponseHeader("Content-Length"),10)||-1;i(new b(g,a))})})()}
     619      function z(g,i,d){var f=g,c=i||0,a=0;this.P=function(){return f};if(typeof g=="string")a=d||f.length,this.a=function(b){return f.charCodeAt(b+c)&255};else if(typeof g=="unknown")a=d||IEBinary_getLength(f),this.a=function(b){return IEBinary_getByteAt(f,b+c)};this.n=function(b,a){for(var h=Array(a),e=0;e<a;e++)h[e]=this.a(b+e);return h};this.j=function(){return a};this.d=function(b,a){return(this.a(b)&1<<a)!=0};this.Q=function(b){b=this.a(b);return b>127?b-256:b};this.r=function(b,a){var h=a?(this.a(b)<<
     620          8)+this.a(b+1):(this.a(b+1)<<8)+this.a(b);h<0&&(h+=65536);return h};this.S=function(b,a){var h=this.r(b,a);return h>32767?h-65536:h};this.h=function(b,a){var h=this.a(b),e=this.a(b+1),c=this.a(b+2),d=this.a(b+3),h=a?(((h<<8)+e<<8)+c<<8)+d:(((d<<8)+c<<8)+e<<8)+h;h<0&&(h+=4294967296);return h};this.R=function(b,a){var c=this.h(b,a);return c>2147483647?c-4294967296:c};this.q=function(b){var a=this.a(b),c=this.a(b+1),b=this.a(b+2),a=((a<<8)+c<<8)+b;a<0&&(a+=16777216);return a};this.c=function(b,a){for(var c=
     621          [],e=b,d=0;e<b+a;e++,d++)c[d]=String.fromCharCode(this.a(e));return c.join("")};this.e=function(b,a,c){b=this.n(b,a);switch(c.toLowerCase()){case "utf-16":case "utf-16le":case "utf-16be":var a=c,e,d=0,f=1,c=0;e=Math.min(e||b.length,b.length);b[0]==254&&b[1]==255?(a=!0,d=2):b[0]==255&&b[1]==254&&(a=!1,d=2);a&&(f=0,c=1);for(var a=[],g=0;d<e;g++){var j=b[d+f],i=(j<<8)+b[d+c];d+=2;if(i==0)break;else j<216||j>=224?a[g]=String.fromCharCode(i):(j=(b[d+f]<<8)+b[d+c],d+=2,a[g]=String.fromCharCode(i,j))}b=
     622          new String(a.join(""));b.g=d;break;case "utf-8":e=0;d=Math.min(d||b.length,b.length);b[0]==239&&b[1]==187&&b[2]==191&&(e=3);f=[];for(c=0;e<d;c++)if(a=b[e++],a==0)break;else a<128?f[c]=String.fromCharCode(a):a>=194&&a<224?(g=b[e++],f[c]=String.fromCharCode(((a&31)<<6)+(g&63))):a>=224&&a<240?(g=b[e++],i=b[e++],f[c]=String.fromCharCode(((a&255)<<12)+((g&63)<<6)+(i&63))):a>=240&&a<245&&(g=b[e++],i=b[e++],j=b[e++],a=((a&7)<<18)+((g&63)<<12)+((i&63)<<6)+(j&63)-65536,f[c]=String.fromCharCode((a>>10)+55296,
     623          (a&1023)+56320));b=new String(f.join(""));b.g=e;break;default:d=[];f=f||b.length;for(e=0;e<f;){c=b[e++];if(c==0)break;d[e-1]=String.fromCharCode(c)}b=new String(d.join(""));b.g=e}return b};this.M=function(a){return String.fromCharCode(this.a(a))};this.Z=function(){return window.btoa(f)};this.L=function(a){f=window.atob(a)};this.f=function(a,c){c()}}document.write("<script type='text/vbscript'>\r\nFunction IEBinary_getByteAt(strBinary, iOffset)\r\n\tIEBinary_getByteAt = AscB(MidB(strBinary,iOffset+1,1))\r\nEnd Function\r\nFunction IEBinary_getLength(strBinary)\r\n\tIEBinary_getLength = LenB(strBinary)\r\nEnd Function\r\n<\/script>\r\n");(function(g){g.FileAPIReader=function(g){return function(d,f){var c=new FileReader;c.onload=function(a){f(new z(a.target.result))};c.readAsBinaryString(g)}}})(this);(function(g){g.k={i:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",z:function(g){for(var d="",f,c,a,b,p,h,e=0;e<g.length;)f=g[e++],c=g[e++],a=g[e++],b=f>>2,f=(f&3)<<4|c>>4,p=(c&15)<<2|a>>6,h=a&63,isNaN(c)?p=h=64:isNaN(a)&&(h=64),d=d+Base64.i.charAt(b)+Base64.i.charAt(f)+Base64.i.charAt(p)+Base64.i.charAt(h);return d}};g.Base64=g.k;g.k.encodeBytes=g.k.z})(this);(function(g){var i=g.t={},d={},f=[0,7];i.C=function(c,a,b){b=b||{};(b.dataReader||y)(c,function(g){g.f(f,function(){var f=g.c(4,7)=="ftypM4A"?ID4:g.c(0,3)=="ID3"?ID3v2:ID3v1;f.o(g,function(){var e=b.tags,i=f.p(g,e),e=d[c]||{},k;for(k in i)i.hasOwnProperty(k)&&(e[k]=i[k]);d[c]=e;a&&a()})})})};i.A=function(c){if(!d[c])return q;var a={},b;for(b in d[c])d[c].hasOwnProperty(b)&&(a[b]=d[c][b]);return a};i.B=function(c,a){if(!d[c])return q;return d[c][a]};g.ID3=g.t;i.loadTags=i.C;i.getAllTags=i.A;i.getTag=
     624          i.B})(this);(function(g){var i=g.u={},d=["Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge","Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B","Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska","Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient","Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical","Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise","AlternRock","Bass","Soul","Punk","Space","Meditative","Instrumental Pop","Instrumental Rock",
     625          "Ethnic","Gothic","Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance","Dream","Southern Rock","Comedy","Cult","Gangsta","Top 40","Christian Rap","Pop/Funk","Jungle","Native American","Cabaret","New Wave","Psychadelic","Rave","Showtunes","Trailer","Lo-Fi","Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical","Rock & Roll","Hard Rock","Folk","Folk-Rock","National Folk","Swing","Fast Fusion","Bebob","Latin","Revival","Celtic","Bluegrass","Avantgarde","Gothic Rock","Progressive Rock",
     626          "Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band","Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson","Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus","Porn Groove","Satire","Slow Jam","Club","Tango","Samba","Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle","Duet","Punk Rock","Drum Solo","Acapella","Euro-House","Dance Hall"];i.o=function(d,c){var a=d.j();d.f([a-128-1,a],c)};i.p=function(f){var c=f.j()-128;if(f.c(c,3)=="TAG"){var a=f.c(c+3,30).replace(/\0/g,
     627          ""),b=f.c(c+33,30).replace(/\0/g,""),g=f.c(c+63,30).replace(/\0/g,""),h=f.c(c+93,4).replace(/\0/g,"");if(f.a(c+97+28)==0)var e=f.c(c+97,28).replace(/\0/g,""),i=f.a(c+97+29);else e="",i=0;f=f.a(c+97+30);return{version:"1.1",title:a,artist:b,album:g,year:h,comment:e,track:i,genre:f<255?d[f]:""}}else return{}};g.ID3v1=g.u})(this);(function(g){function i(a,b){var c=b.a(a),d=b.a(a+1),e=b.a(a+2);return b.a(a+3)&127|(e&127)<<7|(d&127)<<14|(c&127)<<21}var d=g.G={};d.b={};d.frames={BUF:"Recommended buffer size",CNT:"Play counter",COM:"Comments",CRA:"Audio encryption",CRM:"Encrypted meta frame",ETC:"Event timing codes",EQU:"Equalization",GEO:"General encapsulated object",IPL:"Involved people list",LNK:"Linked information",MCI:"Music CD Identifier",MLL:"MPEG location lookup table",PIC:"Attached picture",POP:"Popularimeter",REV:"Reverb",
     628          RVA:"Relative volume adjustment",SLT:"Synchronized lyric/text",STC:"Synced tempo codes",TAL:"Album/Movie/Show title",TBP:"BPM (Beats Per Minute)",TCM:"Composer",TCO:"Content type",TCR:"Copyright message",TDA:"Date",TDY:"Playlist delay",TEN:"Encoded by",TFT:"File type",TIM:"Time",TKE:"Initial key",TLA:"Language(s)",TLE:"Length",TMT:"Media type",TOA:"Original artist(s)/performer(s)",TOF:"Original filename",TOL:"Original Lyricist(s)/text writer(s)",TOR:"Original release year",TOT:"Original album/Movie/Show title",
     629          TP1:"Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group",TP2:"Band/Orchestra/Accompaniment",TP3:"Conductor/Performer refinement",TP4:"Interpreted, remixed, or otherwise modified by",TPA:"Part of a set",TPB:"Publisher",TRC:"ISRC (International Standard Recording Code)",TRD:"Recording dates",TRK:"Track number/Position in set",TSI:"Size",TSS:"Software/hardware and settings used for encoding",TT1:"Content group description",TT2:"Title/Songname/Content description",TT3:"Subtitle/Description refinement",
     630          TXT:"Lyricist/text writer",TXX:"User defined text information frame",TYE:"Year",UFI:"Unique file identifier",ULT:"Unsychronized lyric/text transcription",WAF:"Official audio file webpage",WAR:"Official artist/performer webpage",WAS:"Official audio source webpage",WCM:"Commercial information",WCP:"Copyright/Legal information",WPB:"Publishers official webpage",WXX:"User defined URL link frame",AENC:"Audio encryption",APIC:"Attached picture",COMM:"Comments",COMR:"Commercial frame",ENCR:"Encryption method registration",
     631          EQUA:"Equalization",ETCO:"Event timing codes",GEOB:"General encapsulated object",GRID:"Group identification registration",IPLS:"Involved people list",LINK:"Linked information",MCDI:"Music CD identifier",MLLT:"MPEG location lookup table",OWNE:"Ownership frame",PRIV:"Private frame",PCNT:"Play counter",POPM:"Popularimeter",POSS:"Position synchronisation frame",RBUF:"Recommended buffer size",RVAD:"Relative volume adjustment",RVRB:"Reverb",SYLT:"Synchronized lyric/text",SYTC:"Synchronized tempo codes",
     632          TALB:"Album/Movie/Show title",TBPM:"BPM (beats per minute)",TCOM:"Composer",TCON:"Content type",TCOP:"Copyright message",TDAT:"Date",TDLY:"Playlist delay",TENC:"Encoded by",TEXT:"Lyricist/Text writer",TFLT:"File type",TIME:"Time",TIT1:"Content group description",TIT2:"Title/songname/content description",TIT3:"Subtitle/Description refinement",TKEY:"Initial key",TLAN:"Language(s)",TLEN:"Length",TMED:"Media type",TOAL:"Original album/movie/show title",TOFN:"Original filename",TOLY:"Original lyricist(s)/text writer(s)",
     633          TOPE:"Original artist(s)/performer(s)",TORY:"Original release year",TOWN:"File owner/licensee",TPE1:"Lead performer(s)/Soloist(s)",TPE2:"Band/orchestra/accompaniment",TPE3:"Conductor/performer refinement",TPE4:"Interpreted, remixed, or otherwise modified by",TPOS:"Part of a set",TPUB:"Publisher",TRCK:"Track number/Position in set",TRDA:"Recording dates",TRSN:"Internet radio station name",TRSO:"Internet radio station owner",TSIZ:"Size",TSRC:"ISRC (international standard recording code)",TSSE:"Software/Hardware and settings used for encoding",
     634          TYER:"Year",TXXX:"User defined text information frame",UFID:"Unique file identifier",USER:"Terms of use",USLT:"Unsychronized lyric/text transcription",WCOM:"Commercial information",WCOP:"Copyright/Legal information",WOAF:"Official audio file webpage",WOAR:"Official artist/performer webpage",WOAS:"Official audio source webpage",WORS:"Official internet radio station homepage",WPAY:"Payment",WPUB:"Publishers official webpage",WXXX:"User defined URL link frame"};var f={title:["TIT2","TT2"],artist:["TPE1",
     635              "TP1"],album:["TALB","TAL"],year:["TYER","TYE"],comment:["COMM","COM"],track:["TRCK","TRK"],genre:["TCON","TCO"],picture:["APIC","PIC"],lyrics:["USLT","ULT"]},c=["title","artist","album","track"];d.o=function(a,b){a.f([0,i(6,a)],b)};d.p=function(a,b){var g=0,h=a.a(g+3);if(h>4)return{version:">2.4"};var e=a.a(g+4),v=a.d(g+5,7),k=a.d(g+5,6),s=a.d(g+5,5),j=i(g+6,a);g+=10;if(k){var o=a.h(g,!0);g+=o+4}var h={version:"2."+h+"."+e,major:h,revision:e,flags:{unsynchronisation:v,extended_header:k,experimental_indicator:s},
     636          size:j},l;if(v)l={};else{j-=10;for(var v=a,e=b,k={},s=h.major,o=[],n=0,m;m=(e||c)[n];n++)o=o.concat(f[m]||[m]);for(e=o;g<j;){o=q;n=v;m=g;var u=q;switch(s){case 2:l=n.c(m,3);var r=n.q(m+3),t=6;break;case 3:l=n.c(m,4);r=n.h(m+4,!0);t=10;break;case 4:l=n.c(m,4),r=i(m+4,n),t=10}if(l=="")break;g+=t+r;if(!(e.indexOf(l)<0)&&(s>2&&(u={message:{Y:n.d(m+8,6),K:n.d(m+8,5),V:n.d(m+8,4)},m:{T:n.d(m+8+1,7),H:n.d(m+8+1,3),J:n.d(m+8+1,2),D:n.d(m+8+1,1),w:n.d(m+8+1,0)}}),m+=t,u&&u.m.w&&(i(m,n),m+=4,r-=4),!u||!u.m.D))l in
     637      d.b?o=d.b[l]:l[0]=="T"&&(o=d.b["T*"]),o=o?o(m,r,n,u):void 0,o={id:l,size:r,description:l in d.frames?d.frames[l]:"Unknown",data:o},l in k?(k[l].id&&(k[l]=[k[l]]),k[l].push(o)):k[l]=o}l=k}for(var w in f)if(f.hasOwnProperty(w)){a:{r=f[w];typeof r=="string"&&(r=[r]);t=0;for(g=void 0;g=r[t];t++)if(g in l){a=l[g].data;break a}a=void 0}a&&(h[w]=a)}for(var x in l)l.hasOwnProperty(x)&&(h[x]=l[x]);return h};g.ID3v2=d})(this);(function(){function g(d){var f;switch(d){case 0:f="iso-8859-1";break;case 1:f="utf-16";break;case 2:f="utf-16be";break;case 3:f="utf-8"}return f}var i=["32x32 pixels 'file icon' (PNG only)","Other file icon","Cover (front)","Cover (back)","Leaflet page","Media (e.g. lable side of CD)","Lead artist/lead performer/soloist","Artist/performer","Conductor","Band/Orchestra","Composer","Lyricist/text writer","Recording Location","During recording","During performance","Movie/video screen capture","A bright coloured fish",
     638          "Illustration","Band/artist logotype","Publisher/Studio logotype"];ID3v2.b.APIC=function(d,f,c,a,b){var b=b||"3",a=d,p=g(c.a(d));switch(b){case "2":var h=c.c(d+1,3);d+=4;break;case "3":case "4":h=c.e(d+1,f-(d-a),p),d+=1+h.g}b=c.a(d,1);b=i[b];p=c.e(d+1,f-(d-a),p);d+=1+p.g;return{format:h.toString(),type:b,description:p.toString(),data:c.n(d,a+f-d)}};ID3v2.b.COMM=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,X:h.toString(),text:d.toString()}};
     639          ID3v2.b.COM=ID3v2.b.COMM;ID3v2.b.PIC=function(d,f,c,a){return ID3v2.b.APIC(d,f,c,a,"2")};ID3v2.b.PCNT=function(d,f,c){return c.O(d)};ID3v2.b.CNT=ID3v2.b.PCNT;ID3v2.b["T*"]=function(d,f,c){var a=g(c.a(d));return c.e(d+1,f-1,a).toString()};ID3v2.b.TCON=function(){return ID3v2.b["T*"].apply(this,arguments).replace(/^\(\d+\)/,"")};ID3v2.b.TCO=ID3v2.b.TCON;ID3v2.b.USLT=function(d,f,c){var a=d,b=g(c.a(d)),i=c.c(d+1,3),h=c.e(d+4,f-4,b);d+=4+h.g;d=c.e(d,a+f-d,b);return{language:i,I:h.toString(),U:d.toString()}};
     640          ID3v2.b.ULT=ID3v2.b.USLT})();(function(g){function i(c,a,b,d){var g=c.h(a,!0);if(g==0)d();else{var e=c.c(a+4,4);["moov","udta","meta","ilst"].indexOf(e)>-1?(e=="meta"&&(a+=4),c.f([a+8,a+8+8],function(){i(c,a+8,g-8,d)})):c.f([a+(e in f.l?0:g),a+g+8],function(){i(c,a+g,b,d)})}}function d(c,a,b,g,h){for(var h=h===void 0?"":h+"  ",e=b;e<b+g;){var i=a.h(e,!0);if(i==0)break;var k=a.c(e+4,4);if(["moov","udta","meta","ilst"].indexOf(k)>-1){k=="meta"&&(e+=4);d(c,a,e+8,i-8,h);break}if(f.l[k]){var s=a.q(e+16+1),j=f.l[k],s=f.types[s];if(k==
     641          "trkn")c[j[0]]=a.a(e+16+11),c.count=a.a(e+16+13);else{var k=e+16+4+4,o=i-16-4-4;switch(s){case "text":c[j[0]]=a.e(k,o,"UTF-8");break;case "uint8":c[j[0]]=a.r(k);break;case "jpeg":case "png":c[j[0]]={m:"image/"+s,data:a.n(k,o)}}}}e+=i}}var f=g.v={};f.types={0:"uint8",1:"text",13:"jpeg",14:"png",21:"uint8"};f.l={"\u00a9alb":["album"],"\u00a9art":["artist"],"\u00a9ART":["artist"],aART:["artist"],"\u00a9day":["year"],"\u00a9nam":["title"],"\u00a9gen":["genre"],trkn:["track"],"\u00a9wrt":["composer"],
     642          "\u00a9too":["encoder"],cprt:["copyright"],covr:["picture"],"\u00a9grp":["grouping"],keyw:["keyword"],"\u00a9lyr":["lyrics"],"\u00a9gen":["genre"]};f.o=function(c,a){c.f([0,7],function(){i(c,0,c.j(),a)})};f.p=function(c){var a={};d(a,c,0,c.j());return a};g.ID4=g.v})(this);
    643643
    644644
    645645  </script>
    646646
    647     <?php
     647    <?php
    648648
    649649}
  • wp-miniaudioplayer/trunk/js/jQuery.mb.miniAudioPlayer.min.js

    r2146899 r2147879  
    11/*jquery.mb.miniAudioPlayer 16-01-2018
    22 _ jquery.mb.components
    3  _ email: mat[email protected]
     3 _ email: mat[email protected]
    44 _ Copyright (c) 2001-2018. Matteo Bicocchi (Pupunzi);
    55 _ blog: http://pupunzi.open-lab.com
  • wp-miniaudioplayer/trunk/miniAudioPlayer.php

    r2147389 r2147879  
    2626Description: Transform your mp3 audio file link into a nice, small light player. ! IMPORTANT - if you customized the skin for the previous version you need to regenerate it from <a href="http://pupunzi.com/mb.components/mb.miniAudioPlayer/demo/skinMaker.html" target="_blank">here</a>.
    2727Author: Pupunzi (Matteo Bicocchi)
    28 Version: 1.9.0
     28Version: 1.9.1
    2929Author URI: http://pupunzi.com
    3030Text Domain: wp-miniaudioplayer
    3131*/
    3232
    33 define("MINIAUDIOPLAYER_VERSION", "1.9.0");
     33define("MINIAUDIOPLAYER_VERSION", "1.9.1");
    3434register_activation_hook(__FILE__, 'miniAudioPlayer_install');
    3535
  • wp-miniaudioplayer/trunk/readme.txt

    r2146899 r2147879  
    55Requires at least: 3.3
    66Tested up to: 5.2
    7 Stable tag: 1.9.0
     7Stable tag: 1.9.1
    88Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DSHAHSJJCQ53Y
    99
     
    8787== Changelog ==
    8888
     89= 1.9.1 =
     90* Bugfix: I introdiced an incorrect path to the the editor javascript file that prevent the miniaudioplayer window to display and generate a blocking javascript error.
     91
    8992= 1.9.0 =
    9093* New update and security issue fixed: There was a potential security issue within the download method that has been fixed using the HTML5 download tag instead of streaming the file via PHP. Now the plugin can replace the default Wordpress 5 (Gutenberg) audio player.
Note: See TracChangeset for help on using the changeset viewer.