Changeset 646109
- Timestamp:
- 12/30/2012 05:28:33 PM (13 years ago)
- Location:
- jetpack-easy-playlists/trunk
- Files:
-
- 2 edited
-
jetpack_easy_playlists.php (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jetpack-easy-playlists/trunk/jetpack_easy_playlists.php
r566171 r646109 128 128 $urls = $titles = $artists = array(); 129 129 $pidset = false; 130 $list = ""; 130 131 131 132 … … 175 176 $comma_separated_artists = implode(",", $artists); 176 177 178 // output song info? 179 180 if ( isset($atts['print']) ) { 181 foreach ($titles as $key => $value) { 182 $list .= "<li>" .$value ." — ".$artists[$key] ."</li>"; 183 } 184 if ($atts['print'] == 'ol') { 185 $list = '<ol>'.$list.'</ol>'; 186 } 187 else { 188 $list = '<ul>'.$list.'</ul>'; 189 } 190 } 191 192 193 177 194 //give data to jetpack 178 195 $playlist = do_shortcode('[audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'|'.$results.']'); 179 196 //write generated shortcode to comment, in case you need to put it somewhere else 180 197 $shortcode = '<!-- audio shortcode is [audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'|'.$results.'] -->'; 181 return $playlist.PHP_EOL.$ shortcode;198 return $playlist.PHP_EOL.$list; 182 199 } 183 200 -
jetpack-easy-playlists/trunk/readme.txt
r566171 r646109 4 4 Tags: playlists, jetpack, audio, mp3, player 5 5 Requires at least: 3.4 6 Tested up to: 3. 4.17 Stable tag: 2. 26 Tested up to: 3.5 7 Stable tag: 2.3 8 8 9 9 Generate playlists automatically from mp3s attached to your post/page. Requires Jetpack. … … 13 13 Audio support in Wordpress makes me cry. No native player, the fields in the Media library seem wrong for audio, and let's not get into ID3 tag reading. The audio shortcode and player provided by Jetpack is a step in the right direction. However, the ability to directly create a player or playlist on a post/page from attached mp3s makes me sad again. Writing that shortcode is nasty business for anything beyond a file or two. 14 14 15 And what about the [gallery] shortcode for images? So easy to round up all your attached pictures and display them all automagically. Why no love for [audio [?15 And what about the [gallery] shortcode for images? So easy to round up all your attached pictures and display them all automagically. Why no love for [audio]? 16 16 17 17 This plugin acts as a wrapper for Jetpack's [audio] shortcode. It rounds up all the mp3s attached to your post/page and adds them as a playlist in the Jetpack player. Simply attach your mp3s to your post/page and use the shortcode "[jplaylist]" where you want your playlist 18 18 19 JEP supports all the options that [audio] does, and now allows you to call up attachments from other pages/posts. 19 JEP supports all the options that [audio] does, and now allows you to call up attachments from other pages/posts. You can also turn on "list mode" to output all the tracks in an HTML list. 20 20 21 21 Requires [Jetpack](http://jetpack.me/). … … 29 29 1. Upload `jetpack_easy_playlists.php` to the `/wp-content/plugins/` directory 30 30 1. Activate the plugin through the 'Plugins' menu in WordPress 31 1. Use the [jplaylist] shortcode to display a play ist of all the mp3s attached to your post31 1. Use the [jplaylist] shortcode to display a playlist of all the mp3s attached to your post 32 32 33 33 == Frequently Asked Questions == … … 68 68 [More details](http://jamesfishwick.com/2012/jetpack-easy-playlists-update/) 69 69 70 = How do I turn on "list mode" 71 72 Use [jplaylist print="ol"] for an ordered list, [jplaylist print="ul"] for an unordered one. 73 70 74 = Can you support my favorite player WordPess player plugin xyz? = 71 75 … … 77 81 78 82 == Changelog == 83 84 = 2.3 = 85 * Added list mode param 79 86 80 87 = 2.2 =
Note: See TracChangeset
for help on using the changeset viewer.