Advertisement
Guest User

Audio WP subdirectory fixes

a guest
Jul 18th, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.91 KB | None | 0 0
  1. Index: audio.php
  2. ===================================================================
  3. --- audio.php   (revision 574380)
  4. +++ audio.php   (working copy)
  5. @@ -54,6 +54,9 @@
  6.             wp_enqueue_script( 'base64',    WP_PLUGIN_URL . '/audio/js/base64.js', '', '', true );
  7.             wp_enqueue_script( 'jplayer',   WP_PLUGIN_URL . '/audio/js/jquery.jplayer.min.js', array( 'jquery' ), '', true );
  8.             wp_enqueue_script( 'audio',     WP_PLUGIN_URL . '/audio/js/audio.js', array( 'jplayer', 'base64' ), '', true );
  9. +           wp_localize_script( 'audio', 'AudioSettings', array(
  10. +               'url' => plugins_url('', __FILE__),
  11. +           ));
  12.         }
  13.     }
  14.  
  15. Index: css/audio.css
  16. ===================================================================
  17. --- css/audio.css   (revision 574380)
  18. +++ css/audio.css   (working copy)
  19. @@ -23,7 +23,7 @@
  20.  .jp-controls {position: absolute; top: -2px; right: -1px; overflow: hidden;
  21.     margin: 0 !important; list-style: none !important}
  22.  .jp-controls li {float: left; margin-left: 2px}
  23. -.jp-controls a {display: block; cursor: pointer; background: url(/wp-content/plugins/audio/css/images/icons_master.png) no-repeat;}
  24. +.jp-controls a {display: block; cursor: pointer; background: url(images/icons_master.png) no-repeat;}
  25.  .jp-controls .jp-play {background-position: -27px -35px; width: 31px; height: 31px}
  26.  .jp-controls .jp-pause {background-position: -27px 0; width: 31px; height: 31px}
  27.  .jp-controls .jp-previous {background-position: 0 -39px; width: 23px; height: 23px; margin-top: 5px}
  28. Index: js/audio.js
  29. ===================================================================
  30. --- js/audio.js (revision 574380)
  31. +++ js/audio.js (working copy)
  32. @@ -171,7 +171,7 @@
  33.        
  34.             player         
  35.                 .jPlayer({
  36. -                   swfPath: 'http://' + window.location.host + '/wp-content/plugins/audio/js/jplayer-02272012.swf',
  37. +                   swfPath: AudioSettings.url + '/js/jplayer-02272012.swf',
  38.                     preload: 'none',
  39.                     ready: playlistInit,
  40.                     nativeSupport: true,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement