Version Description
- 29/10/2018 - fix - Icons issue fixed.
Download this release
Release Info
Developer | pickplugins |
Plugin | Accordion |
Version | 2.1.5 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.5
- accordions.php +35 -20
- assets/admin/css/settings-tabs.css +13 -0
- readme.txt +8 -1
- templates/accordion/header.php +4 -45
accordions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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 |
WC requires at least: 3.0.0
|
8 |
WC tested up to: 3.4
|
9 |
Author: PickPlugins
|
@@ -104,33 +104,48 @@ class Accordions{
|
|
104 |
|
105 |
global $post;
|
106 |
|
107 |
-
if( !empty($post)
|
108 |
|
109 |
-
|
110 |
|
111 |
-
|
112 |
-
wp_enqueue_script('jquery-ui-sortable');
|
113 |
-
wp_enqueue_script( 'jquery-ui-core' );
|
114 |
-
wp_enqueue_script('jquery-ui-accordion');
|
115 |
|
116 |
-
|
117 |
-
|
|
|
|
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
'confirm_text' => __( 'Confirm', 'accordions' )
|
122 |
-
));
|
123 |
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
-
wp_enqueue_style('accordions_admin_style', plugins_url( 'assets/admin/css/style.css', __FILE__ ),'','20181018');
|
127 |
-
wp_enqueue_style('fontawesome', plugins_url( 'assets/global/css/fontawesome.min.css', __FILE__ ),'','20181018');
|
128 |
|
129 |
-
wp_enqueue_script('codemirror', plugins_url( 'assets/admin/js/codemirror.js' , __FILE__ ) , array( 'jquery' ),'20181018');
|
130 |
-
wp_enqueue_style('codemirror', plugins_url( 'assets/admin/css/codemirror.css', __FILE__ ),'','20181018');
|
131 |
|
132 |
-
wp_enqueue_script('settings-tabs', plugins_url( 'assets/admin/js/settings-tabs.js' , __FILE__ ) , array( 'jquery' ),'20181018');
|
133 |
-
wp_enqueue_style('settings-tabs', plugins_url( 'assets/admin/css/settings-tabs.css', __FILE__ ),'','20181018');
|
134 |
|
135 |
// wp_enqueue_script( 'color-picker', plugins_url('/assets/admin/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), true, true );
|
136 |
|
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.5
|
7 |
WC requires at least: 3.0.0
|
8 |
WC tested up to: 3.4
|
9 |
Author: PickPlugins
|
104 |
|
105 |
global $post;
|
106 |
|
107 |
+
if( !empty($post)){
|
108 |
|
109 |
+
if($post->post_type=='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 |
|
assets/admin/css/settings-tabs.css
CHANGED
@@ -104,6 +104,19 @@
|
|
104 |
}
|
105 |
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
|
109 |
|
104 |
}
|
105 |
|
106 |
|
107 |
+
@media (max-width: 1440px){
|
108 |
+
|
109 |
+
.settings-tabs .setting-field .field-lable{
|
110 |
+
width: auto;
|
111 |
+
float: none;
|
112 |
+
font-size: 14px;
|
113 |
+
}
|
114 |
+
.settings-tabs .setting-field .field-input{
|
115 |
+
margin-left: 0px;
|
116 |
+
}
|
117 |
+
.settings-tabs .setting-field .description{}
|
118 |
+
|
119 |
+
}
|
120 |
|
121 |
|
122 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@
|
|
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: 4.9
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -92,6 +92,13 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
= 2.1.3 =
|
96 |
* 18/10/2018 - fix - minor php error fixed.
|
97 |
|
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: 4.9
|
7 |
+
Stable tag: 2.1.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 2.1.5 =
|
96 |
+
* 29/10/2018 - fix - Icons issue fixed.
|
97 |
+
|
98 |
+
= 2.1.4 =
|
99 |
+
* 28/10/2018 - fix - fixed js error on WooCommerce product page.
|
100 |
+
* 28/10/2018 - fix - responsive issue on accordion edit page.
|
101 |
+
|
102 |
= 2.1.3 =
|
103 |
* 18/10/2018 - fix - minor php error fixed.
|
104 |
|
templates/accordion/header.php
CHANGED
@@ -19,50 +19,9 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
19 |
|
20 |
|
21 |
|
22 |
-
|
23 |
-
if(!empty($accordions_section_icon_plus[$index])){
|
24 |
-
|
25 |
-
$accordions_icons_plus_section = $accordions_section_icon_plus[$index];
|
26 |
-
}
|
27 |
-
else{
|
28 |
-
|
29 |
-
$accordions_icons_plus_section = $accordions_icons_plus;
|
30 |
-
}
|
31 |
-
|
32 |
-
if(!empty($accordions_section_icon_minus[$index])){
|
33 |
-
|
34 |
-
$accordions_icons_minus_section = $accordions_section_icon_minus[$index];
|
35 |
-
}
|
36 |
-
else{
|
37 |
-
$accordions_icons_minus_section = $accordions_icons_minus;
|
38 |
-
}
|
39 |
-
|
40 |
-
if(!empty($accordions_content_title_toogled[$index])){
|
41 |
-
|
42 |
-
$title_toogled = $accordions_content_title_toogled[$index];
|
43 |
-
}
|
44 |
-
else{
|
45 |
-
$title_toogled = '';
|
46 |
-
}
|
47 |
-
|
48 |
-
|
49 |
-
?>
|
50 |
-
<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="<?php echo $title_toogled; ?>" main-text="<?php echo $accordions_title; ?>" >
|
51 |
-
<?php
|
52 |
-
if($accordions_icons_position=='left'){
|
53 |
-
?>
|
54 |
-
<div class="accordion-icons left accordion-plus fa <?php echo $accordions_icons_plus_section; ?>"></div>
|
55 |
-
<div class="accordion-icons left accordion-minus fa <?php echo $accordions_icons_minus_section; ?>"></div>
|
56 |
-
<?php
|
57 |
-
}
|
58 |
-
?>
|
59 |
-
<div id="header-text-<?php echo $index; ?>" class="accordions-head-title"><?php echo do_shortcode($accordions_title); ?></div>
|
60 |
-
<?php
|
61 |
-
if($accordions_icons_position=='right'){
|
62 |
-
?>
|
63 |
-
<div class="accordion-icons right accordion-plus fa <?php echo $accordions_icons_plus_section; ?>"></div>
|
64 |
-
<div class="accordion-icons right accordion-minus fa <?php echo $accordions_icons_minus_section; ?>"></div>
|
65 |
-
<?php
|
66 |
-
}
|
67 |
?>
|
|
|
|
|
|
|
|
|
68 |
</div>
|
19 |
|
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>
|
27 |
</div>
|