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
if ( ! function_exists( 'artech_footer_navigation' ) ) :
function artech_footer_navigation() {
wp_nav_menu(
array(
'theme_location' => 'footer_menu',
'container' => '',
'menu_class' => 'footer-menu',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker()
)
);
}
endif;
add_action( 'artech_footer_navigation', 'artech_footer_navigation' );
// Artech Navigation Search
if ( ! function_exists( 'artech_navigation_search' ) ) :
function artech_navigation_search() {
$hide_show_search = get_theme_mod( 'hide_show_search','1');
if($hide_show_search=='1'):
?>
cart->cart_contents_count;
$cart_url = wc_get_cart_url();
if ( $count > 0 ) {
?>
date_i18n('Y', current_time( 'timestamp' )),
'[site_title]' => get_bloginfo('name'),
'[theme_author]' => sprintf(__('Artech', 'artech')),
);
?>
icon_value ) ? apply_filters( 'artech_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
$social_link = ! empty( $social_item->link ) ? apply_filters( 'artech_translate_single_string', $social_item->link, 'Header section' ) : '';
?>
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',
)
)
)
);
}
/*
*
* Features Default
*/
function artech_get_features_default() {
return apply_filters(
'artech_get_features_default', json_encode(
array(
array(
'icon_value' => '',
'title' => esc_html__( 'Neurology', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_001',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Cardiology', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_002',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Radiation', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_003',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Immunology', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_004',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Gastroenterology', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_005',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Otolayngology', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_006',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Dermatology', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_007',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Hematology', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_008',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Dental Care', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_009',
),
array(
'icon_value' => '',
'title' => esc_html__( 'Podiatry', 'artech' ),
'link' => '#',
'id' => 'customizer_repeater_features_0010',
),
)
)
);
}
/*
*
* 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',
),
)
)
);
}