esc_html__( 'Main menu', 'bakery-cafe' ), )); add_theme_support( 'align-wide' ); add_theme_support( 'woocommerce' ); add_theme_support('title-tag'); add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); add_theme_support( "responsive-embeds" ); add_theme_support( 'wp-block-styles' ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' )); add_theme_support( 'custom-logo', array( 'height' => 70, 'width' => 70, ) ); add_theme_support( 'custom-header', array( 'header-text' => false, 'width' => 1920, 'height' => 100, 'flex-width' => true, 'flex-height' => true, )); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_theme_support( 'post-formats', array('image','video','gallery','audio',) ); add_editor_style( array( '/css/editor-style.css' ) ); } add_action( 'after_setup_theme', 'bakery_cafe_after_setup_theme', 999 ); } require get_template_directory() .'/core/includes/customizer-notice/bakery-cafe-customizer-notify.php'; require get_template_directory() .'/core/includes/theme-breadcrumb.php'; require get_template_directory() .'/core/includes/main.php'; require get_template_directory() .'/core/includes/tgm.php'; require get_template_directory() . '/core/includes/customizer.php'; load_template( trailingslashit( get_template_directory() ) . '/core/includes/class-upgrade-pro.php' ); /**------------------------------------------------------------------------------------------ * Enqueue theme logo style. */ function bakery_cafe_logo_resizer() { $bakery_cafe_theme_logo_size_css = ''; $bakery_cafe_logo_resizer = get_theme_mod('bakery_cafe_logo_resizer'); $bakery_cafe_theme_logo_size_css = ' .custom-logo{ height: '.esc_attr($bakery_cafe_logo_resizer).'px !important; width: '.esc_attr($bakery_cafe_logo_resizer).'px !important; } '; wp_add_inline_style( 'bakery-cafe-style',$bakery_cafe_theme_logo_size_css ); } add_action( 'wp_enqueue_scripts', 'bakery_cafe_logo_resizer' ); /*-----------------------------------------------------------------------------------*/ /* Enqueue Global color style */ /*-----------------------------------------------------------------------------------*/ function bakery_cafe_global_color() { $bakery_cafe_theme_color_css = ''; $bakery_cafe_global_color = get_theme_mod('bakery_cafe_global_color'); $bakery_cafe_global_color_2 = get_theme_mod('bakery_cafe_global_color_2'); $bakery_cafe_copyright_bg = get_theme_mod('bakery_cafe_copyright_bg'); $bakery_cafe_theme_color_css = ' .wp-block-button__link,.top-header,a.cart-customlocation p.cart-item-box,#main-menu ul.children li a:hover, #main-menu ul.sub-menu li a:hover,p.slider_btn a,.inner-box,.woocommerce nav.woocommerce-pagination ul li span.current,.pagination .nav-links a:hover,.pagination .nav-links a:focus,.pagination .nav-links span.current,.bakery-cafe-pagination span.current,.bakery-cafe-pagination span.current:hover,.bakery-cafe-pagination span.current:focus,.bakery-cafe-pagination a span:hover,.bakery-cafe-pagination a span:focus,.comment-respond input#submit,.comment-reply a,.sidebar-area h4.title, .sidebar-area h1.wp-block-heading,.sidebar-area h2.wp-block-heading,.sidebar-area h3.wp-block-heading,.sidebar-area h4.wp-block-heading,.sidebar-area h5.wp-block-heading,.sidebar-area h6.wp-block-heading,.sidebar-area .wp-block-search__label,.sidebar-area .wp-block-search__button,.sidebar-area .tagcloud a, p.wp-block-tag-cloud a,.searchform input[type=submit], .sidebar-area .wp-block-search__button,.sidebar-area h4,.scroll-up a,nav.woocommerce-MyAccount-navigation ul li,.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,.woocommerce a.added_to_cart,.wp-block-woocommerce-cart .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-totals-coupon__button,.wp-block-woocommerce-cart .wc-block-components-product-badge{ background: '.esc_attr($bakery_cafe_global_color).'; } @media screen and (min-width: 320px) and (max-width: 767px) { .menu-toggle, .dropdown-toggle,button.close-menu { background: '.esc_attr($bakery_cafe_global_color).'; } } .searchform input[type=submit]:hover,.searchform input[type=submit]:focus{ background-color: '.esc_attr($bakery_cafe_global_color).'; } a:hover,a:focus,.logo a,.logo span,#main-menu ul li a,.header-search .open-search-form i,a.cart-customlocation i,.post-meta i,p.slider_btn a:hover,#story h3,.border-box .slider_btn a,.bread_crumb a:hover,.bread_crumb span{ color: '.esc_attr($bakery_cafe_global_color).'; } .slider .owl-carousel button.owl-dot.active{ border-color: '.esc_attr($bakery_cafe_global_color).'; } .register-box,.login-box,.blog_box,.comment-respond input#submit:hover,.comment-reply a:hover,.sidebar-area .tagcloud a:hover,.scroll-up a:hover,footer,nav.woocommerce-MyAccount-navigation ul li:hover,.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,.woocommerce a.added_to_cart:hover,.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{ background: '.esc_attr($bakery_cafe_global_color_2).'; } h1,h2,h3,h4,h5,h6,.login-box,.social-links a:hover,.top-header p,#main-menu a:hover,#main-menu ul li a:hover,#main-menu li:hover > a,#main-menu a:focus,#main-menu ul li a:focus,#main-menu li.focus > a,#main-menu li:focus > a,#main-menu ul li.current-menu-item > a,#main-menu ul li.current_page_item > a,#main-menu ul li.current-menu-parent > a,#main-menu ul li.current_page_ancestor > a,#main-menu ul li.current-menu-ancestor > a,#main-menu ul.children li a ,#main-menu ul.sub-menu li a,pre,.woocommerce ul.products li.product .price,.woocommerce div.product p.price, .woocommerce div.product span.price,{ color: '.esc_attr($bakery_cafe_global_color_2).'; } .sidebar-area select,.sidebar-area textarea, #comments textarea,.sidebar-area input[type="text"], #comments input[type="text"],.sidebar-area input[type="password"],.sidebar-area input[type="datetime"],.sidebar-area input[type="datetime-local"],.sidebar-area input[type="date"],.sidebar-area input[type="month"],.sidebar-area input[type="time"],.sidebar-area input[type="week"],.sidebar-area input[type="number"],.sidebar-area input[type="email"],.sidebar-area input[type="url"],.sidebar-area input[type="search"],.sidebar-area input[type="tel"],.sidebar-area input[type="color"],.sidebar-area .uneditable-input,#comments input[type="email"],#comments input[type="url"],.sidebar-area h4.title, .sidebar-area h1.wp-block-heading, .sidebar-area h2.wp-block-heading, .sidebar-area h3.wp-block-heading, .sidebar-area h4.wp-block-heading, .sidebar-area h5.wp-block-heading, .sidebar-area h6.wp-block-heading, .sidebar-area .wp-block-search__label{ border-color: '.esc_attr($bakery_cafe_global_color_2).'; } .copyright { background: '.esc_attr($bakery_cafe_copyright_bg).'; } '; wp_add_inline_style( 'bakery-cafe-style',$bakery_cafe_theme_color_css ); wp_add_inline_style( 'bakery-cafe-woocommerce-css',$bakery_cafe_theme_color_css ); } add_action( 'wp_enqueue_scripts', 'bakery_cafe_global_color' ); /*-----------------------------------------------------------------------------------*/ /* Get post comments */ /*-----------------------------------------------------------------------------------*/ if (!function_exists('bakery_cafe_comment')) : /** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. */ function bakery_cafe_comment($comment, $bakery_cafe_args, $depth){ if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) : ?>
cart->get_cart_contents_count() ));?>
get_setting( 'header_textcolor' ) ) { $wp_customize->remove_setting( 'header_textcolor' ); } if ( $wp_customize->get_control( 'header_textcolor' ) ) { $wp_customize->remove_control( 'header_textcolor' ); } }?>