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

Version Description

  • Added the 'Use UL and LI Containers' checkbox which when checked, 'UL' is used as the DOM element for 'owl-stage' and 'LI' is used as the DOM elements for 'owl-item'

=

Download this release

Release Info

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

Code changes from version 2.3.7 to 2.3.8

owl-carousel/sa-owl-theme.css CHANGED
@@ -15,6 +15,15 @@
15
  line-height:22px !important;
16
  color:crimson !important;
17
  }
 
 
 
 
 
 
 
 
 
18
  /* ### PAGINATION BUTTONS ### */
19
  .sa_owl_theme .owl-dots {
20
  position:absolute;
15
  line-height:22px !important;
16
  color:crimson !important;
17
  }
18
+ /* ### USING UL/LI CONTAINERS ### */
19
+ .sa_owl_theme ul.owl-stage {
20
+ margin:0px !important;
21
+ padding:0px !important;
22
+ }
23
+ .sa_owl_theme ul.owl-stage li.owl-item {
24
+ display:block !important;
25
+ list-style-type:none !important;
26
+ }
27
  /* ### PAGINATION BUTTONS ### */
28
  .sa_owl_theme .owl-dots {
29
  position:absolute;
php/slide-anything-admin.php CHANGED
@@ -1894,7 +1894,7 @@ function cpt_slider_style_content($post) {
1894
  echo "<input type='checkbox' id='sa_window_onload' name='sa_window_onload' value='1'/>";
1895
  }
1896
  echo "</div>\n";
1897
-
1898
  // Strip JavaScript from Content
1899
  $strip_javascript = get_post_meta($post->ID, 'sa_strip_javascript', true);
1900
  if ($strip_javascript == '') {
@@ -1924,6 +1924,21 @@ function cpt_slider_style_content($post) {
1924
  echo "<input type='checkbox' id='sa_lazy_load_images' name='sa_lazy_load_images' value='1'/>";
1925
  }
1926
  echo "</div>\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1927
 
1928
  echo "</div>\n";
1929
  }
@@ -2525,6 +2540,11 @@ function cpt_slider_save_postdata() {
2525
  } else {
2526
  update_post_meta($post->ID, 'sa_lazy_load_images', '0');
2527
  }
 
 
 
 
 
2528
 
2529
  if ($sa_pro_version) {
2530
  // THUMBNAIL PAGINATION
1894
  echo "<input type='checkbox' id='sa_window_onload' name='sa_window_onload' value='1'/>";
1895
  }
1896
  echo "</div>\n";
1897
+
1898
  // Strip JavaScript from Content
1899
  $strip_javascript = get_post_meta($post->ID, 'sa_strip_javascript', true);
1900
  if ($strip_javascript == '') {
1924
  echo "<input type='checkbox' id='sa_lazy_load_images' name='sa_lazy_load_images' value='1'/>";
1925
  }
1926
  echo "</div>\n";
1927
+
1928
+ // Use UL and LI Containers
1929
+ $ulli_containers = get_post_meta($post->ID, 'sa_ulli_containers', true);
1930
+ if ($ulli_containers == '') {
1931
+ $ulli_containers = '0';
1932
+ }
1933
+ $tooltip = "Use &quot;UL&quot; as the DOM element for &quot;owl-stage&quot; and use &quot;LI&quot; as the DOM elements for &quot;owl-item&quot;.";
1934
+ echo "<div id='sa_window_onload_line'>";
1935
+ echo "<span class='sa_tooltip' title='".$tooltip."'></span><span style='min-width:160px;'>Use UL and LI Containers:</span>";
1936
+ if ($ulli_containers == '1') {
1937
+ echo "<input type='checkbox' id='sa_ulli_containers' name='sa_ulli_containers' value='1' checked/>";
1938
+ } else {
1939
+ echo "<input type='checkbox' id='sa_ulli_containers' name='sa_ulli_containers' value='1'/>";
1940
+ }
1941
+ echo "</div>\n";
1942
 
1943
  echo "</div>\n";
1944
  }
