Submit
Path:
~
/
home
/
getwphos
/
public_html
/
ccma
/
wp-content
/
themes
/
curly
/
framework
/
modules
/
woocommerce
/
shortcodes
/
File Content:
shortcodes-functions.php
<?php if (!function_exists('curly_mkdf_include_woocommerce_shortcodes')) { function curly_mkdf_include_woocommerce_shortcodes() { foreach (glob(MIKADO_FRAMEWORK_MODULES_ROOT_DIR . '/woocommerce/shortcodes/*/load.php') as $shortcode_load) { include_once $shortcode_load; } } if (curly_mkdf_core_plugin_installed() && curly_mkdf_is_theme_registered()) { add_action('curly_core_action_include_shortcodes_file', 'curly_mkdf_include_woocommerce_shortcodes'); } } if (!function_exists('curly_mkdf_set_product_list_icon_class_name_for_vc_shortcodes')) { /** * Function that set custom icon class name for product shortcodes to set our icon for Visual Composer shortcodes panel */ function curly_mkdf_set_product_list_icon_class_name_for_vc_shortcodes($shortcodes_icon_class_array) { $shortcodes_icon_class_array[] = '.icon-wpb-product-list'; $shortcodes_icon_class_array[] = '.icon-wpb-product-list-carousel'; return $shortcodes_icon_class_array; } if (curly_mkdf_core_plugin_installed() && curly_mkdf_is_theme_registered()) { add_filter('curly_core_filter_add_vc_shortcodes_custom_icon_class', 'curly_mkdf_set_product_list_icon_class_name_for_vc_shortcodes'); } } // Load woo elementor widgets if ( ! function_exists( 'curly_mikado_include_woo_elementor_widgets_files' ) ) { /** * Loades all shortcodes by going through all folders that are placed directly in shortcodes folder */ function curly_mikado_include_woo_elementor_widgets_files() { if ( curly_mkdf_core_plugin_installed() && curly_mkdf_is_theme_registered() ) { foreach ( glob( MIKADO_FRAMEWORK_MODULES_ROOT_DIR . '/woocommerce/shortcodes/*/elementor-*.php' ) as $shortcode_load ) { include_once $shortcode_load; } } } if ( defined( 'ELEMENTOR_VERSION' ) ) { if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>' ) ) { add_action( 'elementor/widgets/register', 'curly_mikado_include_woo_elementor_widgets_files' ); } else { add_action( 'elementor/widgets/widgets_registered', 'curly_mikado_include_woo_elementor_widgets_files' ); } } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
product-list
---
0755
shortcodes-functions.php
2188 bytes
0644
N4ST4R_ID | Naxtarrr