<?php 
function phnewsfeed_colors_customize_register($wp_customize) {
	
	$wp_customize->get_control('header_textcolor')->label = __('Site Title Color','ph-news-feed');
	$wp_customize->get_section('colors')->title = __('Website Color Scheme','ph-news-feed');
	
	$wp_customize->add_setting(
		'phnewsfeed-background-darker-color', array(
			'default'	=>	'#EEEEEE',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-background-darker-color', array(
				'label'		=>	__('Background (Darker Shade)', 'ph-news-feed'),
				'description' =>	__('A Slightly darker shade of the main background color. Helpful in adding accents to the design.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-background-darker-color',
				'priority'	=>	30
			)	
		)
	);
	
	$wp_customize->add_setting(
		'phnewsfeed-primary-color', array(
			'default'	=>	'#f9095d',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-primary-color', array(
				'label'		=>	__('Primary Color', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-primary-color',
				'priority'	=>	30
			)	
		)
	);
	
	$wp_customize->add_setting(
		'phnewsfeed-primary-text-color', array(
			'default'	=>	'#f9ffe7',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-primary-text-color', array(
				'label'		=>	__('Primary Text Color', 'ph-news-feed'),
				'description' => __('This is the color of the text, where the background color is Primary color. Like Menu Bar, Buttons, etc.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-primary-text-color',
				'priority'	=>	30
			)	
		)
	);
	
	//Secondary
	$wp_customize->add_setting(
		'phnewsfeed-secondary-color', array(
			'default'	=>	'#4a58d9',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-secondary-color', array(
				'label'		=>	__('Secondary Color', 'ph-news-feed'),
				'description' => __('Secondary Color. Used for Links within content, sidebar, etc.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-secondary-color',
				'priority'	=>	30
			)	
		)
	);
	
	$wp_customize->add_setting(
		'phnewsfeed-secondary-text-color', array(
			'default'	=>	'#f9ffe7',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-secondary-text-color', array(
				'label'		=>	__('Secondary Text Color', 'ph-news-feed'),
				'description' => __('This is the color of the text, where the background color is Secondary color. Like Module Headings, Some Buttons, etc.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-secondary-text-color',
				'priority'	=>	30
			)	
		)
	);
	
	$wp_customize->add_setting(
		'phnewsfeed-secondary-dark-color', array(
			'default'	=>	'#5241c1',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-secondary-dark-color', array(
				'label'		=>	__('Secondary Color (Darker Shade)', 'ph-news-feed'),
				'description' => __('Darker shade of Secondary color. Used on Link Hover, etc.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-secondary-dark-color',
				'priority'	=>	30
			)	
		)
	);
	
	//Text Colors.
	$wp_customize->add_setting(
		'phnewsfeed-text-color', array(
			'default'	=>	'#555555',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-text-color', array(
				'label'		=>	__('Text Color', 'ph-news-feed'),
				'description' =>	__('Text Color. Main color of the content.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-text-color',
				'priority'	=>	30
			)	
		)
	);
	
	$wp_customize->add_setting(
		'phnewsfeed-text-dark-color', array(
			'default'	=>	'#111111',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-text-dark-color', array(
				'label'		=>	__('Text Color (Darker shade)', 'ph-news-feed'),
				'description' =>	__('Darker Shade of the text color. Used for headings and important text.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-text-dark-color',
				'priority'	=>	30
			)	
		)
	);
	
	$wp_customize->add_setting(
		'phnewsfeed-text-light-color', array(
			'default'	=>	'#777777',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewsfeed-text-light-color', array(
				'label'		=>	__('Text Color (Lighter Shade)', 'ph-news-feed'),
				'description' =>	__('Lighter Shade of Text Color. Used for Top Menu, Meta Data and other text.', 'ph-news-feed'),
				'section'	=>	'colors',
				'settings'	=>	'phnewsfeed-text-light-color',
				'priority'	=>	30
			)	
		)
	);
		
}
add_action('customize_register','phnewsfeed_colors_customize_register');