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

Version Description

  • Bug Fix: Added Allow Shortcodes setting. Running shortcodes within Slide Anything may cause issues with some Wordpress Page Builders, and disable this setting will resolve this issue if it occurs.
  • Added a new Items Displayed setting to set the number of slides to be displayed on screen resolutions over 1400 pixels
  • Added a new Autohide Arrows setting to enable/displayed the autohide feature for slider navigation arrows

=

Download this release

Release Info

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

Code changes from version 1.3 to 1.4

css/slide-anything-admin.css CHANGED
@@ -295,6 +295,7 @@
295
  }
296
  #items_displayed_metabox > div select {
297
  margin:1px 1px 3px !important;
 
298
  }
299
 
300
  /* ### METABOX 'Slider Style' ### */
@@ -384,7 +385,7 @@
384
  }
385
  #slider_style_metabox .ca_style_setting_line span {
386
  display:inline-block;
387
- width:100px;
388
  font-family:'Open Sans', sans-serif;
389
  font-size:13px;
390
  line-height:18px;
@@ -392,7 +393,7 @@
392
  #slider_style_metabox .ca_style_setting_line .ui-spinner {
393
  width:auto !important;
394
  }
395
- #slider_style_metabox .ca_style_setting_line input {
396
  width:50px !important;
397
  margin:3px 5px !important;
398
  outline-style:none !important;
@@ -402,6 +403,10 @@
402
  color:#303030 !important;
403
  font-size:13px !important;
404
  }
 
 
 
 
405
  #slider_style_metabox .ca_style_setting_line em {
406
  display:inline-block;
407
  padding:0px 10px 0px 5px;
@@ -418,7 +423,7 @@
418
  border-radius:3px !important;
419
  }
420
  #slider_style_metabox .ca_style_setting_line .sp-replacer .sp-preview { /* spectrum color picker */
421
- width:38px !important;
422
  height:16px !important;
423
  border:solid 1px #c0c0c0 !important;
424
  margin-right:3px !important;
@@ -444,8 +449,8 @@
444
  #slider_style_metabox #ca_style_padding_top_bottom > span,
445
  #slider_style_metabox #ca_style_padding_left_right > span,
446
  #slider_style_metabox #ca_style_margin_left_right > span {
447
- width:77px;
448
- background-position:57px 2px !important;
449
  height:20px !important;
450
  cursor:help;
451
  }
295
  }
296
  #items_displayed_metabox > div select {
297
  margin:1px 1px 3px !important;
298
+ max-width:50px !important;
299
  }
300
 
301
  /* ### METABOX 'Slider Style' ### */
385
  }
386
  #slider_style_metabox .ca_style_setting_line span {
387
  display:inline-block;
388
+ width:110px;
389
  font-family:'Open Sans', sans-serif;
390
  font-size:13px;
391
  line-height:18px;
393
  #slider_style_metabox .ca_style_setting_line .ui-spinner {
394
  width:auto !important;
395
  }
396
+ #slider_style_metabox .ca_style_setting_line input[type='text'] {
397
  width:50px !important;
398
  margin:3px 5px !important;
399
  outline-style:none !important;
403
  color:#303030 !important;
404
  font-size:13px !important;
405
  }
406
+ #slider_style_metabox .ca_style_setting_line input[type='checkbox'] {
407
+ margin-left:5px !important;
408
+ margin-right:5px !important;
409
+ }
410
  #slider_style_metabox .ca_style_setting_line em {
411
  display:inline-block;
412
  padding:0px 10px 0px 5px;
423
  border-radius:3px !important;
424
  }
425
  #slider_style_metabox .ca_style_setting_line .sp-replacer .sp-preview { /* spectrum color picker */
426
+ width:28px !important;
427
  height:16px !important;
428
  border:solid 1px #c0c0c0 !important;
429
  margin-right:3px !important;
449
  #slider_style_metabox #ca_style_padding_top_bottom > span,
450
  #slider_style_metabox #ca_style_padding_left_right > span,
451
  #slider_style_metabox #ca_style_margin_left_right > span {
452
+ width:87px;
453
+ background-position:67px 2px !important;
454
  height:20px !important;
455
  cursor:help;
456
  }
owl-carousel/owl-theme.css CHANGED
@@ -42,9 +42,12 @@
42
 
43
  /* ### PREVIOUS AND NEXT ARROW BUTTONS ### */
