body.boxed { background:url("'.get_template_directory_uri().'/assets/images/bg-pattern/'.$bg_pattern.'");}'; } } add_action('wp_head','artech_background_pattern',10,0); /** * Display Sidebars */ if ( ! function_exists( 'artech_get_sidebars' ) ) { /** * Get Sidebar * * @since 1.0 * @param string $sidebar_id Sidebar Id. * @return void */ function artech_get_sidebars( $sidebar_id ) { if ( is_active_sidebar( $sidebar_id ) ) { dynamic_sidebar( $sidebar_id ); } elseif ( current_user_can( 'edit_theme_options' ) ) { ?>

'>

'primary_menu', 'container' => '', 'menu_class' => 'navbar-nav me-auto mb-2 mb-lg-0', 'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback', 'walker' => new WP_Bootstrap_Navwalker() ) ); } endif; add_action( 'artech_primary_navigation', 'artech_primary_navigation' ); // Artech Navigation Cart if ( ! function_exists( 'artech_navigation_cart' ) ) : function artech_navigation_cart() { $hide_show_cart = get_theme_mod( 'hide_show_cart','1'); if($hide_show_cart=='1' && class_exists( 'Woocommerce' )): ?>

date_i18n('Y', current_time( 'timestamp' )), '[site_title]' => get_bloginfo('name'), '[theme_author]' => sprintf(__('Artech', 'artech')), ); ?> cart->cart_contents_count; $header_cart = get_theme_mod('header_cart','fa-shopping-cart'); ?> 0 ) { ?> 0 esc_html__( 'fa-facebook', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_header_social_001', ), array( 'icon_value' => esc_html__( 'fa-google-plus', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_header_social_002', ), array( 'icon_value' => esc_html__( 'fa-twitter', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_header_social_003', ), array( 'icon_value' => esc_html__( 'fa-linkedin', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_header_social_004', ), array( 'icon_value' => esc_html__( 'fa-behance', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_header_social_005', ) ) ) ); } /* * * Slider Default */ function artech_get_slider_default() { return apply_filters( 'artech_get_slider_default', json_encode( array( array( 'image_url' => esc_url(get_template_directory_uri() . '/assets/images/slider/slide1.jpg'), 'title' => esc_html__( 'Start Your Design With Us For Your Business', 'artech' ), 'subtitle' => esc_html__( 'Experienced Tax Preparation', 'artech' ), 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour', 'artech' ), 'text2' => esc_html__( 'Get Started', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'button_second' => esc_html__( 'Read More', 'artech' ), 'link2' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_slider_001', ), array( 'image_url' => esc_url(get_template_directory_uri() . '/assets/images/slider/slide1.jpg'), 'title' => esc_html__( 'Start Your Design With Us For Your Business', 'artech' ), 'subtitle' => esc_html__( 'Experienced Tax Preparation', 'artech' ), 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour', 'artech' ), 'text2' => esc_html__( 'Get Started', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'button_second' => esc_html__( 'Read More', 'artech' ), 'link2' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_slider_002', ), array( 'image_url' => esc_url(get_template_directory_uri() . '/assets/images/slider/slide1.jpg'), 'title' => esc_html__( 'Start Your Design With Us For Your Business', 'artech' ), 'subtitle' => esc_html__( 'Experienced Tax Preparation', 'artech' ), 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour', 'artech' ), 'text2' => esc_html__( 'Get Started', 'artech' ), 'link' => esc_html__( '#', 'artech' ), 'button_second' => esc_html__( 'Read More', 'artech' ), 'link2' => esc_html__( '#', 'artech' ), 'id' => 'customizer_repeater_slider_003', ), ) ) ); } /* * * Service Default */ function artech_get_service_default() { return apply_filters( 'artech_get_service_default', json_encode( array( array( 'image_url' => esc_url(get_template_directory_uri() . '/assets/images/service1.jpg'), 'icon_value' => 'fa-paper-plane', 'title' => esc_html__( 'Web Marketing', 'artech' ), 'id' => 'customizer_repeater_service_001', ), array( 'image_url' => esc_url(get_template_directory_uri() . '/assets/images/service1.jpg'), 'icon_value' => 'fa-shield', 'title' => esc_html__( 'Risk Managment', 'artech' ), 'id' => 'customizer_repeater_service_002', ), array( 'image_url' => esc_url(get_template_directory_uri() . '/assets/images/service1.jpg'), 'icon_value' => 'fa-cloud', 'title' => esc_html__( 'Cloud Computing', 'artech' ), 'id' => 'customizer_repeater_service_003', ), array( 'image_url' => esc_url(get_template_directory_uri() . '/assets/images/service1.jpg'), 'icon_value' => 'fa-headphones', 'title' => esc_html__( 'BPO Service', 'artech' ), 'id' => 'customizer_repeater_service_004', ) ) ) ); } /* * * Funfact Default */ function artech_get_funfact_default() { return apply_filters( 'artech_get_funfact_default', json_encode( array( array( 'icon_value' => 'fa-suitcase', 'title' => esc_html__( '30', 'artech' ), 'subtitle' => esc_html__( 'Project Complete', 'artech' ), 'id' => 'customizer_repeater_funfact_001', ), array( 'icon_value' => 'fa-coffee', 'title' => esc_html__( '50', 'artech' ), 'subtitle' => esc_html__( 'Cup Of Coffee', 'artech' ), 'id' => 'customizer_repeater_funfact_002', ), array( 'icon_value' => 'fa-suitcase', 'title' => esc_html__( '40', 'artech' ), 'subtitle' => esc_html__( 'Active Client', 'artech' ), 'id' => 'customizer_repeater_funfact_003', ), array( 'icon_value' => 'fa-suitcase', 'title' => esc_html__( '100', 'artech' ), 'subtitle' => esc_html__( 'Happy Client', 'artech' ), 'id' => 'customizer_repeater_funfact_004', ), ) ) ); } /* * * Checkin Server Type */ function isLocalServer() { // List of common local server hostnames $localHostnames = array( 'localhost', '127.0.0.1', '::1' ); // Get the server's hostname $serverHostname = $_SERVER['HTTP_HOST']; // Normalize the hostname for comparison $normalizedHostname = strtolower(trim($serverHostname)); // Check if the normalized hostname is in the list of local hostnames if (in_array($normalizedHostname, $localHostnames)) { return true; // It's a local server } else { return false; // It's not a local server } }