'', 'default-image' => '', 'default-repeat' => '', 'default-position-x' => '', 'default-attachment' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' )); add_image_size( 'doctor-clinic-featured-image', 2000, 1200, true ); add_image_size( 'doctor-clinic-thumbnail-avatar', 100, 100, true ); $GLOBALS['content_width'] = 525; register_nav_menus( array( 'primary' => __( 'Primary Menu', 'doctor-clinic' ), ) ); add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Add theme support for Custom Logo. add_theme_support( 'custom-logo', array( 'width' => 250, 'height' => 250, 'flex-width' => true, ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, and column width. */ add_editor_style( array( 'assets/css/editor-style.css', doctor_clinic_fonts_url() ) ); // Theme Activation Notice global $pagenow; if ( is_admin() && ('themes.php' == $pagenow) && isset( $_GET['activated'] ) ) { add_action( 'admin_notices', 'doctor_clinic_activation_notice' ); } } add_action( 'after_setup_theme', 'doctor_clinic_setup' ); // Notice after Theme Activation function doctor_clinic_activation_notice() { echo '
'; echo '

'. esc_html__( 'Welcome to Luzuk!!', 'doctor-clinic' ) .'

'; echo '

'. esc_html__( 'Thank you for choosing Doctor Clinic theme. It will be our pleasure to have you on our Welcome page to serve you better.', 'doctor-clinic' ) .'

'; echo '

'. esc_html__( 'GET STARTED', 'doctor-clinic' ) .'

