<?php
/**
* Register more header options
*
* @return void
* @since 1.0.0
*
* @package RareBiz WordPress theme
*/
function rarebiz_header_options(){
	RareBiz_Customizer::set(array(
		# Theme option
		'panel' => 'panel',
		# Theme Option > Header
		'section' => array(
		    'id'    => 'main-header',
		    'title' => esc_html__( 'Header Options', 'rarebiz' ),
		    'priority'    => 2,
		),
		# Theme Option > Header > settings
		'fields' => array(
			array(
				'id'	=> 'transparent-header',
				'label' => esc_html__( 'Transparent Header', 'rarebiz' ),
				'default' => true,
 				'type'  => 'toggle'
			),
			array(
			    'id'      	  => 'layout-header',
			    'label'   	  => esc_html__( 'Header Layout', 'rarebiz' ),
			    'type'    	  => 'buttonset',
			    'default' 	  => 'layout-1',
			    'choices' 	  => array(
		    	    'layout-1' => esc_html__( 'Layout 1', 'rarebiz' ),
		    	    'layout-2'  => esc_html__( 'Layout 2', 'rarebiz' ),
			    )
			),
			array(
				'id'      => 'header-bg-image',
				'label'   => esc_html__( 'Background Image', 'rarebiz' ),
				'type'    => 'image',
			),
			array(
				'id'      => 'header-bg-color',
				'label'   => esc_html__( 'Background Color', 'rarebiz' ),
				'default' => 'rgba(255,255,255,0)',
				'type'    => 'color-picker',
			)
		),
	));
}
add_action( 'init', 'rarebiz_header_options' );