Version Description
- 22/06/2019 - add - Display 3rd party shortcode inside accordion content.
- 22/06/2019 - add - load option for fontawesome version library file.
- 22/06/2019 - add - Optimize css and js file loading.
Download this release
Release Info
Developer | pickplugins |
Plugin | Accordion |
Version | 2.1.14 |
Comparing to | |
See all releases |
Code changes from version 2.1.12 to 2.1.14
- accordions.php +19 -6
- assets/admin/js/scripts.js +2 -0
- includes/class-settings.php +17 -3
- includes/class-shortcodes.php +8 -58
- readme.txt +48 -17
- templates/accordion/accordion.php +12 -3
- templates/accordion/content.php +8 -1
- templates/accordion/custom-css.php +1 -1
- templates/tabs/tabs-content.php +1 -1
- templates/tabs/tabs-custom-css.php +58 -104
- templates/tabs/tabs-header.php +28 -13
- templates/tabs/tabs-lazy.php +10 -7
- templates/tabs/tabs-scripts.php +47 -70
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.1.
|
7 |
WC requires at least: 3.0.0
|
8 |
WC tested up to: 3.6
|
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.1.
|
27 |
|
28 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-settings-tabs.php');
|
29 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-accordions-support.php');
|
@@ -95,15 +95,20 @@ class Accordions{
|
|
95 |
//wp_localize_script( 'accordions_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
|
96 |
|
97 |
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
|
102 |
}
|
103 |
|
104 |
public function accordions_admin_scripts(){
|
105 |
|
106 |
-
|
107 |
global $post;
|
108 |
|
109 |
if( !empty($post)){
|
@@ -126,8 +131,11 @@ class Accordions{
|
|
126 |
'confirm_text' => __( 'Confirm', 'accordions' )
|
127 |
));
|
128 |
|
|
|
|
|
|
|
129 |
wp_enqueue_style('accordions_admin_style', plugins_url( 'assets/admin/css/style.css', __FILE__ ),'','20181018');
|
130 |
-
wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome.min.css', __FILE__ ),'','20181018');
|
131 |
|
132 |
wp_enqueue_script('codemirror', plugins_url( 'assets/admin/js/codemirror.js' , __FILE__ ) , array( 'jquery' ),'20181018');
|
133 |
wp_enqueue_style('codemirror', plugins_url( 'assets/admin/css/codemirror.css', __FILE__ ),'','20181018');
|
@@ -151,7 +159,12 @@ class Accordions{
|
|
151 |
}
|
152 |
|
153 |
|
|
|
|
|
|
|
154 |
|
|
|
|
|
155 |
|
156 |
|
157 |
|
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.1.14
|
7 |
WC requires at least: 3.0.0
|
8 |
WC tested up to: 3.6
|
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.1.14' );
|
27 |
|
28 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-settings-tabs.php');
|
29 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-accordions-support.php');
|
95 |
//wp_localize_script( 'accordions_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
|
96 |
|
97 |
|
98 |
+
wp_register_style('accordions-tabs', plugins_url( 'assets/global/css/themesTabs.style.css', __FILE__ ));
|
99 |
+
wp_register_style('fontawesome-5', accordions_plugin_url.'assets/global/css/fontawesome-5.min.css');
|
100 |
+
wp_register_style('fontawesome-4', accordions_plugin_url.'assets/global/css/fontawesome-4.min.css');
|
101 |
+
wp_register_style('jquery-ui', accordions_plugin_url.'assets/frontend/css/jquery-ui.css');
|
102 |
+
wp_register_style('accordions-themes', accordions_plugin_url.'assets/global/css/themes.style.css');
|
103 |
+
|
104 |
+
|
105 |
|
106 |
|
107 |
}
|
108 |
|
109 |
public function accordions_admin_scripts(){
|
110 |
|
111 |
+
$screen = get_current_screen();
|
112 |
global $post;
|
113 |
|
114 |
if( !empty($post)){
|
131 |
'confirm_text' => __( 'Confirm', 'accordions' )
|
132 |
));
|
133 |
|
134 |
+
wp_register_style('accordions-themes', accordions_plugin_url.'assets/global/css/themes.style.css');
|
135 |
+
wp_enqueue_style('accordions-themes');
|
136 |
+
|
137 |
wp_enqueue_style('accordions_admin_style', plugins_url( 'assets/admin/css/style.css', __FILE__ ),'','20181018');
|
138 |
+
wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome-5.min.css', __FILE__ ), '','20181018');
|
139 |
|
140 |
wp_enqueue_script('codemirror', plugins_url( 'assets/admin/js/codemirror.js' , __FILE__ ) , array( 'jquery' ),'20181018');
|
141 |
wp_enqueue_style('codemirror', plugins_url( 'assets/admin/css/codemirror.css', __FILE__ ),'','20181018');
|
159 |
}
|
160 |
|
161 |
|
162 |
+
if ( $screen->id == 'accordions_page_settings' ){
|
163 |
+
wp_enqueue_script('accordions_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ),'20181018');
|
164 |
+
wp_localize_script( 'accordions_admin_js', 'accordions_ajax', array( 'accordions_ajaxurl' => admin_url( 'admin-ajax.php')));
|
165 |
|
166 |
+
wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome.min.css', __FILE__ ),'','20181018');
|
167 |
+
}
|
168 |
|
169 |
|
170 |
|
assets/admin/js/scripts.js
CHANGED
@@ -9,6 +9,8 @@ jQuery(document).ready(function($)
|
|
9 |
|
10 |
|
11 |
if(json_file){
|
|
|
|
|
12 |
$.ajax(
|
13 |
{
|
14 |
type: 'POST',
|
9 |
|
10 |
|
11 |
if(json_file){
|
12 |
+
$(this).html('<i class="fa fa-spinner fa-spin"></i>');
|
13 |
+
|
14 |
$.ajax(
|
15 |
{
|
16 |
type: 'POST',
|
includes/class-settings.php
CHANGED
@@ -474,15 +474,29 @@ function wp_admin_settings_custom_field_accordion_import($option){
|
|
474 |
|
475 |
$export_import_options = array(
|
476 |
|
477 |
-
'page_nav' => __( '
|
478 |
'priority' => 15,
|
479 |
'page_settings' => array(
|
480 |
|
481 |
'section_templates' => array(
|
482 |
-
'title' => __('
|
483 |
-
'description' => __('
|
484 |
'options' => array(
|
485 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
array(
|
487 |
'id' => 'accordion_export',
|
488 |
'title' => __('Export','accordions'),
|
474 |
|
475 |
$export_import_options = array(
|
476 |
|
477 |
+
'page_nav' => __( 'Settings', 'accordions' ),
|
478 |
'priority' => 15,
|
479 |
'page_settings' => array(
|
480 |
|
481 |
'section_templates' => array(
|
482 |
+
'title' => __('Settings','accordions'),
|
483 |
+
'description' => __('Choose some settings for accordions','accordions'),
|
484 |
'options' => array(
|
485 |
|
486 |
+
array(
|
487 |
+
'id' => 'accordions_fontawesome_ver',
|
488 |
+
'title' => __('Font awesome version','accordions'),
|
489 |
+
'details' => __('Please choose which version font awesome you want to load. default is
|
490 |
+
version 5+','accordions'),
|
491 |
+
'type' => 'select',
|
492 |
+
'args' => array(
|
493 |
+
'version-5' => 'Verison 5+',
|
494 |
+
'version-4' => 'Version 4+',
|
495 |
+
'none' => 'None',
|
496 |
+
),
|
497 |
+
|
498 |
+
),
|
499 |
+
|
500 |
array(
|
501 |
'id' => 'accordion_export',
|
502 |
'title' => __('Export','accordions'),
|
includes/class-shortcodes.php
CHANGED
@@ -34,14 +34,12 @@ class class_accordions_shortcodes {
|
|
34 |
|
35 |
), $atts);
|
36 |
|
37 |
-
$html = '';
|
38 |
$post_id = $atts['id'];
|
39 |
|
40 |
$accordions_themes = get_post_meta( $post_id, 'accordions_themes', true );
|
41 |
|
42 |
ob_start();
|
43 |
include accordions_plugin_dir.'/templates/accordion/accordion.php';
|
44 |
-
echo $html;
|
45 |
return ob_get_clean();
|
46 |
//return $html;
|
47 |
|
@@ -51,71 +49,23 @@ class class_accordions_shortcodes {
|
|
51 |
public function accordions_tabs_display($atts, $content = null ) {
|
52 |
|
53 |
|
|
|
54 |
$atts = shortcode_atts(
|
55 |
array(
|
|
|
56 |
'id' => "",
|
57 |
|
58 |
), $atts);
|
59 |
|
60 |
-
|
61 |
-
$post_id = $atts['id'];
|
62 |
-
|
63 |
-
$accordions_tabs_themes = get_post_meta( $post_id, 'accordions_tabs_themes', true );
|
64 |
-
|
65 |
-
include accordions_plugin_dir.'/templates/tabs/variables.php';
|
66 |
-
include accordions_plugin_dir.'/templates/tabs/tabs-scripts.php';
|
67 |
-
include accordions_plugin_dir.'/templates/tabs/tabs-custom-css.php';
|
68 |
-
include accordions_plugin_dir.'/templates/tabs/tabs-lazy.php';
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
if(empty($accordions_tabs_themes)){
|
74 |
-
|
75 |
-
$accordions_tabs_themes = 'flat';
|
76 |
-
}
|
77 |
-
|
78 |
-
|
79 |
-
$html.= '<div id="accordions-tabs-'.$post_id.'" class="accordions-tabs-themes accordions-tabs '.$accordions_tabs_themes.' accordions-tabs-'.$post_id.'">';
|
80 |
-
$html.= '<ul>';
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
if(!empty($accordions_content_title))
|
85 |
-
foreach ($accordions_content_title as $index => $accordions_title){
|
86 |
-
|
87 |
-
if(empty($accordions_hide[$index])){
|
88 |
-
|
89 |
-
include accordions_plugin_dir.'/templates/tabs/tabs-header.php';
|
90 |
-
|
91 |
-
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
$html.= '</ul>';
|
96 |
-
|
97 |
-
|
98 |
-
if(!empty($accordions_content_title))
|
99 |
-
foreach ($accordions_content_title as $index => $accordions_title){
|
100 |
-
|
101 |
-
if(empty($accordions_hide[$index])){
|
102 |
-
$html.= '<div class="tabs-content" id="tabs-'.$index.'">';
|
103 |
-
|
104 |
-
include accordions_plugin_dir.'/templates/tabs/tabs-content.php';
|
105 |
-
$html.= '</div>';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
-
|
110 |
-
$html.= '</div>';
|
111 |
-
|
112 |
|
113 |
-
|
114 |
-
$html.= '<link rel="stylesheet" type="text/css" media="all" href="'.accordions_plugin_url.'assets/global/css/fontawesome.min.css?ver=20181018"/>';
|
115 |
|
116 |
-
|
|
|
|
|
117 |
|
118 |
-
|
119 |
|
120 |
|
121 |
}
|
34 |
|
35 |
), $atts);
|
36 |
|
|
|
37 |
$post_id = $atts['id'];
|
38 |
|
39 |
$accordions_themes = get_post_meta( $post_id, 'accordions_themes', true );
|
40 |
|
41 |
ob_start();
|
42 |
include accordions_plugin_dir.'/templates/accordion/accordion.php';
|
|
|
43 |
return ob_get_clean();
|
44 |
//return $html;
|
45 |
|
49 |
public function accordions_tabs_display($atts, $content = null ) {
|
50 |
|
51 |
|
52 |
+
|
53 |
$atts = shortcode_atts(
|
54 |
array(
|
55 |
+
|
56 |
'id' => "",
|
57 |
|
58 |
), $atts);
|
59 |
|
60 |
+
$post_id = $atts['id'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
+
$accordions_tabs_themes = get_post_meta( $post_id, 'accordions_tabs_themes', true );
|
|
|
63 |
|
64 |
+
ob_start();
|
65 |
+
include accordions_plugin_dir.'/templates/tabs/tabs.php';
|
66 |
+
return ob_get_clean();
|
67 |
|
68 |
+
}
|
69 |
|
70 |
|
71 |
}
|
readme.txt
CHANGED
@@ -1,18 +1,21 @@
|
|
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,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Create
|
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
|
|
|
|
16 |
|
17 |
|
18 |
### Accordions by http://pickplugins.com
|
@@ -23,19 +26,39 @@ Accordion content create wasn't easy before, you will really love how its works
|
|
23 |
* [Documentation »](https://www.pickplugins.com/documentation/accordions/?ref=wordpress.org)
|
24 |
|
25 |
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
36 |
-
* Container Text Align.
|
37 |
-
* Font Awesome Icons(Add your own icons).
|
38 |
-
* Tabs
|
39 |
|
40 |
<strong>Premium Features</strong><br />
|
41 |
|
@@ -56,7 +79,6 @@ Accordion content create wasn't easy before, you will really love how its works
|
|
56 |
* Content Custom Padding
|
57 |
* Custom Background color for Content.
|
58 |
* Lazy Load.
|
59 |
-
* Tabs Features.
|
60 |
* Vertical Tabs.
|
61 |
|
62 |
|
@@ -92,6 +114,15 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 2.1.12 =
|
96 |
* 29/05/2019 - fix - optimize script and css file load on admin.
|
97 |
|
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.2
|
7 |
+
Stable tag: 2.1.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Create accordion, faq, tabs, tab content via shortcode and display anywhere under post, page or widget and page
|
12 |
+
builder elements.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
Accordions is easy and powerful tool to create accordion, faq, tabs, tab content, frequently asked question, knowledge
|
17 |
+
base, question & answer section, WooCommerce FAQ tabs and many other way to use this plugin. supper easy to customize
|
18 |
+
looks and feel, changing color, font size of content, choosing accordion icons was never easy before.
|
19 |
|
20 |
|
21 |
### Accordions by http://pickplugins.com
|
26 |
* [Documentation »](https://www.pickplugins.com/documentation/accordions/?ref=wordpress.org)
|
27 |
|
28 |
|
29 |
+
###Plugin Features
|
30 |
+
|
31 |
+
**Unlimited accordion & tabs**
|
32 |
+
you can created unlimited accordion and tabs via this plugin, we never limit your count.
|
33 |
+
|
34 |
+
**Display via Shortcode**
|
35 |
+
Accordion and tabs can be display anywhere via shortcode under page, post content, sidebar via widgets and page builder
|
36 |
+
widgets and elements and gutenberg blocks as well. we provided and extra shortcode `[accordions_pplugins]` to avoid 3rd party conflict.
|
37 |
+
|
38 |
+
**Responsive Accordion and Tabs**
|
39 |
+
We used jQuery UI library to generate accordion and tabs, which is super responsive in any device.
|
40 |
+
|
41 |
+
**Changing icons**
|
42 |
+
You can use your own icons for accordion header icons, we used fontawesome as font icons, you can change default and
|
43 |
+
activate icon as well, changing default color, hover color, font size is also available.
|
44 |
+
|
45 |
+
**Header style**
|
46 |
+
You can style header as your own, there is planty of option available to style accordion header font size, default text
|
47 |
+
color, activate text color, hover text color, default background color, activate background color and changing header
|
48 |
+
padding and margins.
|
49 |
+
|
50 |
+
**Content Style**
|
51 |
+
You can style accordion content as you needs by changing accordion font size, font color, background color, padding and
|
52 |
+
margin
|
53 |
+
|
54 |
+
**Container Style**
|
55 |
+
You can change container background color, background image, text align and padding.
|
56 |
+
|
57 |
+
**Content Editing**
|
58 |
+
You can create accordion content with WP Editor, you can add text, image andother media like youtube video, self hosted
|
59 |
+
video and etc. Section can be drag & drop sorting. delete any section without
|
60 |
+
loading the page and can hide without deleting it on front-end.
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
<strong>Premium Features</strong><br />
|
64 |
|
79 |
* Content Custom Padding
|
80 |
* Custom Background color for Content.
|
81 |
* Lazy Load.
|
|
|
82 |
* Vertical Tabs.
|
83 |
|
84 |
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
= 2.1.14 =
|
118 |
+
* 22/06/2019 - add - Display 3rd party shortcode inside accordion content.
|
119 |
+
* 22/06/2019 - add - load option for fontawesome version library file.
|
120 |
+
* 22/06/2019 - add - Optimize css and js file loading.
|
121 |
+
|
122 |
+
|
123 |
+
= 2.1.13 =
|
124 |
+
* 31/05/2019 - fix - export/import js file missing issue fixed.
|
125 |
+
|
126 |
= 2.1.12 =
|
127 |
* 29/05/2019 - fix - optimize script and css file load on admin.
|
128 |
|
templates/accordion/accordion.php
CHANGED
@@ -6,6 +6,9 @@
|
|
6 |
*/
|
7 |
|
8 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
|
|
|
|
|
|
9 |
include accordions_plugin_dir.'/templates/accordion/variables.php';
|
10 |
include accordions_plugin_dir.'/templates/accordion/scripts.php';
|
11 |
include accordions_plugin_dir.'/templates/accordion/lazy.php';
|
@@ -46,9 +49,15 @@ foreach ($accordions_content_title as $index => $accordions_title){
|
|
46 |
|
47 |
include accordions_plugin_dir.'/templates/accordion/accordion-edit.php';
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
|
|
|
|
|
51 |
?>
|
52 |
-
<link rel="stylesheet" type="text/css" media="all" href="<?php echo accordions_plugin_url; ?>assets/frontend/css/jquery-ui.css?ver=20181018"/>
|
53 |
-
<link rel="stylesheet" type="text/css" media="all" href="<?php echo accordions_plugin_url; ?>assets/global/css/themes.style.css?ver=20181018"/>
|
54 |
-
<link rel="stylesheet" type="text/css" media="all" href="<?php echo accordions_plugin_url; ?>assets/global/css/fontawesome.min.css?ver=20181018"/>
|
6 |
*/
|
7 |
|
8 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
$accordions_fontawesome_ver = get_option('accordions_fontawesome_ver','version-5');
|
11 |
+
|
12 |
include accordions_plugin_dir.'/templates/accordion/variables.php';
|
13 |
include accordions_plugin_dir.'/templates/accordion/scripts.php';
|
14 |
include accordions_plugin_dir.'/templates/accordion/lazy.php';
|
49 |
|
50 |
include accordions_plugin_dir.'/templates/accordion/accordion-edit.php';
|
51 |
|
52 |
+
if($accordions_fontawesome_ver =='none'){
|
53 |
+
|
54 |
+
}elseif($accordions_fontawesome_ver =='version-4'){
|
55 |
+
wp_enqueue_style('fontawesome-4');
|
56 |
+
}else{
|
57 |
+
wp_enqueue_style('fontawesome-5');
|
58 |
+
}
|
59 |
|
60 |
|
61 |
+
wp_enqueue_style('jquery-ui');
|
62 |
+
wp_enqueue_style('accordions-themes');
|
63 |
?>
|
|
|
|
|
|
templates/accordion/content.php
CHANGED
@@ -9,7 +9,14 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
9 |
|
10 |
|
11 |
$accordions_content = $accordions_content_body[$index];
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
$accordions_content = apply_filters( 'accordions_filter_content', $accordions_content );
|
14 |
|
15 |
if(empty($accordions_content)){
|
9 |
|
10 |
|
11 |
$accordions_content = $accordions_content_body[$index];
|
12 |
+
|
13 |
+
if(has_shortcode($accordions_content, 'accordions')){
|
14 |
+
//var_dump('True');
|
15 |
+
|
16 |
+
$accordions_content = str_replace('[accordions','**<a target="_blank" href="https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=wordpress.org"> <strong>Please buy pro to create nested accordion</strong></a>**', $accordions_content);
|
17 |
+
}
|
18 |
+
|
19 |
+
$accordions_content = wpautop(do_shortcode($accordions_content));
|
20 |
$accordions_content = apply_filters( 'accordions_filter_content', $accordions_content );
|
21 |
|
22 |
if(empty($accordions_content)){
|
templates/accordion/custom-css.php
CHANGED
@@ -48,7 +48,7 @@ if($accordions_lazy_load=='yes'){
|
|
48 |
padding: <?php echo $accordions_container_padding; ?>;
|
49 |
}
|
50 |
#accordions-<?php echo $post_id; ?> .accordions-head{
|
51 |
-
background:rgba(<?php echo accordions_paratheme_hex2rgb($accordions_default_bg_color);
|
52 |
margin:<?php echo $accordions_items_title_margin; ?>;
|
53 |
padding:<?php echo $accordions_items_title_padding; ?>;
|
54 |
}
|
48 |
padding: <?php echo $accordions_container_padding; ?>;
|
49 |
}
|
50 |
#accordions-<?php echo $post_id; ?> .accordions-head{
|
51 |
+
background:rgba(<?php echo accordions_paratheme_hex2rgb($accordions_default_bg_color); ?>) none repeat scroll 0 0;
|
52 |
margin:<?php echo $accordions_items_title_margin; ?>;
|
53 |
padding:<?php echo $accordions_items_title_padding; ?>;
|
54 |
}
|
templates/tabs/tabs-content.php
CHANGED
@@ -13,6 +13,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
13 |
$accordions_tabs_content = ' ';
|
14 |
}
|
15 |
|
16 |
-
|
17 |
|
18 |
|
13 |
$accordions_tabs_content = ' ';
|
14 |
}
|
15 |
|
16 |
+
echo wpautop($accordions_tabs_content);
|
17 |
|
18 |
|
templates/tabs/tabs-custom-css.php
CHANGED
@@ -1,112 +1,66 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* @Author pickplugins
|
5 |
-
* Copyright: 2015 pickplugins
|
6 |
-
*/
|
7 |
-
|
8 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
-
|
10 |
-
|
11 |
-
$html .= "<style type='text/css'>";
|
12 |
-
|
13 |
-
if($accordions_lazy_load=='yes'){
|
14 |
-
|
15 |
-
$html .= '
|
16 |
-
//#accordions-tabs-'.$post_id.'{display: none;}';
|
17 |
-
|
18 |
-
}
|
19 |
-
|
20 |
-
$html .= '
|
21 |
-
#accordions-tabs-'.$post_id.'{
|
22 |
-
text-align: '.$accordions_container_text_align.';}';
|
23 |
-
|
24 |
-
|
25 |
-
$html .= '
|
26 |
-
#accordions-tabs-'.$post_id.'{
|
27 |
-
background:'.$accordions_container_bg_color.' url('.$accordions_bg_img.') repeat scroll 0 0;
|
28 |
-
padding: '.$accordions_container_padding.';
|
29 |
-
}';
|
30 |
-
|
31 |
-
$html .= '
|
32 |
-
#accordions-tabs-'.$post_id.' .accordions-tab-head{
|
33 |
-
background:rgba('.accordions_paratheme_hex2rgb($accordions_default_bg_color).','.$accordions_header_bg_opacity.') none repeat scroll 0 0;
|
34 |
-
color:'.$accordions_items_title_color.';
|
35 |
-
font-size:'.$accordions_items_title_font_size.';
|
36 |
-
|
37 |
-
margin:'.$accordions_items_title_margin.';
|
38 |
-
padding:'.$accordions_items_title_padding.';
|
39 |
-
}
|
40 |
-
|
41 |
-
#accordions-tabs-'.$post_id.' .accordions-head-title{
|
42 |
-
|
43 |
-
}
|
44 |
-
|
45 |
-
|
46 |
-
#accordions-tabs-'.$post_id.' .ui-tabs-active a{
|
47 |
-
background: '.$accordions_active_bg_color.';
|
48 |
-
|
49 |
-
}';
|
50 |
|
51 |
|
52 |
-
|
53 |
-
#accordions-tabs-'.$post_id.' .tabs-content{
|
54 |
-
background:rgba('.accordions_paratheme_hex2rgb($accordions_items_content_bg_color).','.$accordions_items_content_bg_opacity.') none repeat scroll 0 0;
|
55 |
-
|
56 |
-
color:'.$accordions_items_content_color.';
|
57 |
-
font-size:'.$accordions_items_content_font_size.';
|
58 |
-
margin:'.$accordions_items_content_margin.';
|
59 |
-
padding:'.$accordions_items_content_padding.';
|
60 |
-
}
|
61 |
-
';
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
-
$html .= '</style>';
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
if(!empty($accordions_custom_css)){
|
78 |
-
$html .= '<style type="text/css">'.$accordions_custom_css.'</style>';
|
79 |
-
}
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
if($accordions_tabs_vertical=='yes'){
|
85 |
-
$html .= '<style type="text/css">
|
86 |
-
|
87 |
-
.ui-tabs-vertical { width: 55em; }
|
88 |
-
.ui-tabs-vertical .ui-tabs-nav { float: left; width: 200px;overflow: hidden; }
|
89 |
-
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; }
|
90 |
-
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: left; width: 40em;}
|
91 |
-
|
92 |
-
</style>';
|
93 |
-
}
|
94 |
-
|
95 |
-
|
96 |
-
if($accordions_tabs_icon_toggle=='yes'){
|
97 |
-
$html .= '<style type="text/css">
|
98 |
-
|
99 |
-
.accordions-tabs .ui-tabs-active .accordions-tab-plus {
|
100 |
-
display: none;
|
101 |
-
}
|
102 |
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
|
5 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
<style type='text/css'>
|
8 |
+
#accordions-tabs-<?php echo $post_id; ?>{
|
9 |
+
text-align: <?php echo $accordions_container_text_align; ?>;
|
10 |
+
}
|
11 |
+
#accordions-tabs-<?php echo $post_id; ?>{
|
12 |
+
background:<?php echo $accordions_container_bg_color; ?> url(<?php echo $accordions_bg_img; ?>) repeat
|
13 |
+
scroll 0 0;
|
14 |
+
padding: <?php echo $accordions_container_padding; ?>;
|
15 |
+
}
|
16 |
+
#accordions-tabs-<?php echo $post_id; ?> .accordions-tab-head{
|
17 |
+
background:rgba(<?php echo accordions_paratheme_hex2rgb($accordions_default_bg_color); ?>) none repeat
|
18 |
+
scroll 0 0;
|
19 |
+
color:<?php echo $accordions_items_title_color; ?>;
|
20 |
+
font-size:<?php echo $accordions_items_title_font_size; ?>;
|
21 |
+
margin:<?php echo $accordions_items_title_margin; ?>;
|
22 |
+
padding:<?php echo $accordions_items_title_padding; ?>;
|
23 |
+
}
|
24 |
+
#accordions-tabs-<?php echo $post_id; ?> .accordions-head-title{
|
25 |
+
}
|
26 |
+
#accordions-tabs-<?php echo $post_id; ?> .ui-tabs-active a{
|
27 |
+
background: <?php echo $accordions_active_bg_color; ?>;
|
28 |
|
29 |
+
}
|
30 |
+
#accordions-tabs-<?php echo $post_id; ?> .tabs-content{
|
31 |
+
background:rgba(<?php echo accordions_paratheme_hex2rgb($accordions_items_content_bg_color); ?>,<?php echo $accordions_items_content_bg_opacity; ?>) none repeat scroll 0 0;
|
32 |
+
color:<?php echo $accordions_items_content_color; ?>;
|
33 |
+
font-size:<?php echo $accordions_items_content_font_size; ?>;
|
34 |
+
margin:<?php echo $accordions_items_content_margin; ?>;
|
35 |
+
padding:<?php echo $accordions_items_content_padding; ?>;
|
36 |
+
}
|
37 |
+
#accordions-tabs-<?php echo $post_id; ?> .accordions-tab-icons{
|
38 |
+
color:<?php echo $accordions_icons_color; ?>;
|
39 |
+
font-size:<?php echo $accordions_icons_font_size; ?>;
|
40 |
+
}
|
41 |
+
<?php
|
42 |
+
if(!empty($accordions_custom_css)){
|
43 |
+
echo $accordions_custom_css;
|
44 |
+
}
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
if($accordions_tabs_icon_toggle=='yes'){
|
48 |
+
?>
|
49 |
+
.accordions-tabs .ui-tabs-active .accordions-tab-plus {
|
50 |
+
display: none;
|
51 |
+
}
|
52 |
+
.accordions-tabs .ui-tabs-active .accordions-tab-minus {
|
53 |
+
display: inline;
|
54 |
+
}
|
55 |
+
<?php
|
56 |
+
}
|
57 |
+
if($accordions_tabs_vertical=='yes'){
|
58 |
+
?>
|
59 |
+
.ui-tabs-vertical { width: 55em; }
|
60 |
+
.ui-tabs-vertical .ui-tabs-nav { float: left; width: 200px;overflow: hidden; }
|
61 |
+
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; }
|
62 |
+
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: left; width: 40em;}
|
63 |
+
<?php
|
64 |
+
}
|
65 |
+
?>
|
66 |
+
</style>
|
templates/tabs/tabs-header.php
CHANGED
@@ -42,25 +42,40 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
42 |
}
|
43 |
|
44 |
|
|
|
|
|
|
|
45 |
|
46 |
-
$html.= '<li class="tabs-nav" ><a style="'.$header_style.'" class="accordions-tab-head" href="#tabs-'.$index.'">';
|
47 |
-
|
48 |
if($accordions_icons_position=='left'){
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
52 |
|
53 |
}
|
54 |
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
58 |
if($accordions_icons_position=='right'){
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
62 |
|
63 |
}
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
66 |
|
42 |
}
|
43 |
|
44 |
|
45 |
+
?>
|
46 |
+
<li class="tabs-nav" ><a style="<?php echo $header_style; ?>" class="accordions-tab-head" href="#tabs-<?php echo $index; ?>">
|
47 |
+
<?php
|
48 |
|
|
|
|
|
49 |
if($accordions_icons_position=='left'){
|
50 |
+
|
51 |
+
?>
|
52 |
+
<i class="accordions-tab-icons left accordions-tab-plus fa <?php echo $accordions_icons_plus_section; ?>"></i>
|
53 |
+
<i class="accordions-tab-icons left accordions-tab-minus fa fa-arrow-down <?php echo $accordions_icons_minus_section; ?>"></i>
|
54 |
+
<?php
|
55 |
+
|
56 |
+
|
57 |
|
58 |
}
|
59 |
|
60 |
+
|
61 |
+
?>
|
62 |
+
|
63 |
+
<span class="accordions-tabs-head-title"><?php echo $accordions_tabs_title; ?></span>
|
64 |
+
<?php
|
65 |
+
|
66 |
if($accordions_icons_position=='right'){
|
67 |
+
|
68 |
+
?>
|
69 |
+
<i class="accordions-tab-icons right accordions-tab-plus fa <?php echo $accordions_icons_plus_section; ?>"></i>
|
70 |
+
<i class="accordions-tab-icons right accordions-tab-minus fa <?php echo $accordions_icons_minus_section; ?>"></i>
|
71 |
+
<?php
|
72 |
+
|
73 |
+
|
74 |
|
75 |
}
|
76 |
+
|
77 |
+
?>
|
78 |
+
</a></li>
|
79 |
+
<?php
|
80 |
+
|
81 |
|
templates/tabs/tabs-lazy.php
CHANGED
@@ -9,13 +9,16 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
9 |
|
10 |
if($accordions_lazy_load=='yes' && !empty($accordions_lazy_load_src)){
|
11 |
|
12 |
-
|
13 |
-
<
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
$html .= "<script>jQuery( window ).load(function() {
|
17 |
-
jQuery('#accordions-tabs-lazy-".$post_id."').fadeOut();
|
18 |
-
jQuery('#accordions-tabs-".$post_id."').fadeIn();
|
19 |
-
});</script>";
|
20 |
|
21 |
}
|
9 |
|
10 |
if($accordions_lazy_load=='yes' && !empty($accordions_lazy_load_src)){
|
11 |
|
12 |
+
?>
|
13 |
+
<p id="accordions-tabs-lazy-<?php echo $post_id; ?>" class="accordions-tabs-lazy">
|
14 |
+
<img src="<?php echo $accordions_lazy_load_src; ?>"/>
|
15 |
+
</p>
|
16 |
+
<script>jQuery( window ).load(function() {
|
17 |
+
jQuery('#accordions-tabs-lazy-<?php echo $post_id; ?>').fadeOut();
|
18 |
+
jQuery('#accordions-tabs-<?php echo $post_id; ?>').fadeIn();
|
19 |
+
});</script>
|
20 |
+
<?php
|
21 |
+
|
22 |
|
|
|
|
|
|
|
|
|
23 |
|
24 |
}
|
templates/tabs/tabs-scripts.php
CHANGED
@@ -6,73 +6,50 @@
|
|
6 |
*/
|
7 |
|
8 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
$html.= ' })
|
57 |
-
|
58 |
-
</script>';
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
6 |
*/
|
7 |
|
8 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
9 |
+
|
10 |
+
|
11 |
+
$accordions_active_accordion = isset($_GET['id']) ? (int)sanitize_text_field($_GET['id']) : 0;
|
12 |
+
|
13 |
+
|
14 |
+
?>
|
15 |
+
<script>
|
16 |
+
jQuery(document).ready(function($)
|
17 |
+
{
|
18 |
+
|
19 |
+
<?php
|
20 |
+
|
21 |
+
if($accordions_tabs_vertical=='yes'){
|
22 |
+
|
23 |
+
?>
|
24 |
+
$(function() {
|
25 |
+
$( "#accordions-tabs-<?php echo $post_id; ?>" ).tabs().addClass( "ui-tabs-vertical " +
|
26 |
+
"ui-helper-clearfix" );
|
27 |
+
$( "#accordions-tabs-<?php echo $post_id; ?> li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
|
28 |
+
});
|
29 |
+
|
30 |
+
$("#accordions-tabs-<?php echo $post_id; ?>" ).tabs({
|
31 |
+
collapsible: <?php echo $accordions_tabs_collapsible; ?>,
|
32 |
+
event: "<?php echo $accordions_tabs_active_event; ?>",
|
33 |
+
active: "<?php echo $accordions_active_accordion; ?>",
|
34 |
+
|
35 |
+
});
|
36 |
+
<?php
|
37 |
+
|
38 |
+
}
|
39 |
+
else{
|
40 |
+
|
41 |
+
?>
|
42 |
+
$( "#accordions-tabs-<?php echo $post_id; ?>" ).tabs({
|
43 |
+
collapsible: <?php echo $accordions_tabs_collapsible; ?>,
|
44 |
+
event: "<?php echo $accordions_tabs_active_event; ?>",
|
45 |
+
active: "<?php echo $accordions_active_accordion; ?>",
|
46 |
+
});
|
47 |
+
<?php
|
48 |
+
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
?>
|
53 |
+
})
|
54 |
+
|
55 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|