'; echo '
'; } function doctor_clinic_widgets_init() { register_sidebar( array( 'name' => __( 'Blog Sidebar', 'doctor-clinic' ), 'id' => 'sidebar-1', 'description' => __( 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'doctor-clinic' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Sidebar 2', 'doctor-clinic' ), 'id' => 'sidebar-2', 'description' => __( 'Add widgets here to appear in your pages and posts', 'doctor-clinic' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Sidebar 3', 'doctor-clinic' ), 'id' => 'sidebar-3', 'description' => __( 'Add widgets here to appear in your pages and posts', 'doctor-clinic' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 1', 'doctor-clinic' ), 'id' => 'footer-1', 'description' => __( 'Add widgets here to appear in your footer.', 'doctor-clinic' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 2', 'doctor-clinic' ), 'id' => 'footer-2', 'description' => __( 'Add widgets here to appear in your footer.', 'doctor-clinic' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 3', 'doctor-clinic' ), 'id' => 'footer-3', 'description' => __( 'Add widgets here to appear in your footer.', 'doctor-clinic' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer 4', 'doctor-clinic' ), 'id' => 'footer-4', 'description' => __( 'Add widgets here to appear in your footer.', 'doctor-clinic' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'doctor_clinic_widgets_init' ); function doctor_clinic_fonts_url(){ $font_families = array( 'Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900' ); $fonts_url = add_query_arg( array( 'family' => implode( '&family=', $font_families ), 'display' => 'swap', ), 'https://fonts.googleapis.com/css2' ); $contents = wptt_get_webfont_url( esc_url_raw( $fonts_url ) ); return $contents; } //Enqueue scripts and styles. function doctor_clinic_scripts() { // Add custom fonts, used in the main stylesheet. wp_enqueue_style( 'doctor-clinic-fonts', doctor_clinic_fonts_url(), array(), null ); //Bootstarp wp_enqueue_style( 'bootstrap-css', esc_url(get_template_directory_uri()).'/assets/css/bootstrap.css' ); // Theme stylesheet. wp_enqueue_style( 'doctor-clinic-basic-style', get_stylesheet_uri() ); // Load the Internet Explorer 9 specific stylesheet, to fix display issues in the Customizer. if ( is_customize_preview() ) { wp_enqueue_style( 'doctor-clinic-ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'doctor-clinic-style' ), '1.0' ); wp_style_add_data( 'doctor-clinic-ie9', 'conditional', 'IE 9' ); } // Load the Internet Explorer 8 specific stylesheet. wp_enqueue_style( 'doctor-clinic-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'doctor-clinic-style' ), '1.0' ); wp_style_add_data( 'doctor-clinic-ie8', 'conditional', 'lt IE 9' ); //font-awesome wp_enqueue_style( 'font-awesome-css', esc_url(get_template_directory_uri()).'/assets/css/fontawesome-all.css' ); require get_parent_theme_file_path( '/lz-custom-style.php' ); wp_add_inline_style( 'doctor-clinic-basic-style',$doctor_clinic_custom_style ); // Load the html5 shiv. wp_enqueue_script( 'html5-js', get_theme_file_uri( '/assets/js/html5.js' ), array(), '3.7.3' ); wp_script_add_data( 'html5', 'conditional', 'lt IE 9' ); wp_enqueue_script( 'doctor-clinic-navigation-jquery', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '2.1.2', true ); wp_enqueue_script( 'bootstrap-js', esc_url(get_template_directory_uri()) . '/assets/js/bootstrap.js', array('jquery') ); wp_enqueue_script( 'jquery-superfish', esc_url(get_template_directory_uri()) . '/assets/js/jquery.superfish.js', array('jquery') ,'',true); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'doctor_clinic_scripts' ); function doctor_clinic_front_page_template( $template ) { return is_home() ? '' : $template; } add_filter( 'frontpage_template', 'doctor_clinic_front_page_template' ); function doctor_clinic_sanitize_dropdown_pages( $page_id, $setting ) { // Ensure $input is an absolute integer. $page_id = absint( $page_id ); // If $page_id is an ID of a published page, return it; otherwise, return the default. return ( 'publish' == get_post_status( $page_id ) ? $page_id : $setting->default ); } function doctor_clinic_sanitize_choices( $input, $setting ) { global $wp_customize; $control = $wp_customize->get_control( $setting->id ); if ( array_key_exists( $input, $control->choices ) ) { return $input; } else { return $setting->default; } } //footer Link define('DOCTOR_CLINIC_LIVE_DEMO',__('https://www.luzukdemo.com/demo/doctor-clinic/','doctor-clinic')); define('DOCTOR_CLINIC_PRO_DOCS',__('https://www.luzukdemo.com/docs/doctor-clinic/','doctor-clinic')); define('DOCTOR_CLINIC_BUY_NOW',__('https://www.luzuk.com/product/clinic-wordpress-theme/','doctor-clinic')); define('DOCTOR_CLINIC_SUPPORT',__('https://wordpress.org/support/theme/doctor-clinic/','doctor-clinic')); define('DOCTOR_CLINIC_CREDIT',__('https://www.luzuk.com/themes/free-doctor-wordpress-theme/','doctor-clinic')); if ( ! function_exists( 'doctor_clinic_credit' ) ) { function doctor_clinic_credit(){ echo "".esc_html__('Doctor Clinic WordPress Theme','doctor-clinic').""; } } /* Excerpt Limit Begin */ function doctor_clinic_string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(' ', $words); } function doctor_clinic_sanitize_phone_number( $phone ) { return preg_replace( '/[^\d+]/', '', $phone ); } function doctor_clinic_sanitize_checkbox( $input ) { // Boolean check return ( ( isset( $input ) && true == $input ) ? true : false ); } function doctor_clinic_sanitize_float( $input ) { return filter_var($input, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); } // Change number or products per row to 3 add_filter('loop_shop_columns', 'doctor_clinic_loop_columns'); if (!function_exists('doctor_clinic_loop_columns')) { function doctor_clinic_loop_columns() { return 3; // 3 products per row } } function doctor_clinic_breadcrumb() { if (!is_home()) { echo ''; bloginfo('name'); echo " "; if (is_category() || is_single()) { echo " > "; the_category(', '); if (is_single()) { echo " > "; echo " "; the_title(); echo ""; } } elseif (is_page()) { echo " > "; echo " "; the_title(); echo " "; } } } require get_parent_theme_file_path( '/inc/custom-header.php' ); require get_parent_theme_file_path( '/inc/template-tags.php' ); require get_parent_theme_file_path( '/inc/template-functions.php' ); require get_parent_theme_file_path( '/inc/customizer.php' ); require get_parent_theme_file_path( '/inc/getting-started/getting-started.php' ); require get_parent_theme_file_path( '/inc/wptt-webfont-loader.php' );