PATH:
home
/
thebhoeo
/
.trash
/
woodmart
/
inc
/
modules
/
layouts
/
wpb
/
shortcodes
/
single-product
<?php /** * Product price table shortcode. * * @package Woodmart */ use XTS\Modules\Layouts\Main; use XTS\Modules\Dynamic_Discounts\Frontend as Dynamic_Discounts_Module; if ( ! defined( 'ABSPATH' ) ) { exit; // Direct access not allowed. } if ( ! function_exists( 'woodmart_shortcode_single_product_dynamic_discounts_table' ) ) { /** * Single product price table shortcode. */ function woodmart_shortcode_single_product_dynamic_discounts_table( $settings ) { $default_settings = array( 'css' => '', ); if ( ! woodmart_get_opt( 'discounts_enabled', 0 ) || ( woodmart_get_opt( 'login_prices' ) && ! is_user_logged_in() ) ) { return ''; } $settings = wp_parse_args( $settings, $default_settings ); $wrapper_classes = apply_filters( 'vc_shortcodes_css_class', '', '', $settings ); $wrapper_classes .= ' wd-wpb'; if ( $settings['css'] ) { $wrapper_classes .= ' ' . vc_shortcode_custom_css_class( $settings['css'] ); } ob_start(); Main::setup_preview(); Dynamic_Discounts_Module::get_instance()->render_dynamic_discounts_table( false, $wrapper_classes ); Main::restore_preview(); return ob_get_clean(); } }
[-] compare-button.php
[edit]
[-] brands.php
[edit]
[-] reviews.php
[edit]
[-] linked-variations.php
[edit]
[-] size-guide-button.php
[edit]
[-] countdown.php
[edit]
[-] title.php
[edit]
[-] brand-information.php
[edit]
[-] frequently-bought-together.php
[edit]
[-] stock-progress-bar.php
[edit]
[-] dynamic-discounts-table.php
[edit]
[-] sold-counter.php
[edit]
[-] stock-status.php
[edit]
[-] short-description.php
[edit]
[-] price-tracker.php
[edit]
[-] price.php
[edit]
[+]
..
[-] additional-info-table.php
[edit]
[-] content.php
[edit]
[-] nav.php
[edit]
[-] meta-value.php
[edit]
[-] extra-content.php
[edit]
[-] tabs.php
[edit]
[-] estimate-delivery.php
[edit]
[-] wishlist-button.php
[edit]
[-] gallery.php
[edit]
[-] add-to-cart.php
[edit]
[-] meta.php
[edit]
[-] rating.php
[edit]
[-] visitor-counter.php
[edit]