44
  .owl-theme .owl-controls .owl-buttons {
 
 
 
45
  display:none !important;
46
  }
47
- .owl-theme:hover .owl-controls .owl-buttons {
48
  display:block !important;
49
  }
50
  .owl-theme .owl-controls .owl-buttons div {
42
 
43
  /* ### PREVIOUS AND NEXT ARROW BUTTONS ### */
44
  .owl-theme .owl-controls .owl-buttons {
45
+ display:block !important;
46
+ }
47
+ .autohide-arrows .owl-controls .owl-buttons {
48
  display:none !important;
49
  }
50
+ .autohide-arrows:hover .owl-controls .owl-buttons {
51
  display:block !important;
52
  }
53
  .owl-theme .owl-controls .owl-buttons div {
php/slide-anything-admin.php CHANGED
@@ -67,6 +67,7 @@ function cpt_slider_plugin_activation() {
67
  update_post_meta($cpt_id, 'sa_items_width3', 3);
68
  update_post_meta($cpt_id, 'sa_items_width4', 4);
69
  update_post_meta($cpt_id, 'sa_items_width5', 4);
 
70
  update_post_meta($cpt_id, 'sa_css_id', 'sample_slider');
71
  update_post_meta($cpt_id, 'sa_background_color', '#fafafa');
72
  update_post_meta($cpt_id, 'sa_border_width', 1);
@@ -79,6 +80,8 @@ function cpt_slider_plugin_activation() {
79
  update_post_meta($cpt_id, 'sa_slide_min_height', 100);
80
  update_post_meta($cpt_id, 'sa_slide_padding_tb', 5);
81
  update_post_meta($cpt_id, 'sa_slide_padding_lr', 5);
 
 
82
  }
83
  }
84
 
@@ -435,6 +438,19 @@ function cpt_slider_settings_content($post) {
435
  }
436
  echo "<em class='sa_tooltip' href='' title='Display slider pagination below the slider'></em>\n";
437
  echo "</div>\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
438
  echo "</div>\n";
439
  echo "<div style='clear:both; float:none; width:100%; height:1px;'></div>\n";
440
  echo "</div>\n";
@@ -647,7 +663,7 @@ function cpt_slider_slides_content($post) {
647
 
648
 
649
 
650
- // ##### META BOX CONTENT - 'Slider Shortcode' BOX #####
651
  function cpt_slider_shortcode_content($post) {
652
  $shortcode = "[slide-anything id='".$post->ID."']";
653
  echo "<div id='sa_slider_shortcode'>".esc_html($shortcode)."</div>\n";
@@ -677,11 +693,13 @@ function cpt_slider_items_content($post) {
677
  $items_width3 = intval(get_post_meta($post->ID, 'sa_items_width3', true));
678
  $items_width4 = intval(get_post_meta($post->ID, 'sa_items_width4', true));
679
  $items_width5 = intval(get_post_meta($post->ID, 'sa_items_width5', true));
 
680
  if ($items_width1 == 0) { $items_width1 = 1; }
681
  if ($items_width2 == 0) { $items_width2 = 1; }
682
  if ($items_width3 == 0) { $items_width3 = 1; }
683
  if ($items_width4 == 0) { $items_width4 = 1; }
684
  if ($items_width5 == 0) { $items_width5 = 1; }
 
685
 
686
  echo "<div id='items_displayed_metabox'>\n";
687
  echo "<h4>Browser/Device Width:</h4>\n";
@@ -726,7 +744,7 @@ function cpt_slider_items_content($post) {
726
  }
727
  echo "</select></div>\n";
728
  // items for browser width category 5
729
- echo "<div><em class='sa_tooltip' href='' title='Over 1200 pixels'></em><span>Desktop Large</span><select name='sa_items_width5'>";
730
  for ($i = 1; $i <= 12; $i++) {
731
  if ($i == $items_width5) {
732
  echo "<option value='".esc_attr($i)."' selected>".esc_html($i)."</option>";
@@ -735,6 +753,16 @@ function cpt_slider_items_content($post) {
735
  }
736
  }
737
  echo "</select></div>\n";
 
 
 
 
 
 
 
 
 
 
738
  echo "</div>\n";
739
  }
740
 
@@ -777,6 +805,22 @@ function cpt_slider_style_content($post) {
777
  echo "</div>\n";
778
  echo "<div style='clear:both; float:none; width:100%; height:10px;'></div>";
779
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
780
  $tooltip = "The background color and border around the entire carousel/slider";
781
  echo "<h4>Background/Border:<em class='sa_tooltip' title='".esc_attr($tooltip)."'></em></h4>";
782
 
@@ -810,6 +854,7 @@ function cpt_slider_style_content($post) {
810
  echo "<input type='text' id='sa_border_radius' name='sa_border_radius' value='".esc_attr($border_radius)."'></div>\n";
811
 
812
  echo "<div class='ca_style_hr' style='margin-top:10px;'></div>\n";
 
813
  $tooltip = "The style settings for each individual slide (within the slider/carousel)";
814
  echo "<h4>SLIDE STYLE:<em class='sa_tooltip' title='".esc_attr($tooltip)."'></em></h4>";
815
 
@@ -989,6 +1034,11 @@ function cpt_slider_save_postdata() {
989
  } else {
990
  update_post_meta($post->ID, 'sa_random_order', '0');
991
  }
 
 
 
 
 
992
 
993
  // UPDATE SLIDER ITEMS DISPLAYED
994
  update_post_meta($post->ID, 'sa_items_width1', abs(intval($_POST['sa_items_width1']))); // SANATIZE (valid integer value)
@@ -996,6 +1046,7 @@ function cpt_slider_save_postdata() {
996
  update_post_meta($post->ID, 'sa_items_width3', abs(intval($_POST['sa_items_width3']))); // SANATIZE (valid integer value)
997
  update_post_meta($post->ID, 'sa_items_width4', abs(intval($_POST['sa_items_width4']))); // SANATIZE (valid integer value)
998
  update_post_meta($post->ID, 'sa_items_width5', abs(intval($_POST['sa_items_width5']))); // SANATIZE (valid integer value)
 
999
 
1000
  // UPDATE SLIDER STYLE
1001
  update_post_meta($post->ID, 'sa_css_id', sanitize_text_field($_POST['sa_css_id'])); // SANATIZE (valid text-input string)
@@ -1011,6 +1062,11 @@ function cpt_slider_save_postdata() {
1011
  update_post_meta($post->ID, 'sa_slide_padding_tb', abs(floatval($_POST['sa_slide_padding_tb']))); // SANATIZE (valid float value)
1012
  update_post_meta($post->ID, 'sa_slide_padding_lr', abs(floatval($_POST['sa_slide_padding_lr']))); // SANATIZE (valid float value)
1013
  update_post_meta($post->ID, 'sa_slide_margin_lr', abs(floatval($_POST['sa_slide_margin_lr']))); // SANATIZE (valid float value)
 
 
 
 
 
1014
  }
1015
  }
1016
  ?>
67
  update_post_meta($cpt_id, 'sa_items_width3', 3);
68
  update_post_meta($cpt_id, 'sa_items_width4', 4);
69
  update_post_meta($cpt_id, 'sa_items_width5', 4);
70
+ update_post_meta($cpt_id, 'sa_items_width6', 4);
71
  update_post_meta($cpt_id, 'sa_css_id', 'sample_slider');
72
  update_post_meta($cpt_id, 'sa_background_color', '#fafafa');
73
  update_post_meta($cpt_id, 'sa_border_width', 1);
80
  update_post_meta($cpt_id, 'sa_slide_min_height', 100);
81
  update_post_meta($cpt_id, 'sa_slide_padding_tb', 5);
82
  update_post_meta($cpt_id, 'sa_slide_padding_lr', 5);
83
+ update_post_meta($cpt_id, 'sa_shortcodes', '1');
84
+ update_post_meta($cpt_id, 'sa_autohide_arrows', '1');
85
  }
86
  }
87
 
438
  }
439
  echo "<em class='sa_tooltip' href='' title='Display slider pagination below the slider'></em>\n";
440
  echo "</div>\n";
441
+ // ALLOW SHORTCODES
442
+ $shortcodes = get_post_meta($post->ID, 'sa_shortcodes', true);
443
+ if ($shortcodes == '') {
444
+ $shortcodes = '1';
445
+ }
446
+ echo "<div class='sa_setting_checkbox'><span>Allow Shortcodes:</span>";
447
+ if ($shortcodes == '1') {
448
+ echo "<input type='checkbox' id='sa_shortcodes' name='sa_shortcodes' value='1' checked/>";
449
+ } else {
450
+ echo "<input type='checkbox' id='sa_shortcodes' name='sa_shortcodes' value='1'/>";
451
+ }
452
+ echo "<em class='sa_tooltip' href='' title='NOTE: Running shortcodes in Slide Anything may cause issues with some Wordpress Page Builders'></em>\n";
453
+ echo "</div>\n";
454
  echo "</div>\n";
455
  echo "<div style='clear:both; float:none; width:100%; height:1px;'></div>\n";
456
  echo "</div>\n";
663
 
664
 
665
 
666
+ // ##### META BOX CONTENT - 'Slider Preview/Shortcode' BOX #####
667
  function cpt_slider_shortcode_content($post) {
668
  $shortcode = "[slide-anything id='".$post->ID."']";
669
  echo "<div id='sa_slider_shortcode'>".esc_html($shortcode)."</div>\n";
693
  $items_width3 = intval(get_post_meta($post->ID, 'sa_items_width3', true));
694
  $items_width4 = intval(get_post_meta($post->ID, 'sa_items_width4', true));
695
  $items_width5 = intval(get_post_meta($post->ID, 'sa_items_width5', true));
696
+ $items_width6 = intval(get_post_meta($post->ID, 'sa_items_width6', true));
697
  if ($items_width1 == 0) { $items_width1 = 1; }
698
  if ($items_width2 == 0) { $items_width2 = 1; }
699
  if ($items_width3 == 0) { $items_width3 = 1; }
700
  if ($items_width4 == 0) { $items_width4 = 1; }
701
  if ($items_width5 == 0) { $items_width5 = 1; }
702
+ if ($items_width6 == 0) { $items_width6 = $items_width5; }
703
 
704
  echo "<div id='items_displayed_metabox'>\n";
705
  echo "<h4>Browser/Device Width:</h4>\n";
744
  }
745
  echo "</select></div>\n";
746
  // items for browser width category 5
747
+ echo "<div><em class='sa_tooltip' href='' title='1200 to 1399 pixels'></em><span>Desktop Large</span><select name='sa_items_width5'>";
748
  for ($i = 1; $i <= 12; $i++) {
749
  if ($i == $items_width5) {
750
  echo "<option value='".esc_attr($i)."' selected>".esc_html($i)."</option>";
753
  }
754
  }
755
  echo "</select></div>\n";
756
+ // items for browser width category 6
757
+ echo "<div><em class='sa_tooltip' href='' title='Over 1400 pixels'></em><span>Desktop X-Large</span><select name='sa_items_width6'>";
758
+ for ($i = 1; $i <= 12; $i++) {
759
+ if ($i == $items_width6) {
760
+ echo "<option value='".esc_attr($i)."' selected>".esc_html($i)."</option>";
761
+ } else {
762
+ echo "<option value='".esc_attr($i)."'>".esc_html($i)."</option>";
763
+ }
764
+ }
765
+ echo "</select></div>\n";
766
  echo "</div>\n";
767
  }
768
 
805
  echo "</div>\n";
806
  echo "<div style='clear:both; float:none; width:100%; height:10px;'></div>";
807
 
808
+ $tooltip = "Style settings for the slider navigation arrows and slider pagination";
809
+ echo "<h4>Slider Navigation:<em class='sa_tooltip' title='".esc_attr($tooltip)."'></em></h4>";
810
+
811
+ // AUTOHIDE ARROWS
812
+ $autohide_arrows = get_post_meta($post->ID, 'sa_autohide_arrows', true);
813
+ if ($autohide_arrows == '') {
814
+ $autohide_arrows = '1';
815
+ }
816
+ echo "<div class='ca_style_setting_line'><span>Autohide Arrows</span>";
817
+ if ($autohide_arrows == '1') {
818
+ echo "<input type='checkbox' id='sa_autohide_arrows' name='sa_autohide_arrows' value='1' checked/>";
819
+ } else {
820
+ echo "<input type='checkbox' id='sa_autohide_arrows' name='sa_autohide_arrows' value='1'/>";
821
+ }
822
+ echo "</div>\n";
823
+
824
  $tooltip = "The background color and border around the entire carousel/slider";
825
  echo "<h4>Background/Border:<em class='sa_tooltip' title='".esc_attr($tooltip)."'></em></h4>";
826
 
854
  echo "<input type='text' id='sa_border_radius' name='sa_border_radius' value='".esc_attr($border_radius)."'></div>\n";
855
 
856
  echo "<div class='ca_style_hr' style='margin-top:10px;'></div>\n";
857
+
858
  $tooltip = "The style settings for each individual slide (within the slider/carousel)";
859
  echo "<h4>SLIDE STYLE:<em class='sa_tooltip' title='".esc_attr($tooltip)."'></em></h4>";
860
 
1034
  } else {
1035
  update_post_meta($post->ID, 'sa_random_order', '0');
1036
  }
1037
+ if (isset($_POST['sa_shortcodes']) && ($_POST['sa_shortcodes'] == '1')) {
1038
+ update_post_meta($post->ID, 'sa_shortcodes', '1');
1039
+ } else {
1040
+ update_post_meta($post->ID, 'sa_shortcodes', '0');
1041
+ }
1042
 
1043
  // UPDATE SLIDER ITEMS DISPLAYED
1044
  update_post_meta($post->ID, 'sa_items_width1', abs(intval($_POST['sa_items_width1']))); // SANATIZE (valid integer value)
1046
  update_post_meta($post->ID, 'sa_items_width3', abs(intval($_POST['sa_items_width3']))); // SANATIZE (valid integer value)
1047
  update_post_meta($post->ID, 'sa_items_width4', abs(intval($_POST['sa_items_width4']))); // SANATIZE (valid integer value)
1048
  update_post_meta($post->ID, 'sa_items_width5', abs(intval($_POST['sa_items_width5']))); // SANATIZE (valid integer value)
1049
+ update_post_meta($post->ID, 'sa_items_width6', abs(intval($_POST['sa_items_width6']))); // SANATIZE (valid integer value)
1050
 
1051
  // UPDATE SLIDER STYLE
1052
  update_post_meta($post->ID, 'sa_css_id', sanitize_text_field($_POST['sa_css_id'])); // SANATIZE (valid text-input string)
1062
  update_post_meta($post->ID, 'sa_slide_padding_tb', abs(floatval($_POST['sa_slide_padding_tb']))); // SANATIZE (valid float value)
1063
  update_post_meta($post->ID, 'sa_slide_padding_lr', abs(floatval($_POST['sa_slide_padding_lr']))); // SANATIZE (valid float value)
1064
  update_post_meta($post->ID, 'sa_slide_margin_lr', abs(floatval($_POST['sa_slide_margin_lr']))); // SANATIZE (valid float value)
1065
+ if (isset($_POST['sa_autohide_arrows']) && ($_POST['sa_autohide_arrows'] == '1')) {
1066
+ update_post_meta($post->ID, 'sa_autohide_arrows', '1');
1067
+ } else {
1068
+ update_post_meta($post->ID, 'sa_autohide_arrows', '0');
1069
+ }
1070
  }
1071
  }
