Cyclone Slider - Version 2.9.6

Version Description

  • 2015-01-12 =
  • Fix template Thumbnail thumb images not working when resize is false.
  • Fix missing alt attribute in slide images for Standard template.
  • Added error check for scandir in template locations.
  • Repositioned settings fields. Resize Images and Force Resize are now together.
  • Updated cycloneslider.pot
Download this release

Release Info

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

Code changes from version 2.9.5 to 2.9.6

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.codefleet.net/donate/
4
  Tags: slider, slideshow, drag-and-drop, wordpress-slider, wordpress-slideshow, cycle 2, jquery, responsive, translation-ready, custom-post, cyclone-slider
5
  Requires at least: 3.5
6
  Tested up to: 4.1
7
- Stable tag: 2.9.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -103,6 +103,13 @@ Inside `wp-content` create a folder named "cycloneslider". Add your templates in
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
 
 
106
  = 2.9.5 - 2015-01-03 =
107
  * Fix. Thumbnail template thumb images now working.
108
  * New. Added support for custom image sizes.
@@ -351,242 +358,4 @@ Inside `wp-content` create a folder named "cycloneslider". Add your templates in
351
 
352
  == Upgrade Notice ==
353
 
354
- = 2.9.5 - 2015-01-03 =
355
- * Fix. Thumbnail template thumb images now working.
356
- * New. Added support for custom image sizes.
357
- * Change. Removed cyclone_slide_image_url function from Thumbnail template and used $slide['image_thumbnails']['40_40_crop'] instead.
358
- * Change. Refactored Data and ImageResizer class.
359
- * Fix. Wrong class name Image_Resizer changed to CycloneSlider_ImageResizer.
360
-
361
- = 2.9.4 - 2015-01-02 =
362
- * Fix. Improved safety checks for POST data when saving sliders.
363
- * Fix. Deleting a single slide now works. This was a regression bug due to previous POST data safety check code.
364
- * Fix. Safety check for array keys when displaying a slider.
365
- * Fix. Restored $cyclone_slider_saved_done global variable.
366
-
367
- = 2.9.3 - 2014-12-19 =
368
- * Fix. Templates config now use json instead of ini format. Solves the problem with hosting that has parse_ini_file disabled for security reasons.
369
- * Change. Code cleanup. Removed commented and unused codes.
370
- * Change. Improved view class. Change codes related to view rendering.
371
- * Change. Moved template location declaration to main plugin file.
372
- * Change. Moved global function responsibility in templates to Data class.
373
- * Change. Use DI container for image editor class
374
- * Change. Change autoloader and hook names.
375
- * Change. Updated language files.
376
- * Change. Updated screen icon code.
377
-
378
- = 2.9.1 - 2014-12-10 =
379
- * Fix. Restored missing widget code.
380
-
381
- = 2.9.0 - 2014-12-09 =
382
- * Change. Major code refactoring for future features to be easily added
383
-
384
- = 2.8.4 - 2014-09-04 =
385
- * Updated spanish language files
386
- * Added compatibility with WP 4.0
387
-
388
- = 2.8.3 - 2014-08-20 =
389
- * Fix. Admin menu icon for WP 3.9+.
390
- * Fix. Language files load path.
391
-
392
- = 2.8.2 - 2014-01-10 =
393
- * New. Added testimonial slide type. Now you can create testimonial sliders.
394
- * New. Added support for testimonial slides in Dark and Standard templates.
395
- * New. Added Spanish translation by Gabriel Gil.
396
- * New. Added Serbo-Croation translation by Borisa Djuraskovic.
397
- * Change. Added a few responsive tweaks in admin.css for the template selection area.
398
- * Change. Removed unused codes.
399
-
400
- = 2.8.1 - 2014-01-02 =
401
- * New. Added ability to disable related videos in YouTube slide.
402
- * New. Slide title now appends the slide caption of there is one.
403
- * New. MP6 color schemes. Added subtle cosmetic changes to UI depending on what admin color scheme was selected.
404
- * Change. Made hide_non_active false only if using dynamic height and YouTube/Vimeo slides. For backwards compatibility with older templates.
405
- * Change. Removed old problematic video slide.
406
- * Fix. Fixed Vimeo error when URL fails to load.
407
- * Fix. Fix for very long slide titles.
408
- * Fix. Bug fix for PHP warning in template selection when template is unchecked in settings page.
409
-
410
- = 2.8.0 - 2013-12-29 - This is a major release =
411
- * New. Added support for YouTube, Vimeo and Custom slide types in Text template.
412
- * New. Added support for YouTube and Vimeo slide types in Dark template.
413
- * New. Added "Location" column in template selection panel.
414
- * New. Added warning when a template is located in the currently active theme directory. It warns the user of potential deletion of the template when a theme is updated.
415
- * New. Added template directory in wp-content/cycloneslider/. This is now the recommended directory to store custom or modified templates to survive update nukes.
416
- * New. Added width_management to shortcode attributes.
417
- * Change. hide_non_active is now always set to false for getBoundingClientRect to not return zero.
418
- * Fix. Minor change for directory separator on active theme location.
419
- * Fix. Fixed inacurate next slide height reading by using getBoundingClientRect() instead of outerHeight().
420
- * Fix. Added check to fix PHP warning when Vimeo URL is blank.
421
-
422
- = 2.7.7 - 2013-11-26 =
423
- * New. Added ability to select multiple images to add as slides
424
- * Change. Refactor code for template javascripts. Moved similar code into client.js
425
-
426
- = 2.7.6 - 2013-10-13 =
427
- * New. Added support for YouTube and Vimeo slide types in thumbnails template.
428
- * New. Added ability to fetch thumbnails of videos from youtube.com and vimeo.com. The thumbnails template will use this to display the thumbnails in its pager.
429
-
430
- = 2.7.5 - 2013-10-10 =
431
- * Fix. Fix critical error with slider not working caused by easing plugin.
432
- * New. Added ability to add a title to slider widget.
433
- * Change. Modified easing plugin to v1.3.1.
434
- * Change. Added minified version of easing plugin.
435
-
436
- = 2.7.4 - 2013-10-01 =
437
- * Fix. Fix dynamic height for templates.
438
- * Fix. Fix video slide made it fluid.
439
- * Change. Added RTL support and sanitize output in templates.
440
-
441
- = 2.7.3 - 2013-09-28 =
442
- * Fix. Fix issue on Default template where caption is not visible on images that are taller than the slider.
443
- * Change. Returned slider auto height from sentinel to ratio for wider support and backward compatibility.
444
- * Change. Updated screenshots for wordpress.org.
445
-
446
- = 2.7.2 - 2013-09-27 =
447
- * New! Added ability in Settings page to enable/disable templates.
448
- * Change. Move settings page form to its own view file.
449
-
450
- = 2.7.1 - 2013-09-23 =
451
- * Added Width Management option. Three options available: Responsive (default), Full width, and Fixed width. Templates that support this feature are Dark, Default, Standard and Thumbnails.
452
- * Added [Dark template](http://www.codefleet.net/cyclone-slider-2/templates/dark/) with RTL support.
453
- * Standard template is now the selected template when creating new sliders.
454
- * Moved Title and Description to Caption accordion in slide edit screen.
455
- * Returned other shortcode options removed in 2.7.0. All shortcode options restored except template. Template can only be changed in admin.
456
- * Fix caption text-align:left for templates standard, default and thumbnails along with RTL support.
457
- * Updated language files
458
-
459
- = 2.7.0 - 2013-09-19 - This is a major release =
460
- * Slider preview!
461
- * Added YouTube and Vimeo slide types. Deprecated Video slide type.
462
- * Added Standard template as de-facto template which has support for Image, YouTube, Vimeo, and Custom HTML slide types.
463
- * Standard template supports RTL and uses pure CSS for buttons.
464
- * YouTube and Vimeo videos will now pause when changing to a different slide when using the Standard template.
465
- * Admin UI is now retina and [MP6](http://wordpress.org/plugins/mp6/) ready.
466
- * Compacted template selection UI. Removed template thumbnail preview as a slider preview is now available in admin.
467
- * Updated language files.
468
- * Lots of new slider variables added for use in templates. Will update documentation soon.
469
- * Removed other shortcode options except id. Example: [cycloneslider id="default"]
470
- * [Pro version now available with many more features](http://www.codefleet.net/cyclone-slider-pro/).
471
-
472
- = 2.6.4 - 2013-08-14 =
473
- * Bug fix for 2.6.3 where settings page stopped working.
474
- * Minor fix for RTL.
475
- * Added Persian translation by Javad.
476
-
477
- = 2.6.3 - 2013-08-13 =
478
- * Made non-translatable texts translatable.
479
- * Added RTL support for the admininistration screen.
480
- * Change pin icon to media in the admin menu.
481
- * Added Arabic translation. Special thanks to Hassan for this and the items above.
482
- * Added function `cyclone_slider` for displaying slider in template files instead of using `do_shortcode`.
483
- * Added button that links to a tutorial on how to [create your own template](http://www.codefleet.net/introduction-to-templates/).
484
-
485
- = 2.6.2 - 2013-08-08 =
486
- * Reverted red screen options to default color.
487
- * Fix bug with ugly old media gallery (pre 3.5).
488
- * Added Italian translation from maxgx.
489
- * Change greater-than to its character entity for `data-cycle-slides`.
490
-
491
- = 2.6.1 - 2013-08-05 =
492
- * Fixed issue with Shortcodes Ultimate.
493
- * Updated screenshots.
494
-
495
- = 2.6.0 - 2013-08-04 =
496
- * Warning: Old templates will break in this version! You can either use the new templates or migrate the older templates. [Check this post](http://www.codefleet.net/pre-2-6-0-templates-migration/).
497
- * Load scripts and styles normally as separate requests for better compatibility with other plugins and server setup. Removed template-assets.php which consolidates assets into a single request.
498
- * Added cyclone slider settings page.
499
- * Language files now loaded when using WPML.
500
- * Added Get Codes metabox to easily grab the slider codes.
501
- * Added Slideshow ID metabox to easily change the slider ID.
502
-
503
- = 2.5.6 - 2013-07-30 =
504
- * Fix broken nextgen importer from last update.
505
- * Refactor code for better template management in admin.
506
-
507
- = 2.5.5 - 2013-07-25 =
508
- * Removed templates Black, Blue, and Myrtle from plugin's folder for better performance.
509
- * Used get_posts instead of WP_Query when getting a slider to avoid filters that might cause conflict.
510
-
511
- = 2.5.4 - 2013-07-20 =
512
- * Added Youtube template that pauses the video when slider is transitioning.
513
-
514
- = 2.5.3 - 2013-05-10 =
515
- * Bug fix for child themes where slider is not working
516
-
517
- = 2.5.2 - 2013-04-26 =
518
- * Added template asset loader to get rid of the compiled css and js that are rewritten on the file system on every save
519
- * Move template handling logic to its own class to be used by the template asset loader independently
520
- * Removed upgrade notice
521
-
522
- = 2.5.1 - 2013-03-29 =
523
- * Bug fix to allow small images to be inserted.
524
- * Improved cyclone_settings.
525
- * Improved slider not found message.
526
- * Updated cycle 2 js files.
527
- * Added plugin version to fix caching problem on JS and CSS.
528
- * Added upgrade notice.
529
-
530
- = 2.5.0 - 2013-03-21 - This is a major release =
531
- * More slide types to choose from: image, video (youtube and vimeo) and custom HTML.
532
- * Added icons to the UI to indicate different slide types.
533
- * Replaced cookies with localstorage to store UI status.
534
- * Updated the templates to support the various slide types.
535
- * Added resize and random options.
536
- * Bug fix for fatal error when no GD library. Added gd_info check.
537
- * Bug fix for js error on WP below 3.5 caused by the 3.5 media library object being undefined.
538
- * Deprecated cycloneslider_thumb use cyclone_slide_image_url instead.
539
- * Deprecated cycloneslider_settings use cyclone_settings instead.
540
- * Deprecated cycloneslider_slide_settings use cyclone_slide_settings instead.
541
- * Various UI fixes and code refactoring.
542
-
543
- = 2.2.5 - 2013-02-23 =
544
- * Bug fix for 2.2.4
545
-
546
- = 2.2.4 - 2013-02-22 =
547
- * 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.
548
- * Minified CSS and JS for templates.
549
- * Compiles needed CSS and JS only instead of loading all CSS and JS from all templates.
550
- * Added template column to all slider screen.
551
- * Updated language files
552
-
553
- = 2.2.3 - 2013-02-14 =
554
- * Added option for random slide order on every page visit.
555
- * Refactored some code.
556
- * Added image count to all slider screen.
557
-
558
- = 2.2.2 - 2013-02-05 =
559
- * Updated language files.
560
- * Bug Fix. Post Type Switcher fix via jquery.
561
- * UI Enhancement. Removed overflow for templates.
562
- * Ignore image resize if slider dimension is equal to the image dimension.
563
- * UI Enhancement. Decrease drag delay for slide sortables in editor.
564
-
565
- = 2.2.1 - 2012-12-25 =
566
- * Added Cyclone Slider 2 widget.
567
-
568
- = 2.2.0 - 2012-12-24 =
569
- * Updated cycle 2 to latest version.
570
- * Updated template selection interface to be more visual. A screenshot of each slider template is now shown.
571
- * Added Tile Count and Tile Position for both slider and per-slide settings.
572
- * Cleanup Quick Edit screen to hide unused user interface.
573
- * Slide box titles can now be clicked to open and close the slide box.
574
- * Removed drag icon from slide box title. Slide box can now be dragged by click-holding the slide title area.
575
- * Updated template API functions.
576
- * Updated plugin screenshot.
577
- * Refactored various code parts.
578
- * Added ability to add script.js in templates
579
- * Added ability to add screenshot.jpg in templates.
580
- * Updated templates.
581
- * Added fix to preserved PNG transparency.
582
- * Fix save routine to allow saving empty slides and to preserve order of slides after drag and/or deletion of slide.
583
-
584
- = 2.1.1 - 2012-11-16 =
585
- * Fix for a code typo error
586
-
587
- = 2.1.0 - 2012-11-16 =
588
- * Fix for slider not working when NextGEN 1.9.7 is active
589
- * You can now import images from NextGEN
590
-
591
- = 2.0.0 =
592
- * Initial. If you are using Cyclone Slider (version 1) deactivate it first before activating Cyclone Slider 2
4
  Tags: slider, slideshow, drag-and-drop, wordpress-slider, wordpress-slideshow, cycle 2, jquery, responsive, translation-ready, custom-post, cyclone-slider
5
  Requires at least: 3.5
6
  Tested up to: 4.1
7
+ Stable tag: 2.9.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
103
 
104
  == Changelog ==
105
 
106
+ = 2.9.6 - 2015-01-12 =
107
+ * Fix template Thumbnail thumb images not working when resize is false.
108
+ * Fix missing alt attribute in slide images for Standard template.
109
+ * Added error check for scandir in template locations.
110
+ * Repositioned settings fields. Resize Images and Force Resize are now together.
111
+ * Updated cycloneslider.pot
112
+
113
  = 2.9.5 - 2015-01-03 =
114
  * Fix. Thumbnail template thumb images now working.
115
  * New. Added support for custom image sizes.
358
 
359
  == Upgrade Notice ==
360
 
361
+ See changelog
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/admin.css CHANGED
@@ -646,7 +646,7 @@ input:disabled{
646
  display:none;
647
  }
648
 
649
- #cycloneslider_settings_resize_option{
650
  display: inline-block;
651
  }
652
  label[for="force_resize"]{
646
  display:none;
647
  }
648
 
649
+ #cycloneslider_settings_resize{
650
  display: inline-block;
651
  }
652
  label[for="force_resize"]{
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 and manage sliders with ease. Built for both casual users and developers.
6
- Version: 2.9.5
7
  Author: Nico Amarilla
8
  Author URI: http://www.codefleet.net/
9
  License:
@@ -49,12 +49,17 @@ function cycloneslider_init() {
49
  $plugin['url'] = plugin_dir_url(__FILE__);
50
 
51
  $plugin['debug'] = false;
52
- $plugin['version'] = '2.9.5';
53
  $plugin['textdomain'] = 'cycloneslider';
54
  $plugin['slug'] = 'cyclone-slider-2/cyclone-slider.php';
55
  $plugin['nonce_name'] = 'cyclone_slider_builder_nonce';
56
  $plugin['nonce_action'] = 'cyclone-slider-save';
57
 
 
 
 
 
 
58
  require_once($plugin['path'].'src/functions.php'); // Function not autoloaded from the old days. Deprecated
59
 
60
  $plugin['view.folder'] = $plugin['path'].'views';
@@ -76,8 +81,7 @@ function cycloneslider_init() {
76
  $plugin['nextgen_integration'] = new CycloneSlider_NextgenIntegration();
77
 
78
  $plugin['templates_manager'] = new CycloneSlider_TemplatesManager();
79
- $wp_upload_dir = wp_upload_dir();
80
- $wp_content_folder = realpath( dirname( $wp_upload_dir['basedir'] ) );
81
  $plugin['templates_locations'] = array(
82
  array(
83
  'path' => $plugin['path'].'templates'.DIRECTORY_SEPARATOR, // This resides in the plugin
@@ -85,13 +89,13 @@ function cycloneslider_init() {
85
  'location_name' => 'core'
86
  ),
87
  array(
88
- 'path' => realpath(get_stylesheet_directory()).DIRECTORY_SEPARATOR.'cycloneslider'.DIRECTORY_SEPARATOR, // This resides in the current theme or child theme
89
  'url' => get_stylesheet_directory_uri()."/cycloneslider/",
90
  'location_name' => 'active-theme'
91
  ),
92
  array(
93
- 'path' => $wp_content_folder.DIRECTORY_SEPARATOR.'cycloneslider'.DIRECTORY_SEPARATOR, // This resides in the wp-content folder to prevent deleting when upgrading themes. Recommended location
94
- 'url' => content_url()."/cycloneslider/",
95
  'location_name' => 'wp-content'
96
  )
97
  );
3
  Plugin Name: Cyclone Slider 2
4
  Plugin URI: http://www.codefleet.net/cyclone-slider-2/
5
  Description: Create and manage sliders with ease. Built for both casual users and developers.
6
+ Version: 2.9.6
7
  Author: Nico Amarilla
8
  Author URI: http://www.codefleet.net/
9
  License:
49
  $plugin['url'] = plugin_dir_url(__FILE__);
50
 
51
  $plugin['debug'] = false;
52
+ $plugin['version'] = '2.9.6';
53
  $plugin['textdomain'] = 'cycloneslider';
54
  $plugin['slug'] = 'cyclone-slider-2/cyclone-slider.php';
55
  $plugin['nonce_name'] = 'cyclone_slider_builder_nonce';
56
  $plugin['nonce_action'] = 'cyclone-slider-save';
57
 
58
+ $wp_upload_dir = wp_upload_dir();
59
+
60
+ $plugin['wp_content_dir'] = realpath( dirname( $wp_upload_dir['basedir'] ) );
61
+ $plugin['wp_content_url'] = content_url();
62
+
63
  require_once($plugin['path'].'src/functions.php'); // Function not autoloaded from the old days. Deprecated
64
 
65
  $plugin['view.folder'] = $plugin['path'].'views';
81
  $plugin['nextgen_integration'] = new CycloneSlider_NextgenIntegration();
82
 
83
  $plugin['templates_manager'] = new CycloneSlider_TemplatesManager();
84
+ // Order is important. core is overridden by active-theme which in turn is overridden by wp-content.
 
85
  $plugin['templates_locations'] = array(
86
  array(
87
  'path' => $plugin['path'].'templates'.DIRECTORY_SEPARATOR, // This resides in the plugin
89
  'location_name' => 'core'
90
  ),
91
  array(
92
+ 'path' => realpath(get_stylesheet_directory()).DIRECTORY_SEPARATOR.'cycloneslider'.DIRECTORY_SEPARATOR, // This resides in the current theme or child theme. Gets deleted when theme is deleted.
93
  'url' => get_stylesheet_directory_uri()."/cycloneslider/",
94
  'location_name' => 'active-theme'
95
  ),
96
  array(
97
+ 'path' => $plugin['wp_content_dir'].DIRECTORY_SEPARATOR.'cycloneslider'.DIRECTORY_SEPARATOR, // This resides in the wp-content folder to prevent deleting when upgrading themes. Recommended location
98
+ 'url' => $plugin['wp_content_url']."/cycloneslider/",
99
  'location_name' => 'wp-content'
100
  )
101
  );
lang/cycloneslider.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Cyclone Slider\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-12-19 17:56+0800\n"
6
- "PO-Revision-Date: 2014-12-19 17:56+0800\n"
7
  "Last-Translator: Nico Amarilla <kosinix@codefleet.net>\n"
8
  "Language-Team: kosinix <kosinix@codefleet.net>\n"
9
  "Language: en_US\n"
@@ -17,11 +17,11 @@ msgstr ""
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
- #: ../cyclone-slider.php:91
21
  msgid "Cyclone Slider Settings"
22
  msgstr ""
23
 
24
- #: ../cyclone-slider.php:92
25
  msgid "Settings"
26
  msgstr ""
27
 
@@ -201,7 +201,7 @@ msgstr ""
201
  msgid "[Slideshow \"%s\" not found]"
202
  msgstr ""
203
 
204
- #: ../src/CycloneSlider/Frontend.php:74
205
  #, php-format
206
  msgid "[Template \"%s\" not found]"
207
  msgstr ""
@@ -420,24 +420,24 @@ msgstr ""
420
  msgid "Transition Effects:"
421
  msgstr ""
422
 
423
- #: ../views/slide-edit.php:110 ../views/slider-properties.php:32
424
  msgid "Transition Effects Speed:"
425
  msgstr ""
426
 
427
  #: ../views/slide-edit.php:112 ../views/slide-edit.php:119
428
- #: ../views/slider-properties.php:34
429
  msgid "Milliseconds"
430
  msgstr ""
431
 
432
- #: ../views/slide-edit.php:117 ../views/slider-properties.php:26
433
  msgid "Next Slide Delay:"
434
  msgstr ""
435
 
436
- #: ../views/slide-edit.php:127 ../views/slider-properties.php:13
437
  msgid "Tile Count:"
438
  msgstr ""
439
 
440
- #: ../views/slide-edit.php:129 ../views/slider-properties.php:15
441
  msgid "The number of tiles to use in the transition."
442
  msgstr ""
443
 
@@ -449,15 +449,15 @@ msgstr ""
449
  msgid "Milliseconds to delay each individual tile transition."
450
  msgstr ""
451
 
452
- #: ../views/slide-edit.php:139 ../views/slider-properties.php:18
453
  msgid "Tile Position:"
454
  msgstr ""
455
 
456
- #: ../views/slide-edit.php:141 ../views/slider-properties.php:20
457
  msgid "Vertical"
458
  msgstr ""
459
 
460
- #: ../views/slide-edit.php:142 ../views/slider-properties.php:21
461
  msgid "Horizontal"
462
  msgstr ""
463
 
@@ -498,16 +498,16 @@ msgid "Allow Wrap?"
498
  msgstr ""
499
 
500
  #: ../views/slider-advanced-settings.php:6
501
- #: ../views/slider-advanced-settings.php:44 ../views/slider-properties.php:66
502
- #: ../views/slider-properties.php:74 ../views/slider-properties.php:82
503
- #: ../views/slider-properties.php:92 ../views/slider-properties.php:101
504
  msgid "Yes"
505
  msgstr ""
506
 
507
  #: ../views/slider-advanced-settings.php:7
508
- #: ../views/slider-advanced-settings.php:45 ../views/slider-properties.php:67
509
- #: ../views/slider-properties.php:75 ../views/slider-properties.php:83
510
- #: ../views/slider-properties.php:91 ../views/slider-properties.php:100
511
  msgid "No"
512
  msgstr ""
513
 
@@ -562,27 +562,23 @@ msgstr ""
562
  msgid "Resize Options:"
563
  msgstr ""
564
 
565
- #: ../views/slider-advanced-settings.php:61
566
- msgid "Force Resize"
567
- msgstr ""
568
-
569
- #: ../views/slider-advanced-settings.php:63
570
  msgid "Auto - Cyclone Slider decides the resize option."
571
  msgstr ""
572
 
573
- #: ../views/slider-advanced-settings.php:64
574
  msgid "Crop - Resize and remove excess parts."
575
  msgstr ""
576
 
577
- #: ../views/slider-advanced-settings.php:65
578
  msgid "Exact - Resize to exact dimensions."
579
  msgstr ""
580
 
581
- #: ../views/slider-advanced-settings.php:66
582
  msgid "Landscape - Resize to exact width."
583
  msgstr ""
584
 
585
- #: ../views/slider-advanced-settings.php:67
586
  msgid "Portrait - Resize to exact height."
587
  msgstr ""
588
 
@@ -613,89 +609,93 @@ msgstr ""
613
  msgid "Your preview will appear here."
614
  msgstr ""
615
 
616
- #: ../views/slider-properties.php:4
617
  msgid "Transition Effects to Use:"
618
  msgstr ""
619
 
620
- #: ../views/slider-properties.php:28
621
  msgid "Milliseconds. 0 to disable auto advance."
622
  msgstr ""
623
 
624
- #: ../views/slider-properties.php:38
625
  msgid "Width:"
626
  msgstr ""
627
 
628
- #: ../views/slider-properties.php:40 ../views/slider-properties.php:46
629
  msgid "pixels."
630
  msgstr ""
631
 
632
- #: ../views/slider-properties.php:44
633
  msgid "Height:"
634
  msgstr ""
635
 
636
- #: ../views/slider-properties.php:50
637
  msgid "Width Management:"
638
  msgstr ""
639
 
640
- #: ../views/slider-properties.php:52
641
  msgid "Responsive"
642
  msgstr ""
643
 
644
- #: ../views/slider-properties.php:53
645
  msgid "Full"
646
  msgstr ""
647
 
648
- #: ../views/slider-properties.php:54
649
  msgid "Fixed"
650
  msgstr ""
651
 
652
- #: ../views/slider-properties.php:57
653
  msgid ""
654
  "Responsive - resizes to smaller size but maximum width will be equal to the "
655
  "provided width."
656
  msgstr ""
657
 
658
- #: ../views/slider-properties.php:58
659
  msgid ""
660
  "Full - the same as responsive but maximum width will be equal to its "
661
  "container ignoring the provided width."
662
  msgstr ""
663
 
664
- #: ../views/slider-properties.php:59
665
  msgid "Fixed - width and height are not resized."
666
  msgstr ""
667
 
668
- #: ../views/slider-properties.php:64
669
- msgid "Pause on Hover?"
670
  msgstr ""
671
 
672
- #: ../views/slider-properties.php:72
673
- msgid "Show Prev/Next Buttons?"
674
  msgstr ""
675
 
676
- #: ../views/slider-properties.php:80
677
- msgid "Show Navigation?"
 
 
678
  msgstr ""
679
 
680
- #: ../views/slider-properties.php:85
681
- msgid "The thumbnails or dots depending on template."
682
  msgstr ""
683
 
684
- #: ../views/slider-properties.php:89
685
- msgid "Resize Images?"
686
  msgstr ""
687
 
688
- #: ../views/slider-properties.php:94
689
- msgid ""
690
- "Yes - resize images to slideshow dimension. <br>No - use the original "
691
- "uploaded image."
 
 
692
  msgstr ""
693
 
694
- #: ../views/slider-properties.php:98
695
  msgid "Random Slide Order?"
696
  msgstr ""
697
 
698
- #: ../views/slider-properties.php:103
699
  msgid "Randomize order of slides on every page visit."
700
  msgstr ""
701
 
2
  msgstr ""
3
  "Project-Id-Version: Cyclone Slider\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-01-12 22:36+0800\n"
6
+ "PO-Revision-Date: 2015-01-12 22:37+0800\n"
7
  "Last-Translator: Nico Amarilla <kosinix@codefleet.net>\n"
8
  "Language-Team: kosinix <kosinix@codefleet.net>\n"
9
  "Language: en_US\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
+ #: ../cyclone-slider.php:104
21
  msgid "Cyclone Slider Settings"
22
  msgstr ""
23
 
24
+ #: ../cyclone-slider.php:105
25
  msgid "Settings"
26
  msgstr ""
27
 
201
  msgid "[Slideshow \"%s\" not found]"
202
  msgstr ""
203
 
204
+ #: ../src/CycloneSlider/Frontend.php:75
205
  #, php-format
206
  msgid "[Template \"%s\" not found]"
207
  msgstr ""
420
  msgid "Transition Effects:"
421
  msgstr ""
422
 
423
+ #: ../views/slide-edit.php:110 ../views/slider-settings.php:32
424
  msgid "Transition Effects Speed:"
425
  msgstr ""
426
 
427
  #: ../views/slide-edit.php:112 ../views/slide-edit.php:119
428
+ #: ../views/slider-settings.php:34
429
  msgid "Milliseconds"
430
  msgstr ""
431
 
432
+ #: ../views/slide-edit.php:117 ../views/slider-settings.php:26
433
  msgid "Next Slide Delay:"
434
  msgstr ""
435
 
436
+ #: ../views/slide-edit.php:127 ../views/slider-settings.php:13
437
  msgid "Tile Count:"
438
  msgstr ""
439
 
440
+ #: ../views/slide-edit.php:129 ../views/slider-settings.php:15
441
  msgid "The number of tiles to use in the transition."
442
  msgstr ""
443
 
449
  msgid "Milliseconds to delay each individual tile transition."
450
  msgstr ""
451
 
452
+ #: ../views/slide-edit.php:139 ../views/slider-settings.php:18
453
  msgid "Tile Position:"
454
  msgstr ""
455
 
456
+ #: ../views/slide-edit.php:141 ../views/slider-settings.php:20
457
  msgid "Vertical"
458
  msgstr ""
459
 
460
+ #: ../views/slide-edit.php:142 ../views/slider-settings.php:21
461
  msgid "Horizontal"
462
  msgstr ""
463
 
498
  msgstr ""
499
 
500
  #: ../views/slider-advanced-settings.php:6
501
+ #: ../views/slider-advanced-settings.php:44 ../views/slider-settings.php:67
502
+ #: ../views/slider-settings.php:78 ../views/slider-settings.php:86
503
+ #: ../views/slider-settings.php:94 ../views/slider-settings.php:104
504
  msgid "Yes"
505
  msgstr ""
506
 
507
  #: ../views/slider-advanced-settings.php:7
508
+ #: ../views/slider-advanced-settings.php:45 ../views/slider-settings.php:66
509
+ #: ../views/slider-settings.php:79 ../views/slider-settings.php:87
510
+ #: ../views/slider-settings.php:95 ../views/slider-settings.php:103
511
  msgid "No"
512
  msgstr ""
513
 
562
  msgid "Resize Options:"
563
  msgstr ""
564
 
565
+ #: ../views/slider-advanced-settings.php:60
 
 
 
 
566
  msgid "Auto - Cyclone Slider decides the resize option."
567
  msgstr ""
568
 
569
+ #: ../views/slider-advanced-settings.php:61
570
  msgid "Crop - Resize and remove excess parts."
571
  msgstr ""
572
 
573
+ #: ../views/slider-advanced-settings.php:62
574
  msgid "Exact - Resize to exact dimensions."
575
  msgstr ""
576
 
577
+ #: ../views/slider-advanced-settings.php:63
578
  msgid "Landscape - Resize to exact width."
579
  msgstr ""
580
 
581
+ #: ../views/slider-advanced-settings.php:64
582
  msgid "Portrait - Resize to exact height."
583
  msgstr ""
584
 
609
  msgid "Your preview will appear here."
610
  msgstr ""
611
 
612
+ #: ../views/slider-settings.php:4
613
  msgid "Transition Effects to Use:"
614
  msgstr ""
615
 
616
+ #: ../views/slider-settings.php:28
617
  msgid "Milliseconds. 0 to disable auto advance."
618
  msgstr ""
619
 
620
+ #: ../views/slider-settings.php:38
621
  msgid "Width:"
622
  msgstr ""
623
 
624
+ #: ../views/slider-settings.php:40 ../views/slider-settings.php:46
625
  msgid "pixels."
626
  msgstr ""
627
 
628
+ #: ../views/slider-settings.php:44
629
  msgid "Height:"
630
  msgstr ""
631
 
632
+ #: ../views/slider-settings.php:50
633
  msgid "Width Management:"
634
  msgstr ""
635
 
636
+ #: ../views/slider-settings.php:52
637
  msgid "Responsive"
638
  msgstr ""
639
 
640
+ #: ../views/slider-settings.php:53
641
  msgid "Full"
642
  msgstr ""
643
 
644
+ #: ../views/slider-settings.php:54
645
  msgid "Fixed"
646
  msgstr ""
647
 
648
+ #: ../views/slider-settings.php:57
649
  msgid ""
650
  "Responsive - resizes to smaller size but maximum width will be equal to the "
651
  "provided width."
652
  msgstr ""
653
 
654
+ #: ../views/slider-settings.php:58
655
  msgid ""
656
  "Full - the same as responsive but maximum width will be equal to its "
657
  "container ignoring the provided width."
658
  msgstr ""
659
 
660
+ #: ../views/slider-settings.php:59
661
  msgid "Fixed - width and height are not resized."
662
  msgstr ""
663
 
664
+ #: ../views/slider-settings.php:64
665
+ msgid "Resize Images?"
666
  msgstr ""
667
 
668
+ #: ../views/slider-settings.php:71
669
+ msgid "Force Resize"
670
  msgstr ""
671
 
672
+ #: ../views/slider-settings.php:72
673
+ msgid ""
674
+ "Yes - resize images to slideshow dimension. <br>No - use the original "
675
+ "uploaded image. <br>Force Resize - Regenerate all images and thumbnails."
676
  msgstr ""
677
 
678
+ #: ../views/slider-settings.php:76
679
+ msgid "Pause on Hover?"
680
  msgstr ""
681
 
682
+ #: ../views/slider-settings.php:84
683
+ msgid "Show Prev/Next Buttons?"
684
  msgstr ""
685
 
686
+ #: ../views/slider-settings.php:92
687
+ msgid "Show Navigation?"
688
+ msgstr ""
689
+
690
+ #: ../views/slider-settings.php:97
691
+ msgid "The thumbnails or dots depending on template."
692
  msgstr ""
693
 
694
+ #: ../views/slider-settings.php:101
695
  msgid "Random Slide Order?"
696
  msgstr ""
697
 
698
+ #: ../views/slider-settings.php:106
699
  msgid "Randomize order of slides on every page visit."
700
  msgstr ""
701
 
src/CycloneSlider/Admin.php CHANGED
@@ -314,7 +314,7 @@ class CycloneSlider_Admin extends CycloneSlider_Base {
314
  $vars['effects'] = $this->plugin['data']->get_slide_effects();
315
  $vars['debug'] = ($this->plugin['debug']) ? cyclone_slider_debug($slider_settings) : '';
316
 
317
- $this->plugin['view']->render('slider-properties.php', $vars);
318
 
319
  }
320
 
314
  $vars['effects'] = $this->plugin['data']->get_slide_effects();
315
  $vars['debug'] = ($this->plugin['debug']) ? cyclone_slider_debug($slider_settings) : '';
316
 
317
+ $this->plugin['view']->render('slider-settings.php', $vars);
318
 
319
  }
320
 
src/CycloneSlider/Data.php CHANGED
@@ -65,10 +65,7 @@ class CycloneSlider_Data {
65
  * API to add slider
66
  */
67
  public function add_slider( $post_title, $slider_settings, $slides ){
68
- global $cyclone_slider_saved_done;
69
 
70
- $cyclone_slider_saved_done = true; // Prevent double whammy!
71
-
72
  $post_data = array(
73
  'post_type' => 'cycloneslider',
74
  'post_title' => $post_title,
@@ -383,13 +380,13 @@ class CycloneSlider_Data {
383
  // Assign variables
384
  list($image_url, $orig_width, $orig_height) = $image_dimensions;
385
 
386
- // If orig image width and height is the same as slideshow width and height, do not resize and return url
387
  if($orig_width == $width and $orig_height == $height){
388
  return $image_url;
389
  }
390
 
391
  //If resize is no, return url
392
- if( true == $resize ){
393
  return $image_url;
394
  }
395
 
65
  * API to add slider
66
  */
67
  public function add_slider( $post_title, $slider_settings, $slides ){
 
68
 
 
 
69
  $post_data = array(
70
  'post_type' => 'cycloneslider',
71
  'post_title' => $post_title,
380
  // Assign variables
381
  list($image_url, $orig_width, $orig_height) = $image_dimensions;
382
 
383
+ // If orig image width and height is the same as width and height, do not resize and return url
384
  if($orig_width == $width and $orig_height == $height){
385
  return $image_url;
386
  }
387
 
388
  //If resize is no, return url
389
+ if( $resize == 0 ){
390
  return $image_url;
391
  }
392
 
src/CycloneSlider/Frontend.php CHANGED
@@ -99,7 +99,7 @@ class CycloneSlider_Frontend extends CycloneSlider_Base {
99
 
100
  $slides[$i]['image_thumbnails'] = array();
101
  foreach($this->plugin['image_sizes'] as $key=>$size){
102
- $slides[$i]['image_thumbnails'][$key] = $this->plugin['data']->get_slide_thumbnail_url( $slide['id'], $slider_settings['width'], $slider_settings['height'], $slider_settings['resize'] );
103
  }
104
 
105
  $image_count++;
99
 
100
  $slides[$i]['image_thumbnails'] = array();
101
  foreach($this->plugin['image_sizes'] as $key=>$size){
102
+ $slides[$i]['image_thumbnails'][$key] = $this->plugin['data']->get_slide_thumbnail_url( $slide['id'], $size['width'], $size['height'], $slider_settings['resize'] );
103
  }
104
 
105
  $image_count++;
src/CycloneSlider/TemplatesManager.php CHANGED
@@ -33,27 +33,29 @@ class CycloneSlider_TemplatesManager extends CycloneSlider_Base {
33
  if(is_array($this->template_locations) and !empty($this->template_locations)){
34
  $template_folders = array();
35
  foreach($this->template_locations as $location){
36
- if($files = @scandir($location['path'])){
37
- $c = 0;
38
- foreach($files as $name){
39
- if($name!='.' and $name!='..' and is_dir($location['path'].$name) and @file_exists($location['path'].$name.DIRECTORY_SEPARATOR.'slider.php') ){ // Check if its a directory
40
- $supported_slide_types = array('image');// Default
41
- if ( $config = $this->parse_config_json( $location['path'].$name.DIRECTORY_SEPARATOR.'config.json' ) ) {
42
- $supported_slide_types = $config->slide_types;
43
- } else if ( @file_exists($location['path'].$name.DIRECTORY_SEPARATOR.'config.txt') ) { // Older templates use ini format
44
- $ini_array = parse_ini_file($location['path'].$name.DIRECTORY_SEPARATOR.'config.txt'); //Parse ini to get slide types supported
45
- if($ini_array){
46
- $supported_slide_types = $ini_array['slide_type'];
 
 
47
  }
 
 
 
 
 
 
 
 
48
  }
49
-
50
- $name = sanitize_title($name);// Change space to dash and all lowercase
51
- $template_folders[$name] = array( // Here we override template of the same names. If there is a template with the same name in plugin and theme directory, the one in theme will take over
52
- 'path'=>$location['path'].$name,
53
- 'url'=>$location['url'].$name,
54
- 'supports' => $supported_slide_types,
55
- 'location_name' => $location['location_name']
56
- );
57
  }
58
  }
59
  }
33
  if(is_array($this->template_locations) and !empty($this->template_locations)){
34
  $template_folders = array();
35
  foreach($this->template_locations as $location){
36
+ if( is_dir($location['path']) ) {
37
+ if($files = scandir($location['path'])){
38
+ $c = 0;
39
+ foreach($files as $name){
40
+ if($name!='.' and $name!='..' and is_dir($location['path'].$name) and @file_exists($location['path'].$name.DIRECTORY_SEPARATOR.'slider.php') ){ // Check if its a directory
41
+ $supported_slide_types = array('image');// Default
42
+ if ( $config = $this->parse_config_json( $location['path'].$name.DIRECTORY_SEPARATOR.'config.json' ) ) {
43
+ $supported_slide_types = $config->slide_types;
44
+ } else if ( @file_exists($location['path'].$name.DIRECTORY_SEPARATOR.'config.txt') ) { // Older templates use ini format
45
+ $ini_array = parse_ini_file($location['path'].$name.DIRECTORY_SEPARATOR.'config.txt'); //Parse ini to get slide types supported
46
+ if($ini_array){
47
+ $supported_slide_types = $ini_array['slide_type'];
48
+ }
49
  }
50
+
51
+ $name = sanitize_title($name);// Change space to dash and all lowercase
52
+ $template_folders[$name] = array( // Here we override template of the same names. If there is a template with the same name in plugin and theme directory, the one in theme will take over
53
+ 'path'=>$location['path'].$name,
54
+ 'url'=>$location['url'].$name,
55
+ 'supports' => $supported_slide_types,
56
+ 'location_name' => $location['location_name']
57
+ );
58
  }
 
 
 
 
 
 
 
 
59
  }
60
  }
61
  }
templates/standard/slider.php CHANGED
@@ -44,7 +44,7 @@
44
  <?php endif; ?>
45
  <?php endif; ?>
46
 
47
- <img src="<?php echo $slide['image_url']; ?>" title="<?php echo $slide['img_title'];?>" />
48
 
49
  <?php if( 'lightbox' == $slide['link_target'] or ('' != $slide['link']) ) : ?>
50
  </a>
44
  <?php endif; ?>
45
  <?php endif; ?>
46
 
47
+ <img src="<?php echo $slide['image_url']; ?>" alt="<?php echo $slide['img_alt'];?>" title="<?php echo $slide['img_title'];?>" />
48
 
49
  <?php if( 'lightbox' == $slide['link_target'] or ('' != $slide['link']) ) : ?>
50
  </a>
views/slider-advanced-settings.php CHANGED
@@ -56,9 +56,6 @@
56
  <option <?php echo (isset($slider_settings['resize_option']) && $resize_option==$slider_settings['resize_option']) ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $resize_option ); ?>"><?php echo esc_attr( $resize_name ); ?></option>
57
  <?php endforeach; ?>
58
  </select>
59
- <input type="hidden" name="cycloneslider_settings[force_resize]" value="0" />
60
- <input type="checkbox" name="cycloneslider_settings[force_resize]" id="force_resize" value="1" />
61
- <label for="force_resize"><?php _e('Force Resize', 'cycloneslider'); ?></label> <br>
62
  <span class="note">
63
  <?php _e('Auto - Cyclone Slider decides the resize option.', 'cycloneslider'); ?><br>
64
  <?php _e('Crop - Resize and remove excess parts.', 'cycloneslider'); ?><br>
56
  <option <?php echo (isset($slider_settings['resize_option']) && $resize_option==$slider_settings['resize_option']) ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $resize_option ); ?>"><?php echo esc_attr( $resize_name ); ?></option>
57
  <?php endforeach; ?>
58
  </select>
 
 
 
59
  <span class="note">
60
  <?php _e('Auto - Cyclone Slider decides the resize option.', 'cycloneslider'); ?><br>
61
  <?php _e('Crop - Resize and remove excess parts.', 'cycloneslider'); ?><br>
views/{slider-properties.php → slider-settings.php} RENAMED
@@ -60,6 +60,18 @@
60
  </span>
61
  <div class="clear"></div>
62
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
63
  <div class="cycloneslider-field">
64
  <label for="cycloneslider_settings_hover_pause"><?php _e('Pause on Hover?', 'cycloneslider'); ?></label>
65
  <select id="cycloneslider_settings_hover_pause" name="cycloneslider_settings[hover_pause]">
@@ -85,15 +97,6 @@
85
  <span class="note"><?php _e('The thumbnails or dots depending on template.', 'cycloneslider'); ?></span>
86
  <div class="clear"></div>
87
  </div>
88
- <div class="cycloneslider-field">
89
- <label for="cycloneslider_settings_resize"><?php _e('Resize Images?', 'cycloneslider'); ?></label>
90
- <select id="cycloneslider_settings_resize" name="cycloneslider_settings[resize]">
91
- <option <?php selected($slider_settings['resize'], 0); ?> value="0"><?php _e('No', 'cycloneslider'); ?></option>
92
- <option <?php selected($slider_settings['resize'], 1); ?> value="1"><?php _e('Yes', 'cycloneslider'); ?></option>
93
- </select>
94
- <span class="note"><?php _e('Yes - resize images to slideshow dimension. <br>No - use the original uploaded image.', 'cycloneslider'); ?></span>
95
- <div class="clear"></div>
96
- </div>
97
  <div class="cycloneslider-field last">
98
  <label for="cycloneslider_settings_randomize"><?php _e('Random Slide Order?', 'cycloneslider'); ?></label>
99
  <select id="cycloneslider_settings_randomize" name="cycloneslider_settings[random]">
60
  </span>
61
  <div class="clear"></div>
62
  </div>
63
+ <div class="cycloneslider-field">
64
+ <label for="cycloneslider_settings_resize"><?php _e('Resize Images?', 'cycloneslider'); ?></label>
65
+ <select id="cycloneslider_settings_resize" name="cycloneslider_settings[resize]">
66
+ <option <?php selected($slider_settings['resize'], 0); ?> value="0"><?php _e('No', 'cycloneslider'); ?></option>
67
+ <option <?php selected($slider_settings['resize'], 1); ?> value="1"><?php _e('Yes', 'cycloneslider'); ?></option>
68
+ </select>
69
+ <input type="hidden" name="cycloneslider_settings[force_resize]" value="0" />
70
+ <input type="checkbox" name="cycloneslider_settings[force_resize]" id="force_resize" value="1" />
71
+ <label for="force_resize"><?php _e('Force Resize', 'cycloneslider'); ?></label> <br>
72
+ <span class="note"><?php _e('Yes - resize images to slideshow dimension. <br>No - use the original uploaded image. <br>Force Resize - Regenerate all images and thumbnails.', 'cycloneslider'); ?></span>
73
+ <div class="clear"></div>
74
+ </div>
75
  <div class="cycloneslider-field">
76
  <label for="cycloneslider_settings_hover_pause"><?php _e('Pause on Hover?', 'cycloneslider'); ?></label>
77
  <select id="cycloneslider_settings_hover_pause" name="cycloneslider_settings[hover_pause]">
97
  <span class="note"><?php _e('The thumbnails or dots depending on template.', 'cycloneslider'); ?></span>
98
  <div class="clear"></div>
99
  </div>
 
 
 
 
 
 
 
 
 
100
  <div class="cycloneslider-field last">
101
  <label for="cycloneslider_settings_randomize"><?php _e('Random Slide Order?', 'cycloneslider'); ?></label>
102
  <select id="cycloneslider_settings_randomize" name="cycloneslider_settings[random]">