esc_html__( 'Main menu', 'automobile-car-services' ), )); add_theme_support( 'responsive-embeds' ); add_theme_support( 'woocommerce' ); add_theme_support( 'align-wide' ); add_theme_support('title-tag'); add_theme_support('automatic-feed-links'); add_theme_support( 'wp-block-styles' ); add_theme_support('post-thumbnails'); add_theme_support( 'custom-background', array( 'default-color' => 'f3f3f3' )); add_theme_support( 'custom-logo', array( 'height' => 70, 'width' => 70, ) ); add_theme_support( 'custom-header', array( 'header-text' => false, 'width' => 1920, 'height' => 100 )); 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', 'automobile_car_services_after_setup_theme', 999 ); } require get_template_directory() .'/core/includes/customizer-notice/automobile-car-services-customizer-notify.php'; require get_template_directory() .'/core/includes/main.php'; require get_template_directory() .'/core/includes/theme-breadcrumb.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' ); require get_template_directory() .'/core/includes/meta-data.php'; /*-----------------------------------------------------------------------------------*/ /* Enqueue theme logo style */ /*-----------------------------------------------------------------------------------*/ function automobile_car_services_logo_resizer() { $automobile_car_services_theme_logo_size_css = ''; $automobile_car_services_logo_resizer = get_theme_mod('automobile_car_services_logo_resizer'); $automobile_car_services_theme_logo_size_css = ' .custom-logo{ height: '.esc_attr($automobile_car_services_logo_resizer).'px !important; width: '.esc_attr($automobile_car_services_logo_resizer).'px !important; } '; wp_add_inline_style( 'automobile-car-services-style',$automobile_car_services_theme_logo_size_css ); } add_action( 'wp_enqueue_scripts', 'automobile_car_services_logo_resizer' ); /*-----------------------------------------------------------------------------------*/ /* Enqueue Global color style */ /*-----------------------------------------------------------------------------------*/ function automobile_car_services_global_color() { $automobile_car_services_theme_color_css = ''; $automobile_car_services_global_color = get_theme_mod('automobile_car_services_global_color'); $automobile_car_services_global_color_2 = get_theme_mod('automobile_car_services_global_color_2'); $automobile_car_services_copyright_bg = get_theme_mod('automobile_car_services_copyright_bg'); $automobile_car_services_theme_color_css = ' .wp-block-button__link,.social-links,#main-menu ul.children ,#main-menu ul.sub-menu,p.slider-button a,.slider button.owl-prev i, .slider button.owl-next i,.what-we-do-left:hover i,.what-we-do-right:hover i,.scroll-up a,.pagination .nav-links a:hover,.pagination .nav-links a:focus,.pagination .nav-links span.current,.automobile-car-services-pagination span.current,.automobile-car-services-pagination span.current:hover,.automobile-car-services-pagination span.current:focus,.automobile-car-services-pagination a span:hover,.automobile-car-services-pagination a span:focus,.woocommerce nav.woocommerce-pagination ul li span.current,.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],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 { background: '.esc_attr($automobile_car_services_global_color).'; } #site-navigation { background: rgba(0, 0, 0, 0) linear-gradient(90deg, '.esc_attr($automobile_car_services_global_color).' 27.5%, rgba(0, 0, 0, 0) 27%) repeat scroll 0 0; } @media screen and (min-width: 320px) and (max-width: 767px) { .menu-toggle, .dropdown-toggle,button.close-menu { background: '.esc_attr($automobile_car_services_global_color).'; } } .searchform input[type=submit]:hover,.searchform input[type=submit]:focus{ background-color: '.esc_attr($automobile_car_services_global_color).'; } a:hover,a:focus,#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,.post-meta i,#what-we-do h2,.what-we-do-left i,.what-we-do-right i,.bread_crumb a:hover,.bread_crumb span,#what-we-do h2,.woocommerce ul.products li.product .price,.woocommerce div.product p.price, .woocommerce div.product span.price { color: '.esc_attr($automobile_car_services_global_color).'; } .blog_box h3{ border-color: '.esc_attr($automobile_car_services_global_color).'; } .copyright { background: '.esc_attr($automobile_car_services_copyright_bg).'; } '; wp_add_inline_style( 'automobile-car-services-style',$automobile_car_services_theme_color_css ); wp_add_inline_style( 'automobile-car-services-woocommerce-css',$automobile_car_services_theme_color_css ); } add_action( 'wp_enqueue_scripts', 'automobile_car_services_global_color' ); /*-----------------------------------------------------------------------------------*/ /* Get post comments */ /*-----------------------------------------------------------------------------------*/ if (!function_exists('automobile_car_services_comment')) : /** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. */ function automobile_car_services_comment($comment, $args, $depth){ if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) : ?>