Version Description
- Added the 'Show 1 Dot Per Slide' checkbox option which when checked displays 1 pagination dot per slide (instead of 1 pagination dot per page of slides)
=
Download this release
Release Info
Developer | simonpedge |
Plugin | Slide Anything – Responsive Content / HTML Slider and Carousel |
Version | 2.3.6 |
Comparing to | |
See all releases |
Code changes from version 2.3.5 to 2.3.6
- php/slide-anything-admin.php +20 -1
- php/slide-anything-frontend.php +12 -0
- readme.txt +7 -1
- slide-anything.php +1 -1
php/slide-anything-admin.php
CHANGED
@@ -108,6 +108,7 @@ function cpt_slider_plugin_activation() {
|
|
108 |
update_post_meta($cpt_id, 'sa_slide_padding_lr', 5);
|
109 |
update_post_meta($cpt_id, 'sa_slide_margin_lr', 0);
|
110 |
update_post_meta($cpt_id, 'sa_autohide_arrows', '1');
|
|
|
111 |
update_post_meta($cpt_id, 'sa_slide_icons_location', 'Center Center');
|
112 |
update_post_meta($cpt_id, 'sa_slide_icons_visible', '0');
|
113 |
update_post_meta($cpt_id, 'sa_slide_icons_color', 'white');
|
@@ -1683,13 +1684,26 @@ function cpt_slider_style_content($post) {
|
|
1683 |
if ($autohide_arrows == '') {
|
1684 |
$autohide_arrows = '1';
|
1685 |
}
|
1686 |
-
echo "<div class='ca_style_setting_line'><span>Autohide Arrows</span>";
|
1687 |
if ($autohide_arrows == '1') {
|
1688 |
echo "<input type='checkbox' id='sa_autohide_arrows' name='sa_autohide_arrows' value='1' checked/>";
|
1689 |
} else {
|
1690 |
echo "<input type='checkbox' id='sa_autohide_arrows' name='sa_autohide_arrows' value='1'/>";
|
1691 |
}
|
1692 |
echo "</div>\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1693 |
|
1694 |
$tooltip = "The background color and border around the entire carousel/slider";
|
1695 |
echo "<h4>Background/Border:<em class='sa_tooltip' title='".esc_attr($tooltip)."'></em></h4>";
|
@@ -2484,6 +2498,11 @@ function cpt_slider_save_postdata() {
|
|
2484 |
} else {
|
2485 |
update_post_meta($post->ID, 'sa_autohide_arrows', '0');
|
2486 |
}
|
|
|
|
|
|
|
|
|
|
|
2487 |
if (isset($_POST['sa_slide_icons_visible']) && ($_POST['sa_slide_icons_visible'] == '1')) {
|
2488 |
update_post_meta($post->ID, 'sa_slide_icons_visible', '1');
|
2489 |
} else {
|
108 |
update_post_meta($cpt_id, 'sa_slide_padding_lr', 5);
|
109 |
update_post_meta($cpt_id, 'sa_slide_margin_lr', 0);
|
110 |
update_post_meta($cpt_id, 'sa_autohide_arrows', '1');
|
111 |
+
update_post_meta($cpt_id, 'sa_dot_per_slide', '0');
|
112 |
update_post_meta($cpt_id, 'sa_slide_icons_location', 'Center Center');
|
113 |
update_post_meta($cpt_id, 'sa_slide_icons_visible', '0');
|
114 |
update_post_meta($cpt_id, 'sa_slide_icons_color', 'white');
|
1684 |
if ($autohide_arrows == '') {
|
1685 |
$autohide_arrows = '1';
|
1686 |
}
|
1687 |
+
echo "<div class='ca_style_setting_line'><span style='width:140px;'>Autohide Arrows</span>";
|
1688 |
if ($autohide_arrows == '1') {
|
1689 |
echo "<input type='checkbox' id='sa_autohide_arrows' name='sa_autohide_arrows' value='1' checked/>";
|
1690 |
} else {
|
1691 |
echo "<input type='checkbox' id='sa_autohide_arrows' name='sa_autohide_arrows' value='1'/>";
|
1692 |
}
|
1693 |
echo "</div>\n";
|
1694 |
+
|
1695 |
+
// SHOW DOT PER SLIDE
|
1696 |
+
$dot_per_slide = get_post_meta($post->ID, 'sa_dot_per_slide', true);
|
1697 |
+
if ($dot_per_slide == '') {
|
1698 |
+
$dot_per_slide = '0';
|
1699 |
+
}
|
1700 |
+
echo "<div class='ca_style_setting_line'><span style='width:140px;'>Show 1 Dot Per Slide</span>";
|
1701 |
+
if ($dot_per_slide == '1') {
|
1702 |
+
echo "<input type='checkbox' id='sa_dot_per_slide' name='sa_dot_per_slide' value='1' checked/>";
|
1703 |
+
} else {
|
1704 |
+
echo "<input type='checkbox' id='sa_dot_per_slide' name='sa_dot_per_slide' value='1'/>";
|
1705 |
+
}
|
1706 |
+
echo "</div>\n";
|
1707 |
|
1708 |
$tooltip = "The background color and border around the entire carousel/slider";
|
1709 |
echo "<h4>Background/Border:<em class='sa_tooltip' title='".esc_attr($tooltip)."'></em></h4>";
|
2498 |
} else {
|
2499 |
update_post_meta($post->ID, 'sa_autohide_arrows', '0');
|
2500 |
}
|
2501 |
+
if (isset($_POST['sa_dot_per_slide']) && ($_POST['sa_dot_per_slide'] == '1')) {
|
2502 |
+
update_post_meta($post->ID, 'sa_dot_per_slide', '1');
|
2503 |
+
} else {
|
2504 |
+
update_post_meta($post->ID, 'sa_dot_per_slide', '0');
|
2505 |
+
}
|
2506 |
if (isset($_POST['sa_slide_icons_visible']) && ($_POST['sa_slide_icons_visible'] == '1')) {
|
2507 |
update_post_meta($post->ID, 'sa_slide_icons_visible', '1');
|
2508 |
} else {
|
php/slide-anything-frontend.php
CHANGED
@@ -213,6 +213,15 @@ function slide_anything_shortcode($atts) {
|
|
213 |
} else {
|
214 |
$slide_data['autohide_arrows'] = 'false';
|
215 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
$slide_data['slide_icons_visible'] = $metadata['sa_slide_icons_visible'][0];
|
217 |
if ($slide_data['slide_icons_visible'] == '1') {
|
218 |
$slide_data['slide_icons_visible'] = 'true';
|
@@ -754,6 +763,9 @@ function slide_anything_shortcode($atts) {
|
|
754 |
$output .= " autoplaySpeed : ".esc_attr($slide_data['slide_transition']).",\n";
|
755 |
$output .= " navSpeed : ".esc_attr($slide_data['slide_transition']).",\n";
|
756 |
$output .= " dotsSpeed : ".esc_attr($slide_data['slide_transition']).",\n";
|
|
|
|
|
|
|
757 |
$output .= " loop : ".esc_attr($slide_data['loop_slider']).",\n";
|
758 |
$output .= " nav : ".esc_attr($slide_data['nav_arrows']).",\n";
|
759 |
$output .= " navText : ['',''],\n";
|
213 |
} else {
|
214 |
$slide_data['autohide_arrows'] = 'false';
|
215 |
}
|
216 |
+
$slide_data['dot_per_slide'] = '0';
|
217 |
+
if (isset($metadata['sa_dot_per_slide'])) {
|
218 |
+
$slide_data['dot_per_slide'] = $metadata['sa_dot_per_slide'][0];
|
219 |
+
if ($slide_data['dot_per_slide'] != '1') {
|
220 |
+
$slide_data['dot_per_slide'] = '0';
|
221 |
+
}
|
222 |
+
} else {
|
223 |
+
$slide_data['dot_per_slide'] = '0';
|
224 |
+
}
|
225 |
$slide_data['slide_icons_visible'] = $metadata['sa_slide_icons_visible'][0];
|
226 |
if ($slide_data['slide_icons_visible'] == '1') {
|
227 |
$slide_data['slide_icons_visible'] = 'true';
|
763 |
$output .= " autoplaySpeed : ".esc_attr($slide_data['slide_transition']).",\n";
|
764 |
$output .= " navSpeed : ".esc_attr($slide_data['slide_transition']).",\n";
|
765 |
$output .= " dotsSpeed : ".esc_attr($slide_data['slide_transition']).",\n";
|
766 |
+
if ($slide_data['dot_per_slide'] == '1') {
|
767 |
+
$output .= " dotsEach : 1,\n";
|
768 |
+
}
|
769 |
$output .= " loop : ".esc_attr($slide_data['loop_slider']).",\n";
|
770 |
$output .= " nav : ".esc_attr($slide_data['nav_arrows']).",\n";
|
771 |
$output .= " navText : ['',''],\n";
|
readme.txt
CHANGED
@@ -311,6 +311,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
311 |
= 2.3.5 =
|
312 |
* Added the 'Re-Order Slides' sub-page, which allows one to easily change the order of slides within a Slide Anything slider with a 'drag-and-drop' interface
|
313 |
|
|
|
|
|
|
|
314 |
== Upgrade Notice ==
|
315 |
|
316 |
= 1.0 =
|
@@ -523,4 +526,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
523 |
* Added a 'Duplicate Slider' facility so that sliders created can be duplicated or backed-up
|
524 |
|
525 |
= 2.3.5 =
|
526 |
-
* Added the 'Re-Order Slides' sub-page, which allows one to easily change the order of slides within a Slide Anything slider with a 'drag-and-drop' interface
|
|
|
|
|
|
311 |
= 2.3.5 =
|
312 |
* Added the 'Re-Order Slides' sub-page, which allows one to easily change the order of slides within a Slide Anything slider with a 'drag-and-drop' interface
|
313 |
|
314 |
+
= 2.3.6 =
|
315 |
+
* Added the 'Show 1 Dot Per Slide' checkbox option which when checked displays 1 pagination dot per slide (instead of 1 pagination dot per page of slides)
|
316 |
+
|
317 |
== Upgrade Notice ==
|
318 |
|
319 |
= 1.0 =
|
526 |
* Added a 'Duplicate Slider' facility so that sliders created can be duplicated or backed-up
|
527 |
|
528 |
= 2.3.5 =
|
529 |
+
* Added the 'Re-Order Slides' sub-page, which allows one to easily change the order of slides within a Slide Anything slider with a 'drag-and-drop' interface
|
530 |
+
|
531 |
+
= 2.3.6 =
|
532 |
+
* Added the 'Show 1 Dot Per Slide' checkbox option which when checked displays 1 pagination dot per slide (instead of 1 pagination dot per page of slides)
|
slide-anything.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/slide-anything/
|
5 |
* Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
|
6 |
* Author: Simon Edge
|
7 |
-
* Version: 2.3.
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|
4 |
* Plugin URI: https://wordpress.org/plugins/slide-anything/
|
5 |
* Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
|
6 |
* Author: Simon Edge
|
7 |
+
* Version: 2.3.6
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|