Slide Anything – Responsive Content / HTML Slider and Carousel - Version 2.3.35

Version Description

  • Added the 'Full Slide Links' checkbox (under 'Link/Popup Icons'). When checked then the entire slide area becomes a clickable link.
Download this release

Release Info

Developer simonpedge
Plugin Icon 128x128 Slide Anything – Responsive Content / HTML Slider and Carousel
Version 2.3.35
Comparing to
See all releases

Code changes from version 2.3.34 to 2.3.35

owl-carousel/sa-owl-theme.css CHANGED
@@ -189,6 +189,32 @@
189
  .black .sa_owl_theme .owl-item .sa_hover_container:hover .sa_hover_buttons .sa_popup_video_icon:hover {
190
  background-color:rgba(255,255,255,0.8) !important;
191
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
 
193
  /* HERO SLIDER (SA PRO) */
194
  .white .sa_hero_slider,
189
  .black .sa_owl_theme .owl-item .sa_hover_container:hover .sa_hover_buttons .sa_popup_video_icon:hover {
190
  background-color:rgba(255,255,255,0.8) !important;
191
  }
192
+ /* ### FULL SLIDE LINKS ### */
193
+ .sa_owl_theme .owl-item .sa_hover_container .sa_hover_fullslide {
194
+ position:absolute;
195
+ width:100%;
196
+ height:100%;
197
+ border-radius:0px !important;
198
+ z-index:2;
199
+ cursor:pointer;
200
+ background:transparent !important;
201
+ }
202
+ .sa_owl_theme .owl-item .sa_hover_container .sa_hover_fullslide .sa_slide_link_icon,
203
+ .sa_owl_theme .owl-item .sa_hover_container .sa_hover_fullslide .sa_popup_zoom_icon,
204
+ .sa_owl_theme .owl-item .sa_hover_container .sa_hover_fullslide .sa_popup_video_icon {
205
+ display:block;
206
+ width:100%;
207
+ height:100%;
208
+ transition:all .3s ease-in-out;
209
+ -webkit-transition:all .3s ease-in-out;
210
+ -moz-transition:all .3s ease-in-out;
211
+ -o-transition:all .3s ease-in-out;
212
+ }
213
+ .sa_owl_theme .owl-item .sa_hover_container .sa_hover_fullslide .sa_slide_link_icon:hover,
214
+ .sa_owl_theme .owl-item .sa_hover_container .sa_hover_fullslide .sa_popup_zoom_icon:hover,
215
+ .sa_owl_theme .owl-item .sa_hover_container .sa_hover_fullslide .sa_popup_video_icon:hover {
216
+ background-color:rgba(0,0,0,0.2);
217
+ }
218
 
219
  /* HERO SLIDER (SA PRO) */
220
  .white .sa_hero_slider,
php/slide-anything-admin.php CHANGED
@@ -1937,6 +1937,7 @@ function cpt_slider_style_content($post) {
1937
  }
1938
  echo "</div>\n";
1939
  if (($slide_min_height == 'aspect43') || ($slide_min_height == 'aspect169')) {
 
1940
  echo "<div class='ca_style_setting_line' id='sa_slide_min_height_wrapper' style='display:none;'>";
1941
  echo "<input type='text' id='sa_slide_min_height' name='sa_slide_min_height' value='".esc_attr($slide_min_height)."'/>";
1942
  echo "<em id='mh_suffix'>".$mh_suffix."</em></div>\n";
@@ -2038,6 +2039,24 @@ function cpt_slider_style_content($post) {
2038
  echo "<option value='black'>Black</option>";
2039
  }
2040
  echo "</select></div>\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2041
 
2042
  // ##### OTHER SETTINGS #####
2043
 
@@ -2831,6 +2850,11 @@ function cpt_slider_save_postdata() {
2831
  } else {
2832
  update_post_meta($post->ID, 'sa_slide_icons_visible', '0');
2833
  }
 
 
 
 
 
2834
 
2835
  // OTHER SETTINGS
2836
  $other_settings = '';
1937
  }
1938
  echo "</div>\n";
1939
  if (($slide_min_height == 'aspect43') || ($slide_min_height == 'aspect169')) {
1940
+ $mh_suffix = '';
1941
  echo "<div class='ca_style_setting_line' id='sa_slide_min_height_wrapper' style='display:none;'>";
1942
  echo "<input type='text' id='sa_slide_min_height' name='sa_slide_min_height' value='".esc_attr($slide_min_height)."'/>";
1943
  echo "<em id='mh_suffix'>".$mh_suffix."</em></div>\n";
2039
  echo "<option value='black'>Black</option>";
2040
  }
2041
  echo "</select></div>\n";
2042
+
2043
+ // LINK/POPUP ICONS - FULL SLIDE LINKS
2044
+ $slide_icons_fullslide = get_post_meta($post->ID, 'sa_slide_icons_fullslide', true);
2045
+ if ($slide_icons_fullslide != '1') {
2046
+ $slide_icons_fullslide = '0';
2047
+ }
2048
+ echo "<div class='ca_style_setting_line'><span>Full Slide Links</span>";
2049
+ if ($slide_icons_fullslide == '1') {
2050
+ echo "<input type='checkbox' id='sa_slide_icons_fullslide' name='sa_slide_icons_fullslide' value='1' checked/>";
2051
+ } else {
2052
+ echo "<input type='checkbox' id='sa_slide_icons_fullslide' name='sa_slide_icons_fullslide' value='1'/>";
2053
+ }
2054
+ $tooltip = "This makes the entire slide area a clickable link. NOTE: This feature is ";
2055
+ $tooltip .= "disabled if you have both a slide link AND a popup link for a slide.";
2056
+ $tt_style = "margin:0px 0px -3px 5px; cursor:help;";
2057
+ echo "<em class='sa_tooltip' style='".$tt_style."' title='".esc_attr($tooltip)."'></em>";
2058
+ echo "</div>\n";
2059
+
2060
 
2061
  // ##### OTHER SETTINGS #####
2062
 
2850
  } else {
2851
  update_post_meta($post->ID, 'sa_slide_icons_visible', '0');
2852
  }
