Accordion - Version 2.2.57

Version Description

  • 2022-09-09 - add - Disbale opening any accordion.
Download this release

Release Info

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

Code changes from version 2.2.56 to 2.2.57

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.56
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.56');
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.57
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.57');
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.56
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,8 +139,10 @@ then paste this shortcode anywhere in your page to display accordions<br />
139
 
140
  == Changelog ==
141
 
142
- = 2.2.56 =
 
143
 
 
144
  * 2022-09-08 - add - More tags added to allowed html tags for escaping.
145
 
146
  = 2.2.55 =
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.57
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 2.2.57 =
143
+ * 2022-09-09 - add - Disbale opening any accordion.
144
 
145
+ = 2.2.56 =
146
  * 2022-09-08 - add - More tags added to allowed html tags for escaping.
147
 
148
  = 2.2.55 =
templates/accordion/accordion-hook.php CHANGED
@@ -303,6 +303,7 @@ function accordions_main_top($atts)
303
 
304
  $accordion_header = isset($accordion['header']) ? $accordion['header'] : '';
305
  $accordion_body = isset($accordion['body']) ? $accordion['body'] : '';
 
306
 
307
  $accordion_is_active = isset($accordion['is_active']) ? $accordion['is_active'] : '';
308
  $toggled_text = isset($accordion['toggled_text']) ? $accordion['toggled_text'] : '';
@@ -341,7 +342,7 @@ function accordions_main_top($atts)
341
  }
342
 
343
  ?>
344
- <div post_id="<?php echo esc_attr($post_id); ?>" itemcount="<?php echo esc_attr($item_count); ?>" 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))); ?>">
345
  <?php
346
  if ($icon_position == 'left') :
347
  ?>
303
 
304
  $accordion_header = isset($accordion['header']) ? $accordion['header'] : '';
305
  $accordion_body = isset($accordion['body']) ? $accordion['body'] : '';
306
+ $accordion_disable = isset($accordion['disable']) ? $accordion['disable'] : 'false';
307
 
308
  $accordion_is_active = isset($accordion['is_active']) ? $accordion['is_active'] : '';
309
  $toggled_text = isset($accordion['toggled_text']) ? $accordion['toggled_text'] : '';
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
  ?>