<?php

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

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