Submit
Path:
~
/
home
/
getwphos
/
www
/
BenjaminMarc-Struktur
/
wp-content
/
plugins
/
struktur-core
/
shortcodes
/
pricing-table
/
File Content:
functions.php
<?php if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_Qodef_Pricing_Table extends WPBakeryShortCodesContainer {} } if ( ! function_exists( 'struktur_core_add_pricing_tables_shortcodes' ) ) { function struktur_core_add_pricing_tables_shortcodes( $shortcodes_class_name ) { $shortcodes = array( 'StrukturCore\CPT\Shortcodes\PricingTable\PricingTable', 'StrukturCore\CPT\Shortcodes\PricingTable\PricingTableItem' ); $shortcodes_class_name = array_merge( $shortcodes_class_name, $shortcodes ); return $shortcodes_class_name; } add_filter( 'struktur_core_filter_add_vc_shortcode', 'struktur_core_add_pricing_tables_shortcodes' ); } if ( ! function_exists( 'struktur_core_set_pricing_table_custom_style_for_vc_shortcodes' ) ) { /** * Function that set custom css style for pricing table shortcode */ function struktur_core_set_pricing_table_custom_style_for_vc_shortcodes( $style ) { $current_style = '.wpb_content_element.wpb_qodef_pricing_table_item > .wpb_element_wrapper { background-color: #f4f4f4; }'; $style .= $current_style; return $style; } add_filter( 'struktur_core_filter_add_vc_shortcodes_custom_style', 'struktur_core_set_pricing_table_custom_style_for_vc_shortcodes' ); } if ( ! function_exists( 'struktur_core_set_pricing_table_icon_class_name_for_vc_shortcodes' ) ) { /** * Function that set custom icon class name for pricing table shortcode to set our icon for Visual Composer shortcodes panel */ function struktur_core_set_pricing_table_icon_class_name_for_vc_shortcodes( $shortcodes_icon_class_array ) { $shortcodes_icon_class_array[] = '.icon-wpb-pricing-table'; $shortcodes_icon_class_array[] = '.icon-wpb-pricing-table-item'; return $shortcodes_icon_class_array; } add_filter( 'struktur_core_filter_add_vc_shortcodes_custom_icon_class', 'struktur_core_set_pricing_table_icon_class_name_for_vc_shortcodes' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
templates
---
0755
elementor-pricing-table.php
12358 bytes
0644
functions.php
1937 bytes
0644
load.php
250 bytes
0644
pricing-table-item.php
8660 bytes
0644
pricing-table.php
2636 bytes
0644
N4ST4R_ID | Naxtarrr