Version Description
- 2020-04-25 - add - hide for schema by section.
Download this release
Release Info
Developer | pickplugins |
Plugin | Accordion |
Version | 2.2.20 |
Comparing to | |
See all releases |
Code changes from version 2.2.19 to 2.2.20
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 |
|
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.20
|
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.20' );
|
27 |
define('accordions_plugin_name', 'Accordions' );
|
28 |
define('accordions_plugin_basename', plugin_basename( __FILE__ ) );
|
29 |
|
assets/settings-tabs/settings-tabs.css
CHANGED
@@ -89,7 +89,14 @@
|
|
89 |
float: right;
|
90 |
}
|
91 |
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
.settings-tabs .tab-content{
|
94 |
margin-left: 220px;
|
95 |
padding: 0px 0;
|
@@ -259,7 +266,13 @@
|
|
259 |
|
260 |
/*field-repeatable-wrapper*/
|
261 |
|
262 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
.ppof-settings .repeatable .item-wrap{
|
264 |
margin-bottom: 5px;
|
265 |
padding-bottom: 0px;
|
@@ -446,12 +459,19 @@
|
|
446 |
}
|
447 |
|
448 |
|
449 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
|
451 |
display: block;
|
452 |
|
453 |
}
|
454 |
|
|
|
455 |
.settings-tabs .item .expand .fa-expand {
|
456 |
display: inline-block;
|
457 |
}
|
89 |
float: right;
|
90 |
}
|
91 |
|
92 |
+
.tab-nav i {
|
93 |
+
font-size: 16px;
|
94 |
+
width: 25px;
|
95 |
+
color: #b7b7b7;
|
96 |
+
}
|
97 |
+
.tab-nav.active i {
|
98 |
+
color: #333;
|
99 |
+
}
|
100 |
.settings-tabs .tab-content{
|
101 |
margin-left: 220px;
|
102 |
padding: 0px 0;
|
266 |
|
267 |
/*field-repeatable-wrapper*/
|
268 |
|
269 |
+
.settings-tabs .field-media-wrapper .media-upload, .field-media-wrapper .clear {
|
270 |
+
display: inline-block;
|
271 |
+
background: #ddd;
|
272 |
+
padding: 2px 10px;
|
273 |
+
border-radius: 3px;
|
274 |
+
border: 1px solid #999;
|
275 |
+
}
|
276 |
.ppof-settings .repeatable .item-wrap{
|
277 |
margin-bottom: 5px;
|
278 |
padding-bottom: 0px;
|
459 |
}
|
460 |
|
461 |
|
462 |
+
/*.settings-tabs .expandable .active .options {*/
|
463 |
+
|
464 |
+
/* display: block;*/
|
465 |
+
|
466 |
+
/*}*/
|
467 |
+
|
468 |
+
.settings-tabs .expandable .options.active {
|
469 |
|
470 |
display: block;
|
471 |
|
472 |
}
|
473 |
|
474 |
+
|
475 |
.settings-tabs .item .expand .fa-expand {
|
476 |
display: inline-block;
|
477 |
}
|
assets/settings-tabs/settings-tabs.js
CHANGED
@@ -56,28 +56,6 @@ jQuery(document).ready(function($){
|
|
56 |
|
57 |
|
58 |
|
59 |
-
// $(document).on('click','.settings-tabs .media-upload',function(){
|
60 |
-
//
|
61 |
-
// dataId = $(this).attr('data-id');
|
62 |
-
//
|
63 |
-
//
|
64 |
-
//
|
65 |
-
// var send_attachment_bkp = wp.media.editor.send.attachment;
|
66 |
-
//
|
67 |
-
// wp.media.editor.send.attachment = function(props, attachment) {
|
68 |
-
// $("#media_preview_"+dataId).attr("src", attachment.url);
|
69 |
-
// $("#media_input_"+dataId).val(attachment.id);
|
70 |
-
// wp.media.editor.send.attachment = send_attachment_bkp;
|
71 |
-
// }
|
72 |
-
// wp.media.editor.open($(this));
|
73 |
-
// return false;
|
74 |
-
// });
|
75 |
-
//
|
76 |
-
// $("#media_clear_<?php echo $id; ?>").click(function() {
|
77 |
-
// $("#media_input_<?php echo $id; ?>").val("");
|
78 |
-
// $("#media_preview_<?php echo $id; ?>").attr("src","");
|
79 |
-
// })
|
80 |
-
|
81 |
$(document).on('click','.settings-tabs .field-media-wrapper .clear ',function(e){
|
82 |
|
83 |
$(this).parent().children().children('.media-preview').attr('src', '');
|
@@ -198,8 +176,6 @@ jQuery(document).ready(function($){
|
|
198 |
jQuery(this).parent().children('.field-list').append(html);
|
199 |
|
200 |
|
201 |
-
// $(".sortable" ).sortable({ handle: ".sort" });
|
202 |
-
|
203 |
|
204 |
})
|
205 |
|
@@ -247,8 +223,11 @@ jQuery(document).ready(function($){
|
|
247 |
if(el_attr == 'no' && typeof wp.editor != 'undefined'){
|
248 |
wp.editor.initialize( el_id, {
|
249 |
mediaButtons: true,
|
250 |
-
tinymce:
|
251 |
-
|
|
|
|
|
|
|
252 |
},
|
253 |
quicktags: true,
|
254 |
} );
|
@@ -274,8 +253,10 @@ jQuery(document).ready(function($){
|
|
274 |
if(editor_enabled == 'no' && typeof wp.editor != 'undefined'){
|
275 |
wp.editor.initialize( id, {
|
276 |
mediaButtons: true,
|
277 |
-
tinymce:
|
278 |
-
|
|
|
|
|
279 |
},
|
280 |
quicktags: true,
|
281 |
} );
|
@@ -288,16 +269,6 @@ jQuery(document).ready(function($){
|
|
288 |
|
289 |
|
290 |
|
291 |
-
|
292 |
-
|
293 |
-
jQuery(document).on("click", ".settings-tabs .field-repeatable-wrapper .clone", function() {
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
})
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
jQuery(document).on("click", ".settings-tabs .select-reset", function() {
|
302 |
|
303 |
$(this).prev('select').val('');
|
56 |
|
57 |
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
$(document).on('click','.settings-tabs .field-media-wrapper .clear ',function(e){
|
60 |
|
61 |
$(this).parent().children().children('.media-preview').attr('src', '');
|
176 |
jQuery(this).parent().children('.field-list').append(html);
|
177 |
|
178 |
|
|
|
|
|
179 |
|
180 |
})
|
181 |
|
223 |
if(el_attr == 'no' && typeof wp.editor != 'undefined'){
|
224 |
wp.editor.initialize( el_id, {
|
225 |
mediaButtons: true,
|
226 |
+
tinymce: {
|
227 |
+
wpautop: true,
|
228 |
+
toolbar1: 'bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv',
|
229 |
+
toolbar2: 'formatselect alignjustify forecolor | pastetext removeformat charmap table | outdent indent | undo redo | wp_help',
|
230 |
+
|
231 |
},
|
232 |
quicktags: true,
|
233 |
} );
|
253 |
if(editor_enabled == 'no' && typeof wp.editor != 'undefined'){
|
254 |
wp.editor.initialize( id, {
|
255 |
mediaButtons: true,
|
256 |
+
tinymce: {
|
257 |
+
wpautop: true,
|
258 |
+
toolbar1: 'bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv',
|
259 |
+
toolbar2: 'formatselect alignjustify forecolor | pastetext removeformat charmap table | outdent indent | undo redo | wp_help'
|
260 |
},
|
261 |
quicktags: true,
|
262 |
} );
|
269 |
|
270 |
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
jQuery(document).on("click", ".settings-tabs .select-reset", function() {
|
273 |
|
274 |
$(this).prev('select').val('');
|
includes/class-post-meta-accordions-hook.php
CHANGED
@@ -1109,6 +1109,20 @@ function accordions_metabox_content_content($post_id){
|
|
1109 |
),
|
1110 |
),
|
1111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1112 |
);
|
1113 |
|
1114 |
$meta_fields = apply_filters('accordions_content_fields', $meta_fields);
|
1109 |
),
|
1110 |
),
|
1111 |
|
1112 |
+
array(
|
1113 |
+
'id' => 'hide_schema',
|
1114 |
+
'css_id' => 'hide_TIMEINDEX',
|
1115 |
+
'title' => __('Hide schema','accordions'),
|
1116 |
+
'details' => __('Hide schema for this.','accordions'),
|
1117 |
+
'type' => 'select',
|
1118 |
+
'value' => '',
|
1119 |
+
'default' => 'false',
|
1120 |
+
'args' => array(
|
1121 |
+
'true' => __('True','accordions'),
|
1122 |
+
'false' => __('False','accordions'),
|
1123 |
+
),
|
1124 |
+
),
|
1125 |
+
|
1126 |
);
|
1127 |
|
1128 |
$meta_fields = apply_filters('accordions_content_fields', $meta_fields);
|
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,9 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
142 |
|
143 |
= 2.2.19 =
|
144 |
* 2020-04-25 - fix - accordion shortcode "accordions_pplugins" back
|
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.20
|
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.20 =
|
143 |
+
* 2020-04-25 - add - hide for schema by section.
|
144 |
+
|
145 |
|
146 |
= 2.2.19 =
|
147 |
* 2020-04-25 - fix - accordion shortcode "accordions_pplugins" back
|
templates/accordion/accordion-hook.php
CHANGED
@@ -435,7 +435,9 @@ function accordions_main_items($atts){
|
|
435 |
$i = 1;
|
436 |
foreach ($accordions_content as $index => $accordion){
|
437 |
$accordion_hide = isset($accordion['hide']) ? $accordion['hide'] : '';
|
438 |
-
|
|
|
|
|
439 |
$i++;
|
440 |
continue;
|
441 |
}
|
435 |
$i = 1;
|
436 |
foreach ($accordions_content as $index => $accordion){
|
437 |
$accordion_hide = isset($accordion['hide']) ? $accordion['hide'] : '';
|
438 |
+
$accordion_hide_schema = isset($accordion['hide_schema']) ? $accordion['hide_schema'] : '';
|
439 |
+
|
440 |
+
if ($accordion_hide_schema == 'true'){
|
441 |
$i++;
|
442 |
continue;
|
443 |
}
|
templates/tabs/tabs-hook.php
CHANGED
@@ -546,7 +546,7 @@ function accordions_tabs_main_scripts($atts){
|
|
546 |
$("#accordions-tabs-<?php echo $post_id; ?>" ).tabs({
|
547 |
collapsible: <?php echo $collapsible; ?>,
|
548 |
event: "<?php echo $active_event; ?>",
|
549 |
-
active:
|
550 |
});
|
551 |
if(typeof accordions_tabs_active_index_<?php echo $post_id; ?> != 'undefined'){
|
552 |
$("#accordions-tabs-<?php echo $post_id; ?>").tabs("option", "active", accordions_tabs_active_index_<?php echo $post_id; ?>);
|
546 |
$("#accordions-tabs-<?php echo $post_id; ?>" ).tabs({
|
547 |
collapsible: <?php echo $collapsible; ?>,
|
548 |
event: "<?php echo $active_event; ?>",
|
549 |
+
active: <?php echo $active_tab; ?>,
|
550 |
});
|
551 |
if(typeof accordions_tabs_active_index_<?php echo $post_id; ?> != 'undefined'){
|
552 |
$("#accordions-tabs-<?php echo $post_id; ?>").tabs("option", "active", accordions_tabs_active_index_<?php echo $post_id; ?>);
|