Accordion - Version 2.2.66

Version Description

  • 2022-11-27 - fix - Custom JS escape issue fixed.
Download this release

Release Info

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

Code changes from version 2.2.65 to 2.2.66

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.65
7
  Author: PickPlugins
8
  Author URI: http://pickplugins.com
9
  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.65');
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.66
7
  Author: PickPlugins
8
  Author URI: http://pickplugins.com
9
  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.66');
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: 6.0
7
- Stable tag: 2.2.65
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,9 @@ then paste this shortcode anywhere in your page to display accordions<br />
139
 
140
  == Changelog ==
141
 
 
 
 
142
 
143
  = 2.2.65 =
144
  * 2022-11-05 - add - WPautop function conflict issue with js solved
4
  Tags: accordion, tabs, FAQ, WooCommerce FAQ Tab, accordion short-code, accordions widget, tab
5
  Requires at least: 3.8
6
  Tested up to: 6.0
7
+ Stable tag: 2.2.66
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.66 =
143
+ * 2022-11-27 - fix - Custom JS escape issue fixed.
144
+
145
 
146
  = 2.2.65 =
147
  * 2022-11-05 - add - WPautop function conflict issue with js solved
templates/accordion/accordion-hook.php CHANGED
@@ -121,21 +121,21 @@ function accordions_main_top($atts)
121
 
122
  ?><style type='text/css'>
123
  @media only screen and (min-width: 1024px) {
124
- #accordions-<?php echo esc_attr($post_id); ?> {
125
  <?php if (!empty($width_large)) : ?>width: <?php echo esc_attr($width_large); ?>;
126
  <?php endif; ?>
127
  }
128
  }
129
 
130
  @media only screen and (min-width: 768px) and (max-width: 1023px) {
131
- #accordions-<?php echo esc_attr($post_id); ?> {
132
  <?php if (!empty($width_medium)) : ?>width: <?php echo esc_attr($width_medium); ?>;
133
  <?php endif; ?>
134
  }
135
  }
136
 
137
  @media only screen and (min-width: 0px) and (max-width: 767px) {
138
- #accordions-<?php echo esc_attr($post_id); ?> {
139
  <?php if (!empty($width_small)) : ?>width: <?php echo esc_attr($width_small); ?>;
140
  <?php endif; ?>
141
  }
@@ -143,11 +143,11 @@ function accordions_main_top($atts)
143
 
144
  <?php
145
  if ($lazy_load == 'yes') {
146
- ?>#accordions-<?php echo esc_attr($post_id); ?> .items {
147
  display: none;
148
  }
149
 
150
- #accordions-<?php echo esc_attr($post_id); ?> .accordions-lazy {
151
  text-align: center;
152
  position: absolute;
153
  top: 50%;
@@ -157,44 +157,44 @@ function accordions_main_top($atts)
157
 
158
  <?php
159
  }
160
- ?>#accordions-<?php echo esc_attr($post_id); ?> {
161
  <?php if (!empty($container_text_align)) : ?>text-align: <?php echo esc_attr($container_text_align); ?>;
162
  <?php endif; ?><?php if (!empty($container_background_color) || !empty($container_background_img)) : ?>background: <?php echo esc_attr($container_background_color); ?> url(<?php echo esc_url_raw($container_background_img); ?>) repeat scroll 0 0;
163
  <?php endif; ?><?php if (!empty($container_padding)) : ?>padding: <?php echo esc_attr($container_padding); ?>;
164
  <?php endif; ?>position: relative;
165
  }
166
 
167
- #accordions-<?php echo esc_attr($post_id); ?> .accordions-head {
168
  <?php if (!empty($header_background_color)) : ?>background: <?php echo esc_attr($header_background_color); ?> none repeat scroll 0 0;
169
  <?php endif; ?><?php if (!empty($header_margin)) : ?>margin: <?php echo esc_attr($header_margin); ?>;
170
  <?php endif; ?><?php if (!empty($header_padding)) : ?>padding: <?php echo esc_attr($header_padding); ?>;
171
  <?php endif; ?>outline: none;
172
  }
173
 
174
- #accordions-<?php echo esc_attr($post_id); ?> .accordions-head-title {
175
  <?php if (!empty($header_font_family)) : ?>font-family: <?php echo esc_attr($header_font_family); ?>;
176
  <?php endif; ?><?php if (!empty($header_color)) : ?>color: <?php echo esc_attr($header_color); ?>;
177
  <?php endif; ?><?php if (!empty($header_font_size)) : ?>font-size: <?php echo esc_attr($header_font_size); ?>;
178
  <?php endif; ?>
179
  }
180
 
181
- #accordions-<?php echo esc_attr($post_id); ?> .accordions-head-title-toggle {
182
  <?php if (!empty($header_color)) : ?>color: <?php echo esc_attr($header_color); ?>;
