Version Description
Download this release
Release Info
Developer | pickplugins |
Plugin | Accordion |
Version | 2.2.13 |
Comparing to | |
See all releases |
Code changes from version 2.2.12 to 2.2.13
- accordions.php +2 -2
- includes/class-admin-notices.php +1 -2
- includes/class-settings-hook.php +2 -2
- includes/class-settings.php +1 -2
- readme.txt +9 -6
- templates/accordion/accordion-hook.php +1 -35
- templates/tabs/tabs-hook.php +1 -42
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.13
|
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.13' );
|
27 |
define('accordions_plugin_name', 'Accordions' );
|
28 |
define('accordions_plugin_basename', plugin_basename( __FILE__ ) );
|
29 |
|
includes/class-admin-notices.php
CHANGED
@@ -4,8 +4,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
4 |
class class_accordions_notices{
|
5 |
|
6 |
public function __construct(){
|
7 |
-
add_action('admin_notices', array( $this, 'data_upgrade' ));
|
8 |
-
|
9 |
}
|
10 |
|
11 |
public function data_upgrade(){
|
4 |
class class_accordions_notices{
|
5 |
|
6 |
public function __construct(){
|
7 |
+
//add_action('admin_notices', array( $this, 'data_upgrade' ));
|
|
|
8 |
}
|
9 |
|
10 |
public function data_upgrade(){
|
includes/class-settings-hook.php
CHANGED
@@ -208,7 +208,7 @@ if(!function_exists('accordions_settings_content_help_support')) {
|
|
208 |
<a class="button" href="https://www.youtube.com/playlist?list=PL0QP7T2SN94ZPeQ83jOnteDDrOeDLBuFD"><i class="fab fa-youtube"></i> <?php echo __('All tutorials', 'accordions'); ?></a>
|
209 |
|
210 |
<ul>
|
211 |
-
<li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=4ZGMA6hOoxs">Accordions - data migration</a></li
|
212 |
|
213 |
|
214 |
</ul>
|
@@ -352,7 +352,7 @@ if(!function_exists('accordions_settings_content_help_support')) {
|
|
352 |
|
353 |
);
|
354 |
|
355 |
-
|
356 |
|
357 |
|
358 |
|
208 |
<a class="button" href="https://www.youtube.com/playlist?list=PL0QP7T2SN94ZPeQ83jOnteDDrOeDLBuFD"><i class="fab fa-youtube"></i> <?php echo __('All tutorials', 'accordions'); ?></a>
|
209 |
|
210 |
<ul>
|
211 |
+
<!-- <li><i class="far fa-dot-circle"></i> <a href="https://www.youtube.com/watch?v=4ZGMA6hOoxs">Accordions - data migration</a></li>-->
|
212 |
|
213 |
|
214 |
</ul>
|
352 |
|
353 |
);
|
354 |
|
355 |
+
//$settings_tabs_field->generate_field($args);
|
356 |
|
357 |
|
358 |
|
includes/class-settings.php
CHANGED
@@ -21,8 +21,7 @@ class accordions_class_settings{
|
|
21 |
add_submenu_page( 'edit.php?post_type=accordions', __( 'Settings', 'accordions' ), __( 'Settings', 'accordions' ), 'manage_options', 'settings', array( $this, 'settings' ) );
|
22 |
|
23 |
if($accordions_upgrade != 'done'){
|
24 |
-
add_submenu_page( 'edit.php?post_type=accordions', __( 'Upgrade status', 'accordions' ), __( 'Upgrade status', 'accordions' ), 'manage_options', 'upgrade_status', array( $this, 'upgrade_status' ) );
|
25 |
-
|
26 |
}
|
27 |
}
|
28 |
|
21 |
add_submenu_page( 'edit.php?post_type=accordions', __( 'Settings', 'accordions' ), __( 'Settings', 'accordions' ), 'manage_options', 'settings', array( $this, 'settings' ) );
|
22 |
|
23 |
if($accordions_upgrade != 'done'){
|
24 |
+
//add_submenu_page( 'edit.php?post_type=accordions', __( 'Upgrade status', 'accordions' ), __( 'Upgrade status', 'accordions' ), 'manage_options', 'upgrade_status', array( $this, 'upgrade_status' ) );
|
|
|
25 |
}
|
26 |
}
|
27 |
|
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,17 +139,22 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
= 2.2.12=
|
143 |
* 2020-04-01 - fix - default font-awesome version set to 5+ if not set.
|
144 |
* 2020-04-01 - fix - load old data and option if data migration not completed.
|
145 |
* 2020-04-01 - fix - codemirror issue fixed.
|
146 |
|
147 |
-
|
148 |
-
|
149 |
= 2.2.11=
|
150 |
* 2020-03-19 - fix - display old content if data migration not completed
|
151 |
|
152 |
-
|
153 |
= 2.2.10=
|
154 |
* 2020-03-19 - add - data migration tutorial update and linked help section
|
155 |
|
@@ -158,8 +163,6 @@ then paste this shortcode anywhere in your page to display accordions<br />
|
|
158 |
* 2020-03-18 - update - import accordion any post status
|
159 |
* 2020-03-18 - fix - security issue on import accordion fixed.
|
160 |
|
161 |
-
|
162 |
-
|
163 |
= 2.2.8=
|
164 |
* 2020-03-18 - fix - minor security issue fixed.
|
165 |
|
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.13
|
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.13=
|
143 |
+
* 2020-04-04 - fix - minor script issue fixed.
|
144 |
+
* 2020-04-04 - remove - remove data migration, load old option if new options not saved.
|
145 |
+
* 2020-04-04 - remove - remove reset data migration.
|
146 |
+
* 2020-04-04 - remove - remove empty line break from scipts to avoid wpautop conflict.
|
147 |
+
|
148 |
+
|
149 |
+
|
150 |
= 2.2.12=
|
151 |
* 2020-04-01 - fix - default font-awesome version set to 5+ if not set.
|
152 |
* 2020-04-01 - fix - load old data and option if data migration not completed.
|
153 |
* 2020-04-01 - fix - codemirror issue fixed.
|
154 |
|
|
|
|
|
155 |
= 2.2.11=
|
156 |
* 2020-03-19 - fix - display old content if data migration not completed
|
157 |
|
|
|
158 |
= 2.2.10=
|
159 |
* 2020-03-19 - add - data migration tutorial update and linked help section
|
160 |
|
163 |
* 2020-03-18 - update - import accordion any post status
|
164 |
* 2020-03-18 - fix - security issue on import accordion fixed.
|
165 |
|
|
|
|
|
166 |
= 2.2.8=
|
167 |
* 2020-03-18 - fix - minor security issue fixed.
|
168 |
|
templates/accordion/accordion-hook.php
CHANGED
@@ -99,6 +99,7 @@ function accordions_main_style($atts){
|
|
99 |
$accordions_settings = get_option('accordions_settings');
|
100 |
$font_aw_version = isset($accordions_settings['font_aw_version']) ? $accordions_settings['font_aw_version'] : 'v_5';
|
101 |
|
|
|
102 |
|
103 |
wp_enqueue_style('accordions-style');
|
104 |
|
@@ -181,7 +182,6 @@ function accordions_main_style($atts){
|
|
181 |
padding:<?php echo $header_padding; ?>;
|
182 |
<?php endif; ?>
|
183 |
outline: none;
|
184 |
-
|
185 |
}
|
186 |
#accordions-<?php echo $post_id; ?> .accordions-head-title{
|
187 |
<?php if(!empty($header_color)):?>
|
@@ -270,13 +270,9 @@ function accordions_main_style($atts){
|
|
270 |
}
|
271 |
}
|
272 |
}
|
273 |
-
|
274 |
?>
|
275 |
</style>
|
276 |
<?php
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
}
|
281 |
|
282 |
|
@@ -293,7 +289,6 @@ function accordions_main_items($atts){
|
|
293 |
$accordions_options = get_post_meta($post_id,'accordions_options', true);
|
294 |
$accordions_options = !empty($accordions_options) ? $accordions_options : accordions_old_options($post_id);
|
295 |
|
296 |
-
|
297 |
$accordions_content = isset($accordions_options['content']) ? $accordions_options['content'] : array();
|
298 |
$enable_shortcode = isset($accordions_options['enable_shortcode']) ? $accordions_options['enable_shortcode'] : 'yes';
|
299 |
$enable_wpautop = isset($accordions_options['enable_wpautop']) ? $accordions_options['enable_wpautop'] : 'yes';
|
@@ -315,12 +310,9 @@ function accordions_main_items($atts){
|
|
315 |
$accordions_plugin_info = get_option('accordions_plugin_info');
|
316 |
$accordions_upgrade = isset($accordions_plugin_info['accordions_upgrade']) ? $accordions_plugin_info['accordions_upgrade'] : '';
|
317 |
|
318 |
-
|
319 |
-
|
320 |
$active_index = array();
|
321 |
?>
|
322 |
<div class="items">
|
323 |
-
|
324 |
<?php
|
325 |
|
326 |
if(!empty($accordions_content)):
|
@@ -342,7 +334,6 @@ function accordions_main_items($atts){
|
|
342 |
$active_icon = !empty($accordion['active_icon']) ? $accordion['active_icon'] : $icon_active;
|
343 |
$inactive_icon = !empty($accordion['inactive_icon']) ? $accordion['inactive_icon'] : $icon_inactive;
|
344 |
|
345 |
-
|
346 |
$accordion_header = apply_filters( 'accordions_item_header', $accordion_header, $post_id );
|
347 |
|
348 |
if(($accordion_is_active =='yes')){
|
@@ -358,9 +349,6 @@ function accordions_main_items($atts){
|
|
358 |
}
|
359 |
}
|
360 |
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
$accordion_body = apply_filters( 'accordions_item_body', $accordion_body, $post_id );
|
365 |
|
366 |
|
@@ -377,10 +365,8 @@ function accordions_main_items($atts){
|
|
377 |
$accordion_body = do_shortcode($accordion_body);
|
378 |
}
|
379 |
|
380 |
-
|
381 |
?>
|
382 |
<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; ?> <?php echo $header_class; ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr($accordion_header)); ?>">
|
383 |
-
|
384 |
<?php
|
385 |
if($icon_position == 'left'):
|
386 |
?>
|
@@ -404,13 +390,10 @@ function accordions_main_items($atts){
|
|
404 |
<?php
|
405 |
endif;
|
406 |
?>
|
407 |
-
|
408 |
-
|
409 |
</div>
|
410 |
<div class="accordion-content content<?php echo $index; ?> <?php echo $body_class; ?>">
|
411 |
<?php echo $accordion_body; ?>
|
412 |
</div>
|
413 |
-
|
414 |
<?php
|
415 |
$item_count++;
|
416 |
}
|
@@ -418,7 +401,6 @@ function accordions_main_items($atts){
|
|
418 |
|
419 |
do_action('accordions_main_no_content', $post_id);
|
420 |
endif;
|
421 |
-
|
422 |
?>
|
423 |
</div>
|
424 |
<script>
|
@@ -503,8 +485,6 @@ function accordions_main_edit_link($atts){
|
|
503 |
$hide_edit = isset($accordions_options['hide_edit']) ? $accordions_options['hide_edit'] : 'yes';
|
504 |
|
505 |
|
506 |
-
|
507 |
-
|
508 |
if(current_user_can('administrator') && $hide_edit == 'no'){
|
509 |
$admin_url = admin_url();
|
510 |
$accordion_edit_url = apply_filters('accordions_edit_url', ''.$admin_url.'post.php?post='.$post_id.'&action=edit', $post_id );
|
@@ -512,9 +492,7 @@ function accordions_main_edit_link($atts){
|
|
512 |
?>
|
513 |
<div class="accordion-edit"><a href="<?php echo $accordion_edit_url; ?>"><?php echo __('Edit this accordion','accordions'); ?></a>, <?php echo __("Only admin can see this.",'accordions')?></div>
|
514 |
<?php
|
515 |
-
|
516 |
}
|
517 |
-
|
518 |
}
|
519 |
|
520 |
|
@@ -532,7 +510,6 @@ function accordions_main_scripts($atts){
|
|
532 |
$accordions_options = get_post_meta($post_id,'accordions_options', true);
|
533 |
$accordions_options = !empty($accordions_options) ? $accordions_options : accordions_old_options($post_id);
|
534 |
|
535 |
-
|
536 |
$accordion = isset($accordions_options['accordion']) ? $accordions_options['accordion'] : array();
|
537 |
$collapsible = !empty($accordion['collapsible']) ? $accordion['collapsible'] : 'true';
|
538 |
$height_style = isset($accordion['height_style']) ? $accordion['height_style'] : 'content';
|
@@ -541,7 +518,6 @@ function accordions_main_scripts($atts){
|
|
541 |
$animate_style = !empty($accordion['animate_style']) ? $accordion['animate_style'] : 'swing';
|
542 |
$animate_delay = !empty($accordion['animate_delay']) ? $accordion['animate_delay'] : 1000;
|
543 |
|
544 |
-
|
545 |
$lazy_load = isset($accordions_options['lazy_load']) ? $accordions_options['lazy_load'] : 'yes';
|
546 |
$lazy_load_src = isset($accordions_options['lazy_load_src']) ? $accordions_options['lazy_load_src'] : '';
|
547 |
$hide_edit = isset($accordions_options['hide_edit']) ? $accordions_options['hide_edit'] : '';
|
@@ -581,9 +557,6 @@ function accordions_main_scripts($atts){
|
|
581 |
$custom_scripts = isset($accordions_options['custom_scripts']) ? $accordions_options['custom_scripts'] : array();
|
582 |
$custom_js = isset($custom_scripts['custom_js']) ? $custom_scripts['custom_js'] : '';
|
583 |
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
?>
|
588 |
<script>
|
589 |
jQuery(document).ready(function($){
|
@@ -595,15 +568,11 @@ function accordions_main_scripts($atts){
|
|
595 |
navigation: true,
|
596 |
active: 999,
|
597 |
});
|
598 |
-
|
599 |
})
|
600 |
</script>
|
601 |
<?php
|
602 |
|
603 |
-
|
604 |
-
|
605 |
if(!empty($custom_js)):
|
606 |
-
|
607 |
?>
|
608 |
<script>
|
609 |
jQuery(document).ready(function($){
|
@@ -612,17 +581,14 @@ function accordions_main_scripts($atts){
|
|
612 |
</script>
|
613 |
<?php
|
614 |
endif;
|
615 |
-
|
616 |
}
|
617 |
|
618 |
|
619 |
add_action('accordions_main_no_content', 'accordions_main_no_content', 50);
|
620 |
function accordions_main_no_content(){
|
621 |
|
622 |
-
|
623 |
?>
|
624 |
<p><?php echo __('Content missing',''); ?></p>
|
625 |
<?php
|
626 |
-
|
627 |
}
|
628 |
|
99 |
$accordions_settings = get_option('accordions_settings');
|
100 |
$font_aw_version = isset($accordions_settings['font_aw_version']) ? $accordions_settings['font_aw_version'] : 'v_5';
|
101 |
|
102 |
+
//var_dump($custom_css);
|
103 |
|
104 |
wp_enqueue_style('accordions-style');
|
105 |
|
182 |
padding:<?php echo $header_padding; ?>;
|
183 |
<?php endif; ?>
|
184 |
outline: none;
|
|
|
185 |
}
|
186 |
#accordions-<?php echo $post_id; ?> .accordions-head-title{
|
187 |
<?php if(!empty($header_color)):?>
|
270 |
}
|
271 |
}
|
272 |
}
|
|
|
273 |
?>
|
274 |
</style>
|
275 |
<?php
|
|
|
|
|
|
|
276 |
}
|
277 |
|
278 |
|
289 |
$accordions_options = get_post_meta($post_id,'accordions_options', true);
|
290 |
$accordions_options = !empty($accordions_options) ? $accordions_options : accordions_old_options($post_id);
|
291 |
|
|
|
292 |
$accordions_content = isset($accordions_options['content']) ? $accordions_options['content'] : array();
|
293 |
$enable_shortcode = isset($accordions_options['enable_shortcode']) ? $accordions_options['enable_shortcode'] : 'yes';
|
294 |
$enable_wpautop = isset($accordions_options['enable_wpautop']) ? $accordions_options['enable_wpautop'] : 'yes';
|
310 |
$accordions_plugin_info = get_option('accordions_plugin_info');
|
311 |
$accordions_upgrade = isset($accordions_plugin_info['accordions_upgrade']) ? $accordions_plugin_info['accordions_upgrade'] : '';
|
312 |
|
|
|
|
|
313 |
$active_index = array();
|
314 |
?>
|
315 |
<div class="items">
|
|
|
316 |
<?php
|
317 |
|
318 |
if(!empty($accordions_content)):
|
334 |
$active_icon = !empty($accordion['active_icon']) ? $accordion['active_icon'] : $icon_active;
|
335 |
$inactive_icon = !empty($accordion['inactive_icon']) ? $accordion['inactive_icon'] : $icon_inactive;
|
336 |
|
|
|
337 |
$accordion_header = apply_filters( 'accordions_item_header', $accordion_header, $post_id );
|
338 |
|
339 |
if(($accordion_is_active =='yes')){
|
349 |
}
|
350 |
}
|
351 |
|
|
|
|
|
|
|
352 |
$accordion_body = apply_filters( 'accordions_item_body', $accordion_body, $post_id );
|
353 |
|
354 |
|
365 |
$accordion_body = do_shortcode($accordion_body);
|
366 |
}
|
367 |
|
|
|
368 |
?>
|
369 |
<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; ?> <?php echo $header_class; ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr($accordion_header)); ?>">
|
|
|
370 |
<?php
|
371 |
if($icon_position == 'left'):
|
372 |
?>
|
390 |
<?php
|
391 |
endif;
|
392 |
?>
|
|
|
|
|
393 |
</div>
|
394 |
<div class="accordion-content content<?php echo $index; ?> <?php echo $body_class; ?>">
|
395 |
<?php echo $accordion_body; ?>
|
396 |
</div>
|
|
|
397 |
<?php
|
398 |
$item_count++;
|
399 |
}
|
401 |
|
402 |
do_action('accordions_main_no_content', $post_id);
|
403 |
endif;
|
|
|
404 |
?>
|
405 |
</div>
|
406 |
<script>
|
485 |
$hide_edit = isset($accordions_options['hide_edit']) ? $accordions_options['hide_edit'] : 'yes';
|
486 |
|
487 |
|
|
|
|
|
488 |
if(current_user_can('administrator') && $hide_edit == 'no'){
|
489 |
$admin_url = admin_url();
|
490 |
$accordion_edit_url = apply_filters('accordions_edit_url', ''.$admin_url.'post.php?post='.$post_id.'&action=edit', $post_id );
|
492 |
?>
|
493 |
<div class="accordion-edit"><a href="<?php echo $accordion_edit_url; ?>"><?php echo __('Edit this accordion','accordions'); ?></a>, <?php echo __("Only admin can see this.",'accordions')?></div>
|
494 |
<?php
|
|
|
495 |
}
|
|
|
496 |
}
|
497 |
|
498 |
|
510 |
$accordions_options = get_post_meta($post_id,'accordions_options', true);
|
511 |
$accordions_options = !empty($accordions_options) ? $accordions_options : accordions_old_options($post_id);
|
512 |
|
|
|
513 |
$accordion = isset($accordions_options['accordion']) ? $accordions_options['accordion'] : array();
|
514 |
$collapsible = !empty($accordion['collapsible']) ? $accordion['collapsible'] : 'true';
|
515 |
$height_style = isset($accordion['height_style']) ? $accordion['height_style'] : 'content';
|
518 |
$animate_style = !empty($accordion['animate_style']) ? $accordion['animate_style'] : 'swing';
|
519 |
$animate_delay = !empty($accordion['animate_delay']) ? $accordion['animate_delay'] : 1000;
|
520 |
|
|
|
521 |
$lazy_load = isset($accordions_options['lazy_load']) ? $accordions_options['lazy_load'] : 'yes';
|
522 |
$lazy_load_src = isset($accordions_options['lazy_load_src']) ? $accordions_options['lazy_load_src'] : '';
|
523 |
$hide_edit = isset($accordions_options['hide_edit']) ? $accordions_options['hide_edit'] : '';
|
557 |
$custom_scripts = isset($accordions_options['custom_scripts']) ? $accordions_options['custom_scripts'] : array();
|
558 |
$custom_js = isset($custom_scripts['custom_js']) ? $custom_scripts['custom_js'] : '';
|
559 |
|
|
|
|
|
|
|
560 |
?>
|
561 |
<script>
|
562 |
jQuery(document).ready(function($){
|
568 |
navigation: true,
|
569 |
active: 999,
|
570 |
});
|
|
|
571 |
})
|
572 |
</script>
|
573 |
<?php
|
574 |
|
|
|
|
|
575 |
if(!empty($custom_js)):
|
|
|
576 |
?>
|
577 |
<script>
|
578 |
jQuery(document).ready(function($){
|
581 |
</script>
|
582 |
<?php
|
583 |
endif;
|
|
|
584 |
}
|
585 |
|
586 |
|
587 |
add_action('accordions_main_no_content', 'accordions_main_no_content', 50);
|
588 |
function accordions_main_no_content(){
|
589 |
|
|
|
590 |
?>
|
591 |
<p><?php echo __('Content missing',''); ?></p>
|
592 |
<?php
|
|
|
593 |
}
|
594 |
|
templates/tabs/tabs-hook.php
CHANGED
@@ -191,8 +191,6 @@ function accordions_tabs_main_style($atts){
|
|
191 |
background-color: rgba(0,0,0,0);
|
192 |
<?php endif; ?>
|
193 |
}
|
194 |
-
|
195 |
-
|
196 |
#accordions-tabs-<?php echo $post_id; ?> .ui-tabs-anchor{
|
197 |
<?php if(!empty($header_color)):?>
|
198 |
color:<?php echo $header_color; ?>;
|
@@ -262,15 +260,10 @@ function accordions_tabs_main_style($atts){
|
|
262 |
font-size:<?php echo $icon_font_size; ?>;
|
263 |
<?php endif; ?>
|
264 |
}
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
<?php
|
269 |
if(!empty($accordions_custom_css)){
|
270 |
echo $accordions_custom_css;
|
271 |
}
|
272 |
-
|
273 |
-
|
274 |
if($tabs_icon_toggle=='yes'){
|
275 |
?>
|
276 |
.accordions-tabs .ui-tabs-active .accordions-tab-plus {
|
@@ -291,16 +284,11 @@ function accordions_tabs_main_style($atts){
|
|
291 |
.ui-tabs-vertical .ui-tabs-nav { float: left; width: <?php echo $navs_width_ratio; ?>%;overflow: hidden; }
|
292 |
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; }
|
293 |
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: left; width: <?php echo $panel_width_ratio; ?>%;}
|
294 |
-
|
295 |
-
|
296 |
<?php
|
297 |
}
|
298 |
?>
|
299 |
</style>
|
300 |
<?php
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
}
|
305 |
|
306 |
|
@@ -429,7 +417,7 @@ function accordions_tabs_main_items($atts){
|
|
429 |
<span id="accordion-icons-<?php echo $index; ?>" class="accordion-icons">
|
430 |
<span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
|
431 |
<span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
|
432 |
-
|
433 |
</a>
|
434 |
|
435 |
<?php
|
@@ -465,23 +453,17 @@ function accordions_tabs_main_items($atts){
|
|
465 |
<ul>
|
466 |
<?php echo $nav_html; ?>
|
467 |
</ul>
|
468 |
-
|
469 |
<?php echo $nav_content_html; ?>
|
470 |
-
|
471 |
<script>
|
472 |
jQuery(document).ready(function($){
|
473 |
<?php
|
474 |
if(isset($_GET['active_index'])):
|
475 |
$accordion_index = isset($_GET['active_index']) ? sanitize_text_field($_GET['active_index']) : '';
|
476 |
-
|
477 |
-
//var_dump($accordion_index);
|
478 |
-
|
479 |
$accordion_index = explode('-', $accordion_index);
|
480 |
foreach ($accordion_index as $args){
|
481 |
$args_arr = explode('|', $args);
|
482 |
$accordion_id = isset($args_arr[0]) ? $args_arr[0] : '';
|
483 |
$accordion_indexes = isset($args_arr[1]) ? $args_arr[1] : '';
|
484 |
-
|
485 |
?>
|
486 |
accordions_tabs_active_index_<?php echo $accordion_id; ?> = <?php echo $accordion_indexes; ?>;
|
487 |
<?php
|
@@ -494,9 +476,6 @@ function accordions_tabs_main_items($atts){
|
|
494 |
?>
|
495 |
})
|
496 |
</script>
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
<?php
|
501 |
|
502 |
}
|
@@ -547,13 +526,8 @@ function accordions_tabs_main_scripts($atts){
|
|
547 |
$custom_scripts = isset($accordions_options['custom_scripts']) ? $accordions_options['custom_scripts'] : array();
|
548 |
$custom_js = isset($custom_scripts['custom_js']) ? $custom_scripts['custom_js'] : '';
|
549 |
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
$active_tab = isset($_GET['id']) ? (int)sanitize_text_field($_GET['id']) : 1;
|
554 |
|
555 |
-
|
556 |
-
|
557 |
$tabs = isset($accordions_options['tabs']) ? $accordions_options['tabs'] : array();
|
558 |
$collapsible = !empty($tabs['collapsible']) ? $tabs['collapsible'] : 'true';
|
559 |
$active_event = isset($tabs['active_event']) ? $tabs['active_event'] : 'click';
|
@@ -561,39 +535,26 @@ function accordions_tabs_main_scripts($atts){
|
|
561 |
?>
|
562 |
<script>
|
563 |
jQuery(document).ready(function($){
|
564 |
-
|
565 |
<?php
|
566 |
-
|
567 |
if($tabs_is_vertical=='yes'){
|
568 |
?>
|
569 |
-
|
570 |
$( "#accordions-tabs-<?php echo $post_id; ?>" ).addClass( "ui-tabs-vertical ui-helper-clearfix" );
|
571 |
$( "#accordions-tabs-<?php echo $post_id; ?> li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
|
572 |
<?php
|
573 |
}
|
574 |
?>
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
$("#accordions-tabs-<?php echo $post_id; ?>" ).tabs({
|
579 |
collapsible: <?php echo $collapsible; ?>,
|
580 |
event: "<?php echo $active_event; ?>",
|
581 |
active: "<?php echo $active_tab; ?>",
|
582 |
});
|
583 |
-
|
584 |
if(typeof accordions_tabs_active_index_<?php echo $post_id; ?> != 'undefined'){
|
585 |
$("#accordions-tabs-<?php echo $post_id; ?>").tabs("option", "active", accordions_tabs_active_index_<?php echo $post_id; ?>);
|
586 |
}
|
587 |
-
|
588 |
-
|
589 |
})
|
590 |
</script>
|
591 |
<?php
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
if(!empty($custom_js)):
|
596 |
-
|
597 |
?>
|
598 |
<script>
|
599 |
jQuery(document).ready(function($){
|
@@ -602,14 +563,12 @@ function accordions_tabs_main_scripts($atts){
|
|
602 |
</script>
|
603 |
<?php
|
604 |
endif;
|
605 |
-
|
606 |
}
|
607 |
|
608 |
|
609 |
add_action('accordions_tabs_main_no_content', 'accordions_tabs_main_no_content');
|
610 |
function accordions_tabs_main_no_content(){
|
611 |
|
612 |
-
|
613 |
?>
|
614 |
<p><?php echo __('Content missing',''); ?></p>
|
615 |
<?php
|
191 |
background-color: rgba(0,0,0,0);
|
192 |
<?php endif; ?>
|
193 |
}
|
|
|
|
|
194 |
#accordions-tabs-<?php echo $post_id; ?> .ui-tabs-anchor{
|
195 |
<?php if(!empty($header_color)):?>
|
196 |
color:<?php echo $header_color; ?>;
|
260 |
font-size:<?php echo $icon_font_size; ?>;
|
261 |
<?php endif; ?>
|
262 |
}
|
|
|
|
|
|
|
263 |
<?php
|
264 |
if(!empty($accordions_custom_css)){
|
265 |
echo $accordions_custom_css;
|
266 |
}
|
|
|
|
|
267 |
if($tabs_icon_toggle=='yes'){
|
268 |
?>
|
269 |
.accordions-tabs .ui-tabs-active .accordions-tab-plus {
|
284 |
.ui-tabs-vertical .ui-tabs-nav { float: left; width: <?php echo $navs_width_ratio; ?>%;overflow: hidden; }
|
285 |
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; }
|
286 |
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: left; width: <?php echo $panel_width_ratio; ?>%;}
|
|
|
|
|
287 |
<?php
|
288 |
}
|
289 |
?>
|
290 |
</style>
|
291 |
<?php
|
|
|
|
|
|
|
292 |
}
|
293 |
|
294 |
|
417 |
<span id="accordion-icons-<?php echo $index; ?>" class="accordion-icons">
|
418 |
<span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
|
419 |
<span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
|
420 |
+
</span>
|
421 |
</a>
|
422 |
|
423 |
<?php
|
453 |
<ul>
|
454 |
<?php echo $nav_html; ?>
|
455 |
</ul>
|
|
|
456 |
<?php echo $nav_content_html; ?>
|
|
|
457 |
<script>
|
458 |
jQuery(document).ready(function($){
|
459 |
<?php
|
460 |
if(isset($_GET['active_index'])):
|
461 |
$accordion_index = isset($_GET['active_index']) ? sanitize_text_field($_GET['active_index']) : '';
|
|
|
|
|
|
|
462 |
$accordion_index = explode('-', $accordion_index);
|
463 |
foreach ($accordion_index as $args){
|
464 |
$args_arr = explode('|', $args);
|
465 |
$accordion_id = isset($args_arr[0]) ? $args_arr[0] : '';
|
466 |
$accordion_indexes = isset($args_arr[1]) ? $args_arr[1] : '';
|
|
|
467 |
?>
|
468 |
accordions_tabs_active_index_<?php echo $accordion_id; ?> = <?php echo $accordion_indexes; ?>;
|
469 |
<?php
|
476 |
?>
|
477 |
})
|
478 |
</script>
|
|
|
|
|
|
|
479 |
<?php
|
480 |
|
481 |
}
|
526 |
$custom_scripts = isset($accordions_options['custom_scripts']) ? $accordions_options['custom_scripts'] : array();
|
527 |
$custom_js = isset($custom_scripts['custom_js']) ? $custom_scripts['custom_js'] : '';
|
528 |
|
|
|
|
|
|
|
529 |
$active_tab = isset($_GET['id']) ? (int)sanitize_text_field($_GET['id']) : 1;
|
530 |
|
|
|
|
|
531 |
$tabs = isset($accordions_options['tabs']) ? $accordions_options['tabs'] : array();
|
532 |
$collapsible = !empty($tabs['collapsible']) ? $tabs['collapsible'] : 'true';
|
533 |
$active_event = isset($tabs['active_event']) ? $tabs['active_event'] : 'click';
|
535 |
?>
|
536 |
<script>
|
537 |
jQuery(document).ready(function($){
|
|
|
538 |
<?php
|
|
|
539 |
if($tabs_is_vertical=='yes'){
|
540 |
?>
|
|
|
541 |
$( "#accordions-tabs-<?php echo $post_id; ?>" ).addClass( "ui-tabs-vertical ui-helper-clearfix" );
|
542 |
$( "#accordions-tabs-<?php echo $post_id; ?> li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
|
543 |
<?php
|
544 |
}
|
545 |
?>
|
|
|
|
|
|
|
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; ?>);
|
553 |
}
|
|
|
|
|
554 |
})
|
555 |
</script>
|
556 |
<?php
|
|
|
|
|
|
|
557 |
if(!empty($custom_js)):
|
|
|
558 |
?>
|
559 |
<script>
|
560 |
jQuery(document).ready(function($){
|
563 |
</script>
|
564 |
<?php
|
565 |
endif;
|
|
|
566 |
}
|
567 |
|
568 |
|
569 |
add_action('accordions_tabs_main_no_content', 'accordions_tabs_main_no_content');
|
570 |
function accordions_tabs_main_no_content(){
|
571 |
|
|
|
572 |
?>
|
573 |
<p><?php echo __('Content missing',''); ?></p>
|
574 |
<?php
|