Accordion - Version 2.2.56

Version Description

  • 2022-09-08 - add - More tags added to allowed html tags for escaping.
Download this release

Release Info

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

Code changes from version 2.2.55 to 2.2.56

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.55
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.55');
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.56
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.56');
27
  define('accordions_plugin_name', 'Accordions');
28
  define('accordions_plugin_basename', plugin_basename(__FILE__));
29
 
includes/class-post-meta-accordions-hook.php CHANGED
@@ -1153,6 +1153,21 @@ function accordions_metabox_content_content($post_id)
1153
  ),
1154
  ),
1155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1156
  );
1157
 
1158
  $meta_fields = apply_filters('accordions_content_fields', $meta_fields);
1153
  ),
1154
  ),
1155
 
1156
+ array(
1157
+ 'id' => 'disable',
1158
+ 'css_id' => 'disable_TIMEINDEX',
1159
+ 'title' => __('Disable opening', 'accordions'),
1160
+ 'details' => __('Disable this on click.', 'accordions'),
1161
+ 'type' => 'select',
1162
+ 'value' => '',
1163
+ 'default' => 'false',
1164
+ 'args' => array(
1165
+ 'true' => __('True', 'accordions'),
1166
+ 'false' => __('False', 'accordions'),
1167
+ ),
1168
+ ),
1169
+
1170
+
1171
  );
1172
 
1173
  $meta_fields = apply_filters('accordions_content_fields', $meta_fields);
includes/functions.php CHANGED
@@ -622,6 +622,10 @@ function accordions_wp_kses($str)
622
  'i' => array('id' => array(), 'class' => array()),
623
  'strong' => array('id' => array(), 'class' => array()),
624
  'em' => array('id' => array(), 'class' => array()),
 
 
 
 
625
 
626
  'p' => array('id' => array(), 'class' => array()),
627
  'a' => array('id' => array(), 'class' => array(), 'href' => array()),
@@ -634,6 +638,26 @@ function accordions_wp_kses($str)
634
  'li' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
635
 
636
  'br' => array('id' => array(), 'class' => array(),),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
637
 
638
  'table' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
639
  'thead' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
@@ -641,6 +665,8 @@ function accordions_wp_kses($str)
641
  'th' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
642
  'tbody' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
643
  'td' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
 
 
644
  'img' => array('id' => array(), 'class' => array(), 'title' => array(), 'alt' => array(), 'src' => array(), 'srcset' => array(),),
645
  'iframe' => array('id' => array(), 'class' => array(), 'width' => array(), 'height' => array(), 'title' => array(), 'src' => array(), 'style' => array(),),
646
 
622
  'i' => array('id' => array(), 'class' => array()),
623
  'strong' => array('id' => array(), 'class' => array()),
624
  'em' => array('id' => array(), 'class' => array()),
625
+ 'source' => array('id' => array(), 'class' => array()),
626
+ 'small' => array('id' => array(), 'class' => array()),
627
+ 'section' => array('id' => array(), 'class' => array()),
628
+
629
 
630
  'p' => array('id' => array(), 'class' => array()),
631
  'a' => array('id' => array(), 'class' => array(), 'href' => array()),
638
  'li' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
639
 
640
  'br' => array('id' => array(), 'class' => array(),),
641
+ 'u' => array('id' => array(), 'class' => array(),),
642
+ 'video' => array('id' => array(), 'class' => array(),),
643
+ 'video' => array('id' => array(), 'class' => array(),),
644
+ 'track' => array('id' => array(), 'class' => array(),),
645
+
646
+ 'h1' => array('id' => array(), 'class' => array(),),
647
+ 'h2' => array('id' => array(), 'class' => array(),),
648
+ 'h3' => array('id' => array(), 'class' => array(),),
649
+ 'h4' => array('id' => array(), 'class' => array(),),
650
+ 'h5' => array('id' => array(), 'class' => array(),),
651
+ 'h6' => array('id' => array(), 'class' => array(),),
652
+
653
+ 'title' => array('id' => array(), 'class' => array(),),
654
+ 'time' => array('id' => array(), 'class' => array(),),
655
+ 'template' => array('id' => array(), 'class' => array(),),
656
+ 'svg' => array('id' => array(), 'class' => array(),),
657
+ 'sup' => array('id' => array(), 'class' => array(),),
658
+ 'summary' => array('id' => array(), 'class' => array(),),
659
+ 'sub' => array('id' => array(), 'class' => array(),),
660
+
661
 
662
  'table' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
663
  'thead' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
665
  'th' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
666
  'tbody' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
667
  'td' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
668
+ 'tfoot' => array('id' => array(), 'class' => array(), 'tabindex' => array(),),
669
+
670
  'img' => array('id' => array(), 'class' => array(), 'title' => array(), 'alt' => array(), 'src' => array(), 'srcset' => array(),),
671
  'iframe' => array('id' => array(), 'class' => array(), 'width' => array(), 'height' => array(), 'title' => array(), 'src' => array(), 'style' => array(),),
672
 
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.55
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,10 @@ then paste this shortcode anywhere in your page to display accordions<br />
139
 
140
  == Changelog ==
141
 
 
 
 
 
142
  = 2.2.55 =
143
  * 2022-09-03 - fix - Content adding issue fixed.
144
 
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
 
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 =
147
  * 2022-09-03 - fix - Content adding issue fixed.
148
 
templates/accordion/accordion-hook.php CHANGED
@@ -341,7 +341,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); ?>" 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
  ?>
@@ -583,6 +583,10 @@ function accordions_main_top($atts)
583
  if ($expanded_other == 'yes') {
584
  ?>
585
  beforeActivate: function(event, ui) {
 
 
 
 
586
  if (ui.newHeader[0]) {
587
  var currHeader = ui.newHeader;
588
  var currContent = currHeader.next(".ui-accordion-content");
@@ -602,7 +606,27 @@ function accordions_main_top($atts)
602
  return false;
603
  },
604
  <?php
605
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
  ?>
607
  });
608
  })
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
  ?>
583
  if ($expanded_other == 'yes') {
584
  ?>
585
  beforeActivate: function(event, ui) {
586
+
587
+
588
+
589
+
590
  if (ui.newHeader[0]) {
591
  var currHeader = ui.newHeader;
592
  var currContent = currHeader.next(".ui-accordion-content");
606
  return false;
607
  },
608
  <?php
609
+ }else{
610
+
611
+ ?>
612
+ beforeActivate: function(event, ui) {
613
+
614
+ if(ui.newHeader[0] != undefined){
615
+ var disabled = ui.newHeader[0].getAttribute('disabled');
616
+
617
+ console.log(disabled);
618
+ if(disabled == 'disabled'){
619
+ event.preventDefault();
620
+ }
621
+
622
+
623
+
624
+ }
625
+
626
+ },
627
+ <?php
628
+
629
+ }
630
  ?>
631
  });
632
  })