MetaSlider - Version 2.5.1

Version Description

Download this release

Release Info

Developer matchalabs
Plugin Icon 128x128 MetaSlider
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.4.2 to 2.5.1

assets/metaslider/admin.css CHANGED
@@ -1,3 +1,31 @@
1
.attachment-filters {
2
display: none;
3
}
@@ -34,6 +62,7 @@
34
.metaslider .left table tr.slide input.url {
35
width: 100%;
36
margin: 0 0 8px 0;
37
}
38
.bubble {
39
position: relative;
@@ -128,7 +157,6 @@
128
text-transform: uppercase;
129
}
130
.metaslider .tipsy-tooltip {
131
- font-size: 0.9em;
132
cursor: help;
133
}
134
.metaslider .nav-tab-active input {
@@ -153,10 +181,6 @@
153
box-shadow: 3px 3px 5px #cccccc;
154
}
155
.metaslider .left {
156
- width: 68%;
157
- margin-top: 20px;
158
- float: left;
159
- clear: none;
160
}
161
@media (max-width: 900px) {
162
.metaslider .left {
@@ -236,16 +260,19 @@
236
.metaslider .left table tr.slide .new_window {
237
position: relative;
238
float: right;
239
- font-size: 10px;
240
- padding: 0px 3px;
241
color: #a9a9a9;
242
}
243
.metaslider .left table tr.slide .new_window label {
244
- position: absolute;
245
width: 120px;
246
- right: 6px;
247
text-align: right;
248
- top: -28px;
249
}
250
.metaslider .left table td {
251
border-top: 0;
@@ -255,17 +282,8 @@
255
padding: 8px 8px 8px 0;
256
}
257
.metaslider .right {
258
- width: 30%;
259
- float: right;
260
- margin-top: 20px;
261
- clear: none;
262
- }
263
- @media (max-width: 900px) {
264
- .metaslider .right {
265
- width: 100%;
266
- float: none;
267
- }
268
}
269
.metaslider .right .highlight {
270
background: #f1f1f1;
271
border-top: 3px solid #f9f9f9;
@@ -291,20 +309,20 @@
291
list-style-type: none;
292
text-align: center;
293
}
294
- .metaslider .right .settings .slider-lib input {
295
- margin: 3px 0 0 0;
296
}
297
- @media (max-width: 1120px) {
298
- .metaslider .right .settings .slider-lib {
299
- width: 48%;
300
- margin: 1%;
301
- }
302
}
303
- @media (max-width: 900px) {
304
- .metaslider .right .settings .slider-lib {
305
- width: 23%;
306
- margin: 1%;
307
- }
308
}
309
.metaslider .right .settings .slider-lib label {
310
color: white;
@@ -373,13 +391,11 @@
373
.metaslider .right .shortcode td {
374
border-bottom: 0;
375
border-top: 0;
376
- font-size: 0.9em;
377
}
378
.metaslider .right .shortcode input,
379
.metaslider .right .shortcode input:active {
380
font-family: monospace;
381
width: 100%;
382
- font-size: 0.9em;
383
background: transparent;
384
border: 0;
385
box-shadow: none;
@@ -387,11 +403,22 @@
387
.metaslider .right table td {
388
border-top: 0;
389
height: 28px;
390
- font-size: 0.9em;
391
vertical-align: middle;
392
padding: 0 6px;
393
border-bottom: 0;
394
}
395
.metaslider .right table td input[type='checkbox'] {
396
margin-left: 2px;
397
}
@@ -439,6 +466,14 @@ ul.info li {
439
top: -1px;
440
}
441
442
#ms-pro-meta-link-wrap a {
443
text-decoration: none;
444
z-index: 1;
1
+ .metaslider #poststuff #post-body.columns-2 {
2
+ margin-right: 320px;
3
+ }
4
+ .metaslider #post-body.columns-2 #postbox-container-1 {
5
+ margin-right: -320px;
6
+ width: 300px;
7
+ }
8
+ .resize_overlay {
9
+ position: absolute;
10
+ width: inherit;
11
+ background: transparent url(resizing.gif) no-repeat;
12
+ width: 16px;
13
+ height: 11px;
14
+ top: 3px;
15
+ left: 3px;
16
+ z-index: 9999;
17
+ }
18
+ .media-frame-menu .media-menu > a.disabled {
19
+ display: block;
20
+ position: relative;
21
+ padding: 4px 20px;
22
+ margin: 0;
23
+ line-height: 18px;
24
+ font-size: 14px;
25
+ color: #cccccc;
26
+ text-shadow: 0 1px 0 #fff;
27
+ text-decoration: none;
28
+ }
29
.attachment-filters {
30
display: none;
31
}
62
.metaslider .left table tr.slide input.url {
63
width: 100%;
64
margin: 0 0 8px 0;
65
+ padding: 5px;
66
}
67
.bubble {
68
position: relative;
157
text-transform: uppercase;
158
}
159
.metaslider .tipsy-tooltip {
160
cursor: help;
161
}
162
.metaslider .nav-tab-active input {
181
box-shadow: 3px 3px 5px #cccccc;
182
}
183
.metaslider .left {
184
}
185
@media (max-width: 900px) {
186
.metaslider .left {
260
.metaslider .left table tr.slide .new_window {
261
position: relative;
262
float: right;
263
+ padding: 0px;
264
color: #a9a9a9;
265
+ line-height: 20px;
266
+ top: -31px;
267
+ right: 6px;
268
+ }
269
+ .metaslider .left table tr.slide .new_window input {
270
+ margin: 0 0 0 3px;
271
}
272
.metaslider .left table tr.slide .new_window label {
273
width: 120px;
274
text-align: right;
275
+ font-size: 11px;
276
}
277
.metaslider .left table td {
278
border-top: 0;
282
padding: 8px 8px 8px 0;
283
}
284
.metaslider .right {
285
}
286
+
287
.metaslider .right .highlight {
288
background: #f1f1f1;
289
border-top: 3px solid #f9f9f9;
309
list-style-type: none;
310
text-align: center;
311
}
312
+ .metaslider .right .settings .width,
313
+ .metaslider .right .settings .height {
314
+ padding-right: 0;
315
+ margin-right: 0;
316
}
317
+ .metaslider .right input[type="number"] {
318
+ width: 50px;
319
}
320
+ .metaslider .right input[type="text"],
321
+ .metaslider .right select {
322
+ width: 100px;
323
+ }
324
+ .metaslider .right .settings .slider-lib input {
325
+ margin: 3px 0 0 0;
326
}
327
.metaslider .right .settings .slider-lib label {
328
color: white;
391
.metaslider .right .shortcode td {
392
border-bottom: 0;
393
border-top: 0;
394
}
395
.metaslider .right .shortcode input,
396
.metaslider .right .shortcode input:active {
397
font-family: monospace;
398
width: 100%;
399
background: transparent;
400
border: 0;
401
box-shadow: none;
403
.metaslider .right table td {
404
border-top: 0;
405
height: 28px;
406
vertical-align: middle;
407
padding: 0 6px;
408
border-bottom: 0;
409
}
410
+ .metaslider table td,
411
+ .metaslider table td input,
412
+ .metaslider table td select,
413
+ .metaslider table td textarea {
414
+ font-size: 12px;
415
+ }
416
+ .metaslider .right table td,
417
+ .metaslider .right table td input,
418
+ .metaslider .right table td select,
419
+ .metaslider .right table td textarea {
420
+ font-size: 11px;
421
+ }
422
.metaslider .right table td input[type='checkbox'] {
423
margin-left: 2px;
424
}
466
top: -1px;
467
}
468
469
+ .metaslider .warning {
470
+ background-color: #ffebe8;
471
+ border: 1px solid #c00;
472
+ margin-bottom: 5px;
473
+ border-radius: 3px;
474
+ padding: 5px 10px;
475
+ }
476
+
477
#ms-pro-meta-link-wrap a {
478
text-decoration: none;
479
z-index: 1;
assets/metaslider/admin.js CHANGED
@@ -1,6 +1,6 @@
1
jQuery(document).ready(function($) {
2
3
- jQuery("#ms-pro-meta-link-wrap").appendTo('#screen-meta-links');
4
5
// Enable the correct options for this slider type
6
var switchType = function(slider) {
@@ -54,6 +54,48 @@ jQuery(document).ready(function($) {
54
});
55
});
56
57
// show the confirm dialogue
58
jQuery(".confirm").live('click', function() {
59
return confirm(metaslider.confirm);
@@ -153,9 +195,18 @@ jQuery(document).ready(function($) {
153
cache: false,
154
url: url,
155
success: function(data) {
156
- // update the slides with the response html
157
- $(".metaslider .left tbody").html($(".metaslider .left tbody", data).html());
158
-
159
fixIE10PlaceholderText();
160
161
if (button.id === 'preview') {
1
jQuery(document).ready(function($) {
2
3
+ jQuery("#ms-pro-meta-link-wrap").appendTo('#screen-meta-links').show();
4
5
// Enable the correct options for this slider type
6
var switchType = function(slider) {
54
});
55
});
56
57
+ // bind an event to the slides table to update the menu order of each slide
58
+ jQuery('.metaslider .left table').live('resizeSlides', function(event) {
59
+ var slideshow_width = jQuery('input.width').val();
60
+ var slideshow_height = jQuery('input.height').val();
61
+
62
+ jQuery("tr.slide input[name='resize_slide_id']", this).each(function() {
63
+ $this = jQuery(this);
64
+
65
+ var thumb_width = $this.attr('data-width');
66
+ var thumb_height = $this.attr('data-height');
67
+
68
+ if ((thumb_width != slideshow_width || thumb_height != slideshow_height)) {
69
+ $this.attr('data-width', slideshow_width);
70
+ $this.attr('data-height', slideshow_height);
71
+
72
+ var resizing = jQuery('<div class="resize_overlay" />');
73
+ $this.parent().parent().children('.col-1').children('.thumb').append(resizing);
74
+
75
+ var data = {
76
+ action: 'resize_image_slide',
77
+ slider_id: window.parent.metaslider_slider_id,
78
+ slide_id: $this.attr('data-slide_id'),
79
+ _wpnonce: metaslider.resize_nonce
80
+ };
81
+
82
+ jQuery.ajax({
83
+ type: "POST",
84
+ data : data,
85
+ cache: false,
86
+ url: metaslider.ajaxurl,
87
+ success: function(data) {
88
+ if (console && console.log) {
89
+ console.log(data);
90
+ }
91
+
92
+ resizing.remove();
93
+ }
94
+ });
95
+ }
96
+ });
97
+ });
98
+
99
// show the confirm dialogue
100
jQuery(".confirm").live('click', function() {
101
return confirm(metaslider.confirm);
195
cache: false,
196
url: url,
197
success: function(data) {
198
+ var response = jQuery(data);
199
+ jQuery(".metaslider .left table").trigger('resizeSlides');
200
+
201
+ jQuery("button[data-thumb]", response).each(function() {
202
+ var $this = jQuery(this);
203
+ var editor_id = $this.attr('data-editor_id');
204
+ jQuery("button[data-editor_id=" + editor_id + "]")
205
+ .attr('data-thumb', $this.attr('data-thumb'))
206
+ .attr('data-width', $this.attr('data-width'))
207
+ .attr('data-height', $this.attr('data-height'));
208
+ });
209
+
210
fixIE10PlaceholderText();
211
212
if (button.id === 'preview') {
assets/metaslider/admin.less CHANGED
@@ -119,7 +119,13 @@
119
.metaslider {
120
121
122
-
123
.section {
124
cursor: pointer;
125
}
119
.metaslider {
120
121
122
+ .warning {
123
+ background-color: #ffebe8;
124
+ border: 1px solid #c00;
125
+ margin-bottom: 5px;
126
+ border-radius: 3px;
127
+ padding: 5px 10px;
128
+ }
129
.section {
130
cursor: pointer;
131
}
assets/metaslider/image/image.js CHANGED
@@ -24,28 +24,39 @@
24
// When an image is selected, run a callback.
25
file_frame.on('insert', function() {
26
var selection = file_frame.state().get('selection');
27
28
- selection.map( function( attachment ) {
29
-
30
attachment = attachment.toJSON();
31
32
- var data = {
33
- action: 'create_image_slide',
34
- slide_id: attachment.id,
35
- slider_id: window.parent.metaslider_slider_id
36
- };
37
38
- jQuery.post(ajaxurl, data, function(response) {
39
- jQuery(".metaslider .left table").append(response);
40
- });
41
});
42
});
43
44
file_frame.open();
45
46
// Remove the Media Library tab (media_upload_tabs filter is broken in 3.6)
47
- jQuery(".media-menu a:contains('Media Library')").remove();
48
});
49
});
50
51
}(jQuery));
24
// When an image is selected, run a callback.
25
file_frame.on('insert', function() {
26
var selection = file_frame.state().get('selection');
27
+ var slide_ids = [];
28
29
+ selection.map(function(attachment) {
30
attachment = attachment.toJSON();
31
+ slide_ids.push(attachment.id);
32
+ });
33
34
+ var data = {
35
+ action: 'create_image_slide',
36
+ slider_id: window.parent.metaslider_slider_id,
37
+ selection: slide_ids,
38
+ _wpnonce: metaslider_image.addslide_nonce
39
+ };
40
41
+ jQuery.post(metaslider.ajaxurl, data, function(response) {
42
+ jQuery(".metaslider .left table").append(response);
43
+ jQuery(".metaslider .left table").trigger('resizeSlides');
44
});
45
});
46
47
file_frame.open();
48
49
// Remove the Media Library tab (media_upload_tabs filter is broken in 3.6)
50
+ jQuery(".media-menu a:contains('Media Library')").remove();
51
+
52
+ if (!window.parent.metaslider_pro_active) {
53
+ jQuery(".media-menu a:contains('YouTube')").addClass('disabled');
54
+ jQuery(".media-menu a:contains('Vimeo')").addClass('disabled');
55
+ jQuery(".media-menu a:contains('Post Feed')").addClass('disabled');
56
+ jQuery(".media-menu a:contains('Layer Slide')").addClass('disabled');
57
+ }
58
});
59
+
60
});
61
62
}(jQuery));
assets/metaslider/public.css CHANGED
@@ -9,6 +9,12 @@
9
.metaslider {
10
position: relative;
11
}
12
13
.metaslider .caption {
14
padding: 5px 10px;
@@ -42,6 +48,7 @@
42
}
43
44
/** quick resets **/
45
#widgets .metaslider ul,
46
#widgets .metaslider ol,
47
#content .metaslider ul,
9
.metaslider {
10
position: relative;
11
}
12
+ .metaslider.nav-hidden .flexslider {
13
+ margin-bottom: 0;
14
+ }
15
+ .metaslider.nav-hidden.add-margin .flexslider {
16
+ margin-bottom: 40px;
17
+ }
18
19
.metaslider .caption {
20
padding: 5px 10px;
48
}
49
50
/** quick resets **/
51
+ .art-article .metaslider img,
52
#widgets .metaslider ul,
53
#widgets .metaslider ol,
54
#content .metaslider ul,
assets/metaslider/resizing.gif ADDED
Binary file
inc/metaslider.imagehelper.class.php CHANGED
@@ -10,6 +10,7 @@ class MetaSliderImageHelper {
10
private $id; // slide/attachment ID
11
private $url;
12
private $path; // path to attachment on server
13
14
/**
15
* Constructor
@@ -19,7 +20,7 @@ class MetaSliderImageHelper {
19
* @param integer $height - required height of image
20
* @param string $smart_crop
21
*/
22
- public function __construct($slide_id, $width, $height, $smart_crop) {
23
$upload_dir = wp_upload_dir();
24
25
$this->id = $slide_id;
@@ -28,6 +29,7 @@ class MetaSliderImageHelper {
28
$this->container_width = $width;
29
$this->container_height = $height;
30
$this->smart_crop = $smart_crop;
31
}
32
33
/**
@@ -182,11 +184,21 @@ class MetaSliderImageHelper {
182
183
$dest_file_name = $this->get_destination_file_name($dest_size);
184
185
- if (file_exists($dest_file_name)) {
186
$dest_url = str_replace(basename($this->url), basename($dest_file_name), $this->url);
187
- } else {
188
$dest_url = $this->resize_image($orig_size, $dest_size, $dest_file_name);
189
}
190
191
$dest_url = apply_filters('metaslider_resized_image_url', $dest_url, $this->url);
192
@@ -204,21 +216,20 @@ class MetaSliderImageHelper {
204
$size = array();
205
206
// try and get the image size from metadata
207
- if ($image_attributes = wp_get_attachment_image_src($this->id, 'full')) {
208
- $size['width'] = $image_attributes[1];
209
- $size['height'] = $image_attributes[2];
210
211
- if ($size['width'] > 0 && $size['height'] > 0) {
212
- return $size;
213
- }
214
}
215
216
- // get the size from the image itself
217
- $image = wp_get_image_editor($this->path);
218
-
219
- if (!is_wp_error($image)) {
220
- $size = $image->get_size();
221
- return $size;
222
}
223
224
return false;
10
private $id; // slide/attachment ID
11
private $url;
12
private $path; // path to attachment on server
13
+ private $use_image_editor;
14
15
/**
16
* Constructor
20
* @param integer $height - required height of image
21
* @param string $smart_crop
22
*/
23
+ public function __construct($slide_id, $width, $height, $smart_crop, $use_image_editor = true) {
24
$upload_dir = wp_upload_dir();
25
26
$this->id = $slide_id;
29
$this->container_width = $width;
30
$this->container_height = $height;
31
$this->smart_crop = $smart_crop;
32
+ $this->use_image_editor = $use_image_editor;
33
}
34
35
/**
184
185
$dest_file_name = $this->get_destination_file_name($dest_size);
186
187
+ if (file_exists($dest_file_name))
188
+ {
189
+ // good. no need for resize, just return the URL
190
$dest_url = str_replace(basename($this->url), basename($dest_file_name), $this->url);
191
+ }
192
+ else if ($this->use_image_editor)
193
+ {
194
+ // resize, assuming we're allowed to use the image editor
195
$dest_url = $this->resize_image($orig_size, $dest_size, $dest_file_name);
196
}
197
+ else
198
+ {
199
+ // fall back to the full URL
200
+ $dest_url = $this->url;
201
+ }
202
203
$dest_url = apply_filters('metaslider_resized_image_url', $dest_url, $this->url);
204
216
$size = array();
217
218
// try and get the image size from metadata
219
+ $meta = wp_get_attachment_metadata($this->id);
220
221
+ if (isset($meta['width'], $meta['height'])) {
222
+ return $meta;
223
}
224
225
+ if ($this->use_image_editor) {
226
+ // get the size from the image itself
227
+ $image = wp_get_image_editor($this->path);
228
+
229
+ if (!is_wp_error($image)) {
230
+ $size = $image->get_size();
231
+ return $size;
232
+ }
233
}
234
235
return false;
inc/metaslider.systemcheck.class.php CHANGED
@@ -87,7 +87,7 @@ class MetaSliderSystemCheck {
87
return;
88
}
89
90
- if (is_plugin_active('role-scoper/role-scoper.php')) {
91
92
$access_types = get_option('scoper_disabled_access_types');
93
87
return;
88
}
89
90
+ if (function_exists('is_plugin_active') && is_plugin_active('role-scoper/role-scoper.php')) {
91
92
$access_types = get_option('scoper_disabled_access_types');
93
inc/slide/metaslide.class.php CHANGED
@@ -75,6 +75,55 @@ class MetaSlide {
75
$term = get_term_by('name', $this->slider->ID, 'ml-slider');
76
// tag this slide to the taxonomy term
77
wp_set_post_terms($this->slide->ID, $term->term_id, 'ml-slider', true);
78
}
79
80
/**
75
$term = get_term_by('name', $this->slider->ID, 'ml-slider');
76
// tag this slide to the taxonomy term
77
wp_set_post_terms($this->slide->ID, $term->term_id, 'ml-slider', true);
78
+
79
+ $this->update_menu_order();
80
+ }
81
+
82
+ /**
83
+ * Ensure slides are added to the slideshow in the correct order.
84
+ *
85
+ * Find the highest slide menu_order in the slideshow, increment, then
86
+ * update the new slides menu_order.
87
+ */
88
+ public function update_menu_order() {
89
+ $menu_order = 0;
90
+
91
+ // get the slide with the highest menu_order so far
92
+ $args = array(
93
+ 'force_no_custom_order' => true,
94
+ 'orderby' => 'menu_order',
95
+ 'order' => 'DESC',
96
+ 'post_type' => 'attachment',
97
+ 'post_status' => 'inherit',
98
+ 'lang' => '', // polylang, ingore language filter
99
+ 'suppress_filters' => 1, // wpml, ignore language filter
100
+ 'posts_per_page' => 1,
101
+ 'tax_query' => array(
102
+ array(
103
+ 'taxonomy' => 'ml-slider',
104
+ 'field' => 'slug',
105
+ 'terms' => $this->slider->ID
106
+ )
107
+ )
108
+ );
109
+
110
+ $query = new WP_Query($args);
111
+
112
+ while ($query->have_posts()) {
113
+ $query->next_post();
114
+ $menu_order = $query->post->menu_order;
115
+ }
116
+
117
+ wp_reset_query();
118
+
119
+ // increment
120
+ $menu_order = $menu_order + 1;
121
+
122
+ // update the slide
123
+ wp_update_post(array(
124
+ 'ID' => $this->slide->ID,
125
+ 'menu_order' => $menu_order
126
+ ));
127
}
128
129
/**
inc/slide/metaslide.image.class.php CHANGED
@@ -11,20 +11,73 @@ class MetaImageSlide extends MetaSlide {
11
add_filter('metaslider_get_image_slide', array($this, 'get_slide'), 10, 2);
12
add_action('metaslider_save_image_slide', array($this, 'save_slide'), 5, 3);
13
add_action('wp_ajax_create_image_slide', array($this, 'ajax_create_slide'));
14
}
15
16
/**
17
* Create a new slide and echo the admin HTML
18
*/
19
public function ajax_create_slide() {
20
- $slide_id = intval($_POST['slide_id']);
21
$slider_id = intval($_POST['slider_id']);
22
23
$this->set_slide($slide_id);
24
$this->set_slider($slider_id);
25
- $this->tag_slide_to_slider();
26
-
27
- $this->add_or_update_or_delete_meta($slide_id, 'type', 'image');
28
29
$settings = get_post_meta($slider_id, 'ml-slider_settings', true);
30
@@ -33,12 +86,14 @@ class MetaImageSlide extends MetaSlide {
33
$slide_id,
34
$settings['width'],
35
$settings['height'],
36
- isset($settings['smartCrop']) ? $settings['smartCrop'] : 'false'
37
);
38
39
$url = $imageHelper->get_image_url();
40
41
- echo $this->get_admin_slide();
42
die();
43
}
44
@@ -49,12 +104,15 @@ class MetaImageSlide extends MetaSlide {
49
*/
50
protected function get_admin_slide() {
51
// get some slide settings
52
- $thumb = $this->get_thumb();
53
- $full = wp_get_attachment_image_src($this->slide->ID, 'full');
54
- $filename = basename($full[0]);
55
- $url = get_post_meta($this->slide->ID, 'ml-slider_url', true);
56
- $target = get_post_meta($this->slide->ID, 'ml-slider_new_window', true) ? 'checked=checked' : '';
57
- $caption = htmlentities($this->slide->post_excerpt, ENT_QUOTES, 'UTF-8');
58
59
// localisation
60
$str_caption = __("Caption", 'metaslider');
@@ -62,7 +120,7 @@ class MetaImageSlide extends MetaSlide {
62
$str_url = __("URL", 'metaslider');
63
64
// slide row HTML
65
- $row = "<tr class='slide flex responsive nivo coin'>";
66
$row .= " <td class='col-1'>";
67
$row .= " <div class='thumb' style='background-image: url({$thumb})'>";
68
$row .= " <a class='delete-slide confirm' href='?page=metaslider&id={$this->slider->ID}&deleteSlide={$this->slide->ID}'>x</a>";
@@ -70,6 +128,11 @@ class MetaImageSlide extends MetaSlide {
70
$row .= " </div>";
71
$row .= " </td>";
72
$row .= " <td class='col-2'>";
73
$row .= " <textarea name='attachment[{$this->slide->ID}][post_excerpt]' placeholder='{$str_caption}'>{$caption}</textarea>";
74
$row .= " <input class='url' type='text' name='attachment[{$this->slide->ID}][url]' placeholder='{$str_url}' value='{$url}' />";
75
$row .= " <div class='new_window'>";
@@ -77,12 +140,34 @@ class MetaImageSlide extends MetaSlide {
77
$row .= " </div>";
78
$row .= " <input type='hidden' name='attachment[{$this->slide->ID}][type]' value='image' />";
79
$row .= " <input type='hidden' class='menu_order' name='attachment[{$this->slide->ID}][menu_order]' value='{$this->slide->menu_order}' />";
80
$row .= " </td>";
81
$row .= "</tr>";
82
83
return $row;
84
}
85
86
/**
87
* Returns the HTML for the public slide
88
*
@@ -90,11 +175,13 @@ class MetaImageSlide extends MetaSlide {
90
*/
91
protected function get_public_slide() {
92
// get the image url (and handle cropping)
93
$imageHelper = new MetaSliderImageHelper(
94
$this->slide->ID,
95
$this->settings['width'],
96
$this->settings['height'],
97
- isset($this->settings['smartCrop']) ? $this->settings['smartCrop'] : 'false'
98
);
99
100
$thumb = $imageHelper->get_image_url();
@@ -102,10 +189,13 @@ class MetaImageSlide extends MetaSlide {
102
// store the slide details
103
$slide = array(
104
'id' => $this->slide->ID,
105
- 'thumb' => $thumb,
106
'url' => __(get_post_meta($this->slide->ID, 'ml-slider_url', true)),
107
- 'alt' => __(get_post_meta($this->slide->ID, '_wp_attachment_image_alt', true)),
108
'target' => get_post_meta($this->slide->ID, 'ml-slider_new_window', true) ? '_blank' : '_self',
109
'caption' => __(html_entity_decode($this->slide->post_excerpt, ENT_NOQUOTES, 'UTF-8')),
110
'caption_raw' => __($this->slide->post_excerpt),
111
'class' => "slider-{$this->slider->ID} slide-{$this->slide->ID}",
@@ -156,27 +246,52 @@ class MetaImageSlide extends MetaSlide {
156
return $html;
157
}
158
159
/**
160
* Generate nivo slider markup
161
*
162
* @return string slide html
163
*/
164
private function get_nivo_slider_markup($slide) {
165
- $attributes = array(
166
- 'src' => $slide['thumb'],
167
- 'height' => $this->settings['height'],
168
- 'width' => $this->settings['width'],
169
'title' => htmlentities($slide['caption_raw'], ENT_QUOTES, 'UTF-8'),
170
'data-thumb' => $slide['data-thumb'],
171
'alt' => $slide['alt'],
172
'rel' => $slide['rel'],
173
'class' => $slide['class']
174
- );
175
176
$html = $this->build_image_tag($attributes);
177
178
- if (strlen($slide['url'])) {
179
- $html = '<a href="' . $slide['url'] . '" target="' . $slide['target'] . '">' . $html . '</a>';
180
}
181
182
return apply_filters('metaslider_image_nivo_slider_markup', $html, $slide, $this->settings);
@@ -188,21 +303,27 @@ class MetaImageSlide extends MetaSlide {
188
* @return string slide html
189
*/
190
private function get_flex_slider_markup($slide) {
191
- $attributes = array(
192
- 'src' => $slide['thumb'],
193
- 'height' => $this->settings['height'],
194
- 'width' => $this->settings['width'],
195
'alt' => $slide['alt'],
196
'rel' => $slide['rel'],
197
'class' => $slide['class']
198
- );
199
200
$html = $this->build_image_tag($attributes);
201
202
- if (strlen($slide['url'])) {
203
- $html = '<a href="' . $slide['url'] . '" target="' . $slide['target'] . '">' . $html . '</a>';
204
}
205
206
if (strlen($slide['caption'])) {
207
$html .= '<div class="caption-wrap"><div class="caption">' . $slide['caption'] . '</div></div>';
208
}
@@ -220,16 +341,14 @@ class MetaImageSlide extends MetaSlide {
220
* @return string slide html
221
*/
222
private function get_coin_slider_markup($slide) {
223
- $url = strlen($slide['url']) ? $slide['url'] : 'javascript:void(0)'; // coinslider always wants a URL
224
-
225
- $attributes = array(
226
- 'src' => $slide['thumb'],
227
- 'height' => $this->settings['height'],
228
- 'width' => $this->settings['width'],
229
'alt' => $slide['alt'],
230
'rel' => $slide['rel'],
231
'class' => $slide['class']
232
- );
233
234
$html = $this->build_image_tag($attributes);
235
@@ -237,7 +356,11 @@ class MetaImageSlide extends MetaSlide {
237
$html .= "<span>{$slide['caption']}</span>";
238
}
239
240
- $html = '<a href="' . $url . '" style="display: none;">"' . $html . '</a>';
241
242
return apply_filters('metaslider_image_coin_slider_markup', $html, $slide, $this->settings);
243
}
@@ -248,14 +371,14 @@ class MetaImageSlide extends MetaSlide {
248
* @return string slide html
249
*/
250
private function get_responsive_slides_markup($slide) {
251
- $attributes = array(
252
- 'src' => $slide['thumb'],
253
- 'height' => $this->settings['height'],
254
- 'width' => $this->settings['width'],
255
'alt' => $slide['alt'],
256
'rel' => $slide['rel'],
257
'class' => $slide['class']
258
- );
259
260
$html = $this->build_image_tag($attributes);
261
@@ -263,8 +386,13 @@ class MetaImageSlide extends MetaSlide {
263
$html .= '<div class="caption-wrap"><div class="caption">' . $slide['caption'] . '</div></div>';
264
}
265
266
- if (strlen($slide['url'])) {
267
- $html = '<a href="' . $slide['url'] . '" target="' . $slide['target'] . '">'. $html . '</a>';
268
}
269
270
return apply_filters('metaslider_image_responsive_slider_markup', $html, $slide, $this->settings);
11
add_filter('metaslider_get_image_slide', array($this, 'get_slide'), 10, 2);
12
add_action('metaslider_save_image_slide', array($this, 'save_slide'), 5, 3);
13
add_action('wp_ajax_create_image_slide', array($this, 'ajax_create_slide'));
14
+ add_action('wp_ajax_resize_image_slide', array($this, 'ajax_resize_slide'));
15
}
16
17
/**
18
* Create a new slide and echo the admin HTML
19
*/
20
public function ajax_create_slide() {
21
+ // security check
22
+ if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'metaslider_addslide')) {
23
+ echo "<tr><td colspan='2'>" . __("Security check failed. Refresh page and try again.", 'metaslider') . "</td></tr>";
24
+ die();
25
+ }
26
+
27
+ $slider_id = intval($_POST['slider_id']);
28
+ $selection = $_POST['selection'];
29
+
30
+ if (is_array($selection) && count($selection) && $slider_id > 0) {
31
+ foreach ($selection as $slide_id) {
32
+ $this->set_slide($slide_id);
33
+ $this->set_slider($slider_id);
34
+
35
+ if ($this->slide_exists_in_slideshow($slider_id, $slide_id)) {
36
+ echo "<tr><td colspan='2'>ID: {$slide_id} \"" . get_the_title($slide_id) . "\" - " . __("Failed to add slide. Slide already exists in slideshow.", 'metaslider') . "</td></tr>";
37
+ } else if (!$this->slide_is_unassigned_or_image_slide($slider_id, $slide_id)) {
38
+ echo "<tr><td colspan='2'>ID: {$slide_id} \"" . get_the_title($slide_id) . "\" - " . __("Failed to add slide. Slide is not of type 'image'.", 'metaslider') . "</td></tr>";
39
+ }else {
40
+ $this->tag_slide_to_slider();
41
+ $this->add_or_update_or_delete_meta($slide_id, 'type', 'image');
42
+
43
+ // override the width and height to kick off the AJAX image resizing on save
44
+ $this->settings['width'] = 0;
45
+ $this->settings['height'] = 0;
46
+
47
+ echo $this->get_admin_slide();
48
+ }
49
+ }
50
+ }
51
+
52
+ die();
53
+ }
54
+
55
+ /**
56
+ *
57
+ */
58
+ public function slide_exists_in_slideshow($slider_id, $slide_id) {
59
+ return has_term("{$slider_id}", 'ml-slider', $slide_id);
60
+ }
61
+
62
+ /**
63
+ *
64
+ */
65
+ public function slide_is_unassigned_or_image_slide($slider_id, $slide_id) {
66
+ $type = get_post_meta($slide_id, 'ml-slider_type', true);
67
+ return !strlen($type) || $type == 'image';
68
+ }
69
+
70
+ /**
71
+ * Create a new slide and echo the admin HTML
72
+ */
73
+ public function ajax_resize_slide() {
74
+ check_admin_referer('metaslider_resize');
75
+
76
$slider_id = intval($_POST['slider_id']);
77
+ $slide_id = intval($_POST['slide_id']);
78
79
$this->set_slide($slide_id);
80
$this->set_slider($slider_id);
81
82
$settings = get_post_meta($slider_id, 'ml-slider_settings', true);
83
86
$slide_id,
87
$settings['width'],
88
$settings['height'],
89
+ isset($settings['smartCrop']) ? $settings['smartCrop'] : 'false',
90
+ $this->use_wp_image_editor()
91
);
92
93
$url = $imageHelper->get_image_url();
94
95
+ echo $url . " (" . $settings['width'] . 'x' . $settings['height'] . ")";
96
+
97
die();
98
}
99
104
*/
105
protected function get_admin_slide() {
106
// get some slide settings
107
+ $imageHelper = new MetaSliderImageHelper($this->slide->ID, 150, 150, 'false', $this->use_wp_image_editor());
108
+ $thumb = $imageHelper->get_image_url();
109
+
110
+ $full = wp_get_attachment_image_src($this->slide->ID);
111
+ $filename = basename($full[0]);
112
+
113
+ $url = get_post_meta($this->slide->ID, 'ml-slider_url', true);
114
+ $target = get_post_meta($this->slide->ID, 'ml-slider_new_window', true) ? 'checked=checked' : '';
115
+ $caption = htmlentities($this->slide->post_excerpt, ENT_QUOTES, 'UTF-8');
116
117
// localisation
118
$str_caption = __("Caption", 'metaslider');
120
$str_url = __("URL", 'metaslider');
121
122
// slide row HTML
123
+ $row = "<tr class='slide image flex responsive nivo coin'>";
124
$row .= " <td class='col-1'>";
125
$row .= " <div class='thumb' style='background-image: url({$thumb})'>";
126
$row .= " <a class='delete-slide confirm' href='?page=metaslider&id={$this->slider->ID}&deleteSlide={$this->slide->ID}'>x</a>";
128
$row .= " </div>";
129
$row .= " </td>";
130
$row .= " <td class='col-2'>";
131
+
132
+ if (!$this->is_valid_image()) {
133
+ $row .= "<div class='warning'>" . __('Warning: Image data does not exist. Please re-upload the image.') . "</div>";
134
+ }
135
+
136
$row .= " <textarea name='attachment[{$this->slide->ID}][post_excerpt]' placeholder='{$str_caption}'>{$caption}</textarea>";
137
$row .= " <input class='url' type='text' name='attachment[{$this->slide->ID}][url]' placeholder='{$str_url}' value='{$url}' />";
138
$row .= " <div class='new_window'>";
140
$row .= " </div>";
141
$row .= " <input type='hidden' name='attachment[{$this->slide->ID}][type]' value='image' />";
142
$row .= " <input type='hidden' class='menu_order' name='attachment[{$this->slide->ID}][menu_order]' value='{$this->slide->menu_order}' />";
143
+ $row .= " <input type='hidden' name='resize_slide_id' data-slide_id='{$this->slide->ID}' data-width='{$this->settings['width']}' data-height='{$this->settings['height']}' />";
144
$row .= " </td>";
145
$row .= "</tr>";
146
147
return $row;
148
}
149
150
+ /**
151
+ * Check to see if metadata exists for this image. Assume the image is
152
+ * valid if metadata and a size exists for it (generated during initial
153
+ * upload to WordPress).
154
+ *
155
+ * @return bool, true if metadata and size exists.
156
+ */
157
+ public function is_valid_image() {
158
+ $meta = wp_get_attachment_metadata($this->slide->ID);
159
+ return isset($meta['width'], $meta['height']);
160
+ }
161
+
162
+ /**
163
+ * Disable/enable image editor
164
+ *
165
+ * @return bool
166
+ */
167
+ public function use_wp_image_editor() {
168
+ return apply_filters('metaslider_use_image_editor', $this->is_valid_image());
169
+ }
170
+
171
/**
172
* Returns the HTML for the public slide
173
*
175
*/
176
protected function get_public_slide() {
177
// get the image url (and handle cropping)
178
+ // disable wp_image_editor if metadata does not exist for the slide
179
$imageHelper = new MetaSliderImageHelper(
180
$this->slide->ID,
181
$this->settings['width'],
182
$this->settings['height'],
183
+ isset($this->settings['smartCrop']) ? $this->settings['smartCrop'] : 'false',
184
+ $this->use_wp_image_editor()
185
);
186
187
$thumb = $imageHelper->get_image_url();
189
// store the slide details
190
$slide = array(
191
'id' => $this->slide->ID,
192
'url' => __(get_post_meta($this->slide->ID, 'ml-slider_url', true)),
193
'target' => get_post_meta($this->slide->ID, 'ml-slider_new_window', true) ? '_blank' : '_self',
194
+ 'src' => $thumb,
195
+ 'thumb' => $thumb, // backwards compatibility with Vantage
196
+ 'width' => $this->settings['width'],
197
+ 'height' => $this->settings['height'],
198
+ 'alt' => __(get_post_meta($this->slide->ID, '_wp_attachment_image_alt', true)),
199
'caption' => __(html_entity_decode($this->slide->post_excerpt, ENT_NOQUOTES, 'UTF-8')),
200
'caption_raw' => __($this->slide->post_excerpt),
201
'class' => "slider-{$this->slider->ID} slide-{$this->slide->ID}",
246
return $html;
247
}
248
249
+ /**
250
+ * Build image HTML
251
+ *
252
+ * @param array $attributes
253
+ * @return string image HTML
254
+ */
255
+ private function build_anchor_tag($attributes, $content) {
256
+ $html = "<a";
257
+
258
+ foreach ($attributes as $att => $val) {
259
+ if (strlen($val)) {
260
+ $html .= " " . $att . '="' . $val . '"';
261
+ }
262
+ }
263
+
264
+ $html .= ">" . $content . "</a>";
265
+
266
+ return $html;
267
+ }
268
+
269
/**
270
* Generate nivo slider markup
271
*
272
* @return string slide html
273
*/
274
private function get_nivo_slider_markup($slide) {
275
+ $attributes = apply_filters('metaslider_nivo_slider_image_attributes', array(
276
+ 'src' => $slide['src'],
277
+ 'height' => $slide['height'],
278
+ 'width' => $slide['width'],
279
'title' => htmlentities($slide['caption_raw'], ENT_QUOTES, 'UTF-8'),
280
'data-thumb' => $slide['data-thumb'],
281
'alt' => $slide['alt'],
282
'rel' => $slide['rel'],
283
'class' => $slide['class']
284
+ ), $slide, $this->slider->ID);
285
286
$html = $this->build_image_tag($attributes);
287
288
+ $anchor_attributes = apply_filters('metaslider_nivo_slider_anchor_attributes', array(
289
+ 'href' => $slide['url'],
290
+ 'target' => $slide['target']
291
+ ), $slide, $this->slider->ID);
292
+
293
+ if (strlen($anchor_attributes['href'])) {
294
+ $html = $this->build_anchor_tag($anchor_attributes, $html);
295
}
296
297
return apply_filters('metaslider_image_nivo_slider_markup', $html, $slide, $this->settings);
303
* @return string slide html
304
*/
305
private function get_flex_slider_markup($slide) {
306
+ $attributes = apply_filters('metaslider_flex_slider_image_attributes', array(
307
+ 'src' => $slide['src'],
308
+ 'height' => $slide['height'],
309
+ 'width' => $slide['width'],
310
'alt' => $slide['alt'],
311
'rel' => $slide['rel'],
312
'class' => $slide['class']
313
+ ), $slide, $this->slider->ID);
314
315
$html = $this->build_image_tag($attributes);
316
317
+ $anchor_attributes = apply_filters('metaslider_flex_slider_anchor_attributes', array(
318
+ 'href' => $slide['url'],
319
+ 'target' => $slide['target']
320
+ ), $slide, $this->slider->ID);
321
+
322
+ if (strlen($anchor_attributes['href'])) {
323
+ $html = $this->build_anchor_tag($anchor_attributes, $html);
324
}
325
326
+ // add caption
327
if (strlen($slide['caption'])) {
328
$html .= '<div class="caption-wrap"><div class="caption">' . $slide['caption'] . '</div></div>';
329
}
341
* @return string slide html
342
*/
343
private function get_coin_slider_markup($slide) {
344
+ $attributes = apply_filters('metaslider_coin_slider_image_attributes', array(
345
+ 'src' => $slide['src'],
346
+ 'height' => $slide['height'],
347
+ 'width' => $slide['width'],
348
'alt' => $slide['alt'],
349
'rel' => $slide['rel'],
350
'class' => $slide['class']
351
+ ), $slide, $this->slider->ID);
352
353
$html = $this->build_image_tag($attributes);
354
356
$html .= "<span>{$slide['caption']}</span>";
357
}
358
359
+ $attributes = apply_filters('metaslider_coin_slider_anchor_attributes', array(
360
+ 'href' => strlen($slide['url']) ? $slide['url'] : 'javascript:void(0)'
361
+ ), $slide, $this->slider->ID);
362
+
363
+ $html = $this->build_anchor_tag($attributes, $html);
364
365
return apply_filters('metaslider_image_coin_slider_markup', $html, $slide, $this->settings);
366
}
371
* @return string slide html
372
*/
373
private function get_responsive_slides_markup($slide) {
374
+ $attributes = apply_filters('metaslider_responsive_slider_image_attributes', array(
375
+ 'src' => $slide['src'],
376
+ 'height' => $slide['height'],
377
+ 'width' => $slide['width'],
378
'alt' => $slide['alt'],
379
'rel' => $slide['rel'],
380
'class' => $slide['class']
381
+ ), $slide, $this->slider->ID);
382
383
$html = $this->build_image_tag($attributes);
384
386
$html .= '<div class="caption-wrap"><div class="caption">' . $slide['caption'] . '</div></div>';
387
}
388
389
+ $anchor_attributes = apply_filters('metaslider_nivo_slider_anchor_attributes', array(
390
+ 'href' => $slide['url'],
391
+ 'target' => $slide['target']
392
+ ), $slide, $this->slider->ID);
393
+
394
+ if (strlen($anchor_attributes['href'])) {
395
+ $html = $this->build_anchor_tag($anchor_attributes, $html);
396
}
397
398
return apply_filters('metaslider_image_responsive_slider_markup', $html, $slide, $this->settings);
inc/slider/metaslider.class.php CHANGED
@@ -15,9 +15,9 @@ class MetaSlider {
15
/**
16
* Constructor
17
*/
18
- public function __construct($id) {
19
$this->id = $id;
20
- $this->settings = $this->get_settings();
21
$this->identifier = 'metaslider_' . $this->id;
22
$this->save();
23
$this->populate_slides();
@@ -126,11 +126,14 @@ class MetaSlider {
126
if (!is_admin()) {
127
return;
128
}
129
// make changes to slider
130
if (isset($_POST['settings'])) {
131
$this->update_settings($_POST['settings']);
132
}
133
if (isset($_POST['title'])) {
134
$this->update_title($_POST['title']);
135
}
136
if (isset($_GET['deleteSlide'])) {
@@ -139,6 +142,7 @@ class MetaSlider {
139
140
// make changes to slides
141
if (isset($_POST['attachment'])) {
142
$this->update_slides($_POST['attachment']);
143
}
144
}
@@ -225,13 +229,19 @@ class MetaSlider {
225
// handle any custom classes
226
$class = apply_filters('metaslider_css_classes', $class, $this->id, $this->settings);
227
228
// carousels are always 100% wide
229
- if ($this->get_setting('carouselMode') != 'true') {
230
- $style = "max-width: {$this->get_setting('width')}px;";
231
- } else {
232
$style = "width: 100%;";
233
}
234
235
// center align the slideshow
236
if ($this->get_setting('center') != 'false') {
237
$style .= " margin: 0 auto;";
@@ -317,7 +327,7 @@ class MetaSlider {
317
if (is_array($value)) {
318
$pairs[] = "{$key}: function() {\n "
319
. implode("\n ", $value)
320
- . "\n }";
321
} else {
322
$pairs[] = "{$key}:{$value}";
323
}
@@ -347,7 +357,7 @@ class MetaSlider {
347
}
348
349
/**
350
- *
351
*/
352
public function get_slider_css($css, $settings, $slider_id) {
353
if ($slider_id != $this->id) {
@@ -365,7 +375,6 @@ class MetaSlider {
365
return $css . $imports;
366
}
367
368
-
369
/**
370
* Include slider assets, JS and CSS paths are specified by child classes.
371
*/
@@ -414,7 +423,9 @@ class MetaSlider {
414
415
/**
416
* Delete a slide. This doesn't actually remove the slide from WordPress, simply untags
417
- * it from the slide taxonomy
418
*/
419
private function delete_slide($slide_id) {
420
// Get the existing terms and only keep the ones we don't want removed
@@ -433,6 +444,8 @@ class MetaSlider {
433
434
/**
435
* Loop over each slide and call the save action on each
436
*/
437
private function update_slides($data) {
438
foreach ($data as $slide_id => $fields) {
15
/**
16
* Constructor
17
*/
18
+ public function __construct($id, $shortcode_settings) {
19
$this->id = $id;
20
+ $this->settings = array_merge($shortcode_settings, $this->get_settings());
21
$this->identifier = 'metaslider_' . $this->id;
22
$this->save();
23
$this->populate_slides();
126
if (!is_admin()) {
127
return;
128
}
129
+
130
// make changes to slider
131
if (isset($_POST['settings'])) {
132
+ check_admin_referer('metaslider_save_' . $this->id);
133
$this->update_settings($_POST['settings']);
134
}
135
if (isset($_POST['title'])) {
136
+ check_admin_referer('metaslider_save_' . $this->id);
137
$this->update_title($_POST['title']);
138
}
139
if (isset($_GET['deleteSlide'])) {
142
143
// make changes to slides
144
if (isset($_POST['attachment'])) {
145
+ check_admin_referer('metaslider_save_' . $this->id);
146
$this->update_slides($_POST['attachment']);
147
}
148
}
229
// handle any custom classes
230
$class = apply_filters('metaslider_css_classes', $class, $this->id, $this->settings);
231
232
+ // default
233
+ $style = "max-width: {$this->get_setting('width')}px;";
234
+
235
// carousels are always 100% wide
236
+ if ($this->get_setting('carouselMode') == 'true') {
237
$style = "width: 100%;";
238
}
239
240
+ // percentWidth showcode parameter takes precedence
241
+ if ($this->get_setting('percentwidth') != 'false' && $this->get_setting('percentwidth') > 0) {
242
+ $style = "width: {$this->get_setting('percentwidth')}%;";
243
+ }
244
+
245
// center align the slideshow
246
if ($this->get_setting('center') != 'false') {
247
$style .= " margin: 0 auto;";
327
if (is_array($value)) {
328
$pairs[] = "{$key}: function() {\n "
329
. implode("\n ", $value)
330
+ . "\n }";
331
} else {
332
$pairs[] = "{$key}:{$value}";
333
}
357
}
358
359
/**
360
+ * Generate the @import rules for the inline style tag.
361
*/
362
public function get_slider_css($css, $settings, $slider_id) {
363
if ($slider_id != $this->id) {
375
return $css . $imports;
376
}
377
378
/**
379
* Include slider assets, JS and CSS paths are specified by child classes.
380
*/
423
424
/**
425
* Delete a slide. This doesn't actually remove the slide from WordPress, simply untags
426
+ * it from the slide taxonomy.
427
+ *
428
+ * @param int $slide_id
429
*/
430
private function delete_slide($slide_id) {
431
// Get the existing terms and only keep the ones we don't want removed
444
445
/**
446
* Loop over each slide and call the save action on each
447
+ *
448
+ * @param array $data - posted form data.
449
*/
450
private function update_slides($data) {
451
foreach ($data as $slide_id => $fields) {
inc/slider/metaslider.flex.class.php CHANGED
@@ -14,12 +14,13 @@ class MetaFlexSlider extends MetaSlider {
14
*
15
* @param integer $id slideshow ID
16
*/
17
- public function __construct($id) {
18
- parent::__construct($id);
19
20
add_filter('metaslider_flex_slider_parameters', array($this, 'enable_carousel_mode'), 10, 2);
21
add_filter('metaslider_flex_slider_parameters', array($this, 'enable_easing'), 10, 2);
22
add_filter('metaslider_css', array($this, 'get_carousel_css'), 11, 3);
23
24
$this->carousel_item_margin = apply_filters('metaslider_carousel_margin', $this->carousel_item_margin, $id);
25
}
@@ -50,8 +51,10 @@ class MetaFlexSlider extends MetaSlider {
50
return $options;
51
}
52
53
/**
54
- * Adjust the slider parameters so they're comparible with the carousel mode
55
*
56
* @param array $options
57
* @param integer $slider_id
@@ -63,11 +66,30 @@ class MetaFlexSlider extends MetaSlider {
63
}
64
65
// we don't want this filter hanging around if there's more than one slideshow on the page
66
- remove_filter('metaslider_flex_slider_parameters', 'enable_easing');
67
68
return $options;
69
}
70
71
/**
72
* Return css to ensure our slides are rendered correctly in the carousel
73
*
@@ -81,6 +103,9 @@ class MetaFlexSlider extends MetaSlider {
81
$css .= "\n #metaslider_{$slider_id}.flexslider li {margin-right: {$this->carousel_item_margin}px;}";
82
}
83
84
return $css;
85
}
86
14
*
15
* @param integer $id slideshow ID
16
*/
17
+ public function __construct($id, $shortcode_settings) {
18
+ parent::__construct($id, $shortcode_settings);
19
20
add_filter('metaslider_flex_slider_parameters', array($this, 'enable_carousel_mode'), 10, 2);
21
add_filter('metaslider_flex_slider_parameters', array($this, 'enable_easing'), 10, 2);
22
add_filter('metaslider_css', array($this, 'get_carousel_css'), 11, 3);
23
+ add_filter('metaslider_css_classes', array($this, 'remove_bottom_margin'), 11, 3);
24
25
$this->carousel_item_margin = apply_filters('metaslider_carousel_margin', $this->carousel_item_margin, $id);
26
}
51
return $options;
52
}
53
54
+
55
+
56
/**
57
+ * Ensure CSS transitions are disabled when easing is enabled.
58
*
59
* @param array $options
60
* @param integer $slider_id
66
}
67
68
// we don't want this filter hanging around if there's more than one slideshow on the page
69
+ remove_filter('metaslider_flex_slider_parameters', array($this, 'enable_easing'), 10, 2);
70
71
return $options;
72
}
73
74
+ /**
75
+ * Add a 'nav-hidden' class to slideshows where the navigation is hidden.
76
+ *
77
+ * @param string $css
78
+ * @param array $settings
79
+ * @param integer $slider_id
80
+ * @return string $css
81
+ */
82
+ public function remove_bottom_margin($class, $id, $settings) {
83
+ if (isset($settings["navigation"]) && $settings['navigation'] == 'false') {
84
+ return $class .= " nav-hidden";
85
+ }
86
+
87
+ // we don't want this filter hanging around if there's more than one slideshow on the page
88
+ remove_filter('metaslider_css_classes', array($this, 'remove_bottom_margin'), 11, 3);
89
+
90
+ return $class;
91
+ }
92
+
93
/**
94
* Return css to ensure our slides are rendered correctly in the carousel
95
*
103
$css .= "\n #metaslider_{$slider_id}.flexslider li {margin-right: {$this->carousel_item_margin}px;}";
104
}
105
106
+ // we don't want this filter hanging around if there's more than one slideshow on the page
107
+ remove_filter('metaslider_css', array($this, 'get_carousel_css'), 11, 3);
108
+
109
return $css;
110
}
111
inc/slider/metaslider.nivo.class.php CHANGED
@@ -11,8 +11,8 @@ class MetaNivoSlider extends MetaSlider {
11
/**
12
* Constructor
13
*/
14
- public function __construct($id) {
15
- parent::__construct($id);
16
17
add_filter('metaslider_nivo_slider_parameters', array($this, 'set_autoplay_parameter'), 10, 3);
18
11
/**
12
* Constructor
13
*/
14
+ public function __construct($id, $shortcode_settings) {
15
+ parent::__construct($id, $shortcode_settings);
16
17
add_filter('metaslider_nivo_slider_parameters', array($this, 'set_autoplay_parameter'), 10, 3);
18
languages/metaslider-de_DE.mo ADDED
Binary file
languages/metaslider-de_DE.po ADDED
@@ -0,0 +1,543 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: metaslider\n"
4
+ "POT-Creation-Date: 2013-11-12 14:42-0000\n"
5
+ "PO-Revision-Date: 2013-11-24 11:16+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+ "X-Poedit-SearchPath-1: ..\n"
16
+
17
+ #: ../ml-slider.php:99
18
+ msgid "Go Pro"
19
+ msgstr "Go Pro"
20
+
21
+ #: ../ml-slider.php:153
22
+ msgid "Image"
23
+ msgstr "Bild"
24
+
25
+ #: ../ml-slider.php:154
26
+ msgid "Add to slider"
27
+ msgstr "Hinzufügen zum Slider"
28
+
29
+ #: ../ml-slider.php:174
30
+ msgid "Post Feed"
31
+ msgstr "Beitrag Feed"
32
+
33
+ #: ../ml-slider.php:175
34
+ msgid "Vimeo"
35
+ msgstr "Vimeo"
36
+
37
+ #: ../ml-slider.php:176
38
+ msgid "YouTube"
39
+ msgstr "YouTube"
40
+
41
+ #: ../ml-slider.php:177
42
+ msgid "Layer Slide"
43
+ msgstr "Layer Slide"
44
+
45
+ #: ../ml-slider.php:232 ../inc/slide/metaslide.image.class.php:120
46
+ msgid "URL"
47
+ msgstr "URL"
48
+
49
+ #: ../ml-slider.php:233 ../inc/slide/metaslide.image.class.php:118
50
+ msgid "Caption"
51
+ msgstr "Beschriftung"
52
+
53
+ #: ../ml-slider.php:234 ../inc/slide/metaslide.image.class.php:119
54
+ msgid "New Window"
55
+ msgstr "Neues Fenster"
56
+
57
+ #: ../ml-slider.php:235
58
+ msgid "Are you sure?"
59
+ msgstr "Sind Sie sicher?"
60
+
61
+ #: ../ml-slider.php:239
62
+ msgid ""
63
+ "Caution: This setting is for advanced developers only. If you're unsure, "
64
+ "leave it checked."
65
+ msgstr ""
66
+ "Achtung: Diese Einstellung ist nur für fortgeschrittene Entwickler. Wenn Sie "
67
+ "unsicher sind, lassen Sie es sein."
68
+
69
+ #: ../ml-slider.php:275
70
+ msgid "Upgrade to Pro $19"
71
+ msgstr "Upgrade auf Pro $19"
72
+
73
+ #: ../ml-slider.php:291
74
+ msgid "Documentation"
75
+ msgstr "Dokumentation"
76
+
77
+ #: ../ml-slider.php:425
78
+ msgid "New Slider"
79
+ msgstr "Neuer Slider"
80
+
81
+ #: ../ml-slider.php:526
82
+ msgid "Version"
83
+ msgstr "Version"
84
+
85
+ #: ../ml-slider.php:527
86
+ msgid "Responsive"
87
+ msgstr "Responsive"
88
+
89
+ #: ../ml-slider.php:528 ../ml-slider.php:532
90
+ msgid "Yes"
91
+ msgstr "Ja"
92
+
93
+ #: ../ml-slider.php:528 ../ml-slider.php:532
94
+ msgid "No"
95
+ msgstr "Nein"
96
+
97
+ #: ../ml-slider.php:530 ../ml-slider.php:679
98
+ msgid "Size"
99
+ msgstr "Größe"
100
+
101
+ #: ../ml-slider.php:530
102
+ msgid "kb"
103
+ msgstr "kb"
104
+
105
+ #: ../ml-slider.php:531
106
+ msgid "Mobile Friendly"
107
+ msgstr "Handy Freundlich"
108
+
109
+ #: ../ml-slider.php:565
110
+ msgid "New slideshow created. Click 'Add Slide' to get started!"
111
+ msgstr "Neue Diashow erstellt. Klicken Sie 'Slides hinzufügen' um loszulegen!"
112
+
113
+ #: ../ml-slider.php:582
114
+ msgid "or"
115
+ msgstr "oder"
116
+
117
+ #: ../ml-slider.php:583
118
+ msgid "Add New Slideshow"
119
+ msgstr "Neue Diashow hinzufügen"
120
+
121
+ #: ../ml-slider.php:599
122
+ msgid "Create your first slideshow"
123
+ msgstr "Erstellen Sie Ihre erste Diashow"
124
+
125
+ #: ../ml-slider.php:616
126
+ msgid "Slides"
127
+ msgstr "Slides"
128
+
129
+ #: ../ml-slider.php:619 ../ml-slider.php:620
130
+ msgid "Add Slide"
131
+ msgstr "Slides hinzufügen"
132
+
133
+ #: ../ml-slider.php:639
134
+ msgid "Settings"
135
+ msgstr "Einstellungen"
136
+
137
+ #: ../ml-slider.php:640
138
+ msgid "Save"
139
+ msgstr "Speichern"
140
+
141
+ #: ../ml-slider.php:641
142
+ msgid "Save & Preview"
143
+ msgstr "Speichern & Vorschau"
144
+
145
+ #: ../ml-slider.php:669
146
+ msgid "Slideshow title"
147
+ msgstr "Diashow Titel"
148
+
149
+ #: ../ml-slider.php:670
150
+ msgid "Title"
151
+ msgstr "Titel"
152
+
153
+ #: ../ml-slider.php:678
154
+ msgid "Set the initial size for the slides (width x height)"
155
+ msgstr "Stellen Sie die Anfangsgröße für die Slider (Breite x Höhe)"
156
+
157
+ #: ../ml-slider.php:679
158
+ msgid "px"
159
+ msgstr "px"
160
+
161
+ #: ../ml-slider.php:682 ../ml-slider.php:683
162
+ msgid "Width"
163
+ msgstr "Breite"
164
+
165
+ #: ../ml-slider.php:684 ../ml-slider.php:685
166
+ msgid "Height"
167
+ msgstr "Höhe"
168
+
169
+ #: ../ml-slider.php:689
170
+ msgid "Slide transition effect"
171
+ msgstr "Diashow Übergangseffekt"
172
+
173
+ #: ../ml-slider.php:690
174
+ msgid "Effect"
175
+ msgstr "Effekt"
176
+
177
+ #: ../ml-slider.php:694 ../ml-slider.php:804
178
+ msgid "Random"
179
+ msgstr "Zufällig"
180
+
181
+ #: ../ml-slider.php:695
182
+ msgid "Swirl"
183
+ msgstr "Wirbel"
184
+
185
+ #: ../ml-slider.php:696
186
+ msgid "Rain"
187
+ msgstr "Regen"
188
+
189
+ #: ../ml-slider.php:697
190
+ msgid "Straight"
191
+ msgstr "Gerade"
192
+
193
+ #: ../ml-slider.php:698
194
+ msgid "Slide Down"
195
+ msgstr "Gleitent nach unten schieben"
196
+
197
+ #: ../ml-slider.php:699
198
+ msgid "Slice Up"
199
+ msgstr "Scheiben nach oben"
200
+
201
+ #: ../ml-slider.php:700
202
+ msgid "Slide Up Left"
203
+ msgstr "Gleitent nach Links schieben"
204
+
205
+ #: ../ml-slider.php:701
206
+ msgid "Slice Up Down"
207
+ msgstr "Scheiben von oben nach unten"
208
+
209
+ #: ../ml-slider.php:702
210
+ msgid "Slide Up Down Left"
211
+ msgstr "Gleitent von unten nach links hinauf"
212
+
213
+ #: ../ml-slider.php:703
214
+ msgid "Fold"
215
+ msgstr "in Falten legen"
216
+
217
+ #: ../ml-slider.php:704
218
+ msgid "Fade"
219
+ msgstr "Verblassen"
220
+
221
+ #: ../ml-slider.php:705
222
+ msgid "Slide In Right"
223
+ msgstr "Gleitent nach Rechts schieben"
224
+
225
+ #: ../ml-slider.php:706
226
+ msgid "Slide In Left"
227
+ msgstr "Gleitent nach Links schieben"
228
+
229
+ #: ../ml-slider.php:707
230
+ msgid "Box Random"
231
+ msgstr "Zufällige Kästchen"
232
+
233
+ #: ../ml-slider.php:708
234
+ msgid "Box Rain"
235
+ msgstr "Regen mit Kästchen"
236
+
237
+ #: ../ml-slider.php:709
238
+ msgid "Box Rain Reverse"
239
+ msgstr "Regen mit Kästchen umgekehrt"
240
+
241
+ #: ../ml-slider.php:710
242
+ msgid "Box Rain Grow Reverse"
243
+ msgstr "Regen mit Kästchen umgekehrt aufgebaut"
244
+
245
+ #: ../ml-slider.php:711
246
+ msgid "Slide"
247
+ msgstr "Gleiten"
248
+
249
+ #: ../ml-slider.php:716
250
+ msgid "Change the slider style"
251
+ msgstr "Ändern Sie das Slider Design"
252
+
253
+ #: ../ml-slider.php:717
254
+ msgid "Theme"
255
+ msgstr "Thema"
256
+
257
+ #: ../ml-slider.php:738
258
+ msgid "Controls"
259
+ msgstr "Steuerung"
260
+
261
+ #: ../ml-slider.php:741 ../ml-slider.php:755
262
+ msgid "Show slide navigation row"
263
+ msgstr "Zeige die Slide Navigationszeile"
264
+
265
+ #: ../ml-slider.php:742
266
+ msgid "Arrows"
267
+ msgstr "Pfeile"
268
+
269
+ #: ../ml-slider.php:756
270
+ msgid "Navigation"
271
+ msgstr "Navigation"
272
+
273
+ #: ../ml-slider.php:759
274
+ msgid "Hidden"
275
+ msgstr "Verstecken"
276
+
277
+ #: ../ml-slider.php:760
278
+ msgid "Dots"
279
+ msgstr "Punkte"
280
+
281
+ #: ../ml-slider.php:761
282
+ msgid "Thumbnails (Pro)"
283
+ msgstr "Thumbnails (Pro)"
284
+
285
+ #: ../ml-slider.php:768
286
+ msgid "Advanced Settings"
287
+ msgstr "Erweiterte Einstellungen"
288
+
289
+ #: ../ml-slider.php:771
290
+ msgid "Center align the slideshow"
291
+ msgstr "Die Diashow im Zentrum ausrichten."
292
+
293
+ #: ../ml-slider.php:772
294
+ msgid "Center align"
295
+ msgstr "Im Zentrum ausrichten"
296
+
297
+ #: ../ml-slider.php:779
298
+ msgid "Start the slideshow on page load"
299
+ msgstr "Starten Sie die Diashow beim Laden der Seite"
300
+
301
+ #: ../ml-slider.php:780
302
+ msgid "Auto play"
303
+ msgstr "Automatische Wiedergabe"
304
+
305
+ #: ../ml-slider.php:787
306
+ msgid ""
307
+ "Smart Crop ensures your responsive slides are cropped to a ratio that "
308
+ "results in a consistent slideshow size"
309
+ msgstr ""
310
+ "Der intelligente Zuschnitt sorgt bei den Slides für ansprechendes "
311
+ "verhältnis der Bilder. So das sie für die Diashow in der richtigen Größe "
312
+ "zugeschnitten werden, egal ob Hoch oder Querformat"
313
+
314
+ #: ../ml-slider.php:788
315
+ msgid "Smart crop"
316
+ msgstr "Intelligenter Zuschnitt"
317
+
318
+ #: ../ml-slider.php:795
319
+ msgid ""
320
+ "Display as carousel - when selected the effect and direction options will be "
321
+ "ignored."
322
+ msgstr ""
323
+ "Zeigen Sie es wie ein Karussell an - wenn gewählt, werden die Wirkungs- und "
324
+ "Richtungsoptionen ignoriert."
325
+
326
+ #: ../ml-slider.php:796
327
+ msgid "Carousel mode"
328
+ msgstr "Karussell Modus"
329
+
330
+ #: ../ml-slider.php:803
331
+ msgid "Randomise the order of the slides"
332
+ msgstr "Zufällige Reihenfolge der Slides"
333
+
334
+ #: ../ml-slider.php:811
335
+ msgid ""
336
+ "Pause the slideshow when hovering over slider, then resume when no longer "
337
+ "hovering"
338
+ msgstr ""
339
+ "Pause der Diashow bei Schweben der Maus über das Bild, sobald die Maus das "
340
+ "Bild verlässt geht die Animation weiter."
341
+
342
+ #: ../ml-slider.php:812
343
+ msgid "Hover pause"
344
+ msgstr "Schweben Pause"
345
+
346
+ #: ../ml-slider.php:819
347
+ msgid "Reverse the animation direction"
348
+ msgstr "Umgekehrter Reihenfolge der Animation"
349
+
350
+ #: ../ml-slider.php:820
351
+ msgid "Reverse"
352
+ msgstr "Rückwärts"
353
+
354
+ #: ../ml-slider.php:827
355
+ msgid "How long to display each slide, in milliseconds"
356
+ msgstr "Wie lange jeder Slide angezeigt wird, in Millisekunden"
357
+
358
+ #: ../ml-slider.php:828
359
+ msgid "Slide delay"
360
+ msgstr "Slide Verzögerung"
361
+
362
+ #: ../ml-slider.php:828 ../ml-slider.php:836 ../ml-slider.php:915
363
+ #: ../ml-slider.php:931
364
+ msgid "ms"
365
+ msgstr "ms"
366
+
367
+ #: ../ml-slider.php:835
368
+ msgid "Set the speed of animations, in milliseconds"
369
+ msgstr "Stellen Sie die Geschwindigkeit der Animationen ein, in Millisekunden"
370
+
371
+ #: ../ml-slider.php:836
372
+ msgid "Animation speed"
373
+ msgstr "Animationsgeschwindigkeit"
374
+
375
+ #: ../ml-slider.php:843
376
+ msgid "Number of squares (width x height)"
377
+ msgstr "Anzahl der Quadrate (Breite x Höhe)"
378
+
379
+ #: ../ml-slider.php:844
380
+ msgid "Number of squares"
381
+ msgstr "Anzahl der Quadrate"
382
+
383
+ #: ../ml-slider.php:852 ../ml-slider.php:853
384
+ msgid "Number of slices"
385
+ msgstr "Anzahl der Schichten"
386
+
387
+ #: ../ml-slider.php:860
388
+ msgid "Select the sliding direction"
389
+ msgstr "Wählen Sie die Richtung des Sliders"
390
+
391
+ #: ../ml-slider.php:860
392
+ msgid "Slide direction"
393
+ msgstr "Slide Richtung"
394
+
395
+ #: ../ml-slider.php:863
396
+ msgid "Horizontal"
397
+ msgstr "Horizontal"
398
+
399
+ #: ../ml-slider.php:864
400
+ msgid "Vertical"
401
+ msgstr "Vertikal"
402
+
403
+ #: ../ml-slider.php:869
404
+ msgid "Animation easing effect"
405
+ msgstr "Animations Beschleunigungseffekt"
406
+
407
+ #: ../ml-slider.php:870
408
+ msgid "Easing"
409
+ msgstr "Beschleunigung"
410
+
411
+ #: ../ml-slider.php:898
412
+ msgid "Set the text for the 'previous' direction item"
413
+ msgstr ""
414
+ "Verwenden Sie hier eine Texteingabe zur Richtungs Angabe, Beispiel: "
415
+ "Vorheriges Bild"
416
+
417
+ #: ../ml-slider.php:899
418
+ msgid "Previous text"
419
+ msgstr "Zurück (Texteingabe)"
420
+
421
+ #: ../ml-slider.php:906
422
+ msgid "Set the text for the 'next' direction item"
423
+ msgstr ""
424
+ "Verwenden Sie hier eine Texteingabe zur Richtungs Angabe, Beispiel: Nächstes "
425
+ "Bild"
426
+
427
+ #: ../ml-slider.php:907
428
+ msgid "Next text"
429
+ msgstr "Vorwärts (Texteingabe)"
430
+
431
+ #: ../ml-slider.php:914
432
+ msgid "Delay beetwen squares in ms"
433
+ msgstr "Verzögerung zwischen Quadrate in ms"
434
+
435
+ #: ../ml-slider.php:915
436
+ msgid "Square delay"
437
+ msgstr "Quadrat Verzögerung"
438
+
439
+ #: ../ml-slider.php:922
440
+ msgid "Opacity of title and navigation"
441
+ msgstr "Deckkraft von Titel und Navigation"
442
+
443
+ #: ../ml-slider.php:923
444
+ msgid "Opacity"
445
+ msgstr "Deckkraft"
446
+
447
+ #: ../ml-slider.php:930
448
+ msgid "Set the fade in speed of the caption"
449
+ msgstr ""
450
+ "Stellen Sie das verblassen(Fade) der Geschwindigkeit ein, für die "
451
+ "Beschriftung"
452
+
453
+ #: ../ml-slider.php:931
454
+ msgid "Caption speed"
455
+ msgstr "Beschriftungs Geschwindigkeit"
456
+
457
+ #: ../ml-slider.php:938
458
+ msgid "Developer Options"
459
+ msgstr "Entwickler-Optionen"
460
+
461
+ #: ../ml-slider.php:941
462
+ msgid ""
463
+ "Specify any custom CSS Classes you would like to be added to the slider "
464
+ "wrapper"
465
+ msgstr ""
466
+ "Geben Sie beliebige benutzerdefinierte CSS Klassen an und es wird zu ihren "
467
+ "Slider-Wrapper hinzugefügt werden"
468
+
469
+ #: ../ml-slider.php:942
470
+ msgid "CSS classes"
471
+ msgstr "CSS Klassen"
472
+
473
+ #: ../ml-slider.php:949 ../ml-slider.php:958
474
+ msgid "Uncheck this is you would like to include your own Javascript"
475
+ msgstr "Deaktivieren Sie dieses wenn Sie eigene Javascripts verwenden möchten"
476
+
477
+ #: ../ml-slider.php:950
478
+ msgid "Print Scripts"
479
+ msgstr "Zeige Scripts"
480
+
481
+ #: ../ml-slider.php:954
482
+ msgid "Uncheck this is you would like to include your own CSS"
483
+ msgstr ""
484
+ "Deaktivieren Sie dieses wenn Sie Ihre eigenen CSS-Style verwenden möchten"
485
+
486
+ #: ../ml-slider.php:955
487
+ msgid "CSS"
488
+ msgstr "CSS"
489
+
490
+ #: ../ml-slider.php:959
491
+ msgid "JavaScript"
492
+ msgstr "JavaScript"
493
+
494
+ #: ../ml-slider.php:965
495
+ msgid "Delete Slider"
496
+ msgstr "Lösche Slider"
497
+
498
+ #: ../ml-slider.php:974
499
+ msgid "Usage"
500
+ msgstr "Anwendung"
501
+
502
+ #: ../ml-slider.php:980
503
+ msgid "Shortcode"
504
+ msgstr "Shortcode"
505
+
506
+ #: ../ml-slider.php:986
507
+ msgid "Template Include"
508
+ msgstr "Vorlage inklusive"
509
+
510
+ #: ../inc/metaslider.widget.class.php:18
511
+ msgid "Meta Slider"
512
+ msgstr "Meta Slider"
513
+
514
+ #: ../inc/metaslider.widget.class.php:111
515
+ msgid "Title:"
516
+ msgstr "Titel:"
517
+
518
+ #: ../inc/metaslider.widget.class.php:114
519
+ msgid "Select Slider:"
520
+ msgstr "Wähle Slider:"
521
+
522
+ #: ../inc/metaslider.widget.class.php:124
523
+ msgid "No slideshows found"
524
+ msgstr "Keine Diashow gefunden"
525
+
526
+ #: ../inc/slide/metaslide.image.class.php:23
527
+ msgid "Security check failed. Refresh page and try again."
528
+ msgstr ""
529
+ "Sicherheits-Check fehlgeschlagen. Seite aktualisieren und Bitte erneut "
530
+ "versuchen."
531
+
532
+ #: ../inc/slide/metaslide.image.class.php:36
533
+ msgid "Failed to add slide. Slide already exists in slideshow."
534
+ msgstr "Fehler beim hinzufügen. Slide existiert bereits in Diashow."
535
+
536
+ #: ../inc/slide/metaslide.image.class.php:38
537
+ msgid "Failed to add slide. Slide is not of type 'image'."
538
+ msgstr "Fehler beim hinzufügen. Slide ist nicht von Typ 'Bild'."
539
+
540
+ #: ../inc/slide/metaslide.image.class.php:133
541
+ msgid "Warning: Image data does not exist. Please re-upload the image."
542
+ msgstr ""
543
+ "Warnung: Bild existiert leider nicht mehr. Bitte erneut das Bild hochladen."
languages/metaslider-es_ES.mo CHANGED
Binary file
languages/metaslider-es_ES.po CHANGED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: metaslider\n"
4
- "POT-Creation-Date: 2013-10-10 15:45-0000\n"
5
- "PO-Revision-Date: 2013-10-10 15:45-0000\n"
6
"Last-Translator: Miguel <contacto@eltipografico.com>\n"
7
"Language-Team: \n"
8
"MIME-Version: 1.0\n"
@@ -14,39 +14,52 @@ msgstr ""
14
"X-Poedit-SearchPath-0: .\n"
15
"X-Poedit-SearchPath-1: ..\n"
16
17
- #: ../ml-slider.php:93
18
msgid "Go Pro"
19
msgstr "Comprar versión Pro"
20
21
- #: ../ml-slider.php:144
22
msgid "Image"
23
msgstr "Imagen"
24
25
- #: ../ml-slider.php:145
26
msgid "Add to slider"
27
msgstr "Añadir al pase"
28
29
- #: ../ml-slider.php:164
30
- msgid "More Slide Types"
31
- msgstr "Más tipos de pases"
32
33
- #: ../ml-slider.php:213 ../inc/slide/metaslide.image.class.php:62
34
msgid "URL"
35
msgstr "URL"
36
37
- #: ../ml-slider.php:214 ../inc/slide/metaslide.image.class.php:60
38
msgid "Caption"
39
msgstr "Subtítulo"
40
41
- #: ../ml-slider.php:215 ../inc/slide/metaslide.image.class.php:61
42
msgid "New Window"
43
msgstr "Nueva ventana"
44
45
- #: ../ml-slider.php:216
46
msgid "Are you sure?"
47
msgstr "¿Estás seguro?"
48
49
- #: ../ml-slider.php:219
50
msgid ""
51
"Caution: This setting is for advanced developers only. If you're unsure, "
52
"leave it checked."
@@ -54,250 +67,250 @@ msgstr ""
54
"Cuidado: Estos ajustes son solo para desarrolladores avanzados. Si tienes "
55
"dudas, déjalo marcado."
56
57
- #: ../ml-slider.php:256
58
msgid "Upgrade to Pro $19"
59
msgstr ""
60
61
- #: ../ml-slider.php:272
62
msgid "Documentation"
63
msgstr "Documentación"
64
65
- #: ../ml-slider.php:393
66
msgid "New Slider"
67
msgstr "Nuevo pase"
68
69
- #: ../ml-slider.php:486
70
msgid "Version"
71
msgstr "Versión"
72
73
- #: ../ml-slider.php:487
74
msgid "Responsive"
75
msgstr "Responsibe"
76
77
- #: ../ml-slider.php:488 ../ml-slider.php:492
78
msgid "Yes"
79
msgstr "Si"
80
81
- #: ../ml-slider.php:488 ../ml-slider.php:492
82
msgid "No"
83
msgstr "No"
84
85
- #: ../ml-slider.php:490 ../ml-slider.php:633
86
msgid "Size"
87
msgstr "Tamaño"
88
89
- #: ../ml-slider.php:490
90
msgid "kb"
91
msgstr "kb"
92
93
- #: ../ml-slider.php:491
94
msgid "Mobile Friendly"
95
msgstr "Apto para móviles"
96
97
- #: ../ml-slider.php:519
98
msgid "New slideshow created. Click 'Add Slide' to get started!"
99
msgstr ""
100
101
- #: ../ml-slider.php:536
102
msgid "or"
103
msgstr ""
104
105
- #: ../ml-slider.php:537
106
#, fuzzy
107
msgid "Add New Slideshow"
108
msgstr "Añadir diapositiva"
109
110
- #: ../ml-slider.php:553
111
#, fuzzy
112
msgid "Create your first slideshow"
113
msgstr "Centrar el pase de diapositvas"
114
115
- #: ../ml-slider.php:570
116
msgid "Slides"
117
msgstr "Diapositivas"
118
119
- #: ../ml-slider.php:573 ../ml-slider.php:574
120
msgid "Add Slide"
121
msgstr "Añadir diapositiva"
122
123
- #: ../ml-slider.php:593
124
msgid "Settings"
125
msgstr "Ajustes"
126
127
- #: ../ml-slider.php:594
128
msgid "Save"
129
msgstr "Guardar"
130
131
- #: ../ml-slider.php:595
132
msgid "Save & Preview"
133
msgstr "Guardar y previsualizar"
134
135
- #: ../ml-slider.php:623
136
msgid "Slideshow title"
137
msgstr ""
138
139
- #: ../ml-slider.php:624
140
msgid "Title"
141
msgstr ""
142
143
- #: ../ml-slider.php:632
144
msgid "Set the initial size for the slides (width x height)"
145
msgstr "Establecer el tamaño inicial para las dipositivas (ancho x alto)"
146
147
- #: ../ml-slider.php:633
148
msgid "px"
149
msgstr ""
150
151
- #: ../ml-slider.php:637
152
msgid "Width"
153
msgstr "Ancho"
154
155
- #: ../ml-slider.php:640
156
msgid "Height"
157
msgstr "Alto"
158
159
- #: ../ml-slider.php:645
160
msgid "Slide transition effect"
161
msgstr "Efecto de la transición entre diapositivas"
162
163
- #: ../ml-slider.php:646
164
msgid "Effect"
165
msgstr "Efecto"
166
167
- #: ../ml-slider.php:650 ../ml-slider.php:760
168
msgid "Random"
169
msgstr "Aleatorio"
170
171
- #: ../ml-slider.php:651
172
msgid "Swirl"
173
msgstr ""
174
175
- #: ../ml-slider.php:652
176
msgid "Rain"
177
msgstr ""
178
179
- #: ../ml-slider.php:653
180
msgid "Straight"
181
msgstr ""
182
183
- #: ../ml-slider.php:654
184
#, fuzzy
185
msgid "Slide Down"
186
msgstr "Dirección del pase"
187
188
- #: ../ml-slider.php:655
189
msgid "Slice Up"
190
msgstr ""
191
192
- #: ../ml-slider.php:656
193
msgid "Slide Up Left"
194
msgstr ""
195
196
- #: ../ml-slider.php:657
197
msgid "Slice Up Down"
198
msgstr ""
199
200
- #: ../ml-slider.php:658
201
msgid "Slide Up Down Left"
202
msgstr ""
203
204
- #: ../ml-slider.php:659
205
msgid "Fold"
206
msgstr ""
207
208
- #: ../ml-slider.php:660
209
msgid "Fade"
210
msgstr ""
211
212
- #: ../ml-slider.php:661
213
msgid "Slide In Right"
214
msgstr ""
215
216
- #: ../ml-slider.php:662
217
#, fuzzy
218
msgid "Slide In Left"
219
msgstr "Efecto de la transición entre diapositivas"
220
221
- #: ../ml-slider.php:663
222
#, fuzzy
223
msgid "Box Random"
224
msgstr "Aleatorio"
225
226
- #: ../ml-slider.php:664
227
msgid "Box Rain"
228
msgstr ""
229
230
- #: ../ml-slider.php:665
231
#, fuzzy
232
msgid "Box Rain Reverse"
233
msgstr "Invertir"
234
235
- #: ../ml-slider.php:666
236
msgid "Box Rain Grow Reverse"
237
msgstr ""
238
239
- #: ../ml-slider.php:667
240
#, fuzzy
241
msgid "Slide"
242
msgstr "Diapositivas"
243
244
- #: ../ml-slider.php:672
245
msgid "Change the slider style"
246
msgstr "Cambar el estilo del pase"
247
248
- #: ../ml-slider.php:673
249
msgid "Theme"
250
msgstr "Tema"
251
252
- #: ../ml-slider.php:694
253
msgid "Controls"
254
msgstr "Controles"
255
256
- #: ../ml-slider.php:697 ../ml-slider.php:711
257
msgid "Show slide navigation row"
258
msgstr "Mostrar la barra de navegación"
259
260
- #: ../ml-slider.php:698
261
msgid "Arrows"
262
msgstr ""
263
264
- #: ../ml-slider.php:712
265
msgid "Navigation"
266
msgstr ""
267
268
- #: ../ml-slider.php:715
269
msgid "Hidden"
270
msgstr ""
271
272
- #: ../ml-slider.php:716
273
msgid "Dots"
274
msgstr ""
275
276
- #: ../ml-slider.php:717
277
msgid "Thumbnails (Pro)"
278
msgstr ""
279
280
- #: ../ml-slider.php:724
281
msgid "Advanced Settings"
282
msgstr "Ajustes avanzados"
283
284
- #: ../ml-slider.php:727
285
msgid "Center align the slideshow"
286
msgstr "Centrar el pase de diapositvas"
287
288
- #: ../ml-slider.php:728
289
msgid "Center align"
290
msgstr "Centrar"
291
292
- #: ../ml-slider.php:735
293
msgid "Start the slideshow on page load"
294
msgstr "Comenzar el pase al cargar la página"
295
296
- #: ../ml-slider.php:736
297
msgid "Auto play"
298
msgstr "Auto arranque"
299
300
- #: ../ml-slider.php:743
301
msgid ""
302
"Smart Crop ensures your responsive slides are cropped to a ratio that "
303
"results in a consistent slideshow size"
@@ -305,11 +318,11 @@ msgstr ""
305
"El recorte inteligente asegura que tus pases responsive sean cortados en una "
306
"proporción correcta"
307
308
- #: ../ml-slider.php:744
309
msgid "Smart crop"
310
msgstr "Recorte inteligente"
311
312
- #: ../ml-slider.php:751
313
msgid ""
314
"Display as carousel - when selected the effect and direction options will be "
315
"ignored."
@@ -317,15 +330,15 @@ msgstr ""
317
"Mostar como carrusel - Cuando lo seleccionas, los efectos y ajusttes de "
318
"dirección son ignorados"
319
320
- #: ../ml-slider.php:752
321
msgid "Carousel mode"
322
msgstr "Modo carrusel"
323
324
- #: ../ml-slider.php:759
325
msgid "Randomise the order of the slides"
326
msgstr "Ordenar aleatoriamente las diapositivas"
327
328
- #: ../ml-slider.php:767
329
msgid ""
330
"Pause the slideshow when hovering over slider, then resume when no longer "
331
"hovering"
@@ -333,173 +346,200 @@ msgstr ""
333
"Pausar el pase de diapositivas cuando el ratón se pose encima y continuar "
334
"con la reproducción cuando el ratón salga."
335
336
- #: ../ml-slider.php:768
337
msgid "Hover pause"
338
msgstr "Pausar cuando situes el ratón encima"
339
340
- #: ../ml-slider.php:775
341
msgid "Reverse the animation direction"
342
msgstr "Invertir orden de la animación"
343
344
- #: ../ml-slider.php:776
345
msgid "Reverse"
346
msgstr "Invertir"
347
348
- #: ../ml-slider.php:783
349
msgid "How long to display each slide, in milliseconds"
350
msgstr "Cuanto tiempo se muestra cada diapositiva en milisegundos"
351
352
- #: ../ml-slider.php:784
353
msgid "Slide delay"
354
msgstr "Retraso de la diapositiva"
355
356
- #: ../ml-slider.php:784 ../ml-slider.php:792 ../ml-slider.php:871
357
- #: ../ml-slider.php:887
358
msgid "ms"
359
msgstr "ms"
360
361
- #: ../ml-slider.php:791
362
msgid "Set the speed of animations, in milliseconds"
363
msgstr "Ajustar la duración de las animaciones en milisegundos"
364
365
- #: ../ml-slider.php:792
366
msgid "Animation speed"
367
msgstr "Velocidad de la animación"
368
369
- #: ../ml-slider.php:799
370
msgid "Number of squares (width x height)"
371
msgstr "Número de cuadros (ancho x alto)"
372
373
- #: ../ml-slider.php:800
374
msgid "Number of squares"
375
msgstr "Nmúero de cuadros"
376
377
- #: ../ml-slider.php:808 ../ml-slider.php:809
378
msgid "Number of slices"
379
msgstr "Número de cortes"
380
381
- #: ../ml-slider.php:816
382
msgid "Select the sliding direction"
383
msgstr "Seleccionar la dirección del pase"
384
385
- #: ../ml-slider.php:816
386
msgid "Slide direction"
387
msgstr "Dirección del pase"
388
389
- #: ../ml-slider.php:819
390
msgid "Horizontal"
391
msgstr "Horizontal"
392
393
- #: ../ml-slider.php:820
394
msgid "Vertical"
395
msgstr "Vertical"
396
397
- #: ../ml-slider.php:825
398
msgid "Animation easing effect"
399
msgstr "Efecto de la animación suavizado"
400
401
- #: ../ml-slider.php:826
402
msgid "Easing"
403
msgstr "Suavizado"
404
405
- #: ../ml-slider.php:854
406
msgid "Set the text for the 'previous' direction item"
407
msgstr "Introducir el texto de \"anterior\" en la dirección del elemento"
408
409
- #: ../ml-slider.php:855
410
msgid "Previous text"
411
msgstr "Texto \"previo\""
412
413
- #: ../ml-slider.php:862
414
msgid "Set the text for the 'next' direction item"
415
msgstr "Introducir el texto de \"siguiente\" en la dirección del elemento"
416
417
- #: ../ml-slider.php:863
418
msgid "Next text"
419
msgstr "Texto \"siguiente\""
420
421
- #: ../ml-slider.php:870
422
msgid "Delay beetwen squares in ms"
423
msgstr "Retardo entre cuadros en ms"
424
425
- #: ../ml-slider.php:871
426
msgid "Square delay"
427
msgstr "Retardo entre cuadros"
428
429
- #: ../ml-slider.php:878
430
msgid "Opacity of title and navigation"
431
msgstr "Opacidad del título y navegación"
432
433
- #: ../ml-slider.php:879
434
msgid "Opacity"
435
msgstr "Opacidad"
436
437
- #: ../ml-slider.php:886
438
msgid "Set the fade in speed of the caption"
439
msgstr "Ajustar el fundido en la velocidad del subtítulo"
440
441
- #: ../ml-slider.php:887
442
msgid "Caption speed"
443
msgstr "Velocidad del subtítulo"
444
445
- #: ../ml-slider.php:894
446
msgid "Developer Options"
447
msgstr "Opciones de desarrollador"
448
449
- #: ../ml-slider.php:897
450
msgid ""
451
"Specify any custom CSS Classes you would like to be added to the slider "
452
"wrapper"
453
msgstr "Añadir las clases CSS personalizadas en el pase de diapositivas"
454
455
- #: ../ml-slider.php:898
456
msgid "CSS classes"
457
msgstr "Clases CSS"
458
459
- #: ../ml-slider.php:905
460
- msgid "Uncheck this is you would like to include your own CSS"
461
- msgstr "Marca esta si quieres incluir tu propio CSS"
462
-
463
- #: ../ml-slider.php:906
464
- msgid "Print CSS"
465
- msgstr "Imprimir CSS"
466
-
467
- #: ../ml-slider.php:913
468
msgid "Uncheck this is you would like to include your own Javascript"
469
msgstr "Desmarca esto si quieres incluír tu propio javascript"
470
471
- #: ../ml-slider.php:914
472
- msgid "Print JS"
473
msgstr "Imprimir JS"
474
475
- #: ../ml-slider.php:922
476
msgid "Delete Slider"
477
msgstr "Borrar pase"
478
479
- #: ../ml-slider.php:931
480
msgid "Usage"
481
msgstr "Uso"
482
483
- #: ../ml-slider.php:937
484
msgid "Shortcode"
485
msgstr "Shortcode"
486
487
- #: ../ml-slider.php:943
488
msgid "Template Include"
489
msgstr "Template include"
490
491
- #: ../inc/metaslider.widget.class.php:14
492
msgid "Meta Slider"
493
msgstr "Meta Slider"
494
495
- #: ../inc/metaslider.widget.class.php:107
496
msgid "Title:"
497
msgstr ""
498
499
- #: ../inc/metaslider.widget.class.php:110
500
msgid "Select Slider:"
501
msgstr "Seleccionar pase"
502
503
- #: ../inc/metaslider.widget.class.php:120
504
msgid "No slideshows found"
505
msgstr "No se han encontrado pases de diapositiva"
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: metaslider\n"
4
+ "POT-Creation-Date: 2013-11-12 14:44-0000\n"
5
+ "PO-Revision-Date: 2013-11-12 14:44-0000\n"
6
"Last-Translator: Miguel <contacto@eltipografico.com>\n"
7
"Language-Team: \n"
8
"MIME-Version: 1.0\n"
14
"X-Poedit-SearchPath-0: .\n"
15
"X-Poedit-SearchPath-1: ..\n"
16