Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
milceticarch
/
wp-content
/
plugins
/
edge-core
/
shortcodes
/
tabs
/
File Content:
functions.php
<?php if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_Edgtf_Tabs extends WPBakeryShortCodesContainer {} class WPBakeryShortCode_Edgtf_Tabs_Item extends WPBakeryShortCodesContainer {} } if ( ! function_exists( 'edgtf_core_add_tabs_shortcodes' ) ) { function edgtf_core_add_tabs_shortcodes( $shortcodes_class_name ) { $shortcodes = array( 'EdgeCore\CPT\Shortcodes\Tabs\Tabs', 'EdgeCore\CPT\Shortcodes\Tabs\TabsItem' ); $shortcodes_class_name = array_merge( $shortcodes_class_name, $shortcodes ); return $shortcodes_class_name; } add_filter( 'edgtf_core_filter_add_vc_shortcode', 'edgtf_core_add_tabs_shortcodes' ); } if ( ! function_exists( 'edgtf_core_set_tabs_custom_style_for_vc_shortcodes' ) ) { /** * Function that set custom css style for tabs shortcode */ function edgtf_core_set_tabs_custom_style_for_vc_shortcodes( $style ) { $current_style = '.vc_shortcodes_container.wpb_edgtf_tabs_item { background-color: #f4f4f4; }'; $style .= $current_style; return $style; } add_filter( 'edgtf_core_filter_add_vc_shortcodes_custom_style', 'edgtf_core_set_tabs_custom_style_for_vc_shortcodes' ); } if ( ! function_exists( 'edgtf_core_set_tabs_icon_class_name_for_vc_shortcodes' ) ) { /** * Function that set custom icon class name for tabs shortcode to set our icon for Visual Composer shortcodes panel */ function edgtf_core_set_tabs_icon_class_name_for_vc_shortcodes( $shortcodes_icon_class_array ) { $shortcodes_icon_class_array[] = '.icon-wpb-tabs'; $shortcodes_icon_class_array[] = '.icon-wpb-tabs-item'; return $shortcodes_icon_class_array; } add_filter( 'edgtf_core_filter_add_vc_shortcodes_custom_icon_class', 'edgtf_core_set_tabs_icon_class_name_for_vc_shortcodes' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
templates
---
0755
functions.php
1784 bytes
0644
load.php
193 bytes
0644
tabs-item.php
1523 bytes
0644
tabs.php
2877 bytes
0644
N4ST4R_ID | Naxtarrr