/* Decoded by unphp.net */ '; $wrap .= '%3$s'; $wrap .= ''; return $wrap; } } // Main Menu fallback_cb if ( !function_exists('bakery_main_menu_fallback_cb') ) { function bakery_main_menu_fallback_cb($menu_location = 'main-menu-full') { $nav_menu_locations = get_theme_mod('nav_menu_locations'); if ( !isset($nav_menu_locations[$menu_location]) or $nav_menu_locations[$menu_location] == 0 ) { $menu = wp_page_menu( array( 'menu_id' => 'vu_mm-top', 'menu_class' => 'vu_mm-list vu_mm-top list-unstyled', 'container' => 'ul', 'echo' => false, 'before' => '', 'after' => '' ) ); $menu = preg_replace("/class='children'/", "class='children sub-menu'", $menu ); $menu = preg_replace("/page_item_has_children/", "page_item_has_children menu-item-has-children", $menu ); echo preg_replace("/current_page_item/", "current_page_item current-menu-item", $menu ); } } } // Print Page Header if ( !function_exists('bakery_page_header') ) { function bakery_page_header($post_id, $title = null, $subtitle = null, $bg = null) { $bakery_page_header_settings = bakery_get_post_meta( $post_id, 'bakery_page_header_settings' ); if ( isset($bakery_page_header_settings['show']) && ( $bakery_page_header_settings['show'] == 'no' || ( $bakery_page_header_settings['show'] == 'inherit' && bakery_get_option('page-header-show') == false ) ) ) { return; } $page_header_style = ( !isset($bakery_page_header_settings['style']) || $bakery_page_header_settings['style'] == 'inherit' || empty($bakery_page_header_settings['style']) ) ? bakery_get_option('page-header-style') : $bakery_page_header_settings['style']; if ( empty($title) ) { if ( !empty($bakery_page_header_settings['title']) ) { $title = $bakery_page_header_settings['title']; } else if ( is_front_page() and is_home() ) { $title = esc_html__('Latest Posts', 'bakery'); } else if ( is_single() and get_post_type() != 'product' ) { $title = ( get_option('page_for_posts', false) != false ) ? get_the_title( get_option('page_for_posts') ) : esc_html__('Latest Posts', 'bakery'); } else { $title = get_the_title($post_id); } } $title = apply_filters('bakery_page_header_title', $title, $post_id); if ( empty($subtitle) ) { $subtitle = $bakery_page_header_settings['subtitle']; } $subtitle = apply_filters('bakery_page_header_subtitle', $subtitle, $post_id); $breadcrumbs = ( isset($bakery_page_header_settings['breadcrumbs']) && ( $bakery_page_header_settings['breadcrumbs'] == 'yes' || ( $bakery_page_header_settings['breadcrumbs'] == 'inherit' && bakery_get_option('page-header-breadcrumbs') == true ) ) ) ? true : false; $height = ( empty($bakery_page_header_settings['height']) ) ? bakery_get_option('page-header-height') : $bakery_page_header_settings['height']; $height = apply_filters('bakery_page_header_height', $height, $post_id); if ( empty($bg) ) { $bg = absint($bakery_page_header_settings['bg']); } if ( empty($bg) ) { $bg = absint(bakery_get_option( array('page-header-bg-image', 'id') )); } $bg = apply_filters('bakery_page_header_bg', $bg, $post_id); $parallax = ( isset($bakery_page_header_settings['parallax']) && ( $bakery_page_header_settings['parallax'] == 'yes' || ( $bakery_page_header_settings['parallax'] == 'inherit' && bakery_get_option('page-header-parallax') == true ) ) ) ? true : false; $parallax = apply_filters('bakery_page_header_parallax', $parallax, $post_id); $color_overlay = ( !empty($bakery_page_header_settings['color-overlay']) ) ? $bakery_page_header_settings['color-overlay'] : ( (trim(bakery_get_option('page-header-color-overlay') != '') ) ? 'rgba('. bakery_hex2rgb( bakery_get_option('page-header-color-overlay'), true ) .','. bakery_get_option('page-header-color-overlay-opacity') .')' : '' ); $color_overlay = apply_filters('bakery_page_header_color_overlay', $color_overlay, $post_id); $extra_class = array(); if ( bakery_get_option( array('page-header-others-options', 'border') ) == true ) { array_push($extra_class, 'vu_ph-with-border'); } if ( bakery_get_option( array('page-header-others-options', 'pattern') ) == true ) { array_push($extra_class, 'vu_ph-with-pattern'); } ?>
>