Accordion - Version 2.2.63

Version Description

  • 2022-10-06 - fix - Missing } character issue for schema fixed.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Accordion
Version 2.2.63
Comparing to
See all releases

Code changes from version 2.2.62 to 2.2.63

accordions.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accordions by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
- Version: 2.2.62
7
  Author: PickPlugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: accordions
@@ -23,7 +23,7 @@ class Accordions
23
 
24
  define('accordions_plugin_url', plugins_url('/', __FILE__));
25
  define('accordions_plugin_dir', plugin_dir_path(__FILE__));
26
- define('accordions_version', '2.2.61');
27
  define('accordions_plugin_name', 'Accordions');
28
  define('accordions_plugin_basename', plugin_basename(__FILE__));
29
 
3
  Plugin Name: Accordions by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
+ Version: 2.2.63
7
  Author: PickPlugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: accordions
23
 
24
  define('accordions_plugin_url', plugins_url('/', __FILE__));
25
  define('accordions_plugin_dir', plugin_dir_path(__FILE__));
26
+ define('accordions_version', '2.2.63');
27
  define('accordions_plugin_name', 'Accordions');
28
  define('accordions_plugin_basename', plugin_basename(__FILE__));
29
 
readme.txt CHANGED
@@ -4,7 +4,7 @@
4
  Tags: accordion, tabs, FAQ, WooCommerce FAQ Tab, accordion short-code, accordions widget, tab
5
  Requires at least: 3.8
6
  Tested up to: 6.0
7
- Stable tag: 2.2.62
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -140,6 +140,9 @@ then paste this shortcode anywhere in your page to display accordions<br />
140
  == Changelog ==
141
 
142
 
 
 
 
143
  = 2.2.62 =
144
  * 2022-10-03 - fix - Style issue fixed.
145
 
4
  Tags: accordion, tabs, FAQ, WooCommerce FAQ Tab, accordion short-code, accordions widget, tab
5
  Requires at least: 3.8
6
  Tested up to: 6.0
7
+ Stable tag: 2.2.63
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
140
  == Changelog ==
141
 
142
 
143
+ = 2.2.63 =
144
+ * 2022-10-06 - fix - Missing “}” character issue for schema fixed.
145
+
146
  = 2.2.62 =
147
  * 2022-10-03 - fix - Style issue fixed.
148
 
templates/accordion/accordion-hook.php CHANGED
@@ -24,7 +24,7 @@ function accordions_main_top($atts)
24
  (function($) {
25
  $(window).on("load", function() {
26
  $('#accordions-lazy-<?php echo esc_attr($post_id); ?>').fadeOut();
27
- $('#accordions-<?php echo esc_attr($post_id); ?> .items').fadeIn();
28
  })
29
  })(jQuery);
30
  </script><?php
@@ -121,21 +121,21 @@ function accordions_main_top($atts)
121
 
122
  ?><style type='text/css'>
123
  @media only screen and (min-width: 1024px) {
124
- #accordions-<?php echo esc_attr($post_id); ?> {
125
  <?php if (!empty($width_large)) : ?>width: <?php echo esc_attr($width_large); ?>;
126
  <?php endif; ?>
127
  }
128
  }
129
 
130
  @media only screen and (min-width: 768px) and (max-width: 1023px) {
131
- #accordions-<?php echo esc_attr($post_id); ?> {
132
  <?php if (!empty($width_medium)) : ?>width: <?php echo esc_attr($width_medium); ?>;
133
  <?php endif; ?>
134
  }
135
  }
136
 
137
  @media only screen and (min-width: 0px) and (max-width: 767px) {
138
- #accordions-<?php echo esc_attr($post_id); ?> {
139
  <?php if (!empty($width_small)) : ?>width: <?php echo esc_attr($width_small); ?>;
140
  <?php endif; ?>
141
  }
@@ -157,7 +157,7 @@ function accordions_main_top($atts)
157
 
158
  <?php
159
  }
160
- ?>#accordions-<?php echo esc_attr($post_id); ?> {
161
  <?php if (!empty($container_text_align)) : ?>text-align: <?php echo esc_attr($container_text_align); ?>;
162
  <?php endif; ?><?php if (!empty($container_background_color) || !empty($container_background_img)) : ?>background: <?php echo esc_attr($container_background_color); ?> url(<?php echo esc_url_raw($container_background_img); ?>) repeat scroll 0 0;
163
  <?php endif; ?><?php if (!empty($container_padding)) : ?>padding: <?php echo esc_attr($container_padding); ?>;
@@ -342,7 +342,7 @@ function accordions_main_top($atts)
342
  }
343
 
344
  ?>
345
- <div post_id="<?php echo esc_attr($post_id); ?>" itemcount="<?php echo esc_attr($item_count); ?>" <?php echo ($accordion_disable == 'true') ? esc_attr('disabled=disabled') : ''; ?> header_id="header-<?php echo esc_attr($index); ?>" id="header-<?php echo esc_attr($index); ?>" style="" class="accordions-head head<?php echo esc_attr($index); ?> <?php echo esc_attr($header_class); ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr(htmlspecialchars_decode($accordion_header))); ?>">
346
  <?php
347
  if ($icon_position == 'left') :
348
  ?>
