<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Theme footer settings.
 */
		$wp_customize->add_section(
			'wrockmetro_theme_footers',
			array(
				'title'       => __( 'Footer Settings', 'wrock-metro' ),
				'capability'  => 'edit_theme_options',
				'description' => __( 'Settings Related to footer', 'wrock-metro' ),
				'priority'    => apply_filters( 'wrockmetro_theme_footers_options_priority', 170 ),
			)
		);
		
		$wp_customize->add_setting(
			'wrockmetro_site_info_override',
			array(
				'default'           => 'Proudly powered by WordPress | Design Wrock Metro by InsertCart.com',
				'type'              => 'theme_mod',
				'sanitize_callback' => 'wp_kses_post',
				'capability'        => 'edit_theme_options',
			)
		);

		$wp_customize->add_control(
			new WP_Customize_Control(
				$wp_customize,
				'wrockmetro_site_info_override',
				array(
					'label'       => __( 'Footer Site Info', 'wrock-metro' ),
					'description' => __( 'Override Wrock Metro\'s site info located at the footer of the page.', 'wrock-metro' ),
					'section'     => 'wrockmetro_theme_footers',
					'type'        => 'textarea',
					'priority'    => 60,
				)));
		
		//Footer bg
		$wp_customize->add_setting( 'wrockmetro_footerbg' , array(
			'default'     => '#e9ecef',
			'transport'   => 'postMessage',
			'sanitize_callback'	=> 'sanitize_hex_color',
		) );
		$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wrockmetro_footerbg', array(
		'label'        => __( 'Footer Widget Area', 'wrock-metro' ),
		'description'        => __( 'Footer Widget Area Background Color', 'wrock-metro' ),
		'section'    => 'wrockmetro_theme_footers',
		'settings'   => 'wrockmetro_footerbg',
		) ) );
		//Footer bg
		$wp_customize->add_setting( 'wrockmetro_footer_copy' , array(
			'default'     => '#494949',
			'transport'   => 'postMessage',
			'sanitize_callback'	=> 'sanitize_hex_color',
		) );
		$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wrockmetro_footer_copy', array(
		'label'        => __( 'Footer Copyright Area', 'wrock-metro' ),
		'description'        => __( 'Footer Copyright Background Color', 'wrock-metro' ),
		'section'    => 'wrockmetro_theme_footers',
		'settings'   => 'wrockmetro_footer_copy',
		) ) );