esc_html__( 'Primary', 'hp' ),
    ));
    add_theme_support( 'html5', array(
      'comment-form',
      'comment-list',
      'caption',
    ));
    add_theme_support( 'customize-selective-refresh-widgets' );
    add_theme_support( 'editor-styles' );
    function hp_add_editor_styles() {
      add_editor_style([
        'css/bootstrap.css',
        'style.css'
      ] );
    }
    add_action( 'admin_init', 'hp_add_editor_styles' );
  }
endif;
add_action( 'after_setup_theme', 'hp_setup' );
function hp_content_width() {
	$GLOBALS['content_width'] = apply_filters( 'hp_content_width', 1170 );
}
add_action( 'after_setup_theme', 'hp_content_width', 0 );
function hp_widgets_init() {
    register_sidebar( array(
        'name'          => esc_html__( 'Sidebar', 'hp-theme' ),
        'id'            => 'sidebar-1',
        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),
        'before_widget' => '',
        'before_title'  => '
',
    ) );
    register_sidebar( array(
        'name'          => esc_html__( 'Footer 1', 'hp-theme' ),
        'id'            => 'footer-1',
        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),
        'before_widget' => '',
        'before_title'  => '',
    ) );
    register_sidebar( array(
        'name'          => esc_html__( 'Footer 2', 'hp-theme' ),
        'id'            => 'footer-2',
        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),
        'before_widget' => '',
        'before_title'  => '',
    ) );
    register_sidebar( array(
        'name'          => esc_html__( 'Footer 3', 'hp-theme' ),
        'id'            => 'footer-3',
        'description'   => esc_html__( 'Add widgets here.', 'hp-theme' ),
        'before_widget' => '',
        'before_title'  => '',
    ) );
}
add_action( 'widgets_init', 'hp_widgets_init' );
function hp_scripts() {
  wp_enqueue_style( 'hp-boot-css', get_template_directory_uri() . '/css/bootstrap.css' );
  wp_enqueue_style( 'hp-jasny-boot-css', get_template_directory_uri() . '/css/jasny-bootstrap.css' );
  wp_enqueue_style( 'hp-boot-font', get_template_directory_uri() . '/css/bootstrap-icons.css' );
  wp_enqueue_style( 'hp-style', get_stylesheet_uri() );
	wp_enqueue_script('jquery');
  wp_enqueue_script('wp-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus.js', array(), '20151215', true );
  wp_enqueue_script('hp-boot-js', get_template_directory_uri() . '/js/bootstrap.bundle.js', array(), '', true );
  wp_enqueue_script('hp-jasny-boot-js', get_template_directory_uri() . '/js/jasny-bootstrap.js', array(), '', true );
  wp_enqueue_script('hp-init', get_template_directory_uri() . '/js/init.js', array(), '', true );
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
		wp_enqueue_script( 'comment-reply' );
	}
}
add_action( 'wp_enqueue_scripts', 'hp_scripts' );