Cyclone Slider - Version 2.5.0

Version Description

  • 2013-03-21 - This is a major release
Download this release

Release Info

Developer kosinix
Plugin Icon 128x128 Cyclone Slider
Version 2.5.0
Comparing to
See all releases

Code changes from version 2.2.5 to 2.5.0

Files changed (53) hide show
  1. README.txt +42 -14
  2. css/admin.css +179 -110
  3. css/templates.css +226 -5
  4. cyclone-slider.php +5 -123
  5. images/glyphicons-halflings.png +0 -0
  6. images/loader.gif +0 -0
  7. inc/admin-parts/box.php +156 -91
  8. inc/admin-parts/slider-properties.php +15 -6
  9. inc/admin-parts/template-selection.php +43 -0
  10. inc/class-cyclone-slider-widget.php +1 -1
  11. inc/class-cyclone-slider.php +1117 -947
  12. inc/class-image-resizer.php +1 -1
  13. inc/class-nextgen-integration.php +1 -1
  14. inc/functions.php +271 -0
  15. js/admin.js +431 -281
  16. js/cyclone-slider.min.js +12 -0
  17. js/jquery-cookie.js +0 -47
  18. js/jquery.cycle2.min.js +5 -5
  19. js/store-json2.min.js +2 -0
  20. js/templates.js +63 -0
  21. lang/cycloneslider-de_DE.mo +0 -0
  22. lang/cycloneslider-de_DE.po +176 -110
  23. lang/cycloneslider.pot +159 -100
  24. screenshot-1.jpg +0 -0
  25. screenshot-2.jpg +0 -0
  26. templates/black/config.txt +4 -0
  27. templates/black/script.js +30 -0
  28. templates/black/script.min.js +1 -0
  29. templates/black/slider.php +16 -10
  30. templates/black/style.css +9 -10
  31. templates/black/style.min.css +1 -1
  32. templates/blue/config.txt +4 -0
  33. templates/blue/script.js +30 -0
  34. templates/blue/script.min.js +1 -0
  35. templates/blue/slider.php +16 -10
  36. templates/blue/style.css +9 -10
  37. templates/blue/style.min.css +1 -1
  38. templates/default/config.txt +4 -0
  39. templates/default/script.js +30 -0
  40. templates/default/script.min.js +1 -0
  41. templates/default/slider.php +16 -10
  42. templates/default/style.css +9 -10
  43. templates/default/style.min.css +1 -1
  44. templates/myrtle/config.txt +4 -0
  45. templates/myrtle/script.js +16 -0
  46. templates/myrtle/script.min.js +1 -0
  47. templates/myrtle/slider.php +16 -10
  48. templates/myrtle/style.css +9 -0
  49. templates/myrtle/style.min.css +1 -1
  50. templates/thumbnails/config.txt +4 -0
  51. templates/thumbnails/slider.php +26 -12
  52. templates/thumbnails/style.css +29 -0
  53. templates/thumbnails/style.min.css +1 -1
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.codefleet.net/donate/
4
  Tags: slider, slideshow, jquery, cycle 2, responsive, multilingual support, custom post, cyclone slider
5
  Requires at least: 3.3.2
6
  Tested up to: 3.5.1
7
- Stable tag: 2.2.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,21 +12,23 @@ Create responsive slideshows with ease. Built for both developers and non-develo
12
 
13
  == Description ==
14
 
15
- Cyclone Slider 2 follows the keep it simple principle. It leverages WordPress' built-in features. It uses custom post for the slideshow, custom fields to store settings, and media uploader for the images. Its simple yet flexible.
16
 
17
  = Features: =
18
- * Uses jQuery Cycle 2 with full responsiveness
19
- * Very easy to use interface!
20
- * Customizable tile transition effects
21
- * Ability to add per-slide transition effects
22
- * Unlimited slideshows
23
- * Unique settings for each slideshow
24
- * Shortcode for displaying slideshows anywhere in your site
25
- * A simple template system for developers to easily customize the slideshow
26
- * Ability to import images from NextGEN (NextGEN must be installed and active)
27
- * Ability to use qTranslate quick tags for slide title and descriptions (qTranslate must be installed and active)
28
- * Allows title and alt to be specified for each slide images
29
- * Comes with a widget to display your slideshow easily in widget areas
 
 
30
  * It's totally FREE!
31
 
32
  = Homepage =
@@ -87,6 +89,19 @@ Inside your theme create a folder named "cycloneslider". Add your templates insi
87
 
88
  == Changelog ==
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  = 2.2.5 - 2013-02-23 =
91
  * Bug fix for 2.2.4
92
 
@@ -143,6 +158,19 @@ Inside your theme create a folder named "cycloneslider". Add your templates insi
143
 
144
  == Upgrade Notice ==
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  = 2.2.5 - 2013-02-23 =
147
  * Bug fix for 2.2.4
148
 
4
  Tags: slider, slideshow, jquery, cycle 2, responsive, multilingual support, custom post, cyclone slider
5
  Requires at least: 3.3.2
6
  Tested up to: 3.5.1
7
+ Stable tag: 2.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ Cyclone Slider 2 follows the keep it simple mantra. It leverages WordPress' built-in features. It uses custom post for the slideshow, custom fields to store settings, and media uploader for the images. It also uses a template system that allows developers to easily customize the slideshow to their needs. Its simple yet flexible.
16
 
17
  = Features: =
18
+ * Very easy to use interface! Blends seamlessly with your WordPress workflow.
19
+ * Supports image, video, and custom HTML slides.
20
+ * Powered by [Cycle 2](http://jquery.malsup.com/cycle2/), the most flexible jQuery slideshow plugin.
21
+ * A template system that allows developers to easily customize the slideshows.
22
+ * Customizable tile transition effects.
23
+ * Ability to add per-slide transition effects.
24
+ * Unlimited slideshows.
25
+ * Unique settings for each slideshow.
26
+ * Supports random slide order.
27
+ * Shortcode for displaying slideshows anywhere in your site.
28
+ * Ability to import images from NextGEN (NextGEN must be installed and active).
29
+ * Ability to use qTranslate quick tags for slide title and descriptions (qTranslate must be installed and active).
30
+ * Allows title and alt to be specified for each slide images.
31
+ * Comes with a widget to display your slideshow easily in widget areas.
32
  * It's totally FREE!
33
 
34
  = Homepage =
89
 
90
  == Changelog ==
91
 
92
+ = 2.5.0 - 2013-03-21 - This is a major release =
93
+ * More slide types to choose from: image, video (youtube and vimeo) and custom HTML.
94
+ * Added icons to the UI to indicate different slide types.
95
+ * Replaced cookies with localstorage to store UI status.
96
+ * Updated the templates to support the various slide types.
97
+ * Added resize and random options.
98
+ * Bug fix for fatal error when no GD library. Added gd_info check.
99
+ * Bug fix for js error on WP below 3.5 caused by the 3.5 media library object being undefined.
100
+ * Deprecated cycloneslider_thumb use cyclone_slide_image_url instead.
101
+ * Deprecated cycloneslider_settings use cyclone_settings instead.
102
+ * Deprecated cycloneslider_slide_settings use cyclone_slide_settings instead.
103
+ * Various UI fixes and code refactoring.
104
+
105
  = 2.2.5 - 2013-02-23 =
106
  * Bug fix for 2.2.4
107
 
158
 
159
  == Upgrade Notice ==
160
 
161
+ = 2.5.0 - 2013-03-21 - This is a major release =
162
+ * More slide types to choose from: image, video (youtube and vimeo) and custom HTML.
163
+ * Added icons to the UI to indicate different slide types.
164
+ * Replaced cookies with localstorage to store UI status.
165
+ * Updated the templates to support the various slide types.
166
+ * Added resize and random options.
167
+ * Bug fix for fatal error when no GD library. Added gd_info check.
168
+ * Bug fix for js error on WP below 3.5 caused by the 3.5 media library object being undefined.
169
+ * Deprecated cycloneslider_thumb use cyclone_slide_image_url instead.
170
+ * Deprecated cycloneslider_settings use cyclone_settings instead.
171
+ * Deprecated cycloneslider_slide_settings use cyclone_slide_settings instead.
172
+ * Various UI fixes and code refactoring.
173
+
174
  = 2.2.5 - 2013-02-23 =
175
  * Bug fix for 2.2.4
176
 
css/admin.css CHANGED
@@ -1,4 +1,7 @@
1
- /*** Slides ***/
 
 
 
2
  #cyclone-slides-metabox .inside{
3
  margin:20px;
4
  padding:0;
@@ -6,11 +9,11 @@
6
  .cycloneslider-sortable{
7
  margin-bottom:20px;
8
  }
9
- .cycloneslider-box{
10
- margin-bottom:10px;
11
  }
12
- /*** Slides - Title ***/
13
- .cycloneslider-box-title{
14
  cursor:move;
15
  background-color: #f1f1f1; /* Fallback */
16
  background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); /* IE10 */
@@ -20,20 +23,43 @@
20
  background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); /* new Webkit */
21
  background-image: linear-gradient(top, #f9f9f9, #ececec); /* proposed W3C Markup */
22
  }
23
- .cycloneslider-box-title{
24
- padding:5px;
25
- border:1px solid #D3D3D3;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  }
27
- .cycloneslider-box-title-left{
 
 
 
 
 
 
28
  float:left;
 
29
  }
30
- .cycloneslider-box-title-right{
31
  float:right;
 
32
  }
33
-
34
- .cycloneslider-box-title .cycloneslider-box-drag,
35
- .cycloneslider-box-title .cycloneslider-box-toggle,
36
- .cycloneslider-box-title .cycloneslider-box-delete{
37
  margin:0 5px;
38
  display:block;
39
  float:left;
@@ -41,124 +67,150 @@
41
  width:15px;
42
  height:15px;
43
  }
44
- .cycloneslider-box-title .cycloneslider-box-drag{
45
  display:none;
46
  cursor:move;
47
  color:#285C00;
48
  background: url(../images/ui-icons.png) no-repeat 0 0;
49
  }
50
- .cycloneslider-box-title .cycloneslider-box-toggle{
51
  cursor:pointer;
52
  color:#21759B;
53
  background: url(../images/ui-icons.png) no-repeat -15px 0;
54
  }
55
- .cycloneslider-box-title .cycloneslider-box-delete{
56
  cursor:pointer;
57
  color:#ff9191;
58
  background: url(../images/ui-icons.png) no-repeat -30px 0;
59
  }
60
- .cycloneslider-box-title:hover .cycloneslider-box-toggle,
61
- .cycloneslider-box-title .cycloneslider-box-toggle:hover{
62
  background-position:-15px -15px;
63
  color:#fff;
64
  }
65
- .cycloneslider-box-title .cycloneslider-box-delete:hover{
 
 
 
 
66
  background-color:#ff9191;
67
  color:#fff;
68
  }
69
-
70
- /*** Slides Body ***/
71
- .cycloneslider-box-body{
72
  background:#F5F5F5;
73
  min-height:1px; /* IE7 - on open disappearing content - bug fix */
74
- padding:10px 10px 20px 10px;
75
  border-left:1px solid #D3D3D3;
76
  border-right:1px solid #D3D3D3;
77
  border-bottom:1px solid #D3D3D3;
78
  display:none;
79
  }
80
- input[name=cycloneslider_add_slide]{
81
- margin-bottom:15px;
82
- }
83
- .cycloneslider-box-placeholder{
84
- padding:5px;
85
- height:20px;
86
- border:1px dashed #ccc;
87
- margin-bottom:10px;
88
  }
89
- .cycloneslider-body-left{
90
- float:left;
91
- width:45%;
92
- margin-right:5%;
93
  }
94
- .cycloneslider-body-right{
95
- float:left;
96
  width:50%;
97
- min-width:400px;
98
  }
99
- .cycloneslider-slide-thumb{
100
  display:block;
101
  max-width:90%;
102
  margin-bottom:10px;
103
  border:3px solid #ccc;
104
  }
105
- .cycloneslider-slide-path{
106
- display:block;
107
- width:100%;
108
- margin-bottom:10px;
 
 
 
 
 
 
 
 
109
  }
110
 
111
- /* accordion */
112
- .cycloneslider-accordion{
113
- font-size:12px;
114
- padding:0 20px;
115
-
116
  }
117
- .cycloneslider-accordion .ui-accordion-header{
118
- padding:5px 8px 5px 8px;
119
- margin-bottom:1px;
120
-
 
121
  }
122
- .cycloneslider-accordion .ui-accordion-header.ui-state-active{
123
- border-bottom:0;
124
- margin-bottom:0;
125
- background:#F5F5F5;
 
126
  }
127
- .cycloneslider-accordion .ui-accordion-content{
128
- padding:0px 20px 20px 20px;
129
- margin-bottom:1px;
130
- background:#F5F5F5;
 
 
 
 
 
 
 
 
131
  }
132
- .cycloneslider-accordion .ui-accordion-content-active{
133
- border-top:0;
134
  }
135
 
 
 
 
 
 
136
 
137
- /* box template */
138
- .cycloneslider-box-template{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  display:none;
140
  }
141
 
142
- /*** Slide Properties ***/
143
- .cycloneslider-sub-title{
144
  font-weight:bold;
145
  font-size:12px;
146
  margin-bottom:10px;
147
  text-transform:capitalize;
148
  }
149
- .cycloneslider-slide-metas{
150
  border-bottom:1px solid #D3D3D3;
151
  }
152
- .cycloneslider-field-title.first{
153
- -webkit-border-radius: 3px 3px 0px 0px;
154
- border-radius: 3px 3px 0px 0px;
155
- }
156
- .cycloneslider-title-checkbox{
157
- background:none;
158
- padding:0;
159
- float:left;
160
- }
161
- .cycloneslider-field-title{
162
  border-left:1px solid #D3D3D3;
163
  border-right:1px solid #D3D3D3;
164
  border-top:1px solid #D3D3D3;
@@ -168,24 +220,43 @@ input[name=cycloneslider_add_slide]{
168
  background-color: #f1f1f1;
169
  cursor:pointer;
170
  }
171
- .cycloneslider-field-body{
172
  border-top:1px solid #D3D3D3;
173
  border-left:1px solid #D3D3D3;
174
  border-right:1px solid #D3D3D3;
175
  padding:20px;
176
  background:#f9f9f9;
177
-
178
  }
179
- .cycloneslider-field-body label{
180
- display:block;
181
- margin-bottom:3px;
182
  }
183
- .cycloneslider-field-body textarea{
184
- overflow:auto;
 
 
 
 
185
  }
186
- .cycloneslider-field-body input.cycloneslider-slide-meta-link{
187
- margin-bottom:10px;
 
 
 
 
 
 
 
 
188
  }
 
 
 
 
 
 
 
189
  .cycloneslider-slide-meta-speed,
190
  .cycloneslider-slide-meta-timeout,
191
  .cycloneslider-slide-meta-tile-count,
@@ -203,6 +274,8 @@ input:disabled{
203
  #cyclone-slider-properties-metabox .inside{
204
  padding:0;
205
  }
 
 
206
  .cycloneslider-field{
207
  padding:15px 10px 20px 10px;
208
  border-bottom:1px solid #DFDFDF;
@@ -216,22 +289,21 @@ input:disabled{
216
  font-weight:bold;
217
  margin-bottom:5px;
218
  }
219
- .cycloneslider-field .note,
220
- .cycloneslider-meta-field .note{
221
- font-weight:normal;
222
- font-size:11px;
223
- font-style:italic;
224
- color:#666666;
225
- }
226
  .cycloneslider-field input[type="text"],
227
  .cycloneslider-field select{
228
  display:block;
229
  min-width:50%;
230
  margin-bottom:3px;
231
  }
232
-
233
- .cycloneslider-fresh-slide{
234
- border:1px solid yellow;
 
 
 
 
 
 
235
  }
236
 
237
  /*** Nextgen ***/
@@ -304,23 +376,20 @@ input:disabled{
304
  -webkit-border-radius: 0px 0px 0px 5px;
305
  border-radius: 0px 0px 0px 5px;
306
  }
 
 
 
 
 
 
 
 
 
 
307
  .template-scroller{
308
  margin-bottom:5px;
309
  }
310
 
311
- .cycloneslider-field-tile-properties,
312
- .cycloneslider-slide-tile-properties{
313
- display:none;
314
- }
315
- .cycloneslider-spacer-10{
316
- height:10px;
317
- }
318
- .cycloneslider-spacer-15{
319
- height:15px;
320
- }
321
- .cycloneslider_metas_enable_slide_effects{
322
- float:right;
323
- }
324
 
325
  /*** Hide admin stuff ***/
326
  .inline-edit-date,
1
+ .clear{
2
+ clear:both;
3
+ }
4
+ /*** Slides Metabox ***/
5
  #cyclone-slides-metabox .inside{
6
  margin:20px;
7
  padding:0;
9
  .cycloneslider-sortable{
10
  margin-bottom:20px;
11
  }
12
+ .cs-slide{
13
+ margin-bottom:10px;
14
  }
15
+ .cs-header{
16
+ border:1px solid #D3D3D3;
17
  cursor:move;
18
  background-color: #f1f1f1; /* Fallback */
19
  background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); /* IE10 */
23
  background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); /* new Webkit */
24
  background-image: linear-gradient(top, #f9f9f9, #ececec); /* proposed W3C Markup */
25
  }
26
+ .cs-header .cs-icon{
27
+ float:left;
28
+ padding:6px;
29
+ border-right:1px solid #D3D3D3;
30
+ }
31
+ .cs-icon i{
32
+ width:14px;
33
+ height:14px;
34
+ display:block;
35
+ background: url(../images/glyphicons-halflings.png) no-repeat;
36
+ }
37
+ i.icon-facetime-video{
38
+ background-position: -432px -48px;
39
+ }
40
+ i.icon-film{
41
+ background-position: -192px 0;
42
+ }
43
+ i.icon-picture{
44
+ background-position: -456px -48px;
45
  }
46
+ i.icon-pencil{
47
+ background-position:0 -72px;
48
+ }
49
+ i.icon-font{
50
+ background-position: -144px -48px;
51
+ }
52
+ .cs-title{
53
  float:left;
54
+ padding:5px 6px;
55
  }
56
+ .cs-controls{
57
  float:right;
58
+ padding:5px;
59
  }
60
+ .cs-drag,
61
+ .cs-toggle,
62
+ .cs-delete{
 
63
  margin:0 5px;
64
  display:block;
65
  float:left;
67
  width:15px;
68
  height:15px;
69
  }
70
+ .cs-drag{
71
  display:none;
72
  cursor:move;
73
  color:#285C00;
74
  background: url(../images/ui-icons.png) no-repeat 0 0;
75
  }
76
+ .cs-toggle{
77
  cursor:pointer;
78
  color:#21759B;
79
  background: url(../images/ui-icons.png) no-repeat -15px 0;
80
  }
81
+ .cs-delete{
82
  cursor:pointer;
83
  color:#ff9191;
84
  background: url(../images/ui-icons.png) no-repeat -30px 0;
85
  }
86
+ .cs-header:hover .cs-toggle{
 
87
  background-position:-15px -15px;
88
  color:#fff;
89
  }
90
+ .cs-slide:hover .cs-header,
91
+ .cs-slide:hover .cs-body{
92
+ border-color:#c0c0c0;
93
+ }
94
+ .cs-header .cs-delete:hover{
95
  background-color:#ff9191;
96
  color:#fff;
97
  }
98
+ .cs-body{
 
 
99
  background:#F5F5F5;
100
  min-height:1px; /* IE7 - on open disappearing content - bug fix */
 
101
  border-left:1px solid #D3D3D3;
102
  border-right:1px solid #D3D3D3;
103
  border-bottom:1px solid #D3D3D3;
104
  display:none;
105
  }
106
+ .cs-slide-type-bar{
107
+ padding:10px 2%;
108
+ background: #ECECEC;
109
+ border-bottom:1px solid #D3D3D3;
 
 
 
 
110
  }
111
+ .cs-image-preview{
112
+ padding:15px 2%;
113
+ float:left;
114
+ width:40%;
115
  }
116
+ .cs-image-settings{
117
+ float:left;
118
  width:50%;
119
+ padding:15px 2%;
120
  }
121
+ .cs-image-thumb img{
122
  display:block;
123
  max-width:90%;
124
  margin-bottom:10px;
125
  border:3px solid #ccc;
126
  }
127
+ .cs-media-gallery-show{
128
+ margin-bottom:15px;
129
+ }
130
+ .cs-slide textarea{
131
+ overflow:auto;
132
+ }
133
+ .cs-slide .note,
134
+ .cycloneslider-field .note{
135
+ font-weight:normal;
136
+ font-size:11px;
137
+ font-style:italic;
138
+ color:#666666;
139
  }
140
 
141
+ /*** Video ***/
142
+ .cs-video-preview{
143
+ padding:15px 2%;
144
+ float:left;
145
+ width:40%;
146
  }
147
+ .cs-video-settings{
148
+ float:left;
149
+ width:50%;
150
+ padding:15px 2%;
151
+ min-width:300px;
152
  }
153
+ .cs-loader{
154
+ display:inline-block;
155
+ width:24px;
156
+ height:24px;
157
+
158
  }
159
+ .cs-video-thumb{
160
+ background: url(../images/loader.gif) no-repeat center;
161
+ min-height:150px;
162
+ }
163
+ .cs-video-thumb img{
164
+ max-width:100%;
165
+ margin-bottom:15px;
166
+ }
167
+
168
+ /*** Custom HTML ***/
169
+ .cs-custom{
170
+ padding:15px 2%;
171
  }
172
+ .cs-custom-html{
173
+ min-height:140px;
174
  }
175
 
176
+ /*** Slide effects toggle ***/
177
+ .cycloneslider_metas_enable_slide_effects{
178
+ float:right;
179
+ margin-bottom:15px;
180
+ }
181
 
182
+ /*** Hide other slide types ***/
183
+ .cs-video, .cs-custom, .cs-image{
184
+ display:none;
185
+ }
186
+ .cs-image {
187
+ display:block;
188
+ }
189
+
190
+ /*** Placeholder ***/
191
+ .cs-slide-placeholder{
192
+ padding:5px;
193
+ height:20px;
194
+ border:1px dashed #ccc;
195
+ margin-bottom:10px;
196
+ }
197
+
198
+ /* Skeleton for adding slide box in JS */
199
+ .cs-slide-skeleton{
200
  display:none;
201
  }
202
 
203
+ /*** Expandables ***/
204
+ .expandable-group-title{
205
  font-weight:bold;
206
  font-size:12px;
207
  margin-bottom:10px;
208
  text-transform:capitalize;
209
  }
210
+ .expandable-box.last{
211
  border-bottom:1px solid #D3D3D3;
212
  }
213
+ .expandable-header{
 
 
 
 
 
 
 
 
 
214
  border-left:1px solid #D3D3D3;
215
  border-right:1px solid #D3D3D3;
216
  border-top:1px solid #D3D3D3;
220
  background-color: #f1f1f1;
221
  cursor:pointer;
222
  }
223
+ .expandable-body{
224
  border-top:1px solid #D3D3D3;
225
  border-left:1px solid #D3D3D3;
226
  border-right:1px solid #D3D3D3;
227
  padding:20px;
228
  background:#f9f9f9;
229
+ display:none;
230
  }
231
+ .expandable-header.first{
232
+ -webkit-border-radius: 3px 3px 0px 0px;
233
+ border-radius: 3px 3px 0px 0px;
234
  }
235
+
236
+
237
+
238
+ /*** Form Fields ***/
239
+ .field{
240
+ margin-bottom:15px;
241
  }
242
+ .field.last{
243
+ margin:0;
244
+ }
245
+ .field label{
246
+ display:inline-block;
247
+ margin-bottom:5px;
248
+ font-weight:bold;
249
+ }
250
+ .field-inline label{
251
+ width:40%;
252
  }
253
+ .field-inline input,
254
+ .field-inline select,
255
+ .field-inline textarea{
256
+ max-width:40%;
257
+ }
258
+
259
+
260
  .cycloneslider-slide-meta-speed,
261
  .cycloneslider-slide-meta-timeout,
262
  .cycloneslider-slide-meta-tile-count,
274
  #cyclone-slider-properties-metabox .inside{
275
  padding:0;
276
  }
277
+
278
+ /*** Cycloneslider Field ***/
279
  .cycloneslider-field{
280
  padding:15px 10px 20px 10px;
281
  border-bottom:1px solid #DFDFDF;
289
  font-weight:bold;
290
  margin-bottom:5px;
291
  }
 
 
 
 
 
 
 
292
  .cycloneslider-field input[type="text"],
293
  .cycloneslider-field select{
294
  display:block;
295
  min-width:50%;
296
  margin-bottom:3px;
297
  }
298
+ .cycloneslider-field-tile-properties,
299
+ .cycloneslider-slide-tile-properties{
300
+ display:none;
301
+ }
302
+ .cycloneslider-spacer-10{
303
+ height:10px;
304
+ }
305
+ .cycloneslider-spacer-15{
306
+ height:15px;
307
  }
308
 
309
  /*** Nextgen ***/
376
  -webkit-border-radius: 0px 0px 0px 5px;
377
  border-radius: 0px 0px 0px 5px;
378
  }
379
+ .template-choices .supported{
380
+ position:absolute;
381
+ z-index:90;
382
+ right:5px;
383
+ bottom:5px;
384
+ }
385
+ .template-choices .supported span{
386
+ float:right;
387
+ margin:0 3px;
388
+ }
389
  .template-scroller{
390
  margin-bottom:5px;
391
  }
392
 
 
 
 
 
 
 
 
 
 
 
 
 
 
393
 
394
  /*** Hide admin stuff ***/
395
  .inline-edit-date,
css/templates.css CHANGED
@@ -1,11 +1,232 @@
1
  .cycloneslider{position:relative}.cycloneslider-slides{position:relative;overflow:hidden}.cycloneslider-slide{position:absolute;left:0;top:0;width:100%;height:100%;z-index:100}.cycloneslider-slide img{border:0;padding:0;margin:0;max-width:100%}.cycloneslider-prev,.cycloneslider-next,.cycloneslider-pager{cursor:pointer}.cycloneslider-slide:first-child{z-index:101}
2
  /*** Template Black ***/
3
- .cycloneslider-template-black img{display:block}.cycloneslider-template-black .cycloneslider-prev,.cycloneslider-template-black .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/black/images/sprite-arrows.png) no-repeat}.cycloneslider-template-black:hover .cycloneslider-prev,.cycloneslider-template-black:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-black .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-black .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-black .cycloneslider-prev:hover,.cycloneslider-template-black .cycloneslider-next:hover{opacity:1}.cycloneslider-template-black .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-black .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/black/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-black .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-black .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/black/images/bg-caption.png);color:#fff}.cycloneslider-template-black .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-black .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}
4
  /*** Template Blue ***/
5
- .cycloneslider-template-blue img{display:block}.cycloneslider-template-blue .cycloneslider-prev,.cycloneslider-template-blue .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/blue/images/sprite-arrows.png) no-repeat}.cycloneslider-template-blue:hover .cycloneslider-prev,.cycloneslider-template-blue:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-blue .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-blue .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-blue .cycloneslider-prev:hover,.cycloneslider-template-blue .cycloneslider-next:hover{opacity:1}.cycloneslider-template-blue .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-blue .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/blue/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-blue .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-blue .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/blue/images/bg-caption.png);color:#fff}.cycloneslider-template-blue .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-blue .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}
6
  /*** Template Default ***/
7
- .cycloneslider-template-default img{display:block}.cycloneslider-template-default .cycloneslider-prev,.cycloneslider-template-default .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/default/images/sprite-arrows.png) no-repeat}.cycloneslider-template-default:hover .cycloneslider-prev,.cycloneslider-template-default:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-default .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-default .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-default .cycloneslider-prev:hover,.cycloneslider-template-default .cycloneslider-next:hover{opacity:1}.cycloneslider-template-default .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-default .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/default/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-default .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-default .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/default/images/bg-caption.png);color:#fff}.cycloneslider-template-default .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-default .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}
8
  /*** Template Myrtle ***/
9
- .cycloneslider-template-myrtle{overflow:hidden}.cycloneslider-template-myrtle .cycloneslider-prev,.cycloneslider-template-myrtle .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-19px;z-index:102;text-indent:-99999px;width:45px;height:45px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/myrtle/images/sprite-arrows.png) no-repeat}.cycloneslider-template-myrtle:hover .cycloneslider-prev,.cycloneslider-template-myrtle:hover .cycloneslider-next{display:block}.cycloneslider-template-myrtle .cycloneslider-prev{left:10px;background-position:-45px 0}.cycloneslider-template-myrtle .cycloneslider-next{right:10px;background-position:0 0}.cycloneslider-template-myrtle .cycloneslider-prev:hover{background-position:-45px -45px}.cycloneslider-template-myrtle .cycloneslider-next:hover{background-position:0 -45px}.cycloneslider-template-myrtle .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-myrtle .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/myrtle/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:12px;height:12px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-myrtle .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-myrtle .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/myrtle/images/bg-caption.png) right;color:#fff}.cycloneslider-template-myrtle .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:24px;line-height:1;margin-bottom:0;color:#e62b4e}.cycloneslider-template-myrtle .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px;color:#676761}
10
  /*** Template Thumbnails ***/
11
- .cycloneslider-template-thumbnails img{display:block}.cycloneslider-template-thumbnails .cycloneslider-prev,.cycloneslider-template-thumbnails .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/thumbnails/images/sprite-arrows.png) no-repeat}.cycloneslider-template-thumbnails:hover .cycloneslider-prev,.cycloneslider-template-thumbnails:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-thumbnails .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-thumbnails .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-thumbnails .cycloneslider-prev:hover,.cycloneslider-template-thumbnails .cycloneslider-next:hover{opacity:1}.cycloneslider-template-thumbnails .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/thumbnails/images/bg-caption.png);color:#fff}.cycloneslider-template-thumbnails .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-thumbnails .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-thumbnails.cycloneslider-thumbnails{padding:20px 0;text-align:center}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li{display:inline-block;margin:0 5px;border:5px solid #ccc;cursor:pointer}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li.current{border-color:#333}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .cycloneslider{position:relative}.cycloneslider-slides{position:relative;overflow:hidden}.cycloneslider-slide{position:absolute;left:0;top:0;width:100%;height:100%;z-index:100}.cycloneslider-slide img{border:0;padding:0;margin:0;max-width:100%}.cycloneslider-prev,.cycloneslider-next,.cycloneslider-pager{cursor:pointer}.cycloneslider-slide:first-child{z-index:101}
2
  /*** Template Black ***/
3
+ .cycloneslider-template-black img{display:block}.cycloneslider-template-black .cycloneslider-prev,.cycloneslider-template-black .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/black/images/sprite-arrows.png) no-repeat}.cycloneslider-template-black .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-black .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-black .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-black .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/black/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-black .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-black .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/black/images/bg-caption.png);color:#fff}.cycloneslider-template-black .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-black .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-black .cycloneslider-slide iframe,.cycloneslider-template-black .cycloneslider-slide object,.cycloneslider-template-black .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
4
  /*** Template Blue ***/
5
+ .cycloneslider-template-blue img{display:block}.cycloneslider-template-blue .cycloneslider-prev,.cycloneslider-template-blue .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/blue/images/sprite-arrows.png) no-repeat}.cycloneslider-template-blue .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-blue .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-blue .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-blue .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/blue/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-blue .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-blue .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/blue/images/bg-caption.png);color:#fff}.cycloneslider-template-blue .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-blue .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-blue .cycloneslider-slide iframe,.cycloneslider-template-blue .cycloneslider-slide object,.cycloneslider-template-blue .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
6
  /*** Template Default ***/
7
+ .cycloneslider-template-default img{display:block}.cycloneslider-template-default .cycloneslider-prev,.cycloneslider-template-default .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/default/images/sprite-arrows.png) no-repeat}.cycloneslider-template-default .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-default .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-default .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-default .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/default/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-default .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-default .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/default/images/bg-caption.png);color:#fff}.cycloneslider-template-default .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-default .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-default .cycloneslider-slide iframe,.cycloneslider-template-default .cycloneslider-slide object,.cycloneslider-template-default .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
8
  /*** Template Myrtle ***/
9
+ .cycloneslider-template-myrtle{overflow:hidden}.cycloneslider-template-myrtle .cycloneslider-prev,.cycloneslider-template-myrtle .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-19px;z-index:102;text-indent:-99999px;width:45px;height:45px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/myrtle/images/sprite-arrows.png) no-repeat}.cycloneslider-template-myrtle:hover .cycloneslider-prev,.cycloneslider-template-myrtle:hover .cycloneslider-next{display:block}.cycloneslider-template-myrtle .cycloneslider-prev{left:10px;background-position:-45px 0}.cycloneslider-template-myrtle .cycloneslider-next{right:10px;background-position:0 0}.cycloneslider-template-myrtle .cycloneslider-prev:hover{background-position:-45px -45px}.cycloneslider-template-myrtle .cycloneslider-next:hover{background-position:0 -45px}.cycloneslider-template-myrtle .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-myrtle .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/myrtle/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:12px;height:12px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-myrtle .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-myrtle .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/myrtle/images/bg-caption.png) right;color:#fff}.cycloneslider-template-myrtle .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:24px;line-height:1;margin-bottom:0;color:#e62b4e}.cycloneslider-template-myrtle .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px;color:#676761}.cycloneslider-template-myrtle .cycloneslider-slide iframe,.cycloneslider-template-myrtle .cycloneslider-slide object,.cycloneslider-template-myrtle .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
10
  /*** Template Thumbnails ***/
11
+ .cycloneslider-template-thumbnails img{display:block}.cycloneslider-template-thumbnails .cycloneslider-prev,.cycloneslider-template-thumbnails .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/thumbnails/images/sprite-arrows.png) no-repeat}.cycloneslider-template-thumbnails:hover .cycloneslider-prev,.cycloneslider-template-thumbnails:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-thumbnails .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-thumbnails .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-thumbnails .cycloneslider-prev:hover,.cycloneslider-template-thumbnails .cycloneslider-next:hover{opacity:1}.cycloneslider-template-thumbnails .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url(http://localhost/wp1/wp-content/plugins/cyclone-slider-2/templates/thumbnails/images/bg-caption.png);color:#fff}.cycloneslider-template-thumbnails .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-thumbnails .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-thumbnails.cycloneslider-thumbnails{padding:20px 0;text-align:center}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li{list-style:none inside;display:inline-block;width:30px;height:30px;margin:0 5px;border:5px solid #ccc;cursor:pointer;vertical-align:top}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li{zoom:1;*display:inline}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li.current{border-color:#333}.cycloneslider-template-thumbnails .cycloneslider-slide iframe,.cycloneslider-template-thumbnails .cycloneslider-slide object,.cycloneslider-template-thumbnails .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}.cycloneslider-template-thumbnails .thumb-custom{background:#ccc;width:30px;height:30px;line-height:30px;font-size:8px;color:#fefefe}.cycloneslider-template-thumbnails img{border-radius:0}
12
+ /*** Template Controls ***/
13
+ .cycloneslider-template-controls{margin-bottom:26px;padding:9px;border:1px solid #ddd;background:#f9f9f9;-webkit-box-shadow:0 0 2px 1px #ddd;box-shadow:0 0 2px 1px #ddd}.cycloneslider-template-controls img{display:block}.cycloneslider-template-controls .cycloneslider-controls{position:absolute;right:10px;bottom:-27px;z-index:102;padding:5px 0;height:16px;border-radius:0 0 5px 5px;background:#4c4c4c;background:-moz-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-o-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-ms-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:linear-gradient(to bottom,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4c4c4c',endColorstr='#131313',GradientType=0)}.cycloneslider-template-controls .cycloneslider-controls-inner{padding:0 20px}.cycloneslider-template-controls .cycloneslider-play-pause{display:block;float:right;margin:0 10px;width:14px;height:16px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/controls/images/sprite-controls.png) no-repeat -118px -3px;text-indent:-99999px;cursor:pointer}.cycloneslider-template-controls .cycloneslider-play-pause:hover{background-position:-118px -25px}.cycloneslider-template-controls .cycloneslider-play-pause.play{background-position:-61px -3px}.cycloneslider-template-controls .cycloneslider-play-pause.play:hover{background-position:-61px -25px}.cycloneslider-template-controls .cycloneslider-prev,.cycloneslider-template-controls .cycloneslider-next{display:block;float:right;width:18px;height:16px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/controls/images/sprite-controls.png) no-repeat;text-indent:-99999px}.cycloneslider-template-controls .cycloneslider-prev{background-position:-2px -3px;margin-left:7px}.cycloneslider-template-controls .cycloneslider-next{background-position:-173px -3px}.cycloneslider-template-controls .cycloneslider-prev:hover{background-position:-2px -25px}.cycloneslider-template-controls .cycloneslider-next:hover{background-position:-173px -25px}.cycloneslider-template-controls .cycloneslider-pager{float:right;height:16px;overflow:hidden}.cycloneslider-template-controls .cycloneslider-pager span{display:block;float:left;margin:0 3px;width:15px;height:16px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/controls/images/sprite-controls.png) no-repeat -235px -3px;text-indent:-99999px;font-size:0;line-height:0;opacity:.3}.cycloneslider-template-controls .cycloneslider-pager span.cycle-pager-active{background-position:-235px -25px;opacity:1}.cycloneslider-template-controls .cycloneslider-caption{position:absolute;bottom:0;left:10%;z-index:99;width:50%;height:40%;color:#fefefe}.cycloneslider-template-controls .cycloneslider-caption-title{display:inline-block;margin-bottom:5px;padding:10px 5px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/controls/images/bg-caption.png);text-transform:uppercase;font-size:20px;line-height:1}.cycloneslider-template-controls .cycloneslider-caption-description{padding:5px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/controls/images/bg-caption.png);font-size:12px;line-height:1.5}.cycloneslider-template-controls .cycloneslider-slide iframe,.cycloneslider-template-controls .cycloneslider-slide object,.cycloneslider-template-controls .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}@media(max-width:480px){.cycloneslider-template-controls .cycloneslider-controls{width:100%;right:0}.cycloneslider-template-controls .cycloneslider-next{margin-right:10px}.cycloneslider-template-controls .cycloneslider-caption{left:0;bottom:0;height:auto;width:100%}.cycloneslider-template-controls .cycloneslider-caption-title{display:block;margin-bottom:0}.cycloneslider-template-controls .cycloneslider-pager{max-width:50%;float:left}}
14
+ /*** Template Dos ***/
15
+ .cycloneslider-template-dos {
16
+ overflow:hidden;
17
+ }
18
+ .cycloneslider-template-dos .cycloneslider-slides{
19
+ overflow:hidden;
20
+ background:#000;
21
+ }
22
+ .cycloneslider-template-dos .cycloneslider-slide{
23
+ text-align:center;
24
+ }
25
+ .cycloneslider-template-dos .cycloneslider-slide img{
26
+ display:block;
27
+ margin:0 auto;
28
+ }
29
+ .cycloneslider-template-dos .cycloneslider-prev,
30
+ .cycloneslider-template-dos .cycloneslider-next{
31
+ display:none;
32
+ position:absolute;
33
+ top:50%;
34
+ margin-top:-15px;
35
+ z-index:102;
36
+ width:30px;
37
+ height:30px;
38
+ text-indent:-99999px;
39
+ opacity:0.5;
40
+ background: url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/dos/images/sprite-arrows.png) no-repeat;
41
+ }
42
+ .cycloneslider-template-dos:hover .cycloneslider-prev,
43
+ .cycloneslider-template-dos:hover .cycloneslider-next{
44
+ display:block;
45
+ -webkit-transition: all 0.5s ease;
46
+ -moz-transition: all 0.5s ease;
47
+ -ms-transition: all 0.5s ease;
48
+ -o-transition: all 0.5s ease;
49
+ transition: all 0.5s ease;
50
+ }
51
+ .cycloneslider-template-dos .cycloneslider-prev{
52
+ left:15px;
53
+ background-position:0 0;
54
+ }
55
+ .cycloneslider-template-dos .cycloneslider-next{
56
+ right:15px;
57
+ background-position:-30px 0;
58
+ }
59
+ .cycloneslider-template-dos .cycloneslider-prev:hover{
60
+ opacity:1;
61
+ }
62
+ .cycloneslider-template-dos .cycloneslider-next:hover{
63
+ opacity:1;
64
+ }
65
+ .cycloneslider-template-dos .cycloneslider-controls{
66
+ height:40px;
67
+ position:absolute;
68
+ bottom:0;
69
+ left:0;
70
+ width:100%;
71
+ z-index:900;
72
+ background: url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/dos/images/bg-controls.png) repeat-x top;
73
+ color:#BBBBBB;
74
+ font-size:11px;
75
+ font-family:sans-serif;
76
+ }
77
+ .cycloneslider-template-dos .cycloneslider-autoplay{
78
+ float:left;
79
+ width:29px;
80
+ height:40px;
81
+ cursor:pointer;
82
+ position:relative;
83
+ border-right:1px solid #000;
84
+ }
85
+ .cycloneslider-template-dos .cycloneslider-autoplay .cycloneslider-icon{
86
+ position:absolute;
87
+ left:50%;
88
+ top:50%;
89
+ margin-left:-4px;
90
+ margin-top:-6px;
91
+ width:8px;
92
+ height:12px;
93
+ background: url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/dos/images/sprite-play-pause.png) no-repeat top center;
94
+ }
95
+ .cycloneslider-template-dos .cycloneslider-autoplay.pause .cycloneslider-icon{
96
+ background-position: bottom center;
97
+ }
98
+ .cycloneslider-template-dos .cycloneslider-autoplay:hover{
99
+ background-color:#333;
100
+ }
101
+ .cycloneslider-template-dos .cycloneslider-thumbs{
102
+ position:absolute;
103
+ right:0;
104
+ top:0;
105
+ width:29px;
106
+ height:29px;
107
+ cursor:pointer;
108
+ background: url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/dos/images/dos-btn-thumbs.png) no-repeat 9px 10px;
109
+ }
110
+ .cycloneslider-template-dos .cycloneslider-thumbs:hover{
111
+ background-color:#333;
112
+ }
113
+ .cycloneslider-template-dos .cycloneslider-sep{
114
+ float:left;
115
+ width:2px;
116
+ height:29px;
117
+ background: url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/dos/images/dos-bg-sep.png) repeat-y;
118
+ }
119
+ .cycloneslider-template-dos .cycloneslider-sep-right{
120
+ float:none;
121
+ position:absolute;
122
+ right:29px;
123
+ top:0;
124
+ }
125
+ .cycloneslider-template-dos .cycloneslider-counter{
126
+ float:left;
127
+ height:40px;
128
+ line-height:40px;
129
+ padding:0 10px;
130
+ border-left:1px solid #333;
131
+ border-right:1px solid #000;
132
+ }
133
+ .cycloneslider-template-dos .cycloneslider-caption-title{
134
+ float:left;
135
+ padding:0 10px;
136
+ height:40px;
137
+ line-height:40px;
138
+ font-weight:bold;
139
+ color:#fff;
140
+ border-left:1px solid #333;
141
+ }
142
+ .cycloneslider-template-dos .cycloneslider-caption-description{
143
+ float:left;
144
+ padding-right:10px;
145
+ height:40px;
146
+ line-height:40px;
147
+ max-width:50%;
148
+ overflow:hidden;
149
+ white-space:nowrap;
150
+
151
+ }
152
+ .cycloneslider-template-dos .cycloneslider-pager{
153
+ position:absolute;
154
+ z-index:99;
155
+ top:20px;
156
+ right:20px;
157
+ }
158
+ .cycloneslider-template-dos .cycloneslider-pager a {
159
+ background: url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/dos/images/sprite-slide-nav.png) no-repeat scroll 0 0 transparent;
160
+ display: block;
161
+ float: left;
162
+ font-size: 0;
163
+ height: 8px;
164
+ line-height: 0;
165
+ margin-left: 5px;
166
+ text-indent: -99999px;
167
+ width: 8px;
168
+ }
169
+ .cycloneslider-template-dos .cycloneslider-pager a.activeSlide {
170
+ background-position: left bottom;
171
+ }
172
+ .cycloneslider-template-dos .cycloneslider-thumbnails{
173
+ position:absolute;
174
+ left:0;
175
+ bottom:-100px;
176
+ width:100%;
177
+ height:84px;
178
+ background:#222;
179
+ z-index:105;
180
+
181
+ }
182
+ .cycloneslider-template-dos .thumbnails-inner{
183
+ padding:10px 20px;
184
+ position:relative;
185
+ }
186
+ .cycloneslider-template-dos .thumbnails-carousel{
187
+ width:100%;
188
+ }
189
+ .cycloneslider-template-dos .thumbnails-carousel img{
190
+ float:left;
191
+ border:2px solid #000;
192
+ margin:0 3px;
193
+ cursor:pointer;
194
+ list-style:none;
195
+ padding:0;
196
+ }
197
+ .cycloneslider-template-dos .thumbnails-carousel img.current{
198
+ border-color:#ccc;
199
+ }
200
+
201
+ .cycloneslider-template-dos .carousel-prev,
202
+ .cycloneslider-template-dos .carousel-next{
203
+ position:absolute;
204
+ bottom:0;
205
+ color:#fff;
206
+ width:20px;
207
+ height:100%;
208
+ cursor:pointer;
209
+ background: url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/dos/images/dos-sprite-prevnext.png) no-repeat 8px center;
210
+ }
211
+ .cycloneslider-template-dos .carousel-prev{
212
+ left:0;
213
+ background-position:8px center;
214
+ }
215
+ .cycloneslider-template-dos .carousel-next{
216
+ right:0;
217
+ background-position:-72px center;
218
+ }
219
+ .cycloneslider-template-dos .carousel-prev.disabled,
220
+ .cycloneslider-template-dos .carousel-next.disabled{
221
+ display:none;
222
+ }
223
+
224
+
225
+ /*** Template Galleria ***/
226
+ .cycloneslider-template-galleria{overflow:hidden}.cycloneslider-template-galleria .cycloneslider-slides{overflow:hidden;background:#000}.cycloneslider-template-galleria .cycloneslider-slide{text-align:center}.cycloneslider-template-galleria .cycloneslider-slide img{display:block;margin:0 auto}.cycloneslider-template-galleria .cycloneslider-prev,.cycloneslider-template-galleria .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-18px;z-index:102;width:36px;height:36px;text-indent:-99999px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/galleria/images/galleria-sprite-arrows.png) no-repeat}.cycloneslider-template-galleria:hover .cycloneslider-prev,.cycloneslider-template-galleria:hover .cycloneslider-next{display:block}.cycloneslider-template-galleria .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-galleria .cycloneslider-next{right:10px;background-position:-36px 0}.cycloneslider-template-galleria .cycloneslider-prev:hover{background-position:0 -36px}.cycloneslider-template-galleria .cycloneslider-next:hover{background-position:-36px -36px}.cycloneslider-template-galleria .cycloneslider-controls{height:30px;position:relative;z-index:900;background:#fff url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/galleria/images/galleria-bg-bar.png) repeat-x bottom;color:#bbb;font-size:11px;font-family:sans-serif}.cycloneslider-template-galleria .cycloneslider-autoplay{float:left;width:29px;height:29px;cursor:pointer;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/galleria/images/galleria-sprite-play-pause.png) no-repeat 12px 10px}.cycloneslider-template-galleria .cycloneslider-autoplay.pause{background-position:11px -90px}.cycloneslider-template-galleria .cycloneslider-autoplay:hover{background-color:#333}.cycloneslider-template-galleria .cycloneslider-thumbs{position:absolute;right:0;top:0;width:29px;height:29px;cursor:pointer;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/galleria/images/galleria-btn-thumbs.png) no-repeat 9px 10px}.cycloneslider-template-galleria .cycloneslider-thumbs:hover{background-color:#333}.cycloneslider-template-galleria .cycloneslider-sep{float:left;width:2px;height:29px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/galleria/images/galleria-bg-sep.png) repeat-y}.cycloneslider-template-galleria .cycloneslider-sep-right{float:none;position:absolute;right:29px;top:0}.cycloneslider-template-galleria .cycloneslider-counter{float:left;height:29px;line-height:29px;padding:0 10px}.cycloneslider-template-galleria .cycloneslider-caption-title{float:left;padding:0 10px;height:29px;line-height:29px;font-weight:bold;color:#fff}.cycloneslider-template-galleria .cycloneslider-caption-description{float:left;padding-right:10px;height:29px;line-height:29px;max-width:50%;overflow:hidden;white-space:nowrap}.cycloneslider-template-galleria .cycloneslider-pager{position:absolute;z-index:99;top:20px;right:20px}.cycloneslider-template-galleria .cycloneslider-pager a{background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/galleria/images/sprite-slide-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;height:8px;line-height:0;margin-left:5px;text-indent:-99999px;width:8px}.cycloneslider-template-galleria .cycloneslider-pager a.activeSlide{background-position:left bottom}.cycloneslider-template-galleria .cycloneslider-thumbnails{position:absolute;left:0;bottom:-100px;width:100%;height:84px;background:#222;z-index:105}.cycloneslider-template-galleria .thumbnails-inner{padding:10px 20px;position:relative}.cycloneslider-template-galleria .thumbnails-carousel{width:100%}.cycloneslider-template-galleria .thumbnails-carousel img{float:left;border:2px solid #000;margin:0 3px;cursor:pointer;list-style:none;padding:0}.cycloneslider-template-galleria .thumbnails-carousel img.current{border-color:#ccc}.cycloneslider-template-galleria .carousel-prev,.cycloneslider-template-galleria .carousel-next{position:absolute;bottom:0;color:#fff;width:20px;height:100%;cursor:pointer;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/galleria/images/galleria-sprite-prevnext.png) no-repeat 8px center}.cycloneslider-template-galleria .carousel-prev{left:0;background-position:8px center}.cycloneslider-template-galleria .carousel-next{right:0;background-position:-72px center}.cycloneslider-template-galleria .carousel-prev.disabled,.cycloneslider-template-galleria .carousel-next.disabled{display:none}
227
+ /*** Template Lea ***/
228
+ .cycloneslider-template-lea{margin-bottom:70px;padding:9px;border:1px solid #ddd}.cycloneslider-template-lea .cycloneslider-slide{text-align:center}.cycloneslider-template-lea img{display:block;margin:0 auto}.cycloneslider-template-lea .cycloneslider-prev,.cycloneslider-template-lea .cycloneslider-next{position:absolute;top:50%;z-index:102;display:none;margin-top:-15px;width:30px;height:30px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/lea/images/sprite-arrows.png) no-repeat;text-indent:-99999px;opacity:.5}.cycloneslider-template-lea:hover .cycloneslider-prev,.cycloneslider-template-lea:hover .cycloneslider-next{display:block;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.cycloneslider-template-lea .cycloneslider-prev{left:15px;background-position:0 0}.cycloneslider-template-lea .cycloneslider-next{right:15px;background-position:-30px 0}.cycloneslider-template-lea .cycloneslider-prev:hover{opacity:1}.cycloneslider-template-lea .cycloneslider-next:hover{opacity:1}.cycloneslider-template-lea .cycloneslider-caption{position:absolute;bottom:0;left:55px;z-index:99;width:30%;height:100%;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/lea/images/bg-caption.png);color:#fff}.cycloneslider-template-lea .cycloneslider-caption-title{margin-bottom:0;padding:25px;font-size:20px;line-height:1}.cycloneslider-template-lea .cycloneslider-caption-description{padding:0 25px 25px 25px;font-size:12px;line-height:1.5}.cycloneslider-template-lea .cycloneslider-nav{position:absolute;bottom:-70px;left:0;z-index:105;width:100%;height:70px}.ie7 .cycloneslider-template-lea .cycloneslider-nav{bottom:0}.cycloneslider-template-lea .cycloneslider-nav-inner{overflow:hidden;padding:10px 20px;text-align:center}.cycloneslider-template-lea .cycloneslider-nav-carousel{margin:0 auto;min-height:50px;max-width:420px}.cycloneslider-template-lea .cycloneslider-nav-carousel img{display:block;margin:0 5px;border:5px solid #ccc;cursor:pointer}.cycloneslider-template-lea .cycloneslider-nav-carousel img.current{border-color:#333}.cycloneslider-template-lea .cycloneslider-carousel-prev,.cycloneslider-template-lea .cycloneslider-carousel-next{position:absolute;top:0;width:15px;height:100%;opacity:.5;cursor:pointer;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.cycloneslider-template-lea .cycloneslider-carousel-prev:hover,.cycloneslider-template-lea .cycloneslider-carousel-next:hover{opacity:1}.cycloneslider-template-lea .cycloneslider-carousel-prev .cycloneslider-icon,.cycloneslider-template-lea .cycloneslider-carousel-next .cycloneslider-icon{position:absolute;top:50%;left:3px;margin-top:-8px;width:9px;height:16px;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/lea/images/sprite-arrows-small.png) no-repeat}.cycloneslider-template-lea .cycloneslider-carousel-prev{left:0}.cycloneslider-template-lea .cycloneslider-carousel-prev .cycloneslider-icon{background-position:left top}.cycloneslider-template-lea .cycloneslider-carousel-next{right:0}.cycloneslider-template-lea .cycloneslider-carousel-next .cycloneslider-icon{background-position:right top}.cycloneslider-template-lea .cycloneslider-nav .disabled,.cycloneslider-template-lea .cycloneslider-nav .disabled{display:none}
229
+ /*** Template Text ***/
230
+ .cycloneslider-template-text img{display:block}.cycloneslider-template-text .cycloneslider-prev,.cycloneslider-template-text .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;background:#000;padding:3px 10px;color:#fff;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.cycloneslider-template-text:hover .cycloneslider-prev,.cycloneslider-template-text:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-text .cycloneslider-prev{left:0;border-radius:0 5px 5px 0}.cycloneslider-template-text .cycloneslider-next{right:0;border-radius:5px 0 0 5px}.cycloneslider-template-text .cycloneslider-prev:hover,.cycloneslider-template-text .cycloneslider-next:hover{opacity:1}.cycloneslider-template-text .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-text .cycloneslider-pager span{background:#000;color:#fff;display:block;float:left;margin-right:6px;padding:0 5px;font-size:12px;opacity:.6;border-radius:3px;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.cycloneslider-template-text .cycloneslider-pager span.cycle-pager-active{background:#fff;color:#000}.cycloneslider-template-text .cycloneslider-pager span:hover{opacity:1}.cycloneslider-template-text .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:#000;color:#fff;opacity:.6}.cycloneslider-template-text .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-text .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}
231
+ /*** Template Uno ***/
232
+ .cycloneslider-template-uno{margin-bottom:30px;padding:9px;border:1px solid #ddd}.cycloneslider-template-uno img{display:block}.cycloneslider-template-uno .cycloneslider-prev,.cycloneslider-template-uno .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-15px;z-index:102;width:30px;height:30px;text-indent:-99999px;opacity:.5;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/uno/images/sprite-arrows.png) no-repeat}.cycloneslider-template-uno:hover .cycloneslider-prev,.cycloneslider-template-uno:hover .cycloneslider-next{display:block;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.cycloneslider-template-uno .cycloneslider-prev{left:15px;background-position:0 0}.cycloneslider-template-uno .cycloneslider-next{right:15px;background-position:-30px 0}.cycloneslider-template-uno .cycloneslider-prev:hover{opacity:1}.cycloneslider-template-uno .cycloneslider-next:hover{opacity:1}.cycloneslider-template-uno .cycloneslider-pager{position:absolute;z-index:200;bottom:-20px;left:50%}.cycloneslider-template-uno .cycloneslider-pager span{background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/uno/images/sprite-nav.png) no-repeat;display:block;font-size:0;width:10px;height:10px;line-height:0;margin:0 6px;text-indent:-99999px;float:left}.cycloneslider-template-uno .cycloneslider-pager span.cycle-pager-active{background-position:0 -14px}.cycloneslider-template-uno .cycloneslider-caption{position:absolute;right:50px;bottom:0;width:25%;height:100%;z-index:99;background:url(http://localhost/wp1/wp-content/themes/twentytwelve/cycloneslider/uno/images/bg-caption.png);color:#fff}.cycloneslider-template-uno .cycloneslider-caption-title{padding:25px;font-size:20px;line-height:1;margin-bottom:0}.cycloneslider-template-uno .cycloneslider-caption-description{padding:0 25px 25px 25px;line-height:1.5;font-size:12px}
cyclone-slider.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: Cyclone Slider 2
4
  Plugin URI: http://www.codefleet.net/cyclone-slider-2/
5
  Description: Create responsive slideshows with ease. Built for both developers and non-developers.
6
- Version: 2.2.5
7
  Author: Nico Amarilla
8
  Author URI: http://www.codefleet.net/
9
  License:
10
 
11
- Copyright 2012 (kosinix@codefleet.net)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
@@ -32,131 +32,13 @@ if(!defined('CYCLONE_URL')){
32
  }
33
 
34
  require_once(CYCLONE_PATH.'inc/class-cyclone-slider.php');
 
35
  require_once(CYCLONE_PATH.'inc/class-cyclone-slider-widget.php');
36
  require_once(CYCLONE_PATH.'inc/class-image-resizer.php');
37
  require_once(CYCLONE_PATH.'inc/class-nextgen-integration.php');
38
 
 
 
39
  if(class_exists('Cyclone_Slider')):
40
  $cyclone_slider_plugin_instance = new Cyclone_Slider(); //Store the plugin instance to a global object so that other plugins can use remove_action and remove_filter against cyclones class functions if needed.
41
  endif;
42
-
43
- /**
44
- * Thumbnailer
45
- *
46
- * Creates thumbnail of the slide image using the specified attachment ID, width and height
47
- *
48
- *
49
- * @param int $original_attachment_id Attachment ID.
50
- * @param int $width Width of thumbnail in pixels.
51
- * @param int $height Height of thumbnail in pixels.
52
- * @param bool $refresh Recreate thumbnail if it already exists if set to true. Default to false, will not recreate thumbnails if it already exist.
53
- * @return string The url to the thumbnail. False on failure.
54
- */
55
- function cycloneslider_thumb( $original_attachment_id, $width, $height, $refresh = false, $slide_meta = array(), $option="auto" ){
56
- $dir = wp_upload_dir();
57
-
58
- // Get full path to the slide image
59
- $image_path = get_attached_file($original_attachment_id);
60
- $image_path = apply_filters('cycloneslider_image_path', $image_path, $slide_meta);
61
- if(empty($image_path)){
62
- return false;
63
- }
64
-
65
- // Full url to the slide image
66
- $image_url = wp_get_attachment_url($original_attachment_id);
67
- $image_url = apply_filters('cycloneslider_image_url', $image_url, $slide_meta);
68
- if(empty($image_url)){
69
- return false;
70
- }
71
-
72
- // If image width and height is the same as slideshow, do not resize
73
- $image_dimensions = wp_get_attachment_image_src($original_attachment_id, 'full');
74
- if($image_dimensions[1] == $width and $image_dimensions[2] == $height){
75
- return $image_url;
76
- }
77
-
78
- // Resize
79
- $info = pathinfo($image_path);
80
- $dirname = isset($info['dirname']) ? $info['dirname'] : ''; // Path to directory
81
- $ext = isset($info['extension']) ? $info['extension'] : ''; // File extension Eg. "jpg"
82
- $thumb = wp_basename($image_path, ".$ext")."-{$width}x{$height}.{$ext}"; // Thumbname. Eg. [imagename]-[width]x[height].hpg
83
-
84
- // Check if thumb already exists. If it is, return its url, unless refresh is true
85
- if(file_exists($dirname.'/'.$thumb ) and !$refresh){
86
- return dirname($image_url).'/'.$thumb; //We used dirname() since we need the URL format not the path
87
- }
88
-
89
- $resizeObj = new Image_Resizer($image_path);
90
- $resizeObj -> resizeImage($width, $height, $option);
91
- $resizeObj -> saveImage($dirname.'/'.$thumb, 90);
92
-
93
- return dirname($image_url).'/'.$thumb;
94
- }
95
-
96
- /**
97
- * Cycle Settings Printer
98
- *
99
- * Prints out cycle slideshow settings in templates
100
- *
101
- *
102
- * @param array $slider_settings Slider settings array.
103
- * @param string $slider_id HTML ID of slideshow.
104
- * @param int $slider_count Current slideshow count.
105
- * @return string Data attributes for slideshow.
106
- */
107
- function cycloneslider_settings($slider_settings, $slider_id='', $slider_count=1){
108
- $out = ' data-cycle-slides="> div"';
109
- $out .= ' data-cycle-auto-height="'.$slider_settings['width'].':'.$slider_settings['height'].'"';
110
- $out .= ' data-cycle-fx="'.$slider_settings['fx'].'"';
111
- $out .= ' data-cycle-speed="'.$slider_settings['speed'].'"';
112
- $out .= ' data-cycle-timeout="'.$slider_settings['timeout'].'"';
113
- $out .= ' data-cycle-pause-on-hover="'.$slider_settings['hover_pause'].'"';
114
- $out .= ' data-cycle-pager="#cycloneslider-'.$slider_id.' .cycloneslider-pager"';
115
- $out .= ' data-cycle-prev="#cycloneslider-'.$slider_id.' .cycloneslider-prev"';
116
- $out .= ' data-cycle-next="#cycloneslider-'.$slider_id.' .cycloneslider-next"';
117
- $out .= ' data-cycle-tile-count="'.$slider_settings['tile_count'].'"';
118
- $out .= ' data-cycle-tile-delay="'.$slider_settings['tile_delay'].'"';
119
- $out .= ' data-cycle-tile-vertical="'.$slider_settings['tile_vertical'].'"';
120
- $out .= ' data-cycle-log="false"';
121
- $out = apply_filters('cycloneslider_cycle_settings', $out);
122
- return $out;
123
- }
124
-
125
- /**
126
- * Cycle Slide Settings Printer
127
- *
128
- * Prints out cycle slide settings in templates
129
- *
130
- *
131
- * @param array $slider_meta Slide settings array.
132
- * @param array $slider_settings Slider settings array.
133
- * @param string $slider_id HTML ID of slideshow.
134
- * @param int $slider_count Current slideshow count.
135
- * @return string Data attributes for slide.
136
- */
137
- function cycloneslider_slide_settings($slider_meta, $slider_settings=array(), $slider_id='', $slider_count=1){
138
- $out = '';
139
- if(empty($slider_meta['enable_slide_effects'])){
140
- return $out;
141
- }
142
- if($slider_meta['fx']!='default') {
143
- $out .= ' data-cycle-fx="'.$slider_meta['fx'].'"';
144
- }
145
- if(!empty($slider_meta['speed'])) {
146
- $out .= ' data-cycle-speed="'.$slider_meta['speed'].'"';
147
- }
148
- if(!empty($slider_meta['timeout'])) {
149
- $out .= ' data-cycle-timeout="'.$slider_meta['timeout'].'"';
150
- }
151
- if($slider_meta['fx']=='tileBlind' or $slider_meta['fx']=='tileSlide'){
152
- if(!empty($slider_meta['tile_count'])) {
153
- $out .= ' data-cycle-tile-count="'.$slider_meta['tile_count'].'"';
154
- }
155
- if(!empty($slider_meta['tile_delay'])) {
156
- $out .= ' data-cycle-tile-delay="'.$slider_meta['tile_delay'].'"';
157
- }
158
- $out .= ' data-cycle-tile-vertical="'.$slider_meta['tile_vertical'].'"';
159
- }
160
- $out = apply_filters('cycloneslider_cycle_slide_settings', $out);
161
- return $out;
162
- }
3
  Plugin Name: Cyclone Slider 2
4
  Plugin URI: http://www.codefleet.net/cyclone-slider-2/
5
  Description: Create responsive slideshows with ease. Built for both developers and non-developers.
6
+ Version: 2.5.0
7
  Author: Nico Amarilla
8
  Author URI: http://www.codefleet.net/
9
  License:
10
 
11
+ Copyright 2013 (kosinix@codefleet.net)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
32
  }
33
 
34
  require_once(CYCLONE_PATH.'inc/class-cyclone-slider.php');
35
+ require_once(CYCLONE_PATH.'inc/functions.php');
36
  require_once(CYCLONE_PATH.'inc/class-cyclone-slider-widget.php');
37
  require_once(CYCLONE_PATH.'inc/class-image-resizer.php');
38
  require_once(CYCLONE_PATH.'inc/class-nextgen-integration.php');
39
 
40
+ $cyclone_slider_saved_done = false; //Global variable to limit save_post execution to only once
41
+
42
  if(class_exists('Cyclone_Slider')):
43
  $cyclone_slider_plugin_instance = new Cyclone_Slider(); //Store the plugin instance to a global object so that other plugins can use remove_action and remove_filter against cyclones class functions if needed.
44
  endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
images/glyphicons-halflings.png ADDED
Binary file
images/loader.gif ADDED
Binary file
inc/admin-parts/box.php CHANGED
@@ -1,84 +1,100 @@
1
  <?php if(!defined('CYCLONE_PATH')) die('Direct access denied.'); ?>
2
- <div class="cycloneslider-box">
3
- <div class="cycloneslider-box-title ui-state-default">
4
- <span class="cycloneslider-box-title-left">
 
 
 
 
 
 
 
 
 
5
  <?php echo $box_title; ?>
6
  </span>
7
- <span class="cycloneslider-box-title-right">
8
- <span class="cycloneslider-box-drag" title="<?php _e('Drag', 'cycloneslider'); ?>"><?php _e('Drag', 'cycloneslider'); ?></span>
9
- <span class="cycloneslider-box-toggle" title="<?php _e('Toggle', 'cycloneslider'); ?>"><?php _e('Toggle', 'cycloneslider'); ?></span>
10
- <span class="cycloneslider-box-delete" title="<?php _e('Delete', 'cycloneslider'); ?>"><?php _e('Delete', 'cycloneslider'); ?></span>
11
  </span>
12
  <div class="clear"></div>
13
  </div>
14
- <div class="cycloneslider-box-body">
15
- <div class="cycloneslider-body-left">
16
- <img class="cycloneslider-slide-thumb" src="<?php echo esc_url($image_url); ?>" alt="" />
17
- <input class="cycloneslider-slide-meta-id" name="cycloneslider_metas[<?php echo $i; ?>][id]" type="hidden" value="<?php echo esc_attr($slider_meta['id']); ?>" />
18
- <input class="cycloneslider-slide-meta-type" name="cycloneslider_metas[<?php echo $i; ?>][type]" type="hidden" value="<?php echo esc_attr($slider_meta['type']); ?>" />
19
- <input class="button-secondary cycloneslider-upload-button" type="button" value="<?php _e('Get Image', 'cycloneslider'); ?>" />
 
20
  </div>
21
- <div class="cycloneslider-body-right">
22
- <p class="cycloneslider-sub-title"><?php _e('Slide Elements:', 'cycloneslider'); ?></p>
23
- <div class="cycloneslider-slide-metas">
24
- <div class="cycloneslider-meta-field">
25
- <div class="cycloneslider-field-title first">
26
- <?php _e('Slide Link', 'cycloneslider'); ?>
27
- </div>
28
- <div class="cycloneslider-field-body">
29
- <label for=""><?php _e('Link:', 'cycloneslider'); ?></label>
30
- <input class="widefat cycloneslider-slide-meta-link" name="cycloneslider_metas[<?php echo $i; ?>][link]" type="text" value="<?php echo esc_url($slider_meta['link']); ?>" />
31
- <label for=""><?php _e('Open Link in:', 'cycloneslider'); ?></label>
32
- <select id="" name="cycloneslider_metas[<?php echo $i; ?>][link_target]">
33
- <option <?php echo ('_self'==$slider_meta['link_target']) ? 'selected="selected"' : ''; ?> value="_self"><?php _e('Same Window', 'cycloneslider'); ?></option>
34
- <option <?php echo ('_blank'==$slider_meta['link_target']) ? 'selected="selected"' : ''; ?> value="_blank"><?php _e('New Tab or Window', 'cycloneslider'); ?></option>
35
- </select>
36
- </div>
37
- </div>
38
- <div class="cycloneslider-meta-field">
39
- <div class="cycloneslider-field-title">
40
- <?php _e('Title', 'cycloneslider'); ?>
41
- </div>
42
- <div class="cycloneslider-field-body">
43
- <input class="widefat cycloneslider-slide-meta-title" name="cycloneslider_metas[<?php echo $i; ?>][title]" type="text" value="<?php echo esc_attr($slider_meta['title']); ?>" />
44
- </div>
45
- </div>
46
- <div class="cycloneslider-meta-field">
47
- <div class="cycloneslider-field-title">
48
- <?php _e('Description', 'cycloneslider'); ?>
49
- </div>
50
- <div class="cycloneslider-field-body">
51
- <textarea class="widefat cycloneslider-slide-meta-description" name="cycloneslider_metas[<?php echo $i; ?>][description]"><?php echo esc_html($slider_meta['description']); ?></textarea>
52
- </div>
53
  </div>
 
 
54
  </div>
55
- <p class="cycloneslider-sub-title"><?php _e('Image Properties:', 'cycloneslider'); ?></p>
56
- <div class="cycloneslider-slide-metas">
57
- <div class="cycloneslider-meta-field">
58
- <div class="cycloneslider-field-title first">
59
- <?php _e('Alternate Text', 'cycloneslider'); ?>
60
- </div>
61
- <div class="cycloneslider-field-body">
62
- <input class="widefat cycloneslider-slide-meta-alt" name="cycloneslider_metas[<?php echo $i; ?>][img_alt]" type="text" value="<?php echo esc_attr($slider_meta['img_alt']); ?>" />
 
 
 
 
 
 
 
 
63
  </div>
64
  </div>
65
- <div class="cycloneslider-meta-field">
66
- <div class="cycloneslider-field-title">
67
- <?php _e('Title Text', 'cycloneslider'); ?>
 
 
 
68
  </div>
69
- <div class="cycloneslider-field-body">
70
- <input class="widefat cycloneslider-slide-meta-title" name="cycloneslider_metas[<?php echo $i; ?>][img_title]" type="text" value="<?php echo esc_attr($slider_meta['img_title']); ?>" />
 
 
 
 
 
71
  </div>
72
  </div>
73
- </div>
74
 
75
- <p class="cycloneslider-sub-title"><?php _e('Slide Properties:', 'cycloneslider'); ?></p>
76
- <div class="cycloneslider-slide-metas">
77
- <div class="cycloneslider-meta-field">
78
- <div class="cycloneslider-field-title first">
79
- <?php _e('Slide Effects', 'cycloneslider'); ?>
 
 
 
 
 
 
80
  </div>
81
- <div class="cycloneslider-field-body">
 
 
 
82
 
83
  <select id="" class="cycloneslider_metas_enable_slide_effects" name="cycloneslider_metas[<?php echo $i; ?>][enable_slide_effects]">
84
  <option <?php echo (0==$slider_meta['enable_slide_effects']) ? 'selected="selected"' : ''; ?> value="0"><?php _e('Disable', 'cycloneslider'); ?></option>
@@ -87,47 +103,96 @@
87
 
88
  <div class="clear"></div>
89
 
90
- <label for=""><?php _e('Transition Effects:', 'cycloneslider'); ?></label>
91
- <select id="" class="cycloneslider_metas_fx" name="cycloneslider_metas[<?php echo $i; ?>][fx]">
92
- <option value="default">Default</option>
93
- <?php foreach($this->effects as $value=>$name): ?>
94
- <option value="<?php echo $value; ?>" <?php echo ($slider_meta['fx']==$value) ? 'selected="selected"' : ''; ?>><?php echo $name; ?></option>
95
- <?php endforeach; ?>
96
- </select>
97
- <div class="cycloneslider-spacer-15"></div>
 
 
98
 
99
- <label for=""><?php _e('Transition Effects Speed:', 'cycloneslider'); ?></label>
100
- <input class="widefat cycloneslider-slide-meta-speed" name="cycloneslider_metas[<?php echo $i; ?>][speed]" type="text" value="<?php esc_attr_e(@$slider_meta['speed']); ?>" />
101
- <span class="note"> <?php _e('Milliseconds', 'cycloneslider'); ?></span>
102
- <div class="cycloneslider-spacer-15"></div>
 
 
103
 
104
- <label for=""><?php _e('Next Slide Delay:', 'cycloneslider'); ?></label>
105
- <input class="widefat cycloneslider-slide-meta-timeout" name="cycloneslider_metas[<?php echo $i; ?>][timeout]" type="text" value="<?php esc_attr_e(@$slider_meta['timeout']); ?>" />
106
- <span class="note"> <?php _e('Milliseconds', 'cycloneslider'); ?></span>
 
 
 
107
 
108
 
109
  <div class="cycloneslider-slide-tile-properties">
110
- <div class="cycloneslider-spacer-15"></div>
111
- <label for=""><?php _e('Tile Count:', 'cycloneslider'); ?></label>
112
- <input class="widefat cycloneslider-slide-meta-tile-count" name="cycloneslider_metas[<?php echo $i; ?>][tile_count]" type="text" value="<?php esc_attr_e(@$slider_meta['tile_count']); ?>" />
113
- <span class="note"> <?php _e('The number of tiles to use in the transition.', 'cycloneslider'); ?></span>
114
- <div class="cycloneslider-spacer-15"></div>
 
 
115
  <!--
116
  <label for=""><?php _e('Tile Delay:', 'cycloneslider'); ?></label>
117
  <input class="widefat cycloneslider-slide-meta-tile-delay" name="cycloneslider_metas[<?php echo $i; ?>][tile_delay]" type="text" value="<?php esc_attr_e(@$slider_meta['tile_delay']); ?>" />
118
  <span class="note"> <?php _e('Milliseconds to delay each individual tile transition.', 'cycloneslider'); ?></span>
119
  <div class="cycloneslider-spacer-15"></div>
120
  -->
121
- <label for=""><?php _e('Tile Position:', 'cycloneslider'); ?></label>
122
- <select id="" name="cycloneslider_metas[<?php echo $i; ?>][tile_vertical]">
123
- <option <?php echo ('true'==$slider_meta['tile_vertical']) ? 'selected="selected"' : ''; ?> value="true"><?php _e('Vertical', 'cycloneslider'); ?></option>
124
- <option <?php echo ('false'==$slider_meta['tile_vertical']) ? 'selected="selected"' : ''; ?> value="false"><?php _e('Horizontal', 'cycloneslider'); ?></option>
125
- </select>
 
 
 
126
  </div>
127
-
128
  </div>
129
  </div>
130
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  </div>
132
  <div class="clear"></div>
133
  </div>
1
  <?php if(!defined('CYCLONE_PATH')) die('Direct access denied.'); ?>
2
+ <div class="cs-slide">
3
+ <div class="cs-header">
4
+ <span class="cs-icon">
5
+ <?php if ('custom'==$slider_meta['type']) : ?>
6
+ <i class="icon-font"></i>
7
+ <?php elseif ('video'==$slider_meta['type']) : ?>
8
+ <i class="icon-film"></i>
9
+ <?php else: ?>
10
+ <i class="icon-picture"></i>
11
+ <?php endif; ?>
12
+ </span>
13
+ <span class="cs-title">
14
  <?php echo $box_title; ?>
15
  </span>
16
+ <span class="cs-controls">
17
+ <span class="cs-drag" title="<?php _e('Drag', 'cycloneslider'); ?>"><?php _e('Drag', 'cycloneslider'); ?></span>
18
+ <span class="cs-toggle" title="<?php _e('Toggle', 'cycloneslider'); ?>"><?php _e('Toggle', 'cycloneslider'); ?></span>
19
+ <span class="cs-delete" title="<?php _e('Delete', 'cycloneslider'); ?>"><?php _e('Delete', 'cycloneslider'); ?></span>
20
  </span>
21
  <div class="clear"></div>
22
  </div>
23
+ <div class="cs-body">
24
+ <div class="cs-slide-type-bar">
25
+ <select class="cs-slide-type-switcher" name="cycloneslider_metas[<?php echo $i; ?>][type]">
26
+ <option value="image" <?php echo ('image'==$slider_meta['type']) ? 'selected="selected"' : ''; ?>><?php _e('Image', 'cycloneslider'); ?></option>
27
+ <option value="video" <?php echo ('video'==$slider_meta['type']) ? 'selected="selected"' : ''; ?>><?php _e('Video', 'cycloneslider'); ?></option>
28
+ <option value="custom" <?php echo ('custom'==$slider_meta['type']) ? 'selected="selected"' : ''; ?>><?php _e('Custom', 'cycloneslider'); ?></option>
29
+ </select>
30
  </div>
31
+ <?php
32
+ if($this->debug){
33
+ self::debug($slider_meta);
34
+ }
35
+ ?>
36
+ <div class="clear"></div>
37
+ <div class="cs-image">
38
+ <div class="cs-image-preview">
39
+ <div class="cs-image-thumb" <?php echo (empty($image_url)) ? 'style="display:none"' : '';?>>
40
+ <?php if($image_url): ?>
41
+ <img src="<?php echo esc_url($image_url); ?>" alt="thumb">
42
+ <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  </div>
44
+ <input class="cs-image-id" name="cycloneslider_metas[<?php echo $i; ?>][id]" type="hidden" value="<?php echo esc_attr($slider_meta['id']); ?>" />
45
+ <input class="button-secondary cs-media-gallery-show" type="button" value="<?php _e('Get Image', 'cycloneslider'); ?>" />
46
  </div>
47
+ <div class="cs-image-settings">
48
+ <p class="expandable-group-title first"><?php _e('Slide Properties:', 'cycloneslider'); ?></p>
49
+ <div class="expandable-box">
50
+ <div class="expandable-header first"><?php _e('Link', 'cycloneslider'); ?></div>
51
+ <div class="expandable-body">
52
+ <div class="field">
53
+ <label for=""><?php _e('Link URL:', 'cycloneslider'); ?></label> <br>
54
+ <input class="widefat" name="cycloneslider_metas[<?php echo $i; ?>][link]" type="text" value="<?php echo esc_url($slider_meta['link']); ?>" />
55
+ </div>
56
+ <div class="field last">
57
+ <label for=""><?php _e('Open Link in:', 'cycloneslider'); ?></label> <br>
58
+ <select id="" name="cycloneslider_metas[<?php echo $i; ?>][link_target]">
59
+ <option <?php echo ('_self'==$slider_meta['link_target']) ? 'selected="selected"' : ''; ?> value="_self"><?php _e('Same Window', 'cycloneslider'); ?></option>
60
+ <option <?php echo ('_blank'==$slider_meta['link_target']) ? 'selected="selected"' : ''; ?> value="_blank"><?php _e('New Tab or Window', 'cycloneslider'); ?></option>
61
+ </select>
62
+ </div>
63
  </div>
64
  </div>
65
+ <div class="expandable-box">
66
+ <div class="expandable-header"><?php _e('Title', 'cycloneslider'); ?></div>
67
+ <div class="expandable-body">
68
+ <div class="field last">
69
+ <input class="widefat cycloneslider-slide-meta-title" name="cycloneslider_metas[<?php echo $i; ?>][title]" type="text" value="<?php echo esc_attr($slider_meta['title']); ?>" />
70
+ </div>
71
  </div>
72
+ </div>
73
+ <div class="expandable-box">
74
+ <div class="expandable-header"><?php _e('Description', 'cycloneslider'); ?></div>
75
+ <div class="expandable-body">
76
+ <div class="field last">
77
+ <textarea class="widefat cycloneslider-slide-meta-description" name="cycloneslider_metas[<?php echo $i; ?>][description]"><?php echo esc_html($slider_meta['description']); ?></textarea>
78
+ </div>
79
  </div>
80
  </div>
 
81
 
82
+ <div class="expandable-box">
83
+ <div class="expandable-header"><?php _e('Image Attributes', 'cycloneslider'); ?></div>
84
+ <div class="expandable-body">
85
+ <div class="field">
86
+ <label for=""><?php _e('Alternate Text:', 'cycloneslider'); ?></label> <br>
87
+ <input class="widefat cycloneslider-slide-meta-alt" name="cycloneslider_metas[<?php echo $i; ?>][img_alt]" type="text" value="<?php echo esc_attr($slider_meta['img_alt']); ?>" />
88
+ </div>
89
+ <div class="field last">
90
+ <label for=""><?php _e('Title Text:', 'cycloneslider'); ?></label> <br>
91
+ <input class="widefat cycloneslider-slide-meta-title" name="cycloneslider_metas[<?php echo $i; ?>][img_title]" type="text" value="<?php echo esc_attr($slider_meta['img_title']); ?>" />
92
+ </div>
93
  </div>
94
+ </div>
95
+ <div class="expandable-box last">
96
+ <div class="expandable-header"><?php _e('Slide Transition Effects', 'cycloneslider'); ?></div>
97
+ <div class="expandable-body">
98
 
99
  <select id="" class="cycloneslider_metas_enable_slide_effects" name="cycloneslider_metas[<?php echo $i; ?>][enable_slide_effects]">
100
  <option <?php echo (0==$slider_meta['enable_slide_effects']) ? 'selected="selected"' : ''; ?> value="0"><?php _e('Disable', 'cycloneslider'); ?></option>
103
 
104
  <div class="clear"></div>
105
 
106
+ <div class="field field-inline">
107
+ <label for=""><?php _e('Transition Effects:', 'cycloneslider'); ?></label>
108
+ <select id="" class="cycloneslider_metas_fx" name="cycloneslider_metas[<?php echo $i; ?>][fx]">
109
+ <option value="default">Default</option>
110
+ <?php foreach($this->effects as $value=>$name): ?>
111
+ <option value="<?php echo $value; ?>" <?php echo ($slider_meta['fx']==$value) ? 'selected="selected"' : ''; ?>><?php echo $name; ?></option>
112
+ <?php endforeach; ?>
113
+ </select>
114
+ <div class="clear"></div>
115
+ </div>
116
 
117
+ <div class="field field-inline">
118
+ <label for=""><?php _e('Transition Effects Speed:', 'cycloneslider'); ?></label>
119
+ <input class="widefat cycloneslider-slide-meta-speed" name="cycloneslider_metas[<?php echo $i; ?>][speed]" type="number" value="<?php esc_attr_e(@$slider_meta['speed']); ?>" />
120
+ <span class="note"> <?php _e('Milliseconds', 'cycloneslider'); ?></span>
121
+ <div class="clear"></div>
122
+ </div>
123
 
124
+ <div class="field field-inline">
125
+ <label for=""><?php _e('Next Slide Delay:', 'cycloneslider'); ?></label>
126
+ <input class="widefat cycloneslider-slide-meta-timeout" name="cycloneslider_metas[<?php echo $i; ?>][timeout]" type="number" value="<?php esc_attr_e(@$slider_meta['timeout']); ?>" />
127
+ <span class="note"> <?php _e('Milliseconds', 'cycloneslider'); ?></span>
128
+ <div class="clear"></div>
129
+ </div>
130
 
131
 
132
  <div class="cycloneslider-slide-tile-properties">
133
+
134
+ <div class="field field-inline">
135
+ <label for=""><?php _e('Tile Count:', 'cycloneslider'); ?></label>
136
+ <input class="widefat cycloneslider-slide-meta-tile-count" name="cycloneslider_metas[<?php echo $i; ?>][tile_count]" type="number" value="<?php esc_attr_e(@$slider_meta['tile_count']); ?>" />
137
+ <span class="note"> <?php _e('The number of tiles to use in the transition.', 'cycloneslider'); ?></span>
138
+ <div class="clear"></div>
139
+ </div>
140
  <!--
141
  <label for=""><?php _e('Tile Delay:', 'cycloneslider'); ?></label>
142
  <input class="widefat cycloneslider-slide-meta-tile-delay" name="cycloneslider_metas[<?php echo $i; ?>][tile_delay]" type="text" value="<?php esc_attr_e(@$slider_meta['tile_delay']); ?>" />
143
  <span class="note"> <?php _e('Milliseconds to delay each individual tile transition.', 'cycloneslider'); ?></span>
144
  <div class="cycloneslider-spacer-15"></div>
145
  -->
146
+ <div class="field field-inline">
147
+ <label for=""><?php _e('Tile Position:', 'cycloneslider'); ?></label>
148
+ <select id="" name="cycloneslider_metas[<?php echo $i; ?>][tile_vertical]">
149
+ <option <?php echo ('true'==$slider_meta['tile_vertical']) ? 'selected="selected"' : ''; ?> value="true"><?php _e('Vertical', 'cycloneslider'); ?></option>
150
+ <option <?php echo ('false'==$slider_meta['tile_vertical']) ? 'selected="selected"' : ''; ?> value="false"><?php _e('Horizontal', 'cycloneslider'); ?></option>
151
+ </select>
152
+ <div class="clear"></div>
153
+ </div>
154
  </div>
 
155
  </div>
156
  </div>
157
  </div>
158
+ <div class="clear"></div>
159
+ </div>
160
+ <div class="cs-video">
161
+ <div class="cs-video-preview">
162
+ <div class="cs-video-thumb" <?php echo (empty($slider_meta['video_thumb'])) ? 'style="display:none"' : '';?>>
163
+ <?php if($slider_meta['video_thumb']): ?>
164
+ <img src="<?php echo esc_url($slider_meta['video_thumb']); ?>" alt="thumb">
165
+ <?php endif; ?>
166
+ </div>
167
+
168
+ <div class="field">
169
+ <input class="widefat cs-video-thumb-url" name="cycloneslider_metas[<?php echo $i; ?>][video_thumb]" type="hidden" value="<?php echo esc_attr($slider_meta['video_thumb']); ?>" />
170
+ <label for=""><?php _e('Video URL:', 'cycloneslider'); ?></label>
171
+ <input class="widefat cs-video-url" name="cycloneslider_metas[<?php echo $i; ?>][video_url]" type="text" value="<?php esc_attr_e($slider_meta['video_url']); ?>" />
172
+ <span class="note"><?php _e('Copy and paste a Youtube or Vimeo URL and hit the Get Video button.', 'cycloneslider'); ?></span>
173
+ <div class="clear"></div>
174
+ </div>
175
+ <div class="field last">
176
+ <input class="button-secondary cs-button-update cs-video-get" type="button" value="<?php _e('Get Video', 'cycloneslider'); ?>" />
177
+ </div>
178
+ </div>
179
+ <div class="cs-video-settings">
180
+ <div class="field last">
181
+ <label for=""><?php _e('Embed Code', 'cycloneslider'); ?></label>
182
+ <textarea class="widefat cs-video-embed" rows="10" name="cycloneslider_metas[<?php echo $i; ?>][video]"><?php echo esc_textarea($slider_meta['video']); ?></textarea>
183
+ <span class="note"><?php _e('You can place your embed code directly here. Or you can use the Get Video button to generate the embed code.', 'cycloneslider'); ?></span>
184
+ <br><br>
185
+ <span class="note"><?php _e('<strong>Note:</strong> The Slide Properties and Tile effects are not supported for videos.', 'cycloneslider'); ?></span>
186
+ <br>
187
+ <span class="note"><?php _e('<strong>Note:</strong> Append &wmode=transparent to the embed code src attribute to make HTML elements appear on top of Flash.', 'cycloneslider'); ?></span>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ <div class="cs-custom">
192
+ <div class="field last">
193
+ <label for=""><?php _e('Custom HTML', 'cycloneslider'); ?></label>
194
+ <textarea class="widefat cs-custom-html" name="cycloneslider_metas[<?php echo $i; ?>][custom]"><?php echo esc_textarea($slider_meta['custom']); ?></textarea>
195
+ </div>
196
  </div>
197
  <div class="clear"></div>
198
  </div>
inc/admin-parts/slider-properties.php CHANGED
@@ -10,7 +10,7 @@
10
  </div>
11
  <div class="cycloneslider-field cycloneslider-field-tile-properties">
12
  <label for="cycloneslider_settings_tile_count"><?php _e('Tile Count:', 'cycloneslider'); ?> </label>
13
- <input id="cycloneslider_settings_tile_count" type="text" name="cycloneslider_settings[tile_count]" value="<?php echo esc_attr($slider_settings['tile_count']); ?>" />
14
  <span class="note"><?php _e('The number of tiles to use in the transition.', 'cycloneslider'); ?></span>
15
  <div class="clear"></div>
16
  <br />
@@ -24,25 +24,25 @@
24
 
25
  <div class="cycloneslider-field">
26
  <label for="cycloneslider_settings_timeout"><?php _e('Next Slide Delay:', 'cycloneslider'); ?> </label>
27
- <input id="cycloneslider_settings_timeout" type="text" name="cycloneslider_settings[timeout]" value="<?php echo esc_attr($slider_settings['timeout']); ?>" />
28
  <span class="note"><?php _e('Milliseconds. 0 to disable auto advance.', 'cycloneslider'); ?></span>
29
  <div class="clear"></div>
30
  </div>
31
  <div class="cycloneslider-field">
32
  <label for="cycloneslider_settings_speed"><?php _e('Transition Effects Speed:', 'cycloneslider'); ?></label>
33
- <input id="cycloneslider_settings_speed" type="text" name="cycloneslider_settings[speed]" value="<?php echo esc_attr($slider_settings['speed']); ?>" />
34
  <span class="note"><?php _e('Milliseconds', 'cycloneslider'); ?></span>
35
  <div class="clear"></div>
36
  </div>
37
  <div class="cycloneslider-field">
38
  <label for="cycloneslider_settings_width"><?php _e('Width:', 'cycloneslider'); ?> </label>
39
- <input id="cycloneslider_settings_width" type="text" name="cycloneslider_settings[width]" value="<?php echo esc_attr($slider_settings['width']); ?>" />
40
  <span class="note"><?php _e('pixels.', 'cycloneslider'); ?></span>
41
  <div class="clear"></div>
42
  </div>
43
  <div class="cycloneslider-field">
44
  <label for="cycloneslider_settings_height"><?php _e('Height:', 'cycloneslider'); ?> </label>
45
- <input id="cycloneslider_settings_height" type="text" name="cycloneslider_settings[height]" value="<?php echo esc_attr($slider_settings['height']); ?>" />
46
  <span class="note"><?php _e('pixels.', 'cycloneslider'); ?></span>
47
  <div class="clear"></div>
48
  </div>
@@ -71,7 +71,7 @@
71
  <span class="note"><?php _e('The thumbnails or dots depending on template.', 'cycloneslider'); ?></span>
72
  <div class="clear"></div>
73
  </div>
74
- <div class="cycloneslider-field last">
75
  <label for="cycloneslider_settings_randomize"><?php _e('Random Slide Order?', 'cycloneslider'); ?></label>
76
  <select id="cycloneslider_settings_randomize" name="cycloneslider_settings[random]">
77
  <option <?php echo (0==$slider_settings['random']) ? 'selected="selected"' : ''; ?> value="0"><?php _e('No', 'cycloneslider'); ?></option>
@@ -79,4 +79,13 @@
79
  </select>
80
  <span class="note"><?php _e('Randomize order of slides on every page visit.', 'cycloneslider'); ?></span>
81
  <div class="clear"></div>
 
 
 
 
 
 
 
 
 
82
  </div>
10
  </div>
11
  <div class="cycloneslider-field cycloneslider-field-tile-properties">
12
  <label for="cycloneslider_settings_tile_count"><?php _e('Tile Count:', 'cycloneslider'); ?> </label>
13
+ <input id="cycloneslider_settings_tile_count" type="number" name="cycloneslider_settings[tile_count]" value="<?php echo esc_attr($slider_settings['tile_count']); ?>" />
14
  <span class="note"><?php _e('The number of tiles to use in the transition.', 'cycloneslider'); ?></span>
15
  <div class="clear"></div>
16
  <br />
24
 
25
  <div class="cycloneslider-field">
26
  <label for="cycloneslider_settings_timeout"><?php _e('Next Slide Delay:', 'cycloneslider'); ?> </label>
27
+ <input id="cycloneslider_settings_timeout" type="number" name="cycloneslider_settings[timeout]" value="<?php echo esc_attr($slider_settings['timeout']); ?>" />
28
  <span class="note"><?php _e('Milliseconds. 0 to disable auto advance.', 'cycloneslider'); ?></span>
29
  <div class="clear"></div>
30
  </div>
31
  <div class="cycloneslider-field">
32
  <label for="cycloneslider_settings_speed"><?php _e('Transition Effects Speed:', 'cycloneslider'); ?></label>
33
+ <input id="cycloneslider_settings_speed" type="number" name="cycloneslider_settings[speed]" value="<?php echo esc_attr($slider_settings['speed']); ?>" />
34
  <span class="note"><?php _e('Milliseconds', 'cycloneslider'); ?></span>
35
  <div class="clear"></div>
36
  </div>
37
  <div class="cycloneslider-field">
38
  <label for="cycloneslider_settings_width"><?php _e('Width:', 'cycloneslider'); ?> </label>
39
+ <input id="cycloneslider_settings_width" type="number" name="cycloneslider_settings[width]" value="<?php echo esc_attr($slider_settings['width']); ?>" />
40
  <span class="note"><?php _e('pixels.', 'cycloneslider'); ?></span>
41
  <div class="clear"></div>
42
  </div>
43
  <div class="cycloneslider-field">
44
  <label for="cycloneslider_settings_height"><?php _e('Height:', 'cycloneslider'); ?> </label>
45
+ <input id="cycloneslider_settings_height" type="number" name="cycloneslider_settings[height]" value="<?php echo esc_attr($slider_settings['height']); ?>" />
46
  <span class="note"><?php _e('pixels.', 'cycloneslider'); ?></span>
47
  <div class="clear"></div>
48
  </div>
71
  <span class="note"><?php _e('The thumbnails or dots depending on template.', 'cycloneslider'); ?></span>
72
  <div class="clear"></div>
73
  </div>
74
+ <div class="cycloneslider-field">
75
  <label for="cycloneslider_settings_randomize"><?php _e('Random Slide Order?', 'cycloneslider'); ?></label>
76
  <select id="cycloneslider_settings_randomize" name="cycloneslider_settings[random]">
77
  <option <?php echo (0==$slider_settings['random']) ? 'selected="selected"' : ''; ?> value="0"><?php _e('No', 'cycloneslider'); ?></option>
79
  </select>
80
  <span class="note"><?php _e('Randomize order of slides on every page visit.', 'cycloneslider'); ?></span>
81
  <div class="clear"></div>
82
+ </div>
83
+ <div class="cycloneslider-field last">
84
+ <label for="cycloneslider_settings_resize"><?php _e('Resize Images?', 'cycloneslider'); ?></label>
85
+ <select id="cycloneslider_settings_resize" name="cycloneslider_settings[resize]">
86
+ <option <?php echo (0==$slider_settings['resize']) ? 'selected="selected"' : ''; ?> value="0"><?php _e('No', 'cycloneslider'); ?></option>
87
+ <option <?php echo (1==$slider_settings['resize']) ? 'selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'cycloneslider'); ?></option>
88
+ </select>
89
+ <span class="note"><?php _e('Yes - resize images to slideshow dimension. <br>No - use the original uploaded image.', 'cycloneslider'); ?></span>
90
+ <div class="clear"></div>
91
  </div>
inc/admin-parts/template-selection.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(!defined('CYCLONE_PATH')) die('Direct access denied.'); ?>
2
+ <div class="cycloneslider-field last">
3
+ <div class="template-scroller">
4
+ <ul class="template-choices">
5
+ <?php foreach($templates as $name=>$template): ?>
6
+ <li <?php echo ($name==$slider_settings['template']) ? 'class="active"' : ''; ?>>
7
+ <label for="template-<?php echo esc_attr($name); ?>">
8
+ <?php if(file_exists($template['path'].DIRECTORY_SEPARATOR.'screenshot.jpg')) {
9
+ ?>
10
+ <img src="<?php echo $template['url'];?>/screenshot.jpg" alt="" />
11
+ <?php
12
+ } else {
13
+ ?>
14
+ <img src="<?php echo self::url();?>images/screenshot.png" alt="" />
15
+ <?php
16
+ }
17
+ ?>
18
+ <input <?php echo ($name==$slider_settings['template']) ? 'checked="checked"' : ''; ?> id="template-<?php echo esc_attr($name); ?>" type="radio" name="cycloneslider_settings[template]" value="<?php echo esc_attr($name); ?>" />
19
+ </label>
20
+ <span class="title"><?php echo esc_attr(ucwords(str_replace('-',' ',$name))); ?></span>
21
+ <span class="check"></span>
22
+ <div class="supported">
23
+ <?php if(in_array('custom', $template['supports'])): ?>
24
+ <span class="cs-icon" title="Custom"><i class="icon-font"></i></span>
25
+ <?php endif; ?>
26
+ <?php if(in_array('video', $template['supports'])): ?>
27
+ <span class="cs-icon" title="Video"><i class="icon-film"></i></span>
28
+ <?php endif; ?>
29
+ <?php if(in_array('image', $template['supports'])): ?>
30
+ <span class="cs-icon" title="Image"><i class="icon-picture"></i></span>
31
+ <?php endif; ?>
32
+ </div>
33
+ </li>
34
+ <?php endforeach; ?>
35
+ </ul>
36
+ <div class="clear"></div>
37
+ </div>
38
+ <span class="note"><?php _e("Select a template to use. Check the template icons to see what slide type it supports.", 'cycloneslider'); ?></span>
39
+ <div class="cycloneslider-get-more">
40
+ <a target="_blank" class="button-primary" href="http://www.codefleet.net/cyclone-slider-2/templates/"><?php _e("Get more templates..", 'cycloneslider'); ?></a>
41
+ </div>
42
+ <div class="clear"></div>
43
+ </div>
inc/class-cyclone-slider-widget.php CHANGED
@@ -83,7 +83,7 @@ if(!class_exists('Cyclone_Slider_Widget')):
83
 
84
  }
85
 
86
- new Cyclone_Slider_Widget();
87
 
88
  function cycloneslider_widgets(){
89
  register_widget('Cyclone_Slider_Widget');
83
 
84
  }
85
 
86
+
87
 
88
  function cycloneslider_widgets(){
89
  register_widget('Cyclone_Slider_Widget');
inc/class-cyclone-slider.php CHANGED
@@ -1,952 +1,1122 @@
1
  <?php
2
  if(!class_exists('Cyclone_Slider')):
3
- class Cyclone_Slider {
4
- public $slider_count;
5
- public $effects;
6
- public $debug;
7
- private $message_id;
8
-
9
- /**
10
- * Initializes the plugin by setting localization, filters, and administration functions.
11
- */
12
- public function __construct() {
13
- // Set defaults
14
- $this->slider_count = 0;
15
- $this->effects = self::get_slide_effects();
16
- $this->debug = false;
17
-
18
- load_plugin_textdomain( 'cycloneslider', false, 'cyclone-slider-2/lang' );
19
-
20
- // Register admin styles and scripts
21
- add_action( 'admin_enqueue_scripts', array( $this, 'register_wp_media' ), 9);
22
- add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ), 10);
23
-
24
- // Register frontend styles and scripts
25
- add_action( 'wp_enqueue_scripts', array( $this, 'register_plugin_scripts' ), 100 );
26
-
27
-
28
- // Add admin menus
29
- add_action( 'init', array( $this, 'create_post_types' ) );
30
-
31
- // Update the messages for our custom post make it appropriate for slideshow
32
- add_filter('post_updated_messages', array( $this, 'post_updated_messages' ) );
33
-
34
- // Add slider metaboxes
35
- add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
36
-
37
- // Save slides
38
- add_action( 'save_post', array( $this, 'save_post' ) );
39
-
40
- // Hacky way to change text in thickbox
41
- add_filter( 'gettext', array( $this, 'replace_text_in_thickbox' ), 10, 3 );
42
-
43
- // Modify html of image
44
- add_filter( 'image_send_to_editor', array( $this, 'image_send_to_editor'), 1, 8 );
45
-
46
- // Custom columns
47
- add_action( 'manage_cycloneslider_posts_custom_column', array( $this, 'custom_column' ), 10, 2);
48
- add_filter( 'manage_edit-cycloneslider_columns', array( $this, 'slideshow_columns') );
49
-
50
- // Add hook for admin footer
51
- add_action('admin_footer', array( $this, 'admin_footer') );
52
-
53
- // Our shortcode
54
- add_shortcode('cycloneslider', array( $this, 'cycloneslider_shortcode') );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
- } // end constructor
57
-
58
-
59
- /**
60
- * Add js and css for WP media manager.
61
- */
62
- public function register_wp_media(){
63
- global $wp_version;
64
-
65
- if('cycloneslider' == get_post_type()){ /* Load only scripts here and not on all admin pages */
66
-
67
- if ( version_compare( $wp_version, '3.5', '<' ) ) { // Use old media manager
68
-
69
- wp_enqueue_style('thickbox');
70
-
71
- wp_enqueue_script('media-upload');
72
- wp_enqueue_script('thickbox');
73
-
74
- } else {
75
- // Required media files for new media manager. Since WP 3.5+
76
- wp_enqueue_media();
77
- }
78
- }
79
- }
80
-
81
- /**
82
- * Admin js and css
83
- */
84
- public function register_admin_scripts() {
85
-
86
- if('cycloneslider' == get_post_type()){ /* Load only scripts here and not on all admin pages */
87
-
88
- wp_enqueue_style( 'cycloneslider-admin-styles', self::url().'css/admin.css' );
89
-
90
- //scripts
91
- wp_dequeue_script( 'autosave' );//disable autosave
92
-
93
- //wp_enqueue_script('jquery');
94
- wp_enqueue_script('jquery-ui-sortable');
95
-
96
- wp_enqueue_script( 'jquery-cookie', self::url().'js/jquery-cookie.js', array('jquery') );
97
-
98
- wp_register_script( 'cycloneslider-admin-script', self::url().'js/admin.js', array('jquery') );
99
- wp_localize_script( 'cycloneslider-admin-script', 'cycloneslider_admin_vars',
100
- array(
101
- 'title' => __( 'Select an image', 'cycloneslider' ), // This will be used as the default title
102
- 'button' => __( 'Add to Slide', 'cycloneslider' ) // This will be used as the default button text
103
- )
104
- );
105
- wp_enqueue_script( 'cycloneslider-admin-script');
106
-
107
- }
108
- }
109
-
110
- /**
111
- * Registers and enqueues frontend-specific scripts.
112
- */
113
- public function register_plugin_scripts() {
114
- /*** Styles ***/
115
- wp_enqueue_style( 'cyclone-templates-styles', self::url().'css/templates.css' );
116
-
117
- /*** Scripts ***/
118
- wp_enqueue_script( 'cycle2', self::url().'js/jquery.cycle2.min.js', array('jquery') );
119
-
120
- wp_enqueue_script( 'cycle2-tile', self::url().'js/jquery.cycle2.tile.min.js', array('cycle2') );
121
-
122
- wp_enqueue_script( 'cycle2-carousel', self::url().'js/jquery.cycle2.carousel.min.js', array('cycle2') );
123
-
124
- wp_enqueue_script( 'cyclone-templates-scripts', self::url().'js/templates.js', array('jquery') );//contains our combined css from ALL templates
125
 
126
- }
127
-
128
- /*--------------------------------------------*
129
- * Core Functions
130
- *---------------------------------------------*/
131
- // Create custom post for slideshows
132
- public function create_post_types() {
133
- register_post_type( 'cycloneslider',
134
- array(
135
- 'labels' => array(
136
- 'name' => __('Cyclone Slider', 'cycloneslider'),
137
- 'singular_name' => __('Slideshow', 'cycloneslider'),
138
- 'add_new' => __('Add Slideshow', 'cycloneslider'),
139
- 'add_new_item' => __('Add New Slideshow', 'cycloneslider'),
140
- 'edit_item' => __('Edit Slideshow', 'cycloneslider'),
141
- 'new_item' => __('New Slideshow', 'cycloneslider'),
142
- 'view_item' => __('View Slideshow', 'cycloneslider'),
143
- 'search_items' => __('Search Slideshows', 'cycloneslider'),
144
- 'not_found' => __('No slideshows found', 'cycloneslider'),
145
- 'not_found_in_trash' => __('No slideshows found in Trash', 'cycloneslider')
146
- ),
147
- 'supports' => array('title'),
148
- 'public' => false,
149
- 'exclude_from_search' => true,
150
- 'show_ui' => true,
151
- 'menu_position' => 100
152
- )
153
- );
154
- }
155
-
156
- // Slides metabox init
157
- public function add_meta_boxes(){
158
- add_meta_box(
159
- 'cyclone-slides-metabox',
160
- __('Slides', 'cycloneslider'),
161
- array( $this, 'render_slides_meta_box' ),
162
- 'cycloneslider' ,
163
- 'normal',
164
- 'high'
165
- );
166
- add_meta_box(
167
- 'cyclone-slider-properties-metabox',
168
- __('Slideshow Settings', 'cycloneslider'),
169
- array( $this, 'render_slider_properties_meta_box' ),
170
- 'cycloneslider' ,
171
- 'side',
172
- 'low'
173
- );
174
- add_meta_box(
175
- 'cyclone-slider-templates-metabox',
176
- __('Slideshow Templates', 'cycloneslider'),
177
- array( $this, 'render_slider_templates_meta_box' ),
178
- 'cycloneslider' ,
179
- 'normal',
180
- 'low'
181
- );
182
- }
183
-
184
- // Get Image mime type. @param $image - full path to image
185
- public function get_mime_type( $image ){
186
- if($properties = getimagesize( $image )){
187
- return $properties['mime'];
188
- }
189
- return false;
190
- }
191
-
192
- // Slides metabox render
193
- public function render_slides_meta_box($post){
194
-
195
- // Use nonce for verification
196
- echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
197
-
198
- $slider_settings = self::get_slideshow_settings($post->ID);
199
- $slider_metas = self::get_slides($post->ID);
200
-
201
- if($this->debug){
202
- echo '<pre>';
203
- print_r($slider_metas);
204
- echo '</pre>';
205
- }
206
- ?>
207
- <div class="cycloneslider-sortable">
208
- <?php
209
- if(is_array($slider_metas) and count($slider_metas)>0):
210
-
211
- foreach($slider_metas as $i=>$slider_meta):
212
-
213
- $attachment_id = (int) $slider_meta['id'];
214
- $image_url = wp_get_attachment_image_src( $attachment_id, 'medium', true );
215
- $image_url = (is_array($image_url)) ? $image_url[0] : '';
216
- $image_url = apply_filters('cycloneslider_preview_url', $image_url, $slider_meta);
217
- $box_title = apply_filters('cycloneslider_box_title', __('Slide', 'cycloneslider'), $slider_meta);
218
-
219
- include(self::get_admin_parts_folder().'box.php');
220
- endforeach;
221
-
222
- endif;
223
- ?>
224
- </div><!-- end .cycloneslider-sortable -->
225
-
226
- <input type="button" value="<?php _e('Add Slide', 'cycloneslider'); ?>" class="button-secondary" name="cycloneslider_add_slide" />
227
- <?php
228
- }
229
-
230
- public function render_slider_properties_meta_box($post){
231
- // Use nonce for verification
232
- echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
233
-
234
- $slider_settings = self::get_slideshow_settings($post->ID);
235
-
236
- if($this->debug){
237
- echo '<pre>';
238
- print_r($slider_settings);
239
- echo '</pre>';
240
- }
241
-
242
- include(self::get_admin_parts_folder() . 'slider-properties.php');
243
- }
244
-
245
- public function render_slider_templates_meta_box($post){
246
- // Use nonce for verification
247
- echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
248
-
249
- $slider_settings = self::get_slideshow_settings($post->ID);
250
-
251
- $templates = self::get_all_templates();
252
- if($this->debug){
253
- echo '<pre>';
254
- print_r($templates);
255
- echo '</pre>';
256
- }
257
- ?>
258
- <div class="cycloneslider-field last">
259
- <div class="template-scroller">
260
- <ul class="template-choices">
261
- <?php foreach($templates as $name=>$template): ?>
262
- <li <?php echo ($name==$slider_settings['template']) ? 'class="active"' : ''; ?>>
263
- <label for="template-<?php echo esc_attr($name); ?>">
264
- <?php if(file_exists($template['path'].DIRECTORY_SEPARATOR.'screenshot.jpg')) {
265
- ?>
266
- <img src="<?php echo $template['url'];?>/screenshot.jpg" alt="" />
267
- <?php
268
- } else {
269
- ?>
270
- <img src="<?php echo self::url();?>images/screenshot.png" alt="" />
271
- <?php
272
- }
273
- ?>
274
-
275
- <input <?php echo ($name==$slider_settings['template']) ? 'checked="checked"' : ''; ?> id="template-<?php echo esc_attr($name); ?>" type="radio" name="cycloneslider_settings[template]" value="<?php echo esc_attr($name); ?>" />
276
- </label>
277
- <span class="title"><?php echo esc_attr(ucwords(str_replace('-',' ',$name))); ?></span>
278
- <span class="check"></span>
279
- </li>
280
- <?php endforeach; ?>
281
- </ul>
282
- <div class="clear"></div>
283
- </div>
284
- <span class="note"><?php _e("Select a template to use.", 'cycloneslider'); ?></span>
285
- <div class="cycloneslider-get-more">
286
- <a target="_blank" class="button-primary" href="http://www.codefleet.net/cyclone-slider-2/templates/"><?php _e("Get more templates..", 'cycloneslider'); ?></a>
287
- </div>
288
- <div class="clear"></div>
289
- </div>
290
- <?php
291
- }
292
-
293
- public function save_post($post_id){
294
-
295
- // Verify nonce
296
- $nonce_name = 'cycloneslider_metabox_nonce';
297
- if (!empty($_POST[$nonce_name])) {
298
- if (!wp_verify_nonce($_POST[$nonce_name], basename(__FILE__))) {
299
- return $post_id;
300
- }
301
- } else {
302
- return $post_id; // Make sure we cancel on missing nonce!
303
- }
304
-
305
- // check autosave
306
- if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
307
- return $post_id;
308
- }
309
-
310
- do_action('cycloneslider_before_save', $post_id);
311
-
312
- //slide metas
313
- $this->save_metas($post_id);
314
-
315
- //settings
316
- $this->save_settings($post_id);
317
-
318
- // Compile css and js
319
- $this->compile_css($post_id);
320
- $this->compile_js($post_id);
321
-
322
- remove_action( 'save_post', array( $this, 'save_post' ) );
323
- }
324
-
325
- //sanitize and save
326
- public function save_metas($post_id){
327
- $slides = array();
328
- if(isset($_POST['cycloneslider_metas'])){
329
-
330
-
331
- $i=0;//always start from 0
332
- foreach($_POST['cycloneslider_metas'] as $slide){
333
- $slide = wp_parse_args($slide, self::get_slide_defaults());
334
- $slides[$i]['id'] = (int) ($slide['id']);
335
- $slides[$i]['type'] = sanitize_text_field($slide['type']);
336
-
337
- $slides[$i]['link'] = esc_url_raw($slide['link']);
338
- $slides[$i]['title'] = wp_kses_post($slide['title']);
339
- $slides[$i]['description'] = wp_kses_post($slide['description']);
340
- $slides[$i]['link_target'] = sanitize_text_field($slide['link_target']);
341
-
342
- $slides[$i]['img_alt'] = sanitize_text_field($slide['img_alt']);
343
- $slides[$i]['img_title'] = sanitize_text_field($slide['img_title']);
344
-
345
- $slides[$i]['enable_slide_effects'] = (int) ($slide['enable_slide_effects']);
346
- $slides[$i]['fx'] = sanitize_text_field($slide['fx']);
347
- $slides[$i]['speed'] = sanitize_text_field($slide['speed']);
348
- $slides[$i]['timeout'] = sanitize_text_field($slide['timeout']);
349
- $slides[$i]['tile_count'] = sanitize_text_field($slide['tile_count']);
350
- $slides[$i]['tile_delay'] = sanitize_text_field($slide['tile_delay']);
351
- $slides[$i]['tile_vertical'] = sanitize_text_field($slide['tile_vertical']);
352
- $i++;
353
- }
354
-
355
-
356
- }
357
- $slides = apply_filters('cycloneslider_slides', $slides); //do filter before saving
358
-
359
- delete_post_meta($post_id, '_cycloneslider_metas');
360
- update_post_meta($post_id, '_cycloneslider_metas', $slides);
361
- }
362
-
363
- //sanitize and save
364
- public function save_settings($post_id){
365
- if(isset($_POST['cycloneslider_settings'])){
366
- $_POST['cycloneslider_settings'] = wp_parse_args($_POST['cycloneslider_settings'], self::get_slideshow_defaults());
367
- $settings = array();
368
- $settings['template'] = sanitize_text_field($_POST['cycloneslider_settings']['template']);
369
- $settings['fx'] = sanitize_text_field($_POST['cycloneslider_settings']['fx']);
370
- $settings['timeout'] = (int) ($_POST['cycloneslider_settings']['timeout']);
371
- $settings['speed'] = (int) ($_POST['cycloneslider_settings']['speed']);
372
- $settings['width'] = (int) ($_POST['cycloneslider_settings']['width']);
373
- $settings['height'] = (int) ($_POST['cycloneslider_settings']['height']);
374
- $settings['hover_pause'] = sanitize_text_field($_POST['cycloneslider_settings']['hover_pause']);
375
- $settings['show_prev_next'] = (int) ($_POST['cycloneslider_settings']['show_prev_next']);
376
- $settings['show_nav'] = (int) ($_POST['cycloneslider_settings']['show_nav']);
377
- $settings['tile_count'] = (int) ($_POST['cycloneslider_settings']['tile_count']);
378
- $settings['tile_delay'] = (int) ($_POST['cycloneslider_settings']['tile_delay']);
379
- $settings['tile_vertical'] = sanitize_text_field($_POST['cycloneslider_settings']['tile_vertical']);
380
- $settings['random'] = (int) ($_POST['cycloneslider_settings']['random']);
381
-
382
- $settings = apply_filters('cycloneslider_settings', $settings); //do filter before saving
383
-
384
- delete_post_meta($post_id, '_cycloneslider_settings');
385
- update_post_meta($post_id, '_cycloneslider_settings', $settings);
386
- }
387
- }
388
-
389
- // Messages
390
- public function post_updated_messages($messages){
391
- global $post, $post_ID;
392
- $messages['cycloneslider'] = array(
393
- 0 => '',
394
- 1 => sprintf( __( 'Slideshow updated. Shortcode is [cycloneslider id="%s"]', 'cycloneslider' ), $post->post_name),
395
- 2 => __( 'Custom field updated.', 'cycloneslider' ),
396
- 3 => __( 'Custom field deleted.', 'cycloneslider' ),
397
- 4 => __( 'Slideshow updated.', 'cycloneslider' ),
398
- 5 => __( 'Slideshow updated.', 'cycloneslider' ),
399
- 6 => sprintf( __( 'Slideshow published. Shortcode is [cycloneslider id="%s"]', 'cycloneslider' ), $post->post_name),
400
- 7 => __( 'Slideshow saved.', 'cycloneslider' ),
401
- 8 => __( 'Slideshow updated.', 'cycloneslider' ),
402
- 9 => __( 'Slideshow updated.', 'cycloneslider' ),
403
- 10 => __( 'Slideshow updated.', 'cycloneslider' ),
404
- 101 => sprintf( __( 'Templates CSS could not be saved. Make sure %stemplates.css is writable.', 'cycloneslider' ), self::path().'css'.DIRECTORY_SEPARATOR),
405
- 102 => sprintf( __( 'Templates JS could not be saved. Make sure %stemplates.js is writable.', 'cycloneslider' ), self::path().'js'.DIRECTORY_SEPARATOR)
406
- );
407
- return $messages;
408
- }
409
-
410
- /**
411
- * Show custom messages
412
- *
413
- * @return array The array of locations containing path and url
414
- */
415
- public function throw_message($location) {
416
- $location = add_query_arg( 'message', $this->message_id, $location );
417
- $this->message_id = 0;
418
- return $location;
419
- }
420
-
421
- /**
422
- * Pulls style.css from templates and combines it into one
423
- */
424
- private function compile_css($post_id){
425
- $ds = DIRECTORY_SEPARATOR;
426
- $content = '';
427
-
428
- if(file_exists(self::path()."css{$ds}common.min.css")){
429
- $content .= file_get_contents(self::path()."css{$ds}common.min.css");
430
- }
431
-
432
- $template_folders = self::get_all_templates();
433
- $templates_in_used = self::get_templates_in_used();
434
- foreach($template_folders as $name=>$folder){
435
- //if(in_array($name, $templates_in_used)){ //Compile only css of templates that are being used.
436
- $style = $folder['path']."{$ds}style.min.css"; //Minified version
437
- $style2 = $folder['path']."{$ds}style.css"; //Unminified version, for old templates to work
438
- if(file_exists($style)){
439
- $content .= "\r\n".str_replace('$tpl', $folder['url'], file_get_contents($style));//apply url and print css
440
- } else if(file_exists($style2)){
441
- $content .= "\r\n".str_replace('$tpl', $folder['url'], file_get_contents($style2));//apply url and print css
442
- }
443
-
444
- //}
445
- }
446
-
447
- $save_to = self::path()."css{$ds}templates.css";
448
-
449
- if( @file_put_contents($save_to, $content, LOCK_EX) === false){
450
- $this->message_id = 101;
451
- add_filter('redirect_post_location', array($this, 'throw_message'));
452
- }
453
- }
454
-
455
- /**
456
- * Pulls script.js from templates and combines it into one
457
- */
458
- private function compile_js($post_id){
459
- $ds = DIRECTORY_SEPARATOR;
460
- $content = '';
461
-
462
- $template_folders = self::get_all_templates();
463
- $templates_in_used = self::get_templates_in_used();
464
- foreach($template_folders as $name=>$folder){
465
- //if(in_array($name, $templates_in_used)){ //Compile only js of templates that are being used.
466
- $js = $folder['path']."{$ds}script.min.js"; //Minified version
467
- $js2 = $folder['path']."{$ds}script.js"; //Unminified version, for old templates to work
468
- if(file_exists($js)){
469
- $content .= file_get_contents($js)."\r\n";//Pull contents
470
- } else if(file_exists($js2)){
471
- $content .= file_get_contents($js2)."\r\n";
472
- }
473
- //}
474
- }
475
-
476
- $save_to = self::path()."js{$ds}templates.js";
477
- if( @file_put_contents($save_to, $content, LOCK_EX) === false){
478
- $this->message_id = 102;
479
- add_filter('redirect_post_location', array($this, 'throw_message'));
480
- }
481
- }
482
-
483
- //Replace text in media button
484
- function replace_text_in_thickbox($translation, $text, $domain ) {
485
- $http_referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
486
- $req_referrer = isset($_REQUEST['referer']) ? $_REQUEST['referer'] : '';
487
- if(strpos($http_referrer, 'cycloneslider')!==false or $req_referrer=='cycloneslider') {
488
- if ( 'default' == $domain and 'Insert into Post' == $text )
489
- {
490
- return 'Add to Slide';
491
- }
492
- }
493
- return $translation;
494
- }
495
-
496
- // Add attachment ID as html5 data attr in thickbox
497
- function image_send_to_editor( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ){
498
- if(strpos($html, '<img data-id="')===false){
499
- $html = str_replace('<img', '<img data-id="'.$id.'" ', $html);
500
- }
501
- return $html;
502
- }
503
-
504
- // Modify columns
505
- function slideshow_columns($columns) {
506
- $columns = array();
507
- $columns['title']= __('Slideshow Name', 'cycloneslider');
508
- $columns['template']= __('Template', 'cycloneslider');
509
- $columns['images']= __('Images', 'cycloneslider');
510
- $columns['id']= __('Slideshow ID', 'cycloneslider');
511
- $columns['shortcode']= __('Shortcode', 'cycloneslider');
512
- return $columns;
513
- }
514
-
515
- // Add content to custom columns
516
- function custom_column( $column_name, $post_id ){
517
- if ($column_name == 'template') {
518
- $settings = self::get_slideshow_settings($post_id);
519
- echo ucwords($settings['template']);
520
- }
521
- if ($column_name == 'images') {
522
- echo '<div style="text-align:center; max-width:40px;">' . count(self::get_image_count($post_id)) . '</div>';
523
- }
524
- if ($column_name == 'id') {
525
- $post = get_post($post_id);
526
- echo $post->post_name;
527
- }
528
- if ($column_name == 'shortcode') {
529
- $post = get_post($post_id);
530
- echo '[cycloneslider id="'.$post->post_name.'"]';
531
- }
532
- }
533
-
534
- // Hook to admin footer
535
- function admin_footer() {
536
- $this->slide_box_for_js();
537
- }
538
-
539
- // For js adding of box
540
- function slide_box_for_js(){
541
- if(get_post_type()=='cycloneslider'){
542
- $box_title = __('Slide', 'cycloneslider');
543
- $image_url = '';
544
- $i = '{id}';
545
- $slider_meta = self::get_slide_defaults();
546
- foreach($slider_meta as $key=>$value){
547
- $slider_meta[$key] = '';
548
- }
549
- $slider_meta['type'] = 'image';
550
- ?>
551
- <div class="cycloneslider-box-template">
552
- <?php
553
- include(self::get_admin_parts_folder().'box.php');
554
- ?>
555
- </div><!-- end .cycloneslider-box-template -->
556
- <?php
557
- }
558
- }
559
-
560
- // Compare the value from admin and shortcode. If shortcode value is present and not empty, use it, otherwise return admin value
561
- function get_comp_slider_setting($admin_val, $shortcode_val){
562
- if($shortcode_val!==null){//make sure its really null and not just int zero 0
563
- return $shortcode_val;
564
- }
565
- return $admin_val;
566
- }
567
-
568
- /* Our shortcode function.
569
- Slider settings comes from both admin settings and shortcode attributes.
570
- Shortcode attributes, if present, will override the admin settings.
571
- */
572
- function cycloneslider_shortcode($shortcode_settings) {
573
- // Process shortcode settings and return only allowed vars
574
- $shortcode_settings = shortcode_atts(
575
- array(
576
- 'id' => 0,
577
- 'template' => null,
578
- 'fx' => null,
579
- 'speed' => null,
580
- 'timeout' => null,
581
- 'width' => null,
582
- 'height' => null,
583
- 'hover_pause' => null,
584
- 'show_prev_next' => null,
585
- 'show_nav' => null,
586
- 'tile_count' => null,
587
- 'tile_delay' => null,
588
- 'tile_vertical' => null,
589
- 'random' => null
590
- ),
591
- $shortcode_settings
592
- );
593
- $slider_id = esc_attr($shortcode_settings['id']);
594
-
595
- $cycle_options = array();
596
- $this->slider_count++;//make each call to shortcode unique
597
- // Get slideshow by id
598
- $args = array(
599
- 'post_type' => 'cycloneslider',
600
- 'order'=>'ASC',
601
- 'posts_per_page' => 1,
602
- 'name'=> $slider_id
603
- );
604
-
605
- $args = apply_filters('cycloneslider_wp_query_args', $args);
606
-
607
- $my_query = new WP_Query($args);
608
-
609
- if($my_query->have_posts()):
610
- while ( $my_query->have_posts() ) : $my_query->the_post();
611
-
612
- $meta = get_post_custom();
613
- $admin_settings = self::get_slideshow_settings(get_the_ID());
614
- $slider_metas = self::get_slides(get_the_ID());
615
-
616
- if($admin_settings['random']){
617
- shuffle($slider_metas);
618
- }
619
-
620
- foreach($slider_metas as $i=>$slider_meta){
621
- $slider_metas[$i]['title'] = __($slider_meta['title']);
622
- $slider_metas[$i]['description'] = __($slider_meta['description']);
623
- }
624
- $slides = $this->get_slides_from_meta($slider_metas);
625
-
626
- $template = $this->get_comp_slider_setting($admin_settings['template'], $shortcode_settings['template']);
627
- $template = esc_attr($template===null ? 'default' : $template);//fallback to default
628
- $slider_settings['fx'] = esc_attr($this->get_comp_slider_setting($admin_settings['fx'], $shortcode_settings['fx']));
629
- $slider_settings['speed'] = (int) $this->get_comp_slider_setting($admin_settings['speed'], $shortcode_settings['speed']);
630
- $slider_settings['timeout'] = (int) $this->get_comp_slider_setting($admin_settings['timeout'], $shortcode_settings['timeout']);
631
- $slider_settings['width'] = (int) $this->get_comp_slider_setting($admin_settings['width'], $shortcode_settings['width']);
632
- $slider_settings['height'] = (int) $this->get_comp_slider_setting($admin_settings['height'], $shortcode_settings['height']);
633
- $slider_settings['hover_pause'] = $this->get_comp_slider_setting($admin_settings['hover_pause'], $shortcode_settings['hover_pause']);
634
- $slider_settings['show_prev_next'] = (int) $this->get_comp_slider_setting($admin_settings['show_prev_next'], $shortcode_settings['show_prev_next']);
635
- $slider_settings['show_nav'] = (int) $this->get_comp_slider_setting($admin_settings['show_nav'], $shortcode_settings['show_nav']);
636
-
637
- $slider_settings['tile_count'] = $this->get_comp_slider_setting($admin_settings['tile_count'], $shortcode_settings['tile_count']);
638
- $slider_settings['tile_delay'] = $this->get_comp_slider_setting($admin_settings['tile_delay'], $shortcode_settings['tile_delay']);
639
- $slider_settings['tile_vertical'] = $this->get_comp_slider_setting($admin_settings['tile_vertical'], $shortcode_settings['tile_vertical']);
640
-
641
- $slider_settings['random'] = $this->get_comp_slider_setting($admin_settings['random'], $shortcode_settings['random']);
642
-
643
- $slider = $this->get_slider_template($slider_id, $template, $slides, $slider_metas, $slider_settings, $this->slider_count);
644
-
645
- endwhile;
646
-
647
- wp_reset_postdata();
648
-
649
- else:
650
- $slider = __('[Slideshow not found]', 'cycloneslider');
651
- endif;
652
-
653
- return $slider;
654
- }
655
-
656
- // Get slideshow template
657
- function get_slider_template($slider_id, $template_name, $slides, $slider_metas, $slider_settings, $slider_count){
658
-
659
- $template = get_stylesheet_directory()."/cycloneslider/{$template_name}/slider.php";
660
- if(@is_file($template)){
661
- ob_start();
662
- include($template);
663
- $html = ob_get_clean();
664
- return $html = $this->trim_white_spaces($html);
665
- }
666
-
667
- $template = self::get_templates_folder()."{$template_name}/slider.php";
668
- if(@is_file($template)) {
669
- ob_start();
670
- include($template);
671
- $html = ob_get_clean();
672
- return $html = $this->trim_white_spaces($html);
673
- }
674
-
675
- return sprintf(__('[Template "%s" not found]', 'cycloneslider'), $template_name);
676
- }
677
-
678
- function trim_white_spaces($buffer){
679
- $search = array(
680
- '/\>[^\S ]+/s', //strip whitespaces after tags, except space
681
- '/[^\S ]+\</s', //strip whitespaces before tags, except space
682
- '/(\s)+/s' // shorten multiple whitespace sequences
683
- );
684
- $replace = array(
685
- '>',
686
- '<',
687
- '\\1'
688
- );
689
- return preg_replace($search, $replace, $buffer);
690
- }
691
-
692
- // Return array of slide urls from meta
693
- function get_slides_from_meta($slider_metas){
694
- $slides = array();
695
- if(is_array($slider_metas)){
696
- foreach($slider_metas as $slider_meta){
697
- $attachment_id = (int) $slider_meta['id'];
698
- $image_url = wp_get_attachment_url($attachment_id);
699
- $image_url = ($image_url===false) ? '' : $image_url;
700
- $slides[] = $image_url;
701
- }
702
- }
703
- return $slides;
704
- }
705
-
706
-
707
-
708
-
709
- /**
710
- * GLOBAL STATIC FUNCTIONS
711
- */
712
-
713
- /**
714
- * Get All Slideshows
715
- *
716
- * Get all saves slideshow
717
- *
718
- * @return array The array of slideshows
719
- */
720
- public static function get_all_slideshows(){
721
- $args = array(
722
- 'post_type' => 'cycloneslider',
723
- 'posts_per_page' => -1
724
- );
725
- $my_query = new WP_Query($args);
726
- $slideshows = array();
727
- while ( $my_query->have_posts() ) : $my_query->the_post();
728
- $slideshows[] = $my_query->post;
729
- endwhile;
730
-
731
- wp_reset_postdata();
732
-
733
- return $slideshows;
734
- }
735
-
736
- /**
737
- * Get Templates in used
738
- *
739
- * Get all templates that are used by slideshow
740
- *
741
- * @return array The array of templates
742
- */
743
- public static function get_templates_in_used(){
744
- $slideshows = self::get_all_slideshows();
745
- $templates_used = array();
746
- foreach($slideshows as $slideshow) {
747
- $settings = self::get_slideshow_settings($slideshow->ID);
748
- $templates_used[$settings['template']] = $settings['template'];
749
- }
750
-
751
- return $templates_used;
752
- }
753
-
754
- /**
755
- * Get All Locations
756
- *
757
- * Get templates folders in plugin and theme folders
758
- *
759
- * @return array The array of locations containing path and url
760
- */
761
- public static function get_all_locations(){
762
- $ds = DIRECTORY_SEPARATOR;
763
- $template_locations = array();
764
- $template_locations[0] = array(
765
- 'path'=>self::get_templates_folder(), //this resides in the plugin
766
- 'url'=>self::url().'templates/'
767
- );
768
- $template_locations[1] = array(
769
- 'path'=> realpath(get_stylesheet_directory())."{$ds}cycloneslider{$ds}",//this resides in the current theme or child theme
770
- 'url'=> get_stylesheet_directory_uri()."/cycloneslider/"
771
- );
772
- return $template_locations;
773
- }
774
-
775
- /**
776
- * Get All Templates
777
- *
778
- * Get all templates from all locations. Returns array of templates with keys as name containing array of path and url
779
- *
780
- * @return array The array of templates containing path and url
781
- */
782
- public static function get_all_templates(){
783
- $template_locations = self::get_all_locations();
784
- $template_folders = array();
785
- foreach($template_locations as $location){
786
- if($files = @scandir($location['path'])){
787
- $c = 0;
788
- foreach($files as $name){
789
- if($name!='.' and $name!='..' and is_dir($location['path'].$name)){ // Check if its a directory
790
- $name = sanitize_title($name);// Change space to dash and all lowercase
791
- $template_folders[$name] = array( // Here we override template of the same names. If there is a template with the same name in plugin and theme directory, the one in theme will take over
792
- 'path'=>$location['path'].$name,
793
- 'url'=>$location['url'].$name,
794
- );
795
- }
796
- }
797
- }
798
- }
799
- return $template_folders;
800
- }
801
-
802
- /**
803
- * Gets the slideshow settings. Defaults and filters are applied.
804
- *
805
- * @param int $slideshow_id Post ID of the slideshow custom post.
806
- * @return array The array of slideshow settings
807
- */
808
- public static function get_slideshow_settings($slideshow_id) {
809
- $meta = get_post_custom($slideshow_id);
810
- $slideshow_settings = array();
811
- if(isset($meta['_cycloneslider_settings'][0]) and !empty($meta['_cycloneslider_settings'][0])){
812
- $slideshow_settings = maybe_unserialize($meta['_cycloneslider_settings'][0]);
813
- }
814
- $slideshow_settings = wp_parse_args($slideshow_settings, self::get_slideshow_defaults() );
815
- return apply_filters('cycloneslider_get_slideshow', $slideshow_settings);
816
- }
817
-
818
- /**
819
- * Gets the slides. Defaults and filters are applied.
820
- *
821
- * @param int $slideshow_id Post ID of the slideshow custom post.
822
- * @return array The array of slides settings
823
- */
824
- public static function get_slides($slideshow_id){
825
- $meta = get_post_custom($slideshow_id);
826
-
827
- if(isset($meta['_cycloneslider_metas'][0]) and !empty($meta['_cycloneslider_metas'][0])){
828
- $slides = maybe_unserialize($meta['_cycloneslider_metas'][0]);
829
- $defaults = self::get_slide_defaults();
830
-
831
- foreach($slides as $i=>$slide){
832
- $slides[$i] = wp_parse_args($slide, $defaults);
833
- }
834
-
835
- return apply_filters('cycloneslider_get_slides', $slides);
836
- }
837
- return false;
838
- }
839
-
840
- /**
841
- * Gets the slideshow default settings.
842
- *
843
- * @return array The array of slideshow defaults
844
- */
845
- public static function get_slideshow_defaults(){
846
- return array(
847
- 'template' => 'default',
848
- 'fx' => 'fade',
849
- 'timeout' => '4000',
850
- 'speed' => '1000',
851
- 'width' => '960',
852
- 'height' => '300',
853
- 'hover_pause' => 'true',
854
- 'show_prev_next' => '1',
855
- 'show_nav' => '1',
856
- 'tile_count' => '7',
857
- 'tile_delay' => '100',
858
- 'tile_vertical' => 'true',
859
- 'random' => 0
860
- );
861
- }
862
-
863
- /**
864
- * Gets the slide default settings.
865
- *
866
- * @return array The array of slide defaults
867
- */
868
- public static function get_slide_defaults(){
869
- return array(
870
- 'enable_slide_effects'=>0,
871
- 'type' => 'image',
872
- 'id' => '',
873
- 'link' => '',
874
- 'title' => '',
875
- 'description' => '',
876
- 'link_target' => '_self',
877
- 'fx' => 'default',
878
- 'speed' => '',
879
- 'timeout' => '',
880
- 'tile_count' => '7',
881
- 'tile_delay' => '100',
882
- 'tile_vertical' => 'true',
883
- 'img_alt' => '',
884
- 'img_title' => ''
885
- );
886
- }
887
-
888
- /**
889
- * Gets the slide effects.
890
- *
891
- * @return array The array of slide effects
892
- */
893
- public static function get_slide_effects(){
894
- return array(
895
- 'fade'=>'Fade',
896
- 'fadeout'=>'Fade Out',
897
- 'none'=>'None',
898
- 'scrollHorz'=>'Scroll Horizontally',
899
- 'tileBlind'=>'Tile Blind',
900
- 'tileSlide'=>'Tile Slide'
901
- );
902
- }
903
-
904
- /**
905
- * Gets the path to plugin
906
- *
907
- * @return string Path to plugin in the filesystem with trailing slash
908
- */
909
- public static function path(){
910
- return CYCLONE_PATH;
911
- }
912
-
913
- /**
914
- * Gets the URL to plugin
915
- *
916
- * @return string URL to plugin with trailing slash
917
- */
918
- public static function url(){
919
- return CYCLONE_URL;
920
- }
921
-
922
- /**
923
- * Gets the path to folder of admin user interface parts with trailing slash
924
- *
925
- * @return string Path to folder
926
- */
927
- public static function get_admin_parts_folder(){
928
- return self::path() . 'inc'.DIRECTORY_SEPARATOR.'admin-parts'.DIRECTORY_SEPARATOR;
929
- }
930
-
931
- /**
932
- * Gets the path to templates folder
933
- *
934
- * @return string Path to templates inside the plugin with trailing slash
935
- */
936
- public static function get_templates_folder(){
937
- return self::path() . 'templates'.DIRECTORY_SEPARATOR;
938
- }
939
-
940
- /**
941
- * Gets the number of images of slideshow
942
- *
943
- * @return int Total images
944
- */
945
- public static function get_image_count($id){
946
- return self::get_slides($id);
947
- }
948
-
949
-
950
- } // end class
951
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
952
  endif;
1
  <?php
2
  if(!class_exists('Cyclone_Slider')):
3
+ class Cyclone_Slider {
4
+ public $slider_count;
5
+ public $effects;
6
+ public $debug;
7
+ private $message_id;
8
+
9
+ /**
10
+ * Initializes the plugin by setting localization, filters, and administration functions.
11
+ */
12
+ public function __construct() {
13
+ // Set defaults
14
+ $this->slider_count = 0;
15
+ $this->effects = self::get_slide_effects();
16
+ $this->debug = false;
17
+
18
+ load_plugin_textdomain( 'cycloneslider', false, 'cyclone-slider-2/lang' );
19
+
20
+ // Register admin styles and scripts
21
+ add_action( 'admin_enqueue_scripts', array( $this, 'register_wp_media' ), 9);
22
+ add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ), 10);
23
+
24
+ // Register frontend styles and scripts
25
+ add_action( 'wp_enqueue_scripts', array( $this, 'register_plugin_scripts' ), 100 );
26
+
27
+
28
+ // Add admin menus
29
+ add_action( 'init', array( $this, 'create_post_types' ) );
30
+
31
+ // Update the messages for our custom post make it appropriate for slideshow
32
+ add_filter('post_updated_messages', array( $this, 'post_updated_messages' ) );
33
+
34
+ // Add slider metaboxes
35
+ add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
36
+
37
+ // Save slides
38
+ add_action( 'save_post', array( $this, 'save_post' ) );
39
+
40
+ // Hacky way to change text in thickbox
41
+ add_filter( 'gettext', array( $this, 'replace_text_in_thickbox' ), 10, 3 );
42
+
43
+ // Modify html of image
44
+ add_filter( 'image_send_to_editor', array( $this, 'image_send_to_editor'), 1, 8 );
45
+
46
+ // Custom columns
47
+ add_action( 'manage_cycloneslider_posts_custom_column', array( $this, 'custom_column' ), 10, 2);
48
+ add_filter( 'manage_edit-cycloneslider_columns', array( $this, 'slideshow_columns') );
49
+
50
+ // Add hook for admin footer
51
+ add_action('admin_footer', array( $this, 'admin_footer') );
52
+
53
+ // Our shortcode
54
+ add_shortcode('cycloneslider', array( $this, 'cycloneslider_shortcode') );
55
+
56
+ // Add hook for ajax operations if logged in
57
+ add_action( 'wp_ajax_cycloneslider_get_video', array( $this, 'cycloneslider_get_video' ) );
58
+ } // end constructor
59
+
60
+
61
+ /**
62
+ * Add js and css for WP media manager.
63
+ */
64
+ public function register_wp_media(){
65
+ global $wp_version;
66
+
67
+ if('cycloneslider' == get_post_type()){ /* Load only scripts here and not on all admin pages */
68
+
69
+ if ( version_compare( $wp_version, '3.5', '<' ) ) { // Use old media manager
70
+
71
+ wp_enqueue_style('thickbox');
72
+
73
+ wp_enqueue_script('media-upload');
74
+ wp_enqueue_script('thickbox');
75
+
76
+ } else {
77
+ // Required media files for new media manager. Since WP 3.5+
78
+ wp_enqueue_media();
79
+ }
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Admin js and css
85
+ */
86
+ public function register_admin_scripts() {
87
+
88
+ if('cycloneslider' == get_post_type()){ /* Load only scripts here and not on all admin pages */
89
+
90
+ wp_enqueue_style( 'cycloneslider-admin-styles', self::url().'css/admin.css' );
91
+
92
+ //scripts
93
+ wp_dequeue_script( 'autosave' );//disable autosave
94
+
95
 
96
+ wp_enqueue_script('jquery-ui-sortable');
97
+
98
+ wp_enqueue_script( 'store', self::url().'js/store-json2.min.js', array('jquery') );
99
+
100
+ wp_register_script( 'cycloneslider-admin-script', self::url().'js/admin.js', array('jquery') );
101
+ wp_localize_script( 'cycloneslider-admin-script', 'cycloneslider_admin_vars',
102
+ array(
103
+ 'title' => __( 'Select an image', 'cycloneslider' ), // This will be used as the default title
104
+ 'button' => __( 'Add to Slide', 'cycloneslider' ) // This will be used as the default button text
105
+ )
106
+ );
107
+ wp_enqueue_script( 'cycloneslider-admin-script');
108
+
109
+ }
110
+ }
111
+
112
+ /**
113
+ * Registers and enqueues frontend-specific scripts.
114
+ */
115
+ public function register_plugin_scripts() {
116
+ /*** Styles ***/
117
+ wp_enqueue_style( 'cyclone-templates-styles', self::url().'css/templates.css' );
118
+
119
+ /*** Scripts ***/
120
+ wp_enqueue_script( 'cyclone-slider', self::url().'js/cyclone-slider.min.js', array('jquery') ); //Consolidated cycle2 script and plugins
121
+
122
+ wp_enqueue_script( 'cyclone-templates-scripts', self::url().'js/templates.js', array('jquery') );//Contains our combined css from ALL templates
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
 
124
+ }
125
+
126
+ /**
127
+ * Create Post Types
128
+ *
129
+ * Create custom post for slideshows
130
+ */
131
+ public function create_post_types() {
132
+ register_post_type( 'cycloneslider',
133
+ array(
134
+ 'labels' => array(
135
+ 'name' => __('Cyclone Slider', 'cycloneslider'),
136
+ 'singular_name' => __('Slideshow', 'cycloneslider'),
137
+ 'add_new' => __('Add Slideshow', 'cycloneslider'),
138
+ 'add_new_item' => __('Add New Slideshow', 'cycloneslider'),
139
+ 'edit_item' => __('Edit Slideshow', 'cycloneslider'),
140
+ 'new_item' => __('New Slideshow', 'cycloneslider'),
141
+ 'view_item' => __('View Slideshow', 'cycloneslider'),
142
+ 'search_items' => __('Search Slideshows', 'cycloneslider'),
143
+ 'not_found' => __('No slideshows found', 'cycloneslider'),
144
+ 'not_found_in_trash' => __('No slideshows found in Trash', 'cycloneslider')
145
+ ),
146
+ 'supports' => array('title'),
147
+ 'public' => false,
148
+ 'exclude_from_search' => true,
149
+ 'show_ui' => true,
150
+ 'menu_position' => 100
151
+ )
152
+ );
153
+ }
154
+
155
+ /**
156
+ * Add custom messages
157
+ *
158
+ * @return array Messages for cyclone
159
+ */
160
+ public function post_updated_messages($messages){
161
+ global $post, $post_ID;
162
+ $messages['cycloneslider'] = array(
163
+ 0 => '',
164
+ 1 => sprintf( __( 'Slideshow updated. Shortcode is [cycloneslider id="%s"]', 'cycloneslider' ), $post->post_name),
165
+ 2 => __( 'Custom field updated.', 'cycloneslider' ),
166
+ 3 => __( 'Custom field deleted.', 'cycloneslider' ),
167
+ 4 => __( 'Slideshow updated.', 'cycloneslider' ),
168
+ 5 => __( 'Slideshow updated.', 'cycloneslider' ),
169
+ 6 => sprintf( __( 'Slideshow published. Shortcode is [cycloneslider id="%s"]', 'cycloneslider' ), $post->post_name),
170
+ 7 => __( 'Slideshow saved.', 'cycloneslider' ),
171
+ 8 => __( 'Slideshow updated.', 'cycloneslider' ),
172
+ 9 => __( 'Slideshow updated.', 'cycloneslider' ),
173
+ 10 => __( 'Slideshow updated.', 'cycloneslider' ),
174
+ 101 => sprintf( __( 'Templates CSS could not be saved. Make sure %stemplates.css is writable.', 'cycloneslider' ), self::path().'css'.DIRECTORY_SEPARATOR),
175
+ 102 => sprintf( __( 'Templates JS could not be saved. Make sure %stemplates.js is writable.', 'cycloneslider' ), self::path().'js'.DIRECTORY_SEPARATOR)
176
+ );
177
+ return $messages;
178
+ }
179
+
180
+ /**
181
+ * Show custom messages
182
+ *
183
+ * @return array The array of locations containing path and url
184
+ */
185
+ public function throw_message($location) {
186
+ $location = add_query_arg( 'message', $this->message_id, $location );
187
+ $this->message_id = 0;
188
+ return $location;
189
+ }
190
+
191
+ /**
192
+ * Add Meta Boxes
193
+ *
194
+ * Add custom metaboxes to our custom post type
195
+ */
196
+ public function add_meta_boxes(){
197
+ add_meta_box(
198
+ 'cyclone-slides-metabox',
199
+ __('Slides', 'cycloneslider'),
200
+ array( $this, 'render_slides_meta_box' ),
201
+ 'cycloneslider' ,
202
+ 'normal',
203
+ 'high'
204
+ );
205
+ add_meta_box(
206
+ 'cyclone-slider-properties-metabox',
207
+ __('Slideshow Settings', 'cycloneslider'),
208
+ array( $this, 'render_slider_properties_meta_box' ),
209
+ 'cycloneslider' ,
210
+ 'side',
211
+ 'low'
212
+ );
213
+ add_meta_box(
214
+ 'cyclone-slider-templates-metabox',
215
+ __('Slideshow Templates', 'cycloneslider'),
216
+ array( $this, 'render_slider_templates_meta_box' ),
217
+ 'cycloneslider' ,
218
+ 'normal',
219
+ 'low'
220
+ );
221
+ }
222
+
223
+ /**
224
+ * Metabox for slides
225
+ */
226
+ public function render_slides_meta_box($post){
227
+
228
+ // Use nonce for verification
229
+ echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
230
+
231
+ $slider_settings = self::get_slideshow_settings($post->ID);
232
+ $slider_metas = self::get_slides($post->ID);
233
+
234
+ ?>
235
+ <div class="cs-sortables" data-post-id="<?php echo $post->ID; ?>">
236
+ <?php
237
+ if(is_array($slider_metas) and count($slider_metas)>0):
238
+
239
+ foreach($slider_metas as $i=>$slider_meta):
240
+
241
+ $image_url = $this->get_slide_img_thumb($slider_meta['id']);
242
+ $image_url = apply_filters('cycloneslider_preview_url', $image_url, $slider_meta);
243
+ $box_title = apply_filters('cycloneslider_box_title', __('Slide', 'cycloneslider'), $slider_meta).' '.($i+1);
244
+
245
+ include(self::get_admin_parts_folder().'box.php');
246
+ endforeach;
247
+
248
+ endif;
249
+ ?>
250
+ </div><!-- end .cycloneslider-sortable -->
251
+
252
+ <input type="button" value="<?php _e('Add Slide', 'cycloneslider'); ?>" class="cs-add-slide button-secondary" />
253
+ <?php
254
+ }
255
+
256
+ /**
257
+ * Metabox for slide properties
258
+ */
259
+ public function render_slider_properties_meta_box($post){
260
+ // Use nonce for verification
261
+ echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
262
+
263
+ $slider_settings = self::get_slideshow_settings($post->ID);
264
+
265
+ if($this->debug){
266
+ self::debug($slider_settings);
267
+ }
268
+
269
+ include(self::get_admin_parts_folder() . 'slider-properties.php');
270
+ }
271
+
272
+ /**
273
+ * Metabox for templates
274
+ */
275
+ public function render_slider_templates_meta_box($post){
276
+ // Use nonce for verification
277
+ echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
278
+
279
+ $slider_settings = self::get_slideshow_settings($post->ID);
280
+
281
+ $templates = self::get_all_templates();
282
+ if($this->debug){
283
+ self::debug($templates);
284
+ }
285
+ include(self::get_admin_parts_folder() . 'template-selection.php');
286
+ }
287
+
288
+ /**
289
+ * Save post hook
290
+ */
291
+ public function save_post($post_id){
292
+ global $cyclone_slider_saved_done;
293
+
294
+ // Stop! We have already saved..
295
+ if($cyclone_slider_saved_done){
296
+ return $post_id;
297
+ }
298
+
299
+ // Verify nonce
300
+ $nonce_name = 'cycloneslider_metabox_nonce';
301
+ if (!empty($_POST[$nonce_name])) {
302
+ if (!wp_verify_nonce($_POST[$nonce_name], basename(__FILE__))) {
303
+ return $post_id;
304
+ }
305
+ } else {
306
+ return $post_id; // Make sure we cancel on missing nonce!
307
+ }
308
+
309
+ // Check autosave
310
+ if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
311
+ return $post_id;
312
+ }
313
+
314
+ do_action('cycloneslider_before_save', $post_id);
315
+
316
+ // Save slides
317
+ $this->save_slides($post_id);
318
+
319
+ // Save slideshow ettings
320
+ $this->save_settings($post_id);
321
+
322
+ // Compile css and js
323
+ $this->compile_css($post_id);
324
+ $this->compile_js($post_id);
325
+
326
+
327
+ }
328
+
329
+ /**
330
+ * Save slides sanitize if needed
331
+ */
332
+ public function save_slides($post_id){
333
+ $slides = array();
334
+ if(isset($_POST['cycloneslider_metas'])){
335
+
336
+ $i=0;//always start from 0
337
+ foreach($_POST['cycloneslider_metas'] as $slide){
338
+ $slide = wp_parse_args($slide, self::get_slide_defaults());
339
+ $slides[$i]['id'] = (int) ($slide['id']);
340
+ $slides[$i]['type'] = sanitize_text_field($slide['type']);
341
+
342
+ $slides[$i]['link'] = esc_url_raw($slide['link']);
343
+ $slides[$i]['title'] = wp_kses_post($slide['title']);
344
+ $slides[$i]['description'] = wp_kses_post($slide['description']);
345
+ $slides[$i]['link_target'] = sanitize_text_field($slide['link_target']);
346
+
347
+ $slides[$i]['img_alt'] = sanitize_text_field($slide['img_alt']);
348
+ $slides[$i]['img_title'] = sanitize_text_field($slide['img_title']);
349
+
350
+ $slides[$i]['enable_slide_effects'] = (int) ($slide['enable_slide_effects']);
351
+ $slides[$i]['fx'] = sanitize_text_field($slide['fx']);
352
+ $slides[$i]['speed'] = sanitize_text_field($slide['speed']);
353
+ $slides[$i]['timeout'] = sanitize_text_field($slide['timeout']);
354
+ $slides[$i]['tile_count'] = sanitize_text_field($slide['tile_count']);
355
+ $slides[$i]['tile_delay'] = sanitize_text_field($slide['tile_delay']);
356
+ $slides[$i]['tile_vertical'] = sanitize_text_field($slide['tile_vertical']);
357
+
358
+ $slides[$i]['video_thumb'] = esc_url_raw($slide['video_thumb']);
359
+ $slides[$i]['video_url'] = esc_url_raw($slide['video_url']);
360
+ $slides[$i]['video'] = $slide['video'];
361
+
362
+ $slides[$i]['custom'] = $slide['custom'];
363
+
364
+ $i++;
365
+ }
366
+
367
+
368
+ }
369
+ $slides = apply_filters('cycloneslider_slides', $slides); //do filter before saving
370
+
371
+ delete_post_meta($post_id, '_cycloneslider_metas');
372
+ update_post_meta($post_id, '_cycloneslider_metas', $slides);
373
+ }
374
+
375
+ /**
376
+ * Save slideshow settings
377
+ */
378
+ public function save_settings($post_id){
379
+ if(isset($_POST['cycloneslider_settings'])){
380
+ $_POST['cycloneslider_settings'] = wp_parse_args($_POST['cycloneslider_settings'], self::get_slideshow_defaults());
381
+ $settings = array();
382
+ $settings['template'] = sanitize_text_field($_POST['cycloneslider_settings']['template']);
383
+ $settings['fx'] = sanitize_text_field($_POST['cycloneslider_settings']['fx']);
384
+ $settings['timeout'] = (int) ($_POST['cycloneslider_settings']['timeout']);
385
+ $settings['speed'] = (int) ($_POST['cycloneslider_settings']['speed']);
386
+ $settings['width'] = (int) ($_POST['cycloneslider_settings']['width']);
387
+ $settings['height'] = (int) ($_POST['cycloneslider_settings']['height']);
388
+ $settings['hover_pause'] = sanitize_text_field($_POST['cycloneslider_settings']['hover_pause']);
389
+ $settings['show_prev_next'] = (int) ($_POST['cycloneslider_settings']['show_prev_next']);
390
+ $settings['show_nav'] = (int) ($_POST['cycloneslider_settings']['show_nav']);
391
+ $settings['tile_count'] = (int) ($_POST['cycloneslider_settings']['tile_count']);
392
+ $settings['tile_delay'] = (int) ($_POST['cycloneslider_settings']['tile_delay']);
393
+ $settings['tile_vertical'] = sanitize_text_field($_POST['cycloneslider_settings']['tile_vertical']);
394
+ $settings['random'] = (int) ($_POST['cycloneslider_settings']['random']);
395
+ $settings['resize'] = (int) ($_POST['cycloneslider_settings']['resize']);
396
+
397
+ $settings = apply_filters('cycloneslider_settings', $settings); //do filter before saving
398
+
399
+ delete_post_meta($post_id, '_cycloneslider_settings');
400
+ update_post_meta($post_id, '_cycloneslider_settings', $settings);
401
+ }
402
+ }
403
+
404
+
405
+
406
+ /**
407
+ * Pulls style.css from templates and combines it into one
408
+ */
409
+ private function compile_css($post_id){
410
+ $ds = DIRECTORY_SEPARATOR;
411
+ $content = '';
412
+
413
+ if(file_exists(self::path()."css{$ds}common.min.css")){
414
+ $content .= file_get_contents(self::path()."css{$ds}common.min.css");
415
+ }
416
+
417
+ $template_folders = self::get_all_templates();
418
+
419
+ foreach($template_folders as $name=>$folder){
420
+ $style = $folder['path']."{$ds}style.min.css"; //Minified version
421
+ $style2 = $folder['path']."{$ds}style.css"; //Unminified version, for old templates to work
422
+ if(file_exists($style)){
423
+ $content .= "\r\n".str_replace('$tpl', $folder['url'], file_get_contents($style));//apply url and print css
424
+ } else if(file_exists($style2)){
425
+ $content .= "\r\n".str_replace('$tpl', $folder['url'], file_get_contents($style2));//apply url and print css
426
+ }
427
+ }
428
+
429
+ $save_to = self::path()."css{$ds}templates.css";
430
+
431
+ if( @file_put_contents($save_to, $content, LOCK_EX) === false){
432
+ $this->message_id = 101;
433
+ add_filter('redirect_post_location', array($this, 'throw_message'));
434
+ }
435
+ }
436
+
437
+ /**
438
+ * Pulls script.js from templates and combines it into one
439
+ */
440
+ private function compile_js($post_id){
441
+ $ds = DIRECTORY_SEPARATOR;
442
+ $content = '';
443
+
444
+ $template_folders = self::get_all_templates();
445
+
446
+ foreach($template_folders as $name=>$folder){
447
+
448
+ $js = $folder['path']."{$ds}script.min.js"; //Minified version
449
+ $js2 = $folder['path']."{$ds}script.js"; //Unminified version, for old templates to work
450
+ if(file_exists($js)){
451
+ $content .= file_get_contents($js)."\r\n";//Pull contents
452
+ } else if(file_exists($js2)){
453
+ $content .= file_get_contents($js2)."\r\n";
454
+ }
455
+
456
+ }
457
+
458
+ $save_to = self::path()."js{$ds}templates.js";
459
+ if( @file_put_contents($save_to, $content, LOCK_EX) === false){
460
+ $this->message_id = 102;
461
+ add_filter('redirect_post_location', array($this, 'throw_message'));
462
+ }
463
+ }
464
+
465
+ /**
466
+ * Get slide image thumb from id. False on fail
467
+ */
468
+ private function get_slide_img_thumb($attachment_id){
469
+ $attachment_id = (int) $attachment_id;
470
+ if($attachment_id > 0){
471
+ $image_url = wp_get_attachment_image_src( $attachment_id, 'medium', true );
472
+ $image_url = (is_array($image_url)) ? $image_url[0] : '';
473
+ return $image_url;
474
+ }
475
+ return false;
476
+ }
477
+
478
+ /**
479
+ * Replace text in media button for WP < 3.5
480
+ */
481
+ public function replace_text_in_thickbox($translation, $text, $domain ) {
482
+ $http_referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
483
+ $req_referrer = isset($_REQUEST['referer']) ? $_REQUEST['referer'] : '';
484
+ if(strpos($http_referrer, 'cycloneslider')!==false or $req_referrer=='cycloneslider') {
485
+ if ( 'default' == $domain and 'Insert into Post' == $text )
486
+ {
487
+ return 'Add to Slide';
488
+ }
489
+ }
490
+ return $translation;
491
+ }
492
+
493
+ // Add attachment ID as html5 data attr in thickbox
494
+ public function image_send_to_editor( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ){
495
+ if(strpos($html, '<img data-id="')===false){
496
+ $html = str_replace('<img', '<img data-id="'.$id.'" ', $html);
497
+ }
498
+ return $html;
499
+ }
500
+
501
+ // Modify columns
502
+ public function slideshow_columns($columns) {
503
+ $columns = array();
504
+ $columns['title']= __('Slideshow Name', 'cycloneslider');
505
+ $columns['template']= __('Template', 'cycloneslider');
506
+ $columns['images']= __('Images', 'cycloneslider');
507
+ $columns['id']= __('Slideshow ID', 'cycloneslider');
508
+ $columns['shortcode']= __('Shortcode', 'cycloneslider');
509
+ return $columns;
510
+ }
511
+
512
+ // Add content to custom columns
513
+ public function custom_column( $column_name, $post_id ){
514
+ if ($column_name == 'template') {
515
+ $settings = self::get_slideshow_settings($post_id);
516
+ echo ucwords($settings['template']);
517
+ }
518
+ if ($column_name == 'images') {
519
+ echo '<div style="text-align:center; max-width:40px;">' . self::get_image_count($post_id) . '</div>';
520
+ }
521
+ if ($column_name == 'id') {
522
+ $post = get_post($post_id);
523
+ echo $post->post_name;
524
+ }
525
+ if ($column_name == 'shortcode') {
526
+ $post = get_post($post_id);
527
+ echo '[cycloneslider id="'.$post->post_name.'"]';
528
+ }
529
+ }
530
+
531
+ // Hook to admin footer
532
+ public function admin_footer() {
533
+ $this->slide_box_for_js();
534
+ }
535
+
536
+ // For js adding of box
537
+ public function slide_box_for_js(){
538
+ if(get_post_type()=='cycloneslider'){
539
+ $box_title = __('Slide *', 'cycloneslider');
540
+ $image_url = '';
541
+ $i = '{id}';
542
+ $slider_meta = self::get_slide_defaults();
543
+ foreach($slider_meta as $key=>$value){
544
+ $slider_meta[$key] = '';
545
+ }
546
+ $slider_meta['type'] = 'image';
547
+ ?>
548
+ <div class="cs-slide-skeleton">
549
+ <?php
550
+ include(self::get_admin_parts_folder().'box.php');
551
+ ?>
552
+ </div><!-- end .cycloneslider-box-template -->
553
+ <?php
554
+ }
555
+ }
556
+
557
+ // Compare the value from admin and shortcode. If shortcode value is present and not empty, use it, otherwise return admin value
558
+ public function get_comp_slider_setting($admin_val, $shortcode_val){
559
+ if($shortcode_val!==null){//make sure its really null and not just int zero 0
560
+ return $shortcode_val;
561
+ }
562
+ return $admin_val;
563
+ }
564
+
565
+ /* Our shortcode function.
566
+ Slider settings comes from both admin settings and shortcode attributes.
567
+ Shortcode attributes, if present, will override the admin settings.
568
+ */
569
+ public function cycloneslider_shortcode($shortcode_settings) {
570
+ // Process shortcode settings and return only allowed vars
571
+ $shortcode_settings = shortcode_atts(
572
+ array(
573
+ 'id' => 0,
574
+ 'template' => null,
575
+ 'fx' => null,
576
+ 'speed' => null,
577
+ 'timeout' => null,
578
+ 'width' => null,
579
+ 'height' => null,
580
+ 'hover_pause' => null,
581
+ 'show_prev_next' => null,
582
+ 'show_nav' => null,
583
+ 'tile_count' => null,
584
+ 'tile_delay' => null,
585
+ 'tile_vertical' => null,
586
+ 'random' => null,
587
+ 'resize' => null
588
+ ),
589
+ $shortcode_settings
590
+ );
591
+ $slider_id = esc_attr($shortcode_settings['id']);// Slideshow slug
592
+
593
+ $cycle_options = array();
594
+ $this->slider_count++;//make each call to shortcode unique
595
+ // Get slideshow by id
596
+ $args = array(
597
+ 'post_type' => 'cycloneslider',
598
+ 'order'=>'ASC',
599
+ 'posts_per_page' => 1,
600
+ 'name'=> $slider_id
601
+ );
602
+
603
+ $args = apply_filters('cycloneslider_wp_query_args', $args);
604
+
605
+ $my_query = new WP_Query($args);
606
+
607
+ if($my_query->have_posts()):
608
+ while ( $my_query->have_posts() ) : $my_query->the_post();
609
+
610
+ $meta = get_post_custom();
611
+ $admin_settings = self::get_slideshow_settings(get_the_ID());
612
+ $slider_metas = self::get_slides(get_the_ID());
613
+
614
+ $image_count = 0; // Number of image slides
615
+ $video_count = 0; // Number of video slides
616
+ $custom_count = 0; // Number of custom slides
617
+ foreach($slider_metas as $i=>$slider_meta){
618
+ $slider_metas[$i]['title'] = __($slider_meta['title']);
619
+ $slider_metas[$i]['description'] = __($slider_meta['description']);
620
+ if($slider_metas[$i]['type']=='image'){
621
+ $image_count++;
622
+ } else if($slider_metas[$i]['type']=='video'){
623
+ $video_count++;
624
+ } else if($slider_metas[$i]['type']=='custom'){
625
+ $custom_count++;
626
+ }
627
+ }
628
+ $slides = $this->get_slides_from_meta($slider_metas);
629
+
630
+ $template = $this->get_comp_slider_setting($admin_settings['template'], $shortcode_settings['template']);
631
+ $template = esc_attr($template===null ? 'default' : $template);//fallback to default
632
+ $slider_settings['fx'] = esc_attr($this->get_comp_slider_setting($admin_settings['fx'], $shortcode_settings['fx']));
633
+ $slider_settings['speed'] = (int) $this->get_comp_slider_setting($admin_settings['speed'], $shortcode_settings['speed']);
634
+ $slider_settings['timeout'] = (int) $this->get_comp_slider_setting($admin_settings['timeout'], $shortcode_settings['timeout']);
635
+ $slider_settings['width'] = (int) $this->get_comp_slider_setting($admin_settings['width'], $shortcode_settings['width']);
636
+ $slider_settings['height'] = (int) $this->get_comp_slider_setting($admin_settings['height'], $shortcode_settings['height']);
637
+ $slider_settings['hover_pause'] = $this->get_comp_slider_setting($admin_settings['hover_pause'], $shortcode_settings['hover_pause']);
638
+ $slider_settings['show_prev_next'] = (int) $this->get_comp_slider_setting($admin_settings['show_prev_next'], $shortcode_settings['show_prev_next']);
639
+ $slider_settings['show_nav'] = (int) $this->get_comp_slider_setting($admin_settings['show_nav'], $shortcode_settings['show_nav']);
640
+
641
+ $slider_settings['tile_count'] = $this->get_comp_slider_setting($admin_settings['tile_count'], $shortcode_settings['tile_count']);
642
+ $slider_settings['tile_delay'] = $this->get_comp_slider_setting($admin_settings['tile_delay'], $shortcode_settings['tile_delay']);
643
+ $slider_settings['tile_vertical'] = $this->get_comp_slider_setting($admin_settings['tile_vertical'], $shortcode_settings['tile_vertical']);
644
+
645
+ $slider_settings['random'] = $this->get_comp_slider_setting($admin_settings['random'], $shortcode_settings['random']);
646
+ $slider_settings['resize'] = $this->get_comp_slider_setting($admin_settings['resize'], $shortcode_settings['resize']);
647
+
648
+ if($slider_settings['random']){
649
+ shuffle($slider_metas);
650
+ }
651
+
652
+ $slider = $this->get_slider_template($slider_id, $template, $slides, $slider_metas, $slider_settings, $this->slider_count, $image_count, $video_count, $custom_count);
653
+
654
+ endwhile;
655
+
656
+ wp_reset_postdata();
657
+
658
+ else:
659
+ $slider = __('[Slideshow not found]', 'cycloneslider');
660
+ endif;
661
+
662
+ return $slider;
663
+ }
664
+
665
+ // Get slideshow template
666
+ public function get_slider_template($slider_id, $template_name, $slides, $slider_metas, $slider_settings, $slider_count, $image_count, $video_count, $custom_count){
667
+
668
+ $template = get_stylesheet_directory()."/cycloneslider/{$template_name}/slider.php";
669
+ if(@is_file($template)){
670
+ ob_start();
671
+ include($template);
672
+ $html = ob_get_clean();
673
+ return $html = $this->trim_white_spaces($html);
674
+ }
675
+
676
+ $template = self::get_templates_folder()."{$template_name}/slider.php";
677
+ if(@is_file($template)) {
678
+ ob_start();
679
+ include($template);
680
+ $html = ob_get_clean();
681
+ return $html = $this->trim_white_spaces($html);
682
+ }
683
+
684
+ return sprintf(__('[Template "%s" not found]', 'cycloneslider'), $template_name);
685
+ }
686
+
687
+ public function trim_white_spaces($buffer){
688
+ $search = array(
689
+ '/\>[^\S ]+/s', //strip whitespaces after tags, except space
690
+ '/[^\S ]+\</s', //strip whitespaces before tags, except space
691
+ '/(\s)+/s' // shorten multiple whitespace sequences
692
+ );
693
+ $replace = array(
694
+ '>',
695
+ '<',
696
+ '\\1'
697
+ );
698
+ return preg_replace($search, $replace, $buffer);
699
+ }
700
+
701
+ // Return array of slide urls from meta
702
+ public function get_slides_from_meta($slider_metas){
703
+ $slides = array();
704
+ if(is_array($slider_metas)){
705
+ foreach($slider_metas as $slider_meta){
706
+ $attachment_id = (int) $slider_meta['id'];
707
+ $image_url = wp_get_attachment_url($attachment_id);
708
+ $image_url = ($image_url===false) ? '' : $image_url;
709
+ $slides[] = $image_url;
710
+ }
711
+ }
712
+ return $slides;
713
+ }
714
+
715
+
716
+
717
+
718
+ /**
719
+ * GLOBAL STATIC FUNCTIONS
720
+ */
721
+
722
+ /**
723
+ * Get All Slideshows
724
+ *
725
+ * Get all saves slideshow
726
+ *
727
+ * @return array The array of slideshows
728
+ */
729
+ public static function get_all_slideshows(){
730
+ $args = array(
731
+ 'post_type' => 'cycloneslider',
732
+ 'posts_per_page' => -1
733
+ );
734
+ $my_query = new WP_Query($args);
735
+ $slideshows = array();
736
+ while ( $my_query->have_posts() ) : $my_query->the_post();
737
+ $slideshows[] = $my_query->post;
738
+ endwhile;
739
+
740
+ wp_reset_postdata();
741
+
742
+ return $slideshows;
743
+ }
744
+
745
+ /**
746
+ * Get Templates in used
747
+ *
748
+ * Get all templates that are used by slideshow
749
+ *
750
+ * @return array The array of templates
751
+ */
752
+ public static function get_templates_in_used(){
753
+ $slideshows = self::get_all_slideshows();
754
+ $templates_used = array();
755
+ foreach($slideshows as $slideshow) {
756
+ $settings = self::get_slideshow_settings($slideshow->ID);
757
+ $templates_used[$settings['template']] = $settings['template'];
758
+ }
759
+
760
+ return $templates_used;
761
+ }
762
+
763
+ /**
764
+ * Get All Locations
765
+ *
766
+ * Get templates folders in plugin and theme folders
767
+ *
768
+ * @return array The array of locations containing path and url
769
+ */
770
+ public static function get_all_locations(){
771
+ $ds = DIRECTORY_SEPARATOR;
772
+ $template_locations = array();
773
+ $template_locations[0] = array(
774
+ 'path'=>self::get_templates_folder(), //this resides in the plugin
775
+ 'url'=>self::url().'templates/'
776
+ );
777
+ $template_locations[1] = array(
778
+ 'path'=> realpath(get_stylesheet_directory())."{$ds}cycloneslider{$ds}",//this resides in the current theme or child theme
779
+ 'url'=> get_stylesheet_directory_uri()."/cycloneslider/"
780
+ );
781
+ return $template_locations;
782
+ }
783
+
784
+ /**
785
+ * Get All Templates
786
+ *
787
+ * Get all templates from all locations. Returns array of templates with keys as name containing array of path and url
788
+ *
789
+ * @return array The array of templates containing path and url
790
+ */
791
+ public static function get_all_templates(){
792
+ $template_locations = self::get_all_locations();
793
+ $template_folders = array();
794
+ foreach($template_locations as $location){
795
+ if($files = @scandir($location['path'])){
796
+ $c = 0;
797
+ foreach($files as $name){
798
+ if($name!='.' and $name!='..' and is_dir($location['path'].$name) and @file_exists($location['path'].$name.DIRECTORY_SEPARATOR.'slider.php') ){ // Check if its a directory
799
+ $ini_array['slide_type'] = array('image');// Default
800
+ if(@file_exists($location['path'].$name.DIRECTORY_SEPARATOR.'config.txt')){
801
+ $ini_array = parse_ini_file($location['path'].$name.DIRECTORY_SEPARATOR.'config.txt'); //Parse ini to get slide types supported
802
+ }
803
+ $name = sanitize_title($name);// Change space to dash and all lowercase
804
+ $template_folders[$name] = array( // Here we override template of the same names. If there is a template with the same name in plugin and theme directory, the one in theme will take over
805
+ 'path'=>$location['path'].$name,
806
+ 'url'=>$location['url'].$name,
807
+ 'supports' => $ini_array['slide_type']
808
+ );
809
+ }
810
+ }
811
+ }
812
+ }
813
+ return $template_folders;
814
+ }
815
+
816
+ /**
817
+ * Gets the slideshow settings. Defaults and filters are applied.
818
+ *
819
+ * @param int $slideshow_id Post ID of the slideshow custom post.
820
+ * @return array The array of slideshow settings
821
+ */
822
+ public static function get_slideshow_settings($slideshow_id) {
823
+ $meta = get_post_custom($slideshow_id);
824
+ $slideshow_settings = array();
825
+ if(isset($meta['_cycloneslider_settings'][0]) and !empty($meta['_cycloneslider_settings'][0])){
826
+ $slideshow_settings = maybe_unserialize($meta['_cycloneslider_settings'][0]);
827
+ }
828
+ $slideshow_settings = wp_parse_args($slideshow_settings, self::get_slideshow_defaults() );
829
+ return apply_filters('cycloneslider_get_slideshow', $slideshow_settings);
830
+ }
831
+
832
+ /**
833
+ * Gets the slides. Defaults and filters are applied.
834
+ *
835
+ * @param int $slideshow_id Post ID of the slideshow custom post.
836
+ * @return array The array of slides settings
837
+ */
838
+ public static function get_slides($slideshow_id){
839
+ $meta = get_post_custom($slideshow_id);
840
+
841
+ if(isset($meta['_cycloneslider_metas'][0]) and !empty($meta['_cycloneslider_metas'][0])){
842
+ $slides = maybe_unserialize($meta['_cycloneslider_metas'][0]);
843
+ $defaults = self::get_slide_defaults();
844
+
845
+ foreach($slides as $i=>$slide){
846
+ $slides[$i] = wp_parse_args($slide, $defaults);
847
+ }
848
+
849
+ return apply_filters('cycloneslider_get_slides', $slides);
850
+ }
851
+ return false;
852
+ }
853
+
854
+ /**
855
+ * Gets the slideshow default settings.
856
+ *
857
+ * @return array The array of slideshow defaults
858
+ */
859
+ public static function get_slideshow_defaults(){
860
+ return array(
861
+ 'template' => 'default',
862
+ 'fx' => 'fade',
863
+ 'timeout' => '4000',
864
+ 'speed' => '1000',
865
+ 'width' => '960',
866
+ 'height' => '300',
867
+ 'hover_pause' => 'true',
868
+ 'show_prev_next' => '1',
869
+ 'show_nav' => '1',
870
+ 'tile_count' => '7',
871
+ 'tile_delay' => '100',
872
+ 'tile_vertical' => 'true',
873
+ 'random' => 0,
874
+ 'resize' => 1
875
+ );
876
+ }
877
+
878
+ /**
879
+ * Gets the slide default settings.
880
+ *
881
+ * @return array The array of slide defaults
882
+ */
883
+ public static function get_slide_defaults(){
884
+ return array(
885
+ 'enable_slide_effects'=>0,
886
+ 'type' => 'image',
887
+ 'id' => '',
888
+ 'link' => '',
889
+ 'title' => '',
890
+ 'description' => '',
891
+ 'link_target' => '_self',
892
+ 'fx' => 'default',
893
+ 'speed' => '',
894
+ 'timeout' => '',
895
+ 'tile_count' => '7',
896
+ 'tile_delay' => '100',
897
+ 'tile_vertical' => 'true',
898
+ 'img_alt' => '',
899
+ 'img_title' => '',
900
+ 'video_thumb' => '',
901
+ 'video_url' => '',
902
+ 'video' => '',
903
+ 'custom' => ''
904
+ );
905
+ }
906
+
907
+ /**
908
+ * Gets the slide effects.
909
+ *
910
+ * @return array The array of slide effects
911
+ */
912
+ public static function get_slide_effects(){
913
+ return array(
914
+ 'fade'=>'Fade',
915
+ 'fadeout'=>'Fade Out',
916
+ 'none'=>'None',
917
+ 'scrollHorz'=>'Scroll Horizontally',
918
+ 'tileBlind'=>'Tile Blind',
919
+ 'tileSlide'=>'Tile Slide'
920
+ );
921
+ }
922
+
923
+ /**
924
+ * Gets the path to plugin
925
+ *
926
+ * @return string Path to plugin in the filesystem with trailing slash
927
+ */
928
+ public static function path(){
929
+ return CYCLONE_PATH;
930
+ }
931
+
932
+ /**
933
+ * Gets the URL to plugin
934
+ *
935
+ * @return string URL to plugin with trailing slash
936
+ */
937
+ public static function url(){
938
+ return CYCLONE_URL;
939
+ }
940
+
941
+ /**
942
+ * Gets the path to folder of admin user interface parts with trailing slash
943
+ *
944
+ * @return string Path to folder
945
+ */
946
+ public static function get_admin_parts_folder(){
947
+ return self::path() . 'inc'.DIRECTORY_SEPARATOR.'admin-parts'.DIRECTORY_SEPARATOR;
948
+ }
949
+
950
+ /**
951
+ * Gets the path to templates folder
952
+ *
953
+ * @return string Path to templates inside the plugin with trailing slash
954
+ */
955
+ public static function get_templates_folder(){
956
+ return self::path() . 'templates'.DIRECTORY_SEPARATOR;
957
+ }
958
+
959
+ /**
960
+ * Gets the number of images of slideshow
961
+ *
962
+ * @param int Slideshow id
963
+ * @return int Total images or zero
964
+ */
965
+ public static function get_image_count($slideshow_id){
966
+ $meta = get_post_custom($slideshow_id);
967
+
968
+ if(isset($meta['_cycloneslider_metas'][0]) and !empty($meta['_cycloneslider_metas'][0])){
969
+ $slides = maybe_unserialize($meta['_cycloneslider_metas'][0]);
970
+
971
+ return count($slides);
972
+ }
973
+ return 0;
974
+ }
975
+
976
+ /**
977
+ * Print with a twist
978
+ */
979
+ public static function debug($out){
980
+ echo '<pre>'.print_r($out, true).'</pre>';
981
+ }
982
+
983
+
984
+
985
+
986
+ /**
987
+ * YOUTUBE & VIMEO
988
+ */
989
+
990
+ /**
991
+ * Ajax for getting videos
992
+ */
993
+ public function cycloneslider_get_video(){
994
+ $url = $_POST['url'];
995
+
996
+ $retval = array(
997
+ 'success' => false
998
+ );
999
+
1000
+ if (filter_var($url, FILTER_VALIDATE_URL) !== FALSE) {
1001
+
1002
+ if( $video_id = $this->get_youtube_id($url) ){ //If youtube url
1003
+ if( $embed = wp_oembed_get($url) ){ //Get embed, false on fail
1004
+ $retval = array(
1005
+ 'success' => true,
1006
+ 'url' => $this->get_youtube_thumb($video_id),
1007
+ 'embed' => $embed
1008
+ );
1009
+ }
1010
+
1011
+ } else if( $video_id = $this->get_vimeo_id($url) ){ //If vimeo url
1012
+ if( $embed = wp_oembed_get($url) ){ //Get embed, false on fail
1013
+ $retval = array(
1014
+ 'success' => true,
1015
+ 'url' => $this->get_vimeo_thumb($video_id),
1016
+ 'embed' => $embed
1017
+ );
1018
+ }
1019
+ }
1020
+ }
1021
+
1022
+ echo json_encode($retval);
1023
+ die();
1024
+ }
1025
+
1026
+ /**
1027
+ * Get video thumb url
1028
+ *
1029
+ * @param string $url A valid youtube or vimeo url
1030
+ */
1031
+ public function get_video_thumb_from_url($url){
1032
+ $url = esc_url_raw($url);
1033
+
1034
+ if ( $video_id = $this->get_youtube_id($url) ) { // A youtube url
1035
+
1036
+ return $this->get_youtube_thumb($video_id);
1037
+
1038
+ } else if( $video_id = $this->get_vimeo_id($url) ){ // A vimeo url
1039
+
1040
+ return $this->get_vimeo_thumb($video_id);
1041
+ }
1042
+
1043
+ return false;
1044
+ }
1045
+
1046
+ /**
1047
+ * Return vimeo video id
1048
+ */
1049
+ public function get_vimeo_id($url){
1050
+
1051
+ $parsed_url = parse_url($url);
1052
+ if ($parsed_url['host'] == 'vimeo.com'){
1053
+ $vimeo_id = ltrim( $parsed_url['path'], '/');
1054
+ if (is_numeric($vimeo_id)) {
1055
+ return $vimeo_id;
1056
+ }
1057
+ }
1058
+ return false;
1059
+ }
1060
+
1061
+ /**
1062
+ * Get vimeo video thumbnail image
1063
+ *
1064
+ * @param int Vimeo ID.
1065
+ * @param string Size can be: thumbnail_small, thumbnail_medium, thumbnail_large.
1066
+ *
1067
+ * @return string URL of thumbnail image.
1068
+ */
1069
+ public function get_vimeo_thumb($video_id, $size = 'thumbnail_large'){
1070
+ $vimeo = unserialize( file_get_contents('http://vimeo.com/api/v2/video/'.$video_id.'.php') );
1071
+ if( isset($vimeo[0][$size]) ){
1072
+ return $vimeo[0][$size];
1073
+ }
1074
+ return '';
1075
+ }
1076
+
1077
+ /**
1078
+ * Get youtube video thumbnail image
1079
+ *
1080
+ * @param int Youtube ID.
1081
+ *
1082
+ * @return string URL of thumbnail image.
1083
+ */
1084
+ public function get_youtube_thumb($video_id){
1085
+ return 'http://img.youtube.com/vi/'.$video_id.'/0.jpg';
1086
+ }
1087
+
1088
+ /**
1089
+ * Get youtube ID from different url formats
1090
+ *
1091
+ * @param string $url Youtube url
1092
+ * @return string Youtube URL or boolean false on fail
1093
+ */
1094
+ public function get_youtube_id($url){
1095
+ if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) {
1096
+ return false;
1097
+ }
1098
+ $parsed_url = parse_url($url);
1099
+
1100
+ if(strpos($parsed_url['host'], 'youtube.com')!==false){
1101
+ if(strpos($parsed_url['path'], '/watch')!==false){ // Regular url Eg. http://www.youtube.com/watch?v=9bZkp7q19f0
1102
+ parse_str($parsed_url['query'], $parsed_str);
1103
+ if(isset($parsed_str['v']) and !empty($parsed_str['v'])){
1104
+ return $parsed_str['v'];
1105
+ }
1106
+ } else if(strpos($parsed_url['path'], '/v/')!==false){ // "v" URL http://www.youtube.com/v/9bZkp7q19f0?version=3&autohide=1
1107
+ $id = str_replace('/v/','',$parsed_url['path']);
1108
+ if( !empty($id) ){
1109
+ return $id;
1110
+ }
1111
+ } else if(strpos($parsed_url['path'], '/embed/')!==false){ // Embed URL: http://www.youtube.com/embed/9bZkp7q19f0
1112
+ return str_replace('/embed/','',$parsed_url['path']);
1113
+ }
1114
+ } else if(strpos($parsed_url['host'], 'youtu.be')!==false){ // Shortened URL: http://youtu.be/9bZkp7q19f0
1115
+ return str_replace('/','',$parsed_url['path']);
1116
+ }
1117
+
1118
+ return false;
1119
+ }
1120
+ } // end class
1121
+
1122
  endif;
inc/class-image-resizer.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if(!class_exists('Image_Resizer')):
3
 
4
- Class Image_Resizer {
5
 
6
  // *** Class variables
7
  private $image;
1
  <?php
2
  if(!class_exists('Image_Resizer')):
3
 
4
+ class Image_Resizer {
5
 
6
  // *** Class variables
7
  private $image;
inc/class-nextgen-integration.php CHANGED
@@ -177,6 +177,6 @@ if(!class_exists('Nextgen_Integration')):
177
 
178
  } // end class
179
 
180
- new Nextgen_Integration();
181
 
182
  endif;
177
 
178
  } // end class
179
 
180
+ $cyclone_slider_nextgen_integration = new Nextgen_Integration();
181
 
182
  endif;
inc/functions.php ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Cyclone Slide Image URL
5
+ *
6
+ * Gets the url of the slide image
7
+ *
8
+ * @return string The url to the image. False on failure.
9
+ */
10
+ function cyclone_slide_image_url( $original_attachment_id, $width, $height, $params ){
11
+ $param_defaults = array(
12
+ 'fresh_resize' => false,
13
+ 'current_slide_settings' => array(),
14
+ 'slideshow_settings' => array(),
15
+ 'resize_option' => 'auto',
16
+ 'resize_quality' => 90
17
+ );
18
+ $params = wp_parse_args($params, $param_defaults);
19
+ $params = apply_filters('cycloneslider_thumbnailer_params', $params);
20
+
21
+ // Get url to full image, its width and height
22
+ $image_dimensions = wp_get_attachment_image_src($original_attachment_id, 'full');
23
+ if(!$image_dimensions){
24
+ return false;
25
+ }
26
+
27
+ // If orig image width and height is the same as slideshow width and height, do not resize and return url
28
+ list($image_url, $orig_width, $orig_height) = $image_dimensions;
29
+ $image_url = apply_filters('cycloneslider_image_url', $image_url, $params['current_slide_settings']);
30
+ if($orig_width == $width and $orig_height == $height){
31
+ return $image_url;
32
+ }
33
+
34
+ //If resize is no, return url
35
+ if( isset($params['slideshow_settings']['resize']) and !$params['slideshow_settings']['resize']){
36
+ return $image_url;
37
+ }
38
+
39
+ //Check if we have GD library, if none, return url. Prevent fatal error on users without GD installed
40
+ if(!function_exists('gd_info')){
41
+ return $image_url;
42
+ }
43
+
44
+ $dir = wp_upload_dir();
45
+
46
+ // Get full path to the slide image
47
+ $image_path = get_attached_file($original_attachment_id);
48
+ $image_path = apply_filters('cycloneslider_image_path', $image_path, $params['current_slide_settings']);
49
+ if(empty($image_path)){
50
+ return false;
51
+ }
52
+
53
+ // Resize
54
+ $info = pathinfo($image_path);
55
+ $dirname = isset($info['dirname']) ? $info['dirname'] : ''; // Path to directory
56
+ $ext = isset($info['extension']) ? $info['extension'] : ''; // File extension Eg. "jpg"
57
+ $thumb = wp_basename($image_path, ".$ext")."-{$width}x{$height}.{$ext}"; // Thumbname. Eg. [imagename]-[width]x[height].[ext]
58
+
59
+ // Check if thumb already exists. If it is, return its url, unless refresh is true
60
+ if(file_exists($dirname.'/'.$thumb ) and !$params['fresh_resize']){
61
+ return dirname($image_url).'/'.$thumb; //We used dirname() since we need the URL format not the path
62
+ }
63
+
64
+ $resizeObj = new Image_Resizer($image_path);
65
+ $resizeObj -> resizeImage($width, $height, $params['resize_option']);
66
+ $resizeObj -> saveImage($dirname.'/'.$thumb, $params['resize_quality']);
67
+
68
+ return dirname($image_url).'/'.$thumb;
69
+ }
70
+
71
+ /**
72
+ * Cycle Settings
73
+ *
74
+ * Prints out cycle2 data attributes from slideshow settings
75
+ *
76
+ * @param array $slider_settings Slider settings array.
77
+ * @param string $slider_id HTML ID of slideshow.
78
+ * @return string Data attributes for cycle2.
79
+ */
80
+ function cyclone_settings($slider_settings, $slider_id=''){
81
+ $cycle2_settings = array();
82
+ $cycle2_settings['data-cycle-slides'] = '> div';
83
+ $cycle2_settings['data-cycle-auto-height'] = $slider_settings['width'].':'.$slider_settings['height'];
84
+ $cycle2_settings['data-cycle-fx'] = $slider_settings['fx'];
85
+ $cycle2_settings['data-cycle-speed'] = $slider_settings['speed'];
86
+ $cycle2_settings['data-cycle-timeout'] = $slider_settings['timeout'];
87
+ $cycle2_settings['data-cycle-pause-on-hover'] = $slider_settings['hover_pause'];
88
+ $cycle2_settings['data-cycle-pager'] = '#cycloneslider-'.$slider_id.' .cycloneslider-pager';
89
+ $cycle2_settings['data-cycle-prev'] = '#cycloneslider-'.$slider_id.' .cycloneslider-prev';
90
+ $cycle2_settings['data-cycle-next'] = '#cycloneslider-'.$slider_id.' .cycloneslider-next';
91
+ $cycle2_settings['data-cycle-tile-count'] = $slider_settings['tile_count'];
92
+ $cycle2_settings['data-cycle-tile-delay'] = $slider_settings['tile_delay'];
93
+ $cycle2_settings['data-cycle-tile-vertical'] = $slider_settings['tile_vertical'];
94
+ $cycle2_settings['data-cycle-log'] = 'false';
95
+ $cycle2_settings = apply_filters('cyclone_cycle2_settings_array', $cycle2_settings);
96
+
97
+ $out = '';
98
+ foreach($cycle2_settings as $data_attr=>$value){ //Array to html string
99
+ $out .= ' '.$data_attr.'="'.$value.'" ';
100
+ }
101
+ return $out;
102
+ }
103
+
104
+ /**
105
+ * Cyclone Slide Settings
106
+ *
107
+ * Prints out cycle2 per slide settings as data attributes
108
+ *
109
+ *
110
+ * @param array $slider_meta Slide settings array.
111
+ * @param array $slider_settings Slider settings array.
112
+ * @param string $slider_id HTML ID of slideshow.
113
+ * @param int $slider_count Current slideshow count.
114
+ * @return string Data attributes for slide.
115
+ */
116
+ function cyclone_slide_settings($slider_meta, $slider_settings=array(), $slider_id='', $slider_count=1){
117
+ $out = '';
118
+ if(empty($slider_meta['enable_slide_effects'])){
119
+ return $out;
120
+ }
121
+
122
+ $cycle2_settings = array();
123
+ if($slider_meta['fx']!='default') {
124
+ $cycle2_settings['data-cycle-fx'] = $slider_meta['fx'];
125
+ }
126
+ if(!empty($slider_meta['speed'])) {
127
+ $cycle2_settings['data-cycle-speed'] = $slider_meta['speed'];
128
+ }
129
+ if(!empty($slider_meta['timeout'])) {
130
+ $cycle2_settings['data-cycle-timeout'] = $slider_meta['timeout'];
131
+ }
132
+ if($slider_meta['fx']=='tileBlind' or $slider_meta['fx']=='tileSlide'){
133
+ if(!empty($slider_meta['tile_count'])) {
134
+ $cycle2_settings['data-cycle-tile-count'] = $slider_meta['tile_count'];
135
+ }
136
+ if(!empty($slider_meta['tile_delay'])) {
137
+ $cycle2_settings['data-cycle-tile-delay'] = $slider_meta['tile_delay'];
138
+ }
139
+ $cycle2_settings['data-cycle-tile-vertical'] = $slider_meta['tile_vertical'];
140
+ }
141
+ $cycle2_settings = apply_filters('cyclone_cycle2_slide_settings_array', $cycle2_settings, $slider_meta, $slider_settings);
142
+
143
+ $out = '';
144
+ foreach($cycle2_settings as $data_attr=>$value){ //Array to html string
145
+ $out .= ' '.$data_attr.'="'.$value.'" ';
146
+ }
147
+ return $out;
148
+ }
149
+
150
+
151
+ /*** Deprecated functions as of 2.3.0 ***/
152
+ /**
153
+ * Thumbnailer
154
+ *
155
+ * Creates thumbnail of the slide image using the specified attachment ID, width and height
156
+ *
157
+ *
158
+ * @param int $original_attachment_id Attachment ID.
159
+ * @param int $width Width of thumbnail in pixels.
160
+ * @param int $height Height of thumbnail in pixels.
161
+ * @param bool $refresh Recreate thumbnail if it already exists if set to true. Default to false, will not recreate thumbnails if it already exist.
162
+ * @return string The url to the thumbnail. False on failure.
163
+ */
164
+ function cycloneslider_thumb( $original_attachment_id, $width, $height, $refresh = false, $slide_meta = array(), $option="auto" ){
165
+ $dir = wp_upload_dir();
166
+
167
+ // Get full path to the slide image
168
+ $image_path = get_attached_file($original_attachment_id);
169
+ $image_path = apply_filters('cycloneslider_image_path', $image_path, $slide_meta);
170
+ if(empty($image_path)){
171
+ return false;
172
+ }
173
+
174
+ // Full url to the slide image
175
+ $image_url = wp_get_attachment_url($original_attachment_id);
176
+ $image_url = apply_filters('cycloneslider_image_url', $image_url, $slide_meta);
177
+ if(empty($image_url)){
178
+ return false;
179
+ }
180
+
181
+ // If image width and height is the same as slideshow, do not resize
182
+ $image_dimensions = wp_get_attachment_image_src($original_attachment_id, 'full');
183
+ if($image_dimensions[1] == $width and $image_dimensions[2] == $height){
184
+ return $image_url;
185
+ }
186
+
187
+ // Resize
188
+ $info = pathinfo($image_path);
189
+ $dirname = isset($info['dirname']) ? $info['dirname'] : ''; // Path to directory
190
+ $ext = isset($info['extension']) ? $info['extension'] : ''; // File extension Eg. "jpg"
191
+ $thumb = wp_basename($image_path, ".$ext")."-{$width}x{$height}.{$ext}"; // Thumbname. Eg. [imagename]-[width]x[height].hpg
192
+
193
+ // Check if thumb already exists. If it is, return its url, unless refresh is true
194
+ if(file_exists($dirname.'/'.$thumb ) and !$refresh){
195
+ return dirname($image_url).'/'.$thumb; //We used dirname() since we need the URL format not the path
196
+ }
197
+
198
+ $resizeObj = new Image_Resizer($image_path);
199
+ $resizeObj -> resizeImage($width, $height, $option);
200
+ $resizeObj -> saveImage($dirname.'/'.$thumb, 90);
201
+
202
+ return dirname($image_url).'/'.$thumb;
203
+ }
204
+
205
+ /**
206
+ * Cycle Settings Printer
207
+ *
208
+ * Prints out cycle slideshow settings in templates
209
+ *
210
+ *
211
+ * @param array $slider_settings Slider settings array.
212
+ * @param string $slider_id HTML ID of slideshow.
213
+ * @param int $slider_count Current slideshow count.
214
+ * @return string Data attributes for slideshow.
215
+ */
216
+ function cycloneslider_settings($slider_settings, $slider_id='', $slider_count=1){
217
+ $out = ' data-cycle-slides="> div"';
218
+ $out .= ' data-cycle-auto-height="'.$slider_settings['width'].':'.$slider_settings['height'].'"';
219
+ $out .= ' data-cycle-fx="'.$slider_settings['fx'].'"';
220
+ $out .= ' data-cycle-speed="'.$slider_settings['speed'].'"';
221
+ $out .= ' data-cycle-timeout="'.$slider_settings['timeout'].'"';
222
+ $out .= ' data-cycle-pause-on-hover="'.$slider_settings['hover_pause'].'"';
223
+ $out .= ' data-cycle-pager="#cycloneslider-'.$slider_id.' .cycloneslider-pager"';
224
+ $out .= ' data-cycle-prev="#cycloneslider-'.$slider_id.' .cycloneslider-prev"';
225
+ $out .= ' data-cycle-next="#cycloneslider-'.$slider_id.' .cycloneslider-next"';
226
+ $out .= ' data-cycle-tile-count="'.$slider_settings['tile_count'].'"';
227
+ $out .= ' data-cycle-tile-delay="'.$slider_settings['tile_delay'].'"';
228
+ $out .= ' data-cycle-tile-vertical="'.$slider_settings['tile_vertical'].'"';
229
+ $out .= ' data-cycle-log="false"';
230
+ $out = apply_filters('cycloneslider_cycle_settings', $out);
231
+ return $out;
232
+ }
233
+
234
+ /**
235
+ * Cycle Slide Settings Printer
236
+ *
237
+ * Prints out cycle slide settings in templates
238
+ *
239
+ *
240
+ * @param array $slider_meta Slide settings array.
241
+ * @param array $slider_settings Slider settings array.
242
+ * @param string $slider_id HTML ID of slideshow.
243
+ * @param int $slider_count Current slideshow count.
244
+ * @return string Data attributes for slide.
245
+ */
246
+ function cycloneslider_slide_settings($slider_meta, $slider_settings=array(), $slider_id='', $slider_count=1){
247
+ $out = '';
248
+ if(empty($slider_meta['enable_slide_effects'])){
249
+ return $out;
250
+ }
251
+ if($slider_meta['fx']!='default') {
252
+ $out .= ' data-cycle-fx="'.$slider_meta['fx'].'"';
253
+ }
254
+ if(!empty($slider_meta['speed'])) {
255
+ $out .= ' data-cycle-speed="'.$slider_meta['speed'].'"';
256
+ }
257
+ if(!empty($slider_meta['timeout'])) {
258
+ $out .= ' data-cycle-timeout="'.$slider_meta['timeout'].'"';
259
+ }
260
+ if($slider_meta['fx']=='tileBlind' or $slider_meta['fx']=='tileSlide'){
261
+ if(!empty($slider_meta['tile_count'])) {
262
+ $out .= ' data-cycle-tile-count="'.$slider_meta['tile_count'].'"';
263
+ }
264
+ if(!empty($slider_meta['tile_delay'])) {
265
+ $out .= ' data-cycle-tile-delay="'.$slider_meta['tile_delay'].'"';
266
+ }
267
+ $out .= ' data-cycle-tile-vertical="'.$slider_meta['tile_vertical'].'"';
268
+ }
269
+ $out = apply_filters('cycloneslider_cycle_slide_settings', $out);
270
+ return $out;
271
+ }
js/admin.js CHANGED
@@ -1,287 +1,437 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  jQuery(document).ready(function($){
2
- (function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
- /*** hide wordpress admin stuff ***/
5
- $('#minor-publishing-actions').hide();
6
- $('#misc-publishing-actions').hide();
7
- $('.inline-edit-date').prev().hide();
8
-
9
- /*** Post type switcher quick fix ***/
10
- $('#pts_post_type').html('<option value="cycloneslider">Cycloneslider</option>');
11
-
12
- /*** Template Chooser ***/
13
- $('.template-choices li').click(function(){
14
- $('.template-choices li').removeClass('active');
15
- $('.template-choices li input').removeAttr('checked');
16
- $(this).addClass('active').find('input').attr('checked','checked');
17
- });
18
-
19
- /*** show/Hide Tile Properties for slideshow ***/
20
- $('#cyclone-slider-properties-metabox').on('change', '#cycloneslider_settings_fx', function(){
21
- if($(this).val()=='tileBlind' || $(this).val()=='tileSlide'){
22
- $('.cycloneslider-field-tile-properties').slideDown('fast');
23
- } else {
24
- $('.cycloneslider-field-tile-properties').slideUp('fast');
25
- }
26
- });
27
- $("#cycloneslider_settings_fx").trigger('change');
28
-
29
- /*** show/Hide Tile Properties for slides ***/
30
- $('#cyclone-slides-metabox').on('change', '.cycloneslider_metas_fx', function(){
31
- if($(this).val()=='tileBlind' || $(this).val()=='tileSlide'){
32
- $(this).siblings('.cycloneslider-slide-tile-properties').slideDown('fast');
33
- } else {
34
- $(this).siblings('.cycloneslider-slide-tile-properties').slideUp('fast');
35
- }
36
- });
37
- $(".cycloneslider_metas_fx").trigger('change');
38
-
39
- /*** enable/disable form fields and labels ***/
40
- $('#cyclone-slides-metabox').on('change', '.cycloneslider_metas_enable_slide_effects', function(){
41
- if($(this).val()==0){
42
- $(this).parent().find('input,select').not(this).attr('disabled','disabled');
43
- $(this).parent().find('label,.note').addClass('disabled');
44
- } else {
45
- $(this).parent().find('input,select').not(this).removeAttr('disabled');
46
- $(this).parent().find('label,.note').removeClass('disabled');
47
- }
48
- });
49
- $(".cycloneslider_metas_enable_slide_effects").trigger('change');
50
-
51
-
52
- /*** make it sortable ***/
53
- $('.cycloneslider-sortable').sortable({
54
- handle:'.cycloneslider-box-title',
55
- placeholder: "cycloneslider-box-placeholder",
56
- forcePlaceholderSize:true,
57
- delay:100,
58
- /*** Update form field indexes when slide order changes ***/
59
- update: function(event, ui) {
60
- $('.cycloneslider-sortable .cycloneslider-box').each(function(boxIndex, box){ /*** Loop thru each box ***/
61
- $(box).find('input, select, textarea').each(function(i, field){ /*** Loop thru relevant form fields ***/
62
- var name = $(field).attr('name');
63
- if(name){
64
- name = name.replace(/\[[0-9]+\]/, '['+boxIndex+']'); /*** Replace all [index] in field_key[index][name] ***/
65
- $(field).attr('name',name);
66
- }
67
- });
68
- });
69
- }
70
- });
71
-
72
- /*** ID ***/
73
- $('.cycloneslider-upload-button').each(function(i){
74
- $(this).data('cycloneslider_id',i);
75
- });
76
- $('.cycloneslider-sortable .cycloneslider-box').each(function(i){
77
- $(this).data('cycloneslider_id',i);
78
- $(this).find('.cycloneslider-box-title-left').append((i+1));
79
- });
80
-
81
-
82
-
83
- /*** Add new slide box ***/
84
- $('input[name="cycloneslider_add_slide"]').on('click', function(e){
85
- var id = $('.cycloneslider-sortable .cycloneslider-box').length;
86
- var html = $('.cycloneslider-box-template').html();
87
- html = html.replace(/{id}/g, id);/*** replace all occurences of {id} to real id ***/
88
-
89
- $('.cycloneslider-sortable').append(html);
90
- $('.cycloneslider-sortable .cycloneslider-box:last').find('.cycloneslider-slide-thumb').hide().end().find('.cycloneslider-box-body').show();
91
- $('.cycloneslider-upload-button').each(function(i){
92
- $(this).data('cycloneslider_id',i);
93
- });
94
- $('.cycloneslider-sortable .cycloneslider-box').each(function(i){
95
- $(this).data('cycloneslider_id',i);
96
- });
97
- $('.cycloneslider-field-body').each(function(i){
98
- $(this).data('cycloneslider_id',i);
99
- });
100
-
101
- $(".cycloneslider_metas_enable_slide_effects").trigger('change');
102
-
103
- e.preventDefault();
104
- });
105
-
106
- /*** Toggle slide visiblity ***/
107
- $('#cyclone-slides-metabox').on('click', '.cycloneslider-box-title', function(e) {
108
- var box = $(this).parents('.cycloneslider-box');
109
- var body = box.find('.cycloneslider-box-body');
110
-
111
- if(body.is(':visible')){
112
- body.slideUp(100);
113
- if($.cookie!=undefined){
114
- $.cookie('cycloneslider_box_'+box.data('cycloneslider_id'), null);
115
- }
116
-
117
- } else {
118
- body.slideDown(100);
119
- if($.cookie!=undefined){
120
- $.cookie('cycloneslider_box_'+box.data('cycloneslider_id'), 'open', { expires: 7});/*** remember open section ***/
121
- }
122
- }
123
- e.preventDefault();
124
- });
125
-
126
- /*** Slide Properties ***/
127
- $('.cycloneslider-field-body').each(function(i){
128
- $(this).data('cycloneslider_id',i);
129
- });
130
-
131
- /*** Slide Properties Toggle ***/
132
- $('.cycloneslider-meta-field .cycloneslider-field-title').live('click',function(e){
133
- var body = $(this).next();
134
- var id = body.data('cycloneslider_id');
135
- if(body.is(':visible')){
136
- body.slideUp(100);
137
- if($.cookie!=undefined){
138
- $.cookie('cycloneslider_slide_meta_field_'+id, null);/*** delete cookie ***/
139
- }
140
- } else {
141
- body.slideDown(100);
142
- if($.cookie!=undefined){
143
- $.cookie('cycloneslider_slide_meta_field_'+id, 'open', { expires: 7});/*** remember open section ***/
144
- }
145
- }
146
- });
147
-
148
- /*** Slide Properties Cookie ***/
149
- $('.cycloneslider-field-body').each(function(i){
150
- body = $(this);
151
- var id = $(this).data('cycloneslider_id');
152
- if($.cookie!=undefined){
153
- if($.cookie('cycloneslider_slide_meta_field_'+id)!='open'){/*** do not close open section ***/
154
- body.hide();
155
- }
156
- }
157
- });
158
-
159
- /*** hide all thats hidden ***/
160
- $('.cycloneslider-sortable .cycloneslider-box').each(function(){
161
- var body = $(this).find('.cycloneslider-box-body');
162
- var id = $(this).data('cycloneslider_id');
163
- if($.cookie!=undefined){
164
- if($.cookie('cycloneslider_box_'+id)=='open'){/*** do not close open section ***/
165
- body.show();
166
- }
167
- }
168
- });
169
-
170
- /*** Delete Slide ***/
171
- $('#cyclone-slides-metabox').on('click', '.cycloneslider-box-delete', function(e) {
172
 
173
- var box = $(this).parents('.cycloneslider-box');
174
- box.fadeOut('slow', function(){ box.remove()});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
 
176
- e.preventDefault();
177
- e.stopPropagation();
178
- });
179
- })();
180
-
181
- (function() {
182
- if(typeof(tb_show) != "function"){
183
- return;
184
- }
185
- /*** Modify WP media uploader ***/
186
- var current_slide_box = false;/*** we use this var to determine if thickbox is being used in cycloneslider. also saves the field to be updated later. ***/
187
- $(document).on('click', '.cycloneslider-upload-button', function() {
188
- var box = $(this).parents('.cycloneslider-box');/*** get current box ***/
189
-
190
- current_slide_box = box;
191
- tb_show('', 'media-upload.php?referer=cycloneslider&amp;post_id=0&amp;type=image&amp;TB_iframe=true');/*** referer param needed to change button text ***/
192
- return false;
193
- });
194
-
195
- window.original_send_to_editor = window.send_to_editor;/*** backup original for other parts of admin that uses thickbox to work ***/
196
- window.send_to_editor = function(html) {
197
- if (current_slide_box) {
198
- var slide_thumb = current_slide_box.find('.cycloneslider-slide-thumb');/*** find the thumb ***/
199
- var slide_attachment_id = current_slide_box.find('.cycloneslider-slide-meta-id');/*** find the hidden field that will hold the attachment id ***/
200
- var slide_type = current_slide_box.find('.cycloneslider-slide-meta-type');/*** find the hidden field that will hold the type ***/
201
-
202
- var image = false;
203
- if(jQuery(html).get(0) != undefined){ /*** Check if its a valid html tag ***/
204
- if(jQuery(html).get(0).nodeName.toLowerCase()=='img'){/*** Check if html is an img tag ***/
205
- image = jQuery(html);
206
- } else { /*** If not may be it contains the img tag ***/
207
- if(jQuery(html).find('img').length > 0){
208
- image = jQuery(html).find('img');
209
- }
210
- }
211
- }
212
- if(image){
213
- var url = image.attr('src');
214
- var attachment_id = image.attr('data-id');
215
- if(url!=undefined && attachment_id != undefined ){
216
- slide_thumb.attr('src', url).show();
217
- slide_attachment_id.val(attachment_id);
218
- slide_type.val('image');
219
- } else {
220
- alert('Could not insert image. URL or attachment ID missing.');
221
- }
222
- } else {
223
- alert('Could not insert image.');
224
- }
225
-
226
- tb_remove();
227
- current_slide_box = false;
228
- } else {
229
- window.original_send_to_editor(html);
230
- }
231
- };
232
- })();
233
-
234
- (function() {
235
- if(typeof(wp.media) != "function"){
236
- return;
237
- }
238
- // Prepare the variable that holds our custom media manager.
239
- var cyclone_media_frame;
240
- var current_slide_box = false;
241
-
242
- // Bind to our click event in order to open up the new media experience.
243
- $(document.body).on('click', '.cycloneslider-upload-button', function(e){
244
- // Prevent the default action from occuring.
245
- e.preventDefault();
246
-
247
- current_slide_box = $(this).parents('.cycloneslider-box');/*** get current box ***/
248
-
249
-
250
- // If the frame already exists, re-open it.
251
- if ( cyclone_media_frame ) {
252
- cyclone_media_frame.open();
253
- return;
254
- }
255
-
256
 
257
- cyclone_media_frame = wp.media.frames.cyclone_media_frame = wp.media({
258
- className: 'media-frame cycloneslider-frame',
259
- frame: 'select',
260
- multiple: false,
261
- title: cycloneslider_admin_vars.title,
262
- library: {
263
- type: 'image'
264
- },
265
- button: {
266
- text: cycloneslider_admin_vars.button
267
- }
268
- });
269
-
270
- cyclone_media_frame.on('select', function(){
271
- // Grab our attachment selection and construct a JSON representation of the model.
272
- var media_attachment = cyclone_media_frame.state().get('selection').first().toJSON();
273
-
274
- var slide_thumb = current_slide_box.find('.cycloneslider-slide-thumb');/*** find the thumb ***/
275
- var slide_attachment_id = current_slide_box.find('.cycloneslider-slide-meta-id');/*** find the hidden field that will hold the attachment id ***/
276
- var slide_type = current_slide_box.find('.cycloneslider-slide-meta-type');/*** find the hidden field that will hold the type ***/
277
-
278
- slide_thumb.attr('src', media_attachment.sizes.medium.url).show();
279
- slide_attachment_id.val(media_attachment.id);
280
- slide_type.val('image');
281
- });
282
-
283
- // Now that everything has been set, let's open up the frame.
284
- cyclone_media_frame.open();
285
- });
286
- })();
287
  });
1
+ /*** Wrapper module for js store ***/
2
+ var cs_local_storage = (function () {
3
+ return {
4
+ get: function (key) {
5
+ if(store!=undefined){
6
+ return store.get(key);
7
+ }
8
+ return false;
9
+ },
10
+ set: function (key, value) {
11
+ if(store!=undefined){
12
+ store.set(key, value);
13
+ }
14
+ },
15
+ remove: function (key) {
16
+ if(store!=undefined){
17
+ store.remove(key);
18
+ }
19
+ },
20
+ clear: function () {
21
+ if(store!=undefined){
22
+ store.clear(); /*** Clear all keys ***/
23
+ }
24
+ }
25
+ };
26
+ })();
27
+
28
+ /*** Class for handling open and close expandable and slide elements. Use together with cs_local_storage ***/
29
+ function CsUiOpen(data){
30
+ if(!data){
31
+ data = {};
32
+ }
33
+ this.expandables = data;/*** data format should be object[slideshow_id][element_index] ***/
34
+ }
35
+ CsUiOpen.prototype.get = function(slideshow, key){
36
+ if(this.expandables[slideshow]!=undefined){
37
+ if(this.expandables[slideshow][key]!=undefined){
38
+ return this.expandables[slideshow][key];
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ CsUiOpen.prototype.set = function(slideshow, key, value){
44
+ if(typeof(this.expandables[slideshow])!=='object'){
45
+ this.expandables[slideshow] = {};
46
+ }
47
+
48
+ this.expandables[slideshow][key] = value;
49
+ }
50
+ CsUiOpen.prototype.remove = function(slideshow, key){
51
+ if(this.expandables[slideshow]!=undefined){
52
+ if(this.expandables[slideshow][key]!=undefined){
53
+ delete this.expandables[slideshow][key];
54
+ }
55
+ }
56
+ }
57
+ CsUiOpen.prototype.getAll = function(){
58
+ return this.expandables;
59
+ }
60
+ CsUiOpen.prototype.clear = function(){
61
+ this.expandables = {};
62
+ }
63
+
64
+
65
  jQuery(document).ready(function($){
66
+ /*** SLIDE BOXES ***/
67
+ (function() {
68
+ var slideshow_id, cs_ui_open;
69
+
70
+ slideshow_id = $('#cyclone-slides-metabox .cs-sortables').data('post-id');
71
+
72
+ cs_ui_open = new CsUiOpen(cs_local_storage.get('cs_slide_toggles'));/*** Handle persistent slide data ***/
73
+
74
+ /*** Init - Sortable slides ***/
75
+ $('.cs-sortables').sortable({
76
+ handle:'.cs-header',
77
+ placeholder: "cs-slide-placeholder",
78
+ forcePlaceholderSize:true,
79
+ delay:100,
80
+ /*** Update form field indexes when slide order changes ***/
81
+ update: function(event, ui) {
82
+ $('.cs-sortables .cs-slide').each(function(boxIndex, box){ /*** Loop thru each box ***/
83
+ $(box).find('input, select, textarea').each(function(i, field){ /*** Loop thru relevant form fields ***/
84
+ var name = $(field).attr('name');
85
+ if(name){
86
+ name = name.replace(/\[[0-9]+\]/, '['+boxIndex+']'); /*** Replace all [index] in field_key[index][name] ***/
87
+ $(field).attr('name',name);
88
+ }
89
+ });
90
+ });
91
+ }
92
+ });
93
+
94
+ /*** Init - Slide ID and title ***/
95
+ $('.cs-sortables .cs-slide').each(function(i){
96
+ var body;
97
+
98
+ body = $(this).find('.cs-body');
99
+
100
+ $(this).data('cs_id',i);
101
+
102
+ if(cs_ui_open.get(slideshow_id ,i)=='open'){
103
+ body.slideDown(0);
104
+ } else {
105
+ body.slideUp(0);
106
+ }
107
+ });
108
+
109
+ /*** Add - Slide box from a hidden html template ***/
110
+ $('#cyclone-slides-metabox').on('click', '.cs-add-slide', function(e){
111
+ var id = $('.cs-sortables .cs-slide').length;
112
+ var html = $('.cs-slide-skeleton').html();
113
+ html = html.replace(/{id}/g, id);/*** replace all occurences of {id} to real id ***/
114
+
115
+ $('.cs-sortables').append(html);
116
+ $('.cs-sortables .cs-slide:last').find('.cs-thumbnail').hide().end().find('.cs-body').show();
117
+
118
+ $('.cs-sortables .cs-slide').each(function(i){
119
+ $(this).data('cs_id',i);
120
+ });
121
+ $('.expandable-body').each(function(i){
122
+ $(this).data('cs_id',i);
123
+ });
124
+
125
+ $(".cycloneslider_metas_enable_slide_effects").trigger('change');
126
+
127
+ e.preventDefault();
128
+ });
129
+
130
+ /*** Toggle - slide body visiblity ***/
131
+ $('#cyclone-slides-metabox').on('click', '.cs-header', function(e) {
132
+ var id, box, body, cs_slide_toggles;
133
+
134
+ box = $(this).parents('.cs-slide');
135
+ body = box.find('.cs-body');
136
+
137
+ id = box.data('cs_id');
138
+
139
+ if(body.is(':visible')){
140
+ body.slideUp(100);
141
+ cs_ui_open.remove(slideshow_id , id);
142
+ } else {
143
+ body.slideDown(100);
144
+ cs_ui_open.set(slideshow_id , id, 'open');/*** remember open section ***/
145
+ }
146
+
147
+ cs_local_storage.set('cs_slide_toggles', cs_ui_open.getAll());
148
+ });
149
+
150
+ /*** Delete - Remove slide box ***/
151
+ $('#cyclone-slides-metabox').on('click', '.cs-delete', function(e) {
152
+
153
+ var box = $(this).parents('.cs-slide');
154
+ box.fadeOut('slow', function(){ box.remove()});
155
+
156
+ e.preventDefault();
157
+ e.stopPropagation();
158
+ });
159
+
160
+ /*** Switcher - switch between slide types ***/
161
+ $('#cyclone-slides-metabox').on('change', '.cs-slide-type-switcher', function(e){
162
+ var box, body, image_box, video_box, custom_box, icon;
163
+
164
+ box = $(this).parents('.cs-slide');
165
+ body = box.find('.cs-body');
166
+ image_box = body.find('.cs-image');
167
+ video_box = body.find('.cs-video');
168
+ custom_box = body.find('.cs-custom');
169
+ icon = box.find('.cs-icon i');
170
+ if($(this).val()=='video'){
171
+ image_box.hide();
172
+ video_box.show();
173
+ custom_box.hide();
174
+ icon.attr('class', 'icon-film');
175
+ } else if($(this).val()=='custom'){
176
+ image_box.hide();
177
+ video_box.hide();
178
+ custom_box.show();
179
+ icon.attr('class', 'icon-font');
180
+ } else {
181
+ image_box.show();
182
+ video_box.hide();
183
+ custom_box.hide();
184
+ icon.attr('class', 'icon-picture');
185
+ }
186
+
187
+ });
188
+ $('.cs-slide-type-switcher').trigger('change');
189
+
190
+ })();
191
+
192
+ /*** EXPANDABLES ***/
193
+ (function() {
194
+ var slideshow_id, cs_ui_open;
195
+
196
+ /*** Init ***/
197
+ slideshow_id = $('#cyclone-slides-metabox .cs-sortables').data('post-id');
198
+
199
+ cs_ui_open = new CsUiOpen(cs_local_storage.get('cs_expandables'));
200
+
201
+ $('#cyclone-slides-metabox .expandable-body').each(function(i){
202
+ $(this).data('cs_id', i);
203
+
204
+ if(cs_ui_open.get(slideshow_id ,i)=='open'){
205
+ $(this).slideDown(0);
206
+ } else {
207
+ $(this).slideUp(0);
208
+ }
209
+ });
210
+
211
+ /*** Toggle - Expandable toggling ***/
212
+ $('#cyclone-slides-metabox').on('click', '.expandable-header', function(e){
213
+ var body, id;
214
+
215
+ body = $(this).next('.expandable-body');
216
+ id = body.data('cs_id');
217
+
218
+ if(body.is(':visible')){
219
+ body.slideUp(100);
220
+ cs_ui_open.remove(slideshow_id , id);
221
+
222
+ } else {
223
+ body.slideDown(100);
224
+ cs_ui_open.set(slideshow_id , id, 'open');
225
+
226
+ }
227
+
228
+ cs_local_storage.set('cs_expandables', cs_ui_open.getAll());
229
+ });
230
+ })();
231
+
232
+ /*** VIDEO SLIDE ***/
233
+ (function() {
234
+ var slideshow_id;
235
+
236
+ slideshow_id = $('#cyclone-slides-metabox .cs-sortables').data('post-id');
237
+
238
+ /*** Get Video ***/
239
+ $('#cyclone-slides-metabox').on('click', '.cs-video-get', function(e){
240
+ var button, box, textbox_url, url, video_thumb, video_embed;
241
+
242
+ button = $(this);
243
+ box = $(this).parents('.cs-slide');
244
+ video_thumb = box.find('.cs-video-thumb');
245
+ textbox_url = box.find('.cs-video-url');
246
+ url = textbox_url.val();
247
+ if(url==''){
248
+ return;
249
+ }
250
+ video_embed = box.find('.cs-video-embed');
251
+ video_thumb.empty().show();
252
+ textbox_url.attr('disabled','disabled');
253
+ button.attr('disabled','disabled');
254
+
255
+ $.ajax({
256
+ type: "POST",
257
+ url: ajaxurl, /*** Automatically added by wordpress ***/
258
+ data: "action=cycloneslider_get_video&url="+encodeURIComponent(url),
259
+ dataType: 'json',
260
+ success: function(data, textStatus, XMLHttpRequest){
261
+ if(data.success){
262
+ video_thumb.html('<img src="'+data.url+'" alt="thumb">');
263
+ box.find('.cs-video-thumb-url').val(data.url);
264
+ video_embed.val(data.embed);
265
+ textbox_url.removeAttr('disabled');
266
+ button.removeAttr('disabled');
267
+ } else {
268
+ alert('Error. Make sure its a valid youtube or vimeo url.');
269
+ video_thumb.empty().hide();
270
+ textbox_url.removeAttr('disabled');
271
+ button.removeAttr('disabled');
272
+ }
273
+
274
+ }
275
+ });
276
+ });
277
 
278
+
279
+ })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
 
281
+ (function() {
282
+
283
+ /*** hide wordpress admin stuff ***/
284
+ $('#minor-publishing-actions').hide();
285
+ $('#misc-publishing-actions').hide();
286
+ $('.inline-edit-date').prev().hide();
287
+
288
+ /*** Post type switcher quick fix ***/
289
+ $('#pts_post_type').html('<option value="cycloneslider">Cycloneslider</option>');
290
+
291
+ /*** Template Chooser ***/
292
+ $('.template-choices li').click(function(){
293
+ $('.template-choices li').removeClass('active');
294
+ $('.template-choices li input').removeAttr('checked');
295
+ $(this).addClass('active').find('input').attr('checked','checked');
296
+ });
297
+
298
+ /*** show/Hide Tile Properties for slideshow ***/
299
+ $('#cyclone-slider-properties-metabox').on('change', '#cycloneslider_settings_fx', function(){
300
+ if($(this).val()=='tileBlind' || $(this).val()=='tileSlide'){
301
+ $('.cycloneslider-field-tile-properties').slideDown('fast');
302
+ } else {
303
+ $('.cycloneslider-field-tile-properties').slideUp('fast');
304
+ }
305
+ });
306
+ $("#cycloneslider_settings_fx").trigger('change');
307
+
308
+ /*** Show/hide Tile Properties for slides ***/
309
+ $('#cyclone-slides-metabox').on('change', '.cycloneslider_metas_fx', function(){
310
+ if($(this).val()=='tileBlind' || $(this).val()=='tileSlide'){
311
+ $(this).siblings('.cycloneslider-slide-tile-properties').slideDown('fast');
312
+ } else {
313
+ $(this).siblings('.cycloneslider-slide-tile-properties').slideUp('fast');
314
+ }
315
+ });
316
+ $(".cycloneslider_metas_fx").trigger('change');
317
+
318
+ /*** enable/disable form fields and labels ***/
319
+ $('#cyclone-slides-metabox').on('change', '.cycloneslider_metas_enable_slide_effects', function(){
320
+ if($(this).val()==0){
321
+ $(this).parent().find('input,select').not(this).attr('disabled','disabled');
322
+ $(this).parent().find('label,.note').addClass('disabled');
323
+ } else {
324
+ $(this).parent().find('input,select').not(this).removeAttr('disabled');
325
+ $(this).parent().find('label,.note').removeClass('disabled');
326
+ }
327
+ });
328
+ $(".cycloneslider_metas_enable_slide_effects").trigger('change');
329
+
330
+ })();
331
+
332
+ (function() {
333
+ if(typeof(tb_show) != "function"){
334
+ return;
335
+ }
336
+ /*** Modify WP media uploader ***/
337
+ var current_slide_box = false;/*** we use this var to determine if thickbox is being used in cycloneslider. also saves the field to be updated later. ***/
338
+ $(document).on('click', '.cs-media-gallery-show', function() {
339
+ var box = $(this).parents('.cs-slide');/*** get current box ***/
340
+
341
+ current_slide_box = box;
342
+ tb_show('', 'media-upload.php?referer=cycloneslider&amp;post_id=0&amp;type=image&amp;TB_iframe=true');/*** referer param needed to change button text ***/
343
+ return false;
344
+ });
345
+
346
+ window.original_send_to_editor = window.send_to_editor;/*** backup original for other parts of admin that uses thickbox to work ***/
347
+ window.send_to_editor = function(html) {
348
+ if (current_slide_box) {
349
+ var slide_thumb = current_slide_box.find('.cs-image-thumb');/*** find the thumb ***/
350
+ var slide_attachment_id = current_slide_box.find('.cs-image-id');/*** find the hidden field that will hold the attachment id ***/
351
+
352
+ var image = false;
353
+ if(jQuery(html).get(0) != undefined){ /*** Check if its a valid html tag ***/
354
+ if(jQuery(html).get(0).nodeName.toLowerCase()=='img'){/*** Check if html is an img tag ***/
355
+ image = jQuery(html);
356
+ } else { /*** If not may be it contains the img tag ***/
357
+ if(jQuery(html).find('img').length > 0){
358
+ image = jQuery(html).find('img');
359
+ }
360
+ }
361
+ }
362
+ if(image){
363
+ var url = image.attr('src');
364
+ var attachment_id = image.attr('data-id');
365
+ if(url!=undefined && attachment_id != undefined ){
366
+ slide_thumb.html('<img src="'+url+'" alt="thumb">').show();
367
+ slide_attachment_id.val(attachment_id);
368
+ } else {
369
+ alert('Could not insert image. URL or attachment ID missing.');
370
+ }
371
+ } else {
372
+ alert('Could not insert image.');
373
+ }
374
+
375
+ tb_remove();
376
+ current_slide_box = false;
377
+ } else {
378
+ window.original_send_to_editor(html);
379
+ }
380
+ };
381
+ })();
382
+
383
+ (function() {
384
+ if(typeof(wp) == "undefined" || typeof(wp.media) != "function"){
385
+ return;
386
+ }
387
+ // Prepare the variable that holds our custom media manager.
388
+ var cyclone_media_frame;
389
+ var current_slide_box = false;
390
+
391
+ // Bind to our click event in order to open up the new media experience.
392
+ $(document.body).on('click', '.cs-media-gallery-show', function(e){
393
+ // Prevent the default action from occuring.
394
+ e.preventDefault();
395
+
396
+ current_slide_box = $(this).parents('.cs-slide');/*** get current box ***/
397
+
398
+
399
+ // If the frame already exists, re-open it.
400
+ if ( cyclone_media_frame ) {
401
+ cyclone_media_frame.open();
402
+ return;
403
+ }
404
+
405
 
406
+ cyclone_media_frame = wp.media.frames.cyclone_media_frame = wp.media({
407
+ className: 'media-frame cs-frame',
408
+ frame: 'select',
409
+ multiple: false,
410
+ title: cycloneslider_admin_vars.title,
411
+ library: {
412
+ type: 'image'
413
+ },
414
+ button: {
415
+ text: cycloneslider_admin_vars.button
416
+ }
417
+ });
418
+
419
+ cyclone_media_frame.on('select', function(){
420
+ var media_attachment, slide_thumb, slide_attachment_id;
421
+
422
+ // Grab our attachment selection and construct a JSON representation of the model.
423
+ media_attachment = cyclone_media_frame.state().get('selection').first().toJSON();
424
+
425
+ slide_thumb = current_slide_box.find('.cs-image-thumb');/*** find the thumb ***/
426
+ slide_attachment_id = current_slide_box.find('.cs-image-id ');/*** find the hidden field that will hold the attachment id ***/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
 
428
+ slide_thumb.html('<img src="'+media_attachment.sizes.medium.url+'" alt="thumb">').show();
429
+ slide_attachment_id.val(media_attachment.id);
430
+
431
+ });
432
+
433
+ // Now that everything has been set, let's open up the frame.
434
+ cyclone_media_frame.open();
435
+ });
436
+ })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
  });
js/cyclone-slider.min.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jQuery Cycle2; ver: 20130206
3
+ * http://jquery.malsup.com/cycle2/
4
+ * Copyright (c) 2013 M. Alsup; Dual licensed: MIT/GPL
5
+ */
6
+ (function(a){function c(a){return(a||"").toLowerCase()}"use strict";var b="20130205";a.fn.cycle=function(b){var d;return this.length===0&&!a.isReady?(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(b)}),this):this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(h.data("cycle.opts"))return;if(h.data("cycle-log")===!1||b&&b.log===!1||e&&e.log===!1)i=a.noop;i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,c),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,b||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()})},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b=this.opts(),c=b.container;b.API.calcFirstSlide(),b.container.css("position")=="static"&&b.container.css("position","relative"),a(b.slides[b.currSlide]).css("opacity",1).show(),b.API.stackSlides(b.slides[b.currSlide],b.slides[b.nextSlide],!b.reverse),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.hover(function(){b.hoverPaused=!0,b.paused||b.API.trigger("cycle-paused",[b])},function(){b.hoverPaused=!1,b.paused||b.API.trigger("cycle-resumed",[b])})),b.timeout&&(b.timeoutId=setTimeout(function(){b.API.prepareTx(!1,!b.reverse)},b.timeout+b.delay)),b._initialized=!0,b.API.updateView(!0),b.container.on("cycle-paused cycle-resumed",function(a){b.container[a.type==="cycle-paused"?"addClass":"removeClass"]("cycle-paused")}),b.API.trigger("cycle-initialized",[b]),b.API.postInitSlideshow()},add:function(b,c){var d=this.opts(),e=d.slideCount,f=!1,g;a.type(b)=="string"&&(b=a.trim(b)),a(b).each(function(b){var e,f=a(this);c?d.container.prepend(f):d.container.append(f),d.slideCount++,e=d.API.buildSlideOpts(f),c?d.slides=a(f).add(d.slides):d.slides=d.slides.add(f),d.API.initSlide(e,f,--d._maxZ),f.data("cycle.opts",e),d.API.trigger("cycle-slide-added",[d,e,f])}),d.API.updateView(!0),f=d._preInitialized&&e<2&&d.slideCount>=1,f&&(d._initialized?d.timeout&&(g=d.slides.length,d.nextSlide=d.reverse?g-1:1,d.timeoutId||d.API.queueTransition(d)):d.API.initSlideshow())},calcFirstSlide:function(){var a=this.opts(),b;b=parseInt(a.startingSlide||0,10);if(b>=a.slides.length||b<0)b=0;a.currSlide=b,a.reverse?(a.nextSlide=b-1,a.nextSlide<0&&(a.nextSlide=a.slides.length-1)):(a.nextSlide=b+1,a.nextSlide==a.slides.length&&(a.nextSlide=0))},calcNextSlide:function(){var a=this.opts(),b;a.reverse?(b=a.nextSlide-1<0,a.nextSlide=b?a.slideCount-1:a.nextSlide-1,a.currSlide=b?0:a.nextSlide+1):(b=a.nextSlide+1==a.slides.length,a.nextSlide=b?0:a.nextSlide+1,a.currSlide=b?a.slides.length-1:a.nextSlide-1)},calcTx:function(b,c){var d=b,e;return c&&d.manualFx&&(e=a.fn.cycle.transitions[d.manualFx]),e||(e=a.fn.cycle.transitions[d.fx]),e||(e=a.fn.cycle.transitions.fade,d.API.log('Transition "'+d.fx+'" not found. Using fade.')),e},prepareTx:function(a,b){var c=this.opts(),d,e,f,g,h;if(c.slideCount<2){c.timeoutId=0;return}a&&(!c.busy||c.manualTrump)&&(c.API.stopTransition(),c.busy=!1,clearTimeout(c.timeoutId),c.timeoutId=0);if(c.busy)return;if(c.timeoutId===0&&!a)return;e=c.slides[c.currSlide],f=c.slides[c.nextSlide],g=c.API.getSlideOpts(c.nextSlide),h=c.API.calcTx(g,a),c._tx=h,a&&g.manualSpeed!==undefined&&(g.speed=g.manualSpeed),c.nextSlide!=c.currSlide&&(a||!c.paused&&!c.hoverPaused&&c.timeout)?(c.API.trigger("cycle-before",[g,e,f,b]),h.before&&h.before(g,e,f,b),d=function(){c.busy=!1;if(!c.container.data("cycle.opts"))return;h.after&&h.after(g,e,f,b),c.API.trigger("cycle-after",[g,e,f,b]),c.API.queueTransition(g),c.API.updateView(!0)},c.busy=!0,h.transition?h.transition(g,e,f,b,d):c.API.doTransition(g,e,f,b,d),c.API.calcNextSlide(),c.updateView<0&&c.API.updateView()):c.API.queueTransition(g)},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(a){var b=this.opts();if(b.nextSlide===0&&--b.loop===0){b.API.log("terminating; loop=0"),b.timeout=0,b.API.trigger("cycle-finished",[b]),b.nextSlide=b.currSlide;return}a.timeout&&(b.timeoutId=setTimeout(function(){b.API.prepareTx(!1,!b.reverse)},a.timeout))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(b){var d=this.opts(),e,f,g=b.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(e=g[h],f=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,c),d.API.log("["+(d.slideCount-1)+"]",f+":",e,"("+typeof e+")"),g[f]=e);g=a.extend({},a.fn.cycle.defaults,d,g),g.slideNum=d.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();b===undefined&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a){var b=this.opts();if(!b._initialized)return;var c=b.API.getSlideOpts(),d=b.slides[b.currSlide];b.slideActiveClass&&b.slides.removeClass(b.slideActiveClass).eq(b.currSlide).addClass(b.slideActiveClass),a&&b.hideNonActive&&b.slides.filter(":not(."+b.slideActiveClass+")").hide(),b.API.trigger("cycle-update-view",[b,c,d])},getComponent:function(b){var c=this.opts(),d=c[b];return typeof d=="string"?/^\s*\>/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;f<h;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f<e.currSlide;f++)a(e.slides[f]).css("zIndex",g--)}else{for(f=e.currSlide-1;f>=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+b},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:-1},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})})(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{autoHeight:0}),a(document).on("cycle-initialized",function(b,c){function h(){c.container.height(c.container.width()/g)}var d=c.autoHeight,e=-1,f,g;d==="calc"||a.type(d)=="number"&&d>=0?(d==="calc"?c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}):d>=c.slides.length&&(d=0),f=a(c.slides[d]).clone(),f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(c.container).removeClass().addClass("cycle-sentinel cycle-slide"),f.find("*").css("visibility","hidden"),c._sentinel=f):a.type(d)=="string"&&/\d+\:\d+/.test(d)&&(g=d.match(/(\d+)\:(\d+)/),g=g[1]/g[2],a(window).on("resize",h),c._autoHeightOnResize=h,setTimeout(function(){a(window).triggerHandler("resize")},15))}),a(document).on("cycle-destroyed",function(b,c){c._sentinel&&c._sentinel.remove(),c._autoHeightOnResize&&a(window).off("resize",c._autoHeightOnResize)})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>"}),a(document).on("cycle-update-view",function(b,c,d,e){var f;a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return a.type(c)=="number"?this.cycle("goto",c):a.type(c)=="string"?this.each(function(){var h;d=c,f=a(this).data("cycle.opts");if(f===undefined){b.log('slideshow must be initialized before sending commands; "'+d+'" ignored');return}d=d=="goto"?"jump":d,e=f.API[d];if(a.isFunction(e))return h=a.makeArray(g),h.shift(),e.apply(f.API,h);b.log("unknown command: ",d)}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?-1:1;if(a.allowWrap===!1&&a.currSlide+b>=a.slideCount)return;a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next")},prev:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?1:-1;if(a.allowWrap===!1&&a.currSlide+b<0)return;a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev")},destroy:function(){var a=this.opts();clearTimeout(a.timeoutId),a.timeoutId=0,a.API.stop(),a.API.trigger("cycle-destroyed",[a]).log("cycle-destroyed"),a.container.removeData("cycle.opts"),a.retainStylesOnDestroy||(a.container.removeAttr("style"),a.slides.removeAttr("style"),a.slides.removeClass("cycle-slide-active"))},jump:function(a){var b,c=this.opts();if(c.busy&&!c.manualTrump)return;var d=parseInt(a,10);if(isNaN(d)||d<0||d>=c.slides.length){c.API.log("goto: invalid slide index: "+d);return}if(d==c.currSlide){c.API.log("goto: skipping, already on slide",d);return}c.nextSlide=d,clearTimeout(c.timeoutId),c.timeoutId=0,c.API.log("goto: ",d," (zero-index)"),b=c.currSlide<c.nextSlide,c.API.prepareTx(!0,b)},stop:function(){var b=this.opts(),c=b.container;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stopTransition(),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.off("mouseenter mouseleave")),b.API.trigger("cycle-stopped",[b]).log("cycle-stopped")},pause:function(){var a=this.opts();a.paused=!0,a.API.trigger("cycle-paused",[a]).log("cycle-paused")},resume:function(){var a=this.opts();a.paused=!1,a.API.trigger("cycle-resumed",[a]).log("cycle-resumed")},reinit:function(){var a=this.opts();a.API.destroy(),a.container.cycle()},remove:function(b){var c=this.opts(),d,e,f=[],g=1;for(var h=0;h<c.slides.length;h++)d=c.slides[h],h==b?e=d:(f.push(d),a(d).data("cycle.opts").slideNum=g,g++);e&&(c.slides=a(f),c.slideCount--,a(e).remove(),b==c.currSlide&&c.API.advanceSlide(1),c.API.trigger("cycle-slide-removed",[c,b,e]).log("cycle-slide-removed"),c.API.updateView())}}),a(document).on("click.cycle","[data-cycle-cmd]",function(b){b.preventDefault();var c=a(this),d=c.data("cycle-cmd"),e=c.data("cycle-context")||".cycle-slideshow";a(e).cycle(d,c.data("cycle-arg"))})}(jQuery),function(a){function b(b,c){var d;if(b._hashFence){b._hashFence=!1;return}d=window.location.hash.substring(1),b.slides.each(function(e){if(a(this).data("cycle-hash")==d)return c===!0?b.startingSlide=e:(b.nextSlide=e,b.API.prepareTx(!0,!1)),!1})}"use strict",a(document).on("cycle-pre-initialize",function(c,d){b(d,!0),d._onHashChange=function(){b(d,!1)},a(window).on("hashchange",d._onHashChange)}),a(document).on("cycle-update-view",function(a,b,c){c.hash&&(b._hashFence=!0,window.location.hash=c.hash)}),a(document).on("cycle-destroyed",function(b,c){c._onHashChange&&a(window).off("hashchange",c._onHashChange)})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{loader:!1}),a(document).on("cycle-bootstrap",function(b,c){function e(b,e){function h(b){var h;c.loader=="wait"?(f.push(b),g===0&&(f.sort(i),d.apply(c.API,[f,e]),c.container.removeClass("cycle-loading"))):(h=a(c.slides[c.currSlide]),d.apply(c.API,[b,e]),h.show(),c.container.removeClass("cycle-loading"))}function i(a,b){return a.data("index")-b.data("index")}var f=[];typeof b=="string"&&(b=a.trim(b)),b=a(b);var g=b.length;b.hide().appendTo("body").each(function(b){function l(){--i===0&&(--g,h(j))}var i=0,j=a(this),k=j.is("img")?j:j.find("img");j.data("index",b),k=k.filter(":not(.cycle-loader-ignore)");if(!k.length){--g,f.push(j);return}i=k.length,k.each(function(){this.complete?l():a(this).load(function(){l()}).error(function(){--i===0&&(c.API.log("slide skipped; img not loaded:",this.src),--g===0&&c.loader=="wait"&&d.apply(c.API,[f,e]))})})}),g&&c.container.addClass("cycle-loading")}var d;if(!c.loader)return;d=c.API.add,c.API.add=e})}(jQuery),function(a){function b(b,c,d){var e,f=b.API.getComponent("pager");f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f)}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){a.preventDefault(),b.API.page(f,a.currentTarget)})})}function c(a,b){var c=this.opts();if(c.busy&&!c.manualTrump)return;var d=a.children().index(b),e=d,f=c.currSlide<e;if(c.currSlide==e)return;c.nextSlide=e,c.API.prepareTx(!0,f),c.API.trigger("cycle-pager-activated",[c,a,b])}"use strict",a.extend(a.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerTemplate:"<span>&bull;</span>"}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d,e){if(c.pager){var f=c.API.getComponent("pager");f.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c,d){var e;c.pager&&(e=c.API.getComponent("pager"),e.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c;b.pager&&b.pagerTemplate&&(c=b.API.getComponent("pager"),c.empty())})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){b.API.getComponent("next").off(b.nextEvent).on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").off(b.prevEvent).on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()});if(b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(a){b.API.next()}),b.container.on(d,function(){b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b,c,d){if(b.allowWrap)return;var e=b.disabledClass,f=b.API.getComponent("next"),g=b.API.getComponent("prev"),h=b._prevBoundry||0,i=b._nextBoundry||b.slideCount-1;b.currSlide==i?f.addClass(e).prop("disabled",!0):f.removeClass(e).prop("disabled",!1),b.currSlide===h?g.addClass(e).prop("disabled",!0):g.removeClass(e).prop("disabled",!1)}),a(document).on("cycle-destroyed",function(b,c){a(c.next).off(c.nextEvent),a(c.prev).off(c.prevEvent),c.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(!c.progressive)return;var d=c.API,e=d.next,f=d.prev,g=d.prepareTx,h=a.type(c.progressive),i,j;if(h=="array")i=c.progressive;else if(a.isFunction(c.progressive))i=c.progressive(c);else if(h=="string"){j=a(c.progressive),i=a.trim(j.html());if(!i)return;if(/^(\[)/.test(i))try{i=a.parseJSON(i)}catch(k){d.log("error parsing progressive slides",k);return}else i=i.split(new RegExp(j.data("cycle-split")||"\n")),i[i.length-0]||i.pop()}g&&(d.prepareTx=function(a,b){var d,e;if(a||i.length===0){g.apply(c.API,[a,b]);return}b&&c.currSlide==c.slideCount-1?(e=i[0],i=i.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(e)):!b&&c.currSlide===0?(d=i.length-1,e=i[d],i=i.slice(0,d),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(e,!0)):g.apply(c.API,[a,b])}),e&&(d.next=function(){var a=this.opts();if(i.length&&a.currSlide==a.slideCount-1){var b=i[0];i=i.slice(1),a.container.one("cycle-slide-added",function(a,b){e.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else e.apply(a.API)}),f&&(d.prev=function(){var a=this.opts();if(i.length&&a.currSlide===0){var b=i.length-1,c=i[b];i=i.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else f.apply(a.API)})})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d<e.length;d++){g=e[d];if(!g)continue;if(i.length>1){h=g;for(f=0;f<i.length;f++)g=h,h=h[i[f]]||c}else h=g[c];if(a.isFunction(h))return h.apply(g,e);if(h!==undefined&&h!==null&&h!=c)return h}return c})}})}(jQuery);
7
+
8
+ /*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20130108 */
9
+ (function(a){"use strict",a(document).on("cycle-bootstrap",function(a,b,c){if(b.fx!=="carousel")return;c.getSlideIndex=function(a){var b=this.opts()._carouselWrap.children(),c=b.index(a);return c%b.length},c.next=function(){var a=b.reverse?-1:1;if(b.allowWrap===!1&&b.currSlide+a>b.slideCount-b.carouselVisible)return;b.API.advanceSlide(a),b.API.trigger("cycle-next",[b]).log("cycle-next")}}),a.fn.cycle.transitions.carousel={preInit:function(b){b.hideNonActive=!1,b.container.on("cycle-destroyed",a.proxy(this.onDestroy,b.API)),b.API.stopTransition=this.stopTransition;for(var c=0;c<b.startingSlide;c++)b.container.append(b.slides[0])},postInit:function(b){var c,d,e=b.carouselVertical;b.carouselVisible&&b.carouselVisible>b.slideCount&&(b.carouselVisible=b.slideCount-1);var f=b.carouselVisible||b.slides.length,g={display:e?"block":"inline-block",position:"static"};b.container.css({position:"relative",overflow:"hidden"}),b.slides.css(g),b._currSlide=b.currSlide,d=a('<div class="cycle-carousel-wrap"></div').prependTo(b.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(b.slides),b._carouselWrap=d,e||d.css("white-space","nowrap"),b.allowWrap!==!1&&(b.slides.slice(0,b.slideCount).clone().css(g).appendTo(d),b.carouselVisible===undefined&&b.slides.slice(0,b.slideCount).clone().css(g).appendTo(d),b.slides.slice(0,b.slideCount).clone().css(g).prependTo(d),b.carouselVisible===undefined&&b.slides.slice(0,b.slideCount).clone().css(g).prependTo(d),d.find(".cycle-slide-active").removeClass("cycle-slide-active"),b.slides.eq(b.startingSlide).addClass("cycle-slide-active")),b.pager&&b.allowWrap===!1&&(c=b.slideCount-f,a(b.pager).children().filter(":gt("+c+")").hide()),b._nextBoundry=b.slideCount-b.carouselVisible,this.prepareDimensions(b)},prepareDimensions:function(b){var c,d,e,f,g=b.carouselVertical,h=b.carouselVisible||b.slides.length;b.carouselFluid&&b.carouselVisible?b._carouselResizeThrottle||this.fluidSlides(b):b.carouselVisible&&b.carouselSlideDimension?(c=h*b.carouselSlideDimension,b.container[g?"height":"width"](c)):b.carouselVisible&&(c=h*a(b.slides[0])[g?"outerHeight":"outerWidth"](!0),b.container[g?"height":"width"](c)),d=b.carouselOffset||0;if(b.allowWrap!==!1)if(b.carouselSlideDimension)d-=(b.slideCount+b.currSlide)*b.carouselSlideDimension;else{f=b._carouselWrap.children();for(var i=0;i<b.slideCount+b.currSlide;i++)d-=a(f[i])[g?"outerHeight":"outerWidth"](!0)}b._carouselWrap.css(g?"top":"left",d)},fluidSlides:function(b){function g(){clearTimeout(c),c=setTimeout(h,20)}function h(){b._carouselWrap.stop(!1,!0);var a=b.container.width()/b.carouselVisible;a=Math.ceil(a-e),b._carouselWrap.children().width(a),b._sentinel&&b._sentinel.width(a),f(b)}var c,d=b.slides.eq(0),e=d.outerWidth()-d.width(),f=this.prepareDimensions;a(window).on("resize",g),b._carouselResizeThrottle=g,h()},transition:function(b,c,d,e,f){var g,h={},i=b.nextSlide-b.currSlide,j=b.carouselVertical,k=b.speed;if(b.allowWrap===!1){e=i>0;var l=b._currSlide,m=b.slideCount-b.carouselVisible;i>0&&b.nextSlide>m&&l==m?i=0:i>0&&b.nextSlide>m?i=b.nextSlide-l-(b.nextSlide-m):i<0&&b.currSlide>m&&b.nextSlide>m?i=0:i<0&&b.currSlide>m?i+=b.currSlide-m:l=b.currSlide,g=this.getScroll(b,j,l,i),b.API.opts()._currSlide=b.nextSlide>m?m:b.nextSlide}else e&&b.nextSlide===0?(g=this.getDim(b,b.currSlide,j),f=this.genCallback(b,e,j,f)):!e&&b.nextSlide==b.slideCount-1?(g=this.getDim(b,b.currSlide,j),f=this.genCallback(b,e,j,f)):g=this.getScroll(b,j,b.currSlide,i);h[j?"top":"left"]=e?"-="+g:"+="+g,b.throttleSpeed&&(k=g/a(b.slides[0])[j?"height":"width"]()*b.speed),b._carouselWrap.animate(h,k,b.easing,f)},getDim:function(b,c,d){var e=a(b.slides[c]);return e[d?"outerHeight":"outerWidth"](!0)},getScroll:function(a,b,c,d){var e,f=0;if(d>0)for(e=c;e<c+d;e++)f+=this.getDim(a,e,b);else for(e=c;e>c+d;e--)f+=this.getDim(a,e,b);return f},genCallback:function(b,c,d,e){return function(){var c=a(b.slides[b.nextSlide]).position(),f=0-c[d?"top":"left"]+(b.carouselOffset||0);b._carouselWrap.css(b.carouselVertical?"top":"left",f),e()}},stopTransition:function(){var a=this.opts();a.slides.stop(!1,!0),a._carouselWrap.stop(!1,!0)},onDestroy:function(b){var c=this.opts();c._carouselResizeThrottle&&a(window).off("resize",c._carouselResizeThrottle),c.slides.prependTo(c.container),c._carouselWrap.remove()}}})(jQuery);
10
+
11
+ /*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20121120 */
12
+ (function(a){"use strict",a.fn.cycle.transitions.tileSlide=a.fn.cycle.transitions.tileBlind={before:function(b,c,d,e){b.API.stackSlides(c,d,e),a(c).show(),b.container.css("overflow","hidden"),b.tileDelay=b.tileDelay||b.fx=="tileSlide"?100:125,b.tileCount=b.tileCount||7,b.tileVertical=b.tileVertical!==!1,b.container.data("cycleTileInitialized")||(b.container.on("cycle-destroyed",a.proxy(this.onDestroy,b.API)),b.container.data("cycleTileInitialized",!0))},transition:function(b,c,d,e,f){function w(a){g.eq(a).animate(s,{duration:b.speed,easing:b.easing,complete:function(){(e?o-1===a:0===a)&&b._tileAniCallback()}}),setTimeout(function(){(e?o-1!==a:0!==a)&&w(e?a+1:a-1)},b.tileDelay)}b.slides.not(c).not(d).hide();var g=a(),h=a(c),i=a(d),j,k,l,m,n,o=b.tileCount,p=b.tileVertical,q=b.container.height(),r=b.container.width();p?(k=Math.floor(r/o),m=r-k*(o-1),l=n=q):(k=m=r,l=Math.floor(q/o),n=q-l*(o-1)),b.container.find(".cycle-tiles-container").remove();var s,t={left:0,top:0,overflow:"hidden",position:"absolute",margin:0,padding:0};p?s=b.fx=="tileSlide"?{top:q}:{width:0}:s=b.fx=="tileSlide"?{left:r}:{height:0};var u=a('<div class="cycle-tiles-container"></div>');u.css({zIndex:h.css("z-index"),overflow:"visible",position:"absolute",top:0}),u.insertBefore(d);for(var v=0;v<o;v++)j=a("<div></div>").css(t).css({width:o-1===v?m:k,height:o-1===v?n:l,marginLeft:p?v*k:0,marginTop:p?0:v*l}).append(h.clone().css({position:"relative",maxWidth:"none",width:h.width(),margin:0,padding:0,marginLeft:p?-(v*k):0,marginTop:p?0:-(v*l)})),g=g.add(j);u.append(g),h.hide(),i.show().css("opacity",1),w(e?0:o-1),b._tileAniCallback=function(){i.show(),h.hide(),u.remove(),f()}},stopTransition:function(a){a.container.find("*").stop(!0,!0),a._tileAniCallback&&a._tileAniCallback()},onDestroy:function(a){var b=this.opts();b.container.find(".cycle-tiles-container").remove()}}})(jQuery);
js/jquery-cookie.js DELETED
@@ -1,47 +0,0 @@
1
- /*!
2
- * jQuery Cookie Plugin
3
- * https://github.com/carhartl/jquery-cookie
4
- *
5
- * Copyright 2011, Klaus Hartl
6
- * Dual licensed under the MIT or GPL Version 2 licenses.
7
- * http://www.opensource.org/licenses/mit-license.php
8
- * http://www.opensource.org/licenses/GPL-2.0
9
- */
10
- (function($) {
11
- $.cookie = function(key, value, options) {
12
-
13
- // key and at least value given, set cookie...
14
- if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) {
15
- options = $.extend({}, options);
16
-
17
- if (value === null || value === undefined) {
18
- options.expires = -1;
19
- }
20
-
21
- if (typeof options.expires === 'number') {
22
- var days = options.expires, t = options.expires = new Date();
23
- t.setDate(t.getDate() + days);
24
- }
25
-
26
- value = String(value);
27
-
28
- return (document.cookie = [
29
- encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value),
30
- options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
31
- options.path ? '; path=' + options.path : '',
32
- options.domain ? '; domain=' + options.domain : '',
33
- options.secure ? '; secure' : ''
34
- ].join(''));
35
- }
36
-
37
- // key and possibly options given, get cookie...
38
- options = value || {};
39
- var decode = options.raw ? function(s) { return s; } : decodeURIComponent;
40
-
41
- var pairs = document.cookie.split('; ');
42
- for (var i = 0, pair; pair = pairs[i] && pairs[i].split('='); i++) {
43
- if (decode(pair[0]) === key) return decode(pair[1] || ''); // IE saves cookies with empty string as "c; ", e.g. without "=" as opposed to EOMB, thus pair[1] may be undefined
44
- }
45
- return null;
46
- };
47
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/jquery.cycle2.min.js CHANGED
@@ -1,6 +1,6 @@
1
- /*!
2
- * jQuery Cycle2; ver: 20130206
3
- * http://jquery.malsup.com/cycle2/
4
- * Copyright (c) 2013 M. Alsup; Dual licensed: MIT/GPL
5
- */
6
  (function(a){function c(a){return(a||"").toLowerCase()}"use strict";var b="20130205";a.fn.cycle=function(b){var d;return this.length===0&&!a.isReady?(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(b)}),this):this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(h.data("cycle.opts"))return;if(h.data("cycle-log")===!1||b&&b.log===!1||e&&e.log===!1)i=a.noop;i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,c),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,b||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()})},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b=this.opts(),c=b.container;b.API.calcFirstSlide(),b.container.css("position")=="static"&&b.container.css("position","relative"),a(b.slides[b.currSlide]).css("opacity",1).show(),b.API.stackSlides(b.slides[b.currSlide],b.slides[b.nextSlide],!b.reverse),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.hover(function(){b.hoverPaused=!0,b.paused||b.API.trigger("cycle-paused",[b])},function(){b.hoverPaused=!1,b.paused||b.API.trigger("cycle-resumed",[b])})),b.timeout&&(b.timeoutId=setTimeout(function(){b.API.prepareTx(!1,!b.reverse)},b.timeout+b.delay)),b._initialized=!0,b.API.updateView(!0),b.container.on("cycle-paused cycle-resumed",function(a){b.container[a.type==="cycle-paused"?"addClass":"removeClass"]("cycle-paused")}),b.API.trigger("cycle-initialized",[b]),b.API.postInitSlideshow()},add:function(b,c){var d=this.opts(),e=d.slideCount,f=!1,g;a.type(b)=="string"&&(b=a.trim(b)),a(b).each(function(b){var e,f=a(this);c?d.container.prepend(f):d.container.append(f),d.slideCount++,e=d.API.buildSlideOpts(f),c?d.slides=a(f).add(d.slides):d.slides=d.slides.add(f),d.API.initSlide(e,f,--d._maxZ),f.data("cycle.opts",e),d.API.trigger("cycle-slide-added",[d,e,f])}),d.API.updateView(!0),f=d._preInitialized&&e<2&&d.slideCount>=1,f&&(d._initialized?d.timeout&&(g=d.slides.length,d.nextSlide=d.reverse?g-1:1,d.timeoutId||d.API.queueTransition(d)):d.API.initSlideshow())},calcFirstSlide:function(){var a=this.opts(),b;b=parseInt(a.startingSlide||0,10);if(b>=a.slides.length||b<0)b=0;a.currSlide=b,a.reverse?(a.nextSlide=b-1,a.nextSlide<0&&(a.nextSlide=a.slides.length-1)):(a.nextSlide=b+1,a.nextSlide==a.slides.length&&(a.nextSlide=0))},calcNextSlide:function(){var a=this.opts(),b;a.reverse?(b=a.nextSlide-1<0,a.nextSlide=b?a.slideCount-1:a.nextSlide-1,a.currSlide=b?0:a.nextSlide+1):(b=a.nextSlide+1==a.slides.length,a.nextSlide=b?0:a.nextSlide+1,a.currSlide=b?a.slides.length-1:a.nextSlide-1)},calcTx:function(b,c){var d=b,e;return c&&d.manualFx&&(e=a.fn.cycle.transitions[d.manualFx]),e||(e=a.fn.cycle.transitions[d.fx]),e||(e=a.fn.cycle.transitions.fade,d.API.log('Transition "'+d.fx+'" not found. Using fade.')),e},prepareTx:function(a,b){var c=this.opts(),d,e,f,g,h;if(c.slideCount<2){c.timeoutId=0;return}a&&(!c.busy||c.manualTrump)&&(c.API.stopTransition(),c.busy=!1,clearTimeout(c.timeoutId),c.timeoutId=0);if(c.busy)return;if(c.timeoutId===0&&!a)return;e=c.slides[c.currSlide],f=c.slides[c.nextSlide],g=c.API.getSlideOpts(c.nextSlide),h=c.API.calcTx(g,a),c._tx=h,a&&g.manualSpeed!==undefined&&(g.speed=g.manualSpeed),c.nextSlide!=c.currSlide&&(a||!c.paused&&!c.hoverPaused&&c.timeout)?(c.API.trigger("cycle-before",[g,e,f,b]),h.before&&h.before(g,e,f,b),d=function(){c.busy=!1;if(!c.container.data("cycle.opts"))return;h.after&&h.after(g,e,f,b),c.API.trigger("cycle-after",[g,e,f,b]),c.API.queueTransition(g),c.API.updateView(!0)},c.busy=!0,h.transition?h.transition(g,e,f,b,d):c.API.doTransition(g,e,f,b,d),c.API.calcNextSlide(),c.updateView<0&&c.API.updateView()):c.API.queueTransition(g)},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(a){var b=this.opts();if(b.nextSlide===0&&--b.loop===0){b.API.log("terminating; loop=0"),b.timeout=0,b.API.trigger("cycle-finished",[b]),b.nextSlide=b.currSlide;return}a.timeout&&(b.timeoutId=setTimeout(function(){b.API.prepareTx(!1,!b.reverse)},a.timeout))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(b){var d=this.opts(),e,f,g=b.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(e=g[h],f=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,c),d.API.log("["+(d.slideCount-1)+"]",f+":",e,"("+typeof e+")"),g[f]=e);g=a.extend({},a.fn.cycle.defaults,d,g),g.slideNum=d.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();b===undefined&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a){var b=this.opts();if(!b._initialized)return;var c=b.API.getSlideOpts(),d=b.slides[b.currSlide];b.slideActiveClass&&b.slides.removeClass(b.slideActiveClass).eq(b.currSlide).addClass(b.slideActiveClass),a&&b.hideNonActive&&b.slides.filter(":not(."+b.slideActiveClass+")").hide(),b.API.trigger("cycle-update-view",[b,c,d])},getComponent:function(b){var c=this.opts(),d=c[b];return typeof d=="string"?/^\s*\>/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;f<h;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f<e.currSlide;f++)a(e.slides[f]).css("zIndex",g--)}else{for(f=e.currSlide-1;f>=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+b},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:-1},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})})(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{autoHeight:0}),a(document).on("cycle-initialized",function(b,c){function h(){c.container.height(c.container.width()/g)}var d=c.autoHeight,e=-1,f,g;d==="calc"||a.type(d)=="number"&&d>=0?(d==="calc"?c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}):d>=c.slides.length&&(d=0),f=a(c.slides[d]).clone(),f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(c.container).removeClass().addClass("cycle-sentinel cycle-slide"),f.find("*").css("visibility","hidden"),c._sentinel=f):a.type(d)=="string"&&/\d+\:\d+/.test(d)&&(g=d.match(/(\d+)\:(\d+)/),g=g[1]/g[2],a(window).on("resize",h),c._autoHeightOnResize=h,setTimeout(function(){a(window).triggerHandler("resize")},15))}),a(document).on("cycle-destroyed",function(b,c){c._sentinel&&c._sentinel.remove(),c._autoHeightOnResize&&a(window).off("resize",c._autoHeightOnResize)})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>"}),a(document).on("cycle-update-view",function(b,c,d,e){var f;a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return a.type(c)=="number"?this.cycle("goto",c):a.type(c)=="string"?this.each(function(){var h;d=c,f=a(this).data("cycle.opts");if(f===undefined){b.log('slideshow must be initialized before sending commands; "'+d+'" ignored');return}d=d=="goto"?"jump":d,e=f.API[d];if(a.isFunction(e))return h=a.makeArray(g),h.shift(),e.apply(f.API,h);b.log("unknown command: ",d)}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?-1:1;if(a.allowWrap===!1&&a.currSlide+b>=a.slideCount)return;a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next")},prev:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?1:-1;if(a.allowWrap===!1&&a.currSlide+b<0)return;a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev")},destroy:function(){var a=this.opts();clearTimeout(a.timeoutId),a.timeoutId=0,a.API.stop(),a.API.trigger("cycle-destroyed",[a]).log("cycle-destroyed"),a.container.removeData("cycle.opts"),a.retainStylesOnDestroy||(a.container.removeAttr("style"),a.slides.removeAttr("style"),a.slides.removeClass("cycle-slide-active"))},jump:function(a){var b,c=this.opts();if(c.busy&&!c.manualTrump)return;var d=parseInt(a,10);if(isNaN(d)||d<0||d>=c.slides.length){c.API.log("goto: invalid slide index: "+d);return}if(d==c.currSlide){c.API.log("goto: skipping, already on slide",d);return}c.nextSlide=d,clearTimeout(c.timeoutId),c.timeoutId=0,c.API.log("goto: ",d," (zero-index)"),b=c.currSlide<c.nextSlide,c.API.prepareTx(!0,b)},stop:function(){var b=this.opts(),c=b.container;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stopTransition(),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.off("mouseenter mouseleave")),b.API.trigger("cycle-stopped",[b]).log("cycle-stopped")},pause:function(){var a=this.opts();a.paused=!0,a.API.trigger("cycle-paused",[a]).log("cycle-paused")},resume:function(){var a=this.opts();a.paused=!1,a.API.trigger("cycle-resumed",[a]).log("cycle-resumed")},reinit:function(){var a=this.opts();a.API.destroy(),a.container.cycle()},remove:function(b){var c=this.opts(),d,e,f=[],g=1;for(var h=0;h<c.slides.length;h++)d=c.slides[h],h==b?e=d:(f.push(d),a(d).data("cycle.opts").slideNum=g,g++);e&&(c.slides=a(f),c.slideCount--,a(e).remove(),b==c.currSlide&&c.API.advanceSlide(1),c.API.trigger("cycle-slide-removed",[c,b,e]).log("cycle-slide-removed"),c.API.updateView())}}),a(document).on("click.cycle","[data-cycle-cmd]",function(b){b.preventDefault();var c=a(this),d=c.data("cycle-cmd"),e=c.data("cycle-context")||".cycle-slideshow";a(e).cycle(d,c.data("cycle-arg"))})}(jQuery),function(a){function b(b,c){var d;if(b._hashFence){b._hashFence=!1;return}d=window.location.hash.substring(1),b.slides.each(function(e){if(a(this).data("cycle-hash")==d)return c===!0?b.startingSlide=e:(b.nextSlide=e,b.API.prepareTx(!0,!1)),!1})}"use strict",a(document).on("cycle-pre-initialize",function(c,d){b(d,!0),d._onHashChange=function(){b(d,!1)},a(window).on("hashchange",d._onHashChange)}),a(document).on("cycle-update-view",function(a,b,c){c.hash&&(b._hashFence=!0,window.location.hash=c.hash)}),a(document).on("cycle-destroyed",function(b,c){c._onHashChange&&a(window).off("hashchange",c._onHashChange)})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{loader:!1}),a(document).on("cycle-bootstrap",function(b,c){function e(b,e){function h(b){var h;c.loader=="wait"?(f.push(b),g===0&&(f.sort(i),d.apply(c.API,[f,e]),c.container.removeClass("cycle-loading"))):(h=a(c.slides[c.currSlide]),d.apply(c.API,[b,e]),h.show(),c.container.removeClass("cycle-loading"))}function i(a,b){return a.data("index")-b.data("index")}var f=[];typeof b=="string"&&(b=a.trim(b)),b=a(b);var g=b.length;b.hide().appendTo("body").each(function(b){function l(){--i===0&&(--g,h(j))}var i=0,j=a(this),k=j.is("img")?j:j.find("img");j.data("index",b),k=k.filter(":not(.cycle-loader-ignore)");if(!k.length){--g,f.push(j);return}i=k.length,k.each(function(){this.complete?l():a(this).load(function(){l()}).error(function(){--i===0&&(c.API.log("slide skipped; img not loaded:",this.src),--g===0&&c.loader=="wait"&&d.apply(c.API,[f,e]))})})}),g&&c.container.addClass("cycle-loading")}var d;if(!c.loader)return;d=c.API.add,c.API.add=e})}(jQuery),function(a){function b(b,c,d){var e,f=b.API.getComponent("pager");f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f)}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){a.preventDefault(),b.API.page(f,a.currentTarget)})})}function c(a,b){var c=this.opts();if(c.busy&&!c.manualTrump)return;var d=a.children().index(b),e=d,f=c.currSlide<e;if(c.currSlide==e)return;c.nextSlide=e,c.API.prepareTx(!0,f),c.API.trigger("cycle-pager-activated",[c,a,b])}"use strict",a.extend(a.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerTemplate:"<span>&bull;</span>"}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d,e){if(c.pager){var f=c.API.getComponent("pager");f.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c,d){var e;c.pager&&(e=c.API.getComponent("pager"),e.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c;b.pager&&b.pagerTemplate&&(c=b.API.getComponent("pager"),c.empty())})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){b.API.getComponent("next").off(b.nextEvent).on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").off(b.prevEvent).on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()});if(b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(a){b.API.next()}),b.container.on(d,function(){b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b,c,d){if(b.allowWrap)return;var e=b.disabledClass,f=b.API.getComponent("next"),g=b.API.getComponent("prev"),h=b._prevBoundry||0,i=b._nextBoundry||b.slideCount-1;b.currSlide==i?f.addClass(e).prop("disabled",!0):f.removeClass(e).prop("disabled",!1),b.currSlide===h?g.addClass(e).prop("disabled",!0):g.removeClass(e).prop("disabled",!1)}),a(document).on("cycle-destroyed",function(b,c){a(c.next).off(c.nextEvent),a(c.prev).off(c.prevEvent),c.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(!c.progressive)return;var d=c.API,e=d.next,f=d.prev,g=d.prepareTx,h=a.type(c.progressive),i,j;if(h=="array")i=c.progressive;else if(a.isFunction(c.progressive))i=c.progressive(c);else if(h=="string"){j=a(c.progressive),i=a.trim(j.html());if(!i)return;if(/^(\[)/.test(i))try{i=a.parseJSON(i)}catch(k){d.log("error parsing progressive slides",k);return}else i=i.split(new RegExp(j.data("cycle-split")||"\n")),i[i.length-0]||i.pop()}g&&(d.prepareTx=function(a,b){var d,e;if(a||i.length===0){g.apply(c.API,[a,b]);return}b&&c.currSlide==c.slideCount-1?(e=i[0],i=i.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(e)):!b&&c.currSlide===0?(d=i.length-1,e=i[d],i=i.slice(0,d),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(e,!0)):g.apply(c.API,[a,b])}),e&&(d.next=function(){var a=this.opts();if(i.length&&a.currSlide==a.slideCount-1){var b=i[0];i=i.slice(1),a.container.one("cycle-slide-added",function(a,b){e.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else e.apply(a.API)}),f&&(d.prev=function(){var a=this.opts();if(i.length&&a.currSlide===0){var b=i.length-1,c=i[b];i=i.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else f.apply(a.API)})})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d<e.length;d++){g=e[d];if(!g)continue;if(i.length>1){h=g;for(f=0;f<i.length;f++)g=h,h=h[i[f]]||c}else h=g[c];if(a.isFunction(h))return h.apply(g,e);if(h!==undefined&&h!==null&&h!=c)return h}return c})}})}(jQuery);
1
+ /*!
2
+ * jQuery Cycle2; ver: 20130206
3
+ * http://jquery.malsup.com/cycle2/
4
+ * Copyright (c) 2013 M. Alsup; Dual licensed: MIT/GPL
5
+ */
6
  (function(a){function c(a){return(a||"").toLowerCase()}"use strict";var b="20130205";a.fn.cycle=function(b){var d;return this.length===0&&!a.isReady?(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(b)}),this):this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(h.data("cycle.opts"))return;if(h.data("cycle-log")===!1||b&&b.log===!1||e&&e.log===!1)i=a.noop;i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,c),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,b||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()})},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b=this.opts(),c=b.container;b.API.calcFirstSlide(),b.container.css("position")=="static"&&b.container.css("position","relative"),a(b.slides[b.currSlide]).css("opacity",1).show(),b.API.stackSlides(b.slides[b.currSlide],b.slides[b.nextSlide],!b.reverse),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.hover(function(){b.hoverPaused=!0,b.paused||b.API.trigger("cycle-paused",[b])},function(){b.hoverPaused=!1,b.paused||b.API.trigger("cycle-resumed",[b])})),b.timeout&&(b.timeoutId=setTimeout(function(){b.API.prepareTx(!1,!b.reverse)},b.timeout+b.delay)),b._initialized=!0,b.API.updateView(!0),b.container.on("cycle-paused cycle-resumed",function(a){b.container[a.type==="cycle-paused"?"addClass":"removeClass"]("cycle-paused")}),b.API.trigger("cycle-initialized",[b]),b.API.postInitSlideshow()},add:function(b,c){var d=this.opts(),e=d.slideCount,f=!1,g;a.type(b)=="string"&&(b=a.trim(b)),a(b).each(function(b){var e,f=a(this);c?d.container.prepend(f):d.container.append(f),d.slideCount++,e=d.API.buildSlideOpts(f),c?d.slides=a(f).add(d.slides):d.slides=d.slides.add(f),d.API.initSlide(e,f,--d._maxZ),f.data("cycle.opts",e),d.API.trigger("cycle-slide-added",[d,e,f])}),d.API.updateView(!0),f=d._preInitialized&&e<2&&d.slideCount>=1,f&&(d._initialized?d.timeout&&(g=d.slides.length,d.nextSlide=d.reverse?g-1:1,d.timeoutId||d.API.queueTransition(d)):d.API.initSlideshow())},calcFirstSlide:function(){var a=this.opts(),b;b=parseInt(a.startingSlide||0,10);if(b>=a.slides.length||b<0)b=0;a.currSlide=b,a.reverse?(a.nextSlide=b-1,a.nextSlide<0&&(a.nextSlide=a.slides.length-1)):(a.nextSlide=b+1,a.nextSlide==a.slides.length&&(a.nextSlide=0))},calcNextSlide:function(){var a=this.opts(),b;a.reverse?(b=a.nextSlide-1<0,a.nextSlide=b?a.slideCount-1:a.nextSlide-1,a.currSlide=b?0:a.nextSlide+1):(b=a.nextSlide+1==a.slides.length,a.nextSlide=b?0:a.nextSlide+1,a.currSlide=b?a.slides.length-1:a.nextSlide-1)},calcTx:function(b,c){var d=b,e;return c&&d.manualFx&&(e=a.fn.cycle.transitions[d.manualFx]),e||(e=a.fn.cycle.transitions[d.fx]),e||(e=a.fn.cycle.transitions.fade,d.API.log('Transition "'+d.fx+'" not found. Using fade.')),e},prepareTx:function(a,b){var c=this.opts(),d,e,f,g,h;if(c.slideCount<2){c.timeoutId=0;return}a&&(!c.busy||c.manualTrump)&&(c.API.stopTransition(),c.busy=!1,clearTimeout(c.timeoutId),c.timeoutId=0);if(c.busy)return;if(c.timeoutId===0&&!a)return;e=c.slides[c.currSlide],f=c.slides[c.nextSlide],g=c.API.getSlideOpts(c.nextSlide),h=c.API.calcTx(g,a),c._tx=h,a&&g.manualSpeed!==undefined&&(g.speed=g.manualSpeed),c.nextSlide!=c.currSlide&&(a||!c.paused&&!c.hoverPaused&&c.timeout)?(c.API.trigger("cycle-before",[g,e,f,b]),h.before&&h.before(g,e,f,b),d=function(){c.busy=!1;if(!c.container.data("cycle.opts"))return;h.after&&h.after(g,e,f,b),c.API.trigger("cycle-after",[g,e,f,b]),c.API.queueTransition(g),c.API.updateView(!0)},c.busy=!0,h.transition?h.transition(g,e,f,b,d):c.API.doTransition(g,e,f,b,d),c.API.calcNextSlide(),c.updateView<0&&c.API.updateView()):c.API.queueTransition(g)},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(a){var b=this.opts();if(b.nextSlide===0&&--b.loop===0){b.API.log("terminating; loop=0"),b.timeout=0,b.API.trigger("cycle-finished",[b]),b.nextSlide=b.currSlide;return}a.timeout&&(b.timeoutId=setTimeout(function(){b.API.prepareTx(!1,!b.reverse)},a.timeout))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(b){var d=this.opts(),e,f,g=b.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(e=g[h],f=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,c),d.API.log("["+(d.slideCount-1)+"]",f+":",e,"("+typeof e+")"),g[f]=e);g=a.extend({},a.fn.cycle.defaults,d,g),g.slideNum=d.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();b===undefined&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a){var b=this.opts();if(!b._initialized)return;var c=b.API.getSlideOpts(),d=b.slides[b.currSlide];b.slideActiveClass&&b.slides.removeClass(b.slideActiveClass).eq(b.currSlide).addClass(b.slideActiveClass),a&&b.hideNonActive&&b.slides.filter(":not(."+b.slideActiveClass+")").hide(),b.API.trigger("cycle-update-view",[b,c,d])},getComponent:function(b){var c=this.opts(),d=c[b];return typeof d=="string"?/^\s*\>/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;f<h;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f<e.currSlide;f++)a(e.slides[f]).css("zIndex",g--)}else{for(f=e.currSlide-1;f>=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+b},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:-1},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})})(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{autoHeight:0}),a(document).on("cycle-initialized",function(b,c){function h(){c.container.height(c.container.width()/g)}var d=c.autoHeight,e=-1,f,g;d==="calc"||a.type(d)=="number"&&d>=0?(d==="calc"?c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}):d>=c.slides.length&&(d=0),f=a(c.slides[d]).clone(),f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(c.container).removeClass().addClass("cycle-sentinel cycle-slide"),f.find("*").css("visibility","hidden"),c._sentinel=f):a.type(d)=="string"&&/\d+\:\d+/.test(d)&&(g=d.match(/(\d+)\:(\d+)/),g=g[1]/g[2],a(window).on("resize",h),c._autoHeightOnResize=h,setTimeout(function(){a(window).triggerHandler("resize")},15))}),a(document).on("cycle-destroyed",function(b,c){c._sentinel&&c._sentinel.remove(),c._autoHeightOnResize&&a(window).off("resize",c._autoHeightOnResize)})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>"}),a(document).on("cycle-update-view",function(b,c,d,e){var f;a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return a.type(c)=="number"?this.cycle("goto",c):a.type(c)=="string"?this.each(function(){var h;d=c,f=a(this).data("cycle.opts");if(f===undefined){b.log('slideshow must be initialized before sending commands; "'+d+'" ignored');return}d=d=="goto"?"jump":d,e=f.API[d];if(a.isFunction(e))return h=a.makeArray(g),h.shift(),e.apply(f.API,h);b.log("unknown command: ",d)}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?-1:1;if(a.allowWrap===!1&&a.currSlide+b>=a.slideCount)return;a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next")},prev:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?1:-1;if(a.allowWrap===!1&&a.currSlide+b<0)return;a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev")},destroy:function(){var a=this.opts();clearTimeout(a.timeoutId),a.timeoutId=0,a.API.stop(),a.API.trigger("cycle-destroyed",[a]).log("cycle-destroyed"),a.container.removeData("cycle.opts"),a.retainStylesOnDestroy||(a.container.removeAttr("style"),a.slides.removeAttr("style"),a.slides.removeClass("cycle-slide-active"))},jump:function(a){var b,c=this.opts();if(c.busy&&!c.manualTrump)return;var d=parseInt(a,10);if(isNaN(d)||d<0||d>=c.slides.length){c.API.log("goto: invalid slide index: "+d);return}if(d==c.currSlide){c.API.log("goto: skipping, already on slide",d);return}c.nextSlide=d,clearTimeout(c.timeoutId),c.timeoutId=0,c.API.log("goto: ",d," (zero-index)"),b=c.currSlide<c.nextSlide,c.API.prepareTx(!0,b)},stop:function(){var b=this.opts(),c=b.container;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stopTransition(),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.off("mouseenter mouseleave")),b.API.trigger("cycle-stopped",[b]).log("cycle-stopped")},pause:function(){var a=this.opts();a.paused=!0,a.API.trigger("cycle-paused",[a]).log("cycle-paused")},resume:function(){var a=this.opts();a.paused=!1,a.API.trigger("cycle-resumed",[a]).log("cycle-resumed")},reinit:function(){var a=this.opts();a.API.destroy(),a.container.cycle()},remove:function(b){var c=this.opts(),d,e,f=[],g=1;for(var h=0;h<c.slides.length;h++)d=c.slides[h],h==b?e=d:(f.push(d),a(d).data("cycle.opts").slideNum=g,g++);e&&(c.slides=a(f),c.slideCount--,a(e).remove(),b==c.currSlide&&c.API.advanceSlide(1),c.API.trigger("cycle-slide-removed",[c,b,e]).log("cycle-slide-removed"),c.API.updateView())}}),a(document).on("click.cycle","[data-cycle-cmd]",function(b){b.preventDefault();var c=a(this),d=c.data("cycle-cmd"),e=c.data("cycle-context")||".cycle-slideshow";a(e).cycle(d,c.data("cycle-arg"))})}(jQuery),function(a){function b(b,c){var d;if(b._hashFence){b._hashFence=!1;return}d=window.location.hash.substring(1),b.slides.each(function(e){if(a(this).data("cycle-hash")==d)return c===!0?b.startingSlide=e:(b.nextSlide=e,b.API.prepareTx(!0,!1)),!1})}"use strict",a(document).on("cycle-pre-initialize",function(c,d){b(d,!0),d._onHashChange=function(){b(d,!1)},a(window).on("hashchange",d._onHashChange)}),a(document).on("cycle-update-view",function(a,b,c){c.hash&&(b._hashFence=!0,window.location.hash=c.hash)}),a(document).on("cycle-destroyed",function(b,c){c._onHashChange&&a(window).off("hashchange",c._onHashChange)})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{loader:!1}),a(document).on("cycle-bootstrap",function(b,c){function e(b,e){function h(b){var h;c.loader=="wait"?(f.push(b),g===0&&(f.sort(i),d.apply(c.API,[f,e]),c.container.removeClass("cycle-loading"))):(h=a(c.slides[c.currSlide]),d.apply(c.API,[b,e]),h.show(),c.container.removeClass("cycle-loading"))}function i(a,b){return a.data("index")-b.data("index")}var f=[];typeof b=="string"&&(b=a.trim(b)),b=a(b);var g=b.length;b.hide().appendTo("body").each(function(b){function l(){--i===0&&(--g,h(j))}var i=0,j=a(this),k=j.is("img")?j:j.find("img");j.data("index",b),k=k.filter(":not(.cycle-loader-ignore)");if(!k.length){--g,f.push(j);return}i=k.length,k.each(function(){this.complete?l():a(this).load(function(){l()}).error(function(){--i===0&&(c.API.log("slide skipped; img not loaded:",this.src),--g===0&&c.loader=="wait"&&d.apply(c.API,[f,e]))})})}),g&&c.container.addClass("cycle-loading")}var d;if(!c.loader)return;d=c.API.add,c.API.add=e})}(jQuery),function(a){function b(b,c,d){var e,f=b.API.getComponent("pager");f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f)}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){a.preventDefault(),b.API.page(f,a.currentTarget)})})}function c(a,b){var c=this.opts();if(c.busy&&!c.manualTrump)return;var d=a.children().index(b),e=d,f=c.currSlide<e;if(c.currSlide==e)return;c.nextSlide=e,c.API.prepareTx(!0,f),c.API.trigger("cycle-pager-activated",[c,a,b])}"use strict",a.extend(a.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerTemplate:"<span>&bull;</span>"}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d,e){if(c.pager){var f=c.API.getComponent("pager");f.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c,d){var e;c.pager&&(e=c.API.getComponent("pager"),e.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c;b.pager&&b.pagerTemplate&&(c=b.API.getComponent("pager"),c.empty())})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){b.API.getComponent("next").off(b.nextEvent).on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").off(b.prevEvent).on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()});if(b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(a){b.API.next()}),b.container.on(d,function(){b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b,c,d){if(b.allowWrap)return;var e=b.disabledClass,f=b.API.getComponent("next"),g=b.API.getComponent("prev"),h=b._prevBoundry||0,i=b._nextBoundry||b.slideCount-1;b.currSlide==i?f.addClass(e).prop("disabled",!0):f.removeClass(e).prop("disabled",!1),b.currSlide===h?g.addClass(e).prop("disabled",!0):g.removeClass(e).prop("disabled",!1)}),a(document).on("cycle-destroyed",function(b,c){a(c.next).off(c.nextEvent),a(c.prev).off(c.prevEvent),c.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(!c.progressive)return;var d=c.API,e=d.next,f=d.prev,g=d.prepareTx,h=a.type(c.progressive),i,j;if(h=="array")i=c.progressive;else if(a.isFunction(c.progressive))i=c.progressive(c);else if(h=="string"){j=a(c.progressive),i=a.trim(j.html());if(!i)return;if(/^(\[)/.test(i))try{i=a.parseJSON(i)}catch(k){d.log("error parsing progressive slides",k);return}else i=i.split(new RegExp(j.data("cycle-split")||"\n")),i[i.length-0]||i.pop()}g&&(d.prepareTx=function(a,b){var d,e;if(a||i.length===0){g.apply(c.API,[a,b]);return}b&&c.currSlide==c.slideCount-1?(e=i[0],i=i.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(e)):!b&&c.currSlide===0?(d=i.length-1,e=i[d],i=i.slice(0,d),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(e,!0)):g.apply(c.API,[a,b])}),e&&(d.next=function(){var a=this.opts();if(i.length&&a.currSlide==a.slideCount-1){var b=i[0];i=i.slice(1),a.container.one("cycle-slide-added",function(a,b){e.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else e.apply(a.API)}),f&&(d.prev=function(){var a=this.opts();if(i.length&&a.currSlide===0){var b=i.length-1,c=i[b];i=i.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else f.apply(a.API)})})}(jQuery),function(a){"use strict",a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d<e.length;d++){g=e[d];if(!g)continue;if(i.length>1){h=g;for(f=0;f<i.length;f++)g=h,h=h[i[f]]||c}else h=g[c];if(a.isFunction(h))return h.apply(g,e);if(h!==undefined&&h!==null&&h!=c)return h}return c})}})}(jQuery);
js/store-json2.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /* Copyright (c) 2010-2012 Marcus Westin */
2
+ this.JSON||(this.JSON={}),function(){function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t=="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(e)),typeof rep=="function"&&(a=rep.call(t,e,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";gap+=indent,u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||"null";return i=u.length===0?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]",gap=o,i}if(rep&&typeof rep=="object"){s=rep.length;for(n=0;n<s;n+=1)r=rep[n],typeof r=="string"&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i))}else for(r in a)Object.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i));return i=u.length===0?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}",gap=o,i}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(e,t,n){var r;gap="",indent="";if(typeof n=="number")for(r=0;r<n;r+=1)indent+=" ";else typeof n=="string"&&(indent=n);rep=t;if(!t||typeof t=="function"||typeof t=="object"&&typeof t.length=="number")return str("",{"":e});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i=="object")for(n in i)Object.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(){function o(){try{return r in t&&t[r]}catch(e){return!1}}var e={},t=window,n=t.document,r="localStorage",i="__storejs__",s;e.disabled=!1,e.set=function(e,t){},e.get=function(e){},e.remove=function(e){},e.clear=function(){},e.transact=function(t,n,r){var i=e.get(t);r==null&&(r=n,n=null),typeof i=="undefined"&&(i=n||{}),r(i),e.set(t,i)},e.getAll=function(){},e.serialize=function(e){return JSON.stringify(e)},e.deserialize=function(e){if(typeof e!="string")return undefined;try{return JSON.parse(e)}catch(t){return e||undefined}};if(o())s=t[r],e.set=function(t,n){return n===undefined?e.remove(t):(s.setItem(t,e.serialize(n)),n)},e.get=function(t){return e.deserialize(s.getItem(t))},e.remove=function(e){s.removeItem(e)},e.clear=function(){s.clear()},e.getAll=function(){var t={};for(var n=0;n<s.length;++n){var r=s.key(n);t[r]=e.get(r)}return t};else if(n.documentElement.addBehavior){var u,a;try{a=new ActiveXObject("htmlfile"),a.open(),a.write('<script>document.w=window</script><iframe src="/favicon.ico"></frame>'),a.close(),u=a.w.frames[0].document,s=u.createElement("div")}catch(f){s=n.createElement("div"),u=n.body}function l(t){return function(){var n=Array.prototype.slice.call(arguments,0);n.unshift(s),u.appendChild(s),s.addBehavior("#default#userData"),s.load(r);var i=t.apply(e,n);return u.removeChild(s),i}}var c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function h(e){return e.replace(c,"___")}e.set=l(function(t,n,i){return n=h(n),i===undefined?e.remove(n):(t.setAttribute(n,e.serialize(i)),t.save(r),i)}),e.get=l(function(t,n){return n=h(n),e.deserialize(t.getAttribute(n))}),e.remove=l(function(e,t){t=h(t),e.removeAttribute(t),e.save(r)}),e.clear=l(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(r);for(var n=0,i;i=t[n];n++)e.removeAttribute(i.name);e.save(r)}),e.getAll=l(function(t){var n=t.XMLDocument.documentElement.attributes;t.load(r);var i={};for(var s=0,o;o=n[s];++s)i[o]=e.get(o);return i})}try{e.set(i,i),e.get(i)!=i&&(e.disabled=!0),e.remove(i)}catch(f){e.disabled=!0}e.enabled=!e.disabled,typeof module!="undefined"&&typeof module!="function"?module.exports=e:typeof define=="function"&&define.amd?define(e):this.store=e}()
js/templates.js CHANGED
@@ -1 +1,64 @@
 
 
 
 
1
  jQuery(document).ready(function(){jQuery(".cycloneslider-template-thumbnails").each(function(c,d){var a=jQuery(d),b=a.children(".cycloneslider-slides"),e=a.next();e.find("li:first").addClass("current");b.on("cycle-before",function(g,h){var f=h.nextSlide;e.find("li").removeClass("current").eq(f).addClass("current")});e.on("click","li",function(){var f=jQuery(this).index();b.cycle("goto",f)})})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-black").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");e.fadeTo(0,0);c.fadeTo(0,0);a.on("mouseenter",function(){e.fadeTo("fast",0.4);c.fadeTo("fast",0.4)}).on("mouseleave",function(){e.fadeTo(0,0);c.fadeTo(0,0)});e.on("mouseenter",function(){e.fadeTo("fast",1)}).on("mouseleave",function(){e.fadeTo("fast",0.4)});c.on("mouseenter",function(){c.fadeTo("fast",1)}).on("mouseleave",function(){c.fadeTo("fast",0.4)})})});
2
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-blue").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");e.fadeTo(0,0);c.fadeTo(0,0);a.on("mouseenter",function(){e.fadeTo("fast",0.4);c.fadeTo("fast",0.4)}).on("mouseleave",function(){e.fadeTo(0,0);c.fadeTo(0,0)});e.on("mouseenter",function(){e.fadeTo("fast",1)}).on("mouseleave",function(){e.fadeTo("fast",0.4)});c.on("mouseenter",function(){c.fadeTo("fast",1)}).on("mouseleave",function(){c.fadeTo("fast",0.4)})})});
3
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-default").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");e.fadeTo(0,0);c.fadeTo(0,0);a.on("mouseenter",function(){e.fadeTo("fast",0.4);c.fadeTo("fast",0.4)}).on("mouseleave",function(){e.fadeTo(0,0);c.fadeTo(0,0)});e.on("mouseenter",function(){e.fadeTo("fast",1)}).on("mouseleave",function(){e.fadeTo("fast",0.4)});c.on("mouseenter",function(){c.fadeTo("fast",1)}).on("mouseleave",function(){c.fadeTo("fast",0.4)})})});
4
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-myrtle").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");a.on("mouseenter",function(){e.show();c.show()}).on("mouseleave",function(){e.hide();c.hide()})})});
5
  jQuery(document).ready(function(){jQuery(".cycloneslider-template-thumbnails").each(function(c,d){var a=jQuery(d),b=a.children(".cycloneslider-slides"),e=a.next();e.find("li:first").addClass("current");b.on("cycle-before",function(g,h){var f=h.nextSlide;e.find("li").removeClass("current").eq(f).addClass("current")});e.on("click","li",function(){var f=jQuery(this).index();b.cycle("goto",f)})})});
6
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-controls").each(function(d,e){var a=jQuery(e),c=a.children(".cycloneslider-slides"),b=a.find(".cycloneslider-controls"),f;c.on("cycle-before",function(){c.find(".cycloneslider-caption").animate({opacity:0,left:0},100)});c.on("cycle-after",function(){var g="10%";if(jQuery(window).width()<=480){g=0}c.find(".cycloneslider-caption").animate({opacity:1,left:g},250)});a.find(".cycloneslider-play-pause").click(function(){if(jQuery(this).hasClass("play")){jQuery(this).removeClass("play");c.cycle("resume")}else{jQuery(this).addClass("play");c.cycle("pause")}});if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)===7){f=0;b.children().children().each(function(g){f+=jQuery(this).outerWidth(true)});b.children().width(f)}})});
7
+ jQuery(document).ready(function(){
8
+ jQuery('.cycloneslider-template-dos').each(function(i,el){
9
+
10
+ var main = jQuery(el);
11
+ var slideshow = main.children('.cycloneslider-slides');
12
+ var carousel = main.find('.thumbnails-carousel');
13
+ var controls = main.find('.cycloneslider-controls');
14
+ var slide_titles = controls.data('titles').split(",");
15
+ var slide_descs = controls.data('descriptions').split(",");
16
+
17
+ slideshow.on( 'cycle-initialized ', function( event, optionHash ) {
18
+ controls.find('.cycloneslider-counter').html('1 / '+optionHash.slideCount);
19
+ controls.find('.cycloneslider-caption-title').html(slide_titles[optionHash.currSlide]);
20
+ controls.find('.cycloneslider-caption-description').html(slide_descs[optionHash.currSlide]);
21
+ });
22
+
23
+ slideshow.on( 'cycle-before', function( event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) {
24
+ controls.find('.cycloneslider-counter').html(optionHash.slideNum+' / '+optionHash.slideCount);
25
+ controls.find('.cycloneslider-caption-title').html(slide_titles[optionHash.nextSlide]);
26
+ controls.find('.cycloneslider-caption-description').html(slide_descs[optionHash.nextSlide]);
27
+ carousel.find('img').removeClass('current').eq(optionHash.nextSlide).addClass('current');
28
+ });
29
+
30
+ /*** Play Pause ***/
31
+ controls.find('.cycloneslider-autoplay').click(function(){
32
+ if(jQuery(this).hasClass('pause')){/*** pause icon showing, autoplay is on ***/
33
+ jQuery(this).removeClass('pause');
34
+ slideshow.cycle('pause');
35
+ } else {
36
+ jQuery(this).addClass('pause');
37
+ slideshow.cycle('resume');
38
+ }
39
+ });
40
+
41
+ /*** Toggle Thumbnails ***/
42
+ controls.find('.cycloneslider-thumbs').click(function(){
43
+ if(jQuery(this).hasClass('shown')){
44
+ jQuery(this).removeClass('shown');
45
+ main.find('.cycloneslider-thumbnails').animate({bottom:'-100px'},200);
46
+ } else {
47
+ jQuery(this).addClass('shown');
48
+ main.find('.cycloneslider-thumbnails').animate({bottom:'30px'},200);
49
+ }
50
+ });
51
+
52
+ slideshow.cycle();
53
+
54
+
55
+ carousel.find('.cycle-slide').click(function(){
56
+ var index = carousel.data('cycle.API').getSlideIndex(this);
57
+ slideshow.cycle('goto', index);
58
+ });
59
+
60
+ });
61
+ });
62
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-galleria").each(function(e,f){var a=jQuery(f),d=a.children(".cycloneslider-slides"),g=a.find(".thumbnails-carousel"),c=a.find(".cycloneslider-controls"),b=c.data("titles").split(","),h=c.data("descriptions").split(",");d.on("cycle-initialized ",function(i,j){c.find(".cycloneslider-counter").html("1 / "+j.slideCount);c.find(".cycloneslider-caption-title").html(b[j.currSlide]);c.find(".cycloneslider-caption-description").html(h[j.currSlide])});d.on("cycle-before",function(k,l,m,j,i){c.find(".cycloneslider-counter").html(l.slideNum+" / "+l.slideCount);c.find(".cycloneslider-caption-title").html(b[l.nextSlide]);c.find(".cycloneslider-caption-description").html(h[l.nextSlide]);g.find("img").removeClass("current").eq(l.nextSlide).addClass("current")});c.find(".cycloneslider-autoplay").click(function(){if(jQuery(this).hasClass("pause")){jQuery(this).removeClass("pause");d.cycle("pause")}else{jQuery(this).addClass("pause");d.cycle("resume")}});c.find(".cycloneslider-thumbs").click(function(){if(jQuery(this).hasClass("shown")){jQuery(this).removeClass("shown");a.find(".cycloneslider-thumbnails").animate({bottom:"-100px"},200)}else{jQuery(this).addClass("shown");a.find(".cycloneslider-thumbnails").animate({bottom:"30px"},200)}});d.cycle();g.find(".cycle-slide").click(function(){var i=g.data("cycle.API").getSlideIndex(this);d.cycle("goto",i)})})});
63
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-lea").each(function(c,e){var a=jQuery(e),b=a.children(".cycloneslider-slides"),g=a.find(".cycloneslider-nav"),f=g.find(".cycloneslider-nav-carousel"),d=f.find(".cycle-carousel-wrap"),h=0;jQuery(window).resize(function(){b.find(".cycloneslider-caption").height(b.height())});f.find("img:first").addClass("current");b.on("cycle-before",function(k,l){var j=l.nextSlide;f.find("img").removeClass("current").eq(j).addClass("current")});f.on("click","img",function(){var j=jQuery(this).index();b.cycle("goto",j)});f.cycle();f.find("img").each(function(){h+=jQuery(this).outerWidth(true)});d.width(h)})});
64
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-uno").each(function(c,d){var a=jQuery(d),b=a.children(".cycloneslider-slides"),e=a.find(".cycloneslider-pager");jQuery(window).resize(function(){b.find(".cycloneslider-caption").height(b.height())});e.css("marginLeft","-"+(e.width()/2)+"px")})});
lang/cycloneslider-de_DE.mo CHANGED
Binary file
lang/cycloneslider-de_DE.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Cyclone Slider\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-02-19 20:55+0800\n"
6
- "PO-Revision-Date: 2013-02-19 20:56+0800\n"
7
  "Last-Translator: \n"
8
  "Language-Team: kosinix <kosinix@codefleet.net>\n"
9
  "MIME-Version: 1.0\n"
@@ -34,147 +34,148 @@ msgstr "Suchen Slideshows"
34
  msgid "No slideshows found."
35
  msgstr "Keine Slideshows gefunden"
36
 
37
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:101
38
  #, fuzzy
39
  msgid "Select an image"
40
  msgstr "Suchen Slideshows"
41
 
42
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:102
43
  #, fuzzy
44
  msgid "Add to Slide"
45
  msgstr "Folie hinzufügen"
46
 
47
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:136
48
  msgid "Cyclone Slider"
49
  msgstr ""
50
 
51
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:137
52
  msgid "Slideshow"
53
  msgstr ""
54
 
55
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:138
56
  msgid "Add Slideshow"
57
  msgstr "Slideshow hinzufügen"
58
 
59
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:139
60
  msgid "Add New Slideshow"
61
  msgstr "Neuer Slideshow"
62
 
63
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:140
64
  msgid "Edit Slideshow"
65
  msgstr "Bearbeiten Slideshow"
66
 
67
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:141
68
  msgid "New Slideshow"
69
  msgstr "Neue Slideshow"
70
 
71
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:142
72
  msgid "View Slideshow"
73
  msgstr "Sehen Slideshow"
74
 
75
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:143
76
  msgid "Search Slideshows"
77
  msgstr "Suchen Slideshows"
78
 
79
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:144
80
  msgid "No slideshows found"
81
  msgstr "Keine Slideshows gefunden"
82
 
83
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:145
84
  msgid "No slideshows found in Trash"
85
  msgstr "Keine Diashows in Trash gefunden"
86
 
87
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:160
88
- msgid "Slides"
89
- msgstr ""
90
-
91
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:168
92
- #, fuzzy
93
- msgid "Slideshow Settings"
94
- msgstr "Slider-Einstellungen"
95
-
96
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:176
97
- #, fuzzy
98
- msgid "Slideshow Templates"
99
- msgstr "Slider-Einstellungen"
100
-
101
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:217
102
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:524
103
- msgid "Slide"
104
- msgstr ""
105
-
106
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:226
107
- msgid "Add Slide"
108
- msgstr "Folie hinzufügen"
109
-
110
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:284
111
- msgid "Select a template to use."
112
- msgstr ""
113
-
114
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:286
115
- #, fuzzy
116
- msgid "Get more templates.."
117
- msgstr "Slider-Einstellungen"
118
-
119
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:394
120
  #, php-format
121
  msgid "Slideshow updated. Shortcode is [cycloneslider id=\"%s\"]"
122
  msgstr "Slideshow aktualisiert. Shortcode ist [cycloneslider id=\"%s\"]"
123
 
124
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:395
125
  msgid "Custom field updated."
126
  msgstr ""
127
 
128
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:396
129
  msgid "Custom field deleted."
130
  msgstr ""
131
 
132
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:397
133
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:398
134
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:401
135
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:402
136
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:403
137
  msgid "Slideshow updated."
138
  msgstr ""
139
 
140
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:399
141
  #, php-format
142
  msgid "Slideshow published. Shortcode is [cycloneslider id=\"%s\"]"
143
  msgstr "Slideshow veröffentlicht. Shortcode ist [cycloneslider id=\"%s\"]"
144
 
145
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:400
146
  msgid "Slideshow saved."
147
  msgstr "Slideshow gespeichert."
148
 
149
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:404
150
- msgid "Templates CSS could not be saved."
 
151
  msgstr ""
152
 
153
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:405
154
- msgid "Templates JS could not be saved."
 
155
  msgstr ""
156
 
157
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:494
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  msgid "Slideshow Name"
159
  msgstr "Slideshow Namen"
160
 
161
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:495
 
 
 
 
162
  msgid "Images"
163
  msgstr ""
164
 
165
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:496
166
  msgid "Slideshow ID"
167
  msgstr ""
168
 
169
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:497
170
  msgid "Shortcode"
171
  msgstr ""
172
 
173
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:632
 
 
 
 
 
174
  msgid "[Slideshow not found]"
175
  msgstr "[Slideshow nicht gefunden]"
176
 
177
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:657
178
  #, php-format
179
  msgid "[Template \"%s\" not found]"
180
  msgstr "[Template \"%s\" nicht gefunden]"
@@ -195,141 +196,180 @@ msgstr ""
195
  msgid "Select a gallery to import images from. Images will be added as new slides."
196
  msgstr ""
197
 
198
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:8
199
  msgid "Drag"
200
  msgstr "Ziehen"
201
 
202
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:9
203
  msgid "Toggle"
204
  msgstr "Wechseln"
205
 
206
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:10
207
  msgid "Delete"
208
  msgstr "löschen"
209
 
210
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:19
 
 
 
 
 
 
 
 
 
 
 
 
211
  msgid "Get Image"
212
  msgstr ""
213
 
214
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:22
215
  #, fuzzy
216
- msgid "Slide Elements:"
217
- msgstr "Zusätzliche Gleitelemente:"
218
 
219
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:26
220
- msgid "Slide Link"
221
  msgstr ""
222
 
223
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:29
224
- msgid "Link:"
225
  msgstr ""
226
 
227
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:31
228
  msgid "Open Link in:"
229
  msgstr ""
230
 
231
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:33
232
  msgid "Same Window"
233
  msgstr ""
234
 
235
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:34
236
  msgid "New Tab or Window"
237
  msgstr ""
238
 
239
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:40
240
  msgid "Title"
241
  msgstr "Titel"
242
 
243
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:48
244
  msgid "Description"
245
  msgstr "Beschreibung"
246
 
247
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:55
248
- msgid "Image Properties:"
249
  msgstr ""
250
 
251
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:59
252
- msgid "Alternate Text"
253
  msgstr ""
254
 
255
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:67
256
  #, fuzzy
257
- msgid "Title Text"
258
  msgstr "Titel"
259
 
260
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:75
261
  #, fuzzy
262
- msgid "Slide Properties:"
263
- msgstr "Slider-Einstellungen"
264
-
265
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:79
266
- #, fuzzy
267
- msgid "Slide Effects"
268
- msgstr "Slider-Einstellungen"
269
 
270
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:84
271
  msgid "Disable"
272
  msgstr ""
273
 
274
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:85
275
  msgid "Enable Slide Effects"
276
  msgstr ""
277
 
278
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:90
279
  #, fuzzy
280
  msgid "Transition Effects:"
281
  msgstr "Transition Effects Speed:"
282
 
283
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:99
284
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:32
285
  msgid "Transition Effects Speed:"
286
  msgstr "Transition Effects Speed:"
287
 
288
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:101
289
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:106
290
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:34
291
  msgid "Milliseconds"
292
  msgstr "Millisekunden"
293
 
294
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:104
295
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:26
296
  msgid "Next Slide Delay:"
297
  msgstr "Next Slide Verzögerung:"
298
 
299
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:111
300
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:12
301
  msgid "Tile Count:"
302
  msgstr ""
303
 
304
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:113
305
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:14
306
  msgid "The number of tiles to use in the transition."
307
  msgstr ""
308
 
309
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:116
310
  #, fuzzy
311
  msgid "Tile Delay:"
312
  msgstr "Next Slide Verzögerung:"
313
 
314
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:118
315
  msgid "Milliseconds to delay each individual tile transition."
316
  msgstr ""
317
 
318
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:121
319
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:17
320
  msgid "Tile Position:"
321
  msgstr ""
322
 
323
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:123
324
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:19
325
  msgid "Vertical"
326
  msgstr ""
327
 
328
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:124
329
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:20
330
  msgid "Horizontal"
331
  msgstr ""
332
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:3
334
  msgid "Transition Effects to Use:"
335
  msgstr "Transition Effects zu verwenden:"
@@ -359,6 +399,7 @@ msgstr ""
359
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:60
360
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:68
361
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:78
 
362
  msgid "Yes"
363
  msgstr "Ja"
364
 
@@ -366,6 +407,7 @@ msgstr "Ja"
366
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:61
367
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:69
368
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:77
 
369
  msgid "No"
370
  msgstr "Nicht"
371
 
@@ -389,3 +431,27 @@ msgstr ""
389
  msgid "Randomize order of slides on every page visit."
390
  msgstr ""
391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Cyclone Slider\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-03-21 07:42+0800\n"
6
+ "PO-Revision-Date: 2013-03-21 07:42+0800\n"
7
  "Last-Translator: \n"
8
  "Language-Team: kosinix <kosinix@codefleet.net>\n"
9
  "MIME-Version: 1.0\n"
34
  msgid "No slideshows found."
35
  msgstr "Keine Slideshows gefunden"
36
 
37
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:103
38
  #, fuzzy
39
  msgid "Select an image"
40
  msgstr "Suchen Slideshows"
41
 
42
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:104
43
  #, fuzzy
44
  msgid "Add to Slide"
45
  msgstr "Folie hinzufügen"
46
 
47
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:135
48
  msgid "Cyclone Slider"
49
  msgstr ""
50
 
51
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:136
52
  msgid "Slideshow"
53
  msgstr ""
54
 
55
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:137
56
  msgid "Add Slideshow"
57
  msgstr "Slideshow hinzufügen"
58
 
59
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:138
60
  msgid "Add New Slideshow"
61
  msgstr "Neuer Slideshow"
62
 
63
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:139
64
  msgid "Edit Slideshow"
65
  msgstr "Bearbeiten Slideshow"
66
 
67
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:140
68
  msgid "New Slideshow"
69
  msgstr "Neue Slideshow"
70
 
71
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:141
72
  msgid "View Slideshow"
73
  msgstr "Sehen Slideshow"
74
 
75
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:142
76
  msgid "Search Slideshows"
77
  msgstr "Suchen Slideshows"
78
 
79
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:143
80
  msgid "No slideshows found"
81
  msgstr "Keine Slideshows gefunden"
82
 
83
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:144
84
  msgid "No slideshows found in Trash"
85
  msgstr "Keine Diashows in Trash gefunden"
86
 
87
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:164
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  #, php-format
89
  msgid "Slideshow updated. Shortcode is [cycloneslider id=\"%s\"]"
90
  msgstr "Slideshow aktualisiert. Shortcode ist [cycloneslider id=\"%s\"]"
91
 
92
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:165
93
  msgid "Custom field updated."
94
  msgstr ""
95
 
96
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:166
97
  msgid "Custom field deleted."
98
  msgstr ""
99
 
100
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:167
101
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:168
102
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:171
103
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:172
104
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:173
105
  msgid "Slideshow updated."
106
  msgstr ""
107
 
108
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:169
109
  #, php-format
110
  msgid "Slideshow published. Shortcode is [cycloneslider id=\"%s\"]"
111
  msgstr "Slideshow veröffentlicht. Shortcode ist [cycloneslider id=\"%s\"]"
112
 
113
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:170
114
  msgid "Slideshow saved."
115
  msgstr "Slideshow gespeichert."
116
 
117
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:174
118
+ #, php-format
119
+ msgid "Templates CSS could not be saved. Make sure %stemplates.css is writable."
120
  msgstr ""
121
 
122
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:175
123
+ #, php-format
124
+ msgid "Templates JS could not be saved. Make sure %stemplates.js is writable."
125
  msgstr ""
126
 
127
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:199
128
+ msgid "Slides"
129
+ msgstr ""
130
+
131
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:207
132
+ #, fuzzy
133
+ msgid "Slideshow Settings"
134
+ msgstr "Slider-Einstellungen"
135
+
136
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:215
137
+ #, fuzzy
138
+ msgid "Slideshow Templates"
139
+ msgstr "Slider-Einstellungen"
140
+
141
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:243
142
+ msgid "Slide"
143
+ msgstr ""
144
+
145
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:252
146
+ msgid "Add Slide"
147
+ msgstr "Folie hinzufügen"
148
+
149
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:504
150
  msgid "Slideshow Name"
151
  msgstr "Slideshow Namen"
152
 
153
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:505
154
+ msgid "Template"
155
+ msgstr ""
156
+
157
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:506
158
  msgid "Images"
159
  msgstr ""
160
 
161
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:507
162
  msgid "Slideshow ID"
163
  msgstr ""
164
 
165
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:508
166
  msgid "Shortcode"
167
  msgstr ""
168
 
169
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:539
170
+ #, fuzzy
171
+ msgid "Slide *"
172
+ msgstr "Folie hinzufügen"
173
+
174
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:659
175
  msgid "[Slideshow not found]"
176
  msgstr "[Slideshow nicht gefunden]"
177
 
178
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:684
179
  #, php-format
180
  msgid "[Template \"%s\" not found]"
181
  msgstr "[Template \"%s\" nicht gefunden]"
196
  msgid "Select a gallery to import images from. Images will be added as new slides."
197
  msgstr ""
198
 
199
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:17
200
  msgid "Drag"
201
  msgstr "Ziehen"
202
 
203
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:18
204
  msgid "Toggle"
205
  msgstr "Wechseln"
206
 
207
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:19
208
  msgid "Delete"
209
  msgstr "löschen"
210
 
211
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:26
212
+ msgid "Image"
213
+ msgstr ""
214
+
215
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:27
216
+ msgid "Video"
217
+ msgstr ""
218
+
219
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:28
220
+ msgid "Custom"
221
+ msgstr ""
222
+
223
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:45
224
  msgid "Get Image"
225
  msgstr ""
226
 
227
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:48
228
  #, fuzzy
229
+ msgid "Slide Properties:"
230
+ msgstr "Slider-Einstellungen"
231
 
232
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:50
233
+ msgid "Link"
234
  msgstr ""
235
 
236
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:53
237
+ msgid "Link URL:"
238
  msgstr ""
239
 
240
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:57
241
  msgid "Open Link in:"
242
  msgstr ""
243
 
244
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:59
245
  msgid "Same Window"
246
  msgstr ""
247
 
248
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:60
249
  msgid "New Tab or Window"
250
  msgstr ""
251
 
252
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:66
253
  msgid "Title"
254
  msgstr "Titel"
255
 
256
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:74
257
  msgid "Description"
258
  msgstr "Beschreibung"
259
 
260
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:83
261
+ msgid "Image Attributes"
262
  msgstr ""
263
 
264
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:86
265
+ msgid "Alternate Text:"
266
  msgstr ""
267
 
268
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:90
269
  #, fuzzy
270
+ msgid "Title Text:"
271
  msgstr "Titel"
272
 
273
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:96
274
  #, fuzzy
275
+ msgid "Slide Transition Effects"
276
+ msgstr "Transition Effects Speed:"
 
 
 
 
 
277
 
278
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:100
279
  msgid "Disable"
280
  msgstr ""
281
 
282
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:101
283
  msgid "Enable Slide Effects"
284
  msgstr ""
285
 
286
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:107
287
  #, fuzzy
288
  msgid "Transition Effects:"
289
  msgstr "Transition Effects Speed:"
290
 
291
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:118
292
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:32
293
  msgid "Transition Effects Speed:"
294
  msgstr "Transition Effects Speed:"
295
 
296
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:120
297
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:127
298
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:34
299
  msgid "Milliseconds"
300
  msgstr "Millisekunden"
301
 
302
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:125
303
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:26
304
  msgid "Next Slide Delay:"
305
  msgstr "Next Slide Verzögerung:"
306
 
307
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:135
308
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:12
309
  msgid "Tile Count:"
310
  msgstr ""
311
 
312
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:137
313
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:14
314
  msgid "The number of tiles to use in the transition."
315
  msgstr ""
316
 
317
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:141
318
  #, fuzzy
319
  msgid "Tile Delay:"
320
  msgstr "Next Slide Verzögerung:"
321
 
322
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:143
323
  msgid "Milliseconds to delay each individual tile transition."
324
  msgstr ""
325
 
326
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:147
327
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:17
328
  msgid "Tile Position:"
329
  msgstr ""
330
 
331
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:149
332
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:19
333
  msgid "Vertical"
334
  msgstr ""
335
 
336
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:150
337
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:20
338
  msgid "Horizontal"
339
  msgstr ""
340
 
341
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:170
342
+ msgid "Video URL:"
343
+ msgstr ""
344
+
345
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:172
346
+ msgid "Copy and paste a Youtube or Vimeo URL and hit the Get Video button."
347
+ msgstr ""
348
+
349
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:176
350
+ msgid "Get Video"
351
+ msgstr ""
352
+
353
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:181
354
+ msgid "Embed Code"
355
+ msgstr ""
356
+
357
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:183
358
+ msgid "You can place your embed code directly here. Or you can use the Get Video button to generate the embed code."
359
+ msgstr ""
360
+
361
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:185
362
+ msgid "<strong>Note:</strong> The Slide Properties and Tile effects are not supported for videos."
363
+ msgstr ""
364
+
365
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:187
366
+ msgid "<strong>Note:</strong> Append &wmode=transparent to the embed code src attribute to make HTML elements appear on top of Flash."
367
+ msgstr ""
368
+
369
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:193
370
+ msgid "Custom HTML"
371
+ msgstr ""
372
+
373
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:3
374
  msgid "Transition Effects to Use:"
375
  msgstr "Transition Effects zu verwenden:"
399
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:60
400
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:68
401
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:78
402
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:87
403
  msgid "Yes"
404
  msgstr "Ja"
405
 
407
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:61
408
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:69
409
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:77
410
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:86
411
  msgid "No"
412
  msgstr "Nicht"
413
 
431
  msgid "Randomize order of slides on every page visit."
432
  msgstr ""
433
 
434
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:84
435
+ msgid "Resize Images?"
436
+ msgstr ""
437
+
438
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:89
439
+ msgid "Yes - resize images to slideshow dimension. <br>No - use the original uploaded image."
440
+ msgstr ""
441
+
442
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/template-selection.php:38
443
+ msgid "Select a template to use. Check the template icons to see what slide type it supports."
444
+ msgstr ""
445
+
446
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/template-selection.php:40
447
+ #, fuzzy
448
+ msgid "Get more templates.."
449
+ msgstr "Slider-Einstellungen"
450
+
451
+ #, fuzzy
452
+ #~ msgid "Slide Elements:"
453
+ #~ msgstr "Zusätzliche Gleitelemente:"
454
+
455
+ #, fuzzy
456
+ #~ msgid "Slide Effects"
457
+ #~ msgstr "Slider-Einstellungen"
lang/cycloneslider.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Cyclone Slider 1.0.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-02-19 20:56+0800\n"
6
- "PO-Revision-Date: 2013-02-19 20:56+0800\n"
7
  "Last-Translator: \n"
8
  "Language-Team: kosinix <kosinix@codefleet.net>\n"
9
  "MIME-Version: 1.0\n"
@@ -32,142 +32,143 @@ msgstr ""
32
  msgid "No slideshows found."
33
  msgstr ""
34
 
35
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:101
36
  msgid "Select an image"
37
  msgstr ""
38
 
39
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:102
40
  msgid "Add to Slide"
41
  msgstr ""
42
 
43
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:136
44
  msgid "Cyclone Slider"
45
  msgstr ""
46
 
47
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:137
48
  msgid "Slideshow"
49
  msgstr ""
50
 
51
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:138
52
  msgid "Add Slideshow"
53
  msgstr ""
54
 
55
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:139
56
  msgid "Add New Slideshow"
57
  msgstr ""
58
 
59
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:140
60
  msgid "Edit Slideshow"
61
  msgstr ""
62
 
63
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:141
64
  msgid "New Slideshow"
65
  msgstr ""
66
 
67
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:142
68
  msgid "View Slideshow"
69
  msgstr ""
70
 
71
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:143
72
  msgid "Search Slideshows"
73
  msgstr ""
74
 
75
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:144
76
  msgid "No slideshows found"
77
  msgstr ""
78
 
79
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:145
80
  msgid "No slideshows found in Trash"
81
  msgstr ""
82
 
83
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:160
84
- msgid "Slides"
85
- msgstr ""
86
-
87
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:168
88
- msgid "Slideshow Settings"
89
  msgstr ""
90
 
91
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:176
92
- msgid "Slideshow Templates"
93
  msgstr ""
94
 
95
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:217
96
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:524
97
- msgid "Slide"
98
  msgstr ""
99
 
100
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:226
101
- msgid "Add Slide"
 
 
 
 
102
  msgstr ""
103
 
104
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:284
105
- msgid "Select a template to use."
 
106
  msgstr ""
107
 
108
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:286
109
- msgid "Get more templates.."
110
  msgstr ""
111
 
112
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:394
113
  #, php-format
114
- msgid "Slideshow updated. Shortcode is [cycloneslider id=\"%s\"]"
115
  msgstr ""
116
 
117
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:395
118
- msgid "Custom field updated."
 
119
  msgstr ""
120
 
121
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:396
122
- msgid "Custom field deleted."
123
  msgstr ""
124
 
125
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:397
126
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:398
127
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:401
128
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:402
129
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:403
130
- msgid "Slideshow updated."
131
  msgstr ""
132
 
133
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:399
134
- #, php-format
135
- msgid "Slideshow published. Shortcode is [cycloneslider id=\"%s\"]"
136
  msgstr ""
137
 
138
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:400
139
- msgid "Slideshow saved."
140
  msgstr ""
141
 
142
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:404
143
- msgid "Templates CSS could not be saved."
144
  msgstr ""
145
 
146
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:405
147
- msgid "Templates JS could not be saved."
148
  msgstr ""
149
 
150
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:494
151
- msgid "Slideshow Name"
152
  msgstr ""
153
 
154
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:495
155
  msgid "Images"
156
  msgstr ""
157
 
158
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:496
159
  msgid "Slideshow ID"
160
  msgstr ""
161
 
162
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:497
163
  msgid "Shortcode"
164
  msgstr ""
165
 
166
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:632
 
 
 
 
167
  msgid "[Slideshow not found]"
168
  msgstr ""
169
 
170
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:657
171
  #, php-format
172
  msgid "[Template \"%s\" not found]"
173
  msgstr ""
@@ -188,135 +189,175 @@ msgstr ""
188
  msgid "Select a gallery to import images from. Images will be added as new slides."
189
  msgstr ""
190
 
191
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:8
192
  msgid "Drag"
193
  msgstr ""
194
 
195
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:9
196
  msgid "Toggle"
197
  msgstr ""
198
 
199
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:10
200
  msgid "Delete"
201
  msgstr ""
202
 
203
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:19
 
 
 
 
 
 
 
 
 
 
 
 
204
  msgid "Get Image"
205
  msgstr ""
206
 
207
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:22
208
- msgid "Slide Elements:"
209
  msgstr ""
210
 
211
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:26
212
- msgid "Slide Link"
213
  msgstr ""
214
 
215
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:29
216
- msgid "Link:"
217
  msgstr ""
218
 
219
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:31
220
  msgid "Open Link in:"
221
  msgstr ""
222
 
223
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:33
224
  msgid "Same Window"
225
  msgstr ""
226
 
227
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:34
228
  msgid "New Tab or Window"
229
  msgstr ""
230
 
231
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:40
232
  msgid "Title"
233
  msgstr ""
234
 
235
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:48
236
  msgid "Description"
237
  msgstr ""
238
 
239
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:55
240
- msgid "Image Properties:"
241
  msgstr ""
242
 
243
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:59
244
- msgid "Alternate Text"
245
  msgstr ""
246
 
247
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:67
248
- msgid "Title Text"
249
- msgstr ""
250
-
251
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:75
252
- msgid "Slide Properties:"
253
  msgstr ""
254
 
255
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:79
256
- msgid "Slide Effects"
257
  msgstr ""
258
 
259
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:84
260
  msgid "Disable"
261
  msgstr ""
262
 
263
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:85
264
  msgid "Enable Slide Effects"
265
  msgstr ""
266
 
267
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:90
268
  msgid "Transition Effects:"
269
  msgstr ""
270
 
271
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:99
272
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:32
273
  msgid "Transition Effects Speed:"
274
  msgstr ""
275
 
276
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:101
277
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:106
278
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:34
279
  msgid "Milliseconds"
280
  msgstr ""
281
 
282
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:104
283
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:26
284
  msgid "Next Slide Delay:"
285
  msgstr ""
286
 
287
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:111
288
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:12
289
  msgid "Tile Count:"
290
  msgstr ""
291
 
292
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:113
293
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:14
294
  msgid "The number of tiles to use in the transition."
295
  msgstr ""
296
 
297
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:116
298
  msgid "Tile Delay:"
299
  msgstr ""
300
 
301
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:118
302
  msgid "Milliseconds to delay each individual tile transition."
303
  msgstr ""
304
 
305
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:121
306
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:17
307
  msgid "Tile Position:"
308
  msgstr ""
309
 
310
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:123
311
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:19
312
  msgid "Vertical"
313
  msgstr ""
314
 
315
- #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:124
316
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:20
317
  msgid "Horizontal"
318
  msgstr ""
319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:3
321
  msgid "Transition Effects to Use:"
322
  msgstr ""
@@ -346,6 +387,7 @@ msgstr ""
346
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:60
347
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:68
348
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:78
 
349
  msgid "Yes"
350
  msgstr ""
351
 
@@ -353,6 +395,7 @@ msgstr ""
353
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:61
354
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:69
355
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:77
 
356
  msgid "No"
357
  msgstr ""
358
 
@@ -376,3 +419,19 @@ msgstr ""
376
  msgid "Randomize order of slides on every page visit."
377
  msgstr ""
378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Cyclone Slider 1.0.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-03-21 07:41+0800\n"
6
+ "PO-Revision-Date: 2013-03-21 07:41+0800\n"
7
  "Last-Translator: \n"
8
  "Language-Team: kosinix <kosinix@codefleet.net>\n"
9
  "MIME-Version: 1.0\n"
32
  msgid "No slideshows found."
33
  msgstr ""
34
 
35
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:103
36
  msgid "Select an image"
37
  msgstr ""
38
 
39
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:104
40
  msgid "Add to Slide"
41
  msgstr ""
42
 
43
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:135
44
  msgid "Cyclone Slider"
45
  msgstr ""
46
 
47
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:136
48
  msgid "Slideshow"
49
  msgstr ""
50
 
51
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:137
52
  msgid "Add Slideshow"
53
  msgstr ""
54
 
55
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:138
56
  msgid "Add New Slideshow"
57
  msgstr ""
58
 
59
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:139
60
  msgid "Edit Slideshow"
61
  msgstr ""
62
 
63
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:140
64
  msgid "New Slideshow"
65
  msgstr ""
66
 
67
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:141
68
  msgid "View Slideshow"
69
  msgstr ""
70
 
71
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:142
72
  msgid "Search Slideshows"
73
  msgstr ""
74
 
75
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:143
76
  msgid "No slideshows found"
77
  msgstr ""
78
 
79
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:144
80
  msgid "No slideshows found in Trash"
81
  msgstr ""
82
 
83
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:164
84
+ #, php-format
85
+ msgid "Slideshow updated. Shortcode is [cycloneslider id=\"%s\"]"
 
 
 
86
  msgstr ""
87
 
88
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:165
89
+ msgid "Custom field updated."
90
  msgstr ""
91
 
92
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:166
93
+ msgid "Custom field deleted."
 
94
  msgstr ""
95
 
96
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:167
97
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:168
98
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:171
99
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:172
100
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:173
101
+ msgid "Slideshow updated."
102
  msgstr ""
103
 
104
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:169
105
+ #, php-format
106
+ msgid "Slideshow published. Shortcode is [cycloneslider id=\"%s\"]"
107
  msgstr ""
108
 
109
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:170
110
+ msgid "Slideshow saved."
111
  msgstr ""
112
 
113
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:174
114
  #, php-format
115
+ msgid "Templates CSS could not be saved. Make sure %stemplates.css is writable."
116
  msgstr ""
117
 
118
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:175
119
+ #, php-format
120
+ msgid "Templates JS could not be saved. Make sure %stemplates.js is writable."
121
  msgstr ""
122
 
123
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:199
124
+ msgid "Slides"
125
  msgstr ""
126
 
127
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:207
128
+ msgid "Slideshow Settings"
 
 
 
 
129
  msgstr ""
130
 
131
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:215
132
+ msgid "Slideshow Templates"
 
133
  msgstr ""
134
 
135
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:243
136
+ msgid "Slide"
137
  msgstr ""
138
 
139
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:252
140
+ msgid "Add Slide"
141
  msgstr ""
142
 
143
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:504
144
+ msgid "Slideshow Name"
145
  msgstr ""
146
 
147
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:505
148
+ msgid "Template"
149
  msgstr ""
150
 
151
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:506
152
  msgid "Images"
153
  msgstr ""
154
 
155
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:507
156
  msgid "Slideshow ID"
157
  msgstr ""
158
 
159
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:508
160
  msgid "Shortcode"
161
  msgstr ""
162
 
163
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:539
164
+ msgid "Slide *"
165
+ msgstr ""
166
+
167
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:659
168
  msgid "[Slideshow not found]"
169
  msgstr ""
170
 
171
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/class-cyclone-slider.php:684
172
  #, php-format
173
  msgid "[Template \"%s\" not found]"
174
  msgstr ""
189
  msgid "Select a gallery to import images from. Images will be added as new slides."
190
  msgstr ""
191
 
192
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:17
193
  msgid "Drag"
194
  msgstr ""
195
 
196
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:18
197
  msgid "Toggle"
198
  msgstr ""
199
 
200
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:19
201
  msgid "Delete"
202
  msgstr ""
203
 
204
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:26
205
+ msgid "Image"
206
+ msgstr ""
207
+
208
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:27
209
+ msgid "Video"
210
+ msgstr ""
211
+
212
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:28
213
+ msgid "Custom"
214
+ msgstr ""
215
+
216
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:45
217
  msgid "Get Image"
218
  msgstr ""
219
 
220
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:48
221
+ msgid "Slide Properties:"
222
  msgstr ""
223
 
224
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:50
225
+ msgid "Link"
226
  msgstr ""
227
 
228
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:53
229
+ msgid "Link URL:"
230
  msgstr ""
231
 
232
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:57
233
  msgid "Open Link in:"
234
  msgstr ""
235
 
236
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:59
237
  msgid "Same Window"
238
  msgstr ""
239
 
240
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:60
241
  msgid "New Tab or Window"
242
  msgstr ""
243
 
244
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:66
245
  msgid "Title"
246
  msgstr ""
247
 
248
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:74
249
  msgid "Description"
250
  msgstr ""
251
 
252
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:83
253
+ msgid "Image Attributes"
254
  msgstr ""
255
 
256
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:86
257
+ msgid "Alternate Text:"
258
  msgstr ""
259
 
260
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:90
261
+ msgid "Title Text:"
 
 
 
 
262
  msgstr ""
263
 
264
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:96
265
+ msgid "Slide Transition Effects"
266
  msgstr ""
267
 
268
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:100
269
  msgid "Disable"
270
  msgstr ""
271
 
272
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:101
273
  msgid "Enable Slide Effects"
274
  msgstr ""
275
 
276
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:107
277
  msgid "Transition Effects:"
278
  msgstr ""
279
 
280
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:118
281
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:32
282
  msgid "Transition Effects Speed:"
283
  msgstr ""
284
 
285
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:120
286
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:127
287
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:34
288
  msgid "Milliseconds"
289
  msgstr ""
290
 
291
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:125
292
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:26
293
  msgid "Next Slide Delay:"
294
  msgstr ""
295
 
296
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:135
297
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:12
298
  msgid "Tile Count:"
299
  msgstr ""
300
 
301
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:137
302
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:14
303
  msgid "The number of tiles to use in the transition."
304
  msgstr ""
305
 
306
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:141
307
  msgid "Tile Delay:"
308
  msgstr ""
309
 
310
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:143
311
  msgid "Milliseconds to delay each individual tile transition."
312
  msgstr ""
313
 
314
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:147
315
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:17
316
  msgid "Tile Position:"
317
  msgstr ""
318
 
319
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:149
320
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:19
321
  msgid "Vertical"
322
  msgstr ""
323
 
324
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:150
325
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:20
326
  msgid "Horizontal"
327
  msgstr ""
328
 
329
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:170
330
+ msgid "Video URL:"
331
+ msgstr ""
332
+
333
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:172
334
+ msgid "Copy and paste a Youtube or Vimeo URL and hit the Get Video button."
335
+ msgstr ""
336
+
337
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:176
338
+ msgid "Get Video"
339
+ msgstr ""
340
+
341
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:181
342
+ msgid "Embed Code"
343
+ msgstr ""
344
+
345
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:183
346
+ msgid "You can place your embed code directly here. Or you can use the Get Video button to generate the embed code."
347
+ msgstr ""
348
+
349
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:185
350
+ msgid "<strong>Note:</strong> The Slide Properties and Tile effects are not supported for videos."
351
+ msgstr ""
352
+
353
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:187
354
+ msgid "<strong>Note:</strong> Append &wmode=transparent to the embed code src attribute to make HTML elements appear on top of Flash."
355
+ msgstr ""
356
+
357
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/box.php:193
358
+ msgid "Custom HTML"
359
+ msgstr ""
360
+
361
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:3
362
  msgid "Transition Effects to Use:"
363
  msgstr ""
387
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:60
388
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:68
389
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:78
390
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:87
391
  msgid "Yes"
392
  msgstr ""
393
 
395
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:61
396
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:69
397
  #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:77
398
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:86
399
  msgid "No"
400
  msgstr ""
401
 
419
  msgid "Randomize order of slides on every page visit."
420
  msgstr ""
421
 
422
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:84
423
+ msgid "Resize Images?"
424
+ msgstr ""
425
+
426
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/slider-properties.php:89
427
+ msgid "Yes - resize images to slideshow dimension. <br>No - use the original uploaded image."
428
+ msgstr ""
429
+
430
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/template-selection.php:38
431
+ msgid "Select a template to use. Check the template icons to see what slide type it supports."
432
+ msgstr ""
433
+
434
+ #: D:\webserver\htdocs\wp1\wp-content\plugins\cyclone-slider-2/inc/admin-parts/template-selection.php:40
435
+ msgid "Get more templates.."
436
+ msgstr ""
437
+
screenshot-1.jpg CHANGED
Binary file
screenshot-2.jpg CHANGED
Binary file
templates/black/config.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ ; Slide Types Supported
2
+ slide_type[] = "image"
3
+ slide_type[] = "video"
4
+ slide_type[] = "custom"
templates/black/script.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery('.cycloneslider-template-black').each(function(i,el){
3
+
4
+ var main = jQuery(el),
5
+ prev = main.find('.cycloneslider-prev'),
6
+ next = main.find('.cycloneslider-next');
7
+
8
+ prev.fadeTo(0,0);
9
+ next.fadeTo(0,0);
10
+ main.on('mouseenter', function(){
11
+ prev.fadeTo('fast',0.4);
12
+ next.fadeTo('fast',0.4);
13
+ }).on('mouseleave', function(){
14
+ prev.fadeTo(0,0);
15
+ next.fadeTo(0,0);
16
+ });
17
+
18
+ prev.on('mouseenter', function(){
19
+ prev.fadeTo('fast',1);
20
+ }).on('mouseleave', function(){
21
+ prev.fadeTo('fast',0.4);
22
+ });
23
+
24
+ next.on('mouseenter', function(){
25
+ next.fadeTo('fast',1);
26
+ }).on('mouseleave', function(){
27
+ next.fadeTo('fast',0.4);
28
+ });
29
+ });
30
+ });
templates/black/script.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-black").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");e.fadeTo(0,0);c.fadeTo(0,0);a.on("mouseenter",function(){e.fadeTo("fast",0.4);c.fadeTo("fast",0.4)}).on("mouseleave",function(){e.fadeTo(0,0);c.fadeTo(0,0)});e.on("mouseenter",function(){e.fadeTo("fast",1)}).on("mouseleave",function(){e.fadeTo("fast",0.4)});c.on("mouseenter",function(){c.fadeTo("fast",1)}).on("mouseleave",function(){c.fadeTo("fast",0.4)})})});
templates/black/slider.php CHANGED
@@ -1,16 +1,22 @@
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-black" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
- <div class="cycloneslider-slides cycle-slideshow" <?php echo cycloneslider_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
- <div class="cycloneslider-slide" <?php echo cycloneslider_slide_settings($slider_meta); ?>>
6
- <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
7
- <img src="<?php echo cycloneslider_thumb($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], false, $slider_meta); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
8
- <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
9
- <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
10
- <div class="cycloneslider-caption">
11
- <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
12
- <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
13
- </div>
 
 
 
 
 
 
14
  <?php endif; ?>
15
  </div>
16
  <?php endforeach; ?>
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-black" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
+ <div class="cycloneslider-slides cycle-slideshow" <?php echo cyclone_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
+ <div class="cycloneslider-slide" <?php echo cyclone_slide_settings($slider_meta, $slider_settings); ?>>
6
+ <?php if ($slider_meta['type']=='image') : ?>
7
+ <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
8
+ <img src="<?php echo cyclone_slide_image_url($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], array('current_slide_settings'=>$slider_meta, 'slideshow_settings'=>$slider_settings) ); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
9
+ <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
10
+ <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
11
+ <div class="cycloneslider-caption">
12
+ <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
13
+ <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
14
+ </div>
15
+ <?php endif; ?>
16
+ <?php elseif ($slider_meta['type']=='video') : ?>
17
+ <?php echo $slider_meta['video']; ?>
18
+ <?php elseif ($slider_meta['type']=='custom') : ?>
19
+ <?php echo $slider_meta['custom']; ?>
20
  <?php endif; ?>
21
  </div>
22
  <?php endforeach; ?>
templates/black/style.css CHANGED
@@ -5,7 +5,6 @@
5
  .cycloneslider-template-black .cycloneslider-prev,
6
  .cycloneslider-template-black .cycloneslider-next{
7
  display:none;
8
- opacity:0;
9
  position:absolute;
10
  top:50%;
11
  margin-top:-22px;
@@ -15,11 +14,6 @@
15
  text-indent:-99999px;
16
  background: url($tpl/images/sprite-arrows.png) no-repeat;
17
  }
18
- .cycloneslider-template-black:hover .cycloneslider-prev,
19
- .cycloneslider-template-black:hover .cycloneslider-next{
20
- display:block;
21
- opacity:0.4;
22
- }
23
  .cycloneslider-template-black .cycloneslider-prev{
24
  left:10px;
25
  background-position:0 0;
@@ -28,10 +22,6 @@
28
  right:10px;
29
  background-position:-29px 0;
30
  }
31
- .cycloneslider-template-black .cycloneslider-prev:hover,
32
- .cycloneslider-template-black .cycloneslider-next:hover{
33
- opacity:1;
34
- }
35
  .cycloneslider-template-black .cycloneslider-pager{
36
  position:absolute;
37
  z-index:200;
@@ -71,4 +61,13 @@
71
  padding:0 20px 15px 20px;
72
  line-height:1.5;
73
  font-size:12px;
 
 
 
 
 
 
 
 
 
74
  }
5
  .cycloneslider-template-black .cycloneslider-prev,
6
  .cycloneslider-template-black .cycloneslider-next{
7
  display:none;
 
8
  position:absolute;
9
  top:50%;
10
  margin-top:-22px;
14
  text-indent:-99999px;
15
  background: url($tpl/images/sprite-arrows.png) no-repeat;
16
  }
 
 
 
 
 
17
  .cycloneslider-template-black .cycloneslider-prev{
18
  left:10px;
19
  background-position:0 0;
22
  right:10px;
23
  background-position:-29px 0;
24
  }
 
 
 
 
25
  .cycloneslider-template-black .cycloneslider-pager{
26
  position:absolute;
27
  z-index:200;
61
  padding:0 20px 15px 20px;
62
  line-height:1.5;
63
  font-size:12px;
64
+ }
65
+ .cycloneslider-template-black .cycloneslider-slide iframe,
66
+ .cycloneslider-template-black .cycloneslider-slide object,
67
+ .cycloneslider-template-black .cycloneslider-slide embed {
68
+ position: absolute;
69
+ top: 0;
70
+ left: 0;
71
+ width: 100% !important;
72
+ height: 100% !important;
73
  }
templates/black/style.min.css CHANGED
@@ -1,2 +1,2 @@
1
  /*** Template Black ***/
2
- .cycloneslider-template-black img{display:block}.cycloneslider-template-black .cycloneslider-prev,.cycloneslider-template-black .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-black:hover .cycloneslider-prev,.cycloneslider-template-black:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-black .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-black .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-black .cycloneslider-prev:hover,.cycloneslider-template-black .cycloneslider-next:hover{opacity:1}.cycloneslider-template-black .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-black .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-black .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-black .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-black .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-black .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}
1
  /*** Template Black ***/
2
+ .cycloneslider-template-black img{display:block}.cycloneslider-template-black .cycloneslider-prev,.cycloneslider-template-black .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-black .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-black .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-black .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-black .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-black .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-black .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-black .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-black .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-black .cycloneslider-slide iframe,.cycloneslider-template-black .cycloneslider-slide object,.cycloneslider-template-black .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
templates/blue/config.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ ; Slide Types Supported
2
+ slide_type[] = "image"
3
+ slide_type[] = "video"
4
+ slide_type[] = "custom"
templates/blue/script.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery('.cycloneslider-template-blue').each(function(i,el){
3
+
4
+ var main = jQuery(el),
5
+ prev = main.find('.cycloneslider-prev'),
6
+ next = main.find('.cycloneslider-next');
7
+
8
+ prev.fadeTo(0,0);
9
+ next.fadeTo(0,0);
10
+ main.on('mouseenter', function(){
11
+ prev.fadeTo('fast',0.4);
12
+ next.fadeTo('fast',0.4);
13
+ }).on('mouseleave', function(){
14
+ prev.fadeTo(0,0);
15
+ next.fadeTo(0,0);
16
+ });
17
+
18
+ prev.on('mouseenter', function(){
19
+ prev.fadeTo('fast',1);
20
+ }).on('mouseleave', function(){
21
+ prev.fadeTo('fast',0.4);
22
+ });
23
+
24
+ next.on('mouseenter', function(){
25
+ next.fadeTo('fast',1);
26
+ }).on('mouseleave', function(){
27
+ next.fadeTo('fast',0.4);
28
+ });
29
+ });
30
+ });
templates/blue/script.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-blue").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");e.fadeTo(0,0);c.fadeTo(0,0);a.on("mouseenter",function(){e.fadeTo("fast",0.4);c.fadeTo("fast",0.4)}).on("mouseleave",function(){e.fadeTo(0,0);c.fadeTo(0,0)});e.on("mouseenter",function(){e.fadeTo("fast",1)}).on("mouseleave",function(){e.fadeTo("fast",0.4)});c.on("mouseenter",function(){c.fadeTo("fast",1)}).on("mouseleave",function(){c.fadeTo("fast",0.4)})})});
templates/blue/slider.php CHANGED
@@ -1,16 +1,22 @@
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-blue" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
- <div class="cycloneslider-slides cycle-slideshow" <?php echo cycloneslider_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
- <div class="cycloneslider-slide" <?php echo cycloneslider_slide_settings($slider_meta); ?>>
6
- <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
7
- <img src="<?php echo cycloneslider_thumb($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], false, $slider_meta); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
8
- <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
9
- <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
10
- <div class="cycloneslider-caption">
11
- <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
12
- <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
13
- </div>
 
 
 
 
 
 
14
  <?php endif; ?>
15
  </div>
16
  <?php endforeach; ?>
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-blue" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
+ <div class="cycloneslider-slides cycle-slideshow" <?php echo cyclone_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
+ <div class="cycloneslider-slide" <?php echo cyclone_slide_settings($slider_meta, $slider_settings); ?>>
6
+ <?php if ($slider_meta['type']=='image') : ?>
7
+ <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
8
+ <img src="<?php echo cyclone_slide_image_url($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], array('current_slide_settings'=>$slider_meta, 'slideshow_settings'=>$slider_settings) ); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
9
+ <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
10
+ <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
11
+ <div class="cycloneslider-caption">
12
+ <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
13
+ <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
14
+ </div>
15
+ <?php endif; ?>
16
+ <?php elseif ($slider_meta['type']=='video') : ?>
17
+ <?php echo $slider_meta['video']; ?>
18
+ <?php elseif ($slider_meta['type']=='custom') : ?>
19
+ <?php echo $slider_meta['custom']; ?>
20
  <?php endif; ?>
21
  </div>
22
  <?php endforeach; ?>
templates/blue/style.css CHANGED
@@ -5,7 +5,6 @@
5
  .cycloneslider-template-blue .cycloneslider-prev,
6
  .cycloneslider-template-blue .cycloneslider-next{
7
  display:none;
8
- opacity:0;
9
  position:absolute;
10
  top:50%;
11
  margin-top:-22px;
@@ -15,11 +14,6 @@
15
  text-indent:-99999px;
16
  background: url($tpl/images/sprite-arrows.png) no-repeat;
17
  }
18
- .cycloneslider-template-blue:hover .cycloneslider-prev,
19
- .cycloneslider-template-blue:hover .cycloneslider-next{
20
- display:block;
21
- opacity:0.4;
22
- }
23
  .cycloneslider-template-blue .cycloneslider-prev{
24
  left:10px;
25
  background-position:0 0;
@@ -28,10 +22,6 @@
28
  right:10px;
29
  background-position:-29px 0;
30
  }
31
- .cycloneslider-template-blue .cycloneslider-prev:hover,
32
- .cycloneslider-template-blue .cycloneslider-next:hover{
33
- opacity:1;
34
- }
35
  .cycloneslider-template-blue .cycloneslider-pager{
36
  position:absolute;
37
  z-index:200;
@@ -71,4 +61,13 @@
71
  padding:0 20px 15px 20px;
72
  line-height:1.5;
73
  font-size:12px;
 
 
 
 
 
 
 
 
 
74
  }
5
  .cycloneslider-template-blue .cycloneslider-prev,
6
  .cycloneslider-template-blue .cycloneslider-next{
7
  display:none;
 
8
  position:absolute;
9
  top:50%;
10
  margin-top:-22px;
14
  text-indent:-99999px;
15
  background: url($tpl/images/sprite-arrows.png) no-repeat;
16
  }
 
 
 
 
 
17
  .cycloneslider-template-blue .cycloneslider-prev{
18
  left:10px;
19
  background-position:0 0;
22
  right:10px;
23
  background-position:-29px 0;
24
  }
 
 
 
 
25
  .cycloneslider-template-blue .cycloneslider-pager{
26
  position:absolute;
27
  z-index:200;
61
  padding:0 20px 15px 20px;
62
  line-height:1.5;
63
  font-size:12px;
64
+ }
65
+ .cycloneslider-template-blue .cycloneslider-slide iframe,
66
+ .cycloneslider-template-blue .cycloneslider-slide object,
67
+ .cycloneslider-template-blue .cycloneslider-slide embed {
68
+ position: absolute;
69
+ top: 0;
70
+ left: 0;
71
+ width: 100% !important;
72
+ height: 100% !important;
73
  }
templates/blue/style.min.css CHANGED
@@ -1,2 +1,2 @@
1
  /*** Template Blue ***/
2
- .cycloneslider-template-blue img{display:block}.cycloneslider-template-blue .cycloneslider-prev,.cycloneslider-template-blue .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-blue:hover .cycloneslider-prev,.cycloneslider-template-blue:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-blue .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-blue .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-blue .cycloneslider-prev:hover,.cycloneslider-template-blue .cycloneslider-next:hover{opacity:1}.cycloneslider-template-blue .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-blue .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-blue .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-blue .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-blue .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-blue .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}
1
  /*** Template Blue ***/
2
+ .cycloneslider-template-blue img{display:block}.cycloneslider-template-blue .cycloneslider-prev,.cycloneslider-template-blue .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-blue .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-blue .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-blue .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-blue .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-blue .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-blue .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-blue .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-blue .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-blue .cycloneslider-slide iframe,.cycloneslider-template-blue .cycloneslider-slide object,.cycloneslider-template-blue .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
templates/default/config.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ ; Slide Types Supported
2
+ slide_type[] = "image"
3
+ slide_type[] = "video"
4
+ slide_type[] = "custom"
templates/default/script.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery('.cycloneslider-template-default').each(function(i,el){
3
+
4
+ var main = jQuery(el),
5
+ prev = main.find('.cycloneslider-prev'),
6
+ next = main.find('.cycloneslider-next');
7
+
8
+ prev.fadeTo(0,0);
9
+ next.fadeTo(0,0);
10
+ main.on('mouseenter', function(){
11
+ prev.fadeTo('fast',0.4);
12
+ next.fadeTo('fast',0.4);
13
+ }).on('mouseleave', function(){
14
+ prev.fadeTo(0,0);
15
+ next.fadeTo(0,0);
16
+ });
17
+
18
+ prev.on('mouseenter', function(){
19
+ prev.fadeTo('fast',1);
20
+ }).on('mouseleave', function(){
21
+ prev.fadeTo('fast',0.4);
22
+ });
23
+
24
+ next.on('mouseenter', function(){
25
+ next.fadeTo('fast',1);
26
+ }).on('mouseleave', function(){
27
+ next.fadeTo('fast',0.4);
28
+ });
29
+ });
30
+ });
templates/default/script.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-default").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");e.fadeTo(0,0);c.fadeTo(0,0);a.on("mouseenter",function(){e.fadeTo("fast",0.4);c.fadeTo("fast",0.4)}).on("mouseleave",function(){e.fadeTo(0,0);c.fadeTo(0,0)});e.on("mouseenter",function(){e.fadeTo("fast",1)}).on("mouseleave",function(){e.fadeTo("fast",0.4)});c.on("mouseenter",function(){c.fadeTo("fast",1)}).on("mouseleave",function(){c.fadeTo("fast",0.4)})})});
templates/default/slider.php CHANGED
@@ -1,16 +1,22 @@
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-default" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
- <div class="cycloneslider-slides cycle-slideshow" <?php echo cycloneslider_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
- <div class="cycloneslider-slide" <?php echo cycloneslider_slide_settings($slider_meta); ?>>
6
- <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
7
- <img src="<?php echo cycloneslider_thumb($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], false, $slider_meta); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
8
- <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
9
- <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
10
- <div class="cycloneslider-caption">
11
- <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
12
- <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
13
- </div>
 
 
 
 
 
 
14
  <?php endif; ?>
15
  </div>
16
  <?php endforeach; ?>
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-default" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
+ <div class="cycloneslider-slides cycle-slideshow" <?php echo cyclone_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
+ <div class="cycloneslider-slide" <?php echo cyclone_slide_settings($slider_meta, $slider_settings); ?>>
6
+ <?php if ($slider_meta['type']=='image') : ?>
7
+ <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
8
+ <img src="<?php echo cyclone_slide_image_url($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], array('current_slide_settings'=>$slider_meta, 'slideshow_settings'=>$slider_settings) ); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
9
+ <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
10
+ <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
11
+ <div class="cycloneslider-caption">
12
+ <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
13
+ <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
14
+ </div>
15
+ <?php endif; ?>
16
+ <?php elseif ($slider_meta['type']=='video') : ?>
17
+ <?php echo $slider_meta['video']; ?>
18
+ <?php elseif ($slider_meta['type']=='custom') : ?>
19
+ <?php echo $slider_meta['custom']; ?>
20
  <?php endif; ?>
21
  </div>
22
  <?php endforeach; ?>
templates/default/style.css CHANGED
@@ -5,7 +5,6 @@
5
  .cycloneslider-template-default .cycloneslider-prev,
6
  .cycloneslider-template-default .cycloneslider-next{
7
  display:none;
8
- opacity:0;
9
  position:absolute;
10
  top:50%;
11
  margin-top:-22px;
@@ -15,11 +14,6 @@
15
  text-indent:-99999px;
16
  background: url($tpl/images/sprite-arrows.png) no-repeat;
17
  }
18
- .cycloneslider-template-default:hover .cycloneslider-prev,
19
- .cycloneslider-template-default:hover .cycloneslider-next{
20
- display:block;
21
- opacity:0.4;
22
- }
23
  .cycloneslider-template-default .cycloneslider-prev{
24
  left:10px;
25
  background-position:0 0;
@@ -28,10 +22,6 @@
28
  right:10px;
29
  background-position:-29px 0;
30
  }
31
- .cycloneslider-template-default .cycloneslider-prev:hover,
32
- .cycloneslider-template-default .cycloneslider-next:hover{
33
- opacity:1;
34
- }
35
  .cycloneslider-template-default .cycloneslider-pager{
36
  position:absolute;
37
  z-index:200;
@@ -71,4 +61,13 @@
71
  padding:0 20px 15px 20px;
72
  line-height:1.5;
73
  font-size:12px;
 
 
 
 
 
 
 
 
 
74
  }
5
  .cycloneslider-template-default .cycloneslider-prev,
6
  .cycloneslider-template-default .cycloneslider-next{
7
  display:none;
 
8
  position:absolute;
9
  top:50%;
10
  margin-top:-22px;
14
  text-indent:-99999px;
15
  background: url($tpl/images/sprite-arrows.png) no-repeat;
16
  }
 
 
 
 
 
17
  .cycloneslider-template-default .cycloneslider-prev{
18
  left:10px;
19
  background-position:0 0;
22
  right:10px;
23
  background-position:-29px 0;
24
  }
 
 
 
 
25
  .cycloneslider-template-default .cycloneslider-pager{
26
  position:absolute;
27
  z-index:200;
61
  padding:0 20px 15px 20px;
62
  line-height:1.5;
63
  font-size:12px;
64
+ }
65
+ .cycloneslider-template-default .cycloneslider-slide iframe,
66
+ .cycloneslider-template-default .cycloneslider-slide object,
67
+ .cycloneslider-template-default .cycloneslider-slide embed {
68
+ position: absolute;
69
+ top: 0;
70
+ left: 0;
71
+ width: 100% !important;
72
+ height: 100% !important;
73
  }
templates/default/style.min.css CHANGED
@@ -1,2 +1,2 @@
1
  /*** Template Default ***/
2
- .cycloneslider-template-default img{display:block}.cycloneslider-template-default .cycloneslider-prev,.cycloneslider-template-default .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-default:hover .cycloneslider-prev,.cycloneslider-template-default:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-default .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-default .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-default .cycloneslider-prev:hover,.cycloneslider-template-default .cycloneslider-next:hover{opacity:1}.cycloneslider-template-default .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-default .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-default .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-default .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-default .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-default .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}
1
  /*** Template Default ***/
2
+ .cycloneslider-template-default img{display:block}.cycloneslider-template-default .cycloneslider-prev,.cycloneslider-template-default .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-default .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-default .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-default .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-default .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:10px;height:10px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-default .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-default .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-default .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-default .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-default .cycloneslider-slide iframe,.cycloneslider-template-default .cycloneslider-slide object,.cycloneslider-template-default .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
templates/myrtle/config.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ ; Slide Types Supported
2
+ slide_type[] = "image"
3
+ slide_type[] = "video"
4
+ slide_type[] = "custom"
templates/myrtle/script.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery('.cycloneslider-template-myrtle').each(function(i,el){
3
+
4
+ var main = jQuery(el),
5
+ prev = main.find('.cycloneslider-prev'),
6
+ next = main.find('.cycloneslider-next');
7
+
8
+ main.on('mouseenter', function(){
9
+ prev.show();
10
+ next.show();
11
+ }).on('mouseleave', function(){
12
+ prev.hide();
13
+ next.hide();
14
+ });
15
+ });
16
+ });
templates/myrtle/script.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-myrtle").each(function(b,d){var a=jQuery(d),e=a.find(".cycloneslider-prev"),c=a.find(".cycloneslider-next");a.on("mouseenter",function(){e.show();c.show()}).on("mouseleave",function(){e.hide();c.hide()})})});
templates/myrtle/slider.php CHANGED
@@ -1,16 +1,22 @@
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-myrtle" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
- <div class="cycloneslider-slides cycle-slideshow" <?php echo cycloneslider_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
- <div class="cycloneslider-slide" <?php echo cycloneslider_slide_settings($slider_meta); ?>>
6
- <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
7
- <img src="<?php echo cycloneslider_thumb($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], false, $slider_meta); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
8
- <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
9
- <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
10
- <div class="cycloneslider-caption">
11
- <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
12
- <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
13
- </div>
 
 
 
 
 
 
14
  <?php endif; ?>
15
  </div>
16
  <?php endforeach; ?>
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-myrtle" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
+ <div class="cycloneslider-slides cycle-slideshow" <?php echo cyclone_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
+ <div class="cycloneslider-slide" <?php echo cyclone_slide_settings($slider_meta, $slider_settings); ?>>
6
+ <?php if ($slider_meta['type']=='image') : ?>
7
+ <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
8
+ <img src="<?php echo cyclone_slide_image_url($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], array('current_slide_settings'=>$slider_meta, 'slideshow_settings'=>$slider_settings) ); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
9
+ <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
10
+ <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
11
+ <div class="cycloneslider-caption">
12
+ <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
13
+ <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
14
+ </div>
15
+ <?php endif; ?>
16
+ <?php elseif ($slider_meta['type']=='video') : ?>
17
+ <?php echo $slider_meta['video']; ?>
18
+ <?php elseif ($slider_meta['type']=='custom') : ?>
19
+ <?php echo $slider_meta['custom']; ?>
20
  <?php endif; ?>
21
  </div>
22
  <?php endforeach; ?>
templates/myrtle/style.css CHANGED
@@ -74,4 +74,13 @@
74
  line-height:1.5;
75
  font-size:12px;
76
  color:#676761;
 
 
 
 
 
 
 
 
 
77
  }
74
  line-height:1.5;
75
  font-size:12px;
76
  color:#676761;
77
+ }
78
+ .cycloneslider-template-myrtle .cycloneslider-slide iframe,
79
+ .cycloneslider-template-myrtle .cycloneslider-slide object,
80
+ .cycloneslider-template-myrtle .cycloneslider-slide embed {
81
+ position: absolute;
82
+ top: 0;
83
+ left: 0;
84
+ width: 100% !important;
85
+ height: 100% !important;
86
  }
templates/myrtle/style.min.css CHANGED
@@ -1,2 +1,2 @@
1
  /*** Template Myrtle ***/
2
- .cycloneslider-template-myrtle{overflow:hidden}.cycloneslider-template-myrtle .cycloneslider-prev,.cycloneslider-template-myrtle .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-19px;z-index:102;text-indent:-99999px;width:45px;height:45px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-myrtle:hover .cycloneslider-prev,.cycloneslider-template-myrtle:hover .cycloneslider-next{display:block}.cycloneslider-template-myrtle .cycloneslider-prev{left:10px;background-position:-45px 0}.cycloneslider-template-myrtle .cycloneslider-next{right:10px;background-position:0 0}.cycloneslider-template-myrtle .cycloneslider-prev:hover{background-position:-45px -45px}.cycloneslider-template-myrtle .cycloneslider-next:hover{background-position:0 -45px}.cycloneslider-template-myrtle .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-myrtle .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:12px;height:12px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-myrtle .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-myrtle .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png) right;color:#fff}.cycloneslider-template-myrtle .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:24px;line-height:1;margin-bottom:0;color:#e62b4e}.cycloneslider-template-myrtle .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px;color:#676761}
1
  /*** Template Myrtle ***/
2
+ .cycloneslider-template-myrtle{overflow:hidden}.cycloneslider-template-myrtle .cycloneslider-prev,.cycloneslider-template-myrtle .cycloneslider-next{display:none;position:absolute;top:50%;margin-top:-19px;z-index:102;text-indent:-99999px;width:45px;height:45px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-myrtle:hover .cycloneslider-prev,.cycloneslider-template-myrtle:hover .cycloneslider-next{display:block}.cycloneslider-template-myrtle .cycloneslider-prev{left:10px;background-position:-45px 0}.cycloneslider-template-myrtle .cycloneslider-next{right:10px;background-position:0 0}.cycloneslider-template-myrtle .cycloneslider-prev:hover{background-position:-45px -45px}.cycloneslider-template-myrtle .cycloneslider-next:hover{background-position:0 -45px}.cycloneslider-template-myrtle .cycloneslider-pager{position:absolute;z-index:200;top:20px;right:20px}.cycloneslider-template-myrtle .cycloneslider-pager span{background:url($tpl/images/sprite-nav.png) no-repeat scroll 0 0 transparent;display:block;float:left;font-size:0;width:12px;height:12px;line-height:0;margin-right:6px;text-indent:-99999px}.cycloneslider-template-myrtle .cycloneslider-pager span.cycle-pager-active{background-position:left bottom}.cycloneslider-template-myrtle .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png) right;color:#fff}.cycloneslider-template-myrtle .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:24px;line-height:1;margin-bottom:0;color:#e62b4e}.cycloneslider-template-myrtle .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px;color:#676761}.cycloneslider-template-myrtle .cycloneslider-slide iframe,.cycloneslider-template-myrtle .cycloneslider-slide object,.cycloneslider-template-myrtle .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}
templates/thumbnails/config.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ ; Slide Types Supported
2
+ slide_type[] = "image"
3
+ slide_type[] = "video"
4
+ slide_type[] = "custom"
templates/thumbnails/slider.php CHANGED
@@ -1,21 +1,27 @@
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-thumbnails" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
- <div class="cycloneslider-slides cycle-slideshow" <?php echo cycloneslider_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
- <div class="cycloneslider-slide" <?php echo cycloneslider_slide_settings($slider_meta); ?>>
6
- <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
7
- <img src="<?php echo cycloneslider_thumb($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], false, $slider_meta); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
8
- <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
9
- <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
10
- <div class="cycloneslider-caption">
11
- <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
12
- <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
13
- </div>
 
 
 
 
 
 
14
  <?php endif; ?>
15
  </div>
16
  <?php endforeach; ?>
17
  </div>
18
- <?php if ($slider_settings['show_prev_next']) : ?>
19
  <div class="cycloneslider-prev">Prev</div>
20
  <div class="cycloneslider-next">Next</div>
21
  <?php endif; ?>
@@ -25,7 +31,15 @@
25
  <ul class="clearfix">
26
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
27
  <li>
28
- <img src="<?php echo cycloneslider_thumb( $slider_meta['id'], 30, 30, false, $slider_meta ) ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
 
 
 
 
 
 
 
 
29
  </li>
30
  <?php endforeach; ?>
31
  </ul>
1
  <?php if($slider_count>0) $slider_id = $slider_id.'-'.$slider_count; ?>
2
  <div class="cycloneslider cycloneslider-template-thumbnails" id="cycloneslider-<?php echo $slider_id; ?>" style="max-width:<?php echo $slider_settings['width']; ?>px">
3
+ <div class="cycloneslider-slides cycle-slideshow" <?php echo cyclone_settings($slider_settings, $slider_id); ?>>
4
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
5
+ <div class="cycloneslider-slide" <?php echo cyclone_slide_settings($slider_meta, $slider_settings); ?>>
6
+ <?php if ($slider_meta['type']=='image') : ?>
7
+ <?php if ($slider_meta['link']!='') : ?><a target="<?php echo ('_blank'==$slider_meta['link_target']) ? '_blank' : '_self'; ?>" href="<?php echo $slider_meta['link'];?>"><?php endif; ?>
8
+ <img src="<?php echo cyclone_slide_image_url($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], array('current_slide_settings'=>$slider_meta, 'slideshow_settings'=>$slider_settings) ); ?>" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
9
+ <?php if ($slider_meta['link']!='') : ?></a><?php endif; ?>
10
+ <?php if(!empty($slider_meta['title']) or !empty($slider_meta['description'])) : ?>
11
+ <div class="cycloneslider-caption">
12
+ <div class="cycloneslider-caption-title"><?php echo $slider_meta['title'];?></div>
13
+ <div class="cycloneslider-caption-description"><?php echo $slider_meta['description'];?></div>
14
+ </div>
15
+ <?php endif; ?>
16
+ <?php elseif ($slider_meta['type']=='video') : ?>
17
+ <?php echo $slider_meta['video']; ?>
18
+ <?php elseif ($slider_meta['type']=='custom') : ?>
19
+ <?php echo $slider_meta['custom']; ?>
20
  <?php endif; ?>
21
  </div>
22
  <?php endforeach; ?>
23
  </div>
24
+ <?php if ($slider_settings['show_nav'] && ($video_count<=0) ) : ?>
25
  <div class="cycloneslider-prev">Prev</div>
26
  <div class="cycloneslider-next">Next</div>
27
  <?php endif; ?>
31
  <ul class="clearfix">
32
  <?php foreach($slider_metas as $i=>$slider_meta): ?>
33
  <li>
34
+ <?php if ($slider_meta['type']=='video') : ?>
35
+ <div class="thumb-video">
36
+ <img src="<?php echo $slider_meta['video_thumb'];?>" width="30" height="30" alt="">
37
+ </div>
38
+ <?php elseif($slider_meta['type']=='custom'): ?>
39
+ <div class="thumb-custom">HTML</div>
40
+ <?php else: ?>
41
+ <img src="<?php echo cyclone_slide_image_url($slider_meta['id'], 30, 30, array('current_slide_settings'=>$slider_meta, 'slideshow_settings'=>$slider_settings, 'resize_option'=>'crop') ); ?>" width="30" height="30" alt="<?php echo $slider_meta['img_alt'];?>" title="<?php echo $slider_meta['img_title'];?>" />
42
+ <?php endif; ?>
43
  </li>
44
  <?php endforeach; ?>
45
  </ul>
templates/thumbnails/style.css CHANGED
@@ -59,11 +59,40 @@
59
  text-align:center;
60
  }
61
  .cycloneslider-template-thumbnails.cycloneslider-thumbnails li{
 
62
  display:inline-block;
 
 
63
  margin:0 5px;
64
  border:5px solid #ccc;
65
  cursor:pointer;
 
 
 
 
 
66
  }
67
  .cycloneslider-template-thumbnails.cycloneslider-thumbnails li.current{
68
  border-color:#333;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
59
  text-align:center;
60
  }
61
  .cycloneslider-template-thumbnails.cycloneslider-thumbnails li{
62
+ list-style:none inside;
63
  display:inline-block;
64
+ width:30px;
65
+ height:30px;
66
  margin:0 5px;
67
  border:5px solid #ccc;
68
  cursor:pointer;
69
+ vertical-align:top;
70
+ }
71
+ .cycloneslider-template-thumbnails.cycloneslider-thumbnails li{
72
+ zoom: 1;/* IE 7 inline-block */
73
+ *display: inline;/* IE 7 inline-block */
74
  }
75
  .cycloneslider-template-thumbnails.cycloneslider-thumbnails li.current{
76
  border-color:#333;
77
+ }
78
+
79
+ .cycloneslider-template-thumbnails .cycloneslider-slide iframe,
80
+ .cycloneslider-template-thumbnails .cycloneslider-slide object,
81
+ .cycloneslider-template-thumbnails .cycloneslider-slide embed {
82
+ position: absolute;
83
+ top: 0;
84
+ left: 0;
85
+ width: 100% !important;
86
+ height: 100% !important;
87
+ }
88
+ .cycloneslider-template-thumbnails .thumb-custom{
89
+ background:#ccc;
90
+ width:30px;
91
+ height:30px;
92
+ line-height:30px;
93
+ font-size:8px;
94
+ color:#fefefe;
95
+ }
96
+ .cycloneslider-template-thumbnails img{
97
+ border-radius:0;
98
  }
templates/thumbnails/style.min.css CHANGED
@@ -1,2 +1,2 @@
1
  /*** Template Thumbnails ***/
2
- .cycloneslider-template-thumbnails img{display:block}.cycloneslider-template-thumbnails .cycloneslider-prev,.cycloneslider-template-thumbnails .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-thumbnails:hover .cycloneslider-prev,.cycloneslider-template-thumbnails:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-thumbnails .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-thumbnails .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-thumbnails .cycloneslider-prev:hover,.cycloneslider-template-thumbnails .cycloneslider-next:hover{opacity:1}.cycloneslider-template-thumbnails .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-thumbnails .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-thumbnails .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-thumbnails.cycloneslider-thumbnails{padding:20px 0;text-align:center}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li{display:inline-block;margin:0 5px;border:5px solid #ccc;cursor:pointer}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li.current{border-color:#333}
1
  /*** Template Thumbnails ***/
2
+ .cycloneslider-template-thumbnails img{display:block}.cycloneslider-template-thumbnails .cycloneslider-prev,.cycloneslider-template-thumbnails .cycloneslider-next{display:none;opacity:0;position:absolute;top:50%;margin-top:-22px;z-index:102;width:26px;height:44px;text-indent:-99999px;background:url($tpl/images/sprite-arrows.png) no-repeat}.cycloneslider-template-thumbnails:hover .cycloneslider-prev,.cycloneslider-template-thumbnails:hover .cycloneslider-next{display:block;opacity:.4}.cycloneslider-template-thumbnails .cycloneslider-prev{left:10px;background-position:0 0}.cycloneslider-template-thumbnails .cycloneslider-next{right:10px;background-position:-29px 0}.cycloneslider-template-thumbnails .cycloneslider-prev:hover,.cycloneslider-template-thumbnails .cycloneslider-next:hover{opacity:1}.cycloneslider-template-thumbnails .cycloneslider-caption{position:absolute;left:0;bottom:0;width:100%;z-index:99;background:url($tpl/images/bg-caption.png);color:#fff}.cycloneslider-template-thumbnails .cycloneslider-caption-title{padding:10px 20px 5px 20px;font-size:22px;line-height:1;margin-bottom:0}.cycloneslider-template-thumbnails .cycloneslider-caption-description{padding:0 20px 15px 20px;line-height:1.5;font-size:12px}.cycloneslider-template-thumbnails.cycloneslider-thumbnails{padding:20px 0;text-align:center}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li{list-style:none inside;display:inline-block;width:30px;height:30px;margin:0 5px;border:5px solid #ccc;cursor:pointer;vertical-align:top}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li{zoom:1;*display:inline}.cycloneslider-template-thumbnails.cycloneslider-thumbnails li.current{border-color:#333}.cycloneslider-template-thumbnails .cycloneslider-slide iframe,.cycloneslider-template-thumbnails .cycloneslider-slide object,.cycloneslider-template-thumbnails .cycloneslider-slide embed{position:absolute;top:0;left:0;width:100%!important;height:100%!important}.cycloneslider-template-thumbnails .thumb-custom{background:#ccc;width:30px;height:30px;line-height:30px;font-size:8px;color:#fefefe}.cycloneslider-template-thumbnails img{border-radius:0}