2540
  } else {
2541
  update_post_meta($post->ID, 'sa_lazy_load_images', '0');
2542
  }
2543
+ if (isset($_POST['sa_ulli_containers']) && ($_POST['sa_ulli_containers'] == '1')) {
2544
+ update_post_meta($post->ID, 'sa_ulli_containers', '1');
2545
+ } else {
2546
+ update_post_meta($post->ID, 'sa_ulli_containers', '0');
2547
+ }
2548
 
2549
  if ($sa_pro_version) {
2550
  // THUMBNAIL PAGINATION
php/slide-anything-frontend.php CHANGED
@@ -250,6 +250,13 @@ function slide_anything_shortcode($atts) {
250
  if (isset($metadata['sa_lazy_load_images'])) {
251
  $slide_data['lazy_load_images'] = $metadata['sa_lazy_load_images'][0];
252
  }
 
 
 
 
 
 
 
253
  // hero slider and slider thumbnails
254
  $slide_data['hero_slider'] = '0';
255
  $slide_data['thumbs_active'] = '0';
@@ -789,6 +796,10 @@ function slide_anything_shortcode($atts) {
789
  $output .= " thumbs : true,\n";
790
  $output .= " thumbsPrerendered : true,\n";
791
  }
 
 
 
 
792
  $output .= " mouseDrag : ".esc_attr($slide_data['mouse_drag']).",\n";
793
  $output .= " touchDrag : ".esc_attr($slide_data['touch_drag'])."\n";
794
  $output .= " });\n";
250
  if (isset($metadata['sa_lazy_load_images'])) {
251
  $slide_data['lazy_load_images'] = $metadata['sa_lazy_load_images'][0];
252
  }
253
+ $slide_data['ulli_containers'] = '0';
254
+ if (isset($metadata['sa_ulli_containers'])) {
255
+ $slide_data['ulli_containers'] = $metadata['sa_ulli_containers'][0];
256
+ if ($slide_data['ulli_containers'] != '1') {
257
+ $slide_data['ulli_containers'] = '0';
258
+ }
259
+ }
260
  // hero slider and slider thumbnails
261
  $slide_data['hero_slider'] = '0';
262
  $slide_data['thumbs_active'] = '0';
796
  $output .= " thumbs : true,\n";
797
  $output .= " thumbsPrerendered : true,\n";
798
  }
799
+ if ($slide_data['ulli_containers'] == '1') {
800
+ $output .= " stageElement : 'ul',\n";
801
+ $output .= " itemElement : 'li',\n";
802
+ }
803
  $output .= " mouseDrag : ".esc_attr($slide_data['mouse_drag']).",\n";
804
  $output .= " touchDrag : ".esc_attr($slide_data['touch_drag'])."\n";
805
  $output .= " });\n";
readme.txt CHANGED
@@ -317,6 +317,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
317
  = 2.3.7 =
318
  * Added the option to bulk delete slides within the 'Re-Order Slides' page
319
 
 
 
 
320
  == Upgrade Notice ==
321
 
322
  = 1.0 =
@@ -535,4 +538,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
535
  * 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)
536
 
537
  = 2.3.7 =
538
- * Added the option to bulk delete slides within the 'Re-Order Slides' page
 
 
 
317
  = 2.3.7 =
318
  * Added the option to bulk delete slides within the 'Re-Order Slides' page
319
 
320
+ = 2.3.8 =
321
+ * Added the 'Use UL and LI Containers' checkbox which when checked, 'UL' is used as the DOM element for 'owl-stage' and 'LI' is used as the DOM elements for 'owl-item'
322
+
323
  == Upgrade Notice ==
324
 
325
  = 1.0 =
538
  * 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)
539
 
540
  = 2.3.7 =
541
+ * Added the option to bulk delete slides within the 'Re-Order Slides' page
542
+
543
+ = 2.3.8 =
544
+ * Added the 'Use UL and LI Containers' checkbox which when checked, 'UL' is used as the DOM element for 'owl-stage' and 'LI' is used as the DOM elements for 'owl-item'
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.7
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.8
8
  * License: GPLv2 or later
9
  */
10