esc_html__( 'Primary', 'bizpoint' ),
) );
// Switch default core markup to HTML5
add_theme_support( 'html5', array(
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'bizpoint_custom_background_args', array(
'default-color' => '424242',
'default-image' => '',
) ) );
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
// Add support for core custom logo
add_theme_support( 'custom-logo', array(
'height' => 250,
'width' => 250,
'flex-width' => true,
'flex-height' => true,
) );
}
endif;
add_action( 'after_setup_theme', 'bizpoint_setup' );
// Set content width
function bizpoint_content_width() {
$GLOBALS['content_width'] = apply_filters( 'bizpoint_content_width', 640 );
}
add_action( 'after_setup_theme', 'bizpoint_content_width', 0 );
// Register widget area.
function bizpoint_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'bizpoint' ),
'id' => 'sidebar-1',
'description' => esc_html__( 'Add widgets here for sidebar.', 'bizpoint' ),
'before_widget' => '',
'before_title' => '
',
) );
register_sidebar( array(
'name' => esc_html__( 'Header Right', 'bizpoint' ),
'id' => 'sidebar-header-right',
'description' => esc_html__( 'You can use this area for search bar, an advertisement, social icons or contact information.', 'bizpoint' ),
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'bizpoint_widgets_init' );
// Enqueue scripts and styles
function bizpoint_scripts() {
wp_enqueue_style( 'dashicons' );
wp_enqueue_style( 'bizpoint-fonts', '//fonts.googleapis.com/css?family=Montserrat:500|Open+Sans' );
wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.css', array(), 'v4.0.0-beta', 'all' );
wp_enqueue_style( 'owl-carousel', get_stylesheet_directory_uri() . '/css/owl/owl.carousel.css', array(), 'v2.2.1', 'all' );
wp_enqueue_style( 'owl-carousel-theme', get_stylesheet_directory_uri() . '/css/owl/owl.theme.default.css', array(), 'v2.2.1', 'all' );
wp_enqueue_style( 'slicknavcss', get_template_directory_uri() . '/css/slicknav.css', array(), 'v1.0.10', 'all' );
wp_enqueue_style( 'bizpoint-style', get_stylesheet_uri() );
wp_enqueue_script( 'bizpoint-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
wp_enqueue_script( 'bizpoint-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );
wp_enqueue_script( 'owl-carousel', get_template_directory_uri() . '/js/owl/owl.carousel.js', array('jquery'), 'v2.2.1', true );
wp_enqueue_script( 'slicknav', get_template_directory_uri() . '/js/jquery.slicknav.js', array('jquery'), 'v1.0.10', true );
if( is_rtl() ) {
wp_enqueue_script( 'bizpoint-main-rtl', get_template_directory_uri() . '/js/main-rtl.js', array('jquery'), '', true );
}
else {
wp_enqueue_script( 'bizpoint-main', get_template_directory_uri() . '/js/main.js', array('jquery'), '', true );
}
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'bizpoint_scripts' );
// Implement the Custom Header feature
// require get_template_directory() . '/inc/custom-header.php';
// Custom template tags for this theme.
require get_template_directory() . '/inc/template-tags.php';
// Functions which enhance the theme by hooking into WordPress.
require get_template_directory() . '/inc/template-functions.php';
// Include kirki toolkit helper
require get_template_directory() . '/inc/kirki/include-kirki.php';
require get_template_directory() . '/inc/tgmpa/tgm-plugins.php';
require get_template_directory() . '/inc/kirki/bizpoint-kirki.php';
// Customizer additions.
require get_template_directory() . '/inc/customizer.php';
// Customizer settings
require_once get_template_directory() . '/inc/customizer/settings.php';
// Load Jetpack compatibility file.
if ( defined( 'JETPACK__VERSION' ) ) {
require get_template_directory() . '/inc/jetpack.php';
}
// Load WooCommerce compatibility file.
if ( class_exists( 'WooCommerce' ) ) {
require get_template_directory() . '/inc/woocommerce.php';
}