Slideshow - Version 2.1.13

Version Description

  • Fixed: PHP security issues.
  • Set order of images gotten in 'Image slide' pop-up to post date, descending.
Download this release

Release Info

Developer stefanboonstra
Plugin Icon 128x128 Slideshow
Version 2.1.13
Comparing to
See all releases

Code changes from version 2.1.12 to 2.1.13

classes/SlideshowPluginPostType.php CHANGED
@@ -64,7 +64,7 @@ class SlideshowPluginPostType {
64
  );
65
 
66
  // jQuery
67
- wp_enqueue_script('jquery');
68
  }
69
 
70
  /**
@@ -86,7 +86,7 @@ class SlideshowPluginPostType {
86
  // TODO: These scripts have been moved here from the footer. They need to be always printed in the header
87
  // TODO: a solution for this needs to be found.
88
  // Enqueue scripts required for sorting the slides list
89
- wp_enqueue_script('jquery');
90
  wp_enqueue_script('jquery-ui-sortable');
91
 
92
  // Enqueue JSColor
64
  );
65
 
66
  // jQuery
67
+ //wp_enqueue_script('jquery');
68
  }
69
 
70
  /**
86
  // TODO: These scripts have been moved here from the footer. They need to be always printed in the header
87
  // TODO: a solution for this needs to be found.
88
  // Enqueue scripts required for sorting the slides list
89
+ //wp_enqueue_script('jquery');
90
  wp_enqueue_script('jquery-ui-sortable');
91
 
92
  // Enqueue JSColor
classes/SlideshowPluginSlideInserter.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Class SlideshowPluginSlideInserter
4
  *
5
- * TODO This class will probanbly need to be renamed to SlideshowPluginSlideHandler to explain more functionality
6
  * TODO than just inserting slides. (Show and delete functionality should be applied here as well)
7
  * @author Stefan Boonstra
8
  * @version 03-10-2012
@@ -101,8 +101,8 @@ class SlideshowPluginSlideInserter {
101
  $attachments = get_posts(array(
102
  'numberposts' => $numberPosts + 1,
103
  'offset' => $offset,
104
- 'orderby' => 'post_title',
105
- 'order' => 'ASC',
106
  'post_type' => 'attachment',
107
  'suppress_filters' => false
108
  ));
@@ -209,6 +209,14 @@ class SlideshowPluginSlideInserter {
209
  array('jquery')
210
  );
211
 
 
 
 
 
 
 
 
 
212
  // Set enqueued to true
213
  self::$enqueuedFiles = true;
214
  }
2
  /**
3
  * Class SlideshowPluginSlideInserter
4
  *
5
+ * TODO This class will probably need to be renamed to SlideshowPluginSlideHandler to explain more functionality
6
  * TODO than just inserting slides. (Show and delete functionality should be applied here as well)
7
  * @author Stefan Boonstra
8
  * @version 03-10-2012
101
  $attachments = get_posts(array(
102
  'numberposts' => $numberPosts + 1,
103
  'offset' => $offset,
104
+ 'orderby' => 'post_date',
105
+ 'order' => 'DESC',
106
  'post_type' => 'attachment',
107
  'suppress_filters' => false
108
  ));
209
  array('jquery')
210
  );
211
 
212
+ wp_localize_script(
213
+ 'slideshow-slide-inserter',
214
+ 'SlideInserterTranslations',
215
+ array(
216
+ 'confirmMessage' => __('Are you sure you want to delete this slide?', 'slideshow-plugin')
217
+ )
218
+ );
219
+
220
  // Set enqueued to true
221
  self::$enqueuedFiles = true;
222
  }
js/SlideshowPluginSlideInserter/slide-inserter.js CHANGED
@@ -82,7 +82,11 @@ jQuery(document).ready(function(){
82
  * Ajax deletes a slide from the slides list and from the database
83
  */
