Logo Carousel - Version 1.4.4

Version Description

(2014-01-30) = * Reversed some changes from last update, because of a bug

Download this release

Release Info

Developer ysdbjorn
Plugin Icon 128x128 Logo Carousel
Version 1.4.4
Comparing to
See all releases

Code changes from version 1.4.3 to 1.4.4

kiwi_logo_carousel.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /* Plugin Name: Kiwi Logo Carousel
3
- Plugin URL: http://www.yourstyledesign.nl/
4
  Description: Highlight your clients, partners and sponsors on your website in a Logo Carousel
5
- Author: Kiwi Plugins by Yourstyledesign
6
- Version: 1.4.3
7
- Author URI: http://www.yourstyledesign.nl/
8
  License: GPLv2
9
  */
10
 
1
  <?php
2
  /* Plugin Name: Kiwi Logo Carousel
3
+ Plugin URL: http://getkiwi.org/plugins/logo-carousel/
4
  Description: Highlight your clients, partners and sponsors on your website in a Logo Carousel
5
+ Author: Kiwi by Yourstyledesign
6
+ Version: 1.4.4
7
+ Author URI: http://www.getkiwi.org/
8
  License: GPLv2
9
  */
10
 
kiwi_logo_carousel_admin.php CHANGED
@@ -159,51 +159,15 @@ class kiwi_logo_carousel_admin {
159
  // Save the custom metabox data
160
  function metabox_savedata(){
161
 
162
- $post_type = null;
163
- $post_id = null;
164
- $link_field = null;
165
-
166
- if( isset($_GET['post_type']) ) {
167
- $post_type = $_GET['post_type'];
168
- }
169
- else if( isset($_POST['post_type']) ) {
170
- $post_type = $_POST['post_type'];
171
- }
172
- if( isset($_GET['post_id']) ) {
173
- $post_id = $_GET['post_id'];
174
- }
175
- else if( isset($_POST['post_id']) ) {
176
- $post_id = $_POST['post_id'];
177
- }
178
-
179
- if( isset($_GET['kwlogos_link']) ) {
180
- $link_field = $_GET['kwlogos_link'];
181
- }
182
- else if( isset($_POST['kwlogos_link']) ) {
183
- $link_field = $_POST['kwlogos_link'];
184
- }
185
-
186
- if ( 'kwlogos' == $post_type ) {
187
- if ( ! current_user_can( 'edit_posts') ){return;}
188
- }
189
- else {return;}
190
-
191
- if (( !$post_type == null )&& ('kwlogos' == $post_type)) {
192
  if ( ! current_user_can( 'edit_page', $post_id ) ){return;}
193
  }
194
  else {return;}
195
-
196
-
197
- // At this point we have established that we are on a specific post type page and maybe have a specific post id
198
- // and that the user is allowed to save it.
199
  if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ){ return $post_id; }
200
-
201
- if (! $link_field == null) {
202
- $link_field = sanitize_text_field( $link_field );
203
- } else {
204
- $link_field = '';
205
- }
206
- add_post_meta($post_id, '_kwlogos_link', $link_field, true) or update_post_meta($post_id, '_kwlogos_link', $link_field);
207
  }
208
 
209
  // Admin Page