1072
  ?>
php/slide-anything-frontend.php CHANGED
@@ -34,9 +34,19 @@ function slide_anything_shortcode($atts) {
34
  // GET SLIDE DATA FROM DATABASE AND SAVE IN ARRAY
35
  $slide_data = array();
36
  $slide_data['num_slides'] = $metadata['sa_num_slides'][0];
 
 
 
 
 
 
37
  for ($i = 1; $i <= $slide_data['num_slides']; $i++) {
38
- // apply 'the_content' filter to slide content to process any shortcodes
39
- $slide_data["slide".$i."_content"] = apply_filters('the_content', $metadata["sa_slide".$i."_content"][0]);
 
 
 
 
40
  $slide_data["slide".$i."_image_id"] = $metadata["sa_slide".$i."_image_id"][0];
41
  $slide_data["slide".$i."_image_size"] = $metadata["sa_slide".$i."_image_size"][0];
42
  $slide_data["slide".$i."_image_repeat"] = $metadata["sa_slide".$i."_image_repeat"][0];
@@ -82,6 +92,10 @@ function slide_anything_shortcode($atts) {
82
  $slide_data['items_width3'] = $metadata['sa_items_width3'][0];
83
  $slide_data['items_width4'] = $metadata['sa_items_width4'][0];
84
  $slide_data['items_width5'] = $metadata['sa_items_width5'][0];
 
 
 
 
85
  $slide_data['css_id'] = $metadata['sa_css_id'][0];
86
  $slide_data['background_color'] = $metadata['sa_background_color'][0];
87
  $slide_data['border_width'] = $metadata['sa_border_width'][0];
@@ -95,6 +109,12 @@ function slide_anything_shortcode($atts) {
95
  $slide_data['slide_padding_tb'] = $metadata['sa_slide_padding_tb'][0];
96
  $slide_data['slide_padding_lr'] = $metadata['sa_slide_padding_lr'][0];
97
  $slide_data['slide_margin_lr'] = $metadata['sa_slide_margin_lr'][0];
 
 
 
 
 
 
98
 
99
  // RE-ORDER SLIDES IN A RANDOM ORDER IF 'Random Order' CHECKBOX IS CHECKED
100
  if ($slide_data['random_order'] == 'true') {
@@ -126,9 +146,17 @@ function slide_anything_shortcode($atts) {
126
  $wrapper_style .= $slide_data['wrapper_padd_left']."px;";
127
  $output .= "<div style='".esc_attr($wrapper_style)."'>\n";
128
  if ($slide_data['pagination'] == 'true') {
129
- $output .= "<div id='".esc_attr($slide_data['css_id'])."' class='owl-carousel owl-pagination-true'>\n";
 
 
 
 
130
  } else {
131
- $output .= "<div id='".esc_attr($slide_data['css_id'])."' class='owl-carousel'>\n";
 
 
 
 
132
  }
133
  for ($i = 1; $i <= $slide_data['num_slides']; $i++) {
134
  $slide_content = $slide_data["slide".$i."_content"];
@@ -158,7 +186,8 @@ function slide_anything_shortcode($atts) {
158
  $output .= " [480,".esc_attr($slide_data['items_width2'])."],\n";
159
  $output .= " [768,".esc_attr($slide_data['items_width3'])."],\n";
160
  $output .= " [980,".esc_attr($slide_data['items_width4'])."],\n";
161
- $output .= " [1200,".esc_attr($slide_data['items_width5'])."]\n";
 
162
  $output .= " ],\n";
163
  $output .= " autoPlay : ".esc_attr($slide_data['slide_duration']).",\n";
164
  $output .= " paginationSpeed : ".esc_attr($slide_data['slide_transition']).",\n";
34
  // GET SLIDE DATA FROM DATABASE AND SAVE IN ARRAY
35
  $slide_data = array();
36
  $slide_data['num_slides'] = $metadata['sa_num_slides'][0];
37
+ $slide_data['shortcodes'] = $metadata['sa_shortcodes'][0];
38
+ if ($slide_data['shortcodes'] == '1') {
39
+ $slide_data['shortcodes'] = 'true';
40
+ } else {
41
+ $slide_data['shortcodes'] = 'false';
42
+ }
43
  for ($i = 1; $i <= $slide_data['num_slides']; $i++) {
44
+ // apply 'the_content' filter to slide content to process any shortcodes
45
+ if ($slide_data['shortcodes'] == 'true') {
46
+ $slide_data["slide".$i."_content"] = apply_filters('the_content', $metadata["sa_slide".$i."_content"][0]);
47
+ } else {
48
+ $slide_data["slide".$i."_content"] = $metadata["sa_slide".$i."_content"][0];
49
+ }
50
  $slide_data["slide".$i."_image_id"] = $metadata["sa_slide".$i."_image_id"][0];
51
  $slide_data["slide".$i."_image_size"] = $metadata["sa_slide".$i."_image_size"][0];
52
  $slide_data["slide".$i."_image_repeat"] = $metadata["sa_slide".$i."_image_repeat"][0];
92
  $slide_data['items_width3'] = $metadata['sa_items_width3'][0];
93
  $slide_data['items_width4'] = $metadata['sa_items_width4'][0];
94
  $slide_data['items_width5'] = $metadata['sa_items_width5'][0];
95
+ $slide_data['items_width6'] = $metadata['sa_items_width6'][0];
96
+ if ($slide_data['items_width6'] == '') {
97
+ $slide_data['items_width6'] = $slide_data['items_width5'];
98
+ }
99
  $slide_data['css_id'] = $metadata['sa_css_id'][0];
100
  $slide_data['background_color'] = $metadata['sa_background_color'][0];
101
  $slide_data['border_width'] = $metadata['sa_border_width'][0];
109
  $slide_data['slide_padding_tb'] = $metadata['sa_slide_padding_tb'][0];
110
  $slide_data['slide_padding_lr'] = $metadata['sa_slide_padding_lr'][0];
111
  $slide_data['slide_margin_lr'] = $metadata['sa_slide_margin_lr'][0];
112
+ $slide_data['autohide_arrows'] = $metadata['sa_autohide_arrows'][0];
113
+ if ($slide_data['autohide_arrows'] == '1') {
114
+ $slide_data['autohide_arrows'] = 'true';
115
+ } else {
116
+ $slide_data['autohide_arrows'] = 'false';
117
+ }
118
 
119
  // RE-ORDER SLIDES IN A RANDOM ORDER IF 'Random Order' CHECKBOX IS CHECKED
120
  if ($slide_data['random_order'] == 'true') {
146
  $wrapper_style .= $slide_data['wrapper_padd_left']."px;";
147
  $output .= "<div style='".esc_attr($wrapper_style)."'>\n";
148
  if ($slide_data['pagination'] == 'true') {
149
+ if ($slide_data['autohide_arrows'] == 'true') {
150
+ $output .= "<div id='".esc_attr($slide_data['css_id'])."' class='owl-carousel owl-pagination-true autohide-arrows'>\n";
151
+ } else {
152
+ $output .= "<div id='".esc_attr($slide_data['css_id'])."' class='owl-carousel owl-pagination-true'>\n";
153
+ }
154
  } else {
155
+ if ($slide_data['autohide_arrows'] == 'true') {
156
+ $output .= "<div id='".esc_attr($slide_data['css_id'])."' class='owl-carousel autohide-arrows'>\n";
157
+ } else {
158
+ $output .= "<div id='".esc_attr($slide_data['css_id'])."' class='owl-carousel'>\n";
159
+ }
160
  }
161
  for ($i = 1; $i <= $slide_data['num_slides']; $i++) {
162
  $slide_content = $slide_data["slide".$i."_content"];
186
  $output .= " [480,".esc_attr($slide_data['items_width2'])."],\n";
187
  $output .= " [768,".esc_attr($slide_data['items_width3'])."],\n";
188
  $output .= " [980,".esc_attr($slide_data['items_width4'])."],\n";
189
+ $output .= " [1200,".esc_attr($slide_data['items_width5'])."],\n";
190
+ $output .= " [1400,".esc_attr($slide_data['items_width6'])."]\n";
191
  $output .= " ],\n";
192
  $output .= " autoPlay : ".esc_attr($slide_data['slide_duration']).",\n";
193
  $output .= " paginationSpeed : ".esc_attr($slide_data['slide_transition']).",\n";
readme.txt CHANGED
@@ -82,6 +82,11 @@ The `SLIDE STYLE` settings are the style settings for each individual slide with
82
  = 1.3 =
83
  * Added setting to add a margin left and right of each slide
84
 
 
 
 
 
 
85
  == Upgrade Notice ==
86
 
87
  = 1.0 =
@@ -96,3 +101,8 @@ The `SLIDE STYLE` settings are the style settings for each individual slide with
96
 
97
  = 1.3 =
98
  * Added setting to add a margin left and right of each slide
 
 
 
 
 
82
  = 1.3 =
83
  * Added setting to add a margin left and right of each slide
84
 
85
+ = 1.4 =
86
+ * Bug Fix: Added `Allow Shortcodes` setting. Running shortcodes within `Slide Anything` may cause issues with some Wordpress Page Builders, and disable this setting will resolve this issue if it occurs.
87
+ * Added a new `Items Displayed` setting to set the number of slides to be displayed on screen resolutions over 1400 pixels
88
+ * Added a new `Autohide Arrows` setting to enable/displayed the autohide feature for slider navigation arrows
89
+
90
  == Upgrade Notice ==
91
 
92
  = 1.0 =
101
 
102
  = 1.3 =
103
  * Added setting to add a margin left and right of each slide
104
+
105
+ = 1.4 =
106
+ * Bug Fix: Added `Allow Shortcodes` setting. Running shortcodes within `Slide Anything` may cause issues with some Wordpress Page Builders, and disable this setting will resolve this issue if it occurs.
107
+ * Added a new `Items Displayed` setting to set the number of slides to be displayed on screen resolutions over 1400 pixels
108
+ * Added a new `Autohide Arrows` setting to enable/displayed the autohide feature for slider navigation arrows
slide-anything.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wordpress.org/support/plugin/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: 1.3
8
  * License: GPLv2 or later
9
  */
10
 
4
  * Plugin URI: https://wordpress.org/support/plugin/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: 1.4
8
  * License: GPLv2 or later
9
  */
10