Meteor Slides - Version 1.3.2

Version Description

  • Improved support for multiple slideshows of different sizes
  • Fixed transparent PNG bug
  • Updated functions for WordPress 3.1 compatibility
  • Updated screenshots for WordPress 3.1
  • Updated JQuery Cycle to 2.94
  • Added message filters for slides
  • Added contextual help
  • Added Chinese translation
Download this release

Release Info

Developer jleuze
Plugin Icon 128x128 Meteor Slides
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

css/meteor-slides.css CHANGED
@@ -1,4 +1,4 @@
1
- /* Stylesheet for the Meteor Slides 1.3.1 slideshow
2
 
3
  Copy "meteor-slides.css" from "/meteor-slides/css/" to your theme's directory to replace
4
  the plugin's default stylesheet.
@@ -27,38 +27,33 @@
27
  padding: 0 0 15px 0;
28
  }
29
 
30
- .slides {
31
- margin: 0;
32
- padding: 0;
33
- }
34
-
35
  /* =Slide
36
  -------------------------------------------------------------- */
37
 
38
- #meteor-slideshow .slide {
39
  display: none;
40
  margin: 0;
41
  padding: 0;
42
  }
43
 
44
- #meteor-slideshow #slide-1 {
45
  display: block;
46
  }
47
 
48
- #meteor-slideshow .slide a {
49
  border: 0;
50
  margin: 0;
51
  padding: 0;
52
  }
53
 
54
- #meteor-slideshow .slide img {
55
  border: 0;
56
  display: block;
57
- margin: auto;
58
  padding: 0;
59
  }
60
 
61
- #meteor-slideshow .slide img[src$='.png'] {
62
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */
63
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE7 */
64
  zoom: 1;
@@ -67,17 +62,19 @@
67
  /* =Previous/Next Navigation
68
  -------------------------------------------------------------- */
69
 
70
- #meteor-slideshow ul.meteor-nav {
71
  list-style: none;
72
- margin: 0;
73
  padding: 0;
74
  }
75
 
76
- html > body .meteor-slides ul.meteor-nav {
77
  display: none;
 
 
78
  }
79
 
80
- html > body .meteor-slides:hover ul.meteor-nav {
81
  display: block;
82
  }
83
 
@@ -102,8 +99,13 @@ ul.meteor-nav li {
102
  position: absolute;
103
  text-indent: -9999px;
104
  width: 25px;
 
105
  z-index: 50;
106
  }
 
 
 
 
107
 
108
  .meteor-nav .prev a {
109
  background: url('../images/prev.png') no-repeat center right;
1
+ /* Stylesheet for the Meteor Slides 1.3.2 slideshow
2
 
3
  Copy "meteor-slides.css" from "/meteor-slides/css/" to your theme's directory to replace
4
  the plugin's default stylesheet.
27
  padding: 0 0 15px 0;
28
  }
29
 
 
 
 
 
 
30
  /* =Slide
31
  -------------------------------------------------------------- */
32
 
33
+ .meteor-slides .mslide {
34
  display: none;
35
  margin: 0;
36
  padding: 0;
37
  }
38
 
39
+ .meteor-slides .mslide-1 {
40
  display: block;
41
  }
42
 
43
+ .meteor-slides .mslide a {
44
  border: 0;
45
  margin: 0;
46
  padding: 0;
47
  }
48
 
49
+ .meteor-slides .mslide img {
50
  border: 0;
51
  display: block;
52
+ margin: auto !important;
53
  padding: 0;
54
  }
55
 
56
+ .meteor-slides .mslide img[src$='.png'] {
57
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */
58
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE7 */
59
  zoom: 1;
62
  /* =Previous/Next Navigation
63
  -------------------------------------------------------------- */
64
 
65
+ .meteor-slides ul.meteor-nav {
66
  list-style: none;
67
+ margin-bottom: 0;
68
  padding: 0;
69
  }
70
 
71
+ body .meteor-slides ul.meteor-nav {
72
  display: none;
73
+ *display: block;
74
+ _display: block;
75
  }
76
 
77
+ body .meteor-slides:hover ul.meteor-nav {
78
  display: block;
79
  }
80
 
99
  position: absolute;
100
  text-indent: -9999px;
101
  width: 25px;
102
+ height: 100%;
103
  z-index: 50;
104
  }
105
+
106
+ .navboth .meteor-nav a {
107
+ top: -7px;
108
+ }
109
 
110
  .meteor-nav .prev a {
111
  background: url('../images/prev.png') no-repeat center right;
js/jquery.cycle.all.js CHANGED
@@ -2,14 +2,14 @@
2
  * jQuery Cycle Plugin (with Transition Definitions)
3
  * Examples and documentation at: http://jquery.malsup.com/cycle/
4
  * Copyright (c) 2007-2010 M. Alsup
5
- * Version: 2.88 (08-JUN-2010)
6
  * Dual licensed under the MIT and GPL licenses.
7
  * http://jquery.malsup.com/license.html
8
  * Requires: jQuery v1.2.6 or later
9
  */
10
  ;(function($) {
11
 
12
- var ver = '2.88';
13
 
14
  // if $.support is not defined (pre jQuery 1.3) add what I need
15
  if ($.support == undefined) {
@@ -79,7 +79,7 @@ $.fn.cycle = function(options, arg2) {
79
  if (opts2 === false)
80
  return;
81
 
82
- var startTime = opts2.continuous ? 10 : getTimeout(els[opts2.currSlide], els[opts2.nextSlide], opts2, !opts2.rev);
83
 
84
  // if it's an auto slideshow, kick it off
85
  if (startTime) {
@@ -87,7 +87,7 @@ $.fn.cycle = function(options, arg2) {
87
  if (startTime < 10)
88
  startTime = 10;
89
  debug('first timeout: ' + startTime);
90
- this.cycleTimeout = setTimeout(function(){go(els,opts2,0,(!opts2.rev && !opts.backwards))}, startTime);
91
  }
92
  });
93
  };
@@ -173,7 +173,7 @@ function handleArguments(cont, options, arg2) {
173
  clearTimeout(cont.cycleTimeout);
174
  cont.cycleTimeout = 0;
175
  }
176
- go(options.elements, options, 1, (!opts.rev && !opts.backwards));
177
  }
178
  }
179
  };
@@ -221,7 +221,7 @@ function buildOptions($cont, $slides, els, options, o) {
221
  if (!$.support.opacity && opts.cleartype)
222
  opts.after.push(function() { removeFilter(this, opts); });
223
  if (opts.continuous)
224
- opts.after.push(function() { go(els,opts,0,(!opts.rev && !opts.backwards)); });
225
 
226
  saveOriginalOpts(opts);
227
 
@@ -392,9 +392,9 @@ function buildOptions($cont, $slides, els, options, o) {
392
  opts.after[1].apply(e0, [e0, e0, opts, true]);
393
 
394
  if (opts.next)
395
- $(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1)});
396
  if (opts.prev)
397
- $(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1)});
398
  if (opts.pager || opts.pagerAnchorBuilder)
399
  buildPager(els,opts);
400
 
