admin_url( 'admin-ajax.php' ) ) ); } function bizstrait_menu() { ?> ', $args ); // add classes foreach ( $links as $key => $link ) { if ( strpos( $link, 'style="font-size: 8pt;"' ) ) { $link = preg_replace( '/(class\w?=\w?".*?)"/', '$1 small"', $link ); } if ( strpos( $link, 'style="font-size: 22pt;"' ) ) { $link = preg_replace( '/(class\w?=\w?".*?)"/', '$1 large"', $link ); } $links[ $key ] = $link; } $result = implode( '', $links ); // remove inline styling $patterns = '/style=".*?"/'; $replacements = ''; $result = preg_replace( $patterns, $replacements, $result ); return $result; } function extend_tag_cloud( $tag_data ) { return array_map( function ( $item ) { $item['class'] .= ' bizstrait-widget-tags'; return $item; }, (array) $tag_data ); } public function copyright() { echo wp_kses_post(get_theme_mod('copyright_text', __('Copyright © 2022 | Powered by WordPress | Bizstrait theme by Unibird Tech', 'bizstrait'))); } public function footerbar() { if ( get_theme_mod( 'copyright_display', 1 ) || get_theme_mod( 'footer_privacy_policy', 1 ) ) { ?>
' . $txt . ''; } ?>
55, 'width' => 150, 'flex-height' => true, 'flex-width' => true, ); $custom_background_settings = array( 'default-color' => apply_filters( 'bizstrait_default_background_color', 'E5E5E5' ), ); add_theme_support( 'title-tag' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'custom-logo', $logo_settings ); add_theme_support( 'html5', array( 'search-form' ) ); add_theme_support( 'custom-background', $custom_background_settings ); add_theme_support( 'header-footer-elementor' ); // woocommerce support add_theme_support( 'woocommerce' ); // Woocommerce Gallery Support add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'align-wide' ); add_theme_support( 'responsive-embeds' ); load_theme_textdomain( 'bizstrait', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'bizstrait' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'bizstrait_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_editor_style(); } function pageTitle() { if ( is_home() && is_front_page() ) { echo esc_html__( 'Home', 'bizstrait' ); } elseif ( is_home() || is_front_page() ) { echo esc_html( single_post_title() ); } else { bizstrait_page_title(); } } /* BreadCrumb & Title */ function breadcrumbs_center_style_fn( $stl ) { if ( $stl == '1' ) { ?>

pageTitle(); ?>

pageTitle(); ?>