Changeset 588156
- Timestamp:
- 08/21/2012 03:38:06 AM (14 years ago)
- Location:
- message-flow
- Files:
-
- 5 added
- 2 edited
- 7 copied
-
tags/1.1.1 (added)
-
tags/1.1.1/contentflow (copied) (copied from message-flow/trunk/contentflow)
-
tags/1.1.1/css (copied) (copied from message-flow/trunk/css)
-
tags/1.1.1/images (copied) (copied from message-flow/trunk/images)
-
tags/1.1.1/js (copied) (copied from message-flow/trunk/js)
-
tags/1.1.1/main.php (copied) (copied from message-flow/trunk/main.php) (6 diffs)
-
tags/1.1.1/mediaelementjs (copied) (copied from message-flow/trunk/mediaelementjs)
-
tags/1.1.1/readme.txt (copied) (copied from message-flow/trunk/readme.txt) (3 diffs)
-
tags/1.1.1/screenshot-1.png (added)
-
tags/1.1.1/screenshot-2.png (added)
-
trunk/main.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/screenshot-1.png (added)
-
trunk/screenshot-2.png (added)
Legend:
- Unmodified
- Added
- Removed
-
message-flow/tags/1.1.1/main.php
r588075 r588156 4 4 Plugin URI: http://JoeAnzalone.com/plugins/message-flow 5 5 Description: Provides a shortcode that generates a cover flow-like interface for all podcasts in a given category or feed: [message-flow category="11"] 6 Version: 1.1 6 Version: 1.1.1 7 7 Author: Joe Anzalone 8 8 Author URI: http://JoeAnzalone.com … … 11 11 ?> 12 12 <?PHP 13 13 14 14 class shmit_message_flow { 15 15 … … 25 25 foreach($items as $k => $item){ 26 26 27 $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url']; 28 $posts_array[$k]->post_title = $item['child']['']['title'][0]['data']; 29 $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data']; 30 31 $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href']; 27 if(!empty($item['child']['']['enclosure'][0]['attribs']['']['url'])){ 28 $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url']; 29 } 30 31 if(!empty($item['child']['']['title'][0]['data'])){ 32 $posts_array[$k]->post_title = $item['child']['']['title'][0]['data']; 33 } 34 35 if(!empty($item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'])){ 36 $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data']; 37 } 38 39 if(!empty($item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'])){ 40 $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href']; 41 } 32 42 33 43 $posts_array[$k]->ID = $k; … … 95 105 96 106 foreach($posts_array as $post){ 107 if(empty($post->from_external_feed)){ 108 $post->from_external_feed = FALSE; 109 } 97 110 $enclosure = get_post_meta($post->ID, 'enclosure', TRUE); 98 111 if(!empty($post->podcast_episode_url) OR (!$post->from_external_feed && !empty($enclosure))){ … … 110 123 $thumbnail_src = $thumbnail[0]; 111 124 } else { 112 $thumbnail_src = $post->thumbnail; 125 if(!empty($post->thumbnail)){ 126 $thumbnail_src = $post->thumbnail; 127 } else { 128 $thumbnail_src = NULL; 129 } 113 130 } 114 131 … … 145 162 if(!empty($params['download_link_rel'])){ 146 163 $download_link_rel = 'rel="'.$params['download_link_rel'].'" '; 164 } else { 165 $download_link_rel = NULL; 147 166 } 148 167 -
message-flow/tags/1.1.1/readme.txt
r588075 r588156 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Provides a shortcode that generates a cover flow-like interface for posts in a given category: [message-flow category="11"] 11 Message Flow generates a CoverFlow-like interface for your podcast episodes. 12 12 13 13 == Description == 14 14 15 Message Flow provides you with a shortcode you can use on your posts and pages t hat can be used for displaying your posts or external RSS feeds in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/)15 Message Flow provides you with a shortcode you can use on your posts and pages to display your podcasts (either driven by [PowerPress](http://wordpress.org/extend/plugins/powerpress/) or an external RSS feed) in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/). 16 16 17 The thumbnails used int he widget are taken from the posts' featured images.18 If you're using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress' configuration.19 (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php)20 17 21 18 = Usage = 19 Show the ten latest podcast episodes 20 `[message-flow]` 21 22 22 Show the five latest posts from category number 11: 23 23 `[message-flow numberposts="5" category="11"]` … … 26 26 `[message-flow numberposts="3" feed="http://example.com/feed.rss"]` 27 27 28 = Defining the thumbnails (Album Art) = 29 The thumbnails used in the widget are taken from the posts’ featured images. In the event that a podcast does not have a featured image available, Message Flow will check the following locations for a suitable fallback image: 30 31 1. A URL to the fallback image in the shortcode: `[message-flow fallback_image="http://example.com/default_image.png"]` 32 2. If you’re using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress’ configuration. (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php) 33 3. In your theme’s directory. Just make sure it’s 165 pixels square and named "unknown-album_165.png" 34 28 35 == Installation == 29 36 … … 31 38 2. Insert the shortcode into a post or page: `[message-flow numberposts="5" category="11"]` 32 39 40 == Screenshots == 41 1. Simply add the shortcode to your post or page 42 2. The Message Flow widget will be placed wherever you put the shortcode 43 33 44 == Changelog == 45 46 = 1.1.1 = 47 * Fixed WP_DEBUG errors 48 * Added screenshots 49 * Added more usage examples 34 50 35 51 = 1.1 = -
message-flow/trunk/main.php
r588075 r588156 4 4 Plugin URI: http://JoeAnzalone.com/plugins/message-flow 5 5 Description: Provides a shortcode that generates a cover flow-like interface for all podcasts in a given category or feed: [message-flow category="11"] 6 Version: 1.1 6 Version: 1.1.1 7 7 Author: Joe Anzalone 8 8 Author URI: http://JoeAnzalone.com … … 11 11 ?> 12 12 <?PHP 13 13 14 14 class shmit_message_flow { 15 15 … … 25 25 foreach($items as $k => $item){ 26 26 27 $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url']; 28 $posts_array[$k]->post_title = $item['child']['']['title'][0]['data']; 29 $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data']; 30 31 $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href']; 27 if(!empty($item['child']['']['enclosure'][0]['attribs']['']['url'])){ 28 $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url']; 29 } 30 31 if(!empty($item['child']['']['title'][0]['data'])){ 32 $posts_array[$k]->post_title = $item['child']['']['title'][0]['data']; 33 } 34 35 if(!empty($item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'])){ 36 $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data']; 37 } 38 39 if(!empty($item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'])){ 40 $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href']; 41 } 32 42 33 43 $posts_array[$k]->ID = $k; … … 95 105 96 106 foreach($posts_array as $post){ 107 if(empty($post->from_external_feed)){ 108 $post->from_external_feed = FALSE; 109 } 97 110 $enclosure = get_post_meta($post->ID, 'enclosure', TRUE); 98 111 if(!empty($post->podcast_episode_url) OR (!$post->from_external_feed && !empty($enclosure))){ … … 110 123 $thumbnail_src = $thumbnail[0]; 111 124 } else { 112 $thumbnail_src = $post->thumbnail; 125 if(!empty($post->thumbnail)){ 126 $thumbnail_src = $post->thumbnail; 127 } else { 128 $thumbnail_src = NULL; 129 } 113 130 } 114 131 … … 145 162 if(!empty($params['download_link_rel'])){ 146 163 $download_link_rel = 'rel="'.$params['download_link_rel'].'" '; 164 } else { 165 $download_link_rel = NULL; 147 166 } 148 167 -
message-flow/trunk/readme.txt
r588075 r588156 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Provides a shortcode that generates a cover flow-like interface for posts in a given category: [message-flow category="11"] 11 Message Flow generates a CoverFlow-like interface for your podcast episodes. 12 12 13 13 == Description == 14 14 15 Message Flow provides you with a shortcode you can use on your posts and pages t hat can be used for displaying your posts or external RSS feeds in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/)15 Message Flow provides you with a shortcode you can use on your posts and pages to display your podcasts (either driven by [PowerPress](http://wordpress.org/extend/plugins/powerpress/) or an external RSS feed) in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/). 16 16 17 The thumbnails used int he widget are taken from the posts' featured images.18 If you're using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress' configuration.19 (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php)20 17 21 18 = Usage = 19 Show the ten latest podcast episodes 20 `[message-flow]` 21 22 22 Show the five latest posts from category number 11: 23 23 `[message-flow numberposts="5" category="11"]` … … 26 26 `[message-flow numberposts="3" feed="http://example.com/feed.rss"]` 27 27 28 = Defining the thumbnails (Album Art) = 29 The thumbnails used in the widget are taken from the posts’ featured images. In the event that a podcast does not have a featured image available, Message Flow will check the following locations for a suitable fallback image: 30 31 1. A URL to the fallback image in the shortcode: `[message-flow fallback_image="http://example.com/default_image.png"]` 32 2. If you’re using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress’ configuration. (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php) 33 3. In your theme’s directory. Just make sure it’s 165 pixels square and named "unknown-album_165.png" 34 28 35 == Installation == 29 36 … … 31 38 2. Insert the shortcode into a post or page: `[message-flow numberposts="5" category="11"]` 32 39 40 == Screenshots == 41 1. Simply add the shortcode to your post or page 42 2. The Message Flow widget will be placed wherever you put the shortcode 43 33 44 == Changelog == 45 46 = 1.1.1 = 47 * Fixed WP_DEBUG errors 48 * Added screenshots 49 * Added more usage examples 34 50 35 51 = 1.1 =
Note: See TracChangeset
for help on using the changeset viewer.