183
  <?php endif; ?><?php if (!empty($header_font_size)) : ?>font-size: <?php echo esc_attr($header_font_size); ?>;
184
  <?php endif; ?>
185
  }
186
 
187
- #accordions-<?php echo esc_attr($post_id); ?> .accordions-head:hover .accordions-head-title {
188
  <?php if (!empty($header_color_hover)) : ?>color: <?php echo esc_attr($header_color_hover); ?>;
189
  <?php endif; ?>
190
  }
191
 
192
- #accordions-<?php echo esc_attr($post_id); ?> .ui-state-active {
193
  <?php if (!empty($header_active_background_color)) : ?>background: <?php echo esc_attr($header_active_background_color); ?>;
194
  <?php endif; ?>border: none;
195
  }
196
 
197
- #accordions-<?php echo esc_attr($post_id); ?> .accordion-content {
198
  <?php if (!empty($body_font_family)) : ?>font-family: <?php echo esc_attr($body_font_family); ?>;
199
  <?php endif; ?><?php if (!empty($body_background_color)) : ?>background: <?php echo esc_attr($body_background_color); ?> none repeat scroll 0 0;
200
  <?php endif; ?><?php if (!empty($body_color)) : ?>color: <?php echo esc_attr($body_color); ?>;
@@ -204,7 +204,7 @@ function accordions_main_top($atts)
204
  <?php endif; ?>border: none;
205
  }
206
 
207
- #accordions-<?php echo esc_attr($post_id); ?> .accordion-icons {
208
  <?php if (!empty($icon_color)) : ?>color: <?php echo esc_attr($icon_color); ?>;
209
  <?php endif; ?><?php if (!empty($icon_font_size)) : ?>font-size: <?php echo esc_attr($icon_font_size); ?>;
210
  <?php endif; ?><?php if (!empty($icon_background_color)) : ?>background: <?php echo esc_attr($icon_background_color); ?> none repeat scroll 0 0;
@@ -213,7 +213,7 @@ function accordions_main_top($atts)
213
  <?php endif; ?>
214
  }
215
 
216
- #accordions-<?php echo esc_attr($post_id); ?> .accordions-head:hover .accordion-icons span {
217
  <?php if (!empty($icon_color_hover)) : ?>color: <?php echo esc_attr($icon_color_hover); ?>;
218
  <?php endif; ?>
219
  }
@@ -232,7 +232,7 @@ function accordions_main_top($atts)
232
  $bg_color_css = !empty($background_color) ? $background_color : '';
233
 
234
  if (!empty($bg_color_css) || !empty($header_bg_img)) {
235
- ?>#accordions-<?php echo esc_attr($post_id); ?> #header-<?php echo esc_attr($index); ?> {
236
  background: <?php echo esc_attr($bg_color_css); ?> <?php echo esc_url_raw($header_bg_img); ?>;
237
  }
238
 
@@ -332,7 +332,7 @@ function accordions_main_top($atts)
332
  $WP_Embed = new WP_Embed();
333
  $accordion_body = $WP_Embed->autoembed($accordion_body);
334
 
335
- //var_dump($accordion_body);
336
 
337
  }
338
 
@@ -632,7 +632,7 @@ function accordions_main_top($atts)
632
  <script>
633
  (function($) {
634
  $(document).ready(function() {
635
- <?php echo esc_js($custom_js); ?>
636
  })
637
  })(jQuery);
638
  </script>
121
 
122
  ?><style type='text/css'>
123
  @media only screen and (min-width: 1024px) {
124
+ #accordions-<?php echo esc_attr($post_id); ?> {
125
  <?php if (!empty($width_large)) : ?>width: <?php echo esc_attr($width_large); ?>;
126
  <?php endif; ?>
127
  }
128
  }
129
 
130
  @media only screen and (min-width: 768px) and (max-width: 1023px) {
131
+ #accordions-<?php echo esc_attr($post_id); ?> {
132
  <?php if (!empty($width_medium)) : ?>width: <?php echo esc_attr($width_medium); ?>;
133
  <?php endif; ?>
134
  }
135
  }
136
 
137
  @media only screen and (min-width: 0px) and (max-width: 767px) {
138
+ #accordions-<?php echo esc_attr($post_id); ?> {
139
  <?php if (!empty($width_small)) : ?>width: <?php echo esc_attr($width_small); ?>;
140
  <?php endif; ?>
141
  }
143
 
144
  <?php
145
  if ($lazy_load == 'yes') {
146
+ ?>#accordions-<?php echo esc_attr($post_id); ?>.items {
147
  display: none;
148
  }
149
 
150
+ #accordions-<?php echo esc_attr($post_id); ?>.accordions-lazy {
151
  text-align: center;
152
  position: absolute;
153
  top: 50%;
157
 
158
  <?php
159
  }
160
+ ?>#accordions-<?php echo esc_attr($post_id); ?> {
161
  <?php if (!empty($container_text_align)) : ?>text-align: <?php echo esc_attr($container_text_align); ?>;
