Submit
Path:
~
/
home
/
getwphos
/
public_html
/
brueggemann
/
wp-content
/
plugins
/
wanderland-core
/
shortcodes
/
accordions
/
File Content:
functions.php
<?php if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_Mkdf_Accordion extends WPBakeryShortCodesContainer {} class WPBakeryShortCode_Mkdf_Accordion_Tab extends WPBakeryShortCodesContainer {} } if ( ! function_exists( 'wanderland_core_add_accordion_shortcodes' ) ) { function wanderland_core_add_accordion_shortcodes( $shortcodes_class_name ) { $shortcodes = array( 'WanderlandCore\CPT\Shortcodes\Accordion\Accordion', 'WanderlandCore\CPT\Shortcodes\AccordionTab\AccordionTab' ); $shortcodes_class_name = array_merge( $shortcodes_class_name, $shortcodes ); return $shortcodes_class_name; } add_filter( 'wanderland_core_filter_add_vc_shortcode', 'wanderland_core_add_accordion_shortcodes' ); } if ( ! function_exists( 'wanderland_core_set_accordion_custom_style_for_vc_shortcodes' ) ) { /** * Function that set custom css style for accordion shortcode */ function wanderland_core_set_accordion_custom_style_for_vc_shortcodes( $style ) { $current_style = '.vc_shortcodes_container.wpb_mkdf_accordion_tab { background-color: #f4f4f4; }'; $style .= $current_style; return $style; } add_filter( 'wanderland_core_filter_add_vc_shortcodes_custom_style', 'wanderland_core_set_accordion_custom_style_for_vc_shortcodes' ); } if ( ! function_exists( 'wanderland_core_set_accordion_icon_class_name_for_vc_shortcodes' ) ) { /** * Function that set custom icon class name for accordion shortcode to set our icon for Visual Composer shortcodes panel */ function wanderland_core_set_accordion_icon_class_name_for_vc_shortcodes( $shortcodes_icon_class_array ) { $shortcodes_icon_class_array[] = '.icon-wpb-accordion'; $shortcodes_icon_class_array[] = '.icon-wpb-accordion-tab'; return $shortcodes_icon_class_array; } add_filter( 'wanderland_core_filter_add_vc_shortcodes_custom_icon_class', 'wanderland_core_set_accordion_icon_class_name_for_vc_shortcodes' ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
templates
---
0755
accordion-tab.php
1998 bytes
0644
accordion.php
3552 bytes
0644
functions.php
1952 bytes
0644
load.php
238 bytes
0644
N4ST4R_ID | Naxtarrr