esc_html__( 'Sidebar', 'biztrix' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'biztrix' ), 'widget-title' => '
', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
' ) ); register_sidebar( array( 'name' => esc_html__( 'Footer widget 1', 'biztrix' ), 'id' => 'biztrix-footer-1', 'description' => esc_html__( 'Add widgets here.', 'biztrix' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer widget 2', 'biztrix' ), 'id' => 'biztrix-footer-2', 'description' => esc_html__( 'Add widgets here.', 'biztrix' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer widget 3', 'biztrix' ), 'id' => 'biztrix-footer-3', 'description' => esc_html__( 'Add widgets here.', 'biztrix' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer widget 4', 'biztrix' ), 'id' => 'biztrix-footer-4', 'description' => esc_html__( 'Add widgets here.', 'biztrix' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'biztrix_widgets_init' ); if ( ! function_exists( 'biztrix_font_url' ) ) : /** * Register Google fonts. * Create your own wp_blog_fonts_url() function to override in a child theme. */ function biztrix_font_url() { $fonts_url = ''; $fonts = array(); $subsets = 'latin,latin-ext'; /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Hind font: on or off', 'biztrix' ) ) { $fonts[] = 'Hind:300,400,500,600,700'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'biztrix' ) ) { $fonts[] = 'Lato:100,100i,300,300i,400,400i,700,700i,900,900i'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'biztrix' ) ) { $fonts[] = 'Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Nunito font: on or off', 'biztrix' ) ) { $fonts[] = 'Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Open+Sans font: on or off', 'biztrix' ) ) { $fonts[] = 'Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'PT Serif font: on or off', 'biztrix' ) ) { $fonts[] = 'PT+Serif:400,400i,700,700i'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Poppins font: on or off', 'biztrix' ) ) { $fonts[] = 'Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Roboto Slab font: on or off', 'biztrix' ) ) { $fonts[] = 'Roboto+Slab:100,300,400,700'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Raleway font: on or off', 'biztrix' ) ) { $fonts[] = 'Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'; } /* translators: If there are characters in your language that are not supported by Playfair Display, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Roboto font: on or off', 'biztrix' ) ) { $fonts[] = 'Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i'; } if ( $fonts ) { $fonts_url = add_query_arg( array( 'family' => urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), 'https://fonts.googleapis.com/css' ); } return $fonts_url; } endif; function biztrix_scripts() { wp_enqueue_style('biztrix-font', biztrix_font_url(), array()); wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css'); wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.css'); wp_enqueue_style( 'jquery-owl-carousel',get_template_directory_uri() . '/assets/css/owl.carousel.css'); wp_enqueue_style( 'biztrix-plugins', get_template_directory_uri() . '/assets/css/plugins.css'); wp_enqueue_style( 'biztrix-style', get_stylesheet_uri(), array() ); wp_enqueue_style( 'biztrix-skin-1', get_template_directory_uri() . '/assets/css/skin-1.css'); wp_enqueue_style( 'biztrix-template',get_template_directory_uri() . '/assets/css/templete.css'); wp_enqueue_script('bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.js' , array('jquery'), '', true); wp_enqueue_script('owl.carousel', get_template_directory_uri() . '/assets/js/owl.carousel.js' , array(), '', true); wp_enqueue_script('biztrix-custom', get_template_directory_uri() . '/assets/js/custom.js' , array(), '', true); wp_enqueue_script('popper', get_template_directory_uri() . '/assets/js/popper.js' , array(), '', true); wp_enqueue_script( 'biztrix-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix.js', array(), true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'biztrix_scripts' );