162
  <?php endif; ?><?php if (!empty($container_background_color) || !empty($container_background_img)) : ?>background: <?php echo esc_attr($container_background_color); ?> url(<?php echo esc_url_raw($container_background_img); ?>) repeat scroll 0 0;
163
  <?php endif; ?><?php if (!empty($container_padding)) : ?>padding: <?php echo esc_attr($container_padding); ?>;
164
  <?php endif; ?>position: relative;
165
  }
166
 
167
+ #accordions-<?php echo esc_attr($post_id); ?>.accordions-head {
168
  <?php if (!empty($header_background_color)) : ?>background: <?php echo esc_attr($header_background_color); ?> none repeat scroll 0 0;
169
  <?php endif; ?><?php if (!empty($header_margin)) : ?>margin: <?php echo esc_attr($header_margin); ?>;
170
  <?php endif; ?><?php if (!empty($header_padding)) : ?>padding: <?php echo esc_attr($header_padding); ?>;
171
  <?php endif; ?>outline: none;
172
  }
173
 
174
+ #accordions-<?php echo esc_attr($post_id); ?>.accordions-head-title {
175
  <?php if (!empty($header_font_family)) : ?>font-family: <?php echo esc_attr($header_font_family); ?>;
176
  <?php endif; ?><?php if (!empty($header_color)) : ?>color: <?php echo esc_attr($header_color); ?>;
177
  <?php endif; ?><?php if (!empty($header_font_size)) : ?>font-size: <?php echo esc_attr($header_font_size); ?>;
178
  <?php endif; ?>
179
  }
180
 
181
+ #accordions-<?php echo esc_attr($post_id); ?>.accordions-head-title-toggle {
182
  <?php if (!empty($header_color)) : ?>color: <?php echo esc_attr($header_color); ?>;
183
  <?php endif; ?><?php if (!empty($header_font_size)) : ?>font-size: <?php echo esc_attr($header_font_size); ?>;
184
  <?php endif; ?>
185
  }
186
 
187
+ #accordions-<?php echo esc_attr($post_id); ?>.accordions-head:hover .accordions-head-title {
188
  <?php if (!empty($header_color_hover)) : ?>color: <?php echo esc_attr($header_color_hover); ?>;
189
  <?php endif; ?>
190
  }
191
 
192
+ #accordions-<?php echo esc_attr($post_id); ?>.ui-state-active {
193
  <?php if (!empty($header_active_background_color)) : ?>background: <?php echo esc_attr($header_active_background_color); ?>;
194
  <?php endif; ?>border: none;
195
  }
196
 
197
+ #accordions-<?php echo esc_attr($post_id); ?>.accordion-content {
198
  <?php if (!empty($body_font_family)) : ?>font-family: <?php echo esc_attr($body_font_family); ?>;
199
  <?php endif; ?><?php if (!empty($body_background_color)) : ?>background: <?php echo esc_attr($body_background_color); ?> none repeat scroll 0 0;
200
  <?php endif; ?><?php if (!empty($body_color)) : ?>color: <?php echo esc_attr($body_color); ?>;
204
  <?php endif; ?>border: none;
205
  }
206
 
207
+ #accordions-<?php echo esc_attr($post_id); ?>.accordion-icons {
208
  <?php if (!empty($icon_color)) : ?>color: <?php echo esc_attr($icon_color); ?>;
209
  <?php endif; ?><?php if (!empty($icon_font_size)) : ?>font-size: <?php echo esc_attr($icon_font_size); ?>;
210
  <?php endif; ?><?php if (!empty($icon_background_color)) : ?>background: <?php echo esc_attr($icon_background_color); ?> none repeat scroll 0 0;
213
  <?php endif; ?>
214
  }
215
 
216
+ #accordions-<?php echo esc_attr($post_id); ?>.accordions-head:hover .accordion-icons span {
217
  <?php if (!empty($icon_color_hover)) : ?>color: <?php echo esc_attr($icon_color_hover); ?>;
218
  <?php endif; ?>
219
  }
232
  $bg_color_css = !empty($background_color) ? $background_color : '';
233
 
234
  if (!empty($bg_color_css) || !empty($header_bg_img)) {
235
+ ?>#accordions-<?php echo esc_attr($post_id); ?>#header-<?php echo esc_attr($index); ?> {
236
  background: <?php echo esc_attr($bg_color_css); ?> <?php echo esc_url_raw($header_bg_img); ?>;
237
  }
238
 
332
  $WP_Embed = new WP_Embed();
333
  $accordion_body = $WP_Embed->autoembed($accordion_body);
334
 
335
+ //var_dump($accordion_body);
336
 
337
  }
338
 
632
  <script>
633
  (function($) {
634
  $(document).ready(function() {
635
+ <?php echo wp_kses_post($custom_js); ?>
636
  })
637
  })(jQuery);
638
  </script>