Accordion - Version 2.1.10

Version Description

  • 05/02/2019 - fix - js issue fixed.
Download this release

Release Info

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

Code changes from version 2.1.7 to 2.1.10

accordions.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: Accordions
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.1.7
7
  WC requires at least: 3.0.0
8
- WC tested up to: 3.4
9
  Author: PickPlugins
10
  Author URI: http://pickplugins.com
11
  Text Domain: accordions
@@ -102,6 +102,7 @@ class Accordions{
102
 
103
  public function accordions_admin_scripts(){
104
 
 
105
  global $post;
106
 
107
  if( !empty($post)){
@@ -110,46 +111,50 @@ class Accordions{
110
 
111
  wp_enqueue_editor();
112
 
113
- wp_enqueue_script('jquery');
114
- wp_enqueue_script('jquery-ui-sortable');
115
- wp_enqueue_script( 'jquery-ui-core' );
116
- wp_enqueue_script('jquery-ui-accordion');
117
 
118
- wp_enqueue_script('wp-color-picker');
119
- wp_enqueue_style( 'wp-color-picker' );
120
 
121
- wp_enqueue_script('accordions_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ),'20181018');
122
- wp_localize_script( 'accordions_admin_js', 'L10n_accordions', array(
123
- 'confirm_text' => __( 'Confirm', 'accordions' )
124
- ));
125
 
126
- wp_localize_script( 'accordions_admin_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
127
 
128
- wp_enqueue_style('accordions_admin_style', plugins_url( 'assets/admin/css/style.css', __FILE__ ),'','20181018');
129
- wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome.min.css', __FILE__ ),'','20181018');
130
 
131
- wp_enqueue_script('codemirror', plugins_url( 'assets/admin/js/codemirror.js' , __FILE__ ) , array( 'jquery' ),'20181018');
132
- wp_enqueue_style('codemirror', plugins_url( 'assets/admin/css/codemirror.css', __FILE__ ),'','20181018');
133
 
134
- wp_enqueue_script('settings-tabs', plugins_url( 'assets/admin/js/settings-tabs.js' , __FILE__ ) , array( 'jquery' ),'20181018');
135
- wp_enqueue_style('settings-tabs', plugins_url( 'assets/admin/css/settings-tabs.css', __FILE__ ),'','20181018');
136
 
137
 
138
- }
139
 
140
- if($post->post_type=='product'){
141
 
142
- wp_enqueue_script('accordions_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ),'20181018');
143
- wp_localize_script( 'accordions_admin_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
144
 
145
- }
146
 
147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
 
150
- // wp_enqueue_script( 'color-picker', plugins_url('/assets/admin/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), true, true );
151
 
152
- }
153
 
154
 
155
 
3
  Plugin Name: Accordions
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.1.10
7
  WC requires at least: 3.0.0
8
+ WC tested up to: 3.5
9
  Author: PickPlugins
10
  Author URI: http://pickplugins.com
11
  Text Domain: accordions
102
 
103
  public function accordions_admin_scripts(){
104
 
105
+
106
  global $post;
107
 
108
  if( !empty($post)){
111
 
112
  wp_enqueue_editor();
113
 
114
+ }
 
 
 
115
 
116
+ if($post->post_type=='product'){
 
117
 
 
 
 
 
118
 
 
119
 
120
+ }
 
121
 
 
 
122
 
 
 
123
 
124
 
125
+ // wp_enqueue_script( 'color-picker', plugins_url('/assets/admin/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), true, true );
126
 
127
+ }
128
 
 
 
129
 
 
130
 
131
 
132
+ wp_enqueue_script('jquery');
133
+ wp_enqueue_script('jquery-ui-sortable');
134
+ wp_enqueue_script( 'jquery-ui-core' );
135
+ wp_enqueue_script('jquery-ui-accordion');
136
+ wp_enqueue_script('jquery-ui-tabs');
137
+ wp_enqueue_script('wp-color-picker');
138
+ wp_enqueue_style( 'wp-color-picker' );
139
+
140
+
141
+ wp_enqueue_script('accordions_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ),'20181018');
142
+ wp_localize_script( 'accordions_admin_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
143
+ wp_localize_script( 'accordions_admin_js', 'L10n_accordions', array(
144
+ 'confirm_text' => __( 'Confirm', 'accordions' )
145
+ ));
146
+
147
+ wp_enqueue_style('accordions_admin_style', plugins_url( 'assets/admin/css/style.css', __FILE__ ),'','20181018');
148
+ wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome.min.css', __FILE__ ),'','20181018');
149
+
150
+ wp_enqueue_script('codemirror', plugins_url( 'assets/admin/js/codemirror.js' , __FILE__ ) , array( 'jquery' ),'20181018');
151
+ wp_enqueue_style('codemirror', plugins_url( 'assets/admin/css/codemirror.css', __FILE__ ),'','20181018');
152
+
153
+ wp_enqueue_script('settings-tabs', plugins_url( 'assets/admin/js/settings-tabs.js' , __FILE__ ) , array( 'jquery' ),'20181018');
154
+ wp_enqueue_style('settings-tabs', plugins_url( 'assets/admin/css/settings-tabs.css', __FILE__ ),'','20181018');
155
 
156
 
 
157
 
 
158
 
159
 
160
 
assets/admin/js/scripts.js CHANGED
@@ -7,6 +7,7 @@ jQuery(document).ready(function($)
7
 
8
  json_file = $('.json_file').val();
9
 
 
10
  if(json_file){
11
  $.ajax(
12
  {
7
 
8
  json_file = $('.json_file').val();
9
 
10
+
11
  if(json_file){
12
  $.ajax(
13
  {
assets/admin/js/scripts.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(a){a(document).on("click",".accordions-import-json",function(){json_file=a(".json_file").val();if(json_file){a.ajax({type:"POST",context:this,url:accordions_ajax.accordions_ajaxurl,data:{action:"accordions_ajax_import_json",json_file:json_file},success:function(b){var c=JSON.parse(b);json_file=c.json_file;a(this).html("Import done");a(".json_file").val("")}})}else{alert("Please put file url")}});a(document).on("click","#accordions_metabox .expand-collapse",function(){if(a(this).attr("expand")){a(this).removeAttr("expand");a(this).text("Expand all");a("#accordions-content .items").removeClass("active");a(this).attr("collapse","yes")}else{a(this).removeAttr("collapse");a(this).text("Collapse all");a(this).attr("expand","yes");a("#accordions-content .items").addClass("active")}});a(document).on("click","#accordions_metabox .reset-active",function(){a('input[name="accordions_active_accordion"]').prop("checked",false)});a(document).on("keyup","#accordions_metabox .section-panel .accordions_content_title",function(){var b=a(this).val();if(b==""){a(this).parent().parent().children(".section-header").children(".accordions-title-preview").html("start typing")}else{a(this).parent().parent().children(".section-header").children(".accordions-title-preview").html(b)}});a(document).on("click","#accordions_metabox .section-header .expand-compress",function(){if(a(this).parent().parent().hasClass("active")){a(this).parent().parent().removeClass("active")}else{a(this).parent().parent().addClass("active")}});a(document).on("keyup",".accordions_icons_custom_plus_input",function(){icon_id=a(this).val();a(".accordions_icons_custom_plus i").removeAttr("class");a(".accordions_icons_custom_plus i").addClass("fa "+icon_id);console.log(icon_id)});a(document).on("keyup",".accordions_icons_custom_minus_input",function(){icon_id=a(this).val();a(".accordions_icons_custom_minus i").removeAttr("class");a(".accordions_icons_custom_minus i").addClass("fa "+icon_id);console.log(icon_id)});a(document).on("click","#accordions_metabox .removeaccordions",function(){var b=a(this).attr("confirm");if(b=="yes"){a(this).parent().parent().remove()}else{a(this).html(L10n_accordions.confirm_text);a(this).attr("confirm","yes")}})});
1
+ jQuery(document).ready(function(a){a(document).on("click",".accordions-import-json",function(){json_file=a(".json_file").val();if(json_file){a.ajax({type:"POST",context:this,url:accordions_ajax.accordions_ajaxurl,data:{action:"accordions_ajax_import_json",json_file:json_file,},success:function(b){var c=JSON.parse(b);json_file=c.json_file;a(this).html("Import done");a(".json_file").val("")}})}else{alert("Please put file url")}});a(document).on("click","#accordions_metabox .expand-collapse",function(){if(a(this).attr("expand")){a(this).removeAttr("expand");a(this).text("Expand all");a("#accordions-content .items").removeClass("active");a(this).attr("collapse","yes")}else{a(this).removeAttr("collapse");a(this).text("Collapse all");a(this).attr("expand","yes");a("#accordions-content .items").addClass("active")}});a(document).on("click","#accordions_metabox .reset-active",function(){a('input[name="accordions_active_accordion"]').prop("checked",false)});a(document).on("keyup","#accordions_metabox .section-panel .accordions_content_title",function(){var b=a(this).val();if(b==""){a(this).parent().parent().children(".section-header").children(".accordions-title-preview").html("start typing")}else{a(this).parent().parent().children(".section-header").children(".accordions-title-preview").html(b)}});a(document).on("click","#accordions_metabox .section-header .expand-compress",function(){if(a(this).parent().parent().hasClass("active")){a(this).parent().parent().removeClass("active")}else{a(this).parent().parent().addClass("active")}});a(document).on("keyup",".accordions_icons_custom_plus_input",function(){icon_id=a(this).val();a(".accordions_icons_custom_plus i").removeAttr("class");a(".accordions_icons_custom_plus i").addClass("fa "+icon_id);console.log(icon_id)});a(document).on("keyup",".accordions_icons_custom_minus_input",function(){icon_id=a(this).val();a(".accordions_icons_custom_minus i").removeAttr("class");a(".accordions_icons_custom_minus i").addClass("fa "+icon_id);console.log(icon_id)});a(document).on("click","#accordions_metabox .removeaccordions",function(){var b=a(this).attr("confirm");if(b=="yes"){a(this).parent().parent().remove()}else{a(this).html(L10n_accordions.confirm_text);a(this).attr("confirm","yes")}})});
assets/global/css/themesTabs.style.css CHANGED
@@ -33,6 +33,18 @@ width: 100%;
33
  display: none;
34
  }
35
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  .accordions-tabs .tabs-content {
37
  border-radius: 0;
38
  padding: 0;
33
  display: none;
34
  }
35
 
36
+
37
+ .accordions-tabs .ui-tabs-active .accordions-tab-plus{
38
+ display: none;
39
+ }
40
+
41
+ .accordions-tabs .ui-tabs-active .accordions-tab-minus{
42
+ display: inline-block;
43
+ }
44
+
45
+
46
+
47
+
48
  .accordions-tabs .tabs-content {
49
  border-radius: 0;
50
  padding: 0;
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Accordion ===
2
  Contributors: PickPlugins
3
  Donate link: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
4
- Tags: accordion, accordions, Responsive accordions, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery, tabs, jquery tabs, tab, responsive tabs
5
  Requires at least: 3.8
6
- Tested up to: 5.0
7
- Stable tag: 2.1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -25,11 +25,11 @@ Accordion content create wasn't easy before, you will really love how its works
25
 
26
  <strong>Plugin Features</strong>
27
 
28
- * Unlimited Accordion.
29
  * Responsive Design.
30
  * Use Via Short-Codes.
31
  * Accordion sorting.
32
- * WP Editor for accordion content.
33
  * Container Background Image.
34
  * Container Background Color.
35
  * Hide any accordion without deleting.
@@ -92,6 +92,18 @@ then paste this shortcode anywhere in your page to display accordions<br />
92
 
93
  == Changelog ==
94
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  = 2.1.7 =
97
  * 08/12/2018 - fix - accordion header html input issue fixed.
1
  === Accordion ===
2
  Contributors: PickPlugins
3
  Donate link: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
4
+ Tags: accordion, accordions, Responsive accordions, FAQ, WooCommerce FAQ, WooCommerce FAQ Tab, accordions plugin, jQuery accordions, accordions short-code, accordions Widget, accordions plugin wordpress, accordions plugin jquery, tabs, jquery tabs, tab, responsive tabs
5
  Requires at least: 3.8
6
+ Tested up to: 5.1
7
+ Stable tag: 2.1.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
25
 
26
  <strong>Plugin Features</strong>
27
 
28
+ * Unlimited Accordion & FAQ.
29
  * Responsive Design.
30
  * Use Via Short-Codes.
31
  * Accordion sorting.
32
+ * WP Editor for accordion/FAQ content.
33
  * Container Background Image.
34
  * Container Background Color.
35
  * Hide any accordion without deleting.
92
 
93
  == Changelog ==
94
 
95
+ = 2.1.10 =
96
+ * 05/02/2019 - fix - js issue fixed.
97
+
98
+ = 2.1.9 =
99
+ * 05/02/2019 - fix - Import issue fixed.
100
+
101
+ = 2.1.8 =
102
+ * 19/12/2018 - fix - First tab active on load for tabs.
103
+ * 19/12/2018 - fix - Html issue on header.
104
+ * 19/12/2018 - fix - Tabs nav icons toggle issue fixed.
105
+
106
+
107
 
108
  = 2.1.7 =
109
  * 08/12/2018 - fix - accordion header html input issue fixed.
templates/accordion/header.php CHANGED
@@ -20,7 +20,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
20
 
21
 
22
  ?>
23
- <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; ?>" toogle-text="" main-text="<?php echo $accordions_title; ?>" >
24
  <div class="accordion-icons left accordion-plus fa <?php echo $accordions_icons_plus; ?>"></div>
25
  <div class="accordion-icons left accordion-minus fa <?php echo $accordions_icons_minus; ?>"></div>
26
  <div id="header-text-<?php echo $index; ?>" class="accordions-head-title"><?php echo do_shortcode($accordions_title); ?></div>
20
 
21
 
22
  ?>
23
+ <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; ?>" >
24
  <div class="accordion-icons left accordion-plus fa <?php echo $accordions_icons_plus; ?>"></div>
25
  <div class="accordion-icons left accordion-minus fa <?php echo $accordions_icons_minus; ?>"></div>
26
  <div id="header-text-<?php echo $index; ?>" class="accordions-head-title"><?php echo do_shortcode($accordions_title); ?></div>
templates/tabs/variables.php CHANGED
@@ -18,7 +18,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
18
  if(empty($accordions_heightStyle)){$accordions_heightStyle = 'content';}
19
 
20
  $accordions_active_accordion = get_post_meta( $post_id, 'accordions_active_accordion', true );
21
- if(empty($accordions_active_accordion )){$accordions_active_accordion = 99999;}
22
 
23
 
24
 
18
  if(empty($accordions_heightStyle)){$accordions_heightStyle = 'content';}
19
 
20
  $accordions_active_accordion = get_post_meta( $post_id, 'accordions_active_accordion', true );
21
+ if(empty($accordions_active_accordion )){$accordions_active_accordion = 0;}
22
 
23
 
24