2853
+ if (isset($_POST['sa_slide_icons_fullslide']) && ($_POST['sa_slide_icons_fullslide'] == '1')) {
2854
+ update_post_meta($post->ID, 'sa_slide_icons_fullslide', '1');
2855
+ } else {
2856
+ update_post_meta($post->ID, 'sa_slide_icons_fullslide', '0');
2857
+ }
2858
 
2859
  // OTHER SETTINGS
2860
  $other_settings = '';
php/slide-anything-frontend.php CHANGED
@@ -284,6 +284,12 @@ function slide_anything_shortcode($atts) {
284
  if ($slide_data['slide_icons_color'] != 'black') {
285
  $slide_data['slide_icons_color'] = 'white';
286
  }
 
 
 
 
 
 
287
  // FETCH OTHER SETTINGS POST META
288
  $other_settings = '';
289
  if (isset($metadata['sa_other_settings'])) {
@@ -708,10 +714,24 @@ function slide_anything_shortcode($atts) {
708
  else { $hov_marginL = '-20px'; }
709
  $style = "top:50%; left:50%; margin-top:-20px; margin-left:".$hov_marginL.";";
710
  }
711
- if ($slide_data['slide_icons_visible'] == 'true') {
712
- $output .= "<div class='sa_hover_buttons always_visible' style='".$style."'>";
 
 
 
 
 
 
 
 
 
713
  } else {
714
- $output .= "<div class='sa_hover_buttons' style='".$style."'>";
 
 
 
 
 
715
  }
716
  if ($link_output != '') {
717
  $output .= $link_output;
284
  if ($slide_data['slide_icons_color'] != 'black') {
285
  $slide_data['slide_icons_color'] = 'white';
286
  }
287
+ if (isset($metadata['sa_slide_icons_fullslide'][0]) &&
288
+ ($metadata['sa_slide_icons_fullslide'][0] == 1)) {
289
+ $slide_data['slide_icons_fullslide'] = '1';
290
+ } else {
291
+ $slide_data['slide_icons_fullslide'] = '0';
292
+ }
293
  // FETCH OTHER SETTINGS POST META
294
  $other_settings = '';
295
  if (isset($metadata['sa_other_settings'])) {
714
  else { $hov_marginL = '-20px'; }
715
  $style = "top:50%; left:50%; margin-top:-20px; margin-left:".$hov_marginL.";";
716
  }
717
+ // check whether to display a 'full slide link' for this slide
718
+ $full_slide_link = 0;
719
+ if ((($link_output == '') && ($popup_output != '')) ||
720
+ (($link_output != '') && ($popup_output == ''))) {
721
+ if ($slide_data['slide_icons_fullslide'] == '1') {
722
+ $full_slide_link = 1;
723
+ }
724
+ }
725
+ if ($full_slide_link == 1) {
726
+ // display full slide link
727
+ $output .= "<div class='sa_hover_fullslide'>";
728
  } else {
729
+ // display link buttons
730
+ if ($slide_data['slide_icons_visible'] == 'true') {
731
+ $output .= "<div class='sa_hover_buttons always_visible' style='".$style."'>";
732
+ } else {
733
+ $output .= "<div class='sa_hover_buttons' style='".$style."'>";
734
+ }
735
  }
736
  if ($link_output != '') {
737
  $output .= $link_output;
readme.txt CHANGED
@@ -98,6 +98,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 2.3.34 =
102
  * Small Bug Fix: The jQuery plugin I use to display the Colour Picker popup ('Spectrum Colourpicker') had a small bug in the HTML it was generating and was not displaying the colour pallette correctly.
103
 
@@ -698,3 +701,6 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
698
 
699
  = 2.3.34 =
700
  * Small Bug Fix: The jQuery plugin I use to display the Colour Picker popup ('Spectrum Colourpicker') had a small bug in the HTML it was generating and was not displaying the colour pallette correctly.
 
 
 
98
 
99
  == Changelog ==
100
 
101
+ = 2.3.35 =
102
+ * Added the 'Full Slide Links' checkbox (under 'Link/Popup Icons'). When checked then the entire slide area becomes a clickable link.
103
+
104
  = 2.3.34 =
105
  * Small Bug Fix: The jQuery plugin I use to display the Colour Picker popup ('Spectrum Colourpicker') had a small bug in the HTML it was generating and was not displaying the colour pallette correctly.
106
 
701
 
702
  = 2.3.34 =
703
  * Small Bug Fix: The jQuery plugin I use to display the Colour Picker popup ('Spectrum Colourpicker') had a small bug in the HTML it was generating and was not displaying the colour pallette correctly.
704
+
705
+ = 2.3.35 =
706
+ * Added the 'Full Slide Links' checkbox (under 'Link/Popup Icons'). When checked then the entire slide area becomes a clickable link.
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.34
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.35
8
  * License: GPLv2 or later
9
  */
10