Version Description
- Bug fix: if the user setting "Disable the visual editor when writing" was enabled, there were JavaScript errors
- Other minor changes and bug fixes
Download this release
Release Info
Developer | fabiorino |
Plugin | Crelly Slider |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- crellyslider.php +3 -3
- css/crellyslider.css +2 -2
- demo/demo.html +1 -1
- js/jquery.crellyslider.js +2 -2
- js/jquery.crellyslider.min.js +2 -2
- readme.txt +8 -4
- wordpress/ajax.php +23 -21
- wordpress/js/admin.js +3 -1
crellyslider.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Crelly Slider
|
4 |
-
* Plugin URI:
|
5 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Fabio Rinaldi
|
8 |
* Author URI: https://github.com/fabiorino
|
9 |
* Text Domain: crelly-slider
|
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
19 |
|
20 |
define('CS_DEBUG', false);
|
21 |
|
22 |
-
define('CS_VERSION', '1.2.
|
23 |
define('CS_PATH', plugin_dir_path(__FILE__));
|
24 |
define('CS_PLUGIN_URL', plugins_url() . '/crelly-slider');
|
25 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Crelly Slider
|
4 |
+
* Plugin URI: https://wordpress.org/plugins/crelly-slider/
|
5 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
6 |
+
* Version: 1.2.1
|
7 |
* Author: Fabio Rinaldi
|
8 |
* Author URI: https://github.com/fabiorino
|
9 |
* Text Domain: crelly-slider
|
19 |
|
20 |
define('CS_DEBUG', false);
|
21 |
|
22 |
+
define('CS_VERSION', '1.2.1');
|
23 |
define('CS_PATH', plugin_dir_path(__FILE__));
|
24 |
define('CS_PLUGIN_URL', plugins_url() . '/crelly-slider');
|
25 |
|
css/crellyslider.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Plugin Name: Crelly Slider
|
3 |
-
* Plugin URI:
|
4 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
5 |
-
* Version: 1.2.
|
6 |
* Author: Fabio Rinaldi
|
7 |
* Author URI: https://github.com/fabiorino
|
8 |
* License: MIT
|
1 |
/**
|
2 |
* Plugin Name: Crelly Slider
|
3 |
+
* Plugin URI: https://wordpress.org/plugins/crelly-slider/
|
4 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
5 |
+
* Version: 1.2.1
|
6 |
* Author: Fabio Rinaldi
|
7 |
* Author URI: https://github.com/fabiorino
|
8 |
* License: MIT
|
demo/demo.html
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
|
32 |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
33 |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
34 |
-
<script type="text/javascript" src="../js/jquery.crellyslider.js"></script> <!-- use jquery.crellyslider.min.js for production -->
|
35 |
</head>
|
36 |
|
37 |
<body>
|
31 |
|
32 |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
33 |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
34 |
+
<script type="text/javascript" src="../js/jquery.crellyslider.js"></script> <!-- use jquery.crellyslider.min.js for production -->
|
35 |
</head>
|
36 |
|
37 |
<body>
|
js/jquery.crellyslider.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Plugin Name: Crelly Slider
|
3 |
-
* Plugin URI:
|
4 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
5 |
-
* Version: 1.2.
|
6 |
* Author: Fabio Rinaldi
|
7 |
* Author URI: https://github.com/fabiorino
|
8 |
* License: MIT
|
1 |
/**
|
2 |
* Plugin Name: Crelly Slider
|
3 |
+
* Plugin URI: https://wordpress.org/plugins/crelly-slider/
|
4 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
5 |
+
* Version: 1.2.1
|
6 |
* Author: Fabio Rinaldi
|
7 |
* Author URI: https://github.com/fabiorino
|
8 |
* License: MIT
|
js/jquery.crellyslider.min.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/**
|
2 |
* Plugin Name: Crelly Slider
|
3 |
-
* Plugin URI:
|
4 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
5 |
-
* Version: 1.2.
|
6 |
* Author: Fabio Rinaldi
|
7 |
* Author URI: https://github.com/fabiorino
|
8 |
* License: MIT
|
1 |
/**
|
2 |
* Plugin Name: Crelly Slider
|
3 |
+
* Plugin URI: https://wordpress.org/plugins/crelly-slider/
|
4 |
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
|
5 |
+
* Version: 1.2.1
|
6 |
* Author: Fabio Rinaldi
|
7 |
* Author URI: https://github.com/fabiorino
|
8 |
* License: MIT
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Crelly Slider ===
|
2 |
Contributors: fabiorino
|
3 |
-
Donate link: http://crellyslider.
|
4 |
Tags: animations, layers, texts, images, videos
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.2.
|
8 |
License: MIT
|
9 |
License URI: http://opensource.org/licenses/MIT
|
10 |
|
@@ -15,7 +15,7 @@ A free responsive slider that supports layers. Add texts, images, videos and bea
|
|
15 |
Crelly Slider is a Free / Open Source responsive WordPress slider that supports layers. You can add Texts, Images, YouTube/Vimeo videos using a powerful Drag & Drop Builder and animate each of them. It is perfect to display your creative content in posts and pages.
|
16 |
<br />
|
17 |
<br />
|
18 |
-
<a href="http://crellyslider.
|
19 |
<br />
|
20 |
= User Friendly Admin Panel =
|
21 |
Crelly Slider does not require any Coding Knowledge. With the simple admin panel you will be able to create the sliders in the easiest way. Upload images with the default WordPress interface or choose colors using the picker.
|
@@ -43,7 +43,7 @@ Click Install.
|
|
43 |
<br />
|
44 |
Click Activate.
|
45 |
<br />
|
46 |
-
You can find the documentation <a href="http://crellyslider.
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
@@ -54,6 +54,10 @@ You can find the documentation <a href="http://crellyslider.tk/documentation/">h
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
|
|
57 |
= 1.2.0 =
|
58 |
* New feature: texts can be edited with the default WordPress editor (TinyMCE)
|
59 |
* New feature: the order of the slides can be set to "random"
|
1 |
=== Crelly Slider ===
|
2 |
Contributors: fabiorino
|
3 |
+
Donate link: http://crellyslider.altervista.org/contribute-and-support/
|
4 |
Tags: animations, layers, texts, images, videos
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.2.1
|
8 |
License: MIT
|
9 |
License URI: http://opensource.org/licenses/MIT
|
10 |
|
15 |
Crelly Slider is a Free / Open Source responsive WordPress slider that supports layers. You can add Texts, Images, YouTube/Vimeo videos using a powerful Drag & Drop Builder and animate each of them. It is perfect to display your creative content in posts and pages.
|
16 |
<br />
|
17 |
<br />
|
18 |
+
<a href="http://crellyslider.altervista.org/">Official WebSite (with live demo)</a>
|
19 |
<br />
|
20 |
= User Friendly Admin Panel =
|
21 |
Crelly Slider does not require any Coding Knowledge. With the simple admin panel you will be able to create the sliders in the easiest way. Upload images with the default WordPress interface or choose colors using the picker.
|
43 |
<br />
|
44 |
Click Activate.
|
45 |
<br />
|
46 |
+
You can find the documentation <a href="http://crellyslider.altervista.org/documentation/">here</a>.
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 1.2.1 =
|
58 |
+
* Bug fix: if the user setting "Disable the visual editor when writing" was enabled, there were JavaScript errors
|
59 |
+
* Other minor changes and bug fixes
|
60 |
+
|
61 |
= 1.2.0 =
|
62 |
* New feature: texts can be edited with the default WordPress editor (TinyMCE)
|
63 |
* New feature: the order of the slides can be set to "random"
|
wordpress/ajax.php
CHANGED
@@ -560,7 +560,7 @@ function crellyslider_importSlider_callback() {
|
|
560 |
|
561 |
// Set background images
|
562 |
if($slides[$key]->background_type_image != 'undefined' && $slides[$key]->background_type_image != 'none') {
|
563 |
-
$url =
|
564 |
$id = crellyslider_importImage($url);
|
565 |
$slides[$key]->background_type_image = $id;
|
566 |
}
|
@@ -582,7 +582,7 @@ function crellyslider_importSlider_callback() {
|
|
582 |
|
583 |
// Set images
|
584 |
if($elements[$key]->type == 'image') {
|
585 |
-
$url =
|
586 |
$id = crellyslider_importImage($url);
|
587 |
$elements[$key]->image_src = $id;
|
588 |
}
|
@@ -625,27 +625,29 @@ function crellyslider_importSlider_callback() {
|
|
625 |
}
|
626 |
|
627 |
// Imports an image to the WordPress media library. Returns the attachment ID
|
|
|
628 |
function crellyslider_importImage($local_url) {
|
629 |
-
$
|
630 |
-
$
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
|
|
647 |
}
|
648 |
|
649 |
-
return $
|
650 |
}
|
651 |
?>
|
560 |
|
561 |
// Set background images
|
562 |
if($slides[$key]->background_type_image != 'undefined' && $slides[$key]->background_type_image != 'none') {
|
563 |
+
$url = CS_PATH . '/wordpress/temp/' . $slides[$key]->background_type_image;
|
564 |
$id = crellyslider_importImage($url);
|
565 |
$slides[$key]->background_type_image = $id;
|
566 |
}
|
582 |
|
583 |
// Set images
|
584 |
if($elements[$key]->type == 'image') {
|
585 |
+
$url = CS_PATH . '/wordpress/temp/' . $elements[$key]->image_src;
|
586 |
$id = crellyslider_importImage($url);
|
587 |
$elements[$key]->image_src = $id;
|
588 |
}
|
625 |
}
|
626 |
|
627 |
// Imports an image to the WordPress media library. Returns the attachment ID
|
628 |
+
// Original script: https://gist.github.com/hissy/7352933
|
629 |
function crellyslider_importImage($local_url) {
|
630 |
+
$file = $local_url;
|
631 |
+
$filename = basename($file);
|
632 |
+
|
633 |
+
$upload_file = wp_upload_bits($filename, null, file_get_contents($file));
|
634 |
+
if (!$upload_file['error']) {
|
635 |
+
$wp_filetype = wp_check_filetype($filename, null );
|
636 |
+
$attachment = array(
|
637 |
+
'post_mime_type' => $wp_filetype['type'],
|
638 |
+
'post_parent' => 0,
|
639 |
+
'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
|
640 |
+
'post_content' => '',
|
641 |
+
'post_status' => 'inherit'
|
642 |
+
);
|
643 |
+
$attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
|
644 |
+
if (!is_wp_error($attachment_id)) {
|
645 |
+
require_once(ABSPATH . "wp-admin" . '/includes/image.php');
|
646 |
+
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
|
647 |
+
wp_update_attachment_metadata( $attachment_id, $attachment_data );
|
648 |
+
}
|
649 |
}
|
650 |
|
651 |
+
return $attachment_id;
|
652 |
}
|
653 |
?>
|
wordpress/js/admin.js
CHANGED
@@ -932,7 +932,9 @@
|
|
932 |
}
|
933 |
};
|
934 |
|
935 |
-
tinyMCE
|
|
|
|
|
936 |
}
|
937 |
|
938 |
// When the user modifies the text in the TinyMCE editor, apply the changes to the preview area
|
932 |
}
|
933 |
};
|
934 |
|
935 |
+
if(typeof tinyMCE != 'undefined') {
|
936 |
+
tinyMCE.init(settings);
|
937 |
+
}
|
938 |
}
|
939 |
|
940 |
// When the user modifies the text in the TinyMCE editor, apply the changes to the preview area
|