@@ -434,6 +434,7 @@ function accordions_main_top($atts)
434
  $accordion_body = isset($accordion['body']) ? wp_strip_all_tags(strip_shortcodes($accordion['body'])) : '';
435
 
436
 
 
437
 
438
 
439
 
@@ -573,7 +574,7 @@ function accordions_main_top($atts)
573
  <script>
574
  (function($) {
575
  $(document).ready(function() {
576
- accordion_<?php echo esc_attr($post_id); ?> = $("#accordions-<?php echo esc_attr($post_id); ?> .items").accordion({
577
  event: "<?php echo esc_attr($active_event); ?>",
578
  collapsible: <?php echo esc_attr($collapsible); ?>,
579
  heightStyle: "<?php echo esc_attr($height_style); ?>",
@@ -607,27 +608,27 @@ function accordions_main_top($atts)
607
  return false;
608
  },
609
  <?php
610
- }else{
611
 
612
- ?>
613
- beforeActivate: function(event, ui) {
614
 
615
- if(ui.newHeader[0] != undefined){
616
- var disabled = ui.newHeader[0].getAttribute('disabled');
617
 
618
- console.log(disabled);
619
- if(disabled == 'disabled'){
620
- event.preventDefault();
621
- }
622
-
623
 
624
 
625
- }
626
 
627
- },
628
- <?php
629
 
630
- }
 
 
 
631
  ?>
632
  });
633
  })
24
  (function($) {
25
  $(window).on("load", function() {
26
  $('#accordions-lazy-<?php echo esc_attr($post_id); ?>').fadeOut();
27
+ $('#accordions-<?php echo esc_attr($post_id); ?> .items').fadeIn();
28
  })
29
  })(jQuery);
30
  </script><?php
121
 
122
  ?><style type='text/css'>
123
  @media only screen and (min-width: 1024px) {
124
+ #accordions-<?php echo esc_attr($post_id); ?> {
125
  <?php if (!empty($width_large)) : ?>width: <?php echo esc_attr($width_large); ?>;
126
  <?php endif; ?>
127
  }
128
  }
129
 
130
  @media only screen and (min-width: 768px) and (max-width: 1023px) {
131
+ #accordions-<?php echo esc_attr($post_id); ?> {
132
  <?php if (!empty($width_medium)) : ?>width: <?php echo esc_attr($width_medium); ?>;
133
  <?php endif; ?>
134
  }
135
  }
136
 
137
  @media only screen and (min-width: 0px) and (max-width: 767px) {
138
+ #accordions-<?php echo esc_attr($post_id); ?> {
139
  <?php if (!empty($width_small)) : ?>width: <?php echo esc_attr($width_small); ?>;
140
  <?php endif; ?>
141
  }
157
 
158
  <?php
159
  }
160
+ ?>#accordions-<?php echo esc_attr($post_id); ?> {
161
  <?php if (!empty($container_text_align)) : ?>text-align: <?php echo esc_attr($container_text_align); ?>;
162
  <?php endif; ?><?php if (!empty($container_background_color) || !empty($container_background_img)) : ?>background: <?php echo esc_attr($container_background_color); ?> url(<?php echo esc_url_raw($container_background_img); ?>) repeat scroll 0 0;
163
  <?php endif; ?><?php if (!empty($container_padding)) : ?>padding: <?php echo esc_attr($container_padding); ?>;
342
  }
343
 
344
  ?>
345
+ <div post_id="<?php echo esc_attr($post_id); ?>" itemcount="<?php echo esc_attr($item_count); ?>" <?php echo ($accordion_disable == 'true') ? esc_attr('disabled=disabled') : ''; ?> header_id="header-<?php echo esc_attr($index); ?>" id="header-<?php echo esc_attr($index); ?>" style="" class="accordions-head head<?php echo esc_attr($index); ?> <?php echo esc_attr($header_class); ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr(htmlspecialchars_decode($accordion_header))); ?>">
346
  <?php
347
  if ($icon_position == 'left') :
348
  ?>
434
  $accordion_body = isset($accordion['body']) ? wp_strip_all_tags(strip_shortcodes($accordion['body'])) : '';
435
 
436
 
437
+ $accordion_body = str_replace(array("\n", "\r"), '', $accordion_body);
438
 
439
 
440
 
574
  <script>
575
  (function($) {
576
  $(document).ready(function() {
577
+ accordion_<?php echo esc_attr($post_id); ?> = $("#accordions-<?php echo esc_attr($post_id); ?> .items").accordion({
578
  event: "<?php echo esc_attr($active_event); ?>",
579
  collapsible: <?php echo esc_attr($collapsible); ?>,
580
  heightStyle: "<?php echo esc_attr($height_style); ?>",
608
  return false;
609
  },
610
  <?php
611
+ } else {
612
 
613
+ ?>
614
+ beforeActivate: function(event, ui) {
615
 
616
+ if (ui.newHeader[0] != undefined) {
617
+ var disabled = ui.newHeader[0].getAttribute('disabled');
618
 
619
+ console.log(disabled);
620
+ if (disabled == 'disabled') {
621
+ event.preventDefault();
622
+ }
 
623
 
624
 
 
625
 
626
+ }
 
627
 
628
+ },
629
+ <?php
630
+
631
+ }
632
  ?>
633
  });
634
  })