PATH:
home
/
thebhoeo
/
.trash
/
woodmart
/
inc
/
shortcodes
<?php /** * Page title shortcode. * * @package WoodMart */ if ( ! defined( 'WOODMART_THEME_DIR' ) ) { exit( 'No direct script access allowed' ); } use XTS\Modules\Layouts\Global_Data as Builder_Data; use XTS\Modules\Layouts\Main; if ( ! function_exists( 'woodmart_shortcode_page_title' ) ) { /** * Page title shortcode. * * @param array $settings Shortcode attributes. * @return string */ function woodmart_shortcode_page_title( $settings ) { $default_settings = array( 'css' => '', 'enable_title' => 'yes', 'enable_breadcrumbs' => 'yes', 'enable_categories' => 'yes', ); $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(); Builder_Data::get_instance()->set_data( 'builder', true ); Builder_Data::get_instance()->set_data( 'layout_id', get_the_ID() ); Builder_Data::get_instance()->set_data( 'is_post_layout', Main::get_instance()->has_custom_layout( 'single_post' ) ); Main::setup_preview(); woodmart_enqueue_inline_style( 'el-page-title-builder' ); if ( woodmart_woocommerce_installed() && ( is_product_taxonomy() || woodmart_is_shop_archive() ) ) { woodmart_enqueue_inline_style( 'woo-shop-page-title' ); if ( ! woodmart_get_opt( 'shop_title' ) ) { woodmart_enqueue_inline_style( 'woo-shop-opt-without-title' ); } if ( woodmart_get_opt( 'shop_categories' ) ) { woodmart_enqueue_inline_style( 'shop-title-categories' ); woodmart_enqueue_inline_style( 'woo-categories-loop-nav-mobile-accordion' ); } } ?> <div class="wd-page-title-el wd-wpb<?php echo esc_attr( $wrapper_classes ); ?>"> <?php woodmart_page_title(); ?> </div> <?php Main::restore_preview(); return ob_get_clean(); } }
[-] categories.php
[edit]
[-] brands.php
[edit]
[-] user-panel.php
[edit]
[-] page-heading.php
[edit]
[-] testimonials.php
[edit]
[-] image-hotspot.php
[edit]
[-] posts-slider.php
[edit]
[-] breadcrumbs.php
[edit]
[-] video.php
[edit]
[-] table.php
[edit]
[-] timeline.php
[edit]
[-] contact-form-7.php
[edit]
[-] product-filters.php
[edit]
[-] marquee.php
[edit]
[-] info-box.php
[edit]
[-] social.php
[edit]
[-] toggle.php
[edit]
[-] row-divider.php
[edit]
[-] title.php
[edit]
[-] images-gallery.php
[edit]
[-] responsive-text-block.php
[edit]
[-] image.php
[edit]
[-] team-member.php
[edit]
[-] accordion.php
[edit]
[-] size-guide.php
[edit]
[-] list.php
[edit]
[-] mailchimp.php
[edit]
[-] text-block.php
[edit]
[-] products-tabs.php
[edit]
[-] ajax-search.php
[edit]
[-] slider.php
[edit]
[-] menu-price.php
[edit]
[-] page-title.php
[edit]
[-] blog.php
[edit]
[-] popup.php
[edit]
[-] twitter.php
[edit]
[-] mega-menu.php
[edit]
[-] sidebar.php
[edit]
[-] instagram.php
[edit]
[+]
..
[-] pricing-tables.php
[edit]
[-] nested-carousel.php
[edit]
[-] compare-images.php
[edit]
[-] tabs.php
[edit]
[-] off-canvas-column-btn.php
[edit]
[-] 3d-view.php
[edit]
[-] google-map.php
[edit]
[-] html-block.php
[edit]
[-] countdown-timer.php
[edit]
[-] gallery.php
[edit]
[-] promo-banner.php
[edit]
[-] button.php
[edit]
[-] portfolio.php
[edit]
[-] products.php
[edit]
[-] extra-menu.php
[edit]
[-] open-street-map.php
[edit]
[-] counter.php
[edit]
[-] author-area.php
[edit]