Cyclone Slider - Version 2.2.5

Version Description

  • 2013-02-23
Download this release

Release Info

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

Code changes from version 2.2.4 to 2.2.5

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.codefleet.net/donate/
4
  Tags: slider, slideshow, jquery, cycle 2, responsive, multilingual support, custom post, cyclone slider
5
  Requires at least: 3.3.2
6
  Tested up to: 3.5.1
7
- Stable tag: 2.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -87,6 +87,9 @@ Inside your theme create a folder named "cycloneslider". Add your templates insi
87
 
88
  == Changelog ==
89
 
 
 
 
90
  = 2.2.4 - 2013-02-22 =
91
  * Now compiles the template CSS and JS files instead of using template_redirect hook. This is to fix problems with some users reporting broken css and js.
92
  * Minified CSS and JS for templates.
@@ -140,6 +143,9 @@ Inside your theme create a folder named "cycloneslider". Add your templates insi
140
 
141
  == Upgrade Notice ==
142
 
 
 
 
143
  = 2.2.4 - 2013-02-22 =
144
  * Now compiles the template CSS and JS files instead of using template_redirect hook. This is to fix problems with some users reporting broken css and js.
145
  * Minified CSS and JS for templates.
4
  Tags: slider, slideshow, jquery, cycle 2, responsive, multilingual support, custom post, cyclone slider
5
  Requires at least: 3.3.2
6
  Tested up to: 3.5.1
7
+ Stable tag: 2.2.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
87
 
88
  == Changelog ==
89
 
90
+ = 2.2.5 - 2013-02-23 =
91
+ * Bug fix for 2.2.4
92
+
93
  = 2.2.4 - 2013-02-22 =
94
  * Now compiles the template CSS and JS files instead of using template_redirect hook. This is to fix problems with some users reporting broken css and js.
95
  * Minified CSS and JS for templates.
143
 
144
  == Upgrade Notice ==
145
 
146
+ = 2.2.5 - 2013-02-23 =
147
+ * Bug fix for 2.2.4
148
+
149
  = 2.2.4 - 2013-02-22 =
150
  * Now compiles the template CSS and JS files instead of using template_redirect hook. This is to fix problems with some users reporting broken css and js.
151
  * Minified CSS and JS for templates.
cyclone-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Cyclone Slider 2
4
  Plugin URI: http://www.codefleet.net/cyclone-slider-2/
5
  Description: Create responsive slideshows with ease. Built for both developers and non-developers.
6
- Version: 2.2.4
7
  Author: Nico Amarilla
8
  Author URI: http://www.codefleet.net/
9
  License:
3
  Plugin Name: Cyclone Slider 2
4
  Plugin URI: http://www.codefleet.net/cyclone-slider-2/
5
  Description: Create responsive slideshows with ease. Built for both developers and non-developers.
6
+ Version: 2.2.5
7
  Author: Nico Amarilla
8
  Author URI: http://www.codefleet.net/
9
  License:
inc/class-cyclone-slider.php CHANGED
@@ -9,7 +9,7 @@ if(!class_exists('Cyclone_Slider')):
9
  /**
10
  * Initializes the plugin by setting localization, filters, and administration functions.
11
  */
