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

	$wp_customize->add_setting(
		'phnewspaper-menu-text-color', array(
			'default'	=>	'#232323',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewspaper-menu-text-color', array(
				'label'		=>	__('Menu Text Color', 'ph-news-paper'),
				'description' =>	__('Used by navigation links in main menu.', 'ph-news-paper'),
				'section'	=>	'colors',
				'settings'	=>	'phnewspaper-menu-text-color',
				'priority'	=>	30
			)	
		)
	);

	$wp_customize->add_setting(
		'phnewspaper-bg-plain-color', array(
			'default'	=>	'#fff',
			'sanitize_callback'	=>	'sanitize_hex_color'
		)
	);
	
	$wp_customize->add_control(
		new WP_Customize_Color_Control(
			$wp_customize, 'phnewspaper-bg-plain-color', array(
				'label'		=>	__('Body Background Color', 'ph-news-paper'),
				'section'	=>	'colors',
				'settings'	=>	'phnewspaper-bg-plain-color',
				'priority'	=>	30
			)	
		)
	);
		
}
add_action('customize_register','phnewspaper_colors_customize_register');