PATH:
home
/
thebhoeo
/
.trash
/
woodmart
/
inc
/
modules
/
layouts
/
wpb
/
shortcodes
/
single-product
<?php /** * Frequently bought together shortcode. * * @package Woodmart */ use XTS\Modules\Frequently_Bought_Together\Frontend; use XTS\Modules\Layouts\Main; if ( ! defined( 'ABSPATH' ) ) { exit; // Direct access not allowed. } if ( ! function_exists( 'woodmart_shortcode_single_product_fbt_products' ) ) { /** * Single product frequently bought together shortcode. * * @param array $settings Shortcode attributes. */ function woodmart_shortcode_single_product_fbt_products( $settings ) { $default_settings = array( 'css' => '', 'slides_per_view' => '3', 'slides_per_view_tablet' => 'auto', 'slides_per_view_mobile' => 'auto', 'hide_pagination_control' => 'no', 'hide_pagination_control_tablet' => 'yes', 'hide_pagination_control_mobile' => 'yes', 'hide_scrollbar' => 'yes', 'hide_scrollbar_tablet' => 'yes', 'hide_scrollbar_mobile' => 'yes', 'form_width' => '', 'form_color_scheme' => '', 'is_builder' => true, ); if ( ! woodmart_get_opt( 'bought_together_enabled', 1 ) ) { return ''; } $settings = wp_parse_args( $settings, $default_settings ); $wrapper_classes = apply_filters( 'vc_shortcodes_css_class', '', '', $settings ); if ( $settings['css'] ) { $wrapper_classes .= ' ' . vc_shortcode_custom_css_class( $settings['css'] ); } ob_start(); Main::setup_preview(); ?> <div class="wd-single-fbt wd-wpb<?php echo esc_attr( $wrapper_classes ); ?>"><?php Frontend::get_instance()->get_bought_together_products( $settings ); // Must be in one line. ?></div> <?php 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]