<?php

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

/**
 * Theme footer settings.
 */
		$wp_customize->add_section(
			'poster_theme_footers',
			array(
				'title'       => __( 'Footer Settings', 'poster' ),
				'capability'  => 'edit_theme_options',
				'description' => __( 'Settings Related to footer', 'poster' ),
				'priority'    => apply_filters( 'poster_theme_footers_options_priority', 170 ),
			)
		);
		
		$wp_customize->add_setting(
			'poster_site_info_override',
			array(
				'default'           => 'Proudly powered by WordPress | Design Poster 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,
				'poster_site_info_override',
				array(
					'label'       => __( 'Footer Site Info', 'poster' ),
					'description' => __( 'Override Poster\'s site info located at the footer of the page.', 'poster' ),
					'section'     => 'poster_theme_footers',
					'type'        => 'textarea',
					'priority'    => 60,
				)));
		
		//Footer bg
		$wp_customize->add_setting( 'poster_footerbg' , array(
			'default'     => '#e9ecef',
			'transport'   => 'postMessage',
			'sanitize_callback'	=> 'sanitize_hex_color',
		) );
		$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'poster_footerbg', array(
		'label'        => __( 'Footer Widget Area', 'poster' ),
		'description'        => __( 'Footer Widget Area Background Color', 'poster' ),
		'section'    => 'poster_theme_footers',
		'settings'   => 'poster_footerbg',
		) ) );
		//Footer bg
		$wp_customize->add_setting( 'poster_footer_copy' , array(
			'default'     => '#494949',
			'transport'   => 'postMessage',
			'sanitize_callback'	=> 'sanitize_hex_color',
		) );
		$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'poster_footer_copy', array(
		'label'        => __( 'Footer Copyright Area', 'poster' ),
		'description'        => __( 'Footer Copyright Background Color', 'poster' ),
		'section'    => 'poster_theme_footers',
		'settings'   => 'poster_footer_copy',
		) ) );