84
  jQuery('.slideshow-delete-slide').click(function(){
85
- var deleteSlide = confirm('Are you sure you want to delete this slide?');
 
 
 
 
86
  if(!deleteSlide)
87
  return;
88
 
82
  * Ajax deletes a slide from the slides list and from the database
83
  */
84
  jQuery('.slideshow-delete-slide').click(function(){
85
+ var confirmMessage = 'Are you sure you want to delete this slide?';
86
+ if(typeof SlideInserterTranslations !== undefined)
87
+ confirmMessage = SlideInserterTranslations.confirmMessage;
88
+
89
+ var deleteSlide = confirm(confirmMessage);
90
  if(!deleteSlide)
91
  return;
92
 
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-09-24 00:27+0100\n"
6
- "PO-Revision-Date: 2012-09-24 00:27+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"
@@ -15,195 +15,206 @@ msgstr ""
15
  "X-Poedit-Country: NETHERLANDS\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
 
18
- #: classes/SlideshowPluginPostType.php:39
19
  msgid "Slideshows"
20
  msgstr "Slideshows"
21
 
22
- #: classes/SlideshowPluginPostType.php:40
23
  msgid "Slideshow"
24
  msgstr "Slideshow"
25
 
26
- #: classes/SlideshowPluginPostType.php:41
27
  msgid "Add New Slideshow"
28
  msgstr "Nieuwe Slideshow Toevoegen"
29
 
30
- #: classes/SlideshowPluginPostType.php:42
31
  msgid "Edit slideshow"
32
  msgstr "Slideshow bewerken"
33
 
34
- #: classes/SlideshowPluginPostType.php:43
35
  msgid "New slideshow"
36
  msgstr "Nieuwe slideshow"
37
 
38
- #: classes/SlideshowPluginPostType.php:44
39
  msgid "View slideshow"
40
  msgstr "Slideshow bekijken"
41
 
42
- #: classes/SlideshowPluginPostType.php:45
43
  msgid "Search slideshows"
44
  msgstr "Slideshows zoeken"
45
 
46
- #: classes/SlideshowPluginPostType.php:46
47
  #: classes/SlideshowPluginPostType.php:47
 
48
  msgid "No slideshows found"
49
  msgstr "Geen slideshows gevonden"
50
 
51
- #: classes/SlideshowPluginPostType.php:79
52
  msgid "Information"
53
  msgstr "Informatie"
54
 
55
- #: classes/SlideshowPluginPostType.php:88
56
  msgid "Slides List"
57
  msgstr "Slides Lijst"
58
 
59
- #: classes/SlideshowPluginPostType.php:97
60
  msgid "Slideshow Style"
61
  msgstr "Slideshow Stijl"
62
 
63
- #: classes/SlideshowPluginPostType.php:106
64
  msgid "Slideshow Settings"
65
  msgstr "Slideshow Instellingen"
66
 
67
- #: classes/SlideshowPluginPostType.php:382
68
  msgid "Yes"
69
  msgstr "Ja"
70
 
71
- #: classes/SlideshowPluginPostType.php:383
72
  msgid "No"
73
  msgstr "Nee"
74
 
75
- #: classes/SlideshowPluginPostType.php:385
76
  msgid "The style used for this slideshow"
77
  msgstr "De stijl te gebruiken voor deze slideshow"
78
 
79
- #: classes/SlideshowPluginPostType.php:385
80
  msgid "Light"
81
  msgstr "Licht"
82
 
83
- #: classes/SlideshowPluginPostType.php:385
84
  msgid "Dark"
85
  msgstr "Donker"
86
 
87
- #: classes/SlideshowPluginPostType.php:385
88
  msgid "Custom"
89
  msgstr "Aangepast"
90
 
91
- #: classes/SlideshowPluginPostType.php:386
92
  msgid "Custom style editor"
93
  msgstr "Aangepaste stijl bewerker"
94
 
95
- #: classes/SlideshowPluginPostType.php:387
96
  msgid "Animation used for transition between slides"
97
  msgstr "Animatie tussen het wisselen van de slides"
98
 
99
- #: classes/SlideshowPluginPostType.php:387
100
  msgid "Slide"
101
  msgstr "Slide"
102
 
103
- #: classes/SlideshowPluginPostType.php:387
104
  msgid "Fade"
105
  msgstr "Fade"
106
 
107
- #: classes/SlideshowPluginPostType.php:387
108
- #: classes/SlideshowPluginPostType.php:388
109
- #: classes/SlideshowPluginPostType.php:389
110
- #: classes/SlideshowPluginPostType.php:390
111
  msgid "Animation"
112
  msgstr "Animatie"
113
 
114
- #: classes/SlideshowPluginPostType.php:388
115
  msgid "Number of seconds the slide takes to slide in"
116
  msgstr "Aantal seconden dat de animatie van het inschuiven van de volgende slide duurt"
117
 
118
- #: classes/SlideshowPluginPostType.php:389
119
  msgid "Number of seconds the description takes to slide in"
120
  msgstr "Aantal seconden dat het inschuiven van de beschrijving duurt"
121
 
122
- #: classes/SlideshowPluginPostType.php:390
123
  msgid "Seconds between changing slides"
124
  msgstr "Seconden tussen het wisselen van de slides"
125
 
126
- #: classes/SlideshowPluginPostType.php:391
127
  msgid "Number of slides to fit into one slide"
128
  msgstr "Aantal slides om in een slide te plaatsen"
129
 
130
- #: classes/SlideshowPluginPostType.php:391
131
- #: classes/SlideshowPluginPostType.php:392
132
- #: classes/SlideshowPluginPostType.php:393
133
- #: classes/SlideshowPluginPostType.php:394
134
- #: classes/SlideshowPluginPostType.php:395
135
- #: classes/SlideshowPluginPostType.php:396
136
- #: classes/SlideshowPluginPostType.php:397
137
  msgid "Display"
138
  msgstr "Weergave"
139
 
140
- #: classes/SlideshowPluginPostType.php:392
141
  msgid "Width of the slideshow, set to parent&#39;s width on 0"
142
  msgstr "Breedte van de slideshow, past zich aan op bovenliggende element wanneer 0"
143
 
144
- #: classes/SlideshowPluginPostType.php:393
145
  msgid "Height of the slideshow"
146
  msgstr "Hoogte van de slideshow"
147
 
148
- #: classes/SlideshowPluginPostType.php:394
149
  msgid "Height of the description boxes"
150
  msgstr "Hoogte van de beschrijvingen"
151
 
152
- #: classes/SlideshowPluginPostType.php:395
153
  msgid "Fit image into slide (stretching it)"
154
  msgstr "Pas afbeelding in de slideshow (oprekken)"
155
 
156
- #: classes/SlideshowPluginPostType.php:396
157
  msgid "Show title and description"
158
  msgstr "Toon titel en beschrijving"
159
 
160
- #: classes/SlideshowPluginPostType.php:397
161
  msgid "Hide description box, it will pop up when a mouse hovers over the slide"
162
  msgstr "Verbeg beschrijving, toon de slide alleen wanneer de muisaanwijzer boven de slide is"
163
 
164
- #: classes/SlideshowPluginPostType.php:398
165
  msgid "Automatically slide to the next slide"
166
  msgstr "Automatisch naar de volgende slide gaan"
167
 
168
- #: classes/SlideshowPluginPostType.php:398
169
- #: classes/SlideshowPluginPostType.php:399
170
- #: classes/SlideshowPluginPostType.php:400
171
- #: classes/SlideshowPluginPostType.php:401
172
  msgid "Control"
173
  msgstr "Controle"
174
 
175
- #: classes/SlideshowPluginPostType.php:399
176
  msgid "Return to the beginning of the slideshow after last slide"
177
  msgstr "Keer terug naar het begin van de slideshow na de laatste slide."
178
 
179
- #: classes/SlideshowPluginPostType.php:400
180
  msgid "Activate buttons (so the user can scroll through the slides)"
181
  msgstr "Knoppen activeren (zodat de gebruiker door de slides kan scrollen)"
182
 
183
- #: classes/SlideshowPluginPostType.php:401
184
  msgid "Show control panel (play and pause button)"
185
  msgstr "Toon controlepaneel (speel en pause knop)"
186
 
187
- #: classes/SlideshowPluginPostType.php:402
188
  msgid "Randomize slides"
189
  msgstr "Toon slides in willekeurige volgorde"
190
 
191
- #: classes/SlideshowPluginPostType.php:402
 
192
  msgid "Miscellaneous"
193
  msgstr "Overige"
194
 
195
- #: classes/SlideshowPluginSlideInserter.php:135
 
 
 
 
 
 
196
  msgid "Insert"
197
  msgstr "Invoegen"
198
 
199
- #: classes/SlideshowPluginSlideInserter.php:144
200
  msgid "Load more results"
201
  msgstr "Meer resultaten laden"
202
 
203
- #: classes/SlideshowPluginSlideInserter.php:153
204
  msgid "No images were found, click here to upload some."
205
  msgstr "Geen afbeeldingen gevonden, klik hier om afbeeldingen te uploaden."
206
 
 
 
 
 
207
  #: classes/SlideshowPluginWidget.php:20
208
  msgid "Enables you to show your slideshows in the widget area of your website."
209
  msgstr "Maakt het mogelijk je slideshows te bijken in het widget gebied van je website."
@@ -225,12 +236,12 @@ msgstr "Of je voegt dit stuk code toe aan je broncode op de plaats waar je wilt
225
  msgid "Or go to the %swidgets page%s and show the slideshow as a widget."
226
  msgstr "Ook kan je naar de %swidget pagina%s toegaan, om de slideshow te tonen als widget."
227
 
228
- #: views/SlideshowPluginPostType/settings.php:10
229
  msgid "settings"
230
  msgstr "instellingen"
231
 
232
- #: views/SlideshowPluginPostType/settings.php:24
233
- #: views/SlideshowPluginPostType/style-settings.php:6
234
  msgid "Default"
235
  msgstr "Standaard"
236
 
2
  msgstr ""
3
  "Project-Id-Version: Slideshow Plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-10-28 00:21+0100\n"
6
+ "PO-Revision-Date: 2012-10-28 00:22+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"
15
  "X-Poedit-Country: NETHERLANDS\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
 
18
+ #: classes/SlideshowPluginPostType.php:40
19
  msgid "Slideshows"
20
  msgstr "Slideshows"
21
 
22
+ #: classes/SlideshowPluginPostType.php:41
23
  msgid "Slideshow"
24
  msgstr "Slideshow"
25
 
26
+ #: classes/SlideshowPluginPostType.php:42
27
  msgid "Add New Slideshow"
28
  msgstr "Nieuwe Slideshow Toevoegen"
29
 
30
+ #: classes/SlideshowPluginPostType.php:43
31
  msgid "Edit slideshow"
32
  msgstr "Slideshow bewerken"
33
 
34
+ #: classes/SlideshowPluginPostType.php:44
35
  msgid "New slideshow"
36
  msgstr "Nieuwe slideshow"
37
 
38
+ #: classes/SlideshowPluginPostType.php:45
39
  msgid "View slideshow"
40
  msgstr "Slideshow bekijken"
41
 
42
+ #: classes/SlideshowPluginPostType.php:46
43
  msgid "Search slideshows"
44
  msgstr "Slideshows zoeken"
45
 
 
46
  #: classes/SlideshowPluginPostType.php:47
47
+ #: classes/SlideshowPluginPostType.php:48
48
  msgid "No slideshows found"
49
  msgstr "Geen slideshows gevonden"
50
 
51
+ #: classes/SlideshowPluginPostType.php:105
52
  msgid "Information"
53
  msgstr "Informatie"
54
 
55
+ #: classes/SlideshowPluginPostType.php:114
56
  msgid "Slides List"
57
  msgstr "Slides Lijst"
58
 
59
+ #: classes/SlideshowPluginPostType.php:123
60
  msgid "Slideshow Style"
61
  msgstr "Slideshow Stijl"
62
 
63
+ #: classes/SlideshowPluginPostType.php:132
64
  msgid "Slideshow Settings"
65
  msgstr "Slideshow Instellingen"
66
 
67
+ #: classes/SlideshowPluginPostType.php:402
68
  msgid "Yes"
69
  msgstr "Ja"
70
 
71
+ #: classes/SlideshowPluginPostType.php:403
72
  msgid "No"
73
  msgstr "Nee"
74
 
75
+ #: classes/SlideshowPluginPostType.php:405
76
  msgid "The style used for this slideshow"
77
  msgstr "De stijl te gebruiken voor deze slideshow"
78
 
79
+ #: classes/SlideshowPluginPostType.php:405
80
  msgid "Light"
81
  msgstr "Licht"
82
 
83
+ #: classes/SlideshowPluginPostType.php:405
84
  msgid "Dark"
85
  msgstr "Donker"
86
 
87
+ #: classes/SlideshowPluginPostType.php:405
88
  msgid "Custom"
89
  msgstr "Aangepast"
90
 
91
+ #: classes/SlideshowPluginPostType.php:406
92
  msgid "Custom style editor"
93
  msgstr "Aangepaste stijl bewerker"
94
 
95
+ #: classes/SlideshowPluginPostType.php:407
96
  msgid "Animation used for transition between slides"
97
  msgstr "Animatie tussen het wisselen van de slides"
98
 
99
+ #: classes/SlideshowPluginPostType.php:407
100
  msgid "Slide"
101
  msgstr "Slide"
102
 
103
+ #: classes/SlideshowPluginPostType.php:407
104
  msgid "Fade"
105
  msgstr "Fade"
106
 
107
+ #: classes/SlideshowPluginPostType.php:407
108
+ #: classes/SlideshowPluginPostType.php:408
109
+ #: classes/SlideshowPluginPostType.php:409
110
+ #: classes/SlideshowPluginPostType.php:410
111
  msgid "Animation"
112
  msgstr "Animatie"
113
 
114
+ #: classes/SlideshowPluginPostType.php:408
115
  msgid "Number of seconds the slide takes to slide in"
116
  msgstr "Aantal seconden dat de animatie van het inschuiven van de volgende slide duurt"
117
 
118
+ #: classes/SlideshowPluginPostType.php:409
119
  msgid "Number of seconds the description takes to slide in"
120
  msgstr "Aantal seconden dat het inschuiven van de beschrijving duurt"
121
 
122
+ #: classes/SlideshowPluginPostType.php:410
123
  msgid "Seconds between changing slides"
124
  msgstr "Seconden tussen het wisselen van de slides"
125
 
126
+ #: classes/SlideshowPluginPostType.php:411
127
  msgid "Number of slides to fit into one slide"
128
  msgstr "Aantal slides om in een slide te plaatsen"
129
 
130
+ #: classes/SlideshowPluginPostType.php:411
131
+ #: classes/SlideshowPluginPostType.php:412
132
+ #: classes/SlideshowPluginPostType.php:413
133
+ #: classes/SlideshowPluginPostType.php:414
134
+ #: classes/SlideshowPluginPostType.php:415
135
+ #: classes/SlideshowPluginPostType.php:416
136
+ #: classes/SlideshowPluginPostType.php:417
137
  msgid "Display"
138
  msgstr "Weergave"
139
 
140
+ #: classes/SlideshowPluginPostType.php:412
141
  msgid "Width of the slideshow, set to parent&#39;s width on 0"
142
  msgstr "Breedte van de slideshow, past zich aan op bovenliggende element wanneer 0"
143
 
144
+ #: classes/SlideshowPluginPostType.php:413
145
  msgid "Height of the slideshow"
146
  msgstr "Hoogte van de slideshow"
147
 
148
+ #: classes/SlideshowPluginPostType.php:414
149
  msgid "Height of the description boxes"
150
  msgstr "Hoogte van de beschrijvingen"
151
 
152
+ #: classes/SlideshowPluginPostType.php:415
153
  msgid "Fit image into slide (stretching it)"
154
  msgstr "Pas afbeelding in de slideshow (oprekken)"
155
 
156
+ #: classes/SlideshowPluginPostType.php:416
157
  msgid "Show title and description"
158
  msgstr "Toon titel en beschrijving"
159
 
160
+ #: classes/SlideshowPluginPostType.php:417
161
  msgid "Hide description box, it will pop up when a mouse hovers over the slide"
162
  msgstr "Verbeg beschrijving, toon de slide alleen wanneer de muisaanwijzer boven de slide is"
163
 
164
+ #: classes/SlideshowPluginPostType.php:418
165
  msgid "Automatically slide to the next slide"
166
  msgstr "Automatisch naar de volgende slide gaan"
167
 
168
+ #: classes/SlideshowPluginPostType.php:418
169
+ #: classes/SlideshowPluginPostType.php:419
170
+ #: classes/SlideshowPluginPostType.php:420
171
+ #: classes/SlideshowPluginPostType.php:421
172
  msgid "Control"
173
  msgstr "Controle"
174
 
175
+ #: classes/SlideshowPluginPostType.php:419
176
  msgid "Return to the beginning of the slideshow after last slide"
177
  msgstr "Keer terug naar het begin van de slideshow na de laatste slide."
178
 
179
+ #: classes/SlideshowPluginPostType.php:420
180
  msgid "Activate buttons (so the user can scroll through the slides)"
181
  msgstr "Knoppen activeren (zodat de gebruiker door de slides kan scrollen)"
182
 
183
+ #: classes/SlideshowPluginPostType.php:421
184
  msgid "Show control panel (play and pause button)"
185
  msgstr "Toon controlepaneel (speel en pause knop)"
186
 
187
+ #: classes/SlideshowPluginPostType.php:422
188
  msgid "Randomize slides"
189
  msgstr "Toon slides in willekeurige volgorde"
190
 
191
+ #: classes/SlideshowPluginPostType.php:422
192
+ #: classes/SlideshowPluginPostType.php:424
193
  msgid "Miscellaneous"
194
  msgstr "Overige"
195
 
196
+ #: classes/SlideshowPluginPostType.php:424
197
+ #, php-format
198
+ msgid "Avoid content filter (disable if '%s' is shown)"
199
+ msgstr "Content filter omzeilen (uitschakelen als '%s' wordt getoond)"
200
+
201
+ #: classes/SlideshowPluginSlideInserter.php:138
202
+ #: views/SlideshowPluginPostType/slides.php:2
203
  msgid "Insert"
204
  msgstr "Invoegen"
205
 
206
+ #: classes/SlideshowPluginSlideInserter.php:147
207
  msgid "Load more results"
208
  msgstr "Meer resultaten laden"
209
 
210
+ #: classes/SlideshowPluginSlideInserter.php:156
211
  msgid "No images were found, click here to upload some."
212
  msgstr "Geen afbeeldingen gevonden, klik hier om afbeeldingen te uploaden."
213
 
214
+ #: classes/SlideshowPluginSlideInserter.php:216
215
+ msgid "Are you sure you want to delete this slide?"
216
+ msgstr "Weet je zeker dat je deze slide wilt verwijderen?"
217
+
218
  #: classes/SlideshowPluginWidget.php:20
219
  msgid "Enables you to show your slideshows in the widget area of your website."
220
  msgstr "Maakt het mogelijk je slideshows te bijken in het widget gebied van je website."
236
  msgid "Or go to the %swidgets page%s and show the slideshow as a widget."
237
  msgstr "Ook kan je naar de %swidget pagina%s toegaan, om de slideshow te tonen als widget."
238
 
239
+ #: views/SlideshowPluginPostType/settings.php:12
240
  msgid "settings"
241
  msgstr "instellingen"
242
 
243
+ #: views/SlideshowPluginPostType/settings.php:26
244
+ #: views/SlideshowPluginPostType/style-settings.php:8
245
  msgid "Default"
246
  msgstr "Standaard"
247
 
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.12
9
  License: GPLv2
10
 
11
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
@@ -111,6 +111,10 @@ 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.12 =
115
  * Moved slideshow activation to the footer script. Footer jQuery scripts are now supported.
116
 
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.13
9
  License: GPLv2
10
 
11
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
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.
117
+
118
  = 2.1.12 =
119
  * Moved slideshow activation to the footer script. Footer jQuery scripts are now supported.
120
 
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.12
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.12';
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.13
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.13';
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 $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,9 +8,9 @@
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,14 +18,14 @@
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,12 +37,12 @@
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,7 +52,7 @@
52
  <?php
53
  $postId = '';
54
  if(isset($slide['postId']) && is_numeric($slide['postId']))
55
- $postId = $slide['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 = $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,7 +113,7 @@
113
 
114
  <?php if(!empty($style)): ?>
115
  <style type="text/css">
116
- <?php echo $style; ?>
117
  </style>
118
  <?php endif; ?>
119
  </div>
1
+ <div class="slideshow_container slideshow_container_<?php echo htmlentities($randomId); ?>" style="width: <?php echo (is_numeric($settings['width']))? htmlentities($settings['width']) : 0; ?>px; height: <?php echo (is_numeric($settings['height']))? htmlentities($settings['height']) : 0; ?>px;">
2
+ <div class="slideshow_overflow" style="width: <?php echo (is_numeric($settings['width']))? htmlentities($settings['width']) : 0; ?>px; height: <?php echo (is_numeric($settings['height']))? htmlentities($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 = htmlentities($slide['url']);
12
  if(isset($slide['urlTarget']))
13
+ $target = htmlentities($slide['urlTarget']);
14
  ?>
15
 
16
  <?php if($slide['type'] == 'text'): ?>
18
  <?php
19
  $title = $description = $color = '';
20
  if(isset($slide['title']))
21
+ $title = htmlentities($slide['title']);
22
  if(isset($slide['description']))
23
+ $description = htmlentities($slide['description']);
24
  if(isset($slide['color']))
25
+ $color = htmlentities($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']))? htmlentities($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 = htmlentities($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']))? htmlentities($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 = htmlentities($slide['postId']);
56
  else
57
  continue;
58
 
64
  $imageSrc = '';
65
  if(!is_array($image) || !$image){
66
  if(!empty($attachment->guid))
67
+ $imageSrc = htmlentities($attachment->guid);
68
  else
69
  continue;
70
  }else{
71
+ $imageSrc = htmlentities($image[0]);
72
  }
73
  ?>
74
 
75
+ <div class="slide slide_<?php echo $i; ?>" style="height: <?php echo (is_numeric($settings['height']))? htmlentities($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 htmlentities($attachment->post_title); ?></h2>
79
+ <p><?php echo htmlentities($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 htmlentities($imageSrc); ?>"
85
+ alt="<?php echo htmlentities($attachment->post_title); ?>"
86
  />
87
  </a>
88
  </div>
113
 
114
  <?php if(!empty($style)): ?>
115
  <style type="text/css">
116
+ <?php echo htmlentities($style); ?>
117
  </style>
118
  <?php endif; ?>
119
  </div>
views/SlideshowPluginPostType/settings.php CHANGED
@@ -1,27 +1,31 @@
1
  <table>
2
  <?php $groups = array(); ?>
 
3
  <?php foreach($settings as $key => $value): ?>
4
- <?php if(!isset($value) || !is_array($value)) continue; ?>
5
 
6
- <?php if(!empty($value['group']) && !isset($groups[$value['group']])): $groups[$value['group']] = true; ?>
7
- <tr>
8
- <td colspan="3" style="border-bottom: 1px solid #dfdfdf; text-align: center;">
9
- <span style="display: inline-block; position: relative; top: 9px; padding: 0 12px; background: #f8f8f8;">
10
- <?php echo $value['group']; ?> <?php _e('settings', 'slideshow-plugin'); ?>
11
- </span>
12
- </td>
13
- </tr>
14
- <tr>
15
- <td colspan="3"></td>
16
- </tr>
17
- <?php endif; ?>
18
- <tr
19
- <?php echo !empty($value['group'])? 'class="group-' . strtolower(str_replace(' ', '-', $value['group'])) . '"': ''; ?>
20
- <?php echo !empty($value[5])? 'style="display:none;"': ''; ?>
21
- >
22
- <td><?php echo $value[3]; ?></td>
23
- <td><?php echo $inputFields[$key]; ?></td>
24
- <td><?php _e('Default', 'slideshow-plugin'); ?>: &#39;<?php echo (isset($value[4]))? $value[4][$value[2]]: $value[2]; ?>&#39;</td>
25
- </tr>
 
 
 
26
  <?php endforeach; ?>
 
27
  </table>
1
  <table>
2
  <?php $groups = array(); ?>
3
+ <?php if(count($settings) > 0): ?>
4
  <?php foreach($settings as $key => $value): ?>
 
5
 
6
+ <?php if(!isset($value) || !is_array($value)) continue; ?>
7
+
8
+ <?php if(!empty($value['group']) && !isset($groups[$value['group']])): $groups[$value['group']] = true; ?>
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 htmlentities($value['group']); ?> <?php _e('settings', 'slideshow-plugin'); ?>
13
+ </span>
14
+ </td>
15
+ </tr>
16
+ <tr>
17
+ <td colspan="3"></td>
18
+ </tr>
19
+ <?php endif; ?>
20
+ <tr
21
+ <?php echo !empty($value['group'])? 'class="group-' . htmlentities(strtolower(str_replace(' ', '-', $value['group']))) . '"': ''; ?>
22
+ <?php echo !empty($value[5])? 'style="display:none;"': ''; ?>
23
+ >
24
+ <td><?php echo htmlentities($value[3]); ?></td>
25
+ <td><?php echo $inputFields[$key]; ?></td>
26
+ <td><?php _e('Default', 'slideshow-plugin'); ?>: &#39;<?php echo (isset($value[4]))? htmlentities($value[4][$value[2]]): htmlentities($value[2]); ?>&#39;</td>
27
+ </tr>
28
+
29
  <?php endforeach; ?>
30
+ <?php endif; ?>
31
  </table>
views/SlideshowPluginPostType/slides.php CHANGED
@@ -1,5 +1,5 @@
1
  <p style="text-align: center;">
2
- <i>Insert:</i><br/>
3
  <?php echo SlideshowPluginSlideInserter::getImageSlideInsertButton(); ?>
4
  <?php echo SlideshowPluginSlideInserter::getTextSlideInsertButton(); ?>
5
  <?php echo SlideshowPluginSlideInserter::getVideoSlideInsertButton(); ?>
@@ -15,7 +15,7 @@
15
  }
16
  </style>
17
  <script type="text/javascript">
18
- var slideshowHighestSlideId = <?php echo $highestSlideId; ?>
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 = $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,11 +36,11 @@
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,7 +69,7 @@
69
  // Type specific values
70
  $videoId = '';
71
  if(isset($slide['videoId']))
72
- $videoId = $slide['videoId'];
73
  ?>
74
 
75
  <p style="padding: 0 5px;">
1
  <p style="text-align: center;">
2
+ <i><?php _e('Insert', 'slideshow-plugin'); ?>:</i><br/>
3
  <?php echo SlideshowPluginSlideInserter::getImageSlideInsertButton(); ?>
4
  <?php echo SlideshowPluginSlideInserter::getTextSlideInsertButton(); ?>
5
  <?php echo SlideshowPluginSlideInserter::getVideoSlideInsertButton(); ?>
15
  }
16
  </style>
17
  <script type="text/javascript">
18
+ var slideshowHighestSlideId = <?php echo htmlentities($highestSlideId); ?>
19
  </script>
20
 
21
  <ul class="sortable-slides-list">
23
  // General values
24
  $id = $url = $order = '';
25
  if(isset($slide['id']))
26
+ $id = htmlentities($slide['id']);
27
  if(isset($slide['url']))
28
+ $url = htmlentities($slide['url']);
29
  if(isset($slide['order']))
30
+ $order = htmlentities($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 = htmlentities($slide['title']);
40
  if(isset($slide['description']))
41
+ $description = htmlentities($slide['description']);
42
  if(isset($slide['color']))
43
+ $color = htmlentities($slide['color']);
44
  ?>
45
 
46
  <p style="padding: 0 5px;">
69
  // Type specific values
70
  $videoId = '';
71
  if(isset($slide['videoId']))
72
+ $videoId = htmlentities($slide['videoId']);
73
  ?>
74
 
75
  <p style="padding: 0 5px;">
views/SlideshowPluginPostType/style-settings.php CHANGED
@@ -1,9 +1,13 @@
1
  <table>
 
2
  <?php foreach($settings as $key => $value): ?>
3
- <tr <?php if(!empty($value[5])) echo 'style="display:none;"'; ?>>
4
- <td><?php echo $value[3]; ?></td>
5
- <td><?php echo $inputFields[$key]; ?></td>
6
- <td><?php _e('Default', 'slideshow-plugin'); ?>: &#39;<?php echo $value[2]; ?>&#39;</td>
7
- </tr>
 
 
8
  <?php endforeach; ?>
 
9
  </table>
1
  <table>
2
+ <?php if(count($settings) > 0): ?>
3
  <?php foreach($settings as $key => $value): ?>
4
+
5
+ <tr <?php if(!empty($value[5])) echo 'style="display:none;"'; ?>>
6
+ <td><?php echo htmlentities($value[3]); ?></td>
7
+ <td><?php echo $inputFields[$key]; ?></td>
8
+ <td><?php _e('Default', 'slideshow-plugin'); ?>: &#39;<?php echo htmlentities($value[2]); ?>&#39;</td>
9
+ </tr>
10
+
11
  <?php endforeach; ?>
12
+ <?php endif; ?>
13
  </table>