Version Description
- Fixed: Text slide descriptions allow HTML again
Download this release
Release Info
Developer | stefanboonstra |
Plugin | Slideshow |
Version | 2.1.14 |
Comparing to | |
See all releases |
Code changes from version 2.1.13 to 2.1.14
- classes/SlideshowPluginPostType.php +2 -2
- languages/slideshow-plugin-nl_NL.mo +0 -0
- languages/slideshow-plugin-nl_NL.po +10 -2
- readme.txt +5 -2
- slideshow.php +2 -2
- views/SlideshowPlugin/slideshow.php +19 -19
- views/SlideshowPluginPostType/settings.php +4 -4
- views/SlideshowPluginPostType/slides.php +8 -8
- views/SlideshowPluginPostType/style-settings.php +2 -2
- views/SlideshowPluginSlideInserter/search-popup.php +1 -1
classes/SlideshowPluginPostType.php
CHANGED
@@ -376,9 +376,9 @@ class SlideshowPluginPostType {
|
|
376 |
*/
|
377 |
static function getDefaultData($fullDefinition = true){
|
378 |
$data = array(
|
379 |
-
'style_style' => 'light',
|
380 |
'style_custom' => '',
|
381 |
-
'setting_animation' => 'slide',
|
382 |
'setting_slideSpeed' => '1',
|
383 |
'setting_descriptionSpeed' => '0.4',
|
384 |
'setting_intervalSpeed' => '5',
|
376 |
*/
|
377 |
static function getDefaultData($fullDefinition = true){
|
378 |
$data = array(
|
379 |
+
'style_style' => __('light', 'slideshow-plugin'),
|
380 |
'style_custom' => '',
|
381 |
+
'setting_animation' => __('slide', 'slideshow=plugin'),
|
382 |
'setting_slideSpeed' => '1',
|
383 |
'setting_descriptionSpeed' => '0.4',
|
384 |
'setting_intervalSpeed' => '5',
|
languages/slideshow-plugin-nl_NL.mo
CHANGED
Binary file
|
languages/slideshow-plugin-nl_NL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2012-10-28
|
6 |
-
"PO-Revision-Date: 2012-10-28
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -64,6 +64,14 @@ msgstr "Slideshow Stijl"
|
|
64 |
msgid "Slideshow Settings"
|
65 |
msgstr "Slideshow Instellingen"
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
#: classes/SlideshowPluginPostType.php:402
|
68 |
msgid "Yes"
|
69 |
msgstr "Ja"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-10-28 11:29+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-10-28 11:29+0100\n"
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
64 |
msgid "Slideshow Settings"
|
65 |
msgstr "Slideshow Instellingen"
|
66 |
|
67 |
+
#: classes/SlideshowPluginPostType.php:379
|
68 |
+
msgid "light"
|
69 |
+
msgstr "licht"
|
70 |
+
|
71 |
+
#: classes/SlideshowPluginPostType.php:381
|
72 |
+
msgid "slide"
|
73 |
+
msgstr "slide"
|
74 |
+
|
75 |
#: classes/SlideshowPluginPostType.php:402
|
76 |
msgid "Yes"
|
77 |
msgstr "Ja"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://stefanboonstra.com/donate-to-slideshow/
|
|
5 |
Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
|
6 |
Requires at least: 3.3
|
7 |
Tested up to: 3.4.2
|
8 |
-
Stable tag: 2.1.
|
9 |
License: GPLv2
|
10 |
|
11 |
Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
|
@@ -37,7 +37,7 @@ different images, settings and styles for each one of them.
|
|
37 |
|
38 |
- English
|
39 |
- Dutch
|
40 |
-
- Russian (Translated by [Oleg Fritz](http://
|
41 |
|
42 |
Feel free to send me your own translation of the plugin to my e-mail address: wordpress@stefanboonstra.com. Many
|
43 |
thanks in advance!
|
@@ -111,6 +111,9 @@ slideshow may not be styled.
|
|
111 |
* Multiple slideshows can now be shown with each its separate styling.
|
112 |
* Users can now search insertable images by post id.
|
113 |
|
|
|
|
|
|
|
114 |
= 2.1.13 =
|
115 |
* Fixed: PHP security issues.
|
116 |
* Set order of images gotten in 'Image slide' pop-up to post date, descending.
|
5 |
Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
|
6 |
Requires at least: 3.3
|
7 |
Tested up to: 3.4.2
|
8 |
+
Stable tag: 2.1.14
|
9 |
License: GPLv2
|
10 |
|
11 |
Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
|
37 |
|
38 |
- English
|
39 |
- Dutch
|
40 |
+
- Russian (Translated by [Oleg Fritz](http://www.facebook.com/profile.php?id=100001331241069))
|
41 |
|
42 |
Feel free to send me your own translation of the plugin to my e-mail address: wordpress@stefanboonstra.com. Many
|
43 |
thanks in advance!
|
111 |
* Multiple slideshows can now be shown with each its separate styling.
|
112 |
* Users can now search insertable images by post id.
|
113 |
|
114 |
+
= 2.1.14 =
|
115 |
+
* Fixed: Text slide descriptions allow HTML again
|
116 |
+
|
117 |
= 2.1.13 =
|
118 |
* Fixed: PHP security issues.
|
119 |
* Set order of images gotten in 'Image slide' pop-up to post date, descending.
|
slideshow.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Slideshow
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
|
5 |
Description: This plugin offers a slideshow that is easily deployable in your website. Add any image that has already been uploaded to add to your slideshow. Options and styles are customizable for every single slideshow on your website.
|
6 |
-
Version: 2.1.
|
7 |
Requires at least: 3.3
|
8 |
Author: StefanBoonstra
|
9 |
Author URI: http://stefanboonstra.com
|
@@ -21,7 +21,7 @@
|
|
21 |
class SlideshowPluginMain {
|
22 |
|
23 |
/** Variables */
|
24 |
-
static $version = '2.1.
|
25 |
|
26 |
/**
|
27 |
* Bootstraps the application by assigning the right functions to
|
3 |
Plugin Name: Slideshow
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
|
5 |
Description: This plugin offers a slideshow that is easily deployable in your website. Add any image that has already been uploaded to add to your slideshow. Options and styles are customizable for every single slideshow on your website.
|
6 |
+
Version: 2.1.14
|
7 |
Requires at least: 3.3
|
8 |
Author: StefanBoonstra
|
9 |
Author URI: http://stefanboonstra.com
|
21 |
class SlideshowPluginMain {
|
22 |
|
23 |
/** Variables */
|
24 |
+
static $version = '2.1.14';
|
25 |
|
26 |
/**
|
27 |
* Bootstraps the application by assigning the right functions to
|
views/SlideshowPlugin/slideshow.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
<div class="slideshow_container slideshow_container_<?php echo
|
2 |
-
<div class="slideshow_overflow" style="width: <?php echo (is_numeric($settings['width']))?
|
3 |
<div class="slideshow">
|
4 |
<?php if(count($slides) > 0): ?>
|
5 |
<?php $i = 0; ?>
|
@@ -8,9 +8,9 @@
|
|
8 |
<?php
|
9 |
$url = $target = '';
|
10 |
if(isset($slide['url']))
|
11 |
-
$url =
|
12 |
if(isset($slide['urlTarget']))
|
13 |
-
$target =
|
14 |
?>
|
15 |
|
16 |
<?php if($slide['type'] == 'text'): ?>
|
@@ -18,14 +18,14 @@
|
|
18 |
<?php
|
19 |
$title = $description = $color = '';
|
20 |
if(isset($slide['title']))
|
21 |
-
$title =
|
22 |
if(isset($slide['description']))
|
23 |
-
$description =
|
24 |
if(isset($slide['color']))
|
25 |
-
$color =
|
26 |
?>
|
27 |
|
28 |
-
<div class="slide slide_<?php echo $i; ?>" <?php if(!empty($color)) echo 'style="background: #' . $color . ';"'; ?> style="height: <?php echo (is_numeric($settings['height']))?
|
29 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"';?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
30 |
<h2><?php echo $title; ?></h2>
|
31 |
<p><?php echo $description; ?></p>
|
@@ -37,12 +37,12 @@
|
|
37 |
<?php
|
38 |
$videoId = '';
|
39 |
if(isset($slide['videoId']))
|
40 |
-
$videoId =
|
41 |
|
42 |
$elementVideoId = 'youtube-player-' . rand() . '-' . $videoId;
|
43 |
?>
|
44 |
|
45 |
-
<div class="slide slide_<?php echo $i; ?> slide_video" style="height: <?php echo (is_numeric($settings['height']))?
|
46 |
<div class="videoId" style="display: none;"><?php echo $videoId; ?> <?php echo $elementVideoId; ?></div>
|
47 |
<div id="<?php echo $elementVideoId; ?>"></div>
|
48 |
</div>
|
@@ -52,7 +52,7 @@
|
|
52 |
<?php
|
53 |
$postId = '';
|
54 |
if(isset($slide['postId']) && is_numeric($slide['postId']))
|
55 |
-
$postId =
|
56 |
else
|
57 |
continue;
|
58 |
|
@@ -64,25 +64,25 @@
|
|
64 |
$imageSrc = '';
|
65 |
if(!is_array($image) || !$image){
|
66 |
if(!empty($attachment->guid))
|
67 |
-
$imageSrc =
|
68 |
else
|
69 |
continue;
|
70 |
}else{
|
71 |
-
$imageSrc =
|
72 |
}
|
73 |
?>
|
74 |
|
75 |
-
<div class="slide slide_<?php echo $i; ?>" style="height: <?php echo (is_numeric($settings['height']))?
|
76 |
<div class="description transparent">
|
77 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
78 |
-
<h2><?php echo
|
79 |
-
<p><?php echo
|
80 |
</a>
|
81 |
</div>
|
82 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
83 |
<img
|
84 |
-
src="<?php echo
|
85 |
-
alt="<?php echo
|
86 |
/>
|
87 |
</a>
|
88 |
</div>
|
@@ -113,7 +113,7 @@
|
|
113 |
|
114 |
<?php if(!empty($style)): ?>
|
115 |
<style type="text/css">
|
116 |
-
<?php echo
|
117 |
</style>
|
118 |
<?php endif; ?>
|
119 |
</div>
|
1 |
+
<div class="slideshow_container slideshow_container_<?php echo $randomId; ?>" style="width: <?php echo (is_numeric($settings['width']))? $settings['width'] : 0; ?>px; height: <?php echo (is_numeric($settings['height']))? $settings['height'] : 0; ?>px;">
|
2 |
+
<div class="slideshow_overflow" style="width: <?php echo (is_numeric($settings['width']))? $settings['width'] : 0; ?>px; height: <?php echo (is_numeric($settings['height']))? $settings['height'] : 0; ?>px;">
|
3 |
<div class="slideshow">
|
4 |
<?php if(count($slides) > 0): ?>
|
5 |
<?php $i = 0; ?>
|
8 |
<?php
|
9 |
$url = $target = '';
|
10 |
if(isset($slide['url']))
|
11 |
+
$url = $slide['url'];
|
12 |
if(isset($slide['urlTarget']))
|
13 |
+
$target = $slide['urlTarget'];
|
14 |
?>
|
15 |
|
16 |
<?php if($slide['type'] == 'text'): ?>
|
18 |
<?php
|
19 |
$title = $description = $color = '';
|
20 |
if(isset($slide['title']))
|
21 |
+
$title = $slide['title'];
|
22 |
if(isset($slide['description']))
|
23 |
+
$description = $slide['description'];
|
24 |
if(isset($slide['color']))
|
25 |
+
$color = $slide['color'];
|
26 |
?>
|
27 |
|
28 |
+
<div class="slide slide_<?php echo $i; ?>" <?php if(!empty($color)) echo 'style="background: #' . $color . ';"'; ?> style="height: <?php echo (is_numeric($settings['height']))? $settings['height'] : 0; ?>px;">
|
29 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"';?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
30 |
<h2><?php echo $title; ?></h2>
|
31 |
<p><?php echo $description; ?></p>
|
37 |
<?php
|
38 |
$videoId = '';
|
39 |
if(isset($slide['videoId']))
|
40 |
+
$videoId = $slide['videoId'];
|
41 |
|
42 |
$elementVideoId = 'youtube-player-' . rand() . '-' . $videoId;
|
43 |
?>
|
44 |
|
45 |
+
<div class="slide slide_<?php echo $i; ?> slide_video" style="height: <?php echo (is_numeric($settings['height']))? $settings['height'] : 0; ?>px;">
|
46 |
<div class="videoId" style="display: none;"><?php echo $videoId; ?> <?php echo $elementVideoId; ?></div>
|
47 |
<div id="<?php echo $elementVideoId; ?>"></div>
|
48 |
</div>
|
52 |
<?php
|
53 |
$postId = '';
|
54 |
if(isset($slide['postId']) && is_numeric($slide['postId']))
|
55 |
+
$postId = $slide['postId'];
|
56 |
else
|
57 |
continue;
|
58 |
|
64 |
$imageSrc = '';
|
65 |
if(!is_array($image) || !$image){
|
66 |
if(!empty($attachment->guid))
|
67 |
+
$imageSrc = $attachment->guid;
|
68 |
else
|
69 |
continue;
|
70 |
}else{
|
71 |
+
$imageSrc = $image[0];
|
72 |
}
|
73 |
?>
|
74 |
|
75 |
+
<div class="slide slide_<?php echo $i; ?>" style="height: <?php echo (is_numeric($settings['height']))? $settings['height'] : 0; ?>px;">
|
76 |
<div class="description transparent">
|
77 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
78 |
+
<h2><?php echo $attachment->post_title; ?></h2>
|
79 |
+
<p><?php echo $attachment->post_content; ?></p>
|
80 |
</a>
|
81 |
</div>
|
82 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
83 |
<img
|
84 |
+
src="<?php echo $imageSrc; ?>"
|
85 |
+
alt="<?php echo $attachment->post_title; ?>"
|
86 |
/>
|
87 |
</a>
|
88 |
</div>
|
113 |
|
114 |
<?php if(!empty($style)): ?>
|
115 |
<style type="text/css">
|
116 |
+
<?php echo $style; ?>
|
117 |
</style>
|
118 |
<?php endif; ?>
|
119 |
</div>
|
views/SlideshowPluginPostType/settings.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<tr>
|
10 |
<td colspan="3" style="border-bottom: 1px solid #dfdfdf; text-align: center;">
|
11 |
<span style="display: inline-block; position: relative; top: 9px; padding: 0 12px; background: #f8f8f8;">
|
12 |
-
<?php echo
|
13 |
</span>
|
14 |
</td>
|
15 |
</tr>
|
@@ -18,12 +18,12 @@
|
|
18 |
</tr>
|
19 |
<?php endif; ?>
|
20 |
<tr
|
21 |
-
<?php echo !empty($value['group'])? 'class="group-' .
|
22 |
<?php echo !empty($value[5])? 'style="display:none;"': ''; ?>
|
23 |
>
|
24 |
-
<td><?php echo
|
25 |
<td><?php echo $inputFields[$key]; ?></td>
|
26 |
-
<td><?php _e('Default', 'slideshow-plugin'); ?>: '<?php echo (isset($value[4]))?
|
27 |
</tr>
|
28 |
|
29 |
<?php endforeach; ?>
|
9 |
<tr>
|
10 |
<td colspan="3" style="border-bottom: 1px solid #dfdfdf; text-align: center;">
|
11 |
<span style="display: inline-block; position: relative; top: 9px; padding: 0 12px; background: #f8f8f8;">
|
12 |
+
<?php echo $value['group']; ?> <?php _e('settings', 'slideshow-plugin'); ?>
|
13 |
</span>
|
14 |
</td>
|
15 |
</tr>
|
18 |
</tr>
|
19 |
<?php endif; ?>
|
20 |
<tr
|
21 |
+
<?php echo !empty($value['group'])? 'class="group-' . strtolower(str_replace(' ', '-', $value['group'])) . '"': ''; ?>
|
22 |
<?php echo !empty($value[5])? 'style="display:none;"': ''; ?>
|
23 |
>
|
24 |
+
<td><?php echo $value[3]; ?></td>
|
25 |
<td><?php echo $inputFields[$key]; ?></td>
|
26 |
+
<td><?php _e('Default', 'slideshow-plugin'); ?>: '<?php echo (isset($value[4]))? $value[4][$value[2]]: $value[2]; ?>'</td>
|
27 |
</tr>
|
28 |
|
29 |
<?php endforeach; ?>
|
views/SlideshowPluginPostType/slides.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
}
|
16 |
</style>
|
17 |
<script type="text/javascript">
|
18 |
-
var slideshowHighestSlideId = <?php echo
|
19 |
</script>
|
20 |
|
21 |
<ul class="sortable-slides-list">
|
@@ -23,11 +23,11 @@
|
|
23 |
// General values
|
24 |
$id = $url = $order = '';
|
25 |
if(isset($slide['id']))
|
26 |
-
$id =
|
27 |
if(isset($slide['url']))
|
28 |
-
$url =
|
29 |
if(isset($slide['order']))
|
30 |
-
$order =
|
31 |
?>
|
32 |
|
33 |
<li class="widefat sortable-slides-list-item">
|
@@ -36,11 +36,11 @@
|
|
36 |
// Type specific values
|
37 |
$title = $description = $color = '';
|
38 |
if(isset($slide['title']))
|
39 |
-
$title =
|
40 |
if(isset($slide['description']))
|
41 |
-
$description =
|
42 |
if(isset($slide['color']))
|
43 |
-
$color =
|
44 |
?>
|
45 |
|
46 |
<p style="padding: 0 5px;">
|
@@ -69,7 +69,7 @@
|
|
69 |
// Type specific values
|
70 |
$videoId = '';
|
71 |
if(isset($slide['videoId']))
|
72 |
-
$videoId =
|
73 |
?>
|
74 |
|
75 |
<p style="padding: 0 5px;">
|
15 |
}
|
16 |
</style>
|
17 |
<script type="text/javascript">
|
18 |
+
var slideshowHighestSlideId = <?php echo $highestSlideId; ?>
|
19 |
</script>
|
20 |
|
21 |
<ul class="sortable-slides-list">
|
23 |
// General values
|
24 |
$id = $url = $order = '';
|
25 |
if(isset($slide['id']))
|
26 |
+
$id = $slide['id'];
|
27 |
if(isset($slide['url']))
|
28 |
+
$url = $slide['url'];
|
29 |
if(isset($slide['order']))
|
30 |
+
$order = $slide['order'];
|
31 |
?>
|
32 |
|
33 |
<li class="widefat sortable-slides-list-item">
|
36 |
// Type specific values
|
37 |
$title = $description = $color = '';
|
38 |
if(isset($slide['title']))
|
39 |
+
$title = $slide['title'];
|
40 |
if(isset($slide['description']))
|
41 |
+
$description = $slide['description'];
|
42 |
if(isset($slide['color']))
|
43 |
+
$color = $slide['color'];
|
44 |
?>
|
45 |
|
46 |
<p style="padding: 0 5px;">
|
69 |
// Type specific values
|
70 |
$videoId = '';
|
71 |
if(isset($slide['videoId']))
|
72 |
+
$videoId = $slide['videoId'];
|
73 |
?>
|
74 |
|
75 |
<p style="padding: 0 5px;">
|
views/SlideshowPluginPostType/style-settings.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
<?php foreach($settings as $key => $value): ?>
|
4 |
|
5 |
<tr <?php if(!empty($value[5])) echo 'style="display:none;"'; ?>>
|
6 |
-
<td><?php echo
|
7 |
<td><?php echo $inputFields[$key]; ?></td>
|
8 |
-
<td><?php _e('Default', 'slideshow-plugin'); ?>: '<?php echo
|
9 |
</tr>
|
10 |
|
11 |
<?php endforeach; ?>
|
3 |
<?php foreach($settings as $key => $value): ?>
|
4 |
|
5 |
<tr <?php if(!empty($value[5])) echo 'style="display:none;"'; ?>>
|
6 |
+
<td><?php echo $value[3]; ?></td>
|
7 |
<td><?php echo $inputFields[$key]; ?></td>
|
8 |
+
<td><?php _e('Default', 'slideshow-plugin'); ?>: '<?php echo $value[2]; ?>'</td>
|
9 |
</tr>
|
10 |
|
11 |
<?php endforeach; ?>
|
views/SlideshowPluginSlideInserter/search-popup.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<div>
|
5 |
<input type="text" id="search" />
|
6 |
<?php submit_button(__('Search', 'slideshow-plugin'), 'primary', 'search-submit', false); ?>
|
7 |
-
<i><?php _e('Search images by title or ID'); ?></i>
|
8 |
</div>
|
9 |
<div style="clear: both;"></div>
|
10 |
|
4 |
<div>
|
5 |
<input type="text" id="search" />
|
6 |
<?php submit_button(__('Search', 'slideshow-plugin'), 'primary', 'search-submit', false); ?>
|
7 |
+
<i><?php _e('Search images by title or ID', 'slideshow-plugin'); ?></i>
|
8 |
</div>
|
9 |
<div style="clear: both;"></div>
|
10 |
|