@@ -268,29 +232,6 @@ class kiwi_logo_carousel_admin {
268
  <div class="wrap">
269
  <form method="POST">
270
  <div id="poststuff" class="metabox-holder has-right-sidebar">
271
- <div class="inner-sidebar">
272
- <div id="side-sortables" class="ui-sortable meta-box-sortable">
273
- <div class="postbox">
274
- <h3><span><?php _e('Carousel','kiwi_logo_carousel'); ?></span></h3>
275
- <div class="inside">
276
- <?php submit_button(); ?>
277
- <p><?php _e('Shortcode','kiwi_logo_carousel'); ?>:<br/> <code>[logo-carousel id=<?php echo $carousel; ?>]</code></p>
278
- <p><?php _e('PHP Function (No echo required)','kiwi_logo_carousel'); ?>:<br/> <code>kw_sc_logo_carousel(<?php echo $carousel; ?>);</code></p>
279
- </div>
280
- </div>
281
- <div class="postbox">
282
- <h3><span><?php _e('Donate','kiwi_logo_carousel'); ?></span></h3>
283
- <div class="inside">
284
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
285
- <input type="hidden" name="cmd" value="_s-xclick">
286
- <input type="hidden" name="hosted_button_id" value="K5Z5PN2ZSBE2G">
287
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
288
- <img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
289
- </form>
290
- </div>
291
- </div>
292
- </div>
293
- </div>
294
  <div id="post-body">
295
  <div id="post-body-content">
296
  <div id="normal-sortables" class="meta-box-sortables ui-sortable">
@@ -382,13 +323,13 @@ class kiwi_logo_carousel_admin {
382
  <option value="true" <?php if (isset($p['pager']) && $p['pager']=='true'){echo 'selected';} ?>><?php _e('True','kiwi_logo_carousel'); ?></option>
383
  </select></td>
384
  </tr>
385
- <tr valign="top">
386
  <th scope="row"><?php _e('Show Start and Stop Controls','kiwi_logo_carousel'); ?></th>
387
  <td><select name="klc_autocontrols">
388
  <option value="false" <?php if (isset($p['autoControls']) && $p['autoControls']=='false'){echo 'selected';} ?>><?php _e('False','kiwi_logo_carousel'); ?></option>
389
  <option value="true" <?php if (isset($p['autoControls']) && $p['autoControls']=='true'){echo 'selected';} ?>><?php _e('True','kiwi_logo_carousel'); ?></option>
390
  </select></td>
391
- </tr>
392
  </table>
393
  </div>
394
  </div>
@@ -451,8 +392,30 @@ class kiwi_logo_carousel_admin {
451
  </div>
452
  </div>
453
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
  </div>
455
- </form>
456
  </div>
457
  <?php
458
  }
159
  // Save the custom metabox data
160
  function metabox_savedata(){
161
 
162
+ if ( 'kwlogos' == $_POST['post_type'] ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  if ( ! current_user_can( 'edit_page', $post_id ) ){return;}
164
  }
165
  else {return;}
 
 
 
 
166
  if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ){ return $post_id; }
167
+ $post_ID = $_POST['post_ID'];
168
+ $kwlogos_link = sanitize_text_field( $_POST['kwlogos_link'] );
169
+ add_post_meta($post_ID, '_kwlogos_link', $kwlogos_link, true) or update_post_meta($post_ID, '_kwlogos_link', $kwlogos_link);
170
+
 
 
 
171
  }
172
 
173
  // Admin Page
232
  <div class="wrap">
233
  <form method="POST">
234
  <div id="poststuff" class="metabox-holder has-right-sidebar">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  <div id="post-body">
236
  <div id="post-body-content">
237
  <div id="normal-sortables" class="meta-box-sortables ui-sortable">
323
  <option value="true" <?php if (isset($p['pager']) && $p['pager']=='true'){echo 'selected';} ?>><?php _e('True','kiwi_logo_carousel'); ?></option>
324
  </select></td>
325
  </tr>
326
+ <!--<tr valign="top">
327
  <th scope="row"><?php _e('Show Start and Stop Controls','kiwi_logo_carousel'); ?></th>
328
  <td><select name="klc_autocontrols">
329
  <option value="false" <?php if (isset($p['autoControls']) && $p['autoControls']=='false'){echo 'selected';} ?>><?php _e('False','kiwi_logo_carousel'); ?></option>
330
  <option value="true" <?php if (isset($p['autoControls']) && $p['autoControls']=='true'){echo 'selected';} ?>><?php _e('True','kiwi_logo_carousel'); ?></option>
331
  </select></td>
332
+ </tr>-->
333
  </table>
334
  </div>
335
  </div>
392
  </div>
393
  </div>
394
  </div>
395
+ <div class="inner-sidebar">
396
+ <div id="side-sortables" class="ui-sortable meta-box-sortable">
397
+ <div class="postbox">
398
+ <h3><span><?php _e('Carousel','kiwi_logo_carousel'); ?></span></h3>
399
+ <div class="inside">
400
+ <?php submit_button(); ?>
401
+ <p><?php _e('Shortcode','kiwi_logo_carousel'); ?>:<br/> <code>[logo-carousel id=<?php echo $carousel; ?>]</code></p>
402
+ <p><?php _e('PHP Function (No echo required)','kiwi_logo_carousel'); ?>:<br/> <code>kw_sc_logo_carousel(<?php echo $carousel; ?>);</code></p>
403
+ </div>
404
+ </div></form>
405
+ <div class="postbox">
406
+ <h3><span><?php _e('Donate','kiwi_logo_carousel'); ?></span></h3>
407
+ <div class="inside">
408
+ <form style="text-align:center; width:100%;" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
409
+ <input type="hidden" name="cmd" value="_s-xclick">
410
+ <input type="hidden" name="hosted_button_id" value="K5Z5PN2ZSBE2G">
411
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
412
+ <img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
413
+ </form>
414
+ </div>
415
+ </div>
416
+ </div>
417
+ </div>
418
  </div>
 
419
  </div>
420
  <?php
421
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://getkiwi.org/donate/
4
  Tags: logo, slider, carousel
5
  Requires at least: 3.6
6
  Tested up to: 3.8.1
7
- Stable tag: 1.4.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,13 +48,8 @@ Because the slug 'default' is already used for displaying all the logos.
48
  We tested this plugin with: Internet Explorer 8, 9, 10; Chrome; Safari; Firefox; Opera;
49
 
50
  = What are the server requirements? =
51
-
52
  You need a server running PHP version 5.4 or newer. Older versions are not supported and may cause problems.
53
 
54
- = The slider is not displayed well =
55
-
56
- Some CSS styles in themes may cause problems. Debug your CSS if you have any problems. The developer tools in Chrome or Firefox are a good tool for that. You can also try the Firebug extension for Firefox.
57
-
58
  == Screenshots ==
59
 
60
  1. The Logo Carousel in action
@@ -65,8 +60,11 @@ Some CSS styles in themes may cause problems. Debug your CSS if you have any pro
65
 
66
  == Changelog ==
67
 
 
 
 
68
  = 1.4.3 (2014-01-27) =
69
- * Bugfixes
70
 
71
  = 1.4.2 (2014-01-23) =
72
  * Some little improvements
@@ -75,7 +73,7 @@ Some CSS styles in themes may cause problems. Debug your CSS if you have any pro
75
  * Some changes in the Dutch translation file
76
 
77
  = 1.4.0 (2014-01-10) =
78
- * Bugfix: Ticker Mode glitch when the loop starts over
79
  * Bugfix: Pause on hover in Ticker Mode does not work
80
  * Improvement: Next & Previous controls are now suitable for retina displays.
81
  * Added Autoplay option. Turned on by default.
4
  Tags: logo, slider, carousel
5
  Requires at least: 3.6
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.4.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
  We tested this plugin with: Internet Explorer 8, 9, 10; Chrome; Safari; Firefox; Opera;
49
 
50
  = What are the server requirements? =
 
51
  You need a server running PHP version 5.4 or newer. Older versions are not supported and may cause problems.
52
 
 
 
 
 
53
  == Screenshots ==
54
 
55
  1. The Logo Carousel in action
60
 
61
  == Changelog ==
62
 
63
+ = 1.4.4 (2014-01-30) =
64
+ * Reversed some changes from last update, because of a bug
65
+
66
  = 1.4.3 (2014-01-27) =
67
+ * Some little improvements
68
 
69
  = 1.4.2 (2014-01-23) =
70
  * Some little improvements
73
  * Some changes in the Dutch translation file
74
 
75
  = 1.4.0 (2014-01-10) =
76
+ * Bugfix: Ticker Mode glitch when the loop start over
77
  * Bugfix: Pause on hover in Ticker Mode does not work
78
  * Improvement: Next & Previous controls are now suitable for retina displays.
79
  * Added Autoplay option. Turned on by default.