Accordion - Version 2.2.11

Version Description

Download this release

Release Info

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

Code changes from version 2.2.10 to 2.2.11

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.10
7
  WC requires at least: 3.0.0
8
  WC tested up to: 4.0
9
  Author: PickPlugins
@@ -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.10' );
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.11
7
  WC requires at least: 3.0.0
8
  WC tested up to: 4.0
9
  Author: PickPlugins
23
 
24
  define('accordions_plugin_url', plugins_url('/', __FILE__) );
25
  define('accordions_plugin_dir', plugin_dir_path( __FILE__ ) );
26
+ define('accordions_version', '2.2.11' );
27
  define('accordions_plugin_name', 'Accordions' );
28
  define('accordions_plugin_basename', plugin_basename( __FILE__ ) );
29
 
includes/functions.php CHANGED
@@ -2,38 +2,6 @@
2
  if ( ! defined('ABSPATH')) exit; // if direct access
3
 
4
 
5
- //add_action('accordions_metabox_content_custom', 'accordions_metabox_content_custom_18032020', 10);
6
-
7
- function accordions_metabox_content_custom_18032020($post_id){
8
-
9
-
10
- ?>
11
-
12
- <?php
13
- }
14
-
15
- //add_filter('accordions_metabox_navs', 'accordions_metabox_navs_18032020', 10);
16
-
17
- function accordions_metabox_navs_18032020($tabs){
18
-
19
-
20
-
21
- return $tabs;
22
- }
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
 
38
 
39
  function accordions_old_content($post_id){
2
  if ( ! defined('ABSPATH')) exit; // if direct access
3
 
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
 
7
  function accordions_old_content($post_id){
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.3
7
- Stable tag: 2.2.10
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.10=
143
  * 2020-03-19 - add - data migration tutorial update and linked help section
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: 5.3
7
+ Stable tag: 2.2.11
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.11=
143
+ * 2020-03-19 - fix - display old content if data migration not completed
144
+
145
+
146
  = 2.2.10=
147
  * 2020-03-19 - add - data migration tutorial update and linked help section
148
 
templates/accordion/accordion-hook.php CHANGED
@@ -310,13 +310,15 @@ function accordions_main_items($atts){
310
 
311
 
312
 
313
- if($accordions_upgrade != 'done'){
314
 
315
  $accordions_content = accordions_old_content($post_id);
 
316
 
317
  }
318
 
319
 
 
320
  $active_index = array();
321
  ?>
322
  <div class="items">
@@ -397,6 +399,10 @@ function accordions_main_items($atts){
397
  <span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
398
  <span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
399
  </span>
 
 
 
 
400
  <?php
401
  endif;
402
  ?>
@@ -586,6 +592,7 @@ function accordions_main_scripts($atts){
586
  navigation: true,
587
  active: 999,
588
  });
 
589
  })
590
  </script>
591
  <?php
310
 
311
 
312
 
313
+ if(empty($accordions_content)){
314
 
315
  $accordions_content = accordions_old_content($post_id);
316
+ //var_dump($accordions_content);
317
 
318
  }
319
 
320
 
321
+
322
  $active_index = array();
323
  ?>
324
  <div class="items">
399
  <span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
400
  <span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
401
  </span>
402
+ <?php
403
+ else:
404
+ ?>
405
+ <span id="header-text-<?php echo $index; ?>" class="accordions-head-title"><?php echo do_shortcode($accordion_header); ?></span>
406
  <?php
407
  endif;
408
  ?>
592
  navigation: true,
593
  active: 999,
594
  });
595
+
596
  })
597
  </script>
598
  <?php
templates/tabs/tabs-hook.php CHANGED
@@ -330,6 +330,15 @@ function accordions_tabs_main_items($atts){
330
 
331
  //var_dump($icon_position);
332
 
 
 
 
 
 
 
 
 
 
333
  $nav_html = '';
334
  $nav_content_html = '';
335
  $active_index = array();
330
 
331
  //var_dump($icon_position);
332
 
333
+
334
+
335
+ if(empty($accordions_content)){
336
+
337
+ $accordions_content = accordions_old_content($post_id);
338
+ //var_dump($accordions_content);
339
+
340
+ }
341
+
342
  $nav_html = '';
343
  $nav_content_html = '';
344
  $active_index = array();