12
- function __construct() {
13
  // Set defaults
14
  $this->slider_count = 0;
15
  $this->effects = self::get_slide_effects();
@@ -129,7 +129,7 @@ if(!class_exists('Cyclone_Slider')):
129
  * Core Functions
130
  *---------------------------------------------*/
131
  // Create custom post for slideshows
132
- function create_post_types() {
133
  register_post_type( 'cycloneslider',
134
  array(
135
  'labels' => array(
@@ -154,7 +154,7 @@ if(!class_exists('Cyclone_Slider')):
154
  }
155
 
156
  // Slides metabox init
157
- function add_meta_boxes(){
158
  add_meta_box(
159
  'cyclone-slides-metabox',
160
  __('Slides', 'cycloneslider'),
@@ -182,7 +182,7 @@ if(!class_exists('Cyclone_Slider')):
182
  }
183
 
184
  // Get Image mime type. @param $image - full path to image
185
- function get_mime_type( $image ){
186
  if($properties = getimagesize( $image )){
187
  return $properties['mime'];
188
  }
@@ -190,7 +190,7 @@ if(!class_exists('Cyclone_Slider')):
190
  }
191
 
192
  // Slides metabox render
193
- function render_slides_meta_box($post){
194
 
195
  // Use nonce for verification
196
  echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
@@ -227,7 +227,7 @@ if(!class_exists('Cyclone_Slider')):
227
  <?php
228
  }
229
 
230
- function render_slider_properties_meta_box($post){
231
  // Use nonce for verification
232
  echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
233
 
@@ -242,7 +242,7 @@ if(!class_exists('Cyclone_Slider')):
242
  include(self::get_admin_parts_folder() . 'slider-properties.php');
243
  }
244
 
245
- function render_slider_templates_meta_box($post){
246
  // Use nonce for verification
247
  echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
248
 
@@ -290,7 +290,7 @@ if(!class_exists('Cyclone_Slider')):
290
  <?php
291
  }
292
 
293
- function save_post($post_id){
294
 
295
  // Verify nonce
296
  $nonce_name = 'cycloneslider_metabox_nonce';
@@ -323,7 +323,7 @@ if(!class_exists('Cyclone_Slider')):
323
  }
324
 
325
  //sanitize and save
326
- function save_metas($post_id){
327
  $slides = array();
328
  if(isset($_POST['cycloneslider_metas'])){
329
 
@@ -361,7 +361,7 @@ if(!class_exists('Cyclone_Slider')):
361
  }
362
 
363
  //sanitize and save
364
- function save_settings($post_id){
365
  if(isset($_POST['cycloneslider_settings'])){
366
  $_POST['cycloneslider_settings'] = wp_parse_args($_POST['cycloneslider_settings'], self::get_slideshow_defaults());
367
  $settings = array();
@@ -387,7 +387,7 @@ if(!class_exists('Cyclone_Slider')):
387
  }
388
 
389
  // Messages
390
- function post_updated_messages($messages){
391
  global $post, $post_ID;
392
  $messages['cycloneslider'] = array(
393
  0 => '',
@@ -401,8 +401,8 @@ if(!class_exists('Cyclone_Slider')):
401
  8 => __( 'Slideshow updated.', 'cycloneslider' ),
402
  9 => __( 'Slideshow updated.', 'cycloneslider' ),
403
  10 => __( 'Slideshow updated.', 'cycloneslider' ),
404
- 101 => __( 'Templates CSS could not be saved.', 'cycloneslider' ),
405
- 102 => __( 'Templates JS could not be saved.', 'cycloneslider' )
406
  );
407
  return $messages;
408
  }
@@ -412,7 +412,7 @@ if(!class_exists('Cyclone_Slider')):
412
  *
413
  * @return array The array of locations containing path and url
414
  */
415
- private function throw_message($location) {
416
  $location = add_query_arg( 'message', $this->message_id, $location );
417
  $this->message_id = 0;
418
  return $location;
9
  /**
10
  * Initializes the plugin by setting localization, filters, and administration functions.
11
  */
12
+ public function __construct() {
13
  // Set defaults
14
  $this->slider_count = 0;
15
  $this->effects = self::get_slide_effects();
129
  * Core Functions
130
  *---------------------------------------------*/
131
  // Create custom post for slideshows
132
+ public function create_post_types() {
133
  register_post_type( 'cycloneslider',
134
  array(
135
  'labels' => array(
154
  }
155
 
156
  // Slides metabox init
157
+ public function add_meta_boxes(){
158
  add_meta_box(
159
  'cyclone-slides-metabox',
160
  __('Slides', 'cycloneslider'),
182
  }
183
 
184
  // Get Image mime type. @param $image - full path to image
185
+ public function get_mime_type( $image ){
186
  if($properties = getimagesize( $image )){
187
  return $properties['mime'];
188
  }
190
  }
191
 
192
  // Slides metabox render
193
+ public function render_slides_meta_box($post){
194
 
195
  // Use nonce for verification
196
  echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
227
  <?php
228
  }
229
 
230
+ public function render_slider_properties_meta_box($post){
231
  // Use nonce for verification
232
  echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
233
 
242
  include(self::get_admin_parts_folder() . 'slider-properties.php');
243
  }
244
 
245
+ public function render_slider_templates_meta_box($post){
246
  // Use nonce for verification
247
  echo '<input type="hidden" name="cycloneslider_metabox_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
248
 
290
  <?php
291
  }
292
 
293
+ public function save_post($post_id){
294
 
295
  // Verify nonce
296
  $nonce_name = 'cycloneslider_metabox_nonce';
323
  }
324
 
325
  //sanitize and save
326
+ public function save_metas($post_id){
327
  $slides = array();
328
  if(isset($_POST['cycloneslider_metas'])){
329
 
361
  }
362
 
363
  //sanitize and save
364
+ public function save_settings($post_id){
365
  if(isset($_POST['cycloneslider_settings'])){
366
  $_POST['cycloneslider_settings'] = wp_parse_args($_POST['cycloneslider_settings'], self::get_slideshow_defaults());
367
  $settings = array();
387
  }
388
 
389
  // Messages
390
+ public function post_updated_messages($messages){
391
  global $post, $post_ID;
392
  $messages['cycloneslider'] = array(
393
  0 => '',
401
  8 => __( 'Slideshow updated.', 'cycloneslider' ),
402
  9 => __( 'Slideshow updated.', 'cycloneslider' ),
403
  10 => __( 'Slideshow updated.', 'cycloneslider' ),
404
+ 101 => sprintf( __( 'Templates CSS could not be saved. Make sure %stemplates.css is writable.', 'cycloneslider' ), self::path().'css'.DIRECTORY_SEPARATOR),
405
+ 102 => sprintf( __( 'Templates JS could not be saved. Make sure %stemplates.js is writable.', 'cycloneslider' ), self::path().'js'.DIRECTORY_SEPARATOR)
406
  );
407
  return $messages;
408
  }
412
  *
413
  * @return array The array of locations containing path and url
414
  */
415
+ public function throw_message($location) {
416
  $location = add_query_arg( 'message', $this->message_id, $location );
417
  $this->message_id = 0;
418
  return $location;
js/templates.js CHANGED
@@ -1,18 +1 @@
1
- jQuery(document).ready(function(){
2
- jQuery('.cycloneslider-template-thumbnails').each(function(i,el){
3
-
4
- var main = jQuery(el);
5
- var slideshow = main.children('.cycloneslider-slides');
6
- var thumbnails = main.next();
7
-
8
- thumbnails.find('li:first').addClass('current');
9
- slideshow.on( 'cycle-before', function( event, optionHash ) {
10
- var i = optionHash.nextSlide;
11
- thumbnails.find('li').removeClass('current').eq(i).addClass('current');
12
- });
13
- thumbnails.on('click', 'li', function(){
14
- var i = jQuery(this).index();
15
- slideshow.cycle('goto', i);
16
- });
17
- });
18
- });
1
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-thumbnails").each(function(c,d){var a=jQuery(d),b=a.children(".cycloneslider-slides"),e=a.next();e.find("li:first").addClass("current");b.on("cycle-before",function(g,h){var f=h.nextSlide;e.find("li").removeClass("current").eq(f).addClass("current")});e.on("click","li",function(){var f=jQuery(this).index();b.cycle("goto",f)})})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/thumbnails/script.js CHANGED
@@ -1,9 +1,9 @@
1
  jQuery(document).ready(function(){
2
  jQuery('.cycloneslider-template-thumbnails').each(function(i,el){
3
 
4
- var main = jQuery(el);
5
- var slideshow = main.children('.cycloneslider-slides');
6
- var thumbnails = main.next();
7
 
8
  thumbnails.find('li:first').addClass('current');
9
  slideshow.on( 'cycle-before', function( event, optionHash ) {
1
  jQuery(document).ready(function(){
2
  jQuery('.cycloneslider-template-thumbnails').each(function(i,el){
3
 
4
+ var main = jQuery(el),
5
+ slideshow = main.children('.cycloneslider-slides'),
6
+ thumbnails = main.next();
7
 
8
  thumbnails.find('li:first').addClass('current');
9
  slideshow.on( 'cycle-before', function( event, optionHash ) {
templates/thumbnails/script.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(){jQuery(".cycloneslider-template-thumbnails").each(function(c,d){var a=jQuery(d),b=a.children(".cycloneslider-slides"),e=a.next();e.find("li:first").addClass("current");b.on("cycle-before",function(g,h){var f=h.nextSlide;e.find("li").removeClass("current").eq(f).addClass("current")});e.on("click","li",function(){var f=jQuery(this).index();b.cycle("goto",f)})})});