@@ -482,7 +482,7 @@ function exposeAddSlide(opts, els) {
482
  if (opts.fit && opts.width)
483
  $s.width(opts.width);
484
  if (opts.fit && opts.height && opts.height != 'auto')
485
- $slides.height(opts.height);
486
  s.cycleH = (opts.fit && opts.height) ? opts.height : $s.height();
487
  s.cycleW = (opts.fit && opts.width) ? opts.width : $s.width();
488
 
@@ -646,7 +646,7 @@ function go(els, opts, manual, fwd) {
646
  else if (opts.continuous && p.cyclePause) // continuous shows work off an after callback, not this timer logic
647
  ms = 10;
648
  if (ms > 0)
649
- p.cycleTimeout = setTimeout(function(){ go(els, opts, 0, (!opts.rev && !opts.backwards)) }, ms);
650
  };
651
 
652
  // invoked after transition
@@ -671,11 +671,12 @@ function getTimeout(curr, next, opts, fwd) {
671
  };
672
 
673
  // expose next/prev function, caller must pass in state
674
- $.fn.cycle.next = function(opts) { advance(opts, opts.rev?-1:1); };
675
- $.fn.cycle.prev = function(opts) { advance(opts, opts.rev?1:-1);};
676
 
677
  // advance slide forward or back
678
- function advance(opts, val) {
 
679
  var els = opts.elements;
680
  var p = opts.$cont[0], timeout = p.cycleTimeout;
681
  if (timeout) {
@@ -709,7 +710,7 @@ function advance(opts, val) {
709
  var cb = opts.onPrevNextEvent || opts.prevNextClick; // prevNextClick is deprecated
710
  if ($.isFunction(cb))
711
  cb(val > 0, opts.nextSlide, els[opts.nextSlide]);
712
- go(els, opts, 1, val>=0);
713
  return false;
714
  };
715
 
@@ -811,9 +812,9 @@ $.fn.cycle.commonReset = function(curr,next,opts,w,h,rev) {
811
  $(opts.elements).not(curr).hide();
812
  opts.cssBefore.opacity = 1;
813
  opts.cssBefore.display = 'block';
814
- if (w !== false && next.cycleW > 0)
815
  opts.cssBefore.width = next.cycleW;
816
- if (h !== false && next.cycleH > 0)
817
  opts.cssBefore.height = next.cycleH;
818
  opts.cssAfter = opts.cssAfter || {};
819
  opts.cssAfter.display = 'none';
@@ -895,6 +896,7 @@ $.fn.cycle.defaults = {
895
  random: 0, // true for random, false for sequence (not applicable to shuffle fx)
896
  fit: 0, // force slides to fit container
897
  containerResize: 1, // resize container to fit largest slide
 
898
  pause: 0, // true to enable "pause on hover"
899
  pauseOnPagerHover: 0, // true to pause when hovering over pager link
900
  autostop: 0, // true to end slideshow after X transitions (where X == slide count)
@@ -906,7 +908,7 @@ $.fn.cycle.defaults = {
906
  nowrap: 0, // true to prevent slideshow from wrapping
907
  fastOnEvent: 0, // force fast transitions when triggered manually (via pager or prev/next); value == time in ms
908
  randomizeEffects: 1, // valid when multiple effects are used; true to make the effect sequence random
909
- rev: 0, // causes animations to transition in reverse
910
  manualTrump: true, // causes manual transition to stop an active transition instead of being ignored
911
  requeueOnImageNotLoaded: true, // requeue the slideshow if any image slides are not yet loaded
912
  requeueTimeout: 250, // ms delay for requeue
@@ -923,7 +925,7 @@ $.fn.cycle.defaults = {
923
  * This script is a plugin for the jQuery Cycle Plugin
924
  * Examples and documentation at: http://malsup.com/jquery/cycle/
925
  * Copyright (c) 2007-2010 M. Alsup
926
- * Version: 2.72
927
  * Dual licensed under the MIT and GPL licenses:
928
  * http://www.opensource.org/licenses/mit-license.php
929
  * http://www.gnu.org/licenses/gpl.html
@@ -942,6 +944,18 @@ $.fn.cycle.transitions.none = function($cont, $slides, opts) {
942
  after();
943
  };
944
  }
 
 
 
 
 
 
 
 
 
 
 
 
945
 
946
  // scrollUp/Down/Left/Right
947
  $.fn.cycle.transitions.scrollUp = function($cont, $slides, opts) {
@@ -983,6 +997,8 @@ $.fn.cycle.transitions.scrollRight = function($cont, $slides, opts) {
983
  $.fn.cycle.transitions.scrollHorz = function($cont, $slides, opts) {
984
  $cont.css('overflow','hidden').width();
985
  opts.before.push(function(curr, next, opts, fwd) {
 
 
986
  $.fn.cycle.commonReset(curr,next,opts);
987
  opts.cssBefore.left = fwd ? (next.cycleW-1) : (1-next.cycleW);
988
  opts.animOut.left = fwd ? -curr.cycleW : curr.cycleW;
@@ -995,6 +1011,8 @@ $.fn.cycle.transitions.scrollHorz = function($cont, $slides, opts) {
995
  $.fn.cycle.transitions.scrollVert = function($cont, $slides, opts) {
996
  $cont.css('overflow','hidden');
997
  opts.before.push(function(curr, next, opts, fwd) {
 
 
998
  $.fn.cycle.commonReset(curr,next,opts);
999
  opts.cssBefore.top = fwd ? (1-next.cycleH) : (next.cycleH-1);
1000
  opts.animOut.top = fwd ? curr.cycleH : -curr.cycleH;
@@ -1050,6 +1068,8 @@ $.fn.cycle.transitions.shuffle = function($cont, $slides, opts) {
1050
 
1051
  // custom transition fn (hat tip to Benjamin Sterling for this bit of sweetness!)
1052
  opts.fxFn = function(curr, next, opts, cb, fwd) {
 
 
1053
  var $el = fwd ? $(curr) : $(next);
1054
  $(next).css(opts.cssBefore);
1055
  var count = opts.slideCount;
@@ -1080,6 +1100,7 @@ $.fn.cycle.transitions.turnUp = function($cont, $slides, opts) {
1080
  $.fn.cycle.commonReset(curr,next,opts,true,false);
1081
  opts.cssBefore.top = next.cycleH;
1082
  opts.animIn.height = next.cycleH;
 
1083
  });
1084
  opts.cssFirst = { top: 0 };
1085
  opts.cssBefore = { left: 0, height: 0 };
2
  * jQuery Cycle Plugin (with Transition Definitions)
3
  * Examples and documentation at: http://jquery.malsup.com/cycle/
4
  * Copyright (c) 2007-2010 M. Alsup
5
+ * Version: 2.94 (20-DEC-2010)
6
  * Dual licensed under the MIT and GPL licenses.
7
  * http://jquery.malsup.com/license.html
8
  * Requires: jQuery v1.2.6 or later
9
  */
10
  ;(function($) {
11
 
12
+ var ver = '2.94';
13
 
14
  // if $.support is not defined (pre jQuery 1.3) add what I need
15
  if ($.support == undefined) {
79
  if (opts2 === false)
80
  return;
81
 
82
+ var startTime = opts2.continuous ? 10 : getTimeout(els[opts2.currSlide], els[opts2.nextSlide], opts2, !opts2.backwards);
83
 
84
  // if it's an auto slideshow, kick it off
85
  if (startTime) {
87
  if (startTime < 10)
88
  startTime = 10;
89
  debug('first timeout: ' + startTime);
90
+ this.cycleTimeout = setTimeout(function(){go(els,opts2,0,!opts.backwards)}, startTime);
91
  }
92
  });
93
  };
173
  clearTimeout(cont.cycleTimeout);
174
  cont.cycleTimeout = 0;
175
  }
176
+ go(options.elements, options, 1, !options.backwards);
177
  }
178
  }
179
  };
221
  if (!$.support.opacity && opts.cleartype)
222
  opts.after.push(function() { removeFilter(this, opts); });
223
  if (opts.continuous)
224
+ opts.after.push(function() { go(els,opts,0,!opts.backwards); });
225
 
226
  saveOriginalOpts(opts);
227
 
392
  opts.after[1].apply(e0, [e0, e0, opts, true]);
393
 
394
  if (opts.next)
395
+ $(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1)});
396
  if (opts.prev)
397
+ $(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0)});
398
  if (opts.pager || opts.pagerAnchorBuilder)
399
  buildPager(els,opts);
400
 
482
  if (opts.fit && opts.width)
483
  $s.width(opts.width);
484
  if (opts.fit && opts.height && opts.height != 'auto')
485
+ $s.height(opts.height);
486
  s.cycleH = (opts.fit && opts.height) ? opts.height : $s.height();
487
  s.cycleW = (opts.fit && opts.width) ? opts.width : $s.width();
488
 
646
  else if (opts.continuous && p.cyclePause) // continuous shows work off an after callback, not this timer logic
647
  ms = 10;
648
  if (ms > 0)
649
+ p.cycleTimeout = setTimeout(function(){ go(els, opts, 0, !opts.backwards) }, ms);
650
  };
651
 
652
  // invoked after transition
671
  };
672
 
673
  // expose next/prev function, caller must pass in state
674
+ $.fn.cycle.next = function(opts) { advance(opts,1); };
675
+ $.fn.cycle.prev = function(opts) { advance(opts,0);};
676
 
677
  // advance slide forward or back
678
+ function advance(opts, moveForward) {
679
+ var val = moveForward ? 1 : -1;
680
  var els = opts.elements;
681
  var p = opts.$cont[0], timeout = p.cycleTimeout;
682
  if (timeout) {
710
  var cb = opts.onPrevNextEvent || opts.prevNextClick; // prevNextClick is deprecated
711
  if ($.isFunction(cb))
712
  cb(val > 0, opts.nextSlide, els[opts.nextSlide]);
713
+ go(els, opts, 1, moveForward);
714
  return false;
715
  };
716
 
812
  $(opts.elements).not(curr).hide();
813
  opts.cssBefore.opacity = 1;
814
  opts.cssBefore.display = 'block';
815
+ if (opts.slideResize && w !== false && next.cycleW > 0)
816
  opts.cssBefore.width = next.cycleW;
817
+ if (opts.slideResize && h !== false && next.cycleH > 0)
818
  opts.cssBefore.height = next.cycleH;
819
  opts.cssAfter = opts.cssAfter || {};
820
  opts.cssAfter.display = 'none';
896
  random: 0, // true for random, false for sequence (not applicable to shuffle fx)
897
  fit: 0, // force slides to fit container
898
  containerResize: 1, // resize container to fit largest slide
899
+ slideResize: 1, // force slide width/height to fixed size before every transition
900
  pause: 0, // true to enable "pause on hover"
901
  pauseOnPagerHover: 0, // true to pause when hovering over pager link
902
  autostop: 0, // true to end slideshow after X transitions (where X == slide count)
908
  nowrap: 0, // true to prevent slideshow from wrapping
909
  fastOnEvent: 0, // force fast transitions when triggered manually (via pager or prev/next); value == time in ms
910
  randomizeEffects: 1, // valid when multiple effects are used; true to make the effect sequence random
911
+ rev: 0, // causes animations to transition in reverse (for effects that support it such as scrollHorz/scrollVert/shuffle)
912
  manualTrump: true, // causes manual transition to stop an active transition instead of being ignored
913
  requeueOnImageNotLoaded: true, // requeue the slideshow if any image slides are not yet loaded
914
  requeueTimeout: 250, // ms delay for requeue
925
  * This script is a plugin for the jQuery Cycle Plugin
926
  * Examples and documentation at: http://malsup.com/jquery/cycle/
927
  * Copyright (c) 2007-2010 M. Alsup
928
+ * Version: 2.73
929
  * Dual licensed under the MIT and GPL licenses:
930
  * http://www.opensource.org/licenses/mit-license.php
931
  * http://www.gnu.org/licenses/gpl.html
944
  after();
945
  };
946
  }
947
+ // not a cross-fade, fadeout only fades out the top slide
948
+ $.fn.cycle.transitions.fadeout = function($cont, $slides, opts) {
949
+ $slides.not(':eq('+opts.currSlide+')').css({ display: 'block', 'opacity': 1 });
950
+ opts.before.push(function(curr,next,opts,w,h,rev) {
951
+ $(curr).css('zIndex',opts.slideCount + (!rev === true ? 1 : 0));
952
+ $(next).css('zIndex',opts.slideCount + (!rev === true ? 0 : 1));
953
+ });
954
+ opts.animIn = { opacity: 1 };
955
+ opts.animOut = { opacity: 0 };
956
+ opts.cssBefore = { opacity: 1, display: 'block' };
957
+ opts.cssAfter = { zIndex: 0 };
958
+ };
959
 
960
  // scrollUp/Down/Left/Right
961
  $.fn.cycle.transitions.scrollUp = function($cont, $slides, opts) {
997
  $.fn.cycle.transitions.scrollHorz = function($cont, $slides, opts) {
998
  $cont.css('overflow','hidden').width();
999
  opts.before.push(function(curr, next, opts, fwd) {
1000
+ if (opts.rev)
1001
+ fwd = !fwd;
1002
  $.fn.cycle.commonReset(curr,next,opts);
1003
  opts.cssBefore.left = fwd ? (next.cycleW-1) : (1-next.cycleW);
1004
  opts.animOut.left = fwd ? -curr.cycleW : curr.cycleW;
1011
  $.fn.cycle.transitions.scrollVert = function($cont, $slides, opts) {
1012
  $cont.css('overflow','hidden');
1013
  opts.before.push(function(curr, next, opts, fwd) {
1014
+ if (opts.rev)
1015
+ fwd = !fwd;
1016
  $.fn.cycle.commonReset(curr,next,opts);
1017
  opts.cssBefore.top = fwd ? (1-next.cycleH) : (next.cycleH-1);
1018
  opts.animOut.top = fwd ? curr.cycleH : -curr.cycleH;
1068
 
1069
  // custom transition fn (hat tip to Benjamin Sterling for this bit of sweetness!)
1070
  opts.fxFn = function(curr, next, opts, cb, fwd) {
1071
+ if (opts.rev)
1072
+ fwd = !fwd;
1073
  var $el = fwd ? $(curr) : $(next);
1074
  $(next).css(opts.cssBefore);
1075
  var count = opts.slideCount;
1100
  $.fn.cycle.commonReset(curr,next,opts,true,false);
1101
  opts.cssBefore.top = next.cycleH;
1102
  opts.animIn.height = next.cycleH;
1103
+ opts.animOut.width = next.cycleW;
1104
  });
1105
  opts.cssFirst = { top: 0 };
1106
  opts.cssBefore = { left: 0, height: 0 };
js/jquery.metadata.v2.js CHANGED
@@ -1 +1,148 @@
1
- /*
2
  * Metadata - jQuery plugin for parsing metadata from elements
3
  *
4
  * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
5
  *
6
  * Dual licensed under the MIT and GPL licenses:
7
  * http://www.opensource.org/licenses/mit-license.php
8
  * http://www.gnu.org/licenses/gpl.html
9
  *
10
  * Revision: $Id$
11
  *
12
  */
13
  * Sets the type of metadata to use. Metadata is encoded in JSON, and each property
14
  * in the JSON will become a property of the element itself.
15
  *
16
  * There are three supported types of metadata storage:
17
  *
18
  * attr: Inside an attribute. The name parameter indicates *which* attribute.
19
  *
20
  * class: Inside the class attribute, wrapped in curly braces: { }
21
  *
22
  * elem: Inside a child element (e.g. a script tag). The
23
  * name parameter indicates *which* element.
24
  *
25
  * The metadata for an element is loaded the first time the element is accessed via jQuery.
26
  *
27
  * As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
28
  * matched by expr, then redefine the metadata type and run another $(expr) for other elements.
29
  *
30
  * @name $.metadata.setType
31
  *
32
  * @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
33
  * @before $.metadata.setType("class")
34
  * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
35
  * @desc Reads metadata from the class attribute
36
  *
37
  * @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
38
  * @before $.metadata.setType("attr", "data")
39
  * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
40
  * @desc Reads metadata from a "data" attribute
41
  *
42
  * @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
43
  * @before $.metadata.setType("elem", "script")
44
  * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
45
  * @desc Reads metadata from a nested script element
46
  *
47
  * @param String type The encoding type
48
  * @param String name The name of the attribute to be used to get metadata (optional)
49
  * @cat Plugins/Metadata
50
  * @descr Sets the type of encoding to be used when loading metadata for the first time
51
  * @type undefined
52
  * @see metadata()
53
  */
54
  * Returns the metadata object for the first member of the jQuery object.
55
  *
56
  * @name metadata
57
  * @descr Returns element's metadata object
58
  * @param Object opts An object contianing settings to override the defaults
59
  * @type jQuery
60
  * @cat Plugins/Metadata
61
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  * Metadata - jQuery plugin for parsing metadata from elements
2
  *
3
  * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
4
  *
5
  * Dual licensed under the MIT and GPL licenses:
6
  * http://www.opensource.org/licenses/mit-license.php
7
  * http://www.gnu.org/licenses/gpl.html
8
  *
9
  * Revision: $Id$
10
  *
11
  */
12
  * Sets the type of metadata to use. Metadata is encoded in JSON, and each property
13
  * in the JSON will become a property of the element itself.
14
  *
15
  * There are three supported types of metadata storage:
16
  *
17
  * attr: Inside an attribute. The name parameter indicates *which* attribute.
18
  *
19
  * class: Inside the class attribute, wrapped in curly braces: { }
20
  *
21
  * elem: Inside a child element (e.g. a script tag). The
22
  * name parameter indicates *which* element.
23
  *
24
  * The metadata for an element is loaded the first time the element is accessed via jQuery.
25
  *
26
  * As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
27
  * matched by expr, then redefine the metadata type and run another $(expr) for other elements.
28
  *
29
  * @name $.metadata.setType
30
  *
31
  * @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
32
  * @before $.metadata.setType("class")
33
  * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
34
  * @desc Reads metadata from the class attribute
35
  *
36
  * @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
37
  * @before $.metadata.setType("attr", "data")
38
  * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
39
  * @desc Reads metadata from a "data" attribute
40
  *
41
  * @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
42
  * @before $.metadata.setType("elem", "script")
43
  * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
44
  * @desc Reads metadata from a nested script element
45
  *
46
  * @param String type The encoding type
47
  * @param String name The name of the attribute to be used to get metadata (optional)
48
  * @cat Plugins/Metadata
49
  * @descr Sets the type of encoding to be used when loading metadata for the first time
50
  * @type undefined
51
  * @see metadata()
52
  */
53
  * Returns the metadata object for the first member of the jQuery object.
54
  *
55
  * @name metadata
56
  * @descr Returns element's metadata object
57
  * @param Object opts An object contianing settings to override the defaults
58
  * @type jQuery
59
  * @cat Plugins/Metadata
60
  */
61
+ /*
62
+ * Metadata - jQuery plugin for parsing metadata from elements
63
+ *
64
+ * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
65
+ *
66
+ * Dual licensed under the MIT and GPL licenses:
67
+ * http://www.opensource.org/licenses/mit-license.php
68
+ * http://www.gnu.org/licenses/gpl.html
69
+ *
70
+ * Revision: $Id: jquery.metadata.js 3640 2007-10-11 18:34:38Z pmclanahan $
71
+ *
72
+ */
73
+
74
+ /**
75
+ * Sets the type of metadata to use. Metadata is encoded in JSON, and each property
76
+ * in the JSON will become a property of the element itself.
77
+ *
78
+ * There are four supported types of metadata storage:
79
+ *
80
+ * attr: Inside an attribute. The name parameter indicates *which* attribute.
81
+ *
82
+ * class: Inside the class attribute, wrapped in curly braces: { }
83
+ *
84
+ * elem: Inside a child element (e.g. a script tag). The
85
+ * name parameter indicates *which* element.
86
+ * html5: Values are stored in data-* attributes.
87
+ *
88
+ * The metadata for an element is loaded the first time the element is accessed via jQuery.
89
+ *
90
+ * As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
91
+ * matched by expr, then redefine the metadata type and run another $(expr) for other elements.
92
+ *
93
+ * @name $.metadata.setType
94
+ *
95
+ * @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
96
+ * @before $.metadata.setType("class")
97
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
98
+ * @desc Reads metadata from the class attribute
99
+ *
100
+ * @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
101
+ * @before $.metadata.setType("attr", "data")
102
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
103
+ * @desc Reads metadata from a "data" attribute
104
+ *
105
+ * @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
106
+ * @before $.metadata.setType("elem", "script")
107
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
108
+ * @desc Reads metadata from a nested script element
109
+ *
110
+ * @example <p id="one" class="some_class" data-item_id="1" data-item_label="Label">This is a p</p>
111
+ * @before $.metadata.setType("html5")
112
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
113
+ * @desc Reads metadata from a series of data-* attributes
114
+ *
115
+ * @param String type The encoding type
116
+ * @param String name The name of the attribute to be used to get metadata (optional)
117
+ * @cat Plugins/Metadata
118
+ * @descr Sets the type of encoding to be used when loading metadata for the first time
119
+ * @type undefined
120
+ * @see metadata()
121
+ */
122
+
123
+ (function($) {
124
+
125
+ $.extend({
126
+ metadata : {
127
+ defaults : {
128
+ type: 'class',
129
+ name: 'metadata',
130
+ cre: /({.*})/,
131
+ single: 'metadata'
132
+ },
133
+ setType: function( type, name ){
134
+ this.defaults.type = type;
135
+ this.defaults.name = name;
136
+ },
137
+ get: function( elem, opts ){
138
+ var settings = $.extend({},this.defaults,opts);
139
+ // check for empty string in single property
140
+ if ( !settings.single.length ) settings.single = 'metadata';
141
+
142
+ var data = $.data(elem, settings.single);
143
+ // returned cached data if it already exists
144
+ if ( data ) return data;
145
+
146
+ data = "{}";
147
+
148
+ var getData = function(data) {
149
+ if(typeof data != "string") return data;
150
+
151
+ if( data.indexOf('{') < 0 ) {
152
+ data = eval("(" + data + ")");
153
+ }
154
+ }
155
+
156
+ var getObject = function(data) {
157
+ if(typeof data != "string") return data;
158
+
159
+ data = eval("(" + data + ")");
160
+ return data;
161
+ }
162
+
163
+ if ( settings.type == "html5" ) {
164
+ var object = {};
165
+ $( elem.attributes ).each(function() {
166
+ var name = this.nodeName;
167
+ if(name.match(/^data-/)) name = name.replace(/^data-/, '');
168
+ else return true;
169
+ object[name] = getObject(this.nodeValue);
170
+ });
171
+ } else {
172
+ if ( settings.type == "class" ) {
173
+ var m = settings.cre.exec( elem.className );
174
+ if ( m )
175
+ data = m[1];
176
+ } else if ( settings.type == "elem" ) {
177
+ if( !elem.getElementsByTagName ) return;
178
+ var e = elem.getElementsByTagName(settings.name);
179
+ if ( e.length )
180
+ data = $.trim(e[0].innerHTML);
181
+ } else if ( elem.getAttribute != undefined ) {
182
+ var attr = elem.getAttribute( settings.name );
183
+ if ( attr )
184
+ data = attr;
185
+ }
186
+ object = getObject(data.indexOf("{") < 0 ? "{" + data + "}" : data);
187
+ }
188
+
189
+ $.data( elem, settings.single, object );
190
+ return object;
191
+ }
192
+ }
193
+ });
194
+
195
+ /**
196
+ * Returns the metadata object for the first member of the jQuery object.
197
+ *
198
+ * @name metadata
199
+ * @descr Returns element's metadata object
200
+ * @param Object opts An object contianing settings to override the defaults
201
+ * @type jQuery
202
+ * @cat Plugins/Metadata
203
+ */
204
+ $.fn.metadata = function( opts ){
205
+ return $.metadata.get( this[0], opts );
206
+ };
207
+
208
+ })(jQuery);
js/slideshow.js CHANGED
@@ -14,13 +14,7 @@ var $slidetransition = meteorslidessettings.meteorslideshowtransition;
14
 
15
  $j(document).ready(function() {
16
 
17
- $j('.meteor-slides,.slides,.meteor-nav a').css('height', $slideheight);
18
-
19
- $j('.meteor-slides,.slide,.meteor-nav').css('width', $slidewidth);
20
-
21
- $j('.slides').css('overflow', 'visible');
22
-
23
- $j('.slides').cycle({
24
 
25
  height: $slideheight,
26
  width: $slidewidth,
@@ -33,7 +27,8 @@ $j(document).ready(function() {
33
  next: '#meteor-next',
34
  pager: '#meteor-buttons',
35
  pagerEvent: 'click',
36
- cleartypeNoBg: 'true'
 
37
 
38
  });
39
 
14
 
15
  $j(document).ready(function() {
16
 
17
+ $j('.meteor-slides').cycle({
 
 
 
 
 
 
18
 
19
  height: $slideheight,
20
  width: $slidewidth,
27
  next: '#meteor-next',
28
  pager: '#meteor-buttons',
29
  pagerEvent: 'click',
30
+ cleartypeNoBg: 'true',
31
+ slideExpr: '.mslide'
32
 
33
  });
34
 
languages/meteor-slides-zh_CN.mo ADDED
Binary file
languages/meteor-slides-zh_CN.po ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2010
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: Meteor Slides 1.3\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/meteor-slides\n"
10
+ "POT-Creation-Date: 2010-10-13 16:51+0000\n"
11
+ "PO-Revision-Date: 2011-01-30 15:45+0800\n"
12
+ "Last-Translator: Yu Haoran <yuhaoran@iduer.com>\n"
13
+ "Language-Team: JLeuze <mail@jleuze.com>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-KeywordsList: __;_e\n"
18
+ "X-Poedit-Basepath: .\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #: meteor-slides-plugin.php:78
22
+ msgid "Slides"
23
+ msgstr "幻灯片"
24
+
25
+ #: meteor-slides-plugin.php:79
26
+ msgid "Slide"
27
+ msgstr "幻灯片"
28
+
29
+ #: meteor-slides-plugin.php:80
30
+ msgid "Add New"
31
+ msgstr "添加"
32
+
33
+ #: meteor-slides-plugin.php:81
34
+ msgid "Add New Slide"
35
+ msgstr "添加幻灯片"
36
+
37
+ #: meteor-slides-plugin.php:82
38
+ msgid "Edit Slide"
39
+ msgstr "编辑幻灯片"
40
+
41
+ #: meteor-slides-plugin.php:83
42
+ msgid "Edit"
43
+ msgstr "编辑"
44
+
45
+ #: meteor-slides-plugin.php:84
46
+ msgid "New Slide"
47
+ msgstr "新幻灯片"
48
+
49
+ #: meteor-slides-plugin.php:85
50
+ #: meteor-slides-plugin.php:89
51
+ msgid "View Slide"
52
+ msgstr "查看幻灯片"
53
+
54
+ #: meteor-slides-plugin.php:86
55
+ msgid "Search Slides"
56
+ msgstr "幻灯片搜索"
57
+
58
+ #: meteor-slides-plugin.php:87
59
+ msgid "No slides found"
60
+ msgstr "没找到幻灯片"
61
+
62
+ #: meteor-slides-plugin.php:88
63
+ msgid "No slides found in Trash"
64
+ msgstr "在回收站中没有幻灯片"
65
+
66
+ #: meteor-slides-plugin.php:127
67
+ msgid "Slideshows"
68
+ msgstr "幻灯片集"
69
+
70
+ #: meteor-slides-plugin.php:128
71
+ msgid "Slideshow"
72
+ msgstr "幻灯片集"
73
+
74
+ #: meteor-slides-plugin.php:129
75
+ msgid "Search Slideshows"
76
+ msgstr "查找幻灯片集"
77
+
78
+ #: meteor-slides-plugin.php:130
79
+ msgid "Popular Slideshows"
80
+ msgstr "热门幻灯片集"
81
+
82
+ #: meteor-slides-plugin.php:131
83
+ msgid "All Slideshows"
84
+ msgstr "全部幻灯片集"
85
+
86
+ #: meteor-slides-plugin.php:132
87
+ msgid "Parent Slideshow"
88
+ msgstr "母幻灯片集"
89
+
90
+ #: meteor-slides-plugin.php:133
91
+ msgid "Parent Slideshow:"
92
+ msgstr "母幻灯片集:"
93
+
94
+ #: meteor-slides-plugin.php:134
95
+ msgid "Edit Slideshow"
96
+ msgstr "编辑幻灯片集"
97
+
98
+ #: meteor-slides-plugin.php:135
99
+ msgid "Update Slideshow"
100
+ msgstr "更新幻灯片集"
101
+
102
+ #: meteor-slides-plugin.php:136
103
+ msgid "Add New Slideshow"
104
+ msgstr "添加新的幻灯片集"
105
+
106
+ #: meteor-slides-plugin.php:137
107
+ msgid "New Slideshow Name"
108
+ msgstr "新的幻灯片集名称"
109
+
110
+ #: meteor-slides-plugin.php:159
111
+ msgid "Slide Image"
112
+ msgstr "幻灯片图片"
113
+
114
+ #: meteor-slides-plugin.php:194
115
+ msgid "Add the URL this slide should link to."
116
+ msgstr "对这个幻灯片添加链接"
117
+
118
+ #: meteor-slides-plugin.php:206
119
+ msgid "Slide Link"
120
+ msgstr "幻灯片链接"
121
+
122
+ #: meteor-slides-plugin.php:324
123
+ msgid "Slides Settings"
124
+ msgstr "幻灯片设置"
125
+
126
+ #: meteor-slides-plugin.php:324
127
+ msgid "Settings"
128
+ msgstr "设置"
129
+
130
+ #: meteor-slides-plugin.php:358
131
+ msgid "Configure Slideshow"
132
+ msgstr "设置幻灯片集"
133
+
134
+ #: meteor-slides-plugin.php:360
135
+ msgid "Slideshow Quantity"
136
+ msgstr "幻灯片质量"
137
+
138
+ #: meteor-slides-plugin.php:362
139
+ msgid "Slide Height"
140
+ msgstr "幻灯片高度"
141
+
142
+ #: meteor-slides-plugin.php:364
143
+ msgid "Slide Width"
144
+ msgstr "幻灯片宽度"
145
+
146
+ #: meteor-slides-plugin.php:366
147
+ msgid "Transition Style"
148
+ msgstr "交替风格"
149
+
150
+ #: meteor-slides-plugin.php:368
151
+ msgid "Transition Speed"
152
+ msgstr "交替速度"
153
+
154
+ #: meteor-slides-plugin.php:370
155
+ msgid "Slide Duration"
156
+ msgstr "交替时长"
157
+
158
+ #: meteor-slides-plugin.php:372
159
+ msgid "Slideshow Navigation"
160
+ msgstr "幻灯片集移动"
161
+
162
+ #: meteor-slides-plugin.php:605
163
+ msgid "Add a slideshow widget to a sidebar"
164
+ msgstr "把一个新的幻灯片集加到侧边栏"
165
+
166
+ #: meteor-slides-plugin.php:609
167
+ msgid "Meteor Slides Widget"
168
+ msgstr "去除侧边栏幻灯片集"
169
+
170
+ #: meteor-slides-plugin.php:653
171
+ msgid "Title:"
172
+ msgstr "标题:"
173
+
174
+ #: meteor-slides-plugin.php:656
175
+ msgid "Slideshow:"
176
+ msgstr "幻灯片集:"
177
+
178
+ #: meteor-slides-plugin.php:659
179
+ msgid "Metadata:"
180
+ msgstr "编注:"
181
+
182
+ #: meteor-slides-settings.php:7
183
+ msgid "Set up your slideshow using the options below."
184
+ msgstr "对你的幻灯片集运用一下的设置。"
185
+
186
+ #: meteor-slides-settings.php:21
187
+ #: meteor-slides-settings.php:31
188
+ msgid "px"
189
+ msgstr "px"
190
+
191
+ #: meteor-slides-settings.php:41
192
+ msgid "blindX"
193
+ msgstr "黑过场A"
194
+
195
+ #: meteor-slides-settings.php:41
196
+ msgid "blindY"
197
+ msgstr "黑过场B"
198
+
199
+ #: meteor-slides-settings.php:41
200
+ msgid "blindZ"
201
+ msgstr "黑过场C"
202
+
203
+ #: meteor-slides-settings.php:41
204
+ msgid "cover"
205
+ msgstr "覆盖封面"
206
+
207
+ #: meteor-slides-settings.php:41
208
+ msgid "curtainX"
209
+ msgstr "横向百叶窗"
210
+
211
+ #: meteor-slides-settings.php:41
212
+ msgid "curtainY"
213
+ msgstr "纵向百叶窗"
214
+
215
+ #: meteor-slides-settings.php:41
216
+ msgid "fade"
217
+ msgstr "淡入"
218
+
219
+ #: meteor-slides-settings.php:41
220
+ msgid "fadeZoom"
221
+ msgstr "淡入距离"
222
+
223
+ #: meteor-slides-settings.php:41
224
+ msgid "growX"
225
+ msgstr "横向发光"
226
+
227
+ #: meteor-slides-settings.php:41
228
+ msgid "growY"
229
+ msgstr "纵向发光"
230
+
231
+ #: meteor-slides-settings.php:41
232
+ msgid "none"
233
+ msgstr "无"
234
+
235
+ #: meteor-slides-settings.php:41
236
+ msgid "scrollUp"
237
+ msgstr "向上滚动"
238
+
239
+ #: meteor-slides-settings.php:41
240
+ msgid "scrollDown"
241
+ msgstr "向下滚动"
242
+
243
+ #: meteor-slides-settings.php:41
244
+ msgid "scrollLeft"
245
+ msgstr "向左滚动"
246
+
247
+ #: meteor-slides-settings.php:41
248
+ msgid "scrollRight"
249
+ msgstr "向右滚动"
250
+
251
+ #: meteor-slides-settings.php:41
252
+ msgid "scrollHorz"
253
+ msgstr "横基线滚动"
254
+
255
+ #: meteor-slides-settings.php:41
256
+ msgid "scrollVert"
257
+ msgstr "纵基线滚动"
258
+
259
+ #: meteor-slides-settings.php:41
260
+ msgid "slideX"
261
+ msgstr "横向幻灯"
262
+
263
+ #: meteor-slides-settings.php:41
264
+ msgid "slideY"
265
+ msgstr "纵向幻灯"
266
+
267
+ #: meteor-slides-settings.php:41
268
+ msgid "shuffle"
269
+ msgstr "混合"
270
+
271
+ #: meteor-slides-settings.php:41
272
+ msgid "turnUp"
273
+ msgstr "向上转"
274
+
275
+ #: meteor-slides-settings.php:41
276
+ msgid "turnDown"
277
+ msgstr "向下转"
278
+
279
+ #: meteor-slides-settings.php:41
280
+ msgid "turnLeft"
281
+ msgstr "向左转"
282
+
283
+ #: meteor-slides-settings.php:41
284
+ msgid "turnRight"
285
+ msgstr "向右转"
286
+
287
+ #: meteor-slides-settings.php:41
288
+ msgid "uncover"
289
+ msgstr "去除覆盖"
290
+
291
+ #: meteor-slides-settings.php:41
292
+ msgid "wipe"
293
+ msgstr "擦除"
294
+
295
+ #: meteor-slides-settings.php:41
296
+ msgid "zoom"
297
+ msgstr "推进"
298
+
299
+ #: meteor-slides-settings.php:63
300
+ #: meteor-slides-settings.php:73
301
+ msgid "seconds"
302
+ msgstr "秒"
303
+
304
+ #: meteor-slides-settings.php:83
305
+ msgid "None"
306
+ msgstr "无"
307
+
308
+ #: meteor-slides-settings.php:84
309
+ msgid "Previous/Next"
310
+ msgstr "上一个/下一个"
311
+
312
+ #: meteor-slides-settings.php:85
313
+ msgid "Paged"
314
+ msgstr "分页"
315
+
316
+ #: meteor-slides-settings.php:86
317
+ msgid "Both"
318
+ msgstr "双向"
319
+
320
+ #: meteor-slides-settings.php:112
321
+ msgid "Meteor Slides Settings"
322
+ msgstr "过场设置"
323
+
324
+ #: meteor-slides-settings.php:126
325
+ msgid "Save Changes"
326
+ msgstr "保存更改"
327
+
328
+ #: meteor-slides-settings.php:132
329
+ msgid "Install Slideshow"
330
+ msgstr "安装幻灯片集"
331
+
332
+ #: meteor-slides-settings.php:134
333
+ #, php-format
334
+ msgid "Use %1$s to add this slideshow to your theme, use %2$s to add it to your Post or Page content, or use the Meteor Slides Widget. %3$sMore information%4$s"
335
+ msgstr "用 %1$s 去在你的风格文件中加入这个,幻灯片集。 用 %2$s 去向你的文章中加入幻灯片集。%3$s 更多信息 %4$s"
336
+
337
+ #: meteor-slides-settings.php:136
338
+ #, php-format
339
+ msgid "Please %1$spost any questions or problems%2$s in the WordPress.org support forums."
340
+ msgstr "有任何问题 %1$s,请高速我们%2$s"
341
+
342
+ #: meteor-slideshow.php:17
343
+ #: meteor-slideshow.php:29
344
+ msgid "Previous"
345
+ msgstr "上一个"
346
+
347
+ #: meteor-slideshow.php:19
348
+ #: meteor-slideshow.php:31
349
+ msgid "Next"
350
+ msgstr "下一个"
351
+
meteor-slides-plugin.php CHANGED
@@ -6,10 +6,10 @@
6
  Author: Josh Leuze
7
  Author URI: http://www.jleuze.com/
8
  License: GPL2
9
- Version: 1.3.1
10
  */
11
 
12
- /* Copyright 2010 Josh Leuze (email : mail@jleuze.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
@@ -32,35 +32,41 @@
32
  function meteorslides_register_slides() {
33
 
34
  $labels = array(
35
-
36
  'name' => __( 'Slides', 'meteor-slides' ),
37
  'singular_name' => __( 'Slide', 'meteor-slides' ),
38
  'add_new' => __( 'Add New', 'meteor-slides' ),
39
  'add_new_item' => __( 'Add New Slide', 'meteor-slides' ),
40
  'edit_item' => __( 'Edit Slide', 'meteor-slides' ),
41
- 'edit' => __( 'Edit', 'meteor-slides' ),
42
  'new_item' => __( 'New Slide', 'meteor-slides' ),
43
  'view_item' => __( 'View Slide', 'meteor-slides' ),
44
  'search_items' => __( 'Search Slides', 'meteor-slides' ),
45
  'not_found' => __( 'No slides found', 'meteor-slides' ),
46
  'not_found_in_trash' => __( 'No slides found in Trash', 'meteor-slides' ),
47
- 'view' => __( 'View Slide', 'meteor-slides' ),
48
- 'parent_item_colon' => ''
49
-
50
  );
51
-
52
  $args = array(
53
 
54
- 'labels' => $labels,
55
- 'public' => false,
56
- 'publicly_queryable' => true,
57
- 'show_ui' => true,
58
- 'query_var' => 'slides',
59
- 'rewrite' => true,
60
- 'capability_type' => 'page',
61
- 'hierarchical' => false,
62
- 'supports' => array( 'title', 'thumbnail' ),
63
- 'menu_icon' => ''. plugins_url( '/images/slides-icon-20x20.png', __FILE__ )
 
 
 
 
 
 
 
64
 
65
  );
66
 
@@ -68,6 +74,34 @@
68
 
69
  }
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  // Adds custom taxonomy for Slideshows
72
 
73
  add_action( 'init', 'meteorslides_register_taxonomy' );
@@ -86,17 +120,20 @@
86
  'edit_item' => __( 'Edit Slideshow', 'meteor-slides' ),
87
  'update_item' => __( 'Update Slideshow', 'meteor-slides' ),
88
  'add_new_item' => __( 'Add New Slideshow', 'meteor-slides' ),
89
- 'new_item_name' => __( 'New Slideshow Name', 'meteor-slides' )
 
90
 
91
  );
92
 
93
  $args = array(
94
 
95
- 'labels' => $labels,
96
- 'hierarchical' => true,
97
- 'sort' => true,
98
- 'args' => array( 'orderby' => 'term_order' ),
99
- 'rewrite' => array( 'slug' => 'slideshow' )
 
 
100
 
101
  );
102
 
@@ -133,7 +170,7 @@
133
  function meteorslides_featured_image() {
134
 
135
  $options = get_option( 'meteorslides_options' );
136
-
137
  add_image_size( 'featured-slide', $options['slide_width'], $options['slide_height'], true );
138
 
139
  add_image_size( 'featured-slide-thumb', 250, 9999 );
@@ -145,10 +182,14 @@
145
  add_action( 'do_meta_boxes', 'meteorslides_image_box' );
146
 
147
  function meteorslides_image_box() {
 
 
 
 
148
 
149
  remove_meta_box( 'postimagediv', 'slide', 'side' );
150
 
151
- add_meta_box( 'postimagediv', __('Slide Image','meteor-slides'), 'post_thumbnail_meta_box', 'slide', 'normal', 'high' );
152
 
153
  }
154
 
@@ -275,10 +316,10 @@
275
  $columns = array(
276
 
277
  'cb' => '<input type="checkbox" />',
278
- 'slide' => 'Slide Image',
279
- 'title' => 'Slide Title',
280
- 'slide-link' => 'Slide Link',
281
- 'date' => 'Date'
282
 
283
  );
284
 
@@ -319,6 +360,80 @@
319
  }
320
 
321
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
 
323
  // Adds Slideshow settings page
324
 
6
  Author: Josh Leuze
7
  Author URI: http://www.jleuze.com/
8
  License: GPL2
9
+ Version: 1.3.2
10
  */
11
 
12
+ /* Copyright 2011 Josh Leuze (email : mail@jleuze.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
32
  function meteorslides_register_slides() {
33
 
34
  $labels = array(
35
+
36
  'name' => __( 'Slides', 'meteor-slides' ),
37
  'singular_name' => __( 'Slide', 'meteor-slides' ),
38
  'add_new' => __( 'Add New', 'meteor-slides' ),
39
  'add_new_item' => __( 'Add New Slide', 'meteor-slides' ),
40
  'edit_item' => __( 'Edit Slide', 'meteor-slides' ),
 
41
  'new_item' => __( 'New Slide', 'meteor-slides' ),
42
  'view_item' => __( 'View Slide', 'meteor-slides' ),
43
  'search_items' => __( 'Search Slides', 'meteor-slides' ),
44
  'not_found' => __( 'No slides found', 'meteor-slides' ),
45
  'not_found_in_trash' => __( 'No slides found in Trash', 'meteor-slides' ),
46
+ 'parent_item_colon' => '',
47
+ 'menu_name' => __( 'Slides', 'meteor-slides' )
48
+
49
  );
50
+
51
  $args = array(
52
 
53
+ 'labels' => $labels,
54
+ 'public' => true,
55
+ 'publicly_queryable' => false,
56
+ 'exclude_from_search' => true,
57
+ 'show_ui' => true,
58
+ 'show_in_menu' => true,
59
+ 'menu_icon' => ''. plugins_url( '/images/slides-icon-20x20.png', __FILE__ ),
60
+ 'capability_type' => 'post',
61
+ 'map_meta_cap' => true,
62
+ 'hierarchical' => false,
63
+ 'supports' => array( 'title', 'thumbnail' ),
64
+ 'taxonomies' => array( 'slideshow' ),
65
+ 'has_archive' => false,
66
+ 'rewrite' => false,
67
+ 'query_var' => true,
68
+ 'can_export' => true,
69
+ 'show_in_nav_menus' => false
70
 
71
  );
72
 
74
 
75
  }
76
 
77
+ //Adds filter to customize messages for the slide post type
78
+
79
+ add_filter( 'post_updated_messages', 'meteorslides_updated_messages' );
80
+
81
+ function meteorslides_updated_messages( $messages ) {
82
+
83
+ global $post, $post_ID;
84
+
85
+ $messages['slide'] = array(
86
+
87
+ 0 => '',
88
+ 1 => sprintf( __( 'Slide updated. <a href="%s">View slide</a>', 'meteor-slides' ), esc_url( get_permalink($post_ID) ) ),
89
+ 2 => __( 'Custom field updated.', 'meteor-slides' ),
90
+ 3 => __( 'Custom field deleted.', 'meteor-slides' ),
91
+ 4 => __( 'Slide updated.', 'meteor-slides' ),
92
+ 5 => isset($_GET['revision']) ? sprintf( __( 'Slide restored to revision from %s', 'meteor-slides' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
93
+ 6 => sprintf( __( 'Slide published. <a href="%s">View slide</a>', 'meteor-slides' ), esc_url( get_permalink($post_ID) ) ),
94
+ 7 => __( 'Slide saved.', 'meteor-slides' ),
95
+ 8 => sprintf( __( 'Slide submitted. <a target="_blank" href="%s">Preview slide</a>', 'meteor-slides' ), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
96
+ 9 => sprintf( __( 'Slide scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview slide</a>', 'meteor-slides' ), date_i18n( __( 'M j, Y @ G:i', 'meteor-slides' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
97
+ 10 => sprintf( __( 'Slide draft updated. <a target="_blank" href="%s">Preview slide</a>', 'meteor-slides' ), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
98
+
99
+ );
100
+
101
+ return $messages;
102
+
103
+ }
104
+
105
  // Adds custom taxonomy for Slideshows
106
 
107
  add_action( 'init', 'meteorslides_register_taxonomy' );
120
  'edit_item' => __( 'Edit Slideshow', 'meteor-slides' ),
121
  'update_item' => __( 'Update Slideshow', 'meteor-slides' ),
122
  'add_new_item' => __( 'Add New Slideshow', 'meteor-slides' ),
123
+ 'new_item_name' => __( 'New Slideshow Name', 'meteor-slides' ),
124
+ 'menu_name' => __( 'Slideshows', 'meteor-slides' )
125
 
126
  );
127
 
128
  $args = array(
129
 
130
+ 'labels' => $labels,
131
+ 'public' => true,
132
+ 'show_in_nav_menus' => false,
133
+ 'show_ui' => true,
134
+ 'show_tagcloud' => false,
135
+ 'hierarchical' => true,
136
+ 'rewrite' => array( 'slug' => 'slideshow' )
137
 
138
  );
139
 
170
  function meteorslides_featured_image() {
171
 
172
  $options = get_option( 'meteorslides_options' );
173
+
174
  add_image_size( 'featured-slide', $options['slide_width'], $options['slide_height'], true );
175
 
176
  add_image_size( 'featured-slide-thumb', 250, 9999 );
182
  add_action( 'do_meta_boxes', 'meteorslides_image_box' );
183
 
184
  function meteorslides_image_box() {
185
+
186
+ $options = get_option('meteorslides_options');
187
+
188
+ $title = __( 'Slide Image', 'meteor-slides' ) . ' (' . $options['slide_width'] . 'x' . $options['slide_height'] . ')';
189
 
190
  remove_meta_box( 'postimagediv', 'slide', 'side' );
191
 
192
+ add_meta_box( 'postimagediv', $title, 'post_thumbnail_meta_box', 'slide', 'normal', 'high' );
193
 
194
  }
195
 
316
  $columns = array(
317
 
318
  'cb' => '<input type="checkbox" />',
319
+ 'slide' => __( 'Slide Image', 'meteor-slides' ),
320
+ 'title' => __( 'Slide Title', 'meteor-slides' ),
321
+ 'slide-link' => __( 'Slide Link', 'meteor-slides' ),
322
+ 'date' => __( 'Date', 'meteor-slides' )
323
 
324
  );
325
 
360
  }
361
 
362
  }
363
+
364
+ //display contextual help for slides
365
+
366
+ add_action( 'contextual_help', 'add_help_text', 10, 3 );
367
+
368
+ function add_help_text($contextual_help, $screen_id, $screen) {
369
+
370
+ if ('slide' == $screen->id ) {
371
+
372
+ $contextual_help =
373
+ '<h3>' . __( 'Add New Slide', 'meteor-slides' ) . '</h3>' .
374
+ '<p>' . __( '<strong>Title:</strong> Each slide needs a title in order to be published.', 'meteor-slides' ) . '</p>' .
375
+ '<p>' . __( '<strong>Slide Image:</strong> To add an image to a slide, click the <strong>Set featured image</strong> link. Upload an image, or browse the media library for one, click the <strong>Use as featured image</strong> link to add the image and then close the media uploader. The Slide Image metabox should now have a thumbnail image.', 'meteor-slides' ) . '</p>' .
376
+ '<p>' . __( '<strong>Slide Link:</strong> Add the full URL to the Slide Link metabox, such as <em>http://wordpress.org/</em> (Optional)', 'meteor-slides' ) . '</p>' .
377
+ '<p>' . __( '<strong>Slideshows:</strong> A slide can be added to a slideshow by selecting the slideshow from the Slideshows metabox.', 'meteor-slides' ) . '</p>' .
378
+ '<p>' . __( "<strong>Slide Order:</strong> Slides are sorted chronologically, edit the slide's published date to change the order of the slide.", "meteor-slides" ) . '</p>' .
379
+ '<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
380
+ '<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/using-meteor-slides/" target="_blank">Using Meteor Slides Documentation</a>', 'meteor-slides' ) . '</p>' .
381
+ '<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
382
+
383
+ } elseif ( 'edit-slide' == $screen->id ) {
384
+
385
+ $contextual_help =
386
+
387
+ '<h3>' . __( 'Slides', 'meteor-slides' ) . '</h3>' .
388
+ '<p>' . __( 'Choose a slide to edit, or add a new slide.', 'meteor-slides' ) . '</p>' .
389
+ '<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
390
+ '<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/installation/" target="_blank">Meteor Slides Documentation</a>', 'meteor-slides' ) . '</p>' .
391
+ '<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
392
+
393
+ } elseif ( 'edit-slideshow' == $screen->id ) {
394
+
395
+ $contextual_help =
396
+
397
+ '<h3>' . __( 'Slideshows', 'meteor-slides' ) . '</h3>' .
398
+ '<p>' . __( 'Slides can be organized into slideshows, just as posts can be organized into categories.', 'meteor-slides' ) . '</p>' .
399
+ '<p>' . __( '<strong>Add New Slideshow:</strong> Name the slideshow, specify a Slug or one will be generated from the name, skip the Parent and Description and click <strong>Add New Slideshow</strong>.', 'meteor-slides' ) . '</p>' .
400
+ '<p>' . __( '<strong>Add Slide to Slideshow:</strong> Edit a slide and select the slideshow in the Slideshows metabox.', 'meteor-slides' ) . '</p>' .
401
+ '<p>' . __( '<strong>Adding a specific Slideshow:</strong> Add a slideshow slug to a template tag, shortcode, or widget to load a specific slideshow. Here is an example using the shortcode:', 'meteor-slides' ) . '</p>' .
402
+ '<p>' . __( '<code>[meteor_slideshow slideshow="slug"]</code>', 'meteor-slides' ) . '</p>' .
403
+ '<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
404
+ '<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/multiple-slideshows/" target="_blank">Multiple Slideshows Documentation</a>', 'meteor-slides' ) . '</p>' .
405
+ '<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
406
+
407
+ } elseif ( 'slide_page_slides-settings' == $screen->id ) {
408
+
409
+ $contextual_help =
410
+
411
+ '<h3>' . __( 'Configure Slideshow', 'meteor-slides' ) . '</h3>' .
412
+ '<p>' . __( '<em>Before adding any slides, enter the slide height and width in the settings so the slides are the correct dimensions.</em>', 'meteor-slides' ) . '</p>' .
413
+ '<p>' . __( "<strong>Slideshow Quantity:</strong> Choose the number of slides that are loaded in the slideshow. (Leave this option blank to reset the settings)", "meteor-slides" ) . '</p>' .
414
+ '<p>' . __( "<strong>Slide Height:</strong> Enter the height of your slides in pixels. For slides of different heights, use the height of the tallest slide.", "meteor-slides" ) . '</p>' .
415
+ '<p>' . __( "<strong>Slide Width:</strong> Enter the width of your slides in pixels. Slides that are narrower than this will be centered in the slideshow.", "meteor-slides" ) . '</p>' .
416
+ '<p>' . __( "<strong>Transition Style:</strong> Choose the effect that is used to transition between slides.", "meteor-slides" ) . '</p>' .
417
+ '<p>' . __( "<strong>Transition Speed:</strong> Enter the number of seconds that it should take for a transition between slides to complete.", "meteor-slides" ) . '</p>' .
418
+ '<p>' . __( "<strong>Slide Duration:</strong> Enter the number of seconds that each slide should be paused on in the slideshow.", "meteor-slides" ) . '</p>' .
419
+ '<p>' . __( "<strong>Slideshow Navigation:</strong> ", "meteor-slides" ) . '</p>' .
420
+ '<ul>' .
421
+ '<li>' . __( "<strong>None:</strong> The default option, no navigation is added to the slideshow.", "meteor-slides" ) . '</li>' .
422
+ '<li>' . __( "<strong>Previous/Next:</strong> Left and right buttons are added to the slideshow to cycle through the slides.", "meteor-slides" ) . '</li>' .
423
+ '<li>' . __( "<strong>Paged:</strong> Small round buttons are added below the slideshow to choose a specific slide and highlight the current slide.", "meteor-slides" ) . '</li>' .
424
+ '<li>' . __( "<strong>Both:</strong> Previous/Next and Paged navigation are both added to the slideshow.", "meteor-slides" ) . '</li>' .
425
+ '</ul>' .
426
+ '<h3>' . __( 'Add Slideshow', 'meteor-slides' ) . '</h3>' .
427
+ '<p>' . __( 'Check out the documentation for <a href="http://www.jleuze.com/plugins/meteor-slides/adding-a-slideshow/" target="_blank">adding a slideshow</a>.', 'meteor-slides' ) . '</p>' .
428
+ '<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
429
+ '<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/installation/" target="_blank">Meteor Slides Documentation</a>', 'meteor-slides' ) . '</p>' .
430
+ '<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
431
+
432
+ }
433
+
434
+ return $contextual_help;
435
+
436
+ }
437
 
438
  // Adds Slideshow settings page
439
 
meteor-slides-settings.php CHANGED
@@ -194,9 +194,11 @@
194
 
195
  </form>
196
 
197
- <h3><?php _e( 'Install Slideshow', 'meteor-slides' ); ?></h3>
198
 
199
- <p><?php printf( __ ( 'Use %1$s to add this slideshow to your theme, use %2$s to add it to your Post or Page content, or use the Meteor Slides Widget. %3$sMore information%4$s', 'meteor-slides'), "<code><&#63;php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } &#63;></code>", "<code>[meteor_slideshow]</code>", "<a href='http://www.jleuze.com/plugins/meteor-slides/'>", "</a>" )?></p>
 
 
200
 
201
  <p><em><?php printf( __ ( 'Please %1$spost any questions or problems%2$s in the WordPress.org support forums.', 'meteor-slides' ), "<a href='http://wordpress.org/tags/meteor-slides?forum_id=10#postform'>", "</a>" )?></em></p>
202
 
194
 
195
  </form>
196
 
197
+ <h3><?php _e( 'Add Slideshow', 'meteor-slides' ); ?></h3>
198
 
199
+ <p><?php printf( __ ( 'Use %1$s to add this slideshow to your theme, use %2$s to add it to your Post or Page content, or use the Meteor Slides Widget.', 'meteor-slides'), "<code><&#63;php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } &#63;></code>", "<code>[meteor_slideshow]</code>" )?></p>
200
+
201
+ <p><?php printf( __ ( 'Visit the %1$sMeteor Slides homepage%2$s for documentation, tutorials, and videos.', 'meteor-slides' ), "<a href='http://www.jleuze.com/plugins/meteor-slides/'>", "</a>" )?></p>
202
 
203
  <p><em><?php printf( __ ( 'Please %1$spost any questions or problems%2$s in the WordPress.org support forums.', 'meteor-slides' ), "<a href='http://wordpress.org/tags/meteor-slides?forum_id=10#postform'>", "</a>" )?></em></p>
204
 
meteor-slideshow.php CHANGED
@@ -26,7 +26,41 @@
26
 
27
  ) ); ?>
28
 
29
- <div id="meteor-slideshow" class="meteor-slides <?php echo $meteornav . ' ' . $slideshow; ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  <?php // Adds Previous/Next and Paged navigation
32
 
@@ -34,13 +68,13 @@
34
 
35
  <ul class="meteor-nav">
36
 
37
- <li class="prev" id="meteor-prev<?php echo $slideshow; ?>"><a href="#"><?php _e( 'Previous', 'meteor-slides' ) ?></a></li>
38
 
39
- <li class="next" id="meteor-next<?php echo $slideshow; ?>"><a href="#"><?php _e( 'Next', 'meteor-slides' ) ?></a></li>
40
 
41
  </ul><!-- .meteor-nav -->
42
 
43
- <div class="meteor-buttons" id="meteor-buttons<?php echo $slideshow; ?>"></div>
44
 
45
  <?php // Adds Previous/Next navigation
46
 
@@ -48,9 +82,9 @@
48
 
49
  <ul class="meteor-nav">
50
 
51
- <li class="prev" id="meteor-prev<?php echo $slideshow; ?>"><a href="#"><?php _e( 'Previous', 'meteor-slides' ) ?></a></li>
52
 
53
- <li class="next" id="meteor-next<?php echo $slideshow; ?>"><a href="#"><?php _e( 'Next', 'meteor-slides' ) ?></a></li>
54
 
55
  </ul><!-- .meteor-nav -->
56
 
@@ -58,58 +92,36 @@
58
 
59
  elseif ( $meteornav == "navpaged" ): ?>
60
 
61
- <div class="meteor-buttons" id="meteor-buttons<?php echo $slideshow; ?>"></div>
62
 
63
  <?php endif; ?>
64
-
65
- <div class="slides { <?php
66
-
67
- // Adds metadata to slideshow
68
-
69
- if ( !empty( $slideshow ) ) {
70
-
71
- echo "next: '#meteor-next" . $slideshow . "', prev: '#meteor-prev" . $slideshow . "', pager: '#meteor-buttons" . $slideshow . "'";
72
-
73
- }
74
-
75
- if ( !empty( $metadata ) && !empty( $slideshow ) ) {
76
-
77
- echo ', ';
78
-
79
- }
80
-
81
- echo $metadata;
82
-
83
- ?> }">
84
 
85
- <?php // Loop which loads the slideshow
86
 
87
- while ( $loop->have_posts() ) : $loop->the_post(); ?>
88
 
89
- <div id="slide-<?php echo $i; ?>" class="slide">
90
 
91
- <?php // Adds slide image with Slide URL link
92
 
93
- if ( get_post_meta( $post->ID, "slide_url_value", $single = true ) != "" ): ?>
94
 
95
- <a href="<?php echo get_post_meta( $post->ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'featured-slide' ); ?></a>
96
 
97
- <?php // Adds slide image
98
 
99
- else: ?>
100
 
101
- <?php the_post_thumbnail( 'featured-slide' ); ?>
102
 
103
- <?php endif; ?>
104
 
105
- </div><!-- .slide -->
106
 
107
- <?php $i++; ?>
108
 
109
- <?php endwhile; ?>
110
-
111
- </div><!-- .slides -->
112
-
113
  <?php wp_reset_query(); ?>
114
 
115
- </div><!-- #meteor-slideshow -->
26
 
27
  ) ); ?>
28
 
29
+ <div id="meteor-slideshow<?php echo $slideshow; ?>" class="meteor-slides <?php
30
+
31
+ // Adds classes to slideshow
32
+
33
+ echo $slideshow . ' ' . $meteornav;
34
+
35
+ // Adds metadata to slideshow
36
+
37
+ if ( !empty( $metadata ) || !empty( $slideshow ) ) {
38
+
39
+ echo ' { ';
40
+
41
+ }
42
+
43
+ if ( !empty( $slideshow ) ) {
44
+
45
+ echo "next: '#meteor-next" . $slideshow . "', prev: '#meteor-prev" . $slideshow . "', pager: '#meteor-buttons" . $slideshow . "'";
46
+
47
+ }
48
+
49
+ if ( !empty( $metadata ) && !empty( $slideshow ) ) {
50
+
51
+ echo ', ';
52
+
53
+ }
54
+
55
+ echo $metadata;
56
+
57
+ if ( !empty( $metadata ) || !empty( $slideshow ) ) {
58
+
59
+ echo ' }';
60
+
61
+ }
62
+
63
+ ?>">
64
 
65
  <?php // Adds Previous/Next and Paged navigation
66
 
68
 
69
  <ul class="meteor-nav">
70
 
71
+ <li id="meteor-prev<?php echo $slideshow; ?>" class="prev"><a href="#prev"><?php _e( 'Previous', 'meteor-slides' ) ?></a></li>
72
 
73
+ <li id="meteor-next<?php echo $slideshow; ?>" class="next"><a href="#next"><?php _e( 'Next', 'meteor-slides' ) ?></a></li>
74
 
75
  </ul><!-- .meteor-nav -->
76
 
77
+ <div id="meteor-buttons<?php echo $slideshow; ?>" class="meteor-buttons"></div>
78
 
79
  <?php // Adds Previous/Next navigation
80
 
82
 
83
  <ul class="meteor-nav">
84
 
85
+ <li id="meteor-prev<?php echo $slideshow; ?>" class="prev"><a href="#prev"><?php _e( 'Previous', 'meteor-slides' ) ?></a></li>
86
 
87
+ <li id="meteor-next<?php echo $slideshow; ?>" class="next"><a href="#next"><?php _e( 'Next', 'meteor-slides' ) ?></a></li>
88
 
89
  </ul><!-- .meteor-nav -->
90
 
92
 
93
  elseif ( $meteornav == "navpaged" ): ?>
94
 
95
+ <div id="meteor-buttons<?php echo $slideshow; ?>" class="meteor-buttons"></div>
96
 
97
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
+ <?php // Loop which loads the slideshow
100
 
101
+ while ( $loop->have_posts() ) : $loop->the_post(); ?>
102
 
103
+ <div class="mslide mslide-<?php echo $i; ?>">
104
 
105
+ <?php // Adds slide image with Slide URL link
106
 
107
+ if ( get_post_meta( $post->ID, "slide_url_value", $single = true ) != "" ): ?>
108
 
109
+ <a href="<?php echo get_post_meta( $post->ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'featured-slide' ); ?></a>
110
 
111
+ <?php // Adds slide image without Slide URL link
112
 
113
+ else: ?>
114
 
115
+ <?php the_post_thumbnail( 'featured-slide' ); ?>
116
 
117
+ <?php endif; ?>
118
 
119
+ </div><!-- .mslide -->
120
 
121
+ <?php $i++; ?>
122
 
123
+ <?php endwhile; ?>
124
+
 
 
125
  <?php wp_reset_query(); ?>
126
 
127
+ </div><!-- .meteor-slides -->
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jleuze
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mail%40jleuze%2ecom&item_name=Meteor%20Slides%20Donation&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: slide, slides, slider, slideshow, image, custom post types, jquery
5
  Requires at least: 3.0
6
- Tested up to: 3.0.3
7
- Stable tag: 1.3.1
8
 
9
  Meteor Slides makes it simple to create slideshows with WordPress by adding a custom post type for slides.
10
 
@@ -30,7 +30,7 @@ This screencast shows some of the new features in 1.3, such as adding multiple s
30
  * **Slideshow metadata:** Customize individual slideshows or configure more [jQuery Cycle options](http://jquery.malsup.com/cycle/options.html "jQuery Cycle Plugin") with the [MetaData jQuery Plugin](http://plugins.jquery.com/project/metadata "MetaData jQuery Plugin").
31
  * **Slideshow transition styles:** blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, none, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, slideX, slideY, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, zoom.
32
  * **Slideshow navigation:** Optional previous/next and/or paged slide navigation.
33
- * **Multiple languages:** English, French, Indonesian, Italian, Portuguese, Romanian, Spanish, Swedish, Turkish.
34
 
35
  *[Got a question about Meteor Slides?](http://wordpress.org/tags/meteor-slides?forum_id=10#postform "Post a question in the forums")*
36
 
@@ -69,7 +69,7 @@ The slides load in the order they were published, you can change the publish dat
69
 
70
  = Why is the slideshow covering up my dropdown menus? =
71
 
72
- The `z-index` on the slideshow is higher than the dropdowns, causing them to be layered below the slides. Lower the `z-index` of `#meteor-slideshow` or raise the `z-index` of your dropdowns until the dropdowns are above the slideshow.
73
 
74
  = How do I customize the slideshow's CSS stylesheet? =
75
 
@@ -100,13 +100,23 @@ You can help right on this page by rating the plugin or voting for its compatibi
100
 
101
  == Changelog ==
102
 
 
 
 
 
 
 
 
 
 
 
103
  = 1.3.1 =
104
- * Fixed post thumbnail registration conflicts.
105
- * Added support for custom slideshow loop.
106
- * Fixed navigation for multiple slideshows.
107
- * Improved support for transparent images.
108
- * Fixed slideshow layout issues.
109
- * Updated French translation.
110
 
111
  = 1.3 =
112
  * Added custom slideshows taxonomy for multiple slideshows
@@ -147,6 +157,9 @@ You can help right on this page by rating the plugin or voting for its compatibi
147
 
148
  == Upgrade Notice ==
149
 
 
 
 
150
  = 1.3.1 =
151
  Meteor Slides 1.3.1 fixes thumbnail registration conflicts, transparent images issues, and navigation for multiple slideshows.
152
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mail%40jleuze%2ecom&item_name=Meteor%20Slides%20Donation&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: slide, slides, slider, slideshow, image, custom post types, jquery
5
  Requires at least: 3.0
6
+ Tested up to: 3.1
7
+ Stable tag: 1.3.2
8
 
9
  Meteor Slides makes it simple to create slideshows with WordPress by adding a custom post type for slides.
10
 
30
  * **Slideshow metadata:** Customize individual slideshows or configure more [jQuery Cycle options](http://jquery.malsup.com/cycle/options.html "jQuery Cycle Plugin") with the [MetaData jQuery Plugin](http://plugins.jquery.com/project/metadata "MetaData jQuery Plugin").
31
  * **Slideshow transition styles:** blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, none, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, slideX, slideY, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, zoom.
32
  * **Slideshow navigation:** Optional previous/next and/or paged slide navigation.
33
+ * **Multiple languages:** Chinese, English, French, Indonesian, Italian, Portuguese, Romanian, Spanish, Swedish, Turkish.
34
 
35
  *[Got a question about Meteor Slides?](http://wordpress.org/tags/meteor-slides?forum_id=10#postform "Post a question in the forums")*
36
 
69
 
70
  = Why is the slideshow covering up my dropdown menus? =
71
 
72
+ The `z-index` on the slideshow is higher than the dropdowns, causing them to be layered below the slides. Lower the `z-index` of `.meteor-slides` or raise the `z-index` of your dropdowns until the dropdowns are above the slideshow.
73
 
74
  = How do I customize the slideshow's CSS stylesheet? =
75
 
100
 
101
  == Changelog ==
102
 
103
+ = 1.3.2 =
104
+ * Improved support for multiple slideshows of different sizes
105
+ * Fixed transparent PNG bug
106
+ * Updated functions for WordPress 3.1 compatibility
107
+ * Updated screenshots for WordPress 3.1
108
+ * Updated JQuery Cycle to 2.94
109
+ * Added message filters for slides
110
+ * Added contextual help
111
+ * Added Chinese translation
112
+
113
  = 1.3.1 =
114
+ * Fixed post thumbnail registration conflicts
115
+ * Added support for custom slideshow loop
116
+ * Fixed navigation for multiple slideshows
117
+ * Improved support for transparent images
118
+ * Fixed slideshow layout issues
119
+ * Updated French translation
120
 
121
  = 1.3 =
122
  * Added custom slideshows taxonomy for multiple slideshows
157
 
158
  == Upgrade Notice ==
159
 
160
+ = 1.3.2 =
161
+ Meteor Slides 1.3.2 improves support for multiple slideshows and adds updates for WordPress 3.1 compatability. Any custom stylesheets or templates will need to be updated for use with this release.
162
+
163
  = 1.3.1 =
164
  Meteor Slides 1.3.1 fixes thumbnail registration conflicts, transparent images issues, and navigation for multiple slideshows.
165
 
screenshot-2.jpg CHANGED
Binary file
screenshot-3.jpg CHANGED
Binary file
screenshot-4.jpg CHANGED
Binary file
screenshot-5.jpg CHANGED
Binary file
screenshot-6.jpg CHANGED
Binary file