Changeset 201754
- Timestamp:
- 02/04/2010 10:54:24 AM (16 years ago)
- Location:
- wpaudio-mp3-player/tags/2.2.0
- Files:
-
- 3 edited
-
readme.txt (modified) (3 diffs)
-
wpaudio.js (modified) (2 diffs)
-
wpaudio.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpaudio-mp3-player/tags/2.2.0/readme.txt
r194684 r201754 5 5 Requires at least: 2.5 6 6 Tested up to: 2.9.1 7 Stable tag: 2. 1.17 Stable tag: 2.2.0 8 8 9 9 Play mp3s and podcasts in your posts with the simplest, cleanest, easiest-to-use mp3 player. Supports links, tags, and separate download URLs. … … 44 44 45 45 [wpaudio url="http://url.to/your.mp3" text="Artist - Song" dl="0"] 46 47 * For autoplay, just add autoplay="1" to your tags. 48 49 [wpaudio url="http://url.to/your.mp3" text="Artist - Song" autoplay="1"] 46 50 47 51 Powered by the SoundManager 2 API … … 109 113 110 114 == Changelog == 115 116 = 2.2.0 = 117 * Added autoplay 118 * Open players collapse when another is clicked. 111 119 112 120 = 2.1.1 = -
wpaudio-mp3-player/tags/2.2.0/wpaudio.js
r172184 r201754 102 102 jQuery('#wpa' + id + '_sub').fadeIn('slow'); 103 103 }); 104 jQuery('.wpa_container').not('#wpa' + id + '_container').children('.wpa_bar:visible, .wpa_sub:visible').slideUp('slow'); 104 105 return false; 105 106 }); … … 133 134 }); 134 135 */ 136 // Autoplay 137 jQuery('.wpaudio_autoplay:first').click(); 135 138 } 136 139 }); -
wpaudio-mp3-player/tags/2.2.0/wpaudio.php
r194681 r201754 5 5 Plugin URI: http://wpaudio.com 6 6 Description: Play mp3s and podcasts in your posts by converting links and tags into a simple, customizable audio player. 7 Version: 2. 1.17 Version: 2.2.0 8 8 Author: Todd Iceton 9 9 Author URI: http://ticeton.com … … 27 27 28 28 ## WPaudio version 29 $wpa_version = '2. 1.1';29 $wpa_version = '2.2.0'; 30 30 31 31 ## Pre-2.6 compatibility (from WP codex) … … 184 184 'url' => false, 185 185 'text' => false, 186 'dl' => true 186 'dl' => true, 187 'autoplay' => false 187 188 ), $atts)); 188 189 # If no url, return with nothing … … 190 191 return; 191 192 # Get player HTML and JS 192 return wpaLink($url, $text, $dl );193 return wpaLink($url, $text, $dl, $autoplay); 193 194 } 194 195 … … 197 198 198 199 # Make WPA link 199 function wpaLink($url, $text = false, $dl = true ) {200 function wpaLink($url, $text = false, $dl = true, $autoplay = false) { 200 201 global $wpa_urls; 201 202 $class = 'wpaudio'; … … 222 223 $class .= ' wpaudio_readid3'; 223 224 } 225 # Autoplay 226 if ($autoplay == '1') $class .= ' wpaudio_autoplay'; 224 227 $html .= "<a class='$class' href='$href'>$text</a>"; 225 228 return $html;
Note: See TracChangeset
for help on using the changeset viewer.