Accordion - Version 2.2.18

Version Description

  • 2020-04-22 - fix - accordion header font-family issue fixed.
    • 2020-04-22 - fix - accordion body font-family issue fixed.
Download this release

Release Info

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

Code changes from version 2.2.17 to 2.2.18

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.17
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.17' );
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.18
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.18' );
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.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,11 @@ then paste this shortcode anywhere in your page to display accordions<br />
139
 
140
  == Changelog ==
141
 
 
 
 
 
 
142
  = 2.2.17 =
143
  * 2020-04-18 - fix - Keep expanded others 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: 5.4
7
+ Stable tag: 2.2.18
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.18 =
143
+ * 2020-04-22 - fix - accordion header font-family issue fixed.
144
+ * 2020-04-22 - fix - accordion body font-family issue fixed.
145
+
146
+
147
  = 2.2.17 =
148
  * 2020-04-18 - fix - Keep expanded others issue fixed.
149
 
templates/accordion/accordion-hook.php CHANGED
@@ -64,6 +64,7 @@ function accordions_main_style($atts){
64
  $header_font_size = !empty($header['font_size']) ? $header['font_size'] : '16px';
65
  $header_padding = !empty($header['padding']) ? $header['padding'] : '';
66
  $header_margin = !empty($header['margin']) ? $header['margin'] : '';
 
67
 
68
 
69
  $body = isset($accordions_options['body']) ? $accordions_options['body'] : array();
@@ -74,6 +75,8 @@ function accordions_main_style($atts){
74
  $body_font_size = isset($body['font_size']) ? $body['font_size'] : '';
75
  $body_padding = isset($body['padding']) ? $body['padding'] : '';
76
  $body_margin = isset($body['margin']) ? $body['margin'] : '';
 
 
77
 
78
  $container = isset($accordions_options['container']) ? $accordions_options['container'] : array();
79
  $container_padding = isset($container['padding']) ? $container['padding'] : '';
@@ -149,71 +152,77 @@ function accordions_main_style($atts){
149
  }
150
  ?>#accordions-<?php echo $post_id; ?> {
151
  <?php if(!empty($container_text_align)):?>
152
- text-align: <?php echo $container_text_align; ?>;
153
  <?php endif; ?>
154
  <?php if(!empty($container_background_color) || !empty($container_background_img)):?>
155
- background:<?php echo $container_background_color; ?> url(<?php echo $container_background_img; ?>) repeat scroll 0 0;
156
  <?php endif; ?>
157
  <?php if(!empty($container_padding)):?>
158
- padding: <?php echo $container_padding; ?>;
159
  <?php endif; ?>
160
  position: relative;
161
  }
162
  #accordions-<?php echo $post_id; ?> .accordions-head{
163
- <?php if(!empty($header_background_color)):?>
164
  background:<?php echo $header_background_color; ?> none repeat scroll 0 0;
165
- <?php endif; ?>
166
- <?php if(!empty($header_margin)):?>
167
  margin:<?php echo $header_margin; ?>;
168
- <?php endif; ?>
169
- <?php if(!empty($header_padding)):?>
170
  padding:<?php echo $header_padding; ?>;
171
- <?php endif; ?>
172
  outline: none;
173
  }
174
  #accordions-<?php echo $post_id; ?> .accordions-head-title{
175
- <?php if(!empty($header_color)):?>
 
 
 
176
  color:<?php echo $header_color; ?>;
177
- <?php endif; ?>
178
- <?php if(!empty($header_font_size)):?>
179
  font-size:<?php echo $header_font_size; ?>;
180
- <?php endif; ?>
181
  }
182
  #accordions-<?php echo $post_id; ?> .accordions-head-title-toggle{
183
- <?php if(!empty($header_color)):?>
184
  color:<?php echo $header_color; ?>;
185
- <?php endif; ?>
186
- <?php if(!empty($header_font_size)):?>
187
  font-size:<?php echo $header_font_size; ?>;
188
- <?php endif; ?>
189
  }
190
  #accordions-<?php echo $post_id; ?> .accordions-head:hover .accordions-head-title{
191
- <?php if(!empty($header_color_hover)):?>
192
  color:<?php echo $header_color_hover; ?>;
193
- <?php endif; ?>
194
  }
195
  #accordions-<?php echo $post_id; ?> .ui-state-active{
196
- <?php if(!empty($header_active_background_color)):?>
197
  background: <?php echo $header_active_background_color; ?>;
198
- <?php endif; ?>
199
  border: none;
200
  }
201
  #accordions-<?php echo $post_id; ?> .accordion-content{
202
- <?php if(!empty($body_background_color)):?>
 
 
 
203
  background:<?php echo $body_background_color; ?> none repeat scroll 0 0;
204
- <?php endif; ?>
205
- <?php if(!empty($body_color)):?>
206
  color:<?php echo $body_color; ?>;
207
- <?php endif; ?>
208
- <?php if(!empty($body_font_size)):?>
209
  font-size:<?php echo $body_font_size; ?>;
210
- <?php endif; ?>
211
- <?php if(!empty($body_margin)):?>
212
  margin:<?php echo $body_margin; ?>;
213
- <?php endif; ?>
214
- <?php if(!empty($body_padding)):?>
215
  padding:<?php echo $body_padding; ?>;
216
- <?php endif; ?>
217
  border: none;
218
  }
219
  #accordions-<?php echo $post_id; ?> .accordion-icons{
