Accordion - Version 2.2.23

Version Description

  • 2020-06-10 - fix - minor js issue fixed.
Download this release

Release Info

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

Code changes from version 2.2.21 to 2.2.23

accordions.php CHANGED
@@ -3,9 +3,9 @@
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.21
7
  WC requires at least: 3.0.0
8
- WC tested up to: 4.0
9
  Author: PickPlugins
10
  Author URI: http://pickplugins.com
11
  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.21' );
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.23
7
  WC requires at least: 3.0.0
8
+ WC tested up to: 4.2
9
  Author: PickPlugins
10
  Author URI: http://pickplugins.com
11
  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.23' );
27
  define('accordions_plugin_name', 'Accordions' );
28
  define('accordions_plugin_basename', plugin_basename( __FILE__ ) );
29
 
assets/settings-tabs/settings-tabs.js CHANGED
@@ -147,6 +147,12 @@ jQuery(document).ready(function($){
147
  })
148
 
149
 
 
 
 
 
 
 
150
 
151
  jQuery(document).on('click', '.settings-tabs .input-text-multi-wrapper .add-item',function(){
152
 
@@ -280,22 +286,13 @@ jQuery(document).ready(function($){
280
 
281
 
282
 
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
  $(document).on('click', '.settings-tabs .expandable .expand', function(){
292
- if($(this).parent().parent().hasClass('active'))
293
- {
294
- $(this).parent().parent().removeClass('active');
295
- }
296
- else
297
- {
298
- $(this).parent().parent().addClass('active');
299
  }
300
 
301
 
147
  })
148
 
149
 
150
+ $(document).on('click','.settings-tabs .field-media-url-wrapper .clear',function(e){
151
+ $(this).parent().children('.media-preview-wrap').children('img').attr('src','');
152
+ $(this).parent().children('input').val('');
153
+
154
+
155
+ })
156
 
157
  jQuery(document).on('click', '.settings-tabs .input-text-multi-wrapper .add-item',function(){
158
 
286
 
287
 
288
 
 
 
 
 
 
 
 
 
289
  $(document).on('click', '.settings-tabs .expandable .expand', function(){
290
+ if($(this).parent().parent().children('.options').hasClass('active')){
291
+ //$(this).parent().parent().removeClass('active');
292
+ $(this).parent().parent().children('.options').removeClass('active');
293
+ }else {
294
+ //$(this).parent().parent().addClass('active');
295
+ $(this).parent().parent().children('.options').addClass('active');
 
296
  }
297
 
298
 
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: 5.4
7
- Stable tag: 2.2.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,13 @@ then paste this shortcode anywhere in your page to display accordions<br />
139
 
140
  == Changelog ==
141
 
 
 
 
 
 
 
 
142
  = 2.2.21 =
143
  * 2020-05-23 - update - Enable autoembed default to Yes
144
  * 2020-05-23 - update - Enable shortcode default to Yes
4
  Tags: accordion, tabs, FAQ, WooCommerce FAQ Tab, accordion short-code, accordions widget, tab
5
  Requires at least: 3.8
6
  Tested up to: 5.4
7
+ Stable tag: 2.2.23
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.23 =
143
+ * 2020-06-10 - fix - minor js issue fixed.
144
+
145
+ = 2.2.22 =
146
+ * 2020-06-09 - update - WooCommerce tested version update.
147
+ * 2020-06-09 - add - accordion items count attribute added.
148
+
149
  = 2.2.21 =
150
  * 2020-05-23 - update - Enable autoembed default to Yes
151
  * 2020-05-23 - update - Enable shortcode default to Yes
templates/accordion/accordion-hook.php CHANGED
@@ -367,7 +367,7 @@ function accordions_main_items($atts){
367
  }
368
 
369
  ?>
370
- <div post_id="<?php echo $post_id; ?>" header_id="header-<?php echo $index; ?>" id="header-<?php echo $index; ?>" style="" class="accordions-head head<?php echo $index; ?> <?php echo $header_class; ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr($accordion_header)); ?>">
371
  <?php
372
  if($icon_position == 'left'):
373
  ?>
@@ -596,12 +596,8 @@ function accordions_main_scripts($atts){
596
  },
597
  <?php
598
  }
599
-
600
  ?>
601
  });
602
-
603
-
604
-
605
  })
606
  </script>
607
  <?php
367
  }
368
 
369
  ?>
370
+ <div post_id="<?php echo $post_id; ?>" itemcount="<?php echo $item_count; ?>" header_id="header-<?php echo $index; ?>" id="header-<?php echo $index; ?>" style="" class="accordions-head head<?php echo $index; ?> <?php echo $header_class; ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr($accordion_header)); ?>">
371
  <?php
372
  if($icon_position == 'left'):
373
  ?>
596
  },
597
  <?php
598
  }
 
599
  ?>
600
  });
 
 
 
601
  })
602
  </script>
603
  <?php