__( 'Primary' ),
      'bottom'  =>__( 'Bottom' ),
      'top'     =>__( 'Top' )
    ));
    add_theme_support( 'html5', array(
      'search-form',
      'comment-form',
      'comment-list',
      'caption',
    ));
    add_theme_support( 'customize-selective-refresh-widgets' );
    add_theme_support( 'editor-styles' );
	add_theme_support( 'disable-custom-colors' );
	add_theme_support( 'editor-color-palette', array(
		array(
			'name'  => __( 'Green' ),
			'slug'  => 'green',
			'color' => '#325363',
		),
		array(
			'name'  => __( 'Purple' ),
			'slug'  => 'purple',
			'color'	=> '#343C70',
		),
		array(
			'name'  => __( 'Blue' ),
			'slug'  => 'blue',
			'color' => '#5177B0',
		),
		array(
			'name'	=> __( 'Red' ),
			'slug'	=> 'red',
			'color'	=> '#CC7C84',
		),
		array(
			'name'	=> __( 'Yellow' ),
			'slug'	=> 'yellow',
			'color'	=> '#E0DC67',
		),
		array(
			'name'	=> __( 'Teal' ),
			'slug'	=> 'teal',
			'color'	=> '#50A7AD',
		),
	 ));
  }
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' );
/**********************************
######## Gutenberg Editor #########
***********************************/
function hp_add_editor_styles() {
  add_editor_style([
    'css/custom.css',
    'style.css'
  ] );
}
add_action( 'admin_init', 'hp_add_editor_styles' );
function hp_gutenberg_scripts() {
	wp_enqueue_script( 'hp-editor', get_stylesheet_directory_uri() . '/js/editor.js', array( 'wp-blocks', 'wp-dom' ), filemtime( get_stylesheet_directory() . '/js/editor.js' ), true );
}
add_action( 'enqueue_block_editor_assets', 'hp_gutenberg_scripts' );
function hp_gutenberg_style() {
    echo '';
}
add_action('admin_head', 'hp_gutenberg_style');
add_filter( 'render_block', function( $block_content, $block ) {
	$block_content = str_replace(
		'wp-block-button__link',
		'wp-block-button__link btn',
		$block_content
	);
	return $block_content;
}, 5, 2 );
/**********************************
###### Seamless Donations #########
***********************************/
function hp_seamless_style() {
  if ( !is_page('donate') ) {
    wp_deregister_style('seamless_donations_css');
  }
}
add_action('wp_print_styles', 'hp_seamless_style', 100);
function hp_seamless_scripts() {
    if ( !is_page('donate') ) {
        wp_dequeue_script( 'seamless_javascript_code' );
        wp_deregister_script( 'seamless_javascript_code' );
        wp_dequeue_script( 'seamless_javascript_uuid' );
        wp_deregister_script( 'seamless_javascript_uuid' );
    }
}
add_action( 'wp_enqueue_scripts', 'hp_seamless_scripts', 100);
function hp_seamless_script() {
    if ( is_page(200) ) { ?>