@@ -583,6 +592,9 @@ function accordions_main_scripts($atts){
583
 
584
  ?>
585
  });
 
 
 
586
  })
587
  </script>
588
  <?php
@@ -600,6 +612,8 @@ function accordions_main_scripts($atts){
600
 
601
 
602
 
 
 
603
  add_action('accordions_main_no_content', 'accordions_main_no_content', 50);
604
  function accordions_main_no_content(){
605
 
64
  $header_font_size = !empty($header['font_size']) ? $header['font_size'] : '16px';
65
  $header_padding = !empty($header['padding']) ? $header['padding'] : '';
66
  $header_margin = !empty($header['margin']) ? $header['margin'] : '';
67
+ $header_font_family = !empty($header['font_family']) ? $header['font_family'] : '';
68
 
69
 
70
  $body = isset($accordions_options['body']) ? $accordions_options['body'] : array();
75
  $body_font_size = isset($body['font_size']) ? $body['font_size'] : '';
76
  $body_padding = isset($body['padding']) ? $body['padding'] : '';
77
  $body_margin = isset($body['margin']) ? $body['margin'] : '';
78
+ $body_font_family = isset($body['font_family']) ? $body['font_family'] : '';
79
+
80
 
81
  $container = isset($accordions_options['container']) ? $accordions_options['container'] : array();
82
  $container_padding = isset($container['padding']) ? $container['padding'] : '';
152
  }
153
  ?>#accordions-<?php echo $post_id; ?> {
154
  <?php if(!empty($container_text_align)):?>
155
+ text-align: <?php echo $container_text_align; ?>;
156
  <?php endif; ?>
157
  <?php if(!empty($container_background_color) || !empty($container_background_img)):?>
158
+ background:<?php echo $container_background_color; ?> url(<?php echo $container_background_img; ?>) repeat scroll 0 0;
159
  <?php endif; ?>
160
  <?php if(!empty($container_padding)):?>
161
+ padding: <?php echo $container_padding; ?>;
162
  <?php endif; ?>
163
  position: relative;
164
  }
165
  #accordions-<?php echo $post_id; ?> .accordions-head{
166
+ <?php if(!empty($header_background_color)):?>
167
  background:<?php echo $header_background_color; ?> none repeat scroll 0 0;
168
+ <?php endif; ?>
169
+ <?php if(!empty($header_margin)):?>
170
  margin:<?php echo $header_margin; ?>;
171
+ <?php endif; ?>
172
+ <?php if(!empty($header_padding)):?>
173
  padding:<?php echo $header_padding; ?>;
174
+ <?php endif; ?>
175
  outline: none;
176
  }
177
  #accordions-<?php echo $post_id; ?> .accordions-head-title{
178
+ <?php if(!empty($header_font_family)):?>
179
+ font-family:<?php echo $header_font_family; ?>;
180
+ <?php endif; ?>
181
+ <?php if(!empty($header_color)):?>
182
  color:<?php echo $header_color; ?>;
183
+ <?php endif; ?>
184
+ <?php if(!empty($header_font_size)):?>
185
  font-size:<?php echo $header_font_size; ?>;
186
+ <?php endif; ?>
187
  }
188
  #accordions-<?php echo $post_id; ?> .accordions-head-title-toggle{
189
+ <?php if(!empty($header_color)):?>
190
  color:<?php echo $header_color; ?>;
191
+ <?php endif; ?>
192
+ <?php if(!empty($header_font_size)):?>
193
  font-size:<?php echo $header_font_size; ?>;
194
+ <?php endif; ?>
195
  }
196
  #accordions-<?php echo $post_id; ?> .accordions-head:hover .accordions-head-title{
197
+ <?php if(!empty($header_color_hover)):?>
198
  color:<?php echo $header_color_hover; ?>;
199
+ <?php endif; ?>
200
  }
201
  #accordions-<?php echo $post_id; ?> .ui-state-active{
202
+ <?php if(!empty($header_active_background_color)):?>
203
  background: <?php echo $header_active_background_color; ?>;
204
+ <?php endif; ?>
205
  border: none;
206
  }
207
  #accordions-<?php echo $post_id; ?> .accordion-content{
208
+ <?php if(!empty($body_font_family)):?>
209
+ font-family:<?php echo $body_font_family; ?>;
210
+ <?php endif; ?>
211
+ <?php if(!empty($body_background_color)):?>
212
  background:<?php echo $body_background_color; ?> none repeat scroll 0 0;
213
+ <?php endif; ?>
214
+ <?php if(!empty($body_color)):?>
215
  color:<?php echo $body_color; ?>;
216
+ <?php endif; ?>
217
+ <?php if(!empty($body_font_size)):?>
218
  font-size:<?php echo $body_font_size; ?>;
219
+ <?php endif; ?>
220
+ <?php if(!empty($body_margin)):?>
221
  margin:<?php echo $body_margin; ?>;
222
+ <?php endif; ?>
223
+ <?php if(!empty($body_padding)):?>
224
  padding:<?php echo $body_padding; ?>;
225
+ <?php endif; ?>
226
  border: none;
227
  }
228
  #accordions-<?php echo $post_id; ?> .accordion-icons{
592
 
593
  ?>
594
  });
595
+
596
+
597
+
598
  })
599
  </script>
600
  <?php
612
 
613
 
614
 
615
+
616
+
617
  add_action('accordions_main_no_content', 'accordions_main_no_content', 50);
618
  function accordions_main_no_content(){
619