<?php 
/**
 * Fields for color options
 * @since 1.0
 * @package evaWp
 */

function evawp_color_options(){	
	evawp_add_sections_and_fields( array(
		'section' => array(
			'id' => 'color_options',
			'title' => esc_html__( 'Color Options', 'evawp' ),
			'panel' => 'general_options',
			'priority' => 20,
		),
		'fields' => array(
			'primary_color' => array(
				'type'        => 'color',
				'label'       => esc_html__( 'Primary Color', 'evawp' ),
				'default'     => '#ed906f',
				'choices'     => array(
					'alpha' => true,
				),	
			),
			'secondary_color' => array(
				'type'        => 'color',
				'label'       => esc_html__( 'Secondary Color', 'evawp' ),
				'default'     => '#f40909',
				'choices'     => array(
					'alpha' => true,
				),	
			)
		)
	));
}

add_action( 'init', 'evawp_color_options' );