Version Description
Download this release
Release Info
Developer | pickplugins |
Plugin | Accordion |
Version | 2.2.15 |
Comparing to | |
See all releases |
Code changes from version 2.2.14 to 2.2.15
- accordions.php +11 -26
- includes/3rd-party/3rd-party.php +24 -0
- includes/class-settings-tabs.php +4 -3
- readme.txt +9 -1
- templates/accordion/accordion-hook.php +22 -12
- templates/tabs/tabs-hook.php +7 -7
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 |
|
@@ -53,28 +53,7 @@ class Accordions{
|
|
53 |
require_once( accordions_plugin_dir . 'templates/accordion/accordion-hook.php');
|
54 |
require_once( accordions_plugin_dir . 'templates/tabs/tabs-hook.php');
|
55 |
|
56 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/
|
57 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/easy-accordion-free/functions-data-import.php');
|
58 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/responsive-accordion-and-collapse/functions-data-import.php');
|
59 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/responsive-tabs/functions-data-import.php');
|
60 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/easy-responsive-tabs/functions-data-import.php');
|
61 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/everest-tab-lite/functions-data-import.php');
|
62 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/quick-and-easy-faqs/functions-data-import.php');
|
63 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/shortcodes-ultimate/functions-data-import.php');
|
64 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/sp-faq/functions-data-import.php');
|
65 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/squelch-tabs-and-accordions-shortcodes/functions-data-import.php');
|
66 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/tabby-responsive-tabs/functions-data-import.php');
|
67 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/ultimate-faqs/functions-data-import.php');
|
68 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/tabs-shortcode/functions-data-import.php');
|
69 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/wonderplugin-tabs-trial/functions-data-import.php');
|
70 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/tabs-pro/functions-data-import.php');
|
71 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/accordion-shortcodes/functions-data-import.php');
|
72 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/wc-shortcodes/functions-data-import.php');
|
73 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/wp-shortcode/functions-data-import.php');
|
74 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/helpie-faq/functions-data-import.php');
|
75 |
-
require_once( accordions_plugin_dir . 'includes/3rd-party/meks-flexible-shortcodes/functions-data-import.php');
|
76 |
-
|
77 |
-
|
78 |
|
79 |
|
80 |
|
@@ -152,7 +131,9 @@ class Accordions{
|
|
152 |
}
|
153 |
|
154 |
public function _admin_scripts(){
|
|
|
155 |
|
|
|
156 |
|
157 |
|
158 |
wp_enqueue_script('accordions_admin_js', accordions_plugin_url. 'assets/admin/js/scripts.js' , array( 'jquery' ),'20181018');
|
@@ -164,8 +145,12 @@ class Accordions{
|
|
164 |
wp_register_style('font-awesome-4', accordions_plugin_url.'assets/global/css/font-awesome-4.css');
|
165 |
wp_register_style('font-awesome-5', accordions_plugin_url.'assets/global/css/font-awesome-5.css');
|
166 |
|
167 |
-
$
|
168 |
-
|
|
|
|
|
|
|
|
|
169 |
|
170 |
|
171 |
}
|
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.15
|
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.15' );
|
27 |
define('accordions_plugin_name', 'Accordions' );
|
28 |
define('accordions_plugin_basename', plugin_basename( __FILE__ ) );
|
29 |
|
53 |
require_once( accordions_plugin_dir . 'templates/accordion/accordion-hook.php');
|
54 |
require_once( accordions_plugin_dir . 'templates/tabs/tabs-hook.php');
|
55 |
|
56 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/3rd-party.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
|
59 |
|
131 |
}
|
132 |
|
133 |
public function _admin_scripts(){
|
134 |
+
$screen = get_current_screen();
|
135 |
|
136 |
+
//var_dump($screen);
|
137 |
|
138 |
|
139 |
wp_enqueue_script('accordions_admin_js', accordions_plugin_url. 'assets/admin/js/scripts.js' , array( 'jquery' ),'20181018');
|
145 |
wp_register_style('font-awesome-4', accordions_plugin_url.'assets/global/css/font-awesome-4.css');
|
146 |
wp_register_style('font-awesome-5', accordions_plugin_url.'assets/global/css/font-awesome-5.css');
|
147 |
|
148 |
+
if($screen->id =='accordions' || $screen->id =='accordions_page_settings'){
|
149 |
+
$settings_tabs_field = new settings_tabs_field();
|
150 |
+
$settings_tabs_field->admin_scripts();
|
151 |
+
}
|
152 |
+
|
153 |
+
|
154 |
|
155 |
|
156 |
}
|
includes/3rd-party/3rd-party.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined('ABSPATH')) exit; // if direct access
|
3 |
+
|
4 |
+
|
5 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/arconix-faq/functions-data-import.php');
|
6 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/easy-accordion-free/functions-data-import.php');
|
7 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/responsive-accordion-and-collapse/functions-data-import.php');
|
8 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/responsive-tabs/functions-data-import.php');
|
9 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/easy-responsive-tabs/functions-data-import.php');
|
10 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/everest-tab-lite/functions-data-import.php');
|
11 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/quick-and-easy-faqs/functions-data-import.php');
|
12 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/shortcodes-ultimate/functions-data-import.php');
|
13 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/sp-faq/functions-data-import.php');
|
14 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/squelch-tabs-and-accordions-shortcodes/functions-data-import.php');
|
15 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/tabby-responsive-tabs/functions-data-import.php');
|
16 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/ultimate-faqs/functions-data-import.php');
|
17 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/tabs-shortcode/functions-data-import.php');
|
18 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/wonderplugin-tabs-trial/functions-data-import.php');
|
19 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/tabs-pro/functions-data-import.php');
|
20 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/accordion-shortcodes/functions-data-import.php');
|
21 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/wc-shortcodes/functions-data-import.php');
|
22 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/wp-shortcode/functions-data-import.php');
|
23 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/helpie-faq/functions-data-import.php');
|
24 |
+
require_once( accordions_plugin_dir . 'includes/3rd-party/meks-flexible-shortcodes/functions-data-import.php');
|
includes/class-settings-tabs.php
CHANGED
@@ -1498,6 +1498,7 @@ class settings_tabs_field{
|
|
1498 |
if(!empty($thumb)):
|
1499 |
?>
|
1500 |
<img style="width: <?php echo $width; ?>;" alt="<?php echo $name; ?>" src="<?php echo $thumb; ?>">
|
|
|
1501 |
|
1502 |
<?php
|
1503 |
else:
|
@@ -1569,13 +1570,13 @@ class settings_tabs_field{
|
|
1569 |
.radio-img label .link{
|
1570 |
background: hsl(200, 7%, 42%);
|
1571 |
position: absolute;
|
1572 |
-
top:
|
1573 |
-
|
1574 |
-
transform: translate(-50%,-50%);
|
1575 |
padding: 3px 14px;
|
1576 |
text-decoration: none;
|
1577 |
font-size: 14px;
|
1578 |
color: #fff;
|
|
|
1579 |
|
1580 |
}
|
1581 |
|
1498 |
if(!empty($thumb)):
|
1499 |
?>
|
1500 |
<img style="width: <?php echo $width; ?>;" alt="<?php echo $name; ?>" src="<?php echo $thumb; ?>">
|
1501 |
+
<div style="padding: 5px;" class="name"><?php echo $name; ?></div>
|
1502 |
|
1503 |
<?php
|
1504 |
else:
|
1570 |
.radio-img label .link{
|
1571 |
background: hsl(200, 7%, 42%);
|
1572 |
position: absolute;
|
1573 |
+
top: 2px;
|
1574 |
+
/* transform: translate(0%,-50%); */
|
|
|
1575 |
padding: 3px 14px;
|
1576 |
text-decoration: none;
|
1577 |
font-size: 14px;
|
1578 |
color: #fff;
|
1579 |
+
right: 2px;
|
1580 |
|
1581 |
}
|
1582 |
|
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,6 +139,14 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
= 2.2.14=
|
143 |
* 2020-04-08 - fix - schema error issue fixed.
|
144 |
* 2020-04-08 - remove - remove shortcode from schema content.
|
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.15
|
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.15=
|
143 |
+
* 2020-04-13 - fix - schema content convert quotes to characters,
|
144 |
+
* 2020-04-13 - fix - schema count issue fixed when hide set to true.
|
145 |
+
* 2020-04-13 - update - default tabs style update
|
146 |
+
|
147 |
+
|
148 |
+
|
149 |
+
|
150 |
= 2.2.14=
|
151 |
* 2020-04-08 - fix - schema error issue fixed.
|
152 |
* 2020-04-08 - remove - remove shortcode from schema content.
|
templates/accordion/accordion-hook.php
CHANGED
@@ -57,13 +57,13 @@ function accordions_main_style($atts){
|
|
57 |
$header = isset($accordions_options['header']) ? $accordions_options['header'] : array();
|
58 |
$header_style_class = isset($header['style_class']) ? $header['style_class'] : '';
|
59 |
|
60 |
-
$header_background_color =
|
61 |
-
$header_active_background_color =
|
62 |
-
$header_color =
|
63 |
-
$header_color_hover =
|
64 |
-
$header_font_size =
|
65 |
-
$header_padding =
|
66 |
-
$header_margin =
|
67 |
|
68 |
|
69 |
$body = isset($accordions_options['body']) ? $accordions_options['body'] : array();
|
@@ -428,18 +428,28 @@ function accordions_main_items($atts){
|
|
428 |
$i = 1;
|
429 |
foreach ($accordions_content as $index => $accordion){
|
430 |
$accordion_hide = isset($accordion['hide']) ? $accordion['hide'] : '';
|
431 |
-
if ($accordion_hide == 'true')
|
|
|
|
|
|
|
432 |
|
433 |
$accordion_header = isset($accordion['header']) ? wp_strip_all_tags(strip_shortcodes($accordion['header'])) : '';
|
|
|
|
|
434 |
$accordion_body = isset($accordion['body']) ? wp_strip_all_tags(strip_shortcodes($accordion['body'])) : '';
|
435 |
|
|
|
|
|
|
|
|
|
|
|
436 |
?>{
|
437 |
"@type": "Question",
|
438 |
-
"name": "<?php echo $accordion_header; ?>",
|
439 |
"acceptedAnswer":{
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
}<?php echo ($accordions_count > $i ) ? ',' :'';
|
444 |
|
445 |
$i++;
|
57 |
$header = isset($accordions_options['header']) ? $accordions_options['header'] : array();
|
58 |
$header_style_class = isset($header['style_class']) ? $header['style_class'] : '';
|
59 |
|
60 |
+
$header_background_color = !empty($header['background_color']) ? $header['background_color'] : '#1e73be';
|
61 |
+
$header_active_background_color = !empty($header['active_background_color']) ? $header['active_background_color'] : '#174e7f';
|
62 |
+
$header_color = !empty($header['color']) ? $header['color'] : '#ffffff';
|
63 |
+
$header_color_hover = !empty($header['color_hover']) ? $header['color_hover'] : '#ffffff';
|
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();
|
428 |
$i = 1;
|
429 |
foreach ($accordions_content as $index => $accordion){
|
430 |
$accordion_hide = isset($accordion['hide']) ? $accordion['hide'] : '';
|
431 |
+
if ($accordion_hide == 'true'){
|
432 |
+
$i++;
|
433 |
+
continue;
|
434 |
+
}
|
435 |
|
436 |
$accordion_header = isset($accordion['header']) ? wp_strip_all_tags(strip_shortcodes($accordion['header'])) : '';
|
437 |
+
$accordion_header = esc_attr($accordion_header);
|
438 |
+
|
439 |
$accordion_body = isset($accordion['body']) ? wp_strip_all_tags(strip_shortcodes($accordion['body'])) : '';
|
440 |
|
441 |
+
|
442 |
+
|
443 |
+
$accordion_body = esc_attr($accordion_body);
|
444 |
+
|
445 |
+
|
446 |
?>{
|
447 |
"@type": "Question",
|
448 |
+
"name": "<?php echo $i.' - '.$accordion_header; ?>",
|
449 |
"acceptedAnswer":{
|
450 |
+
"@type": "Answer",
|
451 |
+
"text": "<?php echo $accordion_body; ?>"
|
452 |
+
}
|
453 |
}<?php echo ($accordions_count > $i ) ? ',' :'';
|
454 |
|
455 |
$i++;
|
templates/tabs/tabs-hook.php
CHANGED
@@ -64,13 +64,13 @@ function accordions_tabs_main_style($atts){
|
|
64 |
$header = isset($accordions_options['header']) ? $accordions_options['header'] : array();
|
65 |
$header_style_class = isset($header['style_class']) ? $header['style_class'] : '';
|
66 |
|
67 |
-
$header_background_color =
|
68 |
-
$header_active_background_color =
|
69 |
-
$header_color =
|
70 |
-
$header_color_hover =
|
71 |
-
$header_font_size =
|
72 |
-
$header_padding =
|
73 |
-
$header_margin =
|
74 |
|
75 |
|
76 |
$body = isset($accordions_options['body']) ? $accordions_options['body'] : array();
|
64 |
$header = isset($accordions_options['header']) ? $accordions_options['header'] : array();
|
65 |
$header_style_class = isset($header['style_class']) ? $header['style_class'] : '';
|
66 |
|
67 |
+
$header_background_color = !empty($header['background_color']) ? $header['background_color'] : '#1e73be';
|
68 |
+
$header_active_background_color = !empty($header['active_background_color']) ? $header['active_background_color'] : '#174e7f';
|
69 |
+
$header_color = !empty($header['color']) ? $header['color'] : '#ffffff';
|
70 |
+
$header_color_hover = !empty($header['color_hover']) ? $header['color_hover'] : '#ffffff';
|
71 |
+
$header_font_size = !empty($header['font_size']) ? $header['font_size'] : '';
|
72 |
+
$header_padding = !empty($header['padding']) ? $header['padding'] : '8px 15px';
|
73 |
+
$header_margin = !empty($header['margin']) ? $header['margin'] : '0px';
|
74 |
|
75 |
|
76 |
$body = isset($accordions_options['body']) ? $accordions_options['body'] : array();
|