Version Description
- Replaced slideshow skin with new navigation graphics and layout
- Added support for custom slideshow script
- Added support for Members plugin
- Added uninstall functionality
- Moved admin functions to separate file and reorganized some files
- Updated JQuery Cycle to 2.99, switch to minimized version
- Updated Swedish translation
- Added Hebrew, Japanese, Polish, Portuguese, and Russian translations
Download this release
Release Info
Developer | jleuze |
Plugin | Meteor Slides |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.3 to 1.4
- css/meteor-slides-admin.css +11 -11
- css/meteor-slides.css +156 -152
- images/buttons.png +0 -0
- images/next.png +0 -0
- images/prev.png +0 -0
- includes/meteor-slides-admin.php +499 -0
- meteor-slides-settings.php → includes/meteor-slides-settings.php +204 -204
- meteor-slideshow.php → includes/meteor-slideshow.php +0 -0
- js/jquery.cycle.all.js +0 -1352
- js/jquery.cycle.all.min.js +21 -0
- js/slideshow.js +41 -34
- languages/meteor-slides-en_RU.mo +0 -0
- languages/meteor-slides-en_RU.po +351 -0
- languages/meteor-slides-en_US.txt +160 -160
- languages/meteor-slides-he_IL.mo +0 -0
- languages/meteor-slides-he_IL.po +429 -0
- languages/meteor-slides-ja_JA.mo +0 -0
- languages/meteor-slides-ja_JA.po +360 -0
- languages/meteor-slides-pl_PL.mo +0 -0
- languages/meteor-slides-pl_PL.po +354 -0
- languages/meteor-slides-pt_PT.mo +0 -0
- languages/meteor-slides-pt_PT.po +351 -0
- languages/meteor-slides-ru_RU.mo +0 -0
- languages/meteor-slides-ru_RU.po +351 -0
- meteor-slides-plugin.php +475 -821
- readme.txt +203 -190
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
- screenshot-4.jpg +0 -0
- screenshot-5.jpg +0 -0
- screenshot-6.jpg +0 -0
- uninstall.php +15 -0
css/meteor-slides-admin.css
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
/* Stylesheet for the Meteor Slides admin pages */
|
2 |
-
|
3 |
-
#wpwrap #icon-edit {
|
4 |
-
background: url('../images/slides-icon-32x32.png') no-repeat top left;
|
5 |
-
}
|
6 |
-
|
7 |
-
#edit-slug-box,
|
8 |
-
#message a,
|
9 |
-
#preview-action,
|
10 |
-
.row-actions .view {
|
11 |
-
display: none;
|
12 |
}
|
1 |
+
/* Stylesheet for the Meteor Slides admin pages */
|
2 |
+
|
3 |
+
#wpwrap #icon-edit {
|
4 |
+
background: url('../images/slides-icon-32x32.png') no-repeat top left;
|
5 |
+
}
|
6 |
+
|
7 |
+
#edit-slug-box,
|
8 |
+
#message a,
|
9 |
+
#preview-action,
|
10 |
+
.row-actions .view {
|
11 |
+
display: none;
|
12 |
}
|
css/meteor-slides.css
CHANGED
@@ -1,153 +1,157 @@
|
|
1 |
-
/* Stylesheet for the Meteor Slides 1.
|
2 |
-
|
3 |
-
Copy "meteor-slides.css" from "/meteor-slides/css/" to your theme's directory to replace
|
4 |
-
the plugin's default stylesheet.
|
5 |
-
|
6 |
-
If you have navigation enabled, be sure to copy the "buttons.png", "next.png",
|
7 |
-
and "prev.png" files to your theme's images folder and update the image paths below,
|
8 |
-
or create new graphics to replace them.
|
9 |
-
|
10 |
-
Learn more about customizing the stylesheet for Meteor Slides:
|
11 |
-
http://www.jleuze.com/plugins/meteor-slides/customizing-the-stylesheet/
|
12 |
-
*/
|
13 |
-
|
14 |
-
/* =Slideshow
|
15 |
-
-------------------------------------------------------------- */
|
16 |
-
|
17 |
-
.meteor-slides {
|
18 |
-
margin: 0;
|
19 |
-
overflow: hidden;
|
20 |
-
padding: 0;
|
21 |
-
position: relative;
|
22 |
-
z-index: 1;
|
23 |
-
}
|
24 |
-
|
25 |
-
.navpaged,
|
26 |
-
.navboth {
|
27 |
-
padding: 0 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 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /*
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
.
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
.
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
.
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
.
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
}
|
135 |
-
|
136 |
-
.meteor-buttons
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
}
|
150 |
-
|
151 |
-
.meteor-buttons a
|
152 |
-
background: url('../images/buttons.png') no-repeat bottom right;
|
|
|
|
|
|
|
|
|
153 |
}
|
1 |
+
/* Stylesheet for the Meteor Slides 1.4 slideshow
|
2 |
+
|
3 |
+
Copy "meteor-slides.css" from "/meteor-slides/css/" to your theme's directory to replace
|
4 |
+
the plugin's default stylesheet.
|
5 |
+
|
6 |
+
If you have navigation enabled, be sure to copy the "buttons.png", "next.png",
|
7 |
+
and "prev.png" files to your theme's images folder and update the image paths below,
|
8 |
+
or create new graphics to replace them.
|
9 |
+
|
10 |
+
Learn more about customizing the stylesheet for Meteor Slides:
|
11 |
+
http://www.jleuze.com/plugins/meteor-slides/customizing-the-stylesheet/
|
12 |
+
*/
|
13 |
+
|
14 |
+
/* =Slideshow
|
15 |
+
-------------------------------------------------------------- */
|
16 |
+
|
17 |
+
.meteor-slides {
|
18 |
+
margin: 0;
|
19 |
+
overflow: hidden;
|
20 |
+
padding: 0;
|
21 |
+
position: relative;
|
22 |
+
z-index: 1;
|
23 |
+
}
|
24 |
+
|
25 |
+
.navpaged,
|
26 |
+
.navboth {
|
27 |
+
padding: 0 0 20px 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 |
+
max-width: 100%;
|
54 |
+
padding: 0;
|
55 |
+
}
|
56 |
+
|
57 |
+
.meteor-slides .mslide img[src$='.png'] {
|
58 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */
|
59 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE7 */
|
60 |
+
zoom: 1;
|
61 |
+
}
|
62 |
+
|
63 |
+
/* =Previous/Next Navigation
|
64 |
+
-------------------------------------------------------------- */
|
65 |
+
|
66 |
+
.meteor-slides ul.meteor-nav {
|
67 |
+
list-style: none;
|
68 |
+
height: inherit;
|
69 |
+
margin: 0;
|
70 |
+
padding: 0;
|
71 |
+
}
|
72 |
+
|
73 |
+
body .meteor-slides ul.meteor-nav {
|
74 |
+
display: none;
|
75 |
+
*display: block;
|
76 |
+
_display: block;
|
77 |
+
}
|
78 |
+
|
79 |
+
body .meteor-slides:hover ul.meteor-nav {
|
80 |
+
display: block;
|
81 |
+
}
|
82 |
+
|
83 |
+
ul.meteor-nav li {
|
84 |
+
display: inline;
|
85 |
+
height: inherit;
|
86 |
+
list-style: none;
|
87 |
+
margin: 0;
|
88 |
+
padding: 0;
|
89 |
+
}
|
90 |
+
|
91 |
+
.meteor-nav .prev a {
|
92 |
+
left: 0px;
|
93 |
+
}
|
94 |
+
|
95 |
+
.meteor-nav .next a {
|
96 |
+
right: 0px;
|
97 |
+
}
|
98 |
+
|
99 |
+
.meteor-nav a {
|
100 |
+
display: block;
|
101 |
+
outline: none;
|
102 |
+
position: absolute;
|
103 |
+
text-indent: -9999px;
|
104 |
+
width: 27px;
|
105 |
+
height: inherit;
|
106 |
+
z-index: 50;
|
107 |
+
}
|
108 |
+
|
109 |
+
.meteor-nav .prev a {
|
110 |
+
background: url('../images/prev.png') no-repeat center right;
|
111 |
+
}
|
112 |
+
|
113 |
+
.meteor-nav .prev a:hover {
|
114 |
+
background: url('../images/prev.png') no-repeat center left;
|
115 |
+
}
|
116 |
+
|
117 |
+
.meteor-nav .next a {
|
118 |
+
background: url('../images/next.png') no-repeat center left;
|
119 |
+
}
|
120 |
+
|
121 |
+
.meteor-nav .next a:hover {
|
122 |
+
background: url('../images/next.png') no-repeat center right;
|
123 |
+
}
|
124 |
+
|
125 |
+
/* =Paged Navigation
|
126 |
+
-------------------------------------------------------------- */
|
127 |
+
|
128 |
+
.meteor-buttons {
|
129 |
+
bottom: 5px;
|
130 |
+
left: 0px;
|
131 |
+
margin: 0;
|
132 |
+
position: absolute;
|
133 |
+
z-index: 50;
|
134 |
+
}
|
135 |
+
|
136 |
+
header#branding .meteor-buttons {
|
137 |
+
left: 5px; /* A little nudge for Twenty Eleven */
|
138 |
+
}
|
139 |
+
|
140 |
+
.meteor-buttons a {
|
141 |
+
background: url('../images/buttons.png') no-repeat bottom left;
|
142 |
+
display: block;
|
143 |
+
float: left;
|
144 |
+
width: 9px;
|
145 |
+
height: 9px;
|
146 |
+
margin: 0 3px 0 0;
|
147 |
+
outline: none;
|
148 |
+
text-indent: -9999px;
|
149 |
+
}
|
150 |
+
|
151 |
+
.meteor-buttons a:hover {
|
152 |
+
background: url('../images/buttons.png') no-repeat bottom right;
|
153 |
+
}
|
154 |
+
|
155 |
+
.meteor-buttons a.activeSlide {
|
156 |
+
background: url('../images/buttons.png') no-repeat bottom right;
|
157 |
}
|
images/buttons.png
CHANGED
Binary file
|
images/next.png
CHANGED
Binary file
|
images/prev.png
CHANGED
Binary file
|
includes/meteor-slides-admin.php
ADDED
@@ -0,0 +1,499 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
//Adds filter to customize messages for the slide post type
|
4 |
+
|
5 |
+
add_filter( 'post_updated_messages', 'meteorslides_updated_messages' );
|
6 |
+
|
7 |
+
function meteorslides_updated_messages( $messages ) {
|
8 |
+
|
9 |
+
global $post, $post_ID;
|
10 |
+
|
11 |
+
$messages['slide'] = array(
|
12 |
+
|
13 |
+
0 => '',
|
14 |
+
1 => sprintf( __( 'Slide updated. <a href="%s">View slide</a>', 'meteor-slides' ), esc_url( get_permalink($post_ID) ) ),
|
15 |
+
2 => __( 'Custom field updated.', 'meteor-slides' ),
|
16 |
+
3 => __( 'Custom field deleted.', 'meteor-slides' ),
|
17 |
+
4 => __( 'Slide updated.', 'meteor-slides' ),
|
18 |
+
5 => isset($_GET['revision']) ? sprintf( __( 'Slide restored to revision from %s', 'meteor-slides' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
19 |
+
6 => sprintf( __( 'Slide published. <a href="%s">View slide</a>', 'meteor-slides' ), esc_url( get_permalink($post_ID) ) ),
|
20 |
+
7 => __( 'Slide saved.', 'meteor-slides' ),
|
21 |
+
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) ) ) ),
|
22 |
+
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) ) ),
|
23 |
+
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) ) ) ),
|
24 |
+
|
25 |
+
);
|
26 |
+
|
27 |
+
return $messages;
|
28 |
+
|
29 |
+
}
|
30 |
+
|
31 |
+
// Customize and move featured image box to main column
|
32 |
+
|
33 |
+
add_action( 'do_meta_boxes', 'meteorslides_image_box' );
|
34 |
+
|
35 |
+
function meteorslides_image_box() {
|
36 |
+
|
37 |
+
$options = get_option('meteorslides_options');
|
38 |
+
|
39 |
+
$title = __( 'Slide Image', 'meteor-slides' ) . ' (' . $options['slide_width'] . 'x' . $options['slide_height'] . ')';
|
40 |
+
|
41 |
+
remove_meta_box( 'postimagediv', 'slide', 'side' );
|
42 |
+
|
43 |
+
add_meta_box( 'postimagediv', $title, 'post_thumbnail_meta_box', 'slide', 'normal', 'high' );
|
44 |
+
|
45 |
+
}
|
46 |
+
|
47 |
+
// Remove permalink metabox
|
48 |
+
|
49 |
+
add_action( 'admin_menu', 'meteorslides_remove_permalink_meta_box' );
|
50 |
+
|
51 |
+
function meteorslides_remove_permalink_meta_box() {
|
52 |
+
|
53 |
+
remove_meta_box( 'slugdiv', 'slide', 'core' );
|
54 |
+
|
55 |
+
}
|
56 |
+
|
57 |
+
// Adds meta box for Slide URL
|
58 |
+
|
59 |
+
add_action( 'admin_menu', 'meteorslides_create_url_meta_box' );
|
60 |
+
|
61 |
+
$meteorslides_new_meta_box =
|
62 |
+
|
63 |
+
array(
|
64 |
+
|
65 |
+
'slide_url' => array(
|
66 |
+
|
67 |
+
'name' => 'slide_url',
|
68 |
+
'std' => ''
|
69 |
+
)
|
70 |
+
|
71 |
+
);
|
72 |
+
|
73 |
+
function meteorslides_new_meta_box() {
|
74 |
+
|
75 |
+
global $post, $meteorslides_new_meta_box;
|
76 |
+
|
77 |
+
foreach ( $meteorslides_new_meta_box as $meteorslides_meta_box ) {
|
78 |
+
|
79 |
+
$meteorslides_meta_box_value = get_post_meta( $post->ID, $meteorslides_meta_box['name'].'_value', true );
|
80 |
+
|
81 |
+
if( $meteorslides_meta_box_value == "" ) $meteorslides_meta_box_value = $meteorslides_meta_box['std'];
|
82 |
+
|
83 |
+
echo "<input type='hidden' name='" . $meteorslides_meta_box['name'] . "_noncename' id='" . $meteorslides_meta_box['name'] . " _noncename' value='" . wp_create_nonce( plugin_basename(__FILE__) ) . "' />";
|
84 |
+
|
85 |
+
echo "<input type='text' name='" . $meteorslides_meta_box['name'] . "_value' value='" . $meteorslides_meta_box_value . "' size='55' /><br />";
|
86 |
+
|
87 |
+
echo "<p>" . __('Add the URL this slide should link to.','meteor-slides') . "</p>";
|
88 |
+
|
89 |
+
}
|
90 |
+
|
91 |
+
}
|
92 |
+
|
93 |
+
function meteorslides_create_url_meta_box() {
|
94 |
+
|
95 |
+
global $theme_name;
|
96 |
+
|
97 |
+
if ( function_exists('add_meta_box') ) {
|
98 |
+
|
99 |
+
add_meta_box( 'meteorslides-url-box', __('Slide Link','meteor-slides'), 'meteorslides_new_meta_box', 'slide', 'normal', 'low' );
|
100 |
+
|
101 |
+
}
|
102 |
+
|
103 |
+
}
|
104 |
+
|
105 |
+
// Save and retrieve the Slide URL data
|
106 |
+
|
107 |
+
add_action( 'save_post', 'meteorslides_save_postdata' );
|
108 |
+
|
109 |
+
function meteorslides_save_postdata( $post_id ) {
|
110 |
+
|
111 |
+
global $post, $meteorslides_new_meta_box;
|
112 |
+
|
113 |
+
foreach( $meteorslides_new_meta_box as $meteorslides_meta_box ) {
|
114 |
+
|
115 |
+
if ( !isset( $_POST[$meteorslides_meta_box['name'].'_noncename'] ) || !wp_verify_nonce( $_POST[$meteorslides_meta_box['name'].'_noncename'], plugin_basename(__FILE__) ) ) {
|
116 |
+
|
117 |
+
return $post_id;
|
118 |
+
|
119 |
+
}
|
120 |
+
|
121 |
+
if ( 'page' == $_POST['post_type'] ) {
|
122 |
+
|
123 |
+
if( !current_user_can( 'edit_page', $post_id ) )
|
124 |
+
|
125 |
+
return $post_id;
|
126 |
+
|
127 |
+
}
|
128 |
+
|
129 |
+
else {
|
130 |
+
|
131 |
+
if( !current_user_can( 'edit_post', $post_id ) )
|
132 |
+
|
133 |
+
return $post_id;
|
134 |
+
|
135 |
+
}
|
136 |
+
|
137 |
+
$data = $_POST[$meteorslides_meta_box['name'].'_value'];
|
138 |
+
|
139 |
+
if ( get_post_meta( $post_id, $meteorslides_meta_box['name'].'_value' ) == "" ) {
|
140 |
+
|
141 |
+
add_post_meta( $post_id, $meteorslides_meta_box['name'].'_value', $data, true );
|
142 |
+
|
143 |
+
}
|
144 |
+
|
145 |
+
elseif ( $data != get_post_meta( $post_id, $meteorslides_meta_box['name'].'_value', true ) ) {
|
146 |
+
|
147 |
+
update_post_meta( $post_id, $meteorslides_meta_box['name'].'_value', $data );
|
148 |
+
|
149 |
+
}
|
150 |
+
|
151 |
+
elseif ( $data == "" ) {
|
152 |
+
|
153 |
+
delete_post_meta( $post_id, $meteorslides_meta_box['name'].'_value', get_post_meta( $post_id, $meteorslides_meta_box['name'].'_value', true ) );
|
154 |
+
|
155 |
+
}
|
156 |
+
|
157 |
+
}
|
158 |
+
|
159 |
+
}
|
160 |
+
|
161 |
+
// Adds slide image and link to slides column view
|
162 |
+
|
163 |
+
add_filter( 'manage_edit-slide_columns', 'meteorslides_edit_columns' );
|
164 |
+
|
165 |
+
function meteorslides_edit_columns( $columns ) {
|
166 |
+
|
167 |
+
$columns = array(
|
168 |
+
|
169 |
+
'cb' => '<input type="checkbox" />',
|
170 |
+
'slide' => __( 'Slide Image', 'meteor-slides' ),
|
171 |
+
'title' => __( 'Slide Title', 'meteor-slides' ),
|
172 |
+
'slide-link' => __( 'Slide Link', 'meteor-slides' ),
|
173 |
+
'date' => __( 'Date', 'meteor-slides' )
|
174 |
+
|
175 |
+
);
|
176 |
+
|
177 |
+
return $columns;
|
178 |
+
|
179 |
+
}
|
180 |
+
|
181 |
+
add_action( 'manage_posts_custom_column', 'meteorslides_custom_columns' );
|
182 |
+
|
183 |
+
function meteorslides_custom_columns( $column ) {
|
184 |
+
|
185 |
+
global $post;
|
186 |
+
|
187 |
+
switch ( $column ) {
|
188 |
+
|
189 |
+
case 'slide' :
|
190 |
+
|
191 |
+
echo the_post_thumbnail('featured-slide-thumb');
|
192 |
+
|
193 |
+
break;
|
194 |
+
|
195 |
+
case 'slide-link' :
|
196 |
+
|
197 |
+
if ( get_post_meta($post->ID, "slide_url_value", $single = true) != "" ) {
|
198 |
+
|
199 |
+
echo "<a href='" . get_post_meta($post->ID, "slide_url_value", $single = true) . "'>" . get_post_meta($post->ID, "slide_url_value", $single = true) . "</a>";
|
200 |
+
|
201 |
+
}
|
202 |
+
|
203 |
+
else {
|
204 |
+
|
205 |
+
_e('No Link', 'meteor-slides');
|
206 |
+
|
207 |
+
}
|
208 |
+
|
209 |
+
break;
|
210 |
+
|
211 |
+
}
|
212 |
+
|
213 |
+
}
|
214 |
+
|
215 |
+
//display contextual help for slides
|
216 |
+
|
217 |
+
add_action( 'contextual_help', 'meteorslides_add_help_text', 10, 3 );
|
218 |
+
|
219 |
+
function meteorslides_add_help_text($contextual_help, $screen_id, $screen) {
|
220 |
+
|
221 |
+
if ('slide' == $screen->id ) {
|
222 |
+
|
223 |
+
$contextual_help =
|
224 |
+
'<h3>' . __( 'Add New Slide', 'meteor-slides' ) . '</h3>' .
|
225 |
+
'<p>' . __( '<strong>Title:</strong> Each slide needs a title in order to be published.', 'meteor-slides' ) . '</p>' .
|
226 |
+
'<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>' .
|
227 |
+
'<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>' .
|
228 |
+
'<p>' . __( '<strong>Slideshows:</strong> A slide can be added to a slideshow by selecting the slideshow from the Slideshows metabox.', 'meteor-slides' ) . '</p>' .
|
229 |
+
'<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>' .
|
230 |
+
'<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
|
231 |
+
'<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/using-meteor-slides/" target="_blank">Using Meteor Slides Documentation</a>', 'meteor-slides' ) . '</p>' .
|
232 |
+
'<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
|
233 |
+
|
234 |
+
} elseif ( 'edit-slide' == $screen->id ) {
|
235 |
+
|
236 |
+
$contextual_help =
|
237 |
+
|
238 |
+
'<h3>' . __( 'Slides', 'meteor-slides' ) . '</h3>' .
|
239 |
+
'<p>' . __( 'Choose a slide to edit, or add a new slide.', 'meteor-slides' ) . '</p>' .
|
240 |
+
'<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
|
241 |
+
'<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/installation/" target="_blank">Meteor Slides Documentation</a>', 'meteor-slides' ) . '</p>' .
|
242 |
+
'<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
|
243 |
+
|
244 |
+
} elseif ( 'edit-slideshow' == $screen->id ) {
|
245 |
+
|
246 |
+
$contextual_help =
|
247 |
+
|
248 |
+
'<h3>' . __( 'Slideshows', 'meteor-slides' ) . '</h3>' .
|
249 |
+
'<p>' . __( 'Slides can be organized into slideshows, just as posts can be organized into categories.', 'meteor-slides' ) . '</p>' .
|
250 |
+
'<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>' .
|
251 |
+
'<p>' . __( '<strong>Add Slide to Slideshow:</strong> Edit a slide and select the slideshow in the Slideshows metabox.', 'meteor-slides' ) . '</p>' .
|
252 |
+
'<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>' .
|
253 |
+
'<p>' . __( '<code>[meteor_slideshow slideshow="slug"]</code>', 'meteor-slides' ) . '</p>' .
|
254 |
+
'<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
|
255 |
+
'<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/multiple-slideshows/" target="_blank">Multiple Slideshows Documentation</a>', 'meteor-slides' ) . '</p>' .
|
256 |
+
'<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
|
257 |
+
|
258 |
+
} elseif ( 'slide_page_slides_settings' == $screen->id ) {
|
259 |
+
|
260 |
+
$contextual_help =
|
261 |
+
|
262 |
+
'<h3>' . __( 'Configure Slideshow', 'meteor-slides' ) . '</h3>' .
|
263 |
+
'<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>' .
|
264 |
+
'<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>' .
|
265 |
+
'<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>' .
|
266 |
+
'<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>' .
|
267 |
+
'<p>' . __( "<strong>Transition Style:</strong> Choose the effect that is used to transition between slides.", "meteor-slides" ) . '</p>' .
|
268 |
+
'<p>' . __( "<strong>Transition Speed:</strong> Enter the number of seconds that it should take for a transition between slides to complete.", "meteor-slides" ) . '</p>' .
|
269 |
+
'<p>' . __( "<strong>Slide Duration:</strong> Enter the number of seconds that each slide should be paused on in the slideshow.", "meteor-slides" ) . '</p>' .
|
270 |
+
'<p>' . __( "<strong>Slideshow Navigation:</strong> ", "meteor-slides" ) . '</p>' .
|
271 |
+
'<ul>' .
|
272 |
+
'<li>' . __( "<strong>None:</strong> The default option, no navigation is added to the slideshow.", "meteor-slides" ) . '</li>' .
|
273 |
+
'<li>' . __( "<strong>Previous/Next:</strong> Left and right buttons are added to the slideshow to cycle through the slides.", "meteor-slides" ) . '</li>' .
|
274 |
+
'<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>' .
|
275 |
+
'<li>' . __( "<strong>Both:</strong> Previous/Next and Paged navigation are both added to the slideshow.", "meteor-slides" ) . '</li>' .
|
276 |
+
'</ul>' .
|
277 |
+
'<h3>' . __( 'Add Slideshow', 'meteor-slides' ) . '</h3>' .
|
278 |
+
'<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>' .
|
279 |
+
'<h3>' . __( 'For more information', 'meteor-slides' ) . '</h3>' .
|
280 |
+
'<p>' . __( '<a href="http://www.jleuze.com/plugins/meteor-slides/installation/" target="_blank">Meteor Slides Documentation</a>', 'meteor-slides' ) . '</p>' .
|
281 |
+
'<p>' . __( '<a href="http://wordpress.org/tags/meteor-slides" target="_blank">Plugin Support Forum</a>', 'meteor-slides' ) . '</p>';
|
282 |
+
|
283 |
+
}
|
284 |
+
|
285 |
+
return $contextual_help;
|
286 |
+
|
287 |
+
}
|
288 |
+
|
289 |
+
// Adds Slideshow settings page
|
290 |
+
|
291 |
+
function meteorslides_set_options_cap(){
|
292 |
+
|
293 |
+
if ( function_exists( 'members_get_capabilities' ) ) {
|
294 |
+
|
295 |
+
return 'meteorslides_manage_options';
|
296 |
+
|
297 |
+
} else {
|
298 |
+
|
299 |
+
return 'manage_options';
|
300 |
+
|
301 |
+
}
|
302 |
+
|
303 |
+
}
|
304 |
+
|
305 |
+
add_filter( 'option_page_capability_meteorslides_options', 'meteorslides_options_cap' );
|
306 |
+
|
307 |
+
function meteorslides_options_cap( $capability ) {
|
308 |
+
|
309 |
+
if ( function_exists( 'members_get_capabilities' ) ) {
|
310 |
+
|
311 |
+
return 'meteorslides_manage_options';
|
312 |
+
|
313 |
+
} else {
|
314 |
+
|
315 |
+
return 'manage_options';
|
316 |
+
|
317 |
+
}
|
318 |
+
|
319 |
+
}
|
320 |
+
|
321 |
+
add_action( 'admin_menu', 'meteorslides_menu' );
|
322 |
+
|
323 |
+
function meteorslides_menu() {
|
324 |
+
|
325 |
+
add_submenu_page( 'edit.php?post_type=slide', __( 'Slides Settings', 'meteor-slides' ), __( 'Settings', 'meteor-slides' ), meteorslides_set_options_cap(), 'slides_settings', 'meteorslides_settings_page' );
|
326 |
+
|
327 |
+
}
|
328 |
+
|
329 |
+
function meteorslides_settings_page() {
|
330 |
+
|
331 |
+
include( 'meteor-slides-settings.php' );
|
332 |
+
|
333 |
+
}
|
334 |
+
|
335 |
+
// Add custom slide capabilities for the Members plugin
|
336 |
+
|
337 |
+
add_action( 'admin_init', 'meteorslides_members_capabilities' );
|
338 |
+
|
339 |
+
function meteorslides_members_capabilities() {
|
340 |
+
|
341 |
+
if ( function_exists( 'members_get_capabilities' ) ) {
|
342 |
+
|
343 |
+
add_filter( 'members_get_capabilities', 'meteorslides_add_members_caps' );
|
344 |
+
|
345 |
+
}
|
346 |
+
|
347 |
+
}
|
348 |
+
|
349 |
+
function meteorslides_add_members_caps( $caps ) {
|
350 |
+
|
351 |
+
$caps[] = 'meteorslides_manage_options';
|
352 |
+
$caps[] = 'meteorslides_edit_slide';
|
353 |
+
$caps[] = 'meteorslides_edit_slides';
|
354 |
+
$caps[] = 'meteorslides_edit_others_slides';
|
355 |
+
$caps[] = 'meteorslides_publish_slides';
|
356 |
+
$caps[] = 'meteorslides_read_slides';
|
357 |
+
$caps[] = 'meteorslides_read_private_slides';
|
358 |
+
$caps[] = 'meteorslides_delete_slide';
|
359 |
+
$caps[] = 'meteorslides_manage_slideshows';
|
360 |
+
|
361 |
+
return $caps;
|
362 |
+
|
363 |
+
}
|
364 |
+
|
365 |
+
// Adds link to settings page on plugins page
|
366 |
+
|
367 |
+
add_filter( 'plugin_action_links', 'meteorslides_settings_link', 10, 2 );
|
368 |
+
|
369 |
+
function meteorslides_settings_link( $links, $file ) {
|
370 |
+
|
371 |
+
if ( $file == plugin_basename( 'meteor-slides/meteor-slides-plugin.php' ) ) {
|
372 |
+
|
373 |
+
$links[] = '<a href="edit.php?post_type=slide&page=slides_settings">'.__( 'Settings', 'meteor-slides' ).'</a>';
|
374 |
+
|
375 |
+
}
|
376 |
+
|
377 |
+
return $links;
|
378 |
+
|
379 |
+
}
|
380 |
+
|
381 |
+
// Register options for settings page
|
382 |
+
|
383 |
+
add_action( 'admin_init', 'meteorslides_register_settings' );
|
384 |
+
|
385 |
+
function meteorslides_register_settings() {
|
386 |
+
|
387 |
+
register_setting( 'meteorslides_options', 'meteorslides_options' );
|
388 |
+
|
389 |
+
add_settings_section( 'meteorslides_slideshow', __( 'Configure Slideshow', 'meteor-slides' ), 'meteorslides_section_text', 'meteorslides' );
|
390 |
+
|
391 |
+
add_settings_field( 'slideshow_quantity', __( 'Slideshow Quantity', 'meteor-slides' ), 'slideshow_quantity', 'meteorslides', 'meteorslides_slideshow' );
|
392 |
+
|
393 |
+
add_settings_field( 'slide_height', __( 'Slide Height', 'meteor-slides' ), 'slide_height', 'meteorslides', 'meteorslides_slideshow' );
|
394 |
+
|
395 |
+
add_settings_field( 'slide_width', __( 'Slide Width', 'meteor-slides' ), 'slide_width', 'meteorslides', 'meteorslides_slideshow' );
|
396 |
+
|
397 |
+
add_settings_field( 'transition_style', __( 'Transition Style', 'meteor-slides' ), 'transition_style', 'meteorslides', 'meteorslides_slideshow' );
|
398 |
+
|
399 |
+
add_settings_field( 'transition_speed', __( 'Transition Speed', 'meteor-slides' ), 'transition_speed', 'meteorslides', 'meteorslides_slideshow' );
|
400 |
+
|
401 |
+
add_settings_field( 'slide_duration', __( 'Slide Duration', 'meteor-slides' ), 'slide_duration', 'meteorslides', 'meteorslides_slideshow' );
|
402 |
+
|
403 |
+
add_settings_field( 'slideshow_navigation', __( 'Slideshow Navigation', 'meteor-slides' ), 'slideshow_navigation', 'meteorslides', 'meteorslides_slideshow' );
|
404 |
+
|
405 |
+
}
|
406 |
+
|
407 |
+
// Validates values for options on settings page
|
408 |
+
|
409 |
+
function meteorslides_options_validate( $input ) {
|
410 |
+
|
411 |
+
$options = get_option( 'meteorslides_options' );
|
412 |
+
|
413 |
+
$options['slideshow_quantity'] = trim( $input['slideshow_quantity'] );
|
414 |
+
|
415 |
+
if ( !preg_match( '/^[0-9]{1,3}$/i', $options['slideshow_quantity'] ) ) {
|
416 |
+
|
417 |
+
$options['slideshow_quantity'] = '';
|
418 |
+
|
419 |
+
}
|
420 |
+
|
421 |
+
$options['slide_height'] = trim( $input['slide_height'] );
|
422 |
+
|
423 |
+
if ( !preg_match( '/^[0-9]{1,4}$/i', $options['slide_height'] ) ) {
|
424 |
+
|
425 |
+
$options['slide_height'] = '';
|
426 |
+
|
427 |
+
}
|
428 |
+
|
429 |
+
$options['slide_width'] = trim( $input['slide_width'] );
|
430 |
+
|
431 |
+
if ( !preg_match( '/^[0-9]{1,5}$/i', $options['slide_width'] ) ) {
|
432 |
+
|
433 |
+
$options['slide_width'] = '';
|
434 |
+
|
435 |
+
}
|
436 |
+
|
437 |
+
$options['transition_style'] = trim( $input['transition_style'] );
|
438 |
+
|
439 |
+
if ( !preg_match( '/^[a-z]{4,20}$/i', $options['transition_style'] ) ) {
|
440 |
+
|
441 |
+
$options['transition_style'] = '';
|
442 |
+
|
443 |
+
}
|
444 |
+
|
445 |
+
$options['transition_speed'] = trim( $input['transition_speed'] );
|
446 |
+
|
447 |
+
if ( !preg_match( '/^[0-9]{1,3}$/i', $options['transition_speed'] ) ) {
|
448 |
+
|
449 |
+
$options['transition_speed'] = '';
|
450 |
+
|
451 |
+
}
|
452 |
+
|
453 |
+
$options['slide_duration'] = trim( $input['slide_duration'] );
|
454 |
+
|
455 |
+
if ( !preg_match( '/^[0-9]{1,3}$/i', $options['slide_duration'] ) ) {
|
456 |
+
|
457 |
+
$options['slide_duration'] = '';
|
458 |
+
|
459 |
+
}
|
460 |
+
|
461 |
+
$options['slideshow_navigation'] = trim( $input['slideshow_navigation'] );
|
462 |
+
|
463 |
+
if ( !preg_match( '/^[a-z]{4,20}$/i', $options['slideshow_navigation'] ) ) {
|
464 |
+
|
465 |
+
$options['slideshow_navigation'] = '';
|
466 |
+
|
467 |
+
}
|
468 |
+
|
469 |
+
return $options;
|
470 |
+
|
471 |
+
}
|
472 |
+
|
473 |
+
// Adds translation support for language files
|
474 |
+
|
475 |
+
add_action( 'plugins_loaded', 'meteorslides_localization' );
|
476 |
+
|
477 |
+
function meteorslides_localization() {
|
478 |
+
|
479 |
+
load_plugin_textdomain( 'meteor-slides', false, '/meteor-slides/languages/' );
|
480 |
+
|
481 |
+
}
|
482 |
+
|
483 |
+
// Adds CSS for the Slides admin pages
|
484 |
+
|
485 |
+
add_action( 'admin_enqueue_scripts', 'meteorslides_admin_css' );
|
486 |
+
|
487 |
+
function meteorslides_admin_css() {
|
488 |
+
|
489 |
+
global $post_type;
|
490 |
+
|
491 |
+
if ( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'slide' ) || ( isset( $post_type ) && $post_type == 'slide' ) ) {
|
492 |
+
|
493 |
+
wp_enqueue_style( 'meteor-slides-admin', plugins_url( 'meteor-slides/css/meteor-slides-admin.css' ), array(), '1.0' );
|
494 |
+
|
495 |
+
}
|
496 |
+
|
497 |
+
}
|
498 |
+
|
499 |
+
?>
|
meteor-slides-settings.php → includes/meteor-slides-settings.php
RENAMED
@@ -1,205 +1,205 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Populate the sections and settings of the options page
|
4 |
-
|
5 |
-
function meteorslides_section_text() {
|
6 |
-
|
7 |
-
echo "<p>". __( 'Set up your slideshow using the options below.', 'meteor-slides' ) ."</p>";
|
8 |
-
|
9 |
-
}
|
10 |
-
|
11 |
-
function slideshow_quantity() {
|
12 |
-
|
13 |
-
$slides = __( 'slides', 'meteor-slides' );
|
14 |
-
|
15 |
-
$options = get_option('meteorslides_options');
|
16 |
-
|
17 |
-
echo "<input id='slideshow_quantity' name='meteorslides_options[slideshow_quantity]' size='20' type='text' value='{$options['slideshow_quantity']}' /> $slides";
|
18 |
-
|
19 |
-
}
|
20 |
-
|
21 |
-
function slide_height() {
|
22 |
-
|
23 |
-
$px = __( 'px', 'meteor-slides' );
|
24 |
-
|
25 |
-
$options = get_option('meteorslides_options');
|
26 |
-
|
27 |
-
echo "<input id='slide_height' name='meteorslides_options[slide_height]' size='20' type='text' value='{$options['slide_height']}' /> $px";
|
28 |
-
|
29 |
-
}
|
30 |
-
|
31 |
-
function slide_width() {
|
32 |
-
|
33 |
-
$px = __( 'px', 'meteor-slides' );
|
34 |
-
|
35 |
-
$options = get_option('meteorslides_options');
|
36 |
-
|
37 |
-
echo "<input id='slide_width' name='meteorslides_options[slide_width]' size='20' type='text' value='{$options['slide_width']}' /> $px";
|
38 |
-
|
39 |
-
}
|
40 |
-
|
41 |
-
function transition_style() {
|
42 |
-
|
43 |
-
$blindX = __( 'blindX', 'meteor-slides' );
|
44 |
-
$blindY = __( 'blindY', 'meteor-slides' );
|
45 |
-
$blindZ = __( 'blindZ', 'meteor-slides' );
|
46 |
-
$cover = __( 'cover', 'meteor-slides' );
|
47 |
-
$curtainX = __( 'curtainX', 'meteor-slides' );
|
48 |
-
$curtainY = __( 'curtainY', 'meteor-slides' );
|
49 |
-
$fade = __( 'fade', 'meteor-slides' );
|
50 |
-
$fadeZoom = __( 'fadeZoom', 'meteor-slides' );
|
51 |
-
$growX = __( 'growX', 'meteor-slides' );
|
52 |
-
$growY = __( 'growY', 'meteor-slides' );
|
53 |
-
$none = __( 'none', 'meteor-slides' );
|
54 |
-
$scrollUp = __( 'scrollUp', 'meteor-slides' );
|
55 |
-
$scrollDown = __( 'scrollDown', 'meteor-slides' );
|
56 |
-
$scrollLeft = __( 'scrollLeft', 'meteor-slides' );
|
57 |
-
$scrollRight = __( 'scrollRight', 'meteor-slides' );
|
58 |
-
$scrollHorz = __( 'scrollHorz', 'meteor-slides' );
|
59 |
-
$scrollVert = __( 'scrollVert', 'meteor-slides' );
|
60 |
-
$slideX = __( 'slideX', 'meteor-slides' );
|
61 |
-
$slideY = __( 'slideY', 'meteor-slides' );
|
62 |
-
$shuffle = __( 'shuffle', 'meteor-slides' );
|
63 |
-
$turnUp = __( 'turnUp', 'meteor-slides' );
|
64 |
-
$turnDown = __( 'turnDown', 'meteor-slides' );
|
65 |
-
$turnLeft = __( 'turnLeft', 'meteor-slides' );
|
66 |
-
$turnRight = __( 'turnRight', 'meteor-slides' );
|
67 |
-
$uncover = __( 'uncover', 'meteor-slides' );
|
68 |
-
$wipe = __( 'wipe', 'meteor-slides' );
|
69 |
-
$zoom = __( 'zoom', 'meteor-slides' );
|
70 |
-
|
71 |
-
$options = get_option( 'meteorslides_options' );
|
72 |
-
|
73 |
-
$item = array(
|
74 |
-
|
75 |
-
'blindX' => $blindX,
|
76 |
-
'blindY' => $blindY,
|
77 |
-
'blindZ' => $blindZ,
|
78 |
-
'cover' => $cover,
|
79 |
-
'curtainX' => $curtainX,
|
80 |
-
'curtainY' => $curtainY,
|
81 |
-
'fade' => $fade,
|
82 |
-
'fadeZoom' => $fadeZoom,
|
83 |
-
'growX' => $growX,
|
84 |
-
'growY' => $growY,
|
85 |
-
'none' => $none,
|
86 |
-
'scrollUp' => $scrollUp,
|
87 |
-
'scrollDown' => $scrollDown,
|
88 |
-
'scrollLeft' => $scrollLeft,
|
89 |
-
'scrollRight' => $scrollRight,
|
90 |
-
'scrollHorz' => $scrollHorz,
|
91 |
-
'scrollVert' => $scrollVert,
|
92 |
-
'slideX' => $slideX,
|
93 |
-
'slideY' => $slideY,
|
94 |
-
'shuffle' => $shuffle,
|
95 |
-
'turnUp' => $turnUp,
|
96 |
-
'turnDown' => $turnDown,
|
97 |
-
'turnLeft' => $turnLeft,
|
98 |
-
'turnRight' => $turnRight,
|
99 |
-
'uncover' => $uncover,
|
100 |
-
'wipe' => $wipe,
|
101 |
-
'zoom' => $zoom
|
102 |
-
|
103 |
-
);
|
104 |
-
|
105 |
-
echo "<select id='transition_style' name='meteorslides_options[transition_style]' style='width:142px;'>";
|
106 |
-
|
107 |
-
while ( list( $key, $val ) = each( $item ) ) {
|
108 |
-
|
109 |
-
$selected = ( $options['transition_style']==$key ) ? ' selected="selected"' : '';
|
110 |
-
|
111 |
-
echo "<option value='$key'$selected>$val</option>";
|
112 |
-
|
113 |
-
}
|
114 |
-
|
115 |
-
echo "</select>";
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
function transition_speed() {
|
120 |
-
|
121 |
-
$seconds = __( 'seconds', 'meteor-slides' );
|
122 |
-
|
123 |
-
$options = get_option( 'meteorslides_options' );
|
124 |
-
|
125 |
-
echo "<input id='transition_speed' name='meteorslides_options[transition_speed]' size='20' type='text' value='{$options['transition_speed']}' /> $seconds";
|
126 |
-
|
127 |
-
}
|
128 |
-
|
129 |
-
function slide_duration() {
|
130 |
-
|
131 |
-
$seconds = __( 'seconds', 'meteor-slides' );
|
132 |
-
|
133 |
-
$options = get_option( 'meteorslides_options' );
|
134 |
-
|
135 |
-
echo "<input id='slide_duration' name='meteorslides_options[slide_duration]' size='20' type='text' value='{$options['slide_duration']}' /> $seconds";
|
136 |
-
|
137 |
-
}
|
138 |
-
|
139 |
-
function slideshow_navigation() {
|
140 |
-
|
141 |
-
$navnone = __( 'None', 'meteor-slides' );
|
142 |
-
$navprevnext = __( 'Previous/Next', 'meteor-slides' );
|
143 |
-
$navpaged = __( 'Paged', 'meteor-slides' );
|
144 |
-
$navboth = __( 'Both', 'meteor-slides' );
|
145 |
-
|
146 |
-
$options = get_option( 'meteorslides_options' );
|
147 |
-
|
148 |
-
$item = array(
|
149 |
-
|
150 |
-
'navnone' => $navnone,
|
151 |
-
'navprevnext' => $navprevnext,
|
152 |
-
'navpaged' => $navpaged,
|
153 |
-
'navboth' => $navboth
|
154 |
-
|
155 |
-
);
|
156 |
-
|
157 |
-
echo "<select id='slideshow_navigation' name='meteorslides_options[slideshow_navigation]' style='width:142px;'>";
|
158 |
-
|
159 |
-
while ( list( $key, $val ) = each( $item ) ) {
|
160 |
-
|
161 |
-
$selected = ( $options['slideshow_navigation']==$key ) ? ' selected="selected"' : '';
|
162 |
-
|
163 |
-
echo "<option value='$key'$selected>$val</option>";
|
164 |
-
|
165 |
-
}
|
166 |
-
|
167 |
-
echo "</select>";
|
168 |
-
|
169 |
-
}
|
170 |
-
|
171 |
-
?>
|
172 |
-
|
173 |
-
<div class="wrap">
|
174 |
-
|
175 |
-
<div id="icon-edit" class="icon32"><br /></div>
|
176 |
-
|
177 |
-
<h2><?php _e( 'Meteor Slides Settings', 'meteor-slides' ); ?></h2>
|
178 |
-
|
179 |
-
<form action="options.php" method="post">
|
180 |
-
|
181 |
-
<?php // Adds options to settings page
|
182 |
-
|
183 |
-
settings_fields( 'meteorslides_options' );
|
184 |
-
|
185 |
-
do_settings_sections( 'meteorslides' );
|
186 |
-
|
187 |
-
?>
|
188 |
-
|
189 |
-
<p class="submit">
|
190 |
-
|
191 |
-
<input name="Submit" type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'meteor-slides' ) ?>" />
|
192 |
-
|
193 |
-
</p>
|
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><?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?></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 |
-
|
205 |
</div><!-- .wrap -->
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Populate the sections and settings of the options page
|
4 |
+
|
5 |
+
function meteorslides_section_text() {
|
6 |
+
|
7 |
+
echo "<p>". __( 'Set up your slideshow using the options below.', 'meteor-slides' ) ."</p>";
|
8 |
+
|
9 |
+
}
|
10 |
+
|
11 |
+
function slideshow_quantity() {
|
12 |
+
|
13 |
+
$slides = __( 'slides', 'meteor-slides' );
|
14 |
+
|
15 |
+
$options = get_option('meteorslides_options');
|
16 |
+
|
17 |
+
echo "<input id='slideshow_quantity' name='meteorslides_options[slideshow_quantity]' size='20' type='text' value='{$options['slideshow_quantity']}' /> $slides";
|
18 |
+
|
19 |
+
}
|
20 |
+
|
21 |
+
function slide_height() {
|
22 |
+
|
23 |
+
$px = __( 'px', 'meteor-slides' );
|
24 |
+
|
25 |
+
$options = get_option('meteorslides_options');
|
26 |
+
|
27 |
+
echo "<input id='slide_height' name='meteorslides_options[slide_height]' size='20' type='text' value='{$options['slide_height']}' /> $px";
|
28 |
+
|
29 |
+
}
|
30 |
+
|
31 |
+
function slide_width() {
|
32 |
+
|
33 |
+
$px = __( 'px', 'meteor-slides' );
|
34 |
+
|
35 |
+
$options = get_option('meteorslides_options');
|
36 |
+
|
37 |
+
echo "<input id='slide_width' name='meteorslides_options[slide_width]' size='20' type='text' value='{$options['slide_width']}' /> $px";
|
38 |
+
|
39 |
+
}
|
40 |
+
|
41 |
+
function transition_style() {
|
42 |
+
|
43 |
+
$blindX = __( 'blindX', 'meteor-slides' );
|
44 |
+
$blindY = __( 'blindY', 'meteor-slides' );
|
45 |
+
$blindZ = __( 'blindZ', 'meteor-slides' );
|
46 |
+
$cover = __( 'cover', 'meteor-slides' );
|
47 |
+
$curtainX = __( 'curtainX', 'meteor-slides' );
|
48 |
+
$curtainY = __( 'curtainY', 'meteor-slides' );
|
49 |
+
$fade = __( 'fade', 'meteor-slides' );
|
50 |
+
$fadeZoom = __( 'fadeZoom', 'meteor-slides' );
|
51 |
+
$growX = __( 'growX', 'meteor-slides' );
|
52 |
+
$growY = __( 'growY', 'meteor-slides' );
|
53 |
+
$none = __( 'none', 'meteor-slides' );
|
54 |
+
$scrollUp = __( 'scrollUp', 'meteor-slides' );
|
55 |
+
$scrollDown = __( 'scrollDown', 'meteor-slides' );
|
56 |
+
$scrollLeft = __( 'scrollLeft', 'meteor-slides' );
|
57 |
+
$scrollRight = __( 'scrollRight', 'meteor-slides' );
|
58 |
+
$scrollHorz = __( 'scrollHorz', 'meteor-slides' );
|
59 |
+
$scrollVert = __( 'scrollVert', 'meteor-slides' );
|
60 |
+
$slideX = __( 'slideX', 'meteor-slides' );
|
61 |
+
$slideY = __( 'slideY', 'meteor-slides' );
|
62 |
+
$shuffle = __( 'shuffle', 'meteor-slides' );
|
63 |
+
$turnUp = __( 'turnUp', 'meteor-slides' );
|
64 |
+
$turnDown = __( 'turnDown', 'meteor-slides' );
|
65 |
+
$turnLeft = __( 'turnLeft', 'meteor-slides' );
|
66 |
+
$turnRight = __( 'turnRight', 'meteor-slides' );
|
67 |
+
$uncover = __( 'uncover', 'meteor-slides' );
|
68 |
+
$wipe = __( 'wipe', 'meteor-slides' );
|
69 |
+
$zoom = __( 'zoom', 'meteor-slides' );
|
70 |
+
|
71 |
+
$options = get_option( 'meteorslides_options' );
|
72 |
+
|
73 |
+
$item = array(
|
74 |
+
|
75 |
+
'blindX' => $blindX,
|
76 |
+
'blindY' => $blindY,
|
77 |
+
'blindZ' => $blindZ,
|
78 |
+
'cover' => $cover,
|
79 |
+
'curtainX' => $curtainX,
|
80 |
+
'curtainY' => $curtainY,
|
81 |
+
'fade' => $fade,
|
82 |
+
'fadeZoom' => $fadeZoom,
|
83 |
+
'growX' => $growX,
|
84 |
+
'growY' => $growY,
|
85 |
+
'none' => $none,
|
86 |
+
'scrollUp' => $scrollUp,
|
87 |
+
'scrollDown' => $scrollDown,
|
88 |
+
'scrollLeft' => $scrollLeft,
|
89 |
+
'scrollRight' => $scrollRight,
|
90 |
+
'scrollHorz' => $scrollHorz,
|
91 |
+
'scrollVert' => $scrollVert,
|
92 |
+
'slideX' => $slideX,
|
93 |
+
'slideY' => $slideY,
|
94 |
+
'shuffle' => $shuffle,
|
95 |
+
'turnUp' => $turnUp,
|
96 |
+
'turnDown' => $turnDown,
|
97 |
+
'turnLeft' => $turnLeft,
|
98 |
+
'turnRight' => $turnRight,
|
99 |
+
'uncover' => $uncover,
|
100 |
+
'wipe' => $wipe,
|
101 |
+
'zoom' => $zoom
|
102 |
+
|
103 |
+
);
|
104 |
+
|
105 |
+
echo "<select id='transition_style' name='meteorslides_options[transition_style]' style='width:142px;'>";
|
106 |
+
|
107 |
+
while ( list( $key, $val ) = each( $item ) ) {
|
108 |
+
|
109 |
+
$selected = ( $options['transition_style']==$key ) ? ' selected="selected"' : '';
|
110 |
+
|
111 |
+
echo "<option value='$key'$selected>$val</option>";
|
112 |
+
|
113 |
+
}
|
114 |
+
|
115 |
+
echo "</select>";
|
116 |
+
|
117 |
+
}
|
118 |
+
|
119 |
+
function transition_speed() {
|
120 |
+
|
121 |
+
$seconds = __( 'seconds', 'meteor-slides' );
|
122 |
+
|
123 |
+
$options = get_option( 'meteorslides_options' );
|
124 |
+
|
125 |
+
echo "<input id='transition_speed' name='meteorslides_options[transition_speed]' size='20' type='text' value='{$options['transition_speed']}' /> $seconds";
|
126 |
+
|
127 |
+
}
|
128 |
+
|
129 |
+
function slide_duration() {
|
130 |
+
|
131 |
+
$seconds = __( 'seconds', 'meteor-slides' );
|
132 |
+
|
133 |
+
$options = get_option( 'meteorslides_options' );
|
134 |
+
|
135 |
+
echo "<input id='slide_duration' name='meteorslides_options[slide_duration]' size='20' type='text' value='{$options['slide_duration']}' /> $seconds";
|
136 |
+
|
137 |
+
}
|
138 |
+
|
139 |
+
function slideshow_navigation() {
|
140 |
+
|
141 |
+
$navnone = __( 'None', 'meteor-slides' );
|
142 |
+
$navprevnext = __( 'Previous/Next', 'meteor-slides' );
|
143 |
+
$navpaged = __( 'Paged', 'meteor-slides' );
|
144 |
+
$navboth = __( 'Both', 'meteor-slides' );
|
145 |
+
|
146 |
+
$options = get_option( 'meteorslides_options' );
|
147 |
+
|
148 |
+
$item = array(
|
149 |
+
|
150 |
+
'navnone' => $navnone,
|
151 |
+
'navprevnext' => $navprevnext,
|
152 |
+
'navpaged' => $navpaged,
|
153 |
+
'navboth' => $navboth
|
154 |
+
|
155 |
+
);
|
156 |
+
|
157 |
+
echo "<select id='slideshow_navigation' name='meteorslides_options[slideshow_navigation]' style='width:142px;'>";
|
158 |
+
|
159 |
+
while ( list( $key, $val ) = each( $item ) ) {
|
160 |
+
|
161 |
+
$selected = ( $options['slideshow_navigation']==$key ) ? ' selected="selected"' : '';
|
162 |
+
|
163 |
+
echo "<option value='$key'$selected>$val</option>";
|
164 |
+
|
165 |
+
}
|
166 |
+
|
167 |
+
echo "</select>";
|
168 |
+
|
169 |
+
}
|
170 |
+
|
171 |
+
?>
|
172 |
+
|
173 |
+
<div class="wrap">
|
174 |
+
|
175 |
+
<div id="icon-edit" class="icon32"><br /></div>
|
176 |
+
|
177 |
+
<h2><?php _e( 'Meteor Slides Settings', 'meteor-slides' ); ?></h2>
|
178 |
+
|
179 |
+
<form action="options.php" method="post">
|
180 |
+
|
181 |
+
<?php // Adds options to settings page
|
182 |
+
|
183 |
+
settings_fields( 'meteorslides_options' );
|
184 |
+
|
185 |
+
do_settings_sections( 'meteorslides' );
|
186 |
+
|
187 |
+
?>
|
188 |
+
|
189 |
+
<p class="submit">
|
190 |
+
|
191 |
+
<input name="Submit" type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'meteor-slides' ) ?>" />
|
192 |
+
|
193 |
+
</p>
|
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><?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?></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 |
+
|
205 |
</div><!-- .wrap -->
|
meteor-slideshow.php → includes/meteor-slideshow.php
RENAMED
File without changes
|
js/jquery.cycle.all.js
DELETED
@@ -1,1352 +0,0 @@
|
|
1 |
-
/*!
|
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) {
|
16 |
-
$.support = {
|
17 |
-
opacity: !($.browser.msie)
|
18 |
-
};
|
19 |
-
}
|
20 |
-
|
21 |
-
function debug(s) {
|
22 |
-
if ($.fn.cycle.debug)
|
23 |
-
log(s);
|
24 |
-
}
|
25 |
-
function log() {
|
26 |
-
if (window.console && window.console.log)
|
27 |
-
window.console.log('[cycle] ' + Array.prototype.join.call(arguments,' '));
|
28 |
-
};
|
29 |
-
|
30 |
-
// the options arg can be...
|
31 |
-
// a number - indicates an immediate transition should occur to the given slide index
|
32 |
-
// a string - 'pause', 'resume', 'toggle', 'next', 'prev', 'stop', 'destroy' or the name of a transition effect (ie, 'fade', 'zoom', etc)
|
33 |
-
// an object - properties to control the slideshow
|
34 |
-
//
|
35 |
-
// the arg2 arg can be...
|
36 |
-
// the name of an fx (only used in conjunction with a numeric value for 'options')
|
37 |
-
// the value true (only used in first arg == 'resume') and indicates
|
38 |
-
// that the resume should occur immediately (not wait for next timeout)
|
39 |
-
|
40 |
-
$.fn.cycle = function(options, arg2) {
|
41 |
-
var o = { s: this.selector, c: this.context };
|
42 |
-
|
43 |
-
// in 1.3+ we can fix mistakes with the ready state
|
44 |
-
if (this.length === 0 && options != 'stop') {
|
45 |
-
if (!$.isReady && o.s) {
|
46 |
-
log('DOM not ready, queuing slideshow');
|
47 |
-
$(function() {
|
48 |
-
$(o.s,o.c).cycle(options,arg2);
|
49 |
-
});
|
50 |
-
return this;
|
51 |
-
}
|
52 |
-
// is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
|
53 |
-
log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)'));
|
54 |
-
return this;
|
55 |
-
}
|
56 |
-
|
57 |
-
// iterate the matched nodeset
|
58 |
-
return this.each(function() {
|
59 |
-
var opts = handleArguments(this, options, arg2);
|
60 |
-
if (opts === false)
|
61 |
-
return;
|
62 |
-
|
63 |
-
opts.updateActivePagerLink = opts.updateActivePagerLink || $.fn.cycle.updateActivePagerLink;
|
64 |
-
|
65 |
-
// stop existing slideshow for this container (if there is one)
|
66 |
-
if (this.cycleTimeout)
|
67 |
-
clearTimeout(this.cycleTimeout);
|
68 |
-
this.cycleTimeout = this.cyclePause = 0;
|
69 |
-
|
70 |
-
var $cont = $(this);
|
71 |
-
var $slides = opts.slideExpr ? $(opts.slideExpr, this) : $cont.children();
|
72 |
-
var els = $slides.get();
|
73 |
-
if (els.length < 2) {
|
74 |
-
log('terminating; too few slides: ' + els.length);
|
75 |
-
return;
|
76 |
-
}
|
77 |
-
|
78 |
-
var opts2 = buildOptions($cont, $slides, els, opts, o);
|
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) {
|
86 |
-
startTime += (opts2.delay || 0);
|
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 |
-
};
|
94 |
-
|
95 |
-
// process the args that were passed to the plugin fn
|
96 |
-
function handleArguments(cont, options, arg2) {
|
97 |
-
if (cont.cycleStop == undefined)
|
98 |
-
cont.cycleStop = 0;
|
99 |
-
if (options === undefined || options === null)
|
100 |
-
options = {};
|
101 |
-
if (options.constructor == String) {
|
102 |
-
switch(options) {
|
103 |
-
case 'destroy':
|
104 |
-
case 'stop':
|
105 |
-
var opts = $(cont).data('cycle.opts');
|
106 |
-
if (!opts)
|
107 |
-
return false;
|
108 |
-
cont.cycleStop++; // callbacks look for change
|
109 |
-
if (cont.cycleTimeout)
|
110 |
-
clearTimeout(cont.cycleTimeout);
|
111 |
-
cont.cycleTimeout = 0;
|
112 |
-
$(cont).removeData('cycle.opts');
|
113 |
-
if (options == 'destroy')
|
114 |
-
destroy(opts);
|
115 |
-
return false;
|
116 |
-
case 'toggle':
|
117 |
-
cont.cyclePause = (cont.cyclePause === 1) ? 0 : 1;
|
118 |
-
checkInstantResume(cont.cyclePause, arg2, cont);
|
119 |
-
return false;
|
120 |
-
case 'pause':
|
121 |
-
cont.cyclePause = 1;
|
122 |
-
return false;
|
123 |
-
case 'resume':
|
124 |
-
cont.cyclePause = 0;
|
125 |
-
checkInstantResume(false, arg2, cont);
|
126 |
-
return false;
|
127 |
-
case 'prev':
|
128 |
-
case 'next':
|
129 |
-
var opts = $(cont).data('cycle.opts');
|
130 |
-
if (!opts) {
|
131 |
-
log('options not found, "prev/next" ignored');
|
132 |
-
return false;
|
133 |
-
}
|
134 |
-
$.fn.cycle[options](opts);
|
135 |
-
return false;
|
136 |
-
default:
|
137 |
-
options = { fx: options };
|
138 |
-
};
|
139 |
-
return options;
|
140 |
-
}
|
141 |
-
else if (options.constructor == Number) {
|
142 |
-
// go to the requested slide
|
143 |
-
var num = options;
|
144 |
-
options = $(cont).data('cycle.opts');
|
145 |
-
if (!options) {
|
146 |
-
log('options not found, can not advance slide');
|
147 |
-
return false;
|
148 |
-
}
|
149 |
-
if (num < 0 || num >= options.elements.length) {
|
150 |
-
log('invalid slide index: ' + num);
|
151 |
-
return false;
|
152 |
-
}
|
153 |
-
options.nextSlide = num;
|
154 |
-
if (cont.cycleTimeout) {
|
155 |
-
clearTimeout(cont.cycleTimeout);
|
156 |
-
cont.cycleTimeout = 0;
|
157 |
-
}
|
158 |
-
if (typeof arg2 == 'string')
|
159 |
-
options.oneTimeFx = arg2;
|
160 |
-
go(options.elements, options, 1, num >= options.currSlide);
|
161 |
-
return false;
|
162 |
-
}
|
163 |
-
return options;
|
164 |
-
|
165 |
-
function checkInstantResume(isPaused, arg2, cont) {
|
166 |
-
if (!isPaused && arg2 === true) { // resume now!
|
167 |
-
var options = $(cont).data('cycle.opts');
|
168 |
-
if (!options) {
|
169 |
-
log('options not found, can not resume');
|
170 |
-
return false;
|
171 |
-
}
|
172 |
-
if (cont.cycleTimeout) {
|
173 |
-
clearTimeout(cont.cycleTimeout);
|
174 |
-
cont.cycleTimeout = 0;
|
175 |
-
}
|
176 |
-
go(options.elements, options, 1, !options.backwards);
|
177 |
-
}
|
178 |
-
}
|
179 |
-
};
|
180 |
-
|
181 |
-
function removeFilter(el, opts) {
|
182 |
-
if (!$.support.opacity && opts.cleartype && el.style.filter) {
|
183 |
-
try { el.style.removeAttribute('filter'); }
|
184 |
-
catch(smother) {} // handle old opera versions
|
185 |
-
}
|
186 |
-
};
|
187 |
-
|
188 |
-
// unbind event handlers
|
189 |
-
function destroy(opts) {
|
190 |
-
if (opts.next)
|
191 |
-
$(opts.next).unbind(opts.prevNextEvent);
|
192 |
-
if (opts.prev)
|
193 |
-
$(opts.prev).unbind(opts.prevNextEvent);
|
194 |
-
|
195 |
-
if (opts.pager || opts.pagerAnchorBuilder)
|
196 |
-
$.each(opts.pagerAnchors || [], function() {
|
197 |
-
this.unbind().remove();
|
198 |
-
});
|
199 |
-
opts.pagerAnchors = null;
|
200 |
-
if (opts.destroy) // callback
|
201 |
-
opts.destroy(opts);
|
202 |
-
};
|
203 |
-
|
204 |
-
// one-time initialization
|
205 |
-
function buildOptions($cont, $slides, els, options, o) {
|
206 |
-
// support metadata plugin (v1.0 and v2.0)
|
207 |
-
var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {});
|
208 |
-
if (opts.autostop)
|
209 |
-
opts.countdown = opts.autostopCount || els.length;
|
210 |
-
|
211 |
-
var cont = $cont[0];
|
212 |
-
$cont.data('cycle.opts', opts);
|
213 |
-
opts.$cont = $cont;
|
214 |
-
opts.stopCount = cont.cycleStop;
|
215 |
-
opts.elements = els;
|
216 |
-
opts.before = opts.before ? [opts.before] : [];
|
217 |
-
opts.after = opts.after ? [opts.after] : [];
|
218 |
-
opts.after.unshift(function(){ opts.busy=0; });
|
219 |
-
|
220 |
-
// push some after callbacks
|
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 |
-
|
228 |
-
// clearType corrections
|
229 |
-
if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg)
|
230 |
-
clearTypeFix($slides);
|
231 |
-
|
232 |
-
// container requires non-static position so that slides can be position within
|
233 |
-
if ($cont.css('position') == 'static')
|
234 |
-
$cont.css('position', 'relative');
|
235 |
-
if (opts.width)
|
236 |
-
$cont.width(opts.width);
|
237 |
-
if (opts.height && opts.height != 'auto')
|
238 |
-
$cont.height(opts.height);
|
239 |
-
|
240 |
-
if (opts.startingSlide)
|
241 |
-
opts.startingSlide = parseInt(opts.startingSlide);
|
242 |
-
else if (opts.backwards)
|
243 |
-
opts.startingSlide = els.length - 1;
|
244 |
-
|
245 |
-
// if random, mix up the slide array
|
246 |
-
if (opts.random) {
|
247 |
-
opts.randomMap = [];
|
248 |
-
for (var i = 0; i < els.length; i++)
|
249 |
-
opts.randomMap.push(i);
|
250 |
-
opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;});
|
251 |
-
opts.randomIndex = 1;
|
252 |
-
opts.startingSlide = opts.randomMap[1];
|
253 |
-
}
|
254 |
-
else if (opts.startingSlide >= els.length)
|
255 |
-
opts.startingSlide = 0; // catch bogus input
|
256 |
-
opts.currSlide = opts.startingSlide || 0;
|
257 |
-
var first = opts.startingSlide;
|
258 |
-
|
259 |
-
// set position and zIndex on all the slides
|
260 |
-
$slides.css({position: 'absolute', top:0, left:0}).hide().each(function(i) {
|
261 |
-
var z;
|
262 |
-
if (opts.backwards)
|
263 |
-
z = first ? i <= first ? els.length + (i-first) : first-i : els.length-i;
|
264 |
-
else
|
265 |
-
z = first ? i >= first ? els.length - (i-first) : first-i : els.length-i;
|
266 |
-
$(this).css('z-index', z)
|
267 |
-
});
|
268 |
-
|
269 |
-
// make sure first slide is visible
|
270 |
-
$(els[first]).css('opacity',1).show(); // opacity bit needed to handle restart use case
|
271 |
-
removeFilter(els[first], opts);
|
272 |
-
|
273 |
-
// stretch slides
|
274 |
-
if (opts.fit && opts.width)
|
275 |
-
$slides.width(opts.width);
|
276 |
-
if (opts.fit && opts.height && opts.height != 'auto')
|
277 |
-
$slides.height(opts.height);
|
278 |
-
|
279 |
-
// stretch container
|
280 |
-
var reshape = opts.containerResize && !$cont.innerHeight();
|
281 |
-
if (reshape) { // do this only if container has no size http://tinyurl.com/da2oa9
|
282 |
-
var maxw = 0, maxh = 0;
|
283 |
-
for(var j=0; j < els.length; j++) {
|
284 |
-
var $e = $(els[j]), e = $e[0], w = $e.outerWidth(), h = $e.outerHeight();
|
285 |
-
if (!w) w = e.offsetWidth || e.width || $e.attr('width')
|
286 |
-
if (!h) h = e.offsetHeight || e.height || $e.attr('height');
|
287 |
-
maxw = w > maxw ? w : maxw;
|
288 |
-
maxh = h > maxh ? h : maxh;
|
289 |
-
}
|
290 |
-
if (maxw > 0 && maxh > 0)
|
291 |
-
$cont.css({width:maxw+'px',height:maxh+'px'});
|
292 |
-
}
|
293 |
-
|
294 |
-
if (opts.pause)
|
295 |
-
$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});
|
296 |
-
|
297 |
-
if (supportMultiTransitions(opts) === false)
|
298 |
-
return false;
|
299 |
-
|
300 |
-
// apparently a lot of people use image slideshows without height/width attributes on the images.
|
301 |
-
// Cycle 2.50+ requires the sizing info for every slide; this block tries to deal with that.
|
302 |
-
var requeue = false;
|
303 |
-
options.requeueAttempts = options.requeueAttempts || 0;
|
304 |
-
$slides.each(function() {
|
305 |
-
// try to get height/width of each slide
|
306 |
-
var $el = $(this);
|
307 |
-
this.cycleH = (opts.fit && opts.height) ? opts.height : ($el.height() || this.offsetHeight || this.height || $el.attr('height') || 0);
|
308 |
-
this.cycleW = (opts.fit && opts.width) ? opts.width : ($el.width() || this.offsetWidth || this.width || $el.attr('width') || 0);
|
309 |
-
|
310 |
-
if ( $el.is('img') ) {
|
311 |
-
// sigh.. sniffing, hacking, shrugging... this crappy hack tries to account for what browsers do when
|
312 |
-
// an image is being downloaded and the markup did not include sizing info (height/width attributes);
|
313 |
-
// there seems to be some "default" sizes used in this situation
|
314 |
-
var loadingIE = ($.browser.msie && this.cycleW == 28 && this.cycleH == 30 && !this.complete);
|
315 |
-
var loadingFF = ($.browser.mozilla && this.cycleW == 34 && this.cycleH == 19 && !this.complete);
|
316 |
-
var loadingOp = ($.browser.opera && ((this.cycleW == 42 && this.cycleH == 19) || (this.cycleW == 37 && this.cycleH == 17)) && !this.complete);
|
317 |
-
var loadingOther = (this.cycleH == 0 && this.cycleW == 0 && !this.complete);
|
318 |
-
// don't requeue for images that are still loading but have a valid size
|
319 |
-
if (loadingIE || loadingFF || loadingOp || loadingOther) {
|
320 |
-
if (o.s && opts.requeueOnImageNotLoaded && ++options.requeueAttempts < 100) { // track retry count so we don't loop forever
|
321 |
-
log(options.requeueAttempts,' - img slide not loaded, requeuing slideshow: ', this.src, this.cycleW, this.cycleH);
|
322 |
-
setTimeout(function() {$(o.s,o.c).cycle(options)}, opts.requeueTimeout);
|
323 |
-
requeue = true;
|
324 |
-
return false; // break each loop
|
325 |
-
}
|
326 |
-
else {
|
327 |
-
log('could not determine size of image: '+this.src, this.cycleW, this.cycleH);
|
328 |
-
}
|
329 |
-
}
|
330 |
-
}
|
331 |
-
return true;
|
332 |
-
});
|
333 |
-
|
334 |
-
if (requeue)
|
335 |
-
return false;
|
336 |
-
|
337 |
-
opts.cssBefore = opts.cssBefore || {};
|
338 |
-
opts.animIn = opts.animIn || {};
|
339 |
-
opts.animOut = opts.animOut || {};
|
340 |
-
|
341 |
-
$slides.not(':eq('+first+')').css(opts.cssBefore);
|
342 |
-
if (opts.cssFirst)
|
343 |
-
$($slides[first]).css(opts.cssFirst);
|
344 |
-
|
345 |
-
if (opts.timeout) {
|
346 |
-
opts.timeout = parseInt(opts.timeout);
|
347 |
-
// ensure that timeout and speed settings are sane
|
348 |
-
if (opts.speed.constructor == String)
|
349 |
-
opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed);
|
350 |
-
if (!opts.sync)
|
351 |
-
opts.speed = opts.speed / 2;
|
352 |
-
|
353 |
-
var buffer = opts.fx == 'shuffle' ? 500 : 250;
|
354 |
-
while((opts.timeout - opts.speed) < buffer) // sanitize timeout
|
355 |
-
opts.timeout += opts.speed;
|
356 |
-
}
|
357 |
-
if (opts.easing)
|
358 |
-
opts.easeIn = opts.easeOut = opts.easing;
|
359 |
-
if (!opts.speedIn)
|
360 |
-
opts.speedIn = opts.speed;
|
361 |
-
if (!opts.speedOut)
|
362 |
-
opts.speedOut = opts.speed;
|
363 |
-
|
364 |
-
opts.slideCount = els.length;
|
365 |
-
opts.currSlide = opts.lastSlide = first;
|
366 |
-
if (opts.random) {
|
367 |
-
if (++opts.randomIndex == els.length)
|
368 |
-
opts.randomIndex = 0;
|
369 |
-
opts.nextSlide = opts.randomMap[opts.randomIndex];
|
370 |
-
}
|
371 |
-
else if (opts.backwards)
|
372 |
-
opts.nextSlide = opts.startingSlide == 0 ? (els.length-1) : opts.startingSlide-1;
|
373 |
-
else
|
374 |
-
opts.nextSlide = opts.startingSlide >= (els.length-1) ? 0 : opts.startingSlide+1;
|
375 |
-
|
376 |
-
// run transition init fn
|
377 |
-
if (!opts.multiFx) {
|
378 |
-
var init = $.fn.cycle.transitions[opts.fx];
|
379 |
-
if ($.isFunction(init))
|
380 |
-
init($cont, $slides, opts);
|
381 |
-
else if (opts.fx != 'custom' && !opts.multiFx) {
|
382 |
-
log('unknown transition: ' + opts.fx,'; slideshow terminating');
|
383 |
-
return false;
|
384 |
-
}
|
385 |
-
}
|
386 |
-
|
387 |
-
// fire artificial events
|
388 |
-
var e0 = $slides[first];
|
389 |
-
if (opts.before.length)
|
390 |
-
opts.before[0].apply(e0, [e0, e0, opts, true]);
|
391 |
-
if (opts.after.length > 1)
|
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 |
-
|
401 |
-
exposeAddSlide(opts, els);
|
402 |
-
|
403 |
-
return opts;
|
404 |
-
};
|
405 |
-
|
406 |
-
// save off original opts so we can restore after clearing state
|
407 |
-
function saveOriginalOpts(opts) {
|
408 |
-
opts.original = { before: [], after: [] };
|
409 |
-
opts.original.cssBefore = $.extend({}, opts.cssBefore);
|
410 |
-
opts.original.cssAfter = $.extend({}, opts.cssAfter);
|
411 |
-
opts.original.animIn = $.extend({}, opts.animIn);
|
412 |
-
opts.original.animOut = $.extend({}, opts.animOut);
|
413 |
-
$.each(opts.before, function() { opts.original.before.push(this); });
|
414 |
-
$.each(opts.after, function() { opts.original.after.push(this); });
|
415 |
-
};
|
416 |
-
|
417 |
-
function supportMultiTransitions(opts) {
|
418 |
-
var i, tx, txs = $.fn.cycle.transitions;
|
419 |
-
// look for multiple effects
|
420 |
-
if (opts.fx.indexOf(',') > 0) {
|
421 |
-
opts.multiFx = true;
|
422 |
-
opts.fxs = opts.fx.replace(/\s*/g,'').split(',');
|
423 |
-
// discard any bogus effect names
|
424 |
-
for (i=0; i < opts.fxs.length; i++) {
|
425 |
-
var fx = opts.fxs[i];
|
426 |
-
tx = txs[fx];
|
427 |
-
if (!tx || !txs.hasOwnProperty(fx) || !$.isFunction(tx)) {
|
428 |
-
log('discarding unknown transition: ',fx);
|
429 |
-
opts.fxs.splice(i,1);
|
430 |
-
i--;
|
431 |
-
}
|
432 |
-
}
|
433 |
-
// if we have an empty list then we threw everything away!
|
434 |
-
if (!opts.fxs.length) {
|
435 |
-
log('No valid transitions named; slideshow terminating.');
|
436 |
-
return false;
|
437 |
-
}
|
438 |
-
}
|
439 |
-
else if (opts.fx == 'all') { // auto-gen the list of transitions
|
440 |
-
opts.multiFx = true;
|
441 |
-
opts.fxs = [];
|
442 |
-
for (p in txs) {
|
443 |
-
tx = txs[p];
|
444 |
-
if (txs.hasOwnProperty(p) && $.isFunction(tx))
|
445 |
-
opts.fxs.push(p);
|
446 |
-
}
|
447 |
-
}
|
448 |
-
if (opts.multiFx && opts.randomizeEffects) {
|
449 |
-
// munge the fxs array to make effect selection random
|
450 |
-
var r1 = Math.floor(Math.random() * 20) + 30;
|
451 |
-
for (i = 0; i < r1; i++) {
|
452 |
-
var r2 = Math.floor(Math.random() * opts.fxs.length);
|
453 |
-
opts.fxs.push(opts.fxs.splice(r2,1)[0]);
|
454 |
-
}
|
455 |
-
debug('randomized fx sequence: ',opts.fxs);
|
456 |
-
}
|
457 |
-
return true;
|
458 |
-
};
|
459 |
-
|
460 |
-
// provide a mechanism for adding slides after the slideshow has started
|
461 |
-
function exposeAddSlide(opts, els) {
|
462 |
-
opts.addSlide = function(newSlide, prepend) {
|
463 |
-
var $s = $(newSlide), s = $s[0];
|
464 |
-
if (!opts.autostopCount)
|
465 |
-
opts.countdown++;
|
466 |
-
els[prepend?'unshift':'push'](s);
|
467 |
-
if (opts.els)
|
468 |
-
opts.els[prepend?'unshift':'push'](s); // shuffle needs this
|
469 |
-
opts.slideCount = els.length;
|
470 |
-
|
471 |
-
$s.css('position','absolute');
|
472 |
-
$s[prepend?'prependTo':'appendTo'](opts.$cont);
|
473 |
-
|
474 |
-
if (prepend) {
|
475 |
-
opts.currSlide++;
|
476 |
-
opts.nextSlide++;
|
477 |
-
}
|
478 |
-
|
479 |
-
if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg)
|
480 |
-
clearTypeFix($s);
|
481 |
-
|
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 |
-
|
489 |
-
$s.css(opts.cssBefore);
|
490 |
-
|
491 |
-
if (opts.pager || opts.pagerAnchorBuilder)
|
492 |
-
$.fn.cycle.createPagerAnchor(els.length-1, s, $(opts.pager), els, opts);
|
493 |
-
|
494 |
-
if ($.isFunction(opts.onAddSlide))
|
495 |
-
opts.onAddSlide($s);
|
496 |
-
else
|
497 |
-
$s.hide(); // default behavior
|
498 |
-
};
|
499 |
-
}
|
500 |
-
|
501 |
-
// reset internal state; we do this on every pass in order to support multiple effects
|
502 |
-
$.fn.cycle.resetState = function(opts, fx) {
|
503 |
-
fx = fx || opts.fx;
|
504 |
-
opts.before = []; opts.after = [];
|
505 |
-
opts.cssBefore = $.extend({}, opts.original.cssBefore);
|
506 |
-
opts.cssAfter = $.extend({}, opts.original.cssAfter);
|
507 |
-
opts.animIn = $.extend({}, opts.original.animIn);
|
508 |
-
opts.animOut = $.extend({}, opts.original.animOut);
|
509 |
-
opts.fxFn = null;
|
510 |
-
$.each(opts.original.before, function() { opts.before.push(this); });
|
511 |
-
$.each(opts.original.after, function() { opts.after.push(this); });
|
512 |
-
|
513 |
-
// re-init
|
514 |
-
var init = $.fn.cycle.transitions[fx];
|
515 |
-
if ($.isFunction(init))
|
516 |
-
init(opts.$cont, $(opts.elements), opts);
|
517 |
-
};
|
518 |
-
|
519 |
-
// this is the main engine fn, it handles the timeouts, callbacks and slide index mgmt
|
520 |
-
function go(els, opts, manual, fwd) {
|
521 |
-
// opts.busy is true if we're in the middle of an animation
|
522 |
-
if (manual && opts.busy && opts.manualTrump) {
|
523 |
-
// let manual transitions requests trump active ones
|
524 |
-
debug('manualTrump in go(), stopping active transition');
|
525 |
-
$(els).stop(true,true);
|
526 |
-
opts.busy = false;
|
527 |
-
}
|
528 |
-
// don't begin another timeout-based transition if there is one active
|
529 |
-
if (opts.busy) {
|
530 |
-
debug('transition active, ignoring new tx request');
|
531 |
-
return;
|
532 |
-
}
|
533 |
-
|
534 |
-
var p = opts.$cont[0], curr = els[opts.currSlide], next = els[opts.nextSlide];
|
535 |
-
|
536 |
-
// stop cycling if we have an outstanding stop request
|
537 |
-
if (p.cycleStop != opts.stopCount || p.cycleTimeout === 0 && !manual)
|
538 |
-
return;
|
539 |
-
|
540 |
-
// check to see if we should stop cycling based on autostop options
|
541 |
-
if (!manual && !p.cyclePause && !opts.bounce &&
|
542 |
-
((opts.autostop && (--opts.countdown <= 0)) ||
|
543 |
-
(opts.nowrap && !opts.random && opts.nextSlide < opts.currSlide))) {
|
544 |
-
if (opts.end)
|
545 |
-
opts.end(opts);
|
546 |
-
return;
|
547 |
-
}
|
548 |
-
|
549 |
-
// if slideshow is paused, only transition on a manual trigger
|
550 |
-
var changed = false;
|
551 |
-
if ((manual || !p.cyclePause) && (opts.nextSlide != opts.currSlide)) {
|
552 |
-
changed = true;
|
553 |
-
var fx = opts.fx;
|
554 |
-
// keep trying to get the slide size if we don't have it yet
|
555 |
-
curr.cycleH = curr.cycleH || $(curr).height();
|
556 |
-
curr.cycleW = curr.cycleW || $(curr).width();
|
557 |
-
next.cycleH = next.cycleH || $(next).height();
|
558 |
-
next.cycleW = next.cycleW || $(next).width();
|
559 |
-
|
560 |
-
// support multiple transition types
|
561 |
-
if (opts.multiFx) {
|
562 |
-
if (opts.lastFx == undefined || ++opts.lastFx >= opts.fxs.length)
|
563 |
-
opts.lastFx = 0;
|
564 |
-
fx = opts.fxs[opts.lastFx];
|
565 |
-
opts.currFx = fx;
|
566 |
-
}
|
567 |
-
|
568 |
-
// one-time fx overrides apply to: $('div').cycle(3,'zoom');
|
569 |
-
if (opts.oneTimeFx) {
|
570 |
-
fx = opts.oneTimeFx;
|
571 |
-
opts.oneTimeFx = null;
|
572 |
-
}
|
573 |
-
|
574 |
-
$.fn.cycle.resetState(opts, fx);
|
575 |
-
|
576 |
-
// run the before callbacks
|
577 |
-
if (opts.before.length)
|
578 |
-
$.each(opts.before, function(i,o) {
|
579 |
-
if (p.cycleStop != opts.stopCount) return;
|
580 |
-
o.apply(next, [curr, next, opts, fwd]);
|
581 |
-
});
|
582 |
-
|
583 |
-
// stage the after callacks
|
584 |
-
var after = function() {
|
585 |
-
$.each(opts.after, function(i,o) {
|
586 |
-
if (p.cycleStop != opts.stopCount) return;
|
587 |
-
o.apply(next, [curr, next, opts, fwd]);
|
588 |
-
});
|
589 |
-
};
|
590 |
-
|
591 |
-
debug('tx firing; currSlide: ' + opts.currSlide + '; nextSlide: ' + opts.nextSlide);
|
592 |
-
|
593 |
-
// get ready to perform the transition
|
594 |
-
opts.busy = 1;
|
595 |
-
if (opts.fxFn) // fx function provided?
|
596 |
-
opts.fxFn(curr, next, opts, after, fwd, manual && opts.fastOnEvent);
|
597 |
-
else if ($.isFunction($.fn.cycle[opts.fx])) // fx plugin ?
|
598 |
-
$.fn.cycle[opts.fx](curr, next, opts, after, fwd, manual && opts.fastOnEvent);
|
599 |
-
else
|
600 |
-
$.fn.cycle.custom(curr, next, opts, after, fwd, manual && opts.fastOnEvent);
|
601 |
-
}
|
602 |
-
|
603 |
-
if (changed || opts.nextSlide == opts.currSlide) {
|
604 |
-
// calculate the next slide
|
605 |
-
opts.lastSlide = opts.currSlide;
|
606 |
-
if (opts.random) {
|
607 |
-
opts.currSlide = opts.nextSlide;
|
608 |
-
if (++opts.randomIndex == els.length)
|
609 |
-
opts.randomIndex = 0;
|
610 |
-
opts.nextSlide = opts.randomMap[opts.randomIndex];
|
611 |
-
if (opts.nextSlide == opts.currSlide)
|
612 |
-
opts.nextSlide = (opts.currSlide == opts.slideCount - 1) ? 0 : opts.currSlide + 1;
|
613 |
-
}
|
614 |
-
else if (opts.backwards) {
|
615 |
-
var roll = (opts.nextSlide - 1) < 0;
|
616 |
-
if (roll && opts.bounce) {
|
617 |
-
opts.backwards = !opts.backwards;
|
618 |
-
opts.nextSlide = 1;
|
619 |
-
opts.currSlide = 0;
|
620 |
-
}
|
621 |
-
else {
|
622 |
-
opts.nextSlide = roll ? (els.length-1) : opts.nextSlide-1;
|
623 |
-
opts.currSlide = roll ? 0 : opts.nextSlide+1;
|
624 |
-
}
|
625 |
-
}
|
626 |
-
else { // sequence
|
627 |
-
var roll = (opts.nextSlide + 1) == els.length;
|
628 |
-
if (roll && opts.bounce) {
|
629 |
-
opts.backwards = !opts.backwards;
|
630 |
-
opts.nextSlide = els.length-2;
|
631 |
-
opts.currSlide = els.length-1;
|
632 |
-
}
|
633 |
-
else {
|
634 |
-
opts.nextSlide = roll ? 0 : opts.nextSlide+1;
|
635 |
-
opts.currSlide = roll ? els.length-1 : opts.nextSlide-1;
|
636 |
-
}
|
637 |
-
}
|
638 |
-
}
|
639 |
-
if (changed && opts.pager)
|
640 |
-
opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass);
|
641 |
-
|
642 |
-
// stage the next transition
|
643 |
-
var ms = 0;
|
644 |
-
if (opts.timeout && !opts.continuous)
|
645 |
-
ms = getTimeout(els[opts.currSlide], els[opts.nextSlide], opts, 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.backwards) }, ms);
|
650 |
-
};
|
651 |
-
|
652 |
-
// invoked after transition
|
653 |
-
$.fn.cycle.updateActivePagerLink = function(pager, currSlide, clsName) {
|
654 |
-
$(pager).each(function() {
|
655 |
-
$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);
|
656 |
-
});
|
657 |
-
};
|
658 |
-
|
659 |
-
// calculate timeout value for current transition
|
660 |
-
function getTimeout(curr, next, opts, fwd) {
|
661 |
-
if (opts.timeoutFn) {
|
662 |
-
// call user provided calc fn
|
663 |
-
var t = opts.timeoutFn.call(curr,curr,next,opts,fwd);
|
664 |
-
while ((t - opts.speed) < 250) // sanitize timeout
|
665 |
-
t += opts.speed;
|
666 |
-
debug('calculated timeout: ' + t + '; speed: ' + opts.speed);
|
667 |
-
if (t !== false)
|
668 |
-
return t;
|
669 |
-
}
|
670 |
-
return opts.timeout;
|
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) {
|
683 |
-
clearTimeout(timeout);
|
684 |
-
p.cycleTimeout = 0;
|
685 |
-
}
|
686 |
-
if (opts.random && val < 0) {
|
687 |
-
// move back to the previously display slide
|
688 |
-
opts.randomIndex--;
|
689 |
-
if (--opts.randomIndex == -2)
|
690 |
-
opts.randomIndex = els.length-2;
|
691 |
-
else if (opts.randomIndex == -1)
|
692 |
-
opts.randomIndex = els.length-1;
|
693 |
-
opts.nextSlide = opts.randomMap[opts.randomIndex];
|
694 |
-
}
|
695 |
-
else if (opts.random) {
|
696 |
-
opts.nextSlide = opts.randomMap[opts.randomIndex];
|
697 |
-
}
|
698 |
-
else {
|
699 |
-
opts.nextSlide = opts.currSlide + val;
|
700 |
-
if (opts.nextSlide < 0) {
|
701 |
-
if (opts.nowrap) return false;
|
702 |
-
opts.nextSlide = els.length - 1;
|
703 |
-
}
|
704 |
-
else if (opts.nextSlide >= els.length) {
|
705 |
-
if (opts.nowrap) return false;
|
706 |
-
opts.nextSlide = 0;
|
707 |
-
}
|
708 |
-
}
|
709 |
-
|
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 |
-
|
717 |
-
function buildPager(els, opts) {
|
718 |
-
var $p = $(opts.pager);
|
719 |
-
$.each(els, function(i,o) {
|
720 |
-
$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);
|
721 |
-
});
|
722 |
-
opts.updateActivePagerLink(opts.pager, opts.startingSlide, opts.activePagerClass);
|
723 |
-
};
|
724 |
-
|
725 |
-
$.fn.cycle.createPagerAnchor = function(i, el, $p, els, opts) {
|
726 |
-
var a;
|
727 |
-
if ($.isFunction(opts.pagerAnchorBuilder)) {
|
728 |
-
a = opts.pagerAnchorBuilder(i,el);
|
729 |
-
debug('pagerAnchorBuilder('+i+', el) returned: ' + a);
|
730 |
-
}
|
731 |
-
else
|
732 |
-
a = '<a href="#">'+(i+1)+'</a>';
|
733 |
-
|
734 |
-
if (!a)
|
735 |
-
return;
|
736 |
-
var $a = $(a);
|
737 |
-
// don't reparent if anchor is in the dom
|
738 |
-
if ($a.parents('body').length === 0) {
|
739 |
-
var arr = [];
|
740 |
-
if ($p.length > 1) {
|
741 |
-
$p.each(function() {
|
742 |
-
var $clone = $a.clone(true);
|
743 |
-
$(this).append($clone);
|
744 |
-
arr.push($clone[0]);
|
745 |
-
});
|
746 |
-
$a = $(arr);
|
747 |
-
}
|
748 |
-
else {
|
749 |
-
$a.appendTo($p);
|
750 |
-
}
|
751 |
-
}
|
752 |
-
|
753 |
-
opts.pagerAnchors = opts.pagerAnchors || [];
|
754 |
-
opts.pagerAnchors.push($a);
|
755 |
-
$a.bind(opts.pagerEvent, function(e) {
|
756 |
-
e.preventDefault();
|
757 |
-
opts.nextSlide = i;
|
758 |
-
var p = opts.$cont[0], timeout = p.cycleTimeout;
|
759 |
-
if (timeout) {
|
760 |
-
clearTimeout(timeout);
|
761 |
-
p.cycleTimeout = 0;
|
762 |
-
}
|
763 |
-
var cb = opts.onPagerEvent || opts.pagerClick; // pagerClick is deprecated
|
764 |
-
if ($.isFunction(cb))
|
765 |
-
cb(opts.nextSlide, els[opts.nextSlide]);
|
766 |
-
go(els,opts,1,opts.currSlide < i); // trigger the trans
|
767 |
-
// return false; // <== allow bubble
|
768 |
-
});
|
769 |
-
|
770 |
-
if ( ! /^click/.test(opts.pagerEvent) && !opts.allowPagerClickBubble)
|
771 |
-
$a.bind('click.cycle', function(){return false;}); // suppress click
|
772 |
-
|
773 |
-
if (opts.pauseOnPagerHover)
|
774 |
-
$a.hover(function() { opts.$cont[0].cyclePause++; }, function() { opts.$cont[0].cyclePause--; } );
|
775 |
-
};
|
776 |
-
|
777 |
-
// helper fn to calculate the number of slides between the current and the next
|
778 |
-
$.fn.cycle.hopsFromLast = function(opts, fwd) {
|
779 |
-
var hops, l = opts.lastSlide, c = opts.currSlide;
|
780 |
-
if (fwd)
|
781 |
-
hops = c > l ? c - l : opts.slideCount - l;
|
782 |
-
else
|
783 |
-
hops = c < l ? l - c : l + opts.slideCount - c;
|
784 |
-
return hops;
|
785 |
-
};
|
786 |
-
|
787 |
-
// fix clearType problems in ie6 by setting an explicit bg color
|
788 |
-
// (otherwise text slides look horrible during a fade transition)
|
789 |
-
function clearTypeFix($slides) {
|
790 |
-
debug('applying clearType background-color hack');
|
791 |
-
function hex(s) {
|
792 |
-
s = parseInt(s).toString(16);
|
793 |
-
return s.length < 2 ? '0'+s : s;
|
794 |
-
};
|
795 |
-
function getBg(e) {
|
796 |
-
for ( ; e && e.nodeName.toLowerCase() != 'html'; e = e.parentNode) {
|
797 |
-
var v = $.css(e,'background-color');
|
798 |
-
if (v.indexOf('rgb') >= 0 ) {
|
799 |
-
var rgb = v.match(/\d+/g);
|
800 |
-
return '#'+ hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]);
|
801 |
-
}
|
802 |
-
if (v && v != 'transparent')
|
803 |
-
return v;
|
804 |
-
}
|
805 |
-
return '#ffffff';
|
806 |
-
};
|
807 |
-
$slides.each(function() { $(this).css('background-color', getBg(this)); });
|
808 |
-
};
|
809 |
-
|
810 |
-
// reset common props before the next transition
|
811 |
-
$.fn.cycle.commonReset = function(curr,next,opts,w,h,rev) {
|
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';
|
821 |
-
$(curr).css('zIndex',opts.slideCount + (rev === true ? 1 : 0));
|
822 |
-
$(next).css('zIndex',opts.slideCount + (rev === true ? 0 : 1));
|
823 |
-
};
|
824 |
-
|
825 |
-
// the actual fn for effecting a transition
|
826 |
-
$.fn.cycle.custom = function(curr, next, opts, cb, fwd, speedOverride) {
|
827 |
-
var $l = $(curr), $n = $(next);
|
828 |
-
var speedIn = opts.speedIn, speedOut = opts.speedOut, easeIn = opts.easeIn, easeOut = opts.easeOut;
|
829 |
-
$n.css(opts.cssBefore);
|
830 |
-
if (speedOverride) {
|
831 |
-
if (typeof speedOverride == 'number')
|
832 |
-
speedIn = speedOut = speedOverride;
|
833 |
-
else
|
834 |
-
speedIn = speedOut = 1;
|
835 |
-
easeIn = easeOut = null;
|
836 |
-
}
|
837 |
-
var fn = function() {$n.animate(opts.animIn, speedIn, easeIn, cb)};
|
838 |
-
$l.animate(opts.animOut, speedOut, easeOut, function() {
|
839 |
-
if (opts.cssAfter) $l.css(opts.cssAfter);
|
840 |
-
if (!opts.sync) fn();
|
841 |
-
});
|
842 |
-
if (opts.sync) fn();
|
843 |
-
};
|
844 |
-
|
845 |
-
// transition definitions - only fade is defined here, transition pack defines the rest
|
846 |
-
$.fn.cycle.transitions = {
|
847 |
-
fade: function($cont, $slides, opts) {
|
848 |
-
$slides.not(':eq('+opts.currSlide+')').css('opacity',0);
|
849 |
-
opts.before.push(function(curr,next,opts) {
|
850 |
-
$.fn.cycle.commonReset(curr,next,opts);
|
851 |
-
opts.cssBefore.opacity = 0;
|
852 |
-
});
|
853 |
-
opts.animIn = { opacity: 1 };
|
854 |
-
opts.animOut = { opacity: 0 };
|
855 |
-
opts.cssBefore = { top: 0, left: 0 };
|
856 |
-
}
|
857 |
-
};
|
858 |
-
|
859 |
-
$.fn.cycle.ver = function() { return ver; };
|
860 |
-
|
861 |
-
// override these globally if you like (they are all optional)
|
862 |
-
$.fn.cycle.defaults = {
|
863 |
-
fx: 'fade', // name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')
|
864 |
-
timeout: 4000, // milliseconds between slide transitions (0 to disable auto advance)
|
865 |
-
timeoutFn: null, // callback for determining per-slide timeout value: function(currSlideElement, nextSlideElement, options, forwardFlag)
|
866 |
-
continuous: 0, // true to start next transition immediately after current one completes
|
867 |
-
speed: 1000, // speed of the transition (any valid fx speed value)
|
868 |
-
speedIn: null, // speed of the 'in' transition
|
869 |
-
speedOut: null, // speed of the 'out' transition
|
870 |
-
next: null, // selector for element to use as event trigger for next slide
|
871 |
-
prev: null, // selector for element to use as event trigger for previous slide
|
872 |
-
// prevNextClick: null, // @deprecated; please use onPrevNextEvent instead
|
873 |
-
onPrevNextEvent: null, // callback fn for prev/next events: function(isNext, zeroBasedSlideIndex, slideElement)
|
874 |
-
prevNextEvent:'click.cycle',// event which drives the manual transition to the previous or next slide
|
875 |
-
pager: null, // selector for element to use as pager container
|
876 |
-
//pagerClick null, // @deprecated; please use onPagerEvent instead
|
877 |
-
onPagerEvent: null, // callback fn for pager events: function(zeroBasedSlideIndex, slideElement)
|
878 |
-
pagerEvent: 'click.cycle', // name of event which drives the pager navigation
|
879 |
-
allowPagerClickBubble: false, // allows or prevents click event on pager anchors from bubbling
|
880 |
-
pagerAnchorBuilder: null, // callback fn for building anchor links: function(index, DOMelement)
|
881 |
-
before: null, // transition callback (scope set to element to be shown): function(currSlideElement, nextSlideElement, options, forwardFlag)
|
882 |
-
after: null, // transition callback (scope set to element that was shown): function(currSlideElement, nextSlideElement, options, forwardFlag)
|
883 |
-
end: null, // callback invoked when the slideshow terminates (use with autostop or nowrap options): function(options)
|
884 |
-
easing: null, // easing method for both in and out transitions
|
885 |
-
easeIn: null, // easing for "in" transition
|
886 |
-
easeOut: null, // easing for "out" transition
|
887 |
-
shuffle: null, // coords for shuffle animation, ex: { top:15, left: 200 }
|
888 |
-
animIn: null, // properties that define how the slide animates in
|
889 |
-
animOut: null, // properties that define how the slide animates out
|
890 |
-
cssBefore: null, // properties that define the initial state of the slide before transitioning in
|
891 |
-
cssAfter: null, // properties that defined the state of the slide after transitioning out
|
892 |
-
fxFn: null, // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag)
|
893 |
-
height: 'auto', // container height
|
894 |
-
startingSlide: 0, // zero-based index of the first slide to be displayed
|
895 |
-
sync: 1, // true if in/out transitions should occur simultaneously
|
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)
|
903 |
-
autostopCount: 0, // number of transitions (optionally used with autostop to define X)
|
904 |
-
delay: 0, // additional delay (in ms) for first transition (hint: can be negative)
|
905 |
-
slideExpr: null, // expression for selecting slides (if something other than all children is required)
|
906 |
-
cleartype: !$.support.opacity, // true if clearType corrections should be applied (for IE)
|
907 |
-
cleartypeNoBg: false, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
|
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
|
915 |
-
activePagerClass: 'activeSlide', // class name used for the active pager link
|
916 |
-
updateActivePagerLink: null, // callback fn invoked to update the active pager link (adds/removes activePagerClass style)
|
917 |
-
backwards: false // true to start slideshow at last slide and move backwards through the stack
|
918 |
-
};
|
919 |
-
|
920 |
-
})(jQuery);
|
921 |
-
|
922 |
-
|
923 |
-
/*!
|
924 |
-
* jQuery Cycle Plugin Transition Definitions
|
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
|
932 |
-
*/
|
933 |
-
(function($) {
|
934 |
-
|
935 |
-
//
|
936 |
-
// These functions define one-time slide initialization for the named
|
937 |
-
// transitions. To save file size feel free to remove any of these that you
|
938 |
-
// don't need.
|
939 |
-
//
|
940 |
-
$.fn.cycle.transitions.none = function($cont, $slides, opts) {
|
941 |
-
opts.fxFn = function(curr,next,opts,after){
|
942 |
-
$(next).show();
|
943 |
-
$(curr).hide();
|
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) {
|
962 |
-
$cont.css('overflow','hidden');
|
963 |
-
opts.before.push($.fn.cycle.commonReset);
|
964 |
-
var h = $cont.height();
|
965 |
-
opts.cssBefore ={ top: h, left: 0 };
|
966 |
-
opts.cssFirst = { top: 0 };
|
967 |
-
opts.animIn = { top: 0 };
|
968 |
-
opts.animOut = { top: -h };
|
969 |
-
};
|
970 |
-
$.fn.cycle.transitions.scrollDown = function($cont, $slides, opts) {
|
971 |
-
$cont.css('overflow','hidden');
|
972 |
-
opts.before.push($.fn.cycle.commonReset);
|
973 |
-
var h = $cont.height();
|
974 |
-
opts.cssFirst = { top: 0 };
|
975 |
-
opts.cssBefore= { top: -h, left: 0 };
|
976 |
-
opts.animIn = { top: 0 };
|
977 |
-
opts.animOut = { top: h };
|
978 |
-
};
|
979 |
-
$.fn.cycle.transitions.scrollLeft = function($cont, $slides, opts) {
|
980 |
-
$cont.css('overflow','hidden');
|
981 |
-
opts.before.push($.fn.cycle.commonReset);
|
982 |
-
var w = $cont.width();
|
983 |
-
opts.cssFirst = { left: 0 };
|
984 |
-
opts.cssBefore= { left: w, top: 0 };
|
985 |
-
opts.animIn = { left: 0 };
|
986 |
-
opts.animOut = { left: 0-w };
|
987 |
-
};
|
988 |
-
$.fn.cycle.transitions.scrollRight = function($cont, $slides, opts) {
|
989 |
-
$cont.css('overflow','hidden');
|
990 |
-
opts.before.push($.fn.cycle.commonReset);
|
991 |
-
var w = $cont.width();
|
992 |
-
opts.cssFirst = { left: 0 };
|
993 |
-
opts.cssBefore= { left: -w, top: 0 };
|
994 |
-
opts.animIn = { left: 0 };
|
995 |
-
opts.animOut = { left: w };
|
996 |
-
};
|
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;
|
1005 |
-
});
|
1006 |
-
opts.cssFirst = { left: 0 };
|
1007 |
-
opts.cssBefore= { top: 0 };
|
1008 |
-
opts.animIn = { left: 0 };
|
1009 |
-
opts.animOut = { top: 0 };
|
1010 |
-
};
|
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;
|
1019 |
-
});
|
1020 |
-
opts.cssFirst = { top: 0 };
|
1021 |
-
opts.cssBefore= { left: 0 };
|
1022 |
-
opts.animIn = { top: 0 };
|
1023 |
-
opts.animOut = { left: 0 };
|
1024 |
-
};
|
1025 |
-
|
1026 |
-
// slideX/slideY
|
1027 |
-
$.fn.cycle.transitions.slideX = function($cont, $slides, opts) {
|
1028 |
-
opts.before.push(function(curr, next, opts) {
|
1029 |
-
$(opts.elements).not(curr).hide();
|
1030 |
-
$.fn.cycle.commonReset(curr,next,opts,false,true);
|
1031 |
-
opts.animIn.width = next.cycleW;
|
1032 |
-
});
|
1033 |
-
opts.cssBefore = { left: 0, top: 0, width: 0 };
|
1034 |
-
opts.animIn = { width: 'show' };
|
1035 |
-
opts.animOut = { width: 0 };
|
1036 |
-
};
|
1037 |
-
$.fn.cycle.transitions.slideY = function($cont, $slides, opts) {
|
1038 |
-
opts.before.push(function(curr, next, opts) {
|
1039 |
-
$(opts.elements).not(curr).hide();
|
1040 |
-
$.fn.cycle.commonReset(curr,next,opts,true,false);
|
1041 |
-
opts.animIn.height = next.cycleH;
|
1042 |
-
});
|
1043 |
-
opts.cssBefore = { left: 0, top: 0, height: 0 };
|
1044 |
-
opts.animIn = { height: 'show' };
|
1045 |
-
opts.animOut = { height: 0 };
|
1046 |
-
};
|
1047 |
-
|
1048 |
-
// shuffle
|
1049 |
-
$.fn.cycle.transitions.shuffle = function($cont, $slides, opts) {
|
1050 |
-
var i, w = $cont.css('overflow', 'visible').width();
|
1051 |
-
$slides.css({left: 0, top: 0});
|
1052 |
-
opts.before.push(function(curr,next,opts) {
|
1053 |
-
$.fn.cycle.commonReset(curr,next,opts,true,true,true);
|
1054 |
-
});
|
1055 |
-
// only adjust speed once!
|
1056 |
-
if (!opts.speedAdjusted) {
|
1057 |
-
opts.speed = opts.speed / 2; // shuffle has 2 transitions
|
1058 |
-
opts.speedAdjusted = true;
|
1059 |
-
}
|
1060 |
-
opts.random = 0;
|
1061 |
-
opts.shuffle = opts.shuffle || {left:-w, top:15};
|
1062 |
-
opts.els = [];
|
1063 |
-
for (i=0; i < $slides.length; i++)
|
1064 |
-
opts.els.push($slides[i]);
|
1065 |
-
|
1066 |
-
for (i=0; i < opts.currSlide; i++)
|
1067 |
-
opts.els.push(opts.els.shift());
|
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;
|
1076 |
-
$el.animate(opts.shuffle, opts.speedIn, opts.easeIn, function() {
|
1077 |
-
var hops = $.fn.cycle.hopsFromLast(opts, fwd);
|
1078 |
-
for (var k=0; k < hops; k++)
|
1079 |
-
fwd ? opts.els.push(opts.els.shift()) : opts.els.unshift(opts.els.pop());
|
1080 |
-
if (fwd) {
|
1081 |
-
for (var i=0, len=opts.els.length; i < len; i++)
|
1082 |
-
$(opts.els[i]).css('z-index', len-i+count);
|
1083 |
-
}
|
1084 |
-
else {
|
1085 |
-
var z = $(curr).css('z-index');
|
1086 |
-
$el.css('z-index', parseInt(z)+1+count);
|
1087 |
-
}
|
1088 |
-
$el.animate({left:0, top:0}, opts.speedOut, opts.easeOut, function() {
|
1089 |
-
$(fwd ? this : curr).hide();
|
1090 |
-
if (cb) cb();
|
1091 |
-
});
|
1092 |
-
});
|
1093 |
-
};
|
1094 |
-
opts.cssBefore = { display: 'block', opacity: 1, top: 0, left: 0 };
|
1095 |
-
};
|
1096 |
-
|
1097 |
-
// turnUp/Down/Left/Right
|
1098 |
-
$.fn.cycle.transitions.turnUp = function($cont, $slides, opts) {
|
1099 |
-
opts.before.push(function(curr, next, opts) {
|
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 };
|
1107 |
-
opts.animIn = { top: 0 };
|
1108 |
-
opts.animOut = { height: 0 };
|
1109 |
-
};
|
1110 |
-
$.fn.cycle.transitions.turnDown = function($cont, $slides, opts) {
|
1111 |
-
opts.before.push(function(curr, next, opts) {
|
1112 |
-
$.fn.cycle.commonReset(curr,next,opts,true,false);
|
1113 |
-
opts.animIn.height = next.cycleH;
|
1114 |
-
opts.animOut.top = curr.cycleH;
|
1115 |
-
});
|
1116 |
-
opts.cssFirst = { top: 0 };
|
1117 |
-
opts.cssBefore = { left: 0, top: 0, height: 0 };
|
1118 |
-
opts.animOut = { height: 0 };
|
1119 |
-
};
|
1120 |
-
$.fn.cycle.transitions.turnLeft = function($cont, $slides, opts) {
|
1121 |
-
opts.before.push(function(curr, next, opts) {
|
1122 |
-
$.fn.cycle.commonReset(curr,next,opts,false,true);
|
1123 |
-
opts.cssBefore.left = next.cycleW;
|
1124 |
-
opts.animIn.width = next.cycleW;
|
1125 |
-
});
|
1126 |
-
opts.cssBefore = { top: 0, width: 0 };
|
1127 |
-
opts.animIn = { left: 0 };
|
1128 |
-
opts.animOut = { width: 0 };
|
1129 |
-
};
|
1130 |
-
$.fn.cycle.transitions.turnRight = function($cont, $slides, opts) {
|
1131 |
-
opts.before.push(function(curr, next, opts) {
|
1132 |
-
$.fn.cycle.commonReset(curr,next,opts,false,true);
|
1133 |
-
opts.animIn.width = next.cycleW;
|
1134 |
-
opts.animOut.left = curr.cycleW;
|
1135 |
-
});
|
1136 |
-
opts.cssBefore = { top: 0, left: 0, width: 0 };
|
1137 |
-
opts.animIn = { left: 0 };
|
1138 |
-
opts.animOut = { width: 0 };
|
1139 |
-
};
|
1140 |
-
|
1141 |
-
// zoom
|
1142 |
-
$.fn.cycle.transitions.zoom = function($cont, $slides, opts) {
|
1143 |
-
opts.before.push(function(curr, next, opts) {
|
1144 |
-
$.fn.cycle.commonReset(curr,next,opts,false,false,true);
|
1145 |
-
opts.cssBefore.top = next.cycleH/2;
|
1146 |
-
opts.cssBefore.left = next.cycleW/2;
|
1147 |
-
opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH };
|
1148 |
-
opts.animOut = { width: 0, height: 0, top: curr.cycleH/2, left: curr.cycleW/2 };
|
1149 |
-
});
|
1150 |
-
opts.cssFirst = { top:0, left: 0 };
|
1151 |
-
opts.cssBefore = { width: 0, height: 0 };
|
1152 |
-
};
|
1153 |
-
|
1154 |
-
// fadeZoom
|
1155 |
-
$.fn.cycle.transitions.fadeZoom = function($cont, $slides, opts) {
|
1156 |
-
opts.before.push(function(curr, next, opts) {
|
1157 |
-
$.fn.cycle.commonReset(curr,next,opts,false,false);
|
1158 |
-
opts.cssBefore.left = next.cycleW/2;
|
1159 |
-
opts.cssBefore.top = next.cycleH/2;
|
1160 |
-
opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH };
|
1161 |
-
});
|
1162 |
-
opts.cssBefore = { width: 0, height: 0 };
|
1163 |
-
opts.animOut = { opacity: 0 };
|
1164 |
-
};
|
1165 |
-
|
1166 |
-
// blindX
|
1167 |
-
$.fn.cycle.transitions.blindX = function($cont, $slides, opts) {
|
1168 |
-
var w = $cont.css('overflow','hidden').width();
|
1169 |
-
opts.before.push(function(curr, next, opts) {
|
1170 |
-
$.fn.cycle.commonReset(curr,next,opts);
|
1171 |
-
opts.animIn.width = next.cycleW;
|
1172 |
-
opts.animOut.left = curr.cycleW;
|
1173 |
-
});
|
1174 |
-
opts.cssBefore = { left: w, top: 0 };
|
1175 |
-
opts.animIn = { left: 0 };
|
1176 |
-
opts.animOut = { left: w };
|
1177 |
-
};
|
1178 |
-
// blindY
|
1179 |
-
$.fn.cycle.transitions.blindY = function($cont, $slides, opts) {
|
1180 |
-
var h = $cont.css('overflow','hidden').height();
|
1181 |
-
opts.before.push(function(curr, next, opts) {
|
1182 |
-
$.fn.cycle.commonReset(curr,next,opts);
|
1183 |
-
opts.animIn.height = next.cycleH;
|
1184 |
-
opts.animOut.top = curr.cycleH;
|
1185 |
-
});
|
1186 |
-
opts.cssBefore = { top: h, left: 0 };
|
1187 |
-
opts.animIn = { top: 0 };
|
1188 |
-
opts.animOut = { top: h };
|
1189 |
-
};
|
1190 |
-
// blindZ
|
1191 |
-
$.fn.cycle.transitions.blindZ = function($cont, $slides, opts) {
|
1192 |
-
var h = $cont.css('overflow','hidden').height();
|
1193 |
-
var w = $cont.width();
|
1194 |
-
opts.before.push(function(curr, next, opts) {
|
1195 |
-
$.fn.cycle.commonReset(curr,next,opts);
|
1196 |
-
opts.animIn.height = next.cycleH;
|
1197 |
-
opts.animOut.top = curr.cycleH;
|
1198 |
-
});
|
1199 |
-
opts.cssBefore = { top: h, left: w };
|
1200 |
-
opts.animIn = { top: 0, left: 0 };
|
1201 |
-
opts.animOut = { top: h, left: w };
|
1202 |
-
};
|
1203 |
-
|
1204 |
-
// growX - grow horizontally from centered 0 width
|
1205 |
-
$.fn.cycle.transitions.growX = function($cont, $slides, opts) {
|
1206 |
-
opts.before.push(function(curr, next, opts) {
|
1207 |
-
$.fn.cycle.commonReset(curr,next,opts,false,true);
|
1208 |
-
opts.cssBefore.left = this.cycleW/2;
|
1209 |
-
opts.animIn = { left: 0, width: this.cycleW };
|
1210 |
-
opts.animOut = { left: 0 };
|
1211 |
-
});
|
1212 |
-
opts.cssBefore = { width: 0, top: 0 };
|
1213 |
-
};
|
1214 |
-
// growY - grow vertically from centered 0 height
|
1215 |
-
$.fn.cycle.transitions.growY = function($cont, $slides, opts) {
|
1216 |
-
opts.before.push(function(curr, next, opts) {
|
1217 |
-
$.fn.cycle.commonReset(curr,next,opts,true,false);
|
1218 |
-
opts.cssBefore.top = this.cycleH/2;
|
1219 |
-
opts.animIn = { top: 0, height: this.cycleH };
|
1220 |
-
opts.animOut = { top: 0 };
|
1221 |
-
});
|
1222 |
-
opts.cssBefore = { height: 0, left: 0 };
|
1223 |
-
};
|
1224 |
-
|
1225 |
-
// curtainX - squeeze in both edges horizontally
|
1226 |
-
$.fn.cycle.transitions.curtainX = function($cont, $slides, opts) {
|
1227 |
-
opts.before.push(function(curr, next, opts) {
|
1228 |
-
$.fn.cycle.commonReset(curr,next,opts,false,true,true);
|
1229 |
-
opts.cssBefore.left = next.cycleW/2;
|
1230 |
-
opts.animIn = { left: 0, width: this.cycleW };
|
1231 |
-
opts.animOut = { left: curr.cycleW/2, width: 0 };
|
1232 |
-
});
|
1233 |
-
opts.cssBefore = { top: 0, width: 0 };
|
1234 |
-
};
|
1235 |
-
// curtainY - squeeze in both edges vertically
|
1236 |
-
$.fn.cycle.transitions.curtainY = function($cont, $slides, opts) {
|
1237 |
-
opts.before.push(function(curr, next, opts) {
|
1238 |
-
$.fn.cycle.commonReset(curr,next,opts,true,false,true);
|
1239 |
-
opts.cssBefore.top = next.cycleH/2;
|
1240 |
-
opts.animIn = { top: 0, height: next.cycleH };
|
1241 |
-
opts.animOut = { top: curr.cycleH/2, height: 0 };
|
1242 |
-
});
|
1243 |
-
opts.cssBefore = { left: 0, height: 0 };
|
1244 |
-
};
|
1245 |
-
|
1246 |
-
// cover - curr slide covered by next slide
|
1247 |
-
$.fn.cycle.transitions.cover = function($cont, $slides, opts) {
|
1248 |
-
var d = opts.direction || 'left';
|
1249 |
-
var w = $cont.css('overflow','hidden').width();
|
1250 |
-
var h = $cont.height();
|
1251 |
-
opts.before.push(function(curr, next, opts) {
|
1252 |
-
$.fn.cycle.commonReset(curr,next,opts);
|
1253 |
-
if (d == 'right')
|
1254 |
-
opts.cssBefore.left = -w;
|
1255 |
-
else if (d == 'up')
|
1256 |
-
opts.cssBefore.top = h;
|
1257 |
-
else if (d == 'down')
|
1258 |
-
opts.cssBefore.top = -h;
|
1259 |
-
else
|
1260 |
-
opts.cssBefore.left = w;
|
1261 |
-
});
|
1262 |
-
opts.animIn = { left: 0, top: 0};
|
1263 |
-
opts.animOut = { opacity: 1 };
|
1264 |
-
opts.cssBefore = { top: 0, left: 0 };
|
1265 |
-
};
|
1266 |
-
|
1267 |
-
// uncover - curr slide moves off next slide
|
1268 |
-
$.fn.cycle.transitions.uncover = function($cont, $slides, opts) {
|
1269 |
-
var d = opts.direction || 'left';
|
1270 |
-
var w = $cont.css('overflow','hidden').width();
|
1271 |
-
var h = $cont.height();
|
1272 |
-
opts.before.push(function(curr, next, opts) {
|
1273 |
-
$.fn.cycle.commonReset(curr,next,opts,true,true,true);
|
1274 |
-
if (d == 'right')
|
1275 |
-
opts.animOut.left = w;
|
1276 |
-
else if (d == 'up')
|
1277 |
-
opts.animOut.top = -h;
|
1278 |
-
else if (d == 'down')
|
1279 |
-
opts.animOut.top = h;
|
1280 |
-
else
|
1281 |
-
opts.animOut.left = -w;
|
1282 |
-
});
|
1283 |
-
opts.animIn = { left: 0, top: 0 };
|
1284 |
-
opts.animOut = { opacity: 1 };
|
1285 |
-
opts.cssBefore = { top: 0, left: 0 };
|
1286 |
-
};
|
1287 |
-
|
1288 |
-
// toss - move top slide and fade away
|
1289 |
-
$.fn.cycle.transitions.toss = function($cont, $slides, opts) {
|
1290 |
-
var w = $cont.css('overflow','visible').width();
|
1291 |
-
var h = $cont.height();
|
1292 |
-
opts.before.push(function(curr, next, opts) {
|
1293 |
-
$.fn.cycle.commonReset(curr,next,opts,true,true,true);
|
1294 |
-
// provide default toss settings if animOut not provided
|
1295 |
-
if (!opts.animOut.left && !opts.animOut.top)
|
1296 |
-
opts.animOut = { left: w*2, top: -h/2, opacity: 0 };
|
1297 |
-
else
|
1298 |
-
opts.animOut.opacity = 0;
|
1299 |
-
});
|
1300 |
-
opts.cssBefore = { left: 0, top: 0 };
|
1301 |
-
opts.animIn = { left: 0 };
|
1302 |
-
};
|
1303 |
-
|
1304 |
-
// wipe - clip animation
|
1305 |
-
$.fn.cycle.transitions.wipe = function($cont, $slides, opts) {
|
1306 |
-
var w = $cont.css('overflow','hidden').width();
|
1307 |
-
var h = $cont.height();
|
1308 |
-
opts.cssBefore = opts.cssBefore || {};
|
1309 |
-
var clip;
|
1310 |
-
if (opts.clip) {
|
1311 |
-
if (/l2r/.test(opts.clip))
|
1312 |
-
clip = 'rect(0px 0px '+h+'px 0px)';
|
1313 |
-
else if (/r2l/.test(opts.clip))
|
1314 |
-
clip = 'rect(0px '+w+'px '+h+'px '+w+'px)';
|
1315 |
-
else if (/t2b/.test(opts.clip))
|
1316 |
-
clip = 'rect(0px '+w+'px 0px 0px)';
|
1317 |
-
else if (/b2t/.test(opts.clip))
|
1318 |
-
clip = 'rect('+h+'px '+w+'px '+h+'px 0px)';
|
1319 |
-
else if (/zoom/.test(opts.clip)) {
|
1320 |
-
var top = parseInt(h/2);
|
1321 |
-
var left = parseInt(w/2);
|
1322 |
-
clip = 'rect('+top+'px '+left+'px '+top+'px '+left+'px)';
|
1323 |
-
}
|
1324 |
-
}
|
1325 |
-
|
1326 |
-
opts.cssBefore.clip = opts.cssBefore.clip || clip || 'rect(0px 0px 0px 0px)';
|
1327 |
-
|
1328 |
-
var d = opts.cssBefore.clip.match(/(\d+)/g);
|
1329 |
-
var t = parseInt(d[0]), r = parseInt(d[1]), b = parseInt(d[2]), l = parseInt(d[3]);
|
1330 |
-
|
1331 |
-
opts.before.push(function(curr, next, opts) {
|
1332 |
-
if (curr == next) return;
|
1333 |
-
var $curr = $(curr), $next = $(next);
|
1334 |
-
$.fn.cycle.commonReset(curr,next,opts,true,true,false);
|
1335 |
-
opts.cssAfter.display = 'block';
|
1336 |
-
|
1337 |
-
var step = 1, count = parseInt((opts.speedIn / 13)) - 1;
|
1338 |
-
(function f() {
|
1339 |
-
var tt = t ? t - parseInt(step * (t/count)) : 0;
|
1340 |
-
var ll = l ? l - parseInt(step * (l/count)) : 0;
|
1341 |
-
var bb = b < h ? b + parseInt(step * ((h-b)/count || 1)) : h;
|
1342 |
-
var rr = r < w ? r + parseInt(step * ((w-r)/count || 1)) : w;
|
1343 |
-
$next.css({ clip: 'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)' });
|
1344 |
-
(step++ <= count) ? setTimeout(f, 13) : $curr.css('display', 'none');
|
1345 |
-
})();
|
1346 |
-
});
|
1347 |
-
opts.cssBefore = { display: 'block', opacity: 1, top: 0, left: 0 };
|
1348 |
-
opts.animIn = { left: 0 };
|
1349 |
-
opts.animOut = { left: 0 };
|
1350 |
-
};
|
1351 |
-
|
1352 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/jquery.cycle.all.min.js
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
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.99 (12-MAR-2011)
|
6 |
+
* Dual licensed under the MIT and GPL licenses.
|
7 |
+
* http://jquery.malsup.com/license.html
|
8 |
+
* Requires: jQuery v1.3.2 or later
|
9 |
+
*/
|
10 |
+
(function($){var ver="2.99";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){$.fn.cycle.debug&&log(s);}function log(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "));}$.expr[":"].paused=function(el){return el.cyclePause;};$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,!options.backwards);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.backwards);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.cssAfter=opts.cssAfter||{};opts.cssFirst=opts.cssFirst||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="none"?0:opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.backwards){opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length){opts.after[0].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$s.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=0;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){opts.busy=0;$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing("+fx+"); currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.backwards);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while(opts.fx!="none"&&(t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,1);};$.fn.cycle.prev=function(opts){advance(opts,0);};function advance(opts,moveForward){var val=moveForward?1:-1;var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,moveForward);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v&&v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();if(typeof opts.cssBefore.opacity=="undefined"){opts.cssBefore.opacity=1;}opts.cssBefore.display="block";if(opts.slideResize&&w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(opts.slideResize&&h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,function(){cb();});};$l.animate(opts.animOut,speedOut,easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!$.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null};})(jQuery);
|
11 |
+
/*
|
12 |
+
* jQuery Cycle Plugin Transition Definitions
|
13 |
+
* This script is a plugin for the jQuery Cycle Plugin
|
14 |
+
* Examples and documentation at: http://malsup.com/jquery/cycle/
|
15 |
+
* Copyright (c) 2007-2010 M. Alsup
|
16 |
+
* Version: 2.73
|
17 |
+
* Dual licensed under the MIT and GPL licenses:
|
18 |
+
* http://www.opensource.org/licenses/mit-license.php
|
19 |
+
* http://www.gnu.org/licenses/gpl.html
|
20 |
+
*/
|
21 |
+
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css({display:"block",opacity:1});opts.before.push(function(curr,next,opts,w,h,rev){$(curr).css("zIndex",opts.slideCount+(!rev===true?1:0));$(next).css("zIndex",opts.slideCount+(!rev===true?0:1));});opts.animIn.opacity=1;opts.animOut.opacity=0;opts.cssBefore.opacity=1;opts.cssBefore.display="block";opts.cssAfter.zIndex=0;};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore.top=h;opts.cssBefore.left=0;opts.cssFirst.top=0;opts.animIn.top=0;opts.animOut.top=-h;};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst.top=0;opts.cssBefore.top=-h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h;};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=0-w;};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=-w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w;};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst.left=0;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.top=0;};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.left=0;};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.width="show";opts.animOut.width=0;};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animIn.height="show";opts.animOut.height=0;};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){if(opts.rev){fwd=!fwd;}var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};$.extend(opts.cssBefore,{display:"block",opacity:1,top:0,left:0});};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;opts.animOut.width=next.cycleW;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.height=0;opts.animIn.top=0;opts.animOut.height=0;};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animOut.height=0;};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.left=0;opts.animOut.width=0;};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});$.extend(opts.cssBefore,{top:0,left:0,width:0});opts.animIn.left=0;opts.animOut.width=0;};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});$.extend(opts.animOut,{width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2});});opts.cssFirst.top=0;opts.cssFirst.left=0;opts.cssBefore.width=0;opts.cssBefore.height=0;};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});});opts.cssBefore.width=0;opts.cssBefore.height=0;opts.animOut.opacity=0;};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w;};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore.top=h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h;};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore.top=h;opts.cssBefore.left=w;opts.animIn.top=0;opts.animIn.left=0;opts.animOut.top=h;opts.animOut.left=w;};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=0;});opts.cssBefore.top=0;opts.cssBefore.width=0;};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn.top=0;opts.animIn.height=this.cycleH;opts.animOut.top=0;});opts.cssBefore.height=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=curr.cycleW/2;opts.animOut.width=0;});opts.cssBefore.top=0;opts.cssBefore.width=0;};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn.top=0;opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH/2;opts.animOut.height=0;});opts.cssBefore.height=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){$.extend(opts.animOut,{left:w*2,top:-h/2,opacity:0});}else{opts.animOut.opacity=0;}});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.animIn.left=0;};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});$.extend(opts.cssBefore,{display:"block",opacity:1,top:0,left:0});opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);
|
js/slideshow.js
CHANGED
@@ -1,35 +1,42 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
});
|
1 |
+
/* Options for the jQuery Cycle script which powers the slideshow: http://jquery.malsup.com/cycle/
|
2 |
+
|
3 |
+
Copy "slideshow.js" from "/meteor-slides/js/" to your theme's directory to replace
|
4 |
+
the plugin's default slideshow script.
|
5 |
+
|
6 |
+
Learn more about customizing the slideshow script for Meteor Slides:
|
7 |
+
http://www.jleuze.com/plugins/meteor-slides/customizing-the-slideshow-script/
|
8 |
+
*/
|
9 |
+
|
10 |
+
var $j = jQuery.noConflict();
|
11 |
+
|
12 |
+
var $slidespeed = parseInt( meteorslidessettings.meteorslideshowspeed );
|
13 |
+
|
14 |
+
var $slidetimeout = parseInt( meteorslidessettings.meteorslideshowduration );
|
15 |
+
|
16 |
+
var $slideheight = parseInt( meteorslidessettings.meteorslideshowheight );
|
17 |
+
|
18 |
+
var $slidewidth = parseInt( meteorslidessettings.meteorslideshowwidth );
|
19 |
+
|
20 |
+
var $slidetransition = meteorslidessettings.meteorslideshowtransition;
|
21 |
+
|
22 |
+
$j(document).ready(function() {
|
23 |
+
|
24 |
+
$j('.meteor-slides').cycle({
|
25 |
+
|
26 |
+
height: $slideheight,
|
27 |
+
width: $slidewidth,
|
28 |
+
fit: 1,
|
29 |
+
fx: $slidetransition,
|
30 |
+
speed: $slidespeed,
|
31 |
+
timeout: $slidetimeout,
|
32 |
+
pause: 1,
|
33 |
+
prev: '#meteor-prev',
|
34 |
+
next: '#meteor-next',
|
35 |
+
pager: '#meteor-buttons',
|
36 |
+
pagerEvent: 'click',
|
37 |
+
cleartypeNoBg: 'true',
|
38 |
+
slideExpr: '.mslide'
|
39 |
+
|
40 |
+
});
|
41 |
+
|
42 |
});
|
languages/meteor-slides-en_RU.mo
ADDED
Binary file
|
languages/meteor-slides-en_RU.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-04-03 09:13-0600\n"
|
12 |
+
"Last-Translator: Josh Leuze <jleuze@gmail.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 "Укажите адрес перехода (url) со слайда."
|
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 "горизонтальный двойной сдвиг"
|
194 |
+
|
195 |
+
#: meteor-slides-settings.php:41
|
196 |
+
msgid "blindY"
|
197 |
+
msgstr "вертикальный двойной сдвиг"
|
198 |
+
|
199 |
+
#: meteor-slides-settings.php:41
|
200 |
+
msgid "blindZ"
|
201 |
+
msgstr "двойной сдвиг по диагонали"
|
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 "Настройки Meteor Slides"
|
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 для добавления его в ваш пост или страницу, или используйте виджет Meteor Slides. %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 на форуме техподдержки WordPress.org."
|
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 |
+
|
languages/meteor-slides-en_US.txt
CHANGED
@@ -1,161 +1,161 @@
|
|
1 |
-
Slides
|
2 |
-
|
3 |
-
Slide
|
4 |
-
|
5 |
-
Add New
|
6 |
-
|
7 |
-
Add New Slide
|
8 |
-
|
9 |
-
Edit Slide
|
10 |
-
|
11 |
-
Edit
|
12 |
-
|
13 |
-
New Slide
|
14 |
-
|
15 |
-
View Slide
|
16 |
-
|
17 |
-
Search Slides
|
18 |
-
|
19 |
-
No slides found
|
20 |
-
|
21 |
-
No slides found in Trash
|
22 |
-
|
23 |
-
Slideshows
|
24 |
-
|
25 |
-
Slideshow
|
26 |
-
|
27 |
-
Search Slideshows
|
28 |
-
|
29 |
-
Popular Slideshows
|
30 |
-
|
31 |
-
All Slideshows
|
32 |
-
|
33 |
-
Parent Slideshow
|
34 |
-
|
35 |
-
Parent Slideshow:
|
36 |
-
|
37 |
-
Edit Slideshow
|
38 |
-
|
39 |
-
Update Slideshow
|
40 |
-
|
41 |
-
Add New Slideshow
|
42 |
-
|
43 |
-
New Slideshow Name
|
44 |
-
|
45 |
-
Slide Image
|
46 |
-
|
47 |
-
Add the URL this slide should link to.
|
48 |
-
|
49 |
-
Slide Link
|
50 |
-
|
51 |
-
Slides Settings
|
52 |
-
|
53 |
-
Settings
|
54 |
-
|
55 |
-
Configure Slideshow
|
56 |
-
|
57 |
-
Slideshow Quantity
|
58 |
-
|
59 |
-
Slide Height
|
60 |
-
|
61 |
-
Slide Width
|
62 |
-
|
63 |
-
Transition Style
|
64 |
-
|
65 |
-
Transition Speed
|
66 |
-
|
67 |
-
Slide Duration
|
68 |
-
|
69 |
-
Slideshow Navigation
|
70 |
-
|
71 |
-
Add a slideshow widget to a sidebar
|
72 |
-
|
73 |
-
Meteor Slides Widget
|
74 |
-
|
75 |
-
Title:
|
76 |
-
|
77 |
-
Slideshow:
|
78 |
-
|
79 |
-
Metadata:
|
80 |
-
|
81 |
-
Set up your slideshow using the options below.
|
82 |
-
|
83 |
-
px
|
84 |
-
|
85 |
-
blindX
|
86 |
-
|
87 |
-
blindY
|
88 |
-
|
89 |
-
blindZ
|
90 |
-
|
91 |
-
cover
|
92 |
-
|
93 |
-
curtainX
|
94 |
-
|
95 |
-
curtainY
|
96 |
-
|
97 |
-
fade
|
98 |
-
|
99 |
-
fadeZoom
|
100 |
-
|
101 |
-
growX
|
102 |
-
|
103 |
-
growY
|
104 |
-
|
105 |
-
none
|
106 |
-
|
107 |
-
scrollUp
|
108 |
-
|
109 |
-
scrollDown
|
110 |
-
|
111 |
-
scrollLeft
|
112 |
-
|
113 |
-
scrollRight
|
114 |
-
|
115 |
-
scrollHorz
|
116 |
-
|
117 |
-
scrollVert
|
118 |
-
|
119 |
-
slideX
|
120 |
-
|
121 |
-
slideY
|
122 |
-
|
123 |
-
shuffle
|
124 |
-
|
125 |
-
turnUp
|
126 |
-
|
127 |
-
turnDown
|
128 |
-
|
129 |
-
turnLeft
|
130 |
-
|
131 |
-
turnRight
|
132 |
-
|
133 |
-
uncover
|
134 |
-
|
135 |
-
wipe
|
136 |
-
|
137 |
-
zoom
|
138 |
-
|
139 |
-
seconds
|
140 |
-
|
141 |
-
None
|
142 |
-
|
143 |
-
Previous/Next
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
Both
|
148 |
-
|
149 |
-
Meteor Slides Settings
|
150 |
-
|
151 |
-
Save Changes
|
152 |
-
|
153 |
-
Install Slideshow
|
154 |
-
|
155 |
-
Use [template tag] to add this slideshow to your theme, use [short code] to add it to your Post or Page content, or use the Meteor Slides Widget. [url]More information[/url]
|
156 |
-
|
157 |
-
Please [url]post any questions or problems[/url] in the WordPress.org support forums.
|
158 |
-
|
159 |
-
Previous
|
160 |
-
|
161 |
Next
|
1 |
+
Slides
|
2 |
+
|
3 |
+
Slide
|
4 |
+
|
5 |
+
Add New
|
6 |
+
|
7 |
+
Add New Slide
|
8 |
+
|
9 |
+
Edit Slide
|
10 |
+
|
11 |
+
Edit
|
12 |
+
|
13 |
+
New Slide
|
14 |
+
|
15 |
+
View Slide
|
16 |
+
|
17 |
+
Search Slides
|
18 |
+
|
19 |
+
No slides found
|
20 |
+
|
21 |
+
No slides found in Trash
|
22 |
+
|
23 |
+
Slideshows
|
24 |
+
|
25 |
+
Slideshow
|
26 |
+
|
27 |
+
Search Slideshows
|
28 |
+
|
29 |
+
Popular Slideshows
|
30 |
+
|
31 |
+
All Slideshows
|
32 |
+
|
33 |
+
Parent Slideshow
|
34 |
+
|
35 |
+
Parent Slideshow:
|
36 |
+
|
37 |
+
Edit Slideshow
|
38 |
+
|
39 |
+
Update Slideshow
|
40 |
+
|
41 |
+
Add New Slideshow
|
42 |
+
|
43 |
+
New Slideshow Name
|
44 |
+
|
45 |
+
Slide Image
|
46 |
+
|
47 |
+
Add the URL this slide should link to.
|
48 |
+
|
49 |
+
Slide Link
|
50 |
+
|
51 |
+
Slides Settings
|
52 |
+
|
53 |
+
Settings
|
54 |
+
|
55 |
+
Configure Slideshow
|
56 |
+
|
57 |
+
Slideshow Quantity
|
58 |
+
|
59 |
+
Slide Height
|
60 |
+
|
61 |
+
Slide Width
|
62 |
+
|
63 |
+
Transition Style
|
64 |
+
|
65 |
+
Transition Speed
|
66 |
+
|
67 |
+
Slide Duration
|
68 |
+
|
69 |
+
Slideshow Navigation
|
70 |
+
|
71 |
+
Add a slideshow widget to a sidebar
|
72 |
+
|
73 |
+
Meteor Slides Widget
|
74 |
+
|
75 |
+
Title:
|
76 |
+
|
77 |
+
Slideshow:
|
78 |
+
|
79 |
+
Metadata:
|
80 |
+
|
81 |
+
Set up your slideshow using the options below.
|
82 |
+
|
83 |
+
px
|
84 |
+
|
85 |
+
blindX
|
86 |
+
|
87 |
+
blindY
|
88 |
+
|
89 |
+
blindZ
|
90 |
+
|
91 |
+
cover
|
92 |
+
|
93 |
+
curtainX
|
94 |
+
|
95 |
+
curtainY
|
96 |
+
|
97 |
+
fade
|
98 |
+
|
99 |
+
fadeZoom
|
100 |
+
|
101 |
+
growX
|
102 |
+
|
103 |
+
growY
|
104 |
+
|
105 |
+
none
|
106 |
+
|
107 |
+
scrollUp
|
108 |
+
|
109 |
+
scrollDown
|
110 |
+
|
111 |
+
scrollLeft
|
112 |
+
|
113 |
+
scrollRight
|
114 |
+
|
115 |
+
scrollHorz
|
116 |
+
|
117 |
+
scrollVert
|
118 |
+
|
119 |
+
slideX
|
120 |
+
|
121 |
+
slideY
|
122 |
+
|
123 |
+
shuffle
|
124 |
+
|
125 |
+
turnUp
|
126 |
+
|
127 |
+
turnDown
|
128 |
+
|
129 |
+
turnLeft
|
130 |
+
|
131 |
+
turnRight
|
132 |
+
|
133 |
+
uncover
|
134 |
+
|
135 |
+
wipe
|
136 |
+
|
137 |
+
zoom
|
138 |
+
|
139 |
+
seconds
|
140 |
+
|
141 |
+
None
|
142 |
+
|
143 |
+
Previous/Next
|
144 |
+
|
145 |
+
Paged
|
146 |
+
|
147 |
+
Both
|
148 |
+
|
149 |
+
Meteor Slides Settings
|
150 |
+
|
151 |
+
Save Changes
|
152 |
+
|
153 |
+
Install Slideshow
|
154 |
+
|
155 |
+
Use [template tag] to add this slideshow to your theme, use [short code] to add it to your Post or Page content, or use the Meteor Slides Widget. [url]More information[/url]
|
156 |
+
|
157 |
+
Please [url]post any questions or problems[/url] in the WordPress.org support forums.
|
158 |
+
|
159 |
+
Previous
|
160 |
+
|
161 |
Next
|
languages/meteor-slides-he_IL.mo
ADDED
Binary file
|
languages/meteor-slides-he_IL.po
ADDED
@@ -0,0 +1,429 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/meteor-slides\n"
|
5 |
+
"POT-Creation-Date: 2010-10-13 16:51+0000\n"
|
6 |
+
"PO-Revision-Date: 2011-04-08 16:18+0200\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
15 |
+
"X-Textdomain-Support: yes\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
#@ meteor-slides
|
19 |
+
#: meteor-slides-plugin.php:78
|
20 |
+
msgid "Slides"
|
21 |
+
msgstr "שקופיות"
|
22 |
+
|
23 |
+
#@ meteor-slides
|
24 |
+
#: meteor-slides-plugin.php:79
|
25 |
+
msgid "Slide"
|
26 |
+
msgstr "שקופית"
|
27 |
+
|
28 |
+
#@ meteor-slides
|
29 |
+
#: meteor-slides-plugin.php:80
|
30 |
+
msgid "Add New"
|
31 |
+
msgstr "הוספת שקופית חדשה"
|
32 |
+
|
33 |
+
#@ meteor-slides
|
34 |
+
#: meteor-slides-plugin.php:81
|
35 |
+
msgid "Add New Slide"
|
36 |
+
msgstr "הוסף שקופית חדשה"
|
37 |
+
|
38 |
+
#@ meteor-slides
|
39 |
+
#: meteor-slides-plugin.php:82
|
40 |
+
msgid "Edit Slide"
|
41 |
+
msgstr "ערוך שקופית"
|
42 |
+
|
43 |
+
#@ meteor-slides
|
44 |
+
#: meteor-slides-plugin.php:83
|
45 |
+
msgid "Edit"
|
46 |
+
msgstr "עריכה"
|
47 |
+
|
48 |
+
#@ meteor-slides
|
49 |
+
#: meteor-slides-plugin.php:84
|
50 |
+
msgid "New Slide"
|
51 |
+
msgstr "שקופית חדשה"
|
52 |
+
|
53 |
+
#@ meteor-slides
|
54 |
+
#: meteor-slides-plugin.php:85
|
55 |
+
#: meteor-slides-plugin.php:89
|
56 |
+
msgid "View Slide"
|
57 |
+
msgstr "תצוגה מקדימה"
|
58 |
+
|
59 |
+
#@ meteor-slides
|
60 |
+
#: meteor-slides-plugin.php:86
|
61 |
+
msgid "Search Slides"
|
62 |
+
msgstr "חיפוש שקופיות"
|
63 |
+
|
64 |
+
#@ meteor-slides
|
65 |
+
#: meteor-slides-plugin.php:87
|
66 |
+
msgid "No slides found"
|
67 |
+
msgstr "לא נמצאו שקופיות"
|
68 |
+
|
69 |
+
#@ meteor-slides
|
70 |
+
#: meteor-slides-plugin.php:88
|
71 |
+
msgid "No slides found in Trash"
|
72 |
+
msgstr "לא נמצאו שקופיות באשפה"
|
73 |
+
|
74 |
+
#@ meteor-slides
|
75 |
+
#: meteor-slides-plugin.php:127
|
76 |
+
msgid "Slideshows"
|
77 |
+
msgstr "מצגות"
|
78 |
+
|
79 |
+
#@ meteor-slides
|
80 |
+
#: meteor-slides-plugin.php:128
|
81 |
+
msgid "Slideshow"
|
82 |
+
msgstr "מצגת"
|
83 |
+
|
84 |
+
#@ meteor-slides
|
85 |
+
#: meteor-slides-plugin.php:129
|
86 |
+
msgid "Search Slideshows"
|
87 |
+
msgstr "חיפוש מצגות"
|
88 |
+
|
89 |
+
#@ meteor-slides
|
90 |
+
#: meteor-slides-plugin.php:130
|
91 |
+
msgid "Popular Slideshows"
|
92 |
+
msgstr "מצגות פופולאריות"
|
93 |
+
|
94 |
+
#@ meteor-slides
|
95 |
+
#: meteor-slides-plugin.php:131
|
96 |
+
msgid "All Slideshows"
|
97 |
+
msgstr "כל המצגות"
|
98 |
+
|
99 |
+
#@ meteor-slides
|
100 |
+
#: meteor-slides-plugin.php:132
|
101 |
+
msgid "Parent Slideshow"
|
102 |
+
msgstr "מצגת אם"
|
103 |
+
|
104 |
+
#@ meteor-slides
|
105 |
+
#: meteor-slides-plugin.php:133
|
106 |
+
msgid "Parent Slideshow:"
|
107 |
+
msgstr "מצגת אם:"
|
108 |
+
|
109 |
+
#@ meteor-slides
|
110 |
+
#: meteor-slides-plugin.php:134
|
111 |
+
msgid "Edit Slideshow"
|
112 |
+
msgstr "עריכת מצגת"
|
113 |
+
|
114 |
+
#@ meteor-slides
|
115 |
+
#: meteor-slides-plugin.php:135
|
116 |
+
msgid "Update Slideshow"
|
117 |
+
msgstr "עדכון מצגת"
|
118 |
+
|
119 |
+
#@ meteor-slides
|
120 |
+
#: meteor-slides-plugin.php:136
|
121 |
+
msgid "Add New Slideshow"
|
122 |
+
msgstr "להוסיף מצגת חדשה"
|
123 |
+
|
124 |
+
#@ meteor-slides
|
125 |
+
#: meteor-slides-plugin.php:137
|
126 |
+
msgid "New Slideshow Name"
|
127 |
+
msgstr "שם חדש למצגת"
|
128 |
+
|
129 |
+
#@ meteor-slides
|
130 |
+
#: meteor-slides-plugin.php:159
|
131 |
+
msgid "Slide Image"
|
132 |
+
msgstr "תמונת שקופית"
|
133 |
+
|
134 |
+
#@ meteor-slides
|
135 |
+
#: meteor-slides-plugin.php:194
|
136 |
+
msgid "Add the URL this slide should link to."
|
137 |
+
msgstr "להוסיף קישור URL לשקופית זו."
|
138 |
+
|
139 |
+
#@ meteor-slides
|
140 |
+
#: meteor-slides-plugin.php:206
|
141 |
+
msgid "Slide Link"
|
142 |
+
msgstr "קישור שקופית"
|
143 |
+
|
144 |
+
#@ meteor-slides
|
145 |
+
#: meteor-slides-plugin.php:324
|
146 |
+
msgid "Slides Settings"
|
147 |
+
msgstr "הגדרת שקופיות"
|
148 |
+
|
149 |
+
#@ meteor-slides
|
150 |
+
#: meteor-slides-plugin.php:324
|
151 |
+
msgid "Settings"
|
152 |
+
msgstr "הגדרות"
|
153 |
+
|
154 |
+
#@ meteor-slides
|
155 |
+
#: meteor-slides-plugin.php:358
|
156 |
+
msgid "Configure Slideshow"
|
157 |
+
msgstr "הגדרת מצגת"
|
158 |
+
|
159 |
+
#@ meteor-slides
|
160 |
+
#: meteor-slides-plugin.php:360
|
161 |
+
msgid "Slideshow Quantity"
|
162 |
+
msgstr "כמות מצגת"
|
163 |
+
|
164 |
+
#@ meteor-slides
|
165 |
+
#: meteor-slides-plugin.php:362
|
166 |
+
msgid "Slide Height"
|
167 |
+
msgstr "גובה שקופית"
|
168 |
+
|
169 |
+
#@ meteor-slides
|
170 |
+
#: meteor-slides-plugin.php:364
|
171 |
+
msgid "Slide Width"
|
172 |
+
msgstr "רוחב שקופית"
|
173 |
+
|
174 |
+
#@ meteor-slides
|
175 |
+
#: meteor-slides-plugin.php:366
|
176 |
+
msgid "Transition Style"
|
177 |
+
msgstr "סגנון מעבר"
|
178 |
+
|
179 |
+
#@ meteor-slides
|
180 |
+
#: meteor-slides-plugin.php:368
|
181 |
+
msgid "Transition Speed"
|
182 |
+
msgstr "מהירות מעבר"
|
183 |
+
|
184 |
+
#@ meteor-slides
|
185 |
+
#: meteor-slides-plugin.php:370
|
186 |
+
msgid "Slide Duration"
|
187 |
+
msgstr "אורך זמן שקופית"
|
188 |
+
|
189 |
+
#@ meteor-slides
|
190 |
+
#: meteor-slides-plugin.php:372
|
191 |
+
msgid "Slideshow Navigation"
|
192 |
+
msgstr "ניווט מצגת"
|
193 |
+
|
194 |
+
#@ meteor-slides
|
195 |
+
#: meteor-slides-plugin.php:605
|
196 |
+
msgid "Add a slideshow widget to a sidebar"
|
197 |
+
msgstr "הוספת יישומון שקופיות לסרגל צדדי"
|
198 |
+
|
199 |
+
#@ meteor-slides
|
200 |
+
#: meteor-slides-plugin.php:609
|
201 |
+
msgid "Meteor Slides Widget"
|
202 |
+
msgstr "יישומון שקופיות"
|
203 |
+
|
204 |
+
#@ meteor-slides
|
205 |
+
#: meteor-slides-plugin.php:653
|
206 |
+
msgid "Title:"
|
207 |
+
msgstr "כותרת:"
|
208 |
+
|
209 |
+
#@ meteor-slides
|
210 |
+
#: meteor-slides-plugin.php:656
|
211 |
+
msgid "Slideshow:"
|
212 |
+
msgstr "מצגת:"
|
213 |
+
|
214 |
+
#@ meteor-slides
|
215 |
+
#: meteor-slides-plugin.php:659
|
216 |
+
msgid "Metadata:"
|
217 |
+
msgstr "נתונים:"
|
218 |
+
|
219 |
+
#@ meteor-slides
|
220 |
+
#: meteor-slides-settings.php:7
|
221 |
+
msgid "Set up your slideshow using the options below."
|
222 |
+
msgstr "הגדרת מצגת באמצעות האפשרויות הבאות."
|
223 |
+
|
224 |
+
#@ meteor-slides
|
225 |
+
#: meteor-slides-settings.php:21
|
226 |
+
#: meteor-slides-settings.php:31
|
227 |
+
msgid "px"
|
228 |
+
msgstr "פיקסל"
|
229 |
+
|
230 |
+
#@ meteor-slides
|
231 |
+
#: meteor-slides-settings.php:41
|
232 |
+
msgid "blindX"
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#@ meteor-slides
|
236 |
+
#: meteor-slides-settings.php:41
|
237 |
+
msgid "blindY"
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
#@ meteor-slides
|
241 |
+
#: meteor-slides-settings.php:41
|
242 |
+
msgid "blindZ"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#@ meteor-slides
|
246 |
+
#: meteor-slides-settings.php:41
|
247 |
+
msgid "cover"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#@ meteor-slides
|
251 |
+
#: meteor-slides-settings.php:41
|
252 |
+
msgid "curtainX"
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#@ meteor-slides
|
256 |
+
#: meteor-slides-settings.php:41
|
257 |
+
msgid "curtainY"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#@ meteor-slides
|
261 |
+
#: meteor-slides-settings.php:41
|
262 |
+
msgid "fade"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#@ meteor-slides
|
266 |
+
#: meteor-slides-settings.php:41
|
267 |
+
msgid "fadeZoom"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#@ meteor-slides
|
271 |
+
#: meteor-slides-settings.php:41
|
272 |
+
msgid "growX"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#@ meteor-slides
|
276 |
+
#: meteor-slides-settings.php:41
|
277 |
+
msgid "growY"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#@ meteor-slides
|
281 |
+
#: meteor-slides-settings.php:41
|
282 |
+
msgid "none"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#@ meteor-slides
|
286 |
+
#: meteor-slides-settings.php:41
|
287 |
+
msgid "scrollUp"
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
+
#@ meteor-slides
|
291 |
+
#: meteor-slides-settings.php:41
|
292 |
+
msgid "scrollDown"
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#@ meteor-slides
|
296 |
+
#: meteor-slides-settings.php:41
|
297 |
+
msgid "scrollLeft"
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#@ meteor-slides
|
301 |
+
#: meteor-slides-settings.php:41
|
302 |
+
msgid "scrollRight"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#@ meteor-slides
|
306 |
+
#: meteor-slides-settings.php:41
|
307 |
+
msgid "scrollHorz"
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#@ meteor-slides
|
311 |
+
#: meteor-slides-settings.php:41
|
312 |
+
msgid "scrollVert"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#@ meteor-slides
|
316 |
+
#: meteor-slides-settings.php:41
|
317 |
+
msgid "slideX"
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
+
#@ meteor-slides
|
321 |
+
#: meteor-slides-settings.php:41
|
322 |
+
msgid "slideY"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#@ meteor-slides
|
326 |
+
#: meteor-slides-settings.php:41
|
327 |
+
msgid "shuffle"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#@ meteor-slides
|
331 |
+
#: meteor-slides-settings.php:41
|
332 |
+
msgid "turnUp"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#@ meteor-slides
|
336 |
+
#: meteor-slides-settings.php:41
|
337 |
+
msgid "turnDown"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#@ meteor-slides
|
341 |
+
#: meteor-slides-settings.php:41
|
342 |
+
msgid "turnLeft"
|
343 |
+
msgstr ""
|
344 |
+
|
345 |
+
#@ meteor-slides
|
346 |
+
#: meteor-slides-settings.php:41
|
347 |
+
msgid "turnRight"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#@ meteor-slides
|
351 |
+
#: meteor-slides-settings.php:41
|
352 |
+
msgid "uncover"
|
353 |
+
msgstr ""
|
354 |
+
|
355 |
+
#@ meteor-slides
|
356 |
+
#: meteor-slides-settings.php:41
|
357 |
+
msgid "wipe"
|
358 |
+
msgstr ""
|
359 |
+
|
360 |
+
#@ meteor-slides
|
361 |
+
#: meteor-slides-settings.php:41
|
362 |
+
msgid "zoom"
|
363 |
+
msgstr ""
|
364 |
+
|
365 |
+
#@ meteor-slides
|
366 |
+
#: meteor-slides-settings.php:63
|
367 |
+
#: meteor-slides-settings.php:73
|
368 |
+
msgid "seconds"
|
369 |
+
msgstr "שניות"
|
370 |
+
|
371 |
+
#@ meteor-slides
|
372 |
+
#: meteor-slides-settings.php:83
|
373 |
+
msgid "None"
|
374 |
+
msgstr "ללא"
|
375 |
+
|
376 |
+
#@ meteor-slides
|
377 |
+
#: meteor-slides-settings.php:84
|
378 |
+
msgid "Previous/Next"
|
379 |
+
msgstr "קודם / הבא"
|
380 |
+
|
381 |
+
#@ meteor-slides
|
382 |
+
#: meteor-slides-settings.php:85
|
383 |
+
msgid "Paged"
|
384 |
+
msgstr "עימוד"
|
385 |
+
|
386 |
+
#@ meteor-slides
|
387 |
+
#: meteor-slides-settings.php:86
|
388 |
+
msgid "Both"
|
389 |
+
msgstr "שניהם"
|
390 |
+
|
391 |
+
#@ meteor-slides
|
392 |
+
#: meteor-slides-settings.php:112
|
393 |
+
msgid "Meteor Slides Settings"
|
394 |
+
msgstr "הגדרות שקופיות"
|
395 |
+
|
396 |
+
#@ meteor-slides
|
397 |
+
#: meteor-slides-settings.php:126
|
398 |
+
msgid "Save Changes"
|
399 |
+
msgstr "שמירת שינויים"
|
400 |
+
|
401 |
+
#@ meteor-slides
|
402 |
+
#: meteor-slides-settings.php:132
|
403 |
+
msgid "Install Slideshow"
|
404 |
+
msgstr "התקן מצגת"
|
405 |
+
|
406 |
+
#@ meteor-slides
|
407 |
+
#: meteor-slides-settings.php:134
|
408 |
+
#, php-format
|
409 |
+
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"
|
410 |
+
msgstr "השתמש % 1 $ s כדי להוסיף שקופיות לנושא שלך, להשתמש % 2 $ s כדי להוסיף אותו להודעה שלך או לתוכן הדף, או להשתמש בוידג'ט שקופיות. % 3% למידע $ sMore 4 $ s"
|
411 |
+
|
412 |
+
#@ meteor-slides
|
413 |
+
#: meteor-slides-settings.php:136
|
414 |
+
#, php-format
|
415 |
+
msgid "Please %1$spost any questions or problems%2$s in the WordPress.org support forums."
|
416 |
+
msgstr ""
|
417 |
+
|
418 |
+
#@ meteor-slides
|
419 |
+
#: meteor-slideshow.php:17
|
420 |
+
#: meteor-slideshow.php:29
|
421 |
+
msgid "Previous"
|
422 |
+
msgstr "קודם"
|
423 |
+
|
424 |
+
#@ meteor-slides
|
425 |
+
#: meteor-slideshow.php:19
|
426 |
+
#: meteor-slideshow.php:31
|
427 |
+
msgid "Next"
|
428 |
+
msgstr "הבא"
|
429 |
+
|
languages/meteor-slides-ja_JA.mo
ADDED
Binary file
|
languages/meteor-slides-ja_JA.po
ADDED
@@ -0,0 +1,360 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-07-13 12:21+0900\n"
|
12 |
+
"Last-Translator: COCOM <cocom.sendai@gmail.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 "スライドのURLリンク"
|
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 "Meteor Slides ウィジェット"
|
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 "ブラインド(横)"
|
194 |
+
|
195 |
+
#: meteor-slides-settings.php:41
|
196 |
+
msgid "blindY"
|
197 |
+
msgstr "ブラインド(縦)"
|
198 |
+
|
199 |
+
#: meteor-slides-settings.php:41
|
200 |
+
msgid "blindZ"
|
201 |
+
msgstr "ブラインド(奥)"
|
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 "Meteor Slides 設定"
|
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 を使用してください。 Meteor Slides ウィジェットでの表示も可能です。 %3$sMore information%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はWordPress.orgサポートフォーラムにてお問い合わせください。"
|
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 |
+
|
352 |
+
msgid "Slide Title"
|
353 |
+
msgstr "タイトル"
|
354 |
+
|
355 |
+
msgid "Date"
|
356 |
+
msgstr "新しい順に表示"
|
357 |
+
|
358 |
+
msgid "Add Slideshow"
|
359 |
+
msgstr "スライドショー追加"
|
360 |
+
|
languages/meteor-slides-pl_PL.mo
ADDED
Binary file
|
languages/meteor-slides-pl_PL.po
ADDED
@@ -0,0 +1,354 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin by marx.
|
2 |
+
# Copyright (C) 2010
|
3 |
+
# This file is distributed under the same license as the package.
|
4 |
+
# Marcin Pronobis 'marx' <marx000@gmail.com>, 2011.
|
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-05-26 21:02+0100\n"
|
12 |
+
"Last-Translator: marx <marx000@o2.pl>\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-Language: Polish\n"
|
20 |
+
"X-Poedit-Country: POLAND\n"
|
21 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
22 |
+
"X-Poedit-SearchPath-0: .\n"
|
23 |
+
|
24 |
+
#: meteor-slides-plugin.php:78
|
25 |
+
msgid "Slides"
|
26 |
+
msgstr "Slajdy"
|
27 |
+
|
28 |
+
#: meteor-slides-plugin.php:79
|
29 |
+
msgid "Slide"
|
30 |
+
msgstr "Slajd"
|
31 |
+
|
32 |
+
#: meteor-slides-plugin.php:80
|
33 |
+
msgid "Add New"
|
34 |
+
msgstr "Dodaj nowy"
|
35 |
+
|
36 |
+
#: meteor-slides-plugin.php:81
|
37 |
+
msgid "Add New Slide"
|
38 |
+
msgstr "Dodaj nowy slajd"
|
39 |
+
|
40 |
+
#: meteor-slides-plugin.php:82
|
41 |
+
msgid "Edit Slide"
|
42 |
+
msgstr "Edytuj slajd"
|
43 |
+
|
44 |
+
#: meteor-slides-plugin.php:83
|
45 |
+
msgid "Edit"
|
46 |
+
msgstr "Edytuj"
|
47 |
+
|
48 |
+
#: meteor-slides-plugin.php:84
|
49 |
+
msgid "New Slide"
|
50 |
+
msgstr "Nowy slajd"
|
51 |
+
|
52 |
+
#: meteor-slides-plugin.php:85
|
53 |
+
#: meteor-slides-plugin.php:89
|
54 |
+
msgid "View Slide"
|
55 |
+
msgstr "Zobacz slajd"
|
56 |
+
|
57 |
+
#: meteor-slides-plugin.php:86
|
58 |
+
msgid "Search Slides"
|
59 |
+
msgstr "Szukaj slajdów"
|
60 |
+
|
61 |
+
#: meteor-slides-plugin.php:87
|
62 |
+
msgid "No slides found"
|
63 |
+
msgstr "Nie znaleziono slajdów"
|
64 |
+
|
65 |
+
#: meteor-slides-plugin.php:88
|
66 |
+
msgid "No slides found in Trash"
|
67 |
+
msgstr "Brak slajdów w koszu"
|
68 |
+
|
69 |
+
#: meteor-slides-plugin.php:127
|
70 |
+
msgid "Slideshows"
|
71 |
+
msgstr "Pokazy slajdów"
|
72 |
+
|
73 |
+
#: meteor-slides-plugin.php:128
|
74 |
+
msgid "Slideshow"
|
75 |
+
msgstr "Pokaz slajdów"
|
76 |
+
|
77 |
+
#: meteor-slides-plugin.php:129
|
78 |
+
msgid "Search Slideshows"
|
79 |
+
msgstr "Szukaj pokazów slajdów"
|
80 |
+
|
81 |
+
#: meteor-slides-plugin.php:130
|
82 |
+
msgid "Popular Slideshows"
|
83 |
+
msgstr "Popularne pokazy slajdów"
|
84 |
+
|
85 |
+
#: meteor-slides-plugin.php:131
|
86 |
+
msgid "All Slideshows"
|
87 |
+
msgstr "Wszystkie pokazy slajdów"
|
88 |
+
|
89 |
+
#: meteor-slides-plugin.php:132
|
90 |
+
msgid "Parent Slideshow"
|
91 |
+
msgstr "Rodzic"
|
92 |
+
|
93 |
+
#: meteor-slides-plugin.php:133
|
94 |
+
msgid "Parent Slideshow:"
|
95 |
+
msgstr "Rodzic:"
|
96 |
+
|
97 |
+
#: meteor-slides-plugin.php:134
|
98 |
+
msgid "Edit Slideshow"
|
99 |
+
msgstr "Edytuj pokaz slajdów"
|
100 |
+
|
101 |
+
#: meteor-slides-plugin.php:135
|
102 |
+
msgid "Update Slideshow"
|
103 |
+
msgstr "Aktualizuj pokaz slajdów"
|
104 |
+
|
105 |
+
#: meteor-slides-plugin.php:136
|
106 |
+
msgid "Add New Slideshow"
|
107 |
+
msgstr "Dodaj nowy pokaz slajdów"
|
108 |
+
|
109 |
+
#: meteor-slides-plugin.php:137
|
110 |
+
msgid "New Slideshow Name"
|
111 |
+
msgstr "Nazwa nowego pokazu slajdów"
|
112 |
+
|
113 |
+
#: meteor-slides-plugin.php:159
|
114 |
+
msgid "Slide Image"
|
115 |
+
msgstr "Obrazek slajdu"
|
116 |
+
|
117 |
+
#: meteor-slides-plugin.php:194
|
118 |
+
msgid "Add the URL this slide should link to."
|
119 |
+
msgstr "Dodaj adres do którego ma prowadzić obrazek"
|
120 |
+
|
121 |
+
#: meteor-slides-plugin.php:206
|
122 |
+
msgid "Slide Link"
|
123 |
+
msgstr "Link slajdu"
|
124 |
+
|
125 |
+
#: meteor-slides-plugin.php:324
|
126 |
+
msgid "Slides Settings"
|
127 |
+
msgstr "Preferencje slajdów"
|
128 |
+
|
129 |
+
#: meteor-slides-plugin.php:324
|
130 |
+
msgid "Settings"
|
131 |
+
msgstr "Opcje"
|
132 |
+
|
133 |
+
#: meteor-slides-plugin.php:358
|
134 |
+
msgid "Configure Slideshow"
|
135 |
+
msgstr "Konfiguracja slideshow"
|
136 |
+
|
137 |
+
#: meteor-slides-plugin.php:360
|
138 |
+
msgid "Slideshow Quantity"
|
139 |
+
msgstr "Ilość slajdów"
|
140 |
+
|
141 |
+
#: meteor-slides-plugin.php:362
|
142 |
+
msgid "Slide Height"
|
143 |
+
msgstr "Wysokość slajdu"
|
144 |
+
|
145 |
+
#: meteor-slides-plugin.php:364
|
146 |
+
msgid "Slide Width"
|
147 |
+
msgstr "Szerokość slajdu"
|
148 |
+
|
149 |
+
#: meteor-slides-plugin.php:366
|
150 |
+
msgid "Transition Style"
|
151 |
+
msgstr "Styl transformacji slajdu"
|
152 |
+
|
153 |
+
#: meteor-slides-plugin.php:368
|
154 |
+
msgid "Transition Speed"
|
155 |
+
msgstr "Szybkość transformacji"
|
156 |
+
|
157 |
+
#: meteor-slides-plugin.php:370
|
158 |
+
msgid "Slide Duration"
|
159 |
+
msgstr "Czas trwania slajdu"
|
160 |
+
|
161 |
+
#: meteor-slides-plugin.php:372
|
162 |
+
msgid "Slideshow Navigation"
|
163 |
+
msgstr "Nawigacja slideshow"
|
164 |
+
|
165 |
+
#: meteor-slides-plugin.php:605
|
166 |
+
msgid "Add a slideshow widget to a sidebar"
|
167 |
+
msgstr "Dodaj slideshow widged do paska nawigacji"
|
168 |
+
|
169 |
+
#: meteor-slides-plugin.php:609
|
170 |
+
msgid "Meteor Slides Widget"
|
171 |
+
msgstr "Meteor Slides Widget"
|
172 |
+
|
173 |
+
#: meteor-slides-plugin.php:653
|
174 |
+
msgid "Title:"
|
175 |
+
msgstr "Tytuł: "
|
176 |
+
|
177 |
+
#: meteor-slides-plugin.php:656
|
178 |
+
msgid "Slideshow:"
|
179 |
+
msgstr "Slideshow:"
|
180 |
+
|
181 |
+
#: meteor-slides-plugin.php:659
|
182 |
+
msgid "Metadata:"
|
183 |
+
msgstr "Metadata:"
|
184 |
+
|
185 |
+
#: meteor-slides-settings.php:7
|
186 |
+
msgid "Set up your slideshow using the options below."
|
187 |
+
msgstr "Ustaw swój slideshow używając opcji poniżej"
|
188 |
+
|
189 |
+
#: meteor-slides-settings.php:21
|
190 |
+
#: meteor-slides-settings.php:31
|
191 |
+
msgid "px"
|
192 |
+
msgstr "px"
|
193 |
+
|
194 |
+
#: meteor-slides-settings.php:41
|
195 |
+
msgid "blindX"
|
196 |
+
msgstr "blindX"
|
197 |
+
|
198 |
+
#: meteor-slides-settings.php:41
|
199 |
+
msgid "blindY"
|
200 |
+
msgstr "blindY"
|
201 |
+
|
202 |
+
#: meteor-slides-settings.php:41
|
203 |
+
msgid "blindZ"
|
204 |
+
msgstr "blindZ"
|
205 |
+
|
206 |
+
#: meteor-slides-settings.php:41
|
207 |
+
msgid "cover"
|
208 |
+
msgstr "zakryj"
|
209 |
+
|
210 |
+
#: meteor-slides-settings.php:41
|
211 |
+
msgid "curtainX"
|
212 |
+
msgstr "curtainX"
|
213 |
+
|
214 |
+
#: meteor-slides-settings.php:41
|
215 |
+
msgid "curtainY"
|
216 |
+
msgstr "curtainY"
|
217 |
+
|
218 |
+
#: meteor-slides-settings.php:41
|
219 |
+
msgid "fade"
|
220 |
+
msgstr "zanikanie"
|
221 |
+
|
222 |
+
#: meteor-slides-settings.php:41
|
223 |
+
msgid "fadeZoom"
|
224 |
+
msgstr "zanikanie przybliżone"
|
225 |
+
|
226 |
+
#: meteor-slides-settings.php:41
|
227 |
+
msgid "growX"
|
228 |
+
msgstr "growX"
|
229 |
+
|
230 |
+
#: meteor-slides-settings.php:41
|
231 |
+
msgid "growY"
|
232 |
+
msgstr "growY"
|
233 |
+
|
234 |
+
#: meteor-slides-settings.php:41
|
235 |
+
msgid "none"
|
236 |
+
msgstr "żadne"
|
237 |
+
|
238 |
+
#: meteor-slides-settings.php:41
|
239 |
+
msgid "scrollUp"
|
240 |
+
msgstr "przewiń do góry"
|
241 |
+
|
242 |
+
#: meteor-slides-settings.php:41
|
243 |
+
msgid "scrollDown"
|
244 |
+
msgstr "przewiń w dół"
|
245 |
+
|
246 |
+
#: meteor-slides-settings.php:41
|
247 |
+
msgid "scrollLeft"
|
248 |
+
msgstr "przewiń w lewo"
|
249 |
+
|
250 |
+
#: meteor-slides-settings.php:41
|
251 |
+
msgid "scrollRight"
|
252 |
+
msgstr "przewiń w prawo"
|
253 |
+
|
254 |
+
#: meteor-slides-settings.php:41
|
255 |
+
msgid "scrollHorz"
|
256 |
+
msgstr "przewiń w poziomie"
|
257 |
+
|
258 |
+
#: meteor-slides-settings.php:41
|
259 |
+
msgid "scrollVert"
|
260 |
+
msgstr "przewiń w pionie"
|
261 |
+
|
262 |
+
#: meteor-slides-settings.php:41
|
263 |
+
msgid "slideX"
|
264 |
+
msgstr "slideX"
|
265 |
+
|
266 |
+
#: meteor-slides-settings.php:41
|
267 |
+
msgid "slideY"
|
268 |
+
msgstr "slideX"
|
269 |
+
|
270 |
+
#: meteor-slides-settings.php:41
|
271 |
+
msgid "shuffle"
|
272 |
+
msgstr "losowe"
|
273 |
+
|
274 |
+
#: meteor-slides-settings.php:41
|
275 |
+
msgid "turnUp"
|
276 |
+
msgstr "turnUp"
|
277 |
+
|
278 |
+
#: meteor-slides-settings.php:41
|
279 |
+
msgid "turnDown"
|
280 |
+
msgstr "turnDown"
|
281 |
+
|
282 |
+
#: meteor-slides-settings.php:41
|
283 |
+
msgid "turnLeft"
|
284 |
+
msgstr "turnLeft"
|
285 |
+
|
286 |
+
#: meteor-slides-settings.php:41
|
287 |
+
msgid "turnRight"
|
288 |
+
msgstr "turnRight"
|
289 |
+
|
290 |
+
#: meteor-slides-settings.php:41
|
291 |
+
msgid "uncover"
|
292 |
+
msgstr "odkryj"
|
293 |
+
|
294 |
+
#: meteor-slides-settings.php:41
|
295 |
+
msgid "wipe"
|
296 |
+
msgstr "wycieraj"
|
297 |
+
|
298 |
+
#: meteor-slides-settings.php:41
|
299 |
+
msgid "zoom"
|
300 |
+
msgstr "powiększ"
|
301 |
+
|
302 |
+
#: meteor-slides-settings.php:63
|
303 |
+
#: meteor-slides-settings.php:73
|
304 |
+
msgid "seconds"
|
305 |
+
msgstr "sekundy"
|
306 |
+
|
307 |
+
#: meteor-slides-settings.php:83
|
308 |
+
msgid "None"
|
309 |
+
msgstr "brak"
|
310 |
+
|
311 |
+
#: meteor-slides-settings.php:84
|
312 |
+
msgid "Previous/Next"
|
313 |
+
msgstr "strzałki poprzedni/następny"
|
314 |
+
|
315 |
+
#: meteor-slides-settings.php:85
|
316 |
+
msgid "Paged"
|
317 |
+
msgstr "lista pod spodem"
|
318 |
+
|
319 |
+
#: meteor-slides-settings.php:86
|
320 |
+
msgid "Both"
|
321 |
+
msgstr "oba"
|
322 |
+
|
323 |
+
#: meteor-slides-settings.php:112
|
324 |
+
msgid "Meteor Slides Settings"
|
325 |
+
msgstr "Meteor Slides Settings"
|
326 |
+
|
327 |
+
#: meteor-slides-settings.php:126
|
328 |
+
msgid "Save Changes"
|
329 |
+
msgstr "Zapisz zmiany"
|
330 |
+
|
331 |
+
#: meteor-slides-settings.php:132
|
332 |
+
msgid "Install Slideshow"
|
333 |
+
msgstr "Zainstaluj slideshow"
|
334 |
+
|
335 |
+
#: meteor-slides-settings.php:134
|
336 |
+
#, php-format
|
337 |
+
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"
|
338 |
+
msgstr "Użyj %1$s aby dodać Meteor Slides do twojego stylu, użyj %2$s aby dodac Meteor Slides do wpisu lub pojedynczej strony, ewentualnie możesz skorzystać z widgetu. %3$sWięcej informacji%4$s"
|
339 |
+
|
340 |
+
#: meteor-slides-settings.php:136
|
341 |
+
#, php-format
|
342 |
+
msgid "Please %1$spost any questions or problems%2$s in the WordPress.org support forums."
|
343 |
+
msgstr "Prosze %1$spisz każde pytania i problemy%2$s na forum wsparcia WordPress.org"
|
344 |
+
|
345 |
+
#: meteor-slideshow.php:17
|
346 |
+
#: meteor-slideshow.php:29
|
347 |
+
msgid "Previous"
|
348 |
+
msgstr "Poprzednie"
|
349 |
+
|
350 |
+
#: meteor-slideshow.php:19
|
351 |
+
#: meteor-slideshow.php:31
|
352 |
+
msgid "Next"
|
353 |
+
msgstr "Następne"
|
354 |
+
|
languages/meteor-slides-pt_PT.mo
ADDED
Binary file
|
languages/meteor-slides-pt_PT.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-05-13 01:13+0100\n"
|
12 |
+
"Last-Translator: Hugo Baeta <info@hugobaeta.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 "Slides"
|
24 |
+
|
25 |
+
#: meteor-slides-plugin.php:79
|
26 |
+
msgid "Slide"
|
27 |
+
msgstr "Slide"
|
28 |
+
|
29 |
+
#: meteor-slides-plugin.php:80
|
30 |
+
msgid "Add New"
|
31 |
+
msgstr "Adicionar Novo"
|
32 |
+
|
33 |
+
#: meteor-slides-plugin.php:81
|
34 |
+
msgid "Add New Slide"
|
35 |
+
msgstr "Adicionar Novo Slide"
|
36 |
+
|
37 |
+
#: meteor-slides-plugin.php:82
|
38 |
+
msgid "Edit Slide"
|
39 |
+
msgstr "Editar Slide"
|
40 |
+
|
41 |
+
#: meteor-slides-plugin.php:83
|
42 |
+
msgid "Edit"
|
43 |
+
msgstr "Editar"
|
44 |
+
|
45 |
+
#: meteor-slides-plugin.php:84
|
46 |
+
msgid "New Slide"
|
47 |
+
msgstr "Novo Slide"
|
48 |
+
|
49 |
+
#: meteor-slides-plugin.php:85
|
50 |
+
#: meteor-slides-plugin.php:89
|
51 |
+
msgid "View Slide"
|
52 |
+
msgstr "Ver Slide"
|
53 |
+
|
54 |
+
#: meteor-slides-plugin.php:86
|
55 |
+
msgid "Search Slides"
|
56 |
+
msgstr "Procurar Slides"
|
57 |
+
|
58 |
+
#: meteor-slides-plugin.php:87
|
59 |
+
msgid "No slides found"
|
60 |
+
msgstr "Nenhum slide encontrado"
|
61 |
+
|
62 |
+
#: meteor-slides-plugin.php:88
|
63 |
+
msgid "No slides found in Trash"
|
64 |
+
msgstr "Nenhum slide encontrado nao lixo"
|
65 |
+
|
66 |
+
#: meteor-slides-plugin.php:127
|
67 |
+
msgid "Slideshows"
|
68 |
+
msgstr "Slideshows"
|
69 |
+
|
70 |
+
#: meteor-slides-plugin.php:128
|
71 |
+
msgid "Slideshow"
|
72 |
+
msgstr "Slideshow"
|
73 |
+
|
74 |
+
#: meteor-slides-plugin.php:129
|
75 |
+
msgid "Search Slideshows"
|
76 |
+
msgstr "Pesquisar Slideshows"
|
77 |
+
|
78 |
+
#: meteor-slides-plugin.php:130
|
79 |
+
msgid "Popular Slideshows"
|
80 |
+
msgstr "Slideshows Populares"
|
81 |
+
|
82 |
+
#: meteor-slides-plugin.php:131
|
83 |
+
msgid "All Slideshows"
|
84 |
+
msgstr "Todos os Slideshows"
|
85 |
+
|
86 |
+
#: meteor-slides-plugin.php:132
|
87 |
+
msgid "Parent Slideshow"
|
88 |
+
msgstr "Slideshow Pai"
|
89 |
+
|
90 |
+
#: meteor-slides-plugin.php:133
|
91 |
+
msgid "Parent Slideshow:"
|
92 |
+
msgstr "Slideshow Pai:"
|
93 |
+
|
94 |
+
#: meteor-slides-plugin.php:134
|
95 |
+
msgid "Edit Slideshow"
|
96 |
+
msgstr "Editar Slideshow"
|
97 |
+
|
98 |
+
#: meteor-slides-plugin.php:135
|
99 |
+
msgid "Update Slideshow"
|
100 |
+
msgstr "Actualizar Slideshow"
|
101 |
+
|
102 |
+
#: meteor-slides-plugin.php:136
|
103 |
+
msgid "Add New Slideshow"
|
104 |
+
msgstr "Adicionar Novo Slideshow"
|
105 |
+
|
106 |
+
#: meteor-slides-plugin.php:137
|
107 |
+
msgid "New Slideshow Name"
|
108 |
+
msgstr "Nome do Novo Slideshow"
|
109 |
+
|
110 |
+
#: meteor-slides-plugin.php:159
|
111 |
+
msgid "Slide Image"
|
112 |
+
msgstr "Imagem do Slide"
|
113 |
+
|
114 |
+
#: meteor-slides-plugin.php:194
|
115 |
+
msgid "Add the URL this slide should link to."
|
116 |
+
msgstr "Adicionar URL no Slide"
|
117 |
+
|
118 |
+
#: meteor-slides-plugin.php:206
|
119 |
+
msgid "Slide Link"
|
120 |
+
msgstr "Link do Slide"
|
121 |
+
|
122 |
+
#: meteor-slides-plugin.php:324
|
123 |
+
msgid "Slides Settings"
|
124 |
+
msgstr "Opções dos Slides"
|
125 |
+
|
126 |
+
#: meteor-slides-plugin.php:324
|
127 |
+
msgid "Settings"
|
128 |
+
msgstr "Opções"
|
129 |
+
|
130 |
+
#: meteor-slides-plugin.php:358
|
131 |
+
msgid "Configure Slideshow"
|
132 |
+
msgstr "Configurar Slideshow"
|
133 |
+
|
134 |
+
#: meteor-slides-plugin.php:360
|
135 |
+
msgid "Slideshow Quantity"
|
136 |
+
msgstr "Quantidade de Slides"
|
137 |
+
|
138 |
+
#: meteor-slides-plugin.php:362
|
139 |
+
msgid "Slide Height"
|
140 |
+
msgstr "Altura do Slide"
|
141 |
+
|
142 |
+
#: meteor-slides-plugin.php:364
|
143 |
+
msgid "Slide Width"
|
144 |
+
msgstr "Largura do Slide"
|
145 |
+
|
146 |
+
#: meteor-slides-plugin.php:366
|
147 |
+
msgid "Transition Style"
|
148 |
+
msgstr "Estilo da Transição"
|
149 |
+
|
150 |
+
#: meteor-slides-plugin.php:368
|
151 |
+
msgid "Transition Speed"
|
152 |
+
msgstr "Velocidade da Transição"
|
153 |
+
|
154 |
+
#: meteor-slides-plugin.php:370
|
155 |
+
msgid "Slide Duration"
|
156 |
+
msgstr "Duração do Slide"
|
157 |
+
|
158 |
+
#: meteor-slides-plugin.php:372
|
159 |
+
msgid "Slideshow Navigation"
|
160 |
+
msgstr "Navegação do Slideshow"
|
161 |
+
|
162 |
+
#: meteor-slides-plugin.php:605
|
163 |
+
msgid "Add a slideshow widget to a sidebar"
|
164 |
+
msgstr "Adicionar um widget de slideshow a uma barra lateral"
|
165 |
+
|
166 |
+
#: meteor-slides-plugin.php:609
|
167 |
+
msgid "Meteor Slides Widget"
|
168 |
+
msgstr "Widget do Meteor Slides"
|
169 |
+
|
170 |
+
#: meteor-slides-plugin.php:653
|
171 |
+
msgid "Title:"
|
172 |
+
msgstr "Título:"
|
173 |
+
|
174 |
+
#: meteor-slides-plugin.php:656
|
175 |
+
msgid "Slideshow:"
|
176 |
+
msgstr "Slideshow:"
|
177 |
+
|
178 |
+
#: meteor-slides-plugin.php:659
|
179 |
+
msgid "Metadata:"
|
180 |
+
msgstr "Metadata:"
|
181 |
+
|
182 |
+
#: meteor-slides-settings.php:7
|
183 |
+
msgid "Set up your slideshow using the options below."
|
184 |
+
msgstr "Configure o slideshow usando as seguintes opções."
|
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 ""
|
194 |
+
|
195 |
+
#: meteor-slides-settings.php:41
|
196 |
+
msgid "blindY"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: meteor-slides-settings.php:41
|
200 |
+
msgid "blindZ"
|
201 |
+
msgstr ""
|
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 "nenhum"
|
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 "segundos"
|
303 |
+
|
304 |
+
#: meteor-slides-settings.php:83
|
305 |
+
msgid "None"
|
306 |
+
msgstr "Nenhuma"
|
307 |
+
|
308 |
+
#: meteor-slides-settings.php:84
|
309 |
+
msgid "Previous/Next"
|
310 |
+
msgstr "Anterior/Seguinte"
|
311 |
+
|
312 |
+
#: meteor-slides-settings.php:85
|
313 |
+
msgid "Paged"
|
314 |
+
msgstr "Paginada"
|
315 |
+
|
316 |
+
#: meteor-slides-settings.php:86
|
317 |
+
msgid "Both"
|
318 |
+
msgstr "Ambas"
|
319 |
+
|
320 |
+
#: meteor-slides-settings.php:112
|
321 |
+
msgid "Meteor Slides Settings"
|
322 |
+
msgstr "Opções do Meteor Slides"
|
323 |
+
|
324 |
+
#: meteor-slides-settings.php:126
|
325 |
+
msgid "Save Changes"
|
326 |
+
msgstr "Guardar Alterações"
|
327 |
+
|
328 |
+
#: meteor-slides-settings.php:132
|
329 |
+
msgid "Install Slideshow"
|
330 |
+
msgstr "Instalar Slideshow"
|
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 "Use %1$s para adicionar este slideshow no tema, use %2$s para adicionar no seu Post ou Página, ou use o Widget Meteor Slides para incluir numa barra lateral. %3$sMais informações%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 "Por favor %1$scoloque qualquer pergunta ou problema%2$s nos forums de suporte em WordPress.org."
|
341 |
+
|
342 |
+
#: meteor-slideshow.php:17
|
343 |
+
#: meteor-slideshow.php:29
|
344 |
+
msgid "Previous"
|
345 |
+
msgstr "Anterior"
|
346 |
+
|
347 |
+
#: meteor-slideshow.php:19
|
348 |
+
#: meteor-slideshow.php:31
|
349 |
+
msgid "Next"
|
350 |
+
msgstr "Seguinte"
|
351 |
+
|
languages/meteor-slides-ru_RU.mo
ADDED
Binary file
|
languages/meteor-slides-ru_RU.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-04-03 09:13-0600\n"
|
12 |
+
"Last-Translator: Josh Leuze <jleuze@gmail.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 "Укажите адрес перехода (url) со слайда."
|
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 "горизонтальный двойной сдвиг"
|
194 |
+
|
195 |
+
#: meteor-slides-settings.php:41
|
196 |
+
msgid "blindY"
|
197 |
+
msgstr "вертикальный двойной сдвиг"
|
198 |
+
|
199 |
+
#: meteor-slides-settings.php:41
|
200 |
+
msgid "blindZ"
|
201 |
+
msgstr "двойной сдвиг по диагонали"
|
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 "Настройки Meteor Slides"
|
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 для добавления его в ваш пост или страницу, или используйте виджет Meteor Slides. %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 на форуме техподдержки WordPress.org."
|
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
@@ -1,822 +1,476 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Meteor Slides
|
4 |
-
Description: Meteor Slides makes it simple to create slideshows with WordPress by adding a custom post type for slides.
|
5 |
-
Plugin URI: http://www.jleuze.com/plugins/meteor-slides
|
6 |
-
Author: Josh Leuze
|
7 |
-
Author URI: http://www.jleuze.com/
|
8 |
-
License: GPL2
|
9 |
-
Version: 1.
|
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
|
16 |
-
published by the Free Software Foundation.
|
17 |
-
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
|
23 |
-
You should have received a copy of the GNU General Public License
|
24 |
-
along with this program; if not, write to the Free Software
|
25 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
26 |
-
*/
|
27 |
-
|
28 |
-
// Adds custom post type for Slides
|
29 |
-
|
30 |
-
add_action( 'init', 'meteorslides_register_slides' );
|
31 |
-
|
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 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
'
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
'
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
'
|
131 |
-
'
|
132 |
-
'
|
133 |
-
'
|
134 |
-
'
|
135 |
-
'
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
}
|
179 |
-
|
180 |
-
//
|
181 |
-
|
182 |
-
add_action( '
|
183 |
-
|
184 |
-
function
|
185 |
-
|
186 |
-
$
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
}
|
239 |
-
|
240 |
-
}
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
'
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
register_setting( 'meteorslides_options', 'meteorslides_options' );
|
477 |
-
|
478 |
-
add_settings_section( 'meteorslides_slideshow', __( 'Configure Slideshow', 'meteor-slides' ), 'meteorslides_section_text', 'meteorslides' );
|
479 |
-
|
480 |
-
add_settings_field( 'slideshow_quantity', __( 'Slideshow Quantity', 'meteor-slides' ), 'slideshow_quantity', 'meteorslides', 'meteorslides_slideshow' );
|
481 |
-
|
482 |
-
add_settings_field( 'slide_height', __( 'Slide Height', 'meteor-slides' ), 'slide_height', 'meteorslides', 'meteorslides_slideshow' );
|
483 |
-
|
484 |
-
add_settings_field( 'slide_width', __( 'Slide Width', 'meteor-slides' ), 'slide_width', 'meteorslides', 'meteorslides_slideshow' );
|
485 |
-
|
486 |
-
add_settings_field( 'transition_style', __( 'Transition Style', 'meteor-slides' ), 'transition_style', 'meteorslides', 'meteorslides_slideshow' );
|
487 |
-
|
488 |
-
add_settings_field( 'transition_speed', __( 'Transition Speed', 'meteor-slides' ), 'transition_speed', 'meteorslides', 'meteorslides_slideshow' );
|
489 |
-
|
490 |
-
add_settings_field( 'slide_duration', __( 'Slide Duration', 'meteor-slides' ), 'slide_duration', 'meteorslides', 'meteorslides_slideshow' );
|
491 |
-
|
492 |
-
add_settings_field( 'slideshow_navigation', __( 'Slideshow Navigation', 'meteor-slides' ), 'slideshow_navigation', 'meteorslides', 'meteorslides_slideshow' );
|
493 |
-
|
494 |
-
}
|
495 |
-
|
496 |
-
// Adds default values for options on settings page
|
497 |
-
|
498 |
-
register_activation_hook( __FILE__, 'meteorslides_default_options' );
|
499 |
-
|
500 |
-
function meteorslides_default_options() {
|
501 |
-
|
502 |
-
$tmp = get_option( 'meteorslides_options' );
|
503 |
-
|
504 |
-
if ( ( $tmp['slideshow_quantity']=='' )||( !is_array( $tmp ) ) ) {
|
505 |
-
|
506 |
-
$arr = array(
|
507 |
-
|
508 |
-
'slideshow_quantity' => '5',
|
509 |
-
'slide_height' => '200',
|
510 |
-
'slide_width' => '940',
|
511 |
-
'transition_style' => 'fade',
|
512 |
-
'transition_speed' => '2',
|
513 |
-
'slide_duration' => '5',
|
514 |
-
'slideshow_navigation' => 'navnone'
|
515 |
-
|
516 |
-
);
|
517 |
-
|
518 |
-
update_option( 'meteorslides_options', $arr );
|
519 |
-
|
520 |
-
}
|
521 |
-
|
522 |
-
}
|
523 |
-
|
524 |
-
// Validates values for options on settings page
|
525 |
-
|
526 |
-
function meteorslides_options_validate( $input ) {
|
527 |
-
|
528 |
-
$options = get_option( 'meteorslides_options' );
|
529 |
-
|
530 |
-
$options['slideshow_quantity'] = trim( $input['slideshow_quantity'] );
|
531 |
-
|
532 |
-
if ( !preg_match( '/^[0-9]{1,3}$/i', $options['slideshow_quantity'] ) ) {
|
533 |
-
|
534 |
-
$options['slideshow_quantity'] = '';
|
535 |
-
|
536 |
-
}
|
537 |
-
|
538 |
-
$options['slide_height'] = trim( $input['slide_height'] );
|
539 |
-
|
540 |
-
if ( !preg_match( '/^[0-9]{1,4}$/i', $options['slide_height'] ) ) {
|
541 |
-
|
542 |
-
$options['slide_height'] = '';
|
543 |
-
|
544 |
-
}
|
545 |
-
|
546 |
-
$options['slide_width'] = trim( $input['slide_width'] );
|
547 |
-
|
548 |
-
if ( !preg_match( '/^[0-9]{1,5}$/i', $options['slide_width'] ) ) {
|
549 |
-
|
550 |
-
$options['slide_width'] = '';
|
551 |
-
|
552 |
-
}
|
553 |
-
|
554 |
-
$options['transition_style'] = trim( $input['transition_style'] );
|
555 |
-
|
556 |
-
if ( !preg_match( '/^[a-z]{4,20}$/i', $options['transition_style'] ) ) {
|
557 |
-
|
558 |
-
$options['transition_style'] = '';
|
559 |
-
|
560 |
-
}
|
561 |
-
|
562 |
-
$options['transition_speed'] = trim( $input['transition_speed'] );
|
563 |
-
|
564 |
-
if ( !preg_match( '/^[0-9]{1,3}$/i', $options['transition_speed'] ) ) {
|
565 |
-
|
566 |
-
$options['transition_speed'] = '';
|
567 |
-
|
568 |
-
}
|
569 |
-
|
570 |
-
$options['slide_duration'] = trim( $input['slide_duration'] );
|
571 |
-
|
572 |
-
if ( !preg_match( '/^[0-9]{1,3}$/i', $options['slide_duration'] ) ) {
|
573 |
-
|
574 |
-
$options['slide_duration'] = '';
|
575 |
-
|
576 |
-
}
|
577 |
-
|
578 |
-
$options['slideshow_navigation'] = trim( $input['slideshow_navigation'] );
|
579 |
-
|
580 |
-
if ( !preg_match( '/^[a-z]{4,20}$/i', $options['slideshow_navigation'] ) ) {
|
581 |
-
|
582 |
-
$options['slideshow_navigation'] = '';
|
583 |
-
|
584 |
-
}
|
585 |
-
|
586 |
-
return $options;
|
587 |
-
|
588 |
-
}
|
589 |
-
|
590 |
-
// Adds translation support for language files
|
591 |
-
|
592 |
-
add_action( 'plugins_loaded', 'meteorslides_localization' );
|
593 |
-
|
594 |
-
function meteorslides_localization() {
|
595 |
-
|
596 |
-
load_plugin_textdomain( 'meteor-slides', false, '/meteor-slides/languages/' );
|
597 |
-
|
598 |
-
}
|
599 |
-
|
600 |
-
// Adds CSS for the Slides admin pages
|
601 |
-
|
602 |
-
add_action( 'admin_enqueue_scripts', 'meteorslides_admin_css' );
|
603 |
-
|
604 |
-
function meteorslides_admin_css() {
|
605 |
-
|
606 |
-
global $post_type;
|
607 |
-
|
608 |
-
if ( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'slide' ) || ( isset( $post_type ) && $post_type == 'slide' ) ) {
|
609 |
-
|
610 |
-
wp_enqueue_style( 'meteor-slides-admin', plugins_url('/css/meteor-slides-admin.css', __FILE__), array(), '1.0' );
|
611 |
-
|
612 |
-
}
|
613 |
-
|
614 |
-
}
|
615 |
-
|
616 |
-
// Adds CSS for the slideshow
|
617 |
-
|
618 |
-
add_action( 'wp_enqueue_scripts', 'meteorslides_css' );
|
619 |
-
|
620 |
-
function meteorslides_css() {
|
621 |
-
|
622 |
-
if ( file_exists( get_stylesheet_directory()."/meteor-slides.css" ) ) {
|
623 |
-
|
624 |
-
wp_enqueue_style( 'meteor-slides', get_stylesheet_directory_uri() . '/meteor-slides.css', array(), '1.0' );
|
625 |
-
|
626 |
-
}
|
627 |
-
|
628 |
-
elseif ( file_exists( get_template_directory()."/meteor-slides.css" ) ) {
|
629 |
-
|
630 |
-
wp_enqueue_style( 'meteor-slides', get_template_directory_uri() . '/meteor-slides.css', array(), '1.0' );
|
631 |
-
|
632 |
-
}
|
633 |
-
|
634 |
-
else {
|
635 |
-
|
636 |
-
wp_enqueue_style( 'meteor-slides', plugins_url('/css/meteor-slides.css', __FILE__), array(), '1.0' );
|
637 |
-
|
638 |
-
}
|
639 |
-
|
640 |
-
}
|
641 |
-
|
642 |
-
// Adds JavaScript for the slideshow
|
643 |
-
|
644 |
-
add_action( 'wp_print_scripts', 'meteorslides_javascript' );
|
645 |
-
|
646 |
-
function meteorslides_javascript() {
|
647 |
-
|
648 |
-
$options = get_option( 'meteorslides_options' );
|
649 |
-
|
650 |
-
if( !is_admin() ) {
|
651 |
-
|
652 |
-
wp_enqueue_script( 'jquery' );
|
653 |
-
wp_enqueue_script( 'jquery-cycle', plugins_url( '/js/jquery.cycle.all.js', __FILE__ ), array( 'jquery' ) );
|
654 |
-
wp_enqueue_script( 'jquery-metadata', plugins_url( '/js/jquery.metadata.v2.js', __FILE__ ), array( 'jquery' ) );
|
655 |
-
wp_enqueue_script( 'meteorslides-script', plugins_url( '/js/slideshow.js', __FILE__ ), array( 'jquery', 'jquery-cycle' ) );
|
656 |
-
wp_localize_script( 'meteorslides-script', 'meteorslidessettings',
|
657 |
-
|
658 |
-
array(
|
659 |
-
|
660 |
-
'meteorslideshowspeed' => $options['transition_speed'] * 1000,
|
661 |
-
'meteorslideshowduration' => $options['slide_duration'] * 1000,
|
662 |
-
'meteorslideshowheight' => $options['slide_height'],
|
663 |
-
'meteorslideshowwidth' => $options['slide_width'],
|
664 |
-
'meteorslideshowtransition' => $options['transition_style']
|
665 |
-
|
666 |
-
)
|
667 |
-
|
668 |
-
);
|
669 |
-
|
670 |
-
}
|
671 |
-
|
672 |
-
}
|
673 |
-
|
674 |
-
// Adds function to load slideshow in theme
|
675 |
-
|
676 |
-
function meteor_slideshow( $slideshow='', $metadata='' ) {
|
677 |
-
|
678 |
-
if ( file_exists( get_stylesheet_directory()."/meteor-slideshow.php" ) ) {
|
679 |
-
|
680 |
-
include( STYLESHEETPATH . '/meteor-slideshow.php' );
|
681 |
-
|
682 |
-
}
|
683 |
-
|
684 |
-
elseif ( file_exists( get_template_directory()."/meteor-slideshow.php" ) ) {
|
685 |
-
|
686 |
-
include( TEMPLATEPATH . '/meteor-slideshow.php' );
|
687 |
-
|
688 |
-
}
|
689 |
-
|
690 |
-
else {
|
691 |
-
|
692 |
-
include( 'meteor-slideshow.php' );
|
693 |
-
|
694 |
-
}
|
695 |
-
|
696 |
-
}
|
697 |
-
|
698 |
-
/* To load the slideshow, add this line to your theme:
|
699 |
-
|
700 |
-
<?php if(function_exists('meteor_slideshow')) { meteor_slideshow(); } ?>
|
701 |
-
|
702 |
-
*/
|
703 |
-
|
704 |
-
// Adds shortcode to load slideshow in content
|
705 |
-
|
706 |
-
function meteor_slideshow_shortcode( $atts ) {
|
707 |
-
|
708 |
-
extract( shortcode_atts( array (
|
709 |
-
|
710 |
-
'slideshow' => '',
|
711 |
-
'metadata' => '',
|
712 |
-
|
713 |
-
), $atts ) );
|
714 |
-
|
715 |
-
$slideshow_att = $slideshow;
|
716 |
-
|
717 |
-
$metadata_att = $metadata;
|
718 |
-
|
719 |
-
ob_start();
|
720 |
-
|
721 |
-
meteor_slideshow( $slideshow=$slideshow_att, $metadata=$metadata_att );
|
722 |
-
|
723 |
-
$meteor_slideshow_content = ob_get_clean();
|
724 |
-
|
725 |
-
return $meteor_slideshow_content;
|
726 |
-
|
727 |
-
}
|
728 |
-
|
729 |
-
add_shortcode( 'meteor_slideshow', 'meteor_slideshow_shortcode' );
|
730 |
-
|
731 |
-
/* To load the slideshow, add this line to your page or post:
|
732 |
-
|
733 |
-
[meteor_slideshow]
|
734 |
-
|
735 |
-
*/
|
736 |
-
|
737 |
-
// Adds widget to load slideshow in sidebar
|
738 |
-
|
739 |
-
add_action( 'widgets_init', 'meteorslides_register_widget' );
|
740 |
-
|
741 |
-
function meteorslides_register_widget() {
|
742 |
-
|
743 |
-
register_widget( 'meteorslides_widget' );
|
744 |
-
|
745 |
-
}
|
746 |
-
|
747 |
-
class meteorslides_widget extends WP_Widget {
|
748 |
-
|
749 |
-
function meteorslides_widget() {
|
750 |
-
|
751 |
-
$widget_ops = array(
|
752 |
-
|
753 |
-
'classname' => 'meteor-slides-widget',
|
754 |
-
'description' => __( 'Add a slideshow widget to a sidebar', 'meteor-slides' )
|
755 |
-
|
756 |
-
);
|
757 |
-
|
758 |
-
$control_ops = array( 'id_base' => 'meteor-slides-widget' );
|
759 |
-
|
760 |
-
$this->WP_Widget( 'meteor-slides-widget', __( 'Meteor Slides Widget', 'meteor-slides' ), $widget_ops, $control_ops );
|
761 |
-
}
|
762 |
-
|
763 |
-
function widget( $args, $instance ) {
|
764 |
-
|
765 |
-
extract( $args );
|
766 |
-
|
767 |
-
$title = apply_filters( 'widget_title', $instance['title'] );
|
768 |
-
$slideshow_arg = $instance['slideshow'];
|
769 |
-
$metadata_arg = $instance['metadata'];
|
770 |
-
|
771 |
-
echo $before_widget;
|
772 |
-
|
773 |
-
if ( $title ) {
|
774 |
-
|
775 |
-
echo $before_title . $title . $after_title;
|
776 |
-
|
777 |
-
}
|
778 |
-
|
779 |
-
meteor_slideshow( $slideshow=$slideshow_arg, $metadata=$metadata_arg );
|
780 |
-
|
781 |
-
echo $after_widget;
|
782 |
-
|
783 |
-
}
|
784 |
-
|
785 |
-
function update( $new_instance, $old_instance ) {
|
786 |
-
|
787 |
-
$instance = $old_instance;
|
788 |
-
|
789 |
-
$instance['title'] = strip_tags( $new_instance['title'] );
|
790 |
-
$instance['slideshow'] = strip_tags( $new_instance['slideshow'] );
|
791 |
-
$instance['metadata'] = strip_tags( $new_instance['metadata'] );
|
792 |
-
|
793 |
-
return $instance;
|
794 |
-
|
795 |
-
}
|
796 |
-
|
797 |
-
function form( $instance ) {
|
798 |
-
|
799 |
-
$defaults = array(
|
800 |
-
|
801 |
-
'title' => '',
|
802 |
-
'slideshow' => '',
|
803 |
-
'metadata' => ''
|
804 |
-
|
805 |
-
);
|
806 |
-
|
807 |
-
$instance = wp_parse_args( (array) $instance, $defaults );
|
808 |
-
|
809 |
-
echo '<p><label for="' . $this->get_field_id( 'title' ) . '">' . __('Title:', 'meteor-slides') . '</label>
|
810 |
-
<input type="text" class="widefat" id="' . $this->get_field_id( 'title' ) . '" name="' . $this->get_field_name( 'title' ) . '" value="' . $instance['title'] . '" /></p>';
|
811 |
-
|
812 |
-
echo '<p><label for="' . $this->get_field_id( 'slideshow' ) . '">' . __('Slideshow:', 'meteor-slides') . '</label>
|
813 |
-
<input type="text" class="widefat" id="' . $this->get_field_id( 'slideshow' ) . '" name="' . $this->get_field_name( 'slideshow' ) . '" value="' . $instance['slideshow'] . '" /></p>';
|
814 |
-
|
815 |
-
echo '<p><label for="' . $this->get_field_id( 'metadata' ) . '">' . __('Metadata:', 'meteor-slides') . '</label>
|
816 |
-
<input type="text" class="widefat" id="' . $this->get_field_id( 'metadata' ) . '" name="' . $this->get_field_name( 'metadata' ) . '" value="' . $instance['metadata'] . '" /></p>';
|
817 |
-
|
818 |
-
}
|
819 |
-
|
820 |
-
}
|
821 |
-
|
822 |
?>
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Meteor Slides
|
4 |
+
Description: Meteor Slides makes it simple to create slideshows with WordPress by adding a custom post type for slides.
|
5 |
+
Plugin URI: http://www.jleuze.com/plugins/meteor-slides
|
6 |
+
Author: Josh Leuze
|
7 |
+
Author URI: http://www.jleuze.com/
|
8 |
+
License: GPL2
|
9 |
+
Version: 1.4
|
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
|
16 |
+
published by the Free Software Foundation.
|
17 |
+
|
18 |
+
This program is distributed in the hope that it will be useful,
|
19 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
+
GNU General Public License for more details.
|
22 |
+
|
23 |
+
You should have received a copy of the GNU General Public License
|
24 |
+
along with this program; if not, write to the Free Software
|
25 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
26 |
+
*/
|
27 |
+
|
28 |
+
// Adds custom post type for Slides
|
29 |
+
|
30 |
+
add_action( 'init', 'meteorslides_register_slides' );
|
31 |
+
|
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 |
+
if ( function_exists( 'members_get_capabilities' ) ) {
|
52 |
+
|
53 |
+
$capabilities = array(
|
54 |
+
|
55 |
+
'edit_post' => 'meteorslides_edit_slide',
|
56 |
+
'edit_posts' => 'meteorslides_edit_slides',
|
57 |
+
'edit_others_posts' => 'meteorslides_edit_others_slides',
|
58 |
+
'publish_posts' => 'meteorslides_publish_slides',
|
59 |
+
'read_post' => 'meteorslides_read_slide',
|
60 |
+
'read_private_posts' => 'meteorslides_read_private_slides',
|
61 |
+
'delete_post' => 'meteorslides_delete_slide'
|
62 |
+
|
63 |
+
);
|
64 |
+
|
65 |
+
$capabilitytype = 'slide';
|
66 |
+
|
67 |
+
$mapmetacap = false;
|
68 |
+
|
69 |
+
} else {
|
70 |
+
|
71 |
+
$capabilities = array(
|
72 |
+
|
73 |
+
'edit_post' => 'edit_post',
|
74 |
+
'edit_posts' => 'edit_posts',
|
75 |
+
'edit_others_posts' => 'edit_others_posts',
|
76 |
+
'publish_posts' => 'publish_posts',
|
77 |
+
'read_post' => 'read_post',
|
78 |
+
'read_private_posts' => 'read_private_posts',
|
79 |
+
'delete_post' => 'delete_post'
|
80 |
+
|
81 |
+
);
|
82 |
+
|
83 |
+
$capabilitytype = 'post';
|
84 |
+
|
85 |
+
$mapmetacap = true;
|
86 |
+
|
87 |
+
}
|
88 |
+
|
89 |
+
$args = array(
|
90 |
+
|
91 |
+
'labels' => $labels,
|
92 |
+
'public' => true,
|
93 |
+
'publicly_queryable' => false,
|
94 |
+
'exclude_from_search' => true,
|
95 |
+
'show_ui' => true,
|
96 |
+
'show_in_menu' => true,
|
97 |
+
'menu_icon' => ''. plugins_url( '/images/slides-icon-20x20.png', __FILE__ ),
|
98 |
+
'capability_type' => $capabilitytype,
|
99 |
+
'capabilities' => $capabilities,
|
100 |
+
'map_meta_cap' => $mapmetacap,
|
101 |
+
'hierarchical' => false,
|
102 |
+
'supports' => array( 'title', 'thumbnail' ),
|
103 |
+
'taxonomies' => array( 'slideshow' ),
|
104 |
+
'has_archive' => false,
|
105 |
+
'rewrite' => false,
|
106 |
+
'query_var' => true,
|
107 |
+
'can_export' => true,
|
108 |
+
'show_in_nav_menus' => false
|
109 |
+
|
110 |
+
);
|
111 |
+
|
112 |
+
register_post_type( 'slide', $args );
|
113 |
+
|
114 |
+
}
|
115 |
+
|
116 |
+
// Adds custom taxonomy for Slideshows
|
117 |
+
|
118 |
+
add_action( 'init', 'meteorslides_register_taxonomy' );
|
119 |
+
|
120 |
+
function meteorslides_register_taxonomy() {
|
121 |
+
|
122 |
+
$labels = array(
|
123 |
+
|
124 |
+
'name' => __( 'Slideshows', 'meteor-slides' ),
|
125 |
+
'singular_name' => __( 'Slideshow', 'meteor-slides' ),
|
126 |
+
'search_items' => __( 'Search Slideshows', 'meteor-slides' ),
|
127 |
+
'popular_items' => __( 'Popular Slideshows', 'meteor-slides' ),
|
128 |
+
'all_items' => __( 'All Slideshows', 'meteor-slides' ),
|
129 |
+
'parent_item' => __( 'Parent Slideshow', 'meteor-slides' ),
|
130 |
+
'parent_item_colon' => __( 'Parent Slideshow:', 'meteor-slides' ),
|
131 |
+
'edit_item' => __( 'Edit Slideshow', 'meteor-slides' ),
|
132 |
+
'update_item' => __( 'Update Slideshow', 'meteor-slides' ),
|
133 |
+
'add_new_item' => __( 'Add New Slideshow', 'meteor-slides' ),
|
134 |
+
'new_item_name' => __( 'New Slideshow Name', 'meteor-slides' ),
|
135 |
+
'menu_name' => __( 'Slideshows', 'meteor-slides' )
|
136 |
+
|
137 |
+
);
|
138 |
+
|
139 |
+
if ( function_exists( 'members_get_capabilities' ) ) {
|
140 |
+
|
141 |
+
$capabilities = array(
|
142 |
+
|
143 |
+
'manage_terms' => 'meteorslides_manage_slideshows',
|
144 |
+
'edit_terms' => 'meteorslides_manage_slideshows',
|
145 |
+
'delete_terms' => 'meteorslides_manage_slideshows',
|
146 |
+
'assign_terms' => 'meteorslides_edit_slides'
|
147 |
+
|
148 |
+
);
|
149 |
+
|
150 |
+
} else {
|
151 |
+
|
152 |
+
$capabilities = array(
|
153 |
+
|
154 |
+
'manage_terms' => 'manage_categories',
|
155 |
+
'edit_terms' => 'manage_categories',
|
156 |
+
'delete_terms' => 'manage_categories',
|
157 |
+
'assign_terms' => 'edit_posts'
|
158 |
+
|
159 |
+
);
|
160 |
+
|
161 |
+
}
|
162 |
+
|
163 |
+
$args = array(
|
164 |
+
|
165 |
+
'labels' => $labels,
|
166 |
+
'public' => true,
|
167 |
+
'show_in_nav_menus' => false,
|
168 |
+
'show_ui' => true,
|
169 |
+
'show_tagcloud' => false,
|
170 |
+
'hierarchical' => true,
|
171 |
+
'rewrite' => array( 'slug' => 'slideshow' ),
|
172 |
+
'capabilities' => $capabilities
|
173 |
+
|
174 |
+
);
|
175 |
+
|
176 |
+
register_taxonomy( 'slideshow', 'slide', $args );
|
177 |
+
|
178 |
+
}
|
179 |
+
|
180 |
+
// Adds featured image functionality for Slides
|
181 |
+
|
182 |
+
add_action( 'after_setup_theme', 'meteorslides_featured_image_array', '9999' );
|
183 |
+
|
184 |
+
function meteorslides_featured_image_array() {
|
185 |
+
|
186 |
+
global $_wp_theme_features;
|
187 |
+
|
188 |
+
if ( !isset( $_wp_theme_features['post-thumbnails'] ) ) {
|
189 |
+
|
190 |
+
$_wp_theme_features['post-thumbnails'] = array( array( 'slide' ) );
|
191 |
+
|
192 |
+
}
|
193 |
+
|
194 |
+
elseif ( is_array( $_wp_theme_features['post-thumbnails'] ) ) {
|
195 |
+
|
196 |
+
$_wp_theme_features['post-thumbnails'][0][] = 'slide';
|
197 |
+
|
198 |
+
}
|
199 |
+
|
200 |
+
}
|
201 |
+
|
202 |
+
// Adds featured image size for Slides
|
203 |
+
|
204 |
+
add_action( 'plugins_loaded', 'meteorslides_featured_image' );
|
205 |
+
|
206 |
+
function meteorslides_featured_image() {
|
207 |
+
|
208 |
+
$options = get_option( 'meteorslides_options' );
|
209 |
+
|
210 |
+
add_image_size( 'featured-slide', $options['slide_width'], $options['slide_height'], true );
|
211 |
+
|
212 |
+
add_image_size( 'featured-slide-thumb', 250, 9999 );
|
213 |
+
|
214 |
+
}
|
215 |
+
|
216 |
+
// Adds CSS for the slideshow
|
217 |
+
|
218 |
+
add_action( 'wp_enqueue_scripts', 'meteorslides_css' );
|
219 |
+
|
220 |
+
function meteorslides_css() {
|
221 |
+
|
222 |
+
if ( file_exists( get_stylesheet_directory()."/meteor-slides.css" ) ) {
|
223 |
+
|
224 |
+
wp_enqueue_style( 'meteor-slides', get_stylesheet_directory_uri() . '/meteor-slides.css', array(), '1.0' );
|
225 |
+
|
226 |
+
}
|
227 |
+
|
228 |
+
elseif ( file_exists( get_template_directory()."/meteor-slides.css" ) ) {
|
229 |
+
|
230 |
+
wp_enqueue_style( 'meteor-slides', get_template_directory_uri() . '/meteor-slides.css', array(), '1.0' );
|
231 |
+
|
232 |
+
}
|
233 |
+
|
234 |
+
else {
|
235 |
+
|
236 |
+
wp_enqueue_style( 'meteor-slides', plugins_url('/css/meteor-slides.css', __FILE__), array(), '1.0' );
|
237 |
+
|
238 |
+
}
|
239 |
+
|
240 |
+
}
|
241 |
+
|
242 |
+
// Adds JavaScript for the slideshow
|
243 |
+
|
244 |
+
add_action( 'wp_print_scripts', 'meteorslides_javascript' );
|
245 |
+
|
246 |
+
function meteorslides_javascript() {
|
247 |
+
|
248 |
+
$options = get_option( 'meteorslides_options' );
|
249 |
+
|
250 |
+
if( !is_admin() ) {
|
251 |
+
|
252 |
+
wp_enqueue_script( 'jquery' );
|
253 |
+
wp_enqueue_script( 'jquery-cycle', plugins_url( '/js/jquery.cycle.all.min.js', __FILE__ ), array( 'jquery' ) );
|
254 |
+
wp_enqueue_script( 'jquery-metadata', plugins_url( '/js/jquery.metadata.v2.js', __FILE__ ), array( 'jquery' ) );
|
255 |
+
|
256 |
+
if ( file_exists( get_stylesheet_directory()."/slideshow.js" ) ) {
|
257 |
+
|
258 |
+
wp_enqueue_script( 'meteorslides-script', get_stylesheet_directory_uri() . '/slideshow.js', array('jquery', 'jquery-cycle') );
|
259 |
+
|
260 |
+
}
|
261 |
+
|
262 |
+
elseif ( file_exists( get_template_directory()."/slideshow.js" ) ) {
|
263 |
+
|
264 |
+
wp_enqueue_script( 'meteorslides-script', get_template_directory_uri() . '/slideshow.js', array('jquery', 'jquery-cycle') );
|
265 |
+
|
266 |
+
}
|
267 |
+
|
268 |
+
else {
|
269 |
+
|
270 |
+
wp_enqueue_script( 'meteorslides-script', plugins_url( '/js/slideshow.js', __FILE__ ), array( 'jquery', 'jquery-cycle' ) );
|
271 |
+
|
272 |
+
}
|
273 |
+
|
274 |
+
wp_localize_script( 'meteorslides-script', 'meteorslidessettings',
|
275 |
+
|
276 |
+
array(
|
277 |
+
|
278 |
+
'meteorslideshowspeed' => $options['transition_speed'] * 1000,
|
279 |
+
'meteorslideshowduration' => $options['slide_duration'] * 1000,
|
280 |
+
'meteorslideshowheight' => $options['slide_height'],
|
281 |
+
'meteorslideshowwidth' => $options['slide_width'],
|
282 |
+
'meteorslideshowtransition' => $options['transition_style']
|
283 |
+
|
284 |
+
)
|
285 |
+
|
286 |
+
);
|
287 |
+
|
288 |
+
}
|
289 |
+
|
290 |
+
}
|
291 |
+
|
292 |
+
// Load admin functions if in the backend
|
293 |
+
|
294 |
+
if ( is_admin() ) {
|
295 |
+
|
296 |
+
require_once( 'includes/meteor-slides-admin.php' );
|
297 |
+
|
298 |
+
}
|
299 |
+
|
300 |
+
// Adds default values for options on settings page
|
301 |
+
|
302 |
+
register_activation_hook( __FILE__, 'meteorslides_default_options' );
|
303 |
+
|
304 |
+
function meteorslides_default_options() {
|
305 |
+
|
306 |
+
$tmp = get_option( 'meteorslides_options' );
|
307 |
+
|
308 |
+
if ( ( $tmp['slideshow_quantity']=='' )||( !is_array( $tmp ) ) ) {
|
309 |
+
|
310 |
+
$arr = array(
|
311 |
+
|
312 |
+
'slideshow_quantity' => '5',
|
313 |
+
'slide_height' => '200',
|
314 |
+
'slide_width' => '940',
|
315 |
+
'transition_style' => 'fade',
|
316 |
+
'transition_speed' => '2',
|
317 |
+
'slide_duration' => '5',
|
318 |
+
'slideshow_navigation' => 'navnone'
|
319 |
+
|
320 |
+
);
|
321 |
+
|
322 |
+
update_option( 'meteorslides_options', $arr );
|
323 |
+
|
324 |
+
}
|
325 |
+
|
326 |
+
}
|
327 |
+
|
328 |
+
// Adds function to load slideshow in theme
|
329 |
+
|
330 |
+
function meteor_slideshow( $slideshow='', $metadata='' ) {
|
331 |
+
|
332 |
+
if ( file_exists( get_stylesheet_directory()."/meteor-slideshow.php" ) ) {
|
333 |
+
|
334 |
+
include( STYLESHEETPATH . '/meteor-slideshow.php' );
|
335 |
+
|
336 |
+
}
|
337 |
+
|
338 |
+
elseif ( file_exists( get_template_directory()."/meteor-slideshow.php" ) ) {
|
339 |
+
|
340 |
+
include( TEMPLATEPATH . '/meteor-slideshow.php' );
|
341 |
+
|
342 |
+
}
|
343 |
+
|
344 |
+
else {
|
345 |
+
|
346 |
+
include( 'includes/meteor-slideshow.php' );
|
347 |
+
|
348 |
+
}
|
349 |
+
|
350 |
+
}
|
351 |
+
|
352 |
+
/* To load the slideshow, add this line to your theme:
|
353 |
+
|
354 |
+
<?php if(function_exists('meteor_slideshow')) { meteor_slideshow(); } ?>
|
355 |
+
|
356 |
+
*/
|
357 |
+
|
358 |
+
// Adds shortcode to load slideshow in content
|
359 |
+
|
360 |
+
function meteor_slideshow_shortcode( $atts ) {
|
361 |
+
|
362 |
+
extract( shortcode_atts( array (
|
363 |
+
|
364 |
+
'slideshow' => '',
|
365 |
+
'metadata' => '',
|
366 |
+
|
367 |
+
), $atts ) );
|
368 |
+
|
369 |
+
$slideshow_att = $slideshow;
|
370 |
+
|
371 |
+
$metadata_att = $metadata;
|
372 |
+
|
373 |
+
ob_start();
|
374 |
+
|
375 |
+
meteor_slideshow( $slideshow=$slideshow_att, $metadata=$metadata_att );
|
376 |
+
|
377 |
+
$meteor_slideshow_content = ob_get_clean();
|
378 |
+
|
379 |
+
return $meteor_slideshow_content;
|
380 |
+
|
381 |
+
}
|
382 |
+
|
383 |
+
add_shortcode( 'meteor_slideshow', 'meteor_slideshow_shortcode' );
|
384 |
+
|
385 |
+
/* To load the slideshow, add this line to your page or post:
|
386 |
+
|
387 |
+
[meteor_slideshow]
|
388 |
+
|
389 |
+
*/
|
390 |
+
|
391 |
+
// Adds widget to load slideshow in sidebar
|
392 |
+
|
393 |
+
add_action( 'widgets_init', 'meteorslides_register_widget' );
|
394 |
+
|
395 |
+
function meteorslides_register_widget() {
|
396 |
+
|
397 |
+
register_widget( 'meteorslides_widget' );
|
398 |
+
|
399 |
+
}
|
400 |
+
|
401 |
+
class meteorslides_widget extends WP_Widget {
|
402 |
+
|
403 |
+
function meteorslides_widget() {
|
404 |
+
|
405 |
+
$widget_ops = array(
|
406 |
+
|
407 |
+
'classname' => 'meteor-slides-widget',
|
408 |
+
'description' => __( 'Add a slideshow widget to a sidebar', 'meteor-slides' )
|
409 |
+
|
410 |
+
);
|
411 |
+
|
412 |
+
$control_ops = array( 'id_base' => 'meteor-slides-widget' );
|
413 |
+
|
414 |
+
$this->WP_Widget( 'meteor-slides-widget', __( 'Meteor Slides Widget', 'meteor-slides' ), $widget_ops, $control_ops );
|
415 |
+
}
|
416 |
+
|
417 |
+
function widget( $args, $instance ) {
|
418 |
+
|
419 |
+
extract( $args );
|
420 |
+
|
421 |
+
$title = apply_filters( 'widget_title', $instance['title'] );
|
422 |
+
$slideshow_arg = $instance['slideshow'];
|
423 |
+
$metadata_arg = $instance['metadata'];
|
424 |
+
|
425 |
+
echo $before_widget;
|
426 |
+
|
427 |
+
if ( $title ) {
|
428 |
+
|
429 |
+
echo $before_title . $title . $after_title;
|
430 |
+
|
431 |
+
}
|
432 |
+
|
433 |
+
meteor_slideshow( $slideshow=$slideshow_arg, $metadata=$metadata_arg );
|
434 |
+
|
435 |
+
echo $after_widget;
|
436 |
+
|
437 |
+
}
|
438 |
+
|
439 |
+
function update( $new_instance, $old_instance ) {
|
440 |
+
|
441 |
+
$instance = $old_instance;
|
442 |
+
|
443 |
+
$instance['title'] = strip_tags( $new_instance['title'] );
|
444 |
+
$instance['slideshow'] = strip_tags( $new_instance['slideshow'] );
|
445 |
+
$instance['metadata'] = strip_tags( $new_instance['metadata'] );
|
446 |
+
|
447 |
+
return $instance;
|
448 |
+
|
449 |
+
}
|
450 |
+
|
451 |
+
function form( $instance ) {
|
452 |
+
|
453 |
+
$defaults = array(
|
454 |
+
|
455 |
+
'title' => '',
|
456 |
+
'slideshow' => '',
|
457 |
+
'metadata' => ''
|
458 |
+
|
459 |
+
);
|
460 |
+
|
461 |
+
$instance = wp_parse_args( (array) $instance, $defaults );
|
462 |
+
|
463 |
+
echo '<p><label for="' . $this->get_field_id( 'title' ) . '">' . __('Title:', 'meteor-slides') . '</label>
|
464 |
+
<input type="text" class="widefat" id="' . $this->get_field_id( 'title' ) . '" name="' . $this->get_field_name( 'title' ) . '" value="' . $instance['title'] . '" /></p>';
|
465 |
+
|
466 |
+
echo '<p><label for="' . $this->get_field_id( 'slideshow' ) . '">' . __('Slideshow:', 'meteor-slides') . '</label>
|
467 |
+
<input type="text" class="widefat" id="' . $this->get_field_id( 'slideshow' ) . '" name="' . $this->get_field_name( 'slideshow' ) . '" value="' . $instance['slideshow'] . '" /></p>';
|
468 |
+
|
469 |
+
echo '<p><label for="' . $this->get_field_id( 'metadata' ) . '">' . __('Metadata:', 'meteor-slides') . '</label>
|
470 |
+
<input type="text" class="widefat" id="' . $this->get_field_id( 'metadata' ) . '" name="' . $this->get_field_name( 'metadata' ) . '" value="' . $instance['metadata'] . '" /></p>';
|
471 |
+
|
472 |
+
}
|
473 |
+
|
474 |
+
}
|
475 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
?>
|
readme.txt
CHANGED
@@ -1,191 +1,204 @@
|
|
1 |
-
=== Plugin Name ===
|
2 |
-
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¤cy_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.
|
6 |
-
Tested up to: 3.1
|
7 |
-
Stable tag: 1.
|
8 |
-
|
9 |
-
Meteor Slides makes it simple to create slideshows with WordPress by adding a custom post type for slides.
|
10 |
-
|
11 |
-
== Description ==
|
12 |
-
|
13 |
-
Easily create slideshows and publish them with a shortcode or widget. The slideshows are powered by [jQuery Cycle](http://jquery.malsup.com/cycle/) and have over twenty transition styles to choose from.
|
14 |
-
|
15 |
-
= Meteor Slides Homepage =
|
16 |
-
|
17 |
-
[Visit this plugin's homepage](http://www.jleuze.com/plugins/meteor-slides/ "Meteor Slides Homepage") for documentation, tutorials, and additional videos.
|
18 |
-
|
19 |
-
= Video Overview =
|
20 |
-
|
21 |
-
This screencast shows some of the
|
22 |
-
|
23 |
-
[vimeo http://vimeo.com/16270730]
|
24 |
-
|
25 |
-
= Features =
|
26 |
-
|
27 |
-
* **Easy integration:** Add the slideshow to your site using a template tag, shortcode, or widget.
|
28 |
-
* **Multiple Slideshows:** Organize your slides into multiple slideshows.
|
29 |
-
* **Slideshow settings page:** Control the slide height and width, the number of slides, the slideshow speed and transition style, and the type of navigation.
|
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 |
-
|
37 |
-
== Installation ==
|
38 |
-
|
39 |
-
1. Upload the **meteor-slides** folder to your **/wp-content/plugins/** directory or go to Plugins -> Add New from your Dashboard in WordPress.
|
40 |
-
2. Activate the plugin through the Plugins menu in WordPress
|
41 |
-
3. Use the Settings link or go to Slides -> Settings to access the Meteor Slides settings.
|
42 |
-
|
43 |
-
= Configure Slideshow =
|
44 |
-
*Before adding any slides, enter the slide height and width in the settings so the slides are the correct dimensions.*
|
45 |
-
|
46 |
-
= Add Slideshow =
|
47 |
-
|
48 |
-
Use `<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>` to add this slideshow to your theme, use `[meteor_slideshow]` to add it to your Post or Page content, or use the Meteor Slides Widget to add it to a sidebar.
|
49 |
-
|
50 |
-
= Meteor Slides Documentation =
|
51 |
-
|
52 |
-
Check out the [Meteor Slides Documentation](http://www.jleuze.com/plugins/meteor-slides/installation/ "Meteor Slides Documentation") for more information on using Meteor Slides, adding slideshows, using metadata, and advanced customization.
|
53 |
-
|
54 |
-
*Please [post any questions or problems](http://wordpress.org/tags/meteor-slides?forum_id=10#postform "Post a question or problem in the forums") in the WordPress.org support forums.*
|
55 |
-
|
56 |
-
== Frequently Asked Questions ==
|
57 |
-
|
58 |
-
= I add a slide, save or publish it, and then it's missing or not found, what gives? =
|
59 |
-
|
60 |
-
Every post needs a title, make sure to give your slide a title where is says "Enter title here". This title is mostly used just to label them in the backend, but it will also be used as the title of your link if you add a link.
|
61 |
-
|
62 |
-
= I added an image to my post, why isn't it showing up in the slide? =
|
63 |
-
|
64 |
-
Make sure to click "Use as featured image" after uploading your image. If the image is added correctly to the slide, you should see a thumbnail of that image in the Slide Image metabox.
|
65 |
-
|
66 |
-
= How can I switch the order of the slides? =
|
67 |
-
|
68 |
-
The slides load in the order they were published, you can change the publish date of a slide post to switch the order. If you'd like drap-and-drop slide sorting, try a plugin like [Post Types Order](http://wordpress.org/extend/plugins/post-types-order/ "Post Types Order plugin").
|
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 |
-
|
76 |
-
Copy **meteor-slides.css** from **/meteor-slides/css/** to your theme's directory to replace the plugin's default stylesheet. If you have navigation enabled, be sure to copy the **buttons.png**, **next.png**, and **prev.png** files to your theme's images folder and update the image paths, or create new graphics to replace them. Learn more about [customizing the stylesheet](http://www.jleuze.com/plugins/meteor-slides/customizing-the-stylesheet/ "Meteor Slides Documentation") for Meteor Slides.
|
77 |
-
|
78 |
-
= How do I customize the slideshow's loop template? =
|
79 |
-
|
80 |
-
Copy **meteor-slideshow.php** from **/meteor-slides/** to your theme's directory to replace the plugin's default slideshow loop. Learn more about [customizing the slideshow template](http://www.jleuze.com/plugins/meteor-slides/customizing-the-slideshow-template/ "Meteor Slides Documentation") for Meteor Slides.
|
81 |
-
|
82 |
-
= I installed Meteor Slides, and now my theme or plugin's jQuery goodies are broken! =
|
83 |
-
|
84 |
-
Your theme or plugin is probably loading an extra copy of jQuery from the theme or plugin, or a third party server. This is unnecessary because WordPress already uses jQuery and it is included in the WordPress install. Meteor Slides loads the version that is within WordPress, to fix this, change your theme or plugin to use the copy of jQuery that comes with WordPress, like this `<?php wp_enqueue_script("jquery"); ?>`.
|
85 |
-
|
86 |
-
= Meteor Slides is awesome, what can I do to help? =
|
87 |
-
|
88 |
-
You can help right on this page by rating the plugin or voting for its compatibility with the latest version of WordPress. Blog about Meteor Slides to get the word out, or [visit my blog](http://www.jleuze.com/ "JLeuze.com") to post feedback or just say hi. You could also [translate Meteor Slides](http://www.jleuze.com/plugins/meteor-slides/languages/ "Meteor Slides Languages") into another language or [make a donation](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¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8 "Donate").
|
89 |
-
|
90 |
-
*Please [post any questions or problems](http://wordpress.org/tags/meteor-slides?forum_id=10#postform "Post a question or problem in the forums") in the WordPress.org support forums.*
|
91 |
-
|
92 |
-
== Screenshots ==
|
93 |
-
|
94 |
-
1. Slideshow Preview
|
95 |
-
2. New Slide Page
|
96 |
-
3. Edit Slide Page
|
97 |
-
4. Slides Column View
|
98 |
-
5. Manage Slideshows
|
99 |
-
6. Meteor Slides Settings
|
100 |
-
|
101 |
-
== Changelog ==
|
102 |
-
|
103 |
-
= 1.
|
104 |
-
*
|
105 |
-
|
106 |
-
|
107 |
-
*
|
108 |
-
*
|
109 |
-
* Updated
|
110 |
-
* Updated
|
111 |
-
*
|
112 |
-
|
113 |
-
|
114 |
-
*
|
115 |
-
|
116 |
-
= 1.3.
|
117 |
-
*
|
118 |
-
*
|
119 |
-
*
|
120 |
-
*
|
121 |
-
*
|
122 |
-
*
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
*
|
128 |
-
* Added
|
129 |
-
*
|
130 |
-
*
|
131 |
-
*
|
132 |
-
*
|
133 |
-
|
134 |
-
= 1.
|
135 |
-
*
|
136 |
-
|
137 |
-
|
138 |
-
* Added
|
139 |
-
|
140 |
-
|
141 |
-
*
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
This version of Meteor Slides adds a stylesheet for the slideshow which aids theme compatibility.
|
1 |
+
=== Plugin Name ===
|
2 |
+
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¤cy_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.2.1
|
6 |
+
Tested up to: 3.2.1
|
7 |
+
Stable tag: 1.4
|
8 |
+
|
9 |
+
Meteor Slides makes it simple to create slideshows with WordPress by adding a custom post type for slides.
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
|
13 |
+
Easily create slideshows and publish them with a shortcode or widget. The slideshows are powered by [jQuery Cycle](http://jquery.malsup.com/cycle/) and have over twenty transition styles to choose from.
|
14 |
+
|
15 |
+
= Meteor Slides Homepage =
|
16 |
+
|
17 |
+
[Visit this plugin's homepage](http://www.jleuze.com/plugins/meteor-slides/ "Meteor Slides Homepage") for documentation, tutorials, and additional videos.
|
18 |
+
|
19 |
+
= Video Overview =
|
20 |
+
|
21 |
+
This screencast shows some of the plugin's features, such as different transition and navigation options, multiple slideshows, plugin settings, and metadata. [Watch more Meteor Slides videos.](http://vimeo.com/album/930565 "Meteor Slides Videos")
|
22 |
+
|
23 |
+
[vimeo http://vimeo.com/16270730]
|
24 |
+
|
25 |
+
= Features =
|
26 |
+
|
27 |
+
* **Easy integration:** Add the slideshow to your site using a template tag, shortcode, or widget.
|
28 |
+
* **Multiple Slideshows:** Organize your slides into multiple slideshows.
|
29 |
+
* **Slideshow settings page:** Control the slide height and width, the number of slides, the slideshow speed and transition style, and the type of navigation.
|
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, Hebrew, Indonesian, Italian, Japanese, Polish, Portuguese, Portuguese (Brazilian), Romanian, Russian, 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 |
+
|
37 |
+
== Installation ==
|
38 |
+
|
39 |
+
1. Upload the **meteor-slides** folder to your **/wp-content/plugins/** directory or go to Plugins -> Add New from your Dashboard in WordPress.
|
40 |
+
2. Activate the plugin through the Plugins menu in WordPress
|
41 |
+
3. Use the Settings link or go to Slides -> Settings to access the Meteor Slides settings.
|
42 |
+
|
43 |
+
= Configure Slideshow =
|
44 |
+
*Before adding any slides, enter the slide height and width in the settings so the slides are the correct dimensions.*
|
45 |
+
|
46 |
+
= Add Slideshow =
|
47 |
+
|
48 |
+
Use `<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>` to add this slideshow to your theme, use `[meteor_slideshow]` to add it to your Post or Page content, or use the Meteor Slides Widget to add it to a sidebar.
|
49 |
+
|
50 |
+
= Meteor Slides Documentation =
|
51 |
+
|
52 |
+
Check out the [Meteor Slides Documentation](http://www.jleuze.com/plugins/meteor-slides/installation/ "Meteor Slides Documentation") for more information on using Meteor Slides, adding slideshows, using metadata, and advanced customization.
|
53 |
+
|
54 |
+
*Please [post any questions or problems](http://wordpress.org/tags/meteor-slides?forum_id=10#postform "Post a question or problem in the forums") in the WordPress.org support forums.*
|
55 |
+
|
56 |
+
== Frequently Asked Questions ==
|
57 |
+
|
58 |
+
= I add a slide, save or publish it, and then it's missing or not found, what gives? =
|
59 |
+
|
60 |
+
Every post needs a title, make sure to give your slide a title where is says "Enter title here". This title is mostly used just to label them in the backend, but it will also be used as the title of your link if you add a link.
|
61 |
+
|
62 |
+
= I added an image to my post, why isn't it showing up in the slide? =
|
63 |
+
|
64 |
+
Make sure to click "Use as featured image" after uploading your image. If the image is added correctly to the slide, you should see a thumbnail of that image in the Slide Image metabox.
|
65 |
+
|
66 |
+
= How can I switch the order of the slides? =
|
67 |
+
|
68 |
+
The slides load in the order they were published, you can change the publish date of a slide post to switch the order. If you'd like drap-and-drop slide sorting, try a plugin like [Post Types Order](http://wordpress.org/extend/plugins/post-types-order/ "Post Types Order plugin").
|
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 |
+
|
76 |
+
Copy **meteor-slides.css** from **/meteor-slides/css/** to your theme's directory to replace the plugin's default stylesheet. If you have navigation enabled, be sure to copy the **buttons.png**, **next.png**, and **prev.png** files to your theme's images folder and update the image paths, or create new graphics to replace them. Learn more about [customizing the stylesheet](http://www.jleuze.com/plugins/meteor-slides/customizing-the-stylesheet/ "Meteor Slides Documentation") for Meteor Slides.
|
77 |
+
|
78 |
+
= How do I customize the slideshow's loop template? =
|
79 |
+
|
80 |
+
Copy **meteor-slideshow.php** from **/meteor-slides/** to your theme's directory to replace the plugin's default slideshow loop. Learn more about [customizing the slideshow template](http://www.jleuze.com/plugins/meteor-slides/customizing-the-slideshow-template/ "Meteor Slides Documentation") for Meteor Slides.
|
81 |
+
|
82 |
+
= I installed Meteor Slides, and now my theme or plugin's jQuery goodies are broken! =
|
83 |
+
|
84 |
+
Your theme or plugin is probably loading an extra copy of jQuery from the theme or plugin, or a third party server. This is unnecessary because WordPress already uses jQuery and it is included in the WordPress install. Meteor Slides loads the version that is within WordPress, to fix this, change your theme or plugin to use the copy of jQuery that comes with WordPress, like this `<?php wp_enqueue_script("jquery"); ?>`.
|
85 |
+
|
86 |
+
= Meteor Slides is awesome, what can I do to help? =
|
87 |
+
|
88 |
+
You can help right on this page by rating the plugin or voting for its compatibility with the latest version of WordPress. Blog about Meteor Slides to get the word out, or [visit my blog](http://www.jleuze.com/ "JLeuze.com") to post feedback or just say hi. You could also [translate Meteor Slides](http://www.jleuze.com/plugins/meteor-slides/languages/ "Meteor Slides Languages") into another language or [make a donation](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¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8 "Donate").
|
89 |
+
|
90 |
+
*Please [post any questions or problems](http://wordpress.org/tags/meteor-slides?forum_id=10#postform "Post a question or problem in the forums") in the WordPress.org support forums.*
|
91 |
+
|
92 |
+
== Screenshots ==
|
93 |
+
|
94 |
+
1. Slideshow Preview
|
95 |
+
2. New Slide Page
|
96 |
+
3. Edit Slide Page
|
97 |
+
4. Slides Column View
|
98 |
+
5. Manage Slideshows
|
99 |
+
6. Meteor Slides Settings
|
100 |
+
|
101 |
+
== Changelog ==
|
102 |
+
|
103 |
+
= 1.4 =
|
104 |
+
* Replaced slideshow skin with new navigation graphics and layout
|
105 |
+
* Added support for custom slideshow script
|
106 |
+
* Added support for Members plugin
|
107 |
+
* Added uninstall functionality
|
108 |
+
* Moved admin functions to separate file and reorganized some files
|
109 |
+
* Updated JQuery Cycle to 2.99, switch to minimized version
|
110 |
+
* Updated Swedish translation
|
111 |
+
* Added Hebrew, Japanese, Polish, Portuguese, and Russian translations
|
112 |
+
|
113 |
+
= 1.3.3 =
|
114 |
+
* Updated generic function with prefix.
|
115 |
+
|
116 |
+
= 1.3.2 =
|
117 |
+
* Improved support for multiple slideshows of different sizes
|
118 |
+
* Fixed transparent PNG bug
|
119 |
+
* Updated functions for WordPress 3.1 compatibility
|
120 |
+
* Updated screenshots for WordPress 3.1
|
121 |
+
* Updated JQuery Cycle to 2.94
|
122 |
+
* Added message filters for slides
|
123 |
+
* Added contextual help
|
124 |
+
* Added Chinese translation
|
125 |
+
|
126 |
+
= 1.3.1 =
|
127 |
+
* Fixed post thumbnail registration conflicts
|
128 |
+
* Added support for custom slideshow loop
|
129 |
+
* Fixed navigation for multiple slideshows
|
130 |
+
* Improved support for transparent images
|
131 |
+
* Fixed slideshow layout issues
|
132 |
+
* Updated French translation
|
133 |
+
|
134 |
+
= 1.3 =
|
135 |
+
* Added custom slideshows taxonomy for multiple slideshows
|
136 |
+
* Optional slideshow and metadata parameters for template tag and shortcode
|
137 |
+
* Optional title, slideshow, and metadata parameters for the widget
|
138 |
+
* Added settings link to plugins page
|
139 |
+
* Added Slide image and link to slides column
|
140 |
+
* Removed slides from menu editor and search
|
141 |
+
* Expanded navigation options
|
142 |
+
* Added Metadata jQuery plugin
|
143 |
+
|
144 |
+
= 1.2.3 =
|
145 |
+
* Centered slides, fixed navigation bugs, added slideshow navigation buttons, updated translation files.
|
146 |
+
|
147 |
+
= 1.2.2 =
|
148 |
+
* Added slideshow navigation, added Italian, Portuguese, and Spanish translations.
|
149 |
+
|
150 |
+
= 1.2.1 =
|
151 |
+
* Added French and Romanian translations.
|
152 |
+
|
153 |
+
= 1.2 =
|
154 |
+
* Added localization functionality, added Indonesian and Turkish translations.
|
155 |
+
|
156 |
+
= 1.1.1 =
|
157 |
+
* Fixed featured image array conflict with some themes, hide slides from revealing on load, added unique id to each slide.
|
158 |
+
|
159 |
+
= 1.1 =
|
160 |
+
* Added slideshow widget, added stylesheet, updated JQuery Cycle to 2.88.
|
161 |
+
|
162 |
+
= 1.0.2 =
|
163 |
+
* Fixed shortcode bugs, positioning of slideshow and loop within loop.
|
164 |
+
|
165 |
+
= 1.0.1 =
|
166 |
+
* Removed "menu_position" to prevent conflicts with other plugins.
|
167 |
+
|
168 |
+
= 1.0 =
|
169 |
+
* Initial release of Meteor Slides.
|
170 |
+
|
171 |
+
== Upgrade Notice ==
|
172 |
+
|
173 |
+
= 1.4 =
|
174 |
+
Meteor Slides 1.4 replaces the navigation graphics, adds support for custom scripts and the Members plugin, updates jQuery Cycle and adds new and updated translations.
|
175 |
+
|
176 |
+
= 1.3.3 =
|
177 |
+
Meteor Slides 1.3.3 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.(Updated function)
|
178 |
+
|
179 |
+
= 1.3.2 =
|
180 |
+
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.
|
181 |
+
|
182 |
+
= 1.3.1 =
|
183 |
+
Meteor Slides 1.3.1 fixes thumbnail registration conflicts, transparent images issues, and navigation for multiple slideshows.
|
184 |
+
|
185 |
+
= 1.3 =
|
186 |
+
Meteor Slides 1.3 adds support for multiple slideshows, the Metadata jQuery plugin for advanced customization, more navigation options, and other small improvements and bug fixes.
|
187 |
+
|
188 |
+
= 1.2.3 =
|
189 |
+
Meteor Slides 1.2.3 centers slides, fixes navigation bugs, adds slideshow navigation buttons, and updates translation files.
|
190 |
+
|
191 |
+
= 1.2.2 =
|
192 |
+
Meteor Slides 1.2.2 adds slideshow navigation and Italian, Portuguese, and Spanish translations.
|
193 |
+
|
194 |
+
= 1.2.1 =
|
195 |
+
Meteor Slides 1.2.1 adds French and Romanian translations.
|
196 |
+
|
197 |
+
= 1.2 =
|
198 |
+
Meteor Slides 1.2 adds localization support and includes Indonesian and Turkish translations.
|
199 |
+
|
200 |
+
= 1.1.1 =
|
201 |
+
This version of Meteor Slides fixes a bug that was causing some themes to disable the featured images.
|
202 |
+
|
203 |
+
= 1.1 =
|
204 |
This version of Meteor Slides adds a stylesheet for the slideshow which aids theme compatibility.
|
screenshot-1.jpg
CHANGED
Binary file
|
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
|
uninstall.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// If uninstall not called from WordPress exit
|
4 |
+
|
5 |
+
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
6 |
+
|
7 |
+
exit();
|
8 |
+
|
9 |
+
}
|
10 |
+
|
11 |
+
// Delete settings page options from options table
|
12 |
+
|
13 |
+
delete_option( 'meteorslides_options' );
|
14 |
+
|
15 |
+
?>
|