Changeset 201969
- Timestamp:
- 02/04/2010 09:54:57 PM (16 years ago)
- Location:
- wordcycle
- Files:
-
- 7 added
- 4 edited
-
tags/0.1.5/wordcycle.php (modified) (2 diffs)
-
tags/0.1.6 (added)
-
tags/0.1.6/css (added)
-
tags/0.1.6/css/wordcycle.css (added)
-
tags/0.1.6/js (added)
-
tags/0.1.6/js/jquery.cycle.js (added)
-
tags/0.1.6/readme.txt (added)
-
tags/0.1.6/wordcycle.php (added)
-
trunk/css/wordcycle.css (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wordcycle.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordcycle/tags/0.1.5/wordcycle.php
r185704 r201969 3 3 * @package WordCycle 4 4 * @author Esther S White 5 * @version 0.1. 45 * @version 0.1.5 6 6 */ 7 7 /* … … 10 10 Description: WordCycle is a wrapper for the popular <a href="http://malsup.com/jquery/cycle/">jQuery Cycle Plugin</a> by Mike Alsup. Use the [slideshow] shortcode to insert a Cycle slideshow into your WordPress post or page. 11 11 Author: Esther S White 12 Version: 0.1. 4.112 Version: 0.1.5 13 13 Author URI: http://blog.estherswhite.net 14 14 */ -
wordcycle/trunk/css/wordcycle.css
r119806 r201969 10 10 */ 11 11 12 .wordcycle { margin:0 0 22px 0; }12 .wordcycle { margin:0 0 22px 0; overflow:hidden; } 13 13 .cycle-item { margin:0 22px; } 14 14 .cycle-item img { border: solid 8px #EFEFEF; margin:0 0 9px 0;} 15 .cycle-caption { font-size:80%; background:#EFEFEF; }15 .cycle-caption { font-size:80%; background:#EFEFEF; } -
wordcycle/trunk/readme.txt
r185699 r201969 5 5 Requires at least: 2.5 6 6 Tested up to: 2.9 7 Stable tag: 0.1. 4.17 Stable tag: 0.1.6 8 8 9 9 WordCycle is a WordPress plugin that acts as a wrapper for the popular jQuery Cycle Plugin by Mike Alsup. … … 41 41 == Options & Defaults == 42 42 43 * orderby // slide order by: menu_order ID (default), see list in codex: http://codex.wordpress.org/Template_Tags/get_posts44 * order // slide order: ASC (default), DESC, RAND43 * orderby // slide order by: menu_order ID (default), see list in codex: http://codex.wordpress.org/Template_Tags/get_posts 44 * order // slide order: ASC (default), DESC, RAND 45 45 * id // post id: #, current (default) 46 * link // image link: file, attachment 47 * size // image size: thumbnail, small, medium (default), large, full-size 48 * float // slideshow position: left, right, none (default) 49 * speed // effect speed: slow (default), normal, fast 50 * fx // slideshow effect (view the [jQuery Cycle Plugin Effects Browser][4] for a complete list) 46 * link // image link: file, attachment 47 * size // image size: thumbnail, small, medium (default), large, full-size 48 * include // include image by ID 49 * exclude // exclude image by ID 50 * float // slideshow position: left, right, none (default) 51 * speed // effect speed: slow (default), normal, fast 52 * fx // slideshow effect (view the [jQuery Cycle Plugin Effects Browser][4] for a complete list) 51 53 * timeout // time on each slide: miliseconds: 8000 (default) 52 * pause // pause on mouse-over: 0 (default) or 153 * next // selector of element to use as click trigger for next slide : null (default) or DOM element ID54 * pause // pause on mouse-over: 0 (default) or 1 55 * next // selector of element to use as click trigger for next slide : null (default) or DOM element ID 54 56 * prev // selector of element to use as click trigger for previous slide : null (default) or DOM element ID 55 57 -
wordcycle/trunk/wordcycle.php
r185699 r201969 3 3 * @package WordCycle 4 4 * @author Esther S White 5 * @version 0.1. 45 * @version 0.1.6 6 6 */ 7 7 /* … … 10 10 Description: WordCycle is a wrapper for the popular <a href="http://malsup.com/jquery/cycle/">jQuery Cycle Plugin</a> by Mike Alsup. Use the [slideshow] shortcode to insert a Cycle slideshow into your WordPress post or page. 11 11 Author: Esther S White 12 Version: 0.1. 4.112 Version: 0.1.6 13 13 Author URI: http://blog.estherswhite.net 14 14 */ … … 63 63 'id' => $post->ID, 64 64 'size' => 'medium', 65 'include' => '', 66 'exclude' => '', 65 67 'float' => 'none', 66 68 'speed' => 'slow', … … 72 74 ), $attr)); 73 75 74 return wordcycle_plugin::print_wordcycle($id, $order, $orderby, $size, $ speed, $float, $fx, $timeout, $pause, $next, $prev, $attr['link']);76 return wordcycle_plugin::print_wordcycle($id, $order, $orderby, $size, $include, $exclude, $speed, $float, $fx, $timeout, $pause, $next, $prev, $attr['link']); 75 77 76 78 } // End shortcode_cycle() … … 79 81 Returns WordCycle Slideshow and Footer Script 80 82 =======================*/ 81 function print_wordcycle($id, $order, $orderby, $size, $ speed, $float, $fx, $timeout=NULL, $pause=NULL, $next=NULL, $prev=NULL,$linktype=NULL){83 function print_wordcycle($id, $order, $orderby, $size, $include, $exclude, $speed, $float, $fx, $timeout=NULL, $pause=NULL, $next=NULL, $prev=NULL,$linktype=NULL){ 82 84 83 85 global $post; 84 86 85 87 $id = intval($id); 86 $attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); 88 89 /* Logic for include/exclude options, contributed by Mathew Simo based on Gallery Shortcode /wp-includes/media.php */ 90 if ( !empty($include) ) { 91 $include = preg_replace( '/[^0-9,]+/', '', $include ); 92 $_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); 87 93 94 $attachments = array(); 95 foreach ( $_attachments as $key => $val ) { 96 $attachments[$val->ID] = $_attachments[$key]; 97 } 98 } elseif ( !empty($exclude) ) { 99 $exclude = preg_replace( '/[^0-9,]+/', '', $exclude ); 100 $attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); 101 } else { 102 $attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); 103 } 104 88 105 if ( empty($attachments) ) 89 106 return ''; … … 110 127 prev: '".$prev."' 111 128 }); 112 }) (jQuery);129 }); 113 130 </script> 114 131 <style type='text/css'>
Note: See TracChangeset
for help on using the changeset viewer.