Changeset 477586
- Timestamp:
- 12/19/2011 04:59:09 PM (14 years ago)
- Location:
- embed-grooveshark/trunk
- Files:
-
- 3 added
- 3 edited
-
embed_grooveshark.php (modified) (2 diffs)
-
includes/GroovesharkShortcode.class.php (modified) (5 diffs)
-
includes/GroovesharkSongListWidget.class.php (added)
-
languages (added)
-
languages/embed-grooveshark.pot (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embed-grooveshark/trunk/embed_grooveshark.php
r469906 r477586 4 4 Plugin URI: http://www.manfersite.tk/embed-grooveshark 5 5 Description: Add grooveshark songs or playlists to your posts. 6 Version: 0. 16 Version: 0.2 7 7 Author: Fernando San Julián 8 8 Email: manfer.site@gmail.com … … 37 37 require_once('includes/GroovesharkSongWidget.class.php'); 38 38 require_once('includes/GroovesharkPlaylistWidget.class.php'); 39 require_once('includes/GroovesharkSongListWidget.class.php'); 39 40 load_plugin_textdomain('embed_grooveshark', false, basename( dirname( __FILE__ ) ) . '/languages' ); 40 41 -
embed-grooveshark/trunk/includes/GroovesharkShortcode.class.php
r469887 r477586 13 13 add_action('init', array(__CLASS__, 'register_script')); 14 14 add_action('wp_footer', array(__CLASS__, 'print_script')); 15 ini_set("display_errors",1); 16 error_reporting(E_ALL); 15 17 } 16 18 … … 24 26 'swfobject' => 0, 25 27 'autoplay' => 0, 28 'random' => 0, 26 29 'width' => 250, 27 30 'height' => 40, … … 34 37 ) ); 35 38 36 if ( ! isset($atts['height'] ) && $type == 'playlist' ) $height = 250;39 if ( ! isset($atts['height'] ) && $type != 'song' ) $height = 250; 37 40 38 41 self::$add_js = $swfobject; … … 43 46 $gstype = 'songIDs'; 44 47 $theme = 'style=' . $style; 48 } elseif ( $type === 'songlist' ) { 49 $name = 'asManySongs'; 50 $widget = 'widget.swf'; 51 $gstype = 'songIDs'; 52 $theme = $skin; 53 $id = preg_split( "/[\s,]+/", $id ); 54 if ( $random ) shuffle( $id ); 55 $id = implode( ",", $id ); 45 56 } else { 46 57 $name = 'gsPlaylist' . $id; … … 48 59 $gstype = 'playlistID'; 49 60 $theme = $skin; 50 // I thought I read that texturizer filter was not applied to shortcodes51 // but it is. So we revert & which code is #038; to & to use in parse_str52 parse_str( str_replace("#038;", "&", $skin) );53 61 } 62 63 64 // I thought I read that texturizer filter was not applied to shortcodes 65 // but it is. So we revert & which code is #038; to & to use in parse_str 66 parse_str( str_replace("#038;", "&", $skin) ); 54 67 55 68 // It is strange someone wants to add same playlist or song to same page. -
embed-grooveshark/trunk/readme.txt
r469906 r477586 5 5 Requires at least: 2.9 6 6 Tested up to: 3.2.1 7 Stable tag: 0. 17 Stable tag: 0.2 8 8 9 9 This plugin allows you to embed grooveshark songs and playlists in your posts/pages/widgets with a shortcode. … … 37 37 == Installation == 38 38 1. Download and unpack the download package. 39 1. Upload the `embed-grooveshark` folder to the '/wp-content/plugins/'directory.39 1. Upload the `embed-grooveshark` folder to the `/wp-content/plugins/` directory. 40 40 1. Activate the plugin through the 'Plugins' menu in WordPress. 41 41 1. You will now have your "grooveshark" shortcode and widgets available. 42 42 43 43 = Usage = 44 * After you install this plugin you can start using the shortcode [grooveshark]45 * The available attributes for the shortcode are: type, id, width, height, style, skin, swfobject.46 * Use the contentof the shortcode as the alternative content to show to visitors that has not flash available.44 * After you install this plugin you can start using the shortcode `[grooveshark]`. 45 * The available attributes for the shortcode are: `type`, `id`, `width`, `height`, `style`, `skin`, `autoplay`, `swfobject`, `random`. 46 * Use the `content` (text between the start and close tags) of the shortcode as the alternative content to show to visitors that has not flash available. 47 47 * For a more in detail tutorial and example on how to use the shortcode visit [Embed Grooveshark Homepage](http://www.manfersite.tk/embed-grooveshark "Embed Grooveshark Wordpress plugin"). 48 48 * You can use the available Grooveshark Song and Grooveshark Playlist widgets in your sidebars. … … 57 57 == Changelog == 58 58 59 = 0.2 = 60 * Added a new widget to include a list of songs. 61 * Added type songlist to shortcode. 62 59 63 = 0.1 = 60 64 * Initial release.
Note: See TracChangeset
for help on using the changeset viewer.