Version Description
- 2020-04-18 - fix - Keep expanded others issue fixed.
Download this release
Release Info
Developer | pickplugins |
Plugin | Accordion |
Version | 2.2.17 |
Comparing to | |
See all releases |
Code changes from version 2.2.16 to 2.2.17
- accordions.php +2 -2
- readme.txt +16 -16
- templates/accordion/accordion-hook.php +23 -2
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.
|
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.
|
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.17
|
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.17' );
|
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: 5.4
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -139,25 +139,25 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
-
= 2.2.
|
143 |
-
* 2020-04-
|
|
|
144 |
|
|
|
|
|
145 |
|
146 |
-
= 2.2.15=
|
147 |
* 2020-04-13 - fix - schema content convert quotes to characters,
|
148 |
* 2020-04-13 - fix - schema count issue fixed when hide set to true.
|
149 |
* 2020-04-13 - update - default tabs style update
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
= 2.2.14=
|
155 |
* 2020-04-08 - fix - schema error issue fixed.
|
156 |
* 2020-04-08 - remove - remove shortcode from schema content.
|
157 |
* 2020-04-08 - remove - remove html from schema content.
|
158 |
|
159 |
|
160 |
-
= 2.2.13=
|
161 |
* 2020-04-04 - fix - minor script issue fixed.
|
162 |
* 2020-04-04 - remove - remove data migration, load old option if new options not saved.
|
163 |
* 2020-04-04 - remove - remove reset data migration.
|
@@ -165,29 +165,29 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
165 |
|
166 |
|
167 |
|
168 |
-
= 2.2.12=
|
169 |
* 2020-04-01 - fix - default font-awesome version set to 5+ if not set.
|
170 |
* 2020-04-01 - fix - load old data and option if data migration not completed.
|
171 |
* 2020-04-01 - fix - codemirror issue fixed.
|
172 |
|
173 |
-
= 2.2.11=
|
174 |
* 2020-03-19 - fix - display old content if data migration not completed
|
175 |
|
176 |
-
= 2.2.10=
|
177 |
* 2020-03-19 - add - data migration tutorial update and linked help section
|
178 |
|
179 |
-
= 2.2.9=
|
180 |
* 2020-03-18 - update - data migration post status to any.
|
181 |
* 2020-03-18 - update - import accordion any post status
|
182 |
* 2020-03-18 - fix - security issue on import accordion fixed.
|
183 |
|
184 |
-
= 2.2.8=
|
185 |
* 2020-03-18 - fix - minor security issue fixed.
|
186 |
|
187 |
-
= 2.2.7=
|
188 |
* 2020-03-18 - add - older version plugin link added under help section.
|
189 |
|
190 |
-
= 2.2.6=
|
191 |
* 2020-03-17 - fix - WooCommerce product FAQ tab remove issue fixed.
|
192 |
|
193 |
= 2.2.5 =
|
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.17
|
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.17 =
|
143 |
+
* 2020-04-18 - fix - Keep expanded others issue fixed.
|
144 |
+
|
145 |
|
146 |
+
= 2.2.16 =
|
147 |
+
* 2020-04-16 - fix - accordion content editor issue fixed.
|
148 |
|
149 |
+
= 2.2.15 =
|
150 |
* 2020-04-13 - fix - schema content convert quotes to characters,
|
151 |
* 2020-04-13 - fix - schema count issue fixed when hide set to true.
|
152 |
* 2020-04-13 - update - default tabs style update
|
153 |
|
154 |
+
= 2.2.14 =
|
|
|
|
|
|
|
155 |
* 2020-04-08 - fix - schema error issue fixed.
|
156 |
* 2020-04-08 - remove - remove shortcode from schema content.
|
157 |
* 2020-04-08 - remove - remove html from schema content.
|
158 |
|
159 |
|
160 |
+
= 2.2.13 =
|
161 |
* 2020-04-04 - fix - minor script issue fixed.
|
162 |
* 2020-04-04 - remove - remove data migration, load old option if new options not saved.
|
163 |
* 2020-04-04 - remove - remove reset data migration.
|
165 |
|
166 |
|
167 |
|
168 |
+
= 2.2.12 =
|
169 |
* 2020-04-01 - fix - default font-awesome version set to 5+ if not set.
|
170 |
* 2020-04-01 - fix - load old data and option if data migration not completed.
|
171 |
* 2020-04-01 - fix - codemirror issue fixed.
|
172 |
|
173 |
+
= 2.2.11 =
|
174 |
* 2020-03-19 - fix - display old content if data migration not completed
|
175 |
|
176 |
+
= 2.2.10 =
|
177 |
* 2020-03-19 - add - data migration tutorial update and linked help section
|
178 |
|
179 |
+
= 2.2.9 =
|
180 |
* 2020-03-18 - update - data migration post status to any.
|
181 |
* 2020-03-18 - update - import accordion any post status
|
182 |
* 2020-03-18 - fix - security issue on import accordion fixed.
|
183 |
|
184 |
+
= 2.2.8 =
|
185 |
* 2020-03-18 - fix - minor security issue fixed.
|
186 |
|
187 |
+
= 2.2.7 =
|
188 |
* 2020-03-18 - add - older version plugin link added under help section.
|
189 |
|
190 |
+
= 2.2.6 =
|
191 |
* 2020-03-17 - fix - WooCommerce product FAQ tab remove issue fixed.
|
192 |
|
193 |
= 2.2.5 =
|
templates/accordion/accordion-hook.php
CHANGED
@@ -102,8 +102,6 @@ function accordions_main_style($atts){
|
|
102 |
wp_enqueue_style('fontawesome-5');
|
103 |
}elseif($font_aw_version =='v_4'){
|
104 |
wp_enqueue_style('fontawesome-4');
|
105 |
-
}else{
|
106 |
-
|
107 |
}
|
108 |
|
109 |
|
@@ -508,6 +506,7 @@ function accordions_main_scripts($atts){
|
|
508 |
$collapsible = !empty($accordion['collapsible']) ? $accordion['collapsible'] : 'true';
|
509 |
$height_style = isset($accordion['height_style']) ? $accordion['height_style'] : 'content';
|
510 |
$active_event = !empty($accordion['active_event']) ? $accordion['active_event'] : 'click';
|
|
|
511 |
|
512 |
$animate_style = !empty($accordion['animate_style']) ? $accordion['animate_style'] : 'swing';
|
513 |
$animate_delay = !empty($accordion['animate_delay']) ? $accordion['animate_delay'] : 1000;
|
@@ -561,6 +560,28 @@ function accordions_main_scripts($atts){
|
|
561 |
animate: ("<?php echo $animate_style; ?>", <?php echo $animate_delay; ?>),
|
562 |
navigation: true,
|
563 |
active: 999,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
564 |
});
|
565 |
})
|
566 |
</script>
|
102 |
wp_enqueue_style('fontawesome-5');
|
103 |
}elseif($font_aw_version =='v_4'){
|
104 |
wp_enqueue_style('fontawesome-4');
|
|
|
|
|
105 |
}
|
106 |
|
107 |
|
506 |
$collapsible = !empty($accordion['collapsible']) ? $accordion['collapsible'] : 'true';
|
507 |
$height_style = isset($accordion['height_style']) ? $accordion['height_style'] : 'content';
|
508 |
$active_event = !empty($accordion['active_event']) ? $accordion['active_event'] : 'click';
|
509 |
+
$expanded_other = !empty($accordion['expanded_other']) ? $accordion['expanded_other'] : 'no';
|
510 |
|
511 |
$animate_style = !empty($accordion['animate_style']) ? $accordion['animate_style'] : 'swing';
|
512 |
$animate_delay = !empty($accordion['animate_delay']) ? $accordion['animate_delay'] : 1000;
|
560 |
animate: ("<?php echo $animate_style; ?>", <?php echo $animate_delay; ?>),
|
561 |
navigation: true,
|
562 |
active: 999,
|
563 |
+
<?php
|
564 |
+
if($expanded_other == 'yes'){
|
565 |
+
?>
|
566 |
+
beforeActivate: function(event, ui) {
|
567 |
+
if (ui.newHeader[0]) {
|
568 |
+
var currHeader = ui.newHeader;
|
569 |
+
var currContent = currHeader.next(".ui-accordion-content");
|
570 |
+
} else {
|
571 |
+
var currHeader = ui.oldHeader;
|
572 |
+
var currContent = currHeader.next(".ui-accordion-content");
|
573 |
+
}
|
574 |
+
var isPanelSelected = currHeader.attr("aria-selected") == "true";
|
575 |
+
currHeader.toggleClass("ui-corner-all",isPanelSelected).toggleClass("accordion-header-active ui-state-active ui-corner-top",!isPanelSelected).attr("aria-selected",((!isPanelSelected).toString()));
|
576 |
+
currHeader.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",isPanelSelected).toggleClass("ui-icon-triangle-1-s",!isPanelSelected);
|
577 |
+
currContent.toggleClass("accordion-content-active",!isPanelSelected)
|
578 |
+
if (isPanelSelected) { currContent.slideUp(); } else { currContent.slideDown(); }
|
579 |
+
return false;
|
580 |
+
},
|
581 |
+
<?php
|
582 |
+
}
|
583 |
+
|
584 |
+
?>
|
585 |
});
|
586 |
})
|
587 |
</script>
|