Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: audio.php
- ===================================================================
- --- audio.php (revision 574380)
- +++ audio.php (working copy)
- @@ -54,6 +54,9 @@
- wp_enqueue_script( 'base64', WP_PLUGIN_URL . '/audio/js/base64.js', '', '', true );
- wp_enqueue_script( 'jplayer', WP_PLUGIN_URL . '/audio/js/jquery.jplayer.min.js', array( 'jquery' ), '', true );
- wp_enqueue_script( 'audio', WP_PLUGIN_URL . '/audio/js/audio.js', array( 'jplayer', 'base64' ), '', true );
- + wp_localize_script( 'audio', 'AudioSettings', array(
- + 'url' => plugins_url('', __FILE__),
- + ));
- }
- }
- Index: css/audio.css
- ===================================================================
- --- css/audio.css (revision 574380)
- +++ css/audio.css (working copy)
- @@ -23,7 +23,7 @@
- .jp-controls {position: absolute; top: -2px; right: -1px; overflow: hidden;
- margin: 0 !important; list-style: none !important}
- .jp-controls li {float: left; margin-left: 2px}
- -.jp-controls a {display: block; cursor: pointer; background: url(/wp-content/plugins/audio/css/images/icons_master.png) no-repeat;}
- +.jp-controls a {display: block; cursor: pointer; background: url(images/icons_master.png) no-repeat;}
- .jp-controls .jp-play {background-position: -27px -35px; width: 31px; height: 31px}
- .jp-controls .jp-pause {background-position: -27px 0; width: 31px; height: 31px}
- .jp-controls .jp-previous {background-position: 0 -39px; width: 23px; height: 23px; margin-top: 5px}
- Index: js/audio.js
- ===================================================================
- --- js/audio.js (revision 574380)
- +++ js/audio.js (working copy)
- @@ -171,7 +171,7 @@
- player
- .jPlayer({
- - swfPath: 'http://' + window.location.host + '/wp-content/plugins/audio/js/jplayer-02272012.swf',
- + swfPath: AudioSettings.url + '/js/jplayer-02272012.swf',
- preload: 'none',
- ready: playlistInit,
- nativeSupport: true,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement