<?php

/**
 * Sidebar Theme Options
 *
 * @package voltmaster-electrician
 */

$voltmaster_electrician_default = voltmaster_electrician_get_default_theme_options();

$wp_customize->add_section('voltmaster_electrician_posts_section', array(

    'title' => esc_html__('Posts Section', 'voltmaster-electrician'),
    'capability' => 'edit_theme_options',
    'panel' => 'voltmaster_electrician_theme_section_panel'

));

// ///////// Date Text Color
$wp_customize->add_setting('date_text_color', array(
    'default' => '#000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'date_text_color', array(
    'section' => 'voltmaster_electrician_posts_section',
    'label' => esc_html__('Date Color', 'voltmaster-electrician'),
)));

// ///////// Heading Text Color
$wp_customize->add_setting('title_text_color', array(
    'default' => '#000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'title_text_color', array(
    'section' => 'voltmaster_electrician_posts_section',
    'label' => esc_html__('Title Color', 'voltmaster-electrician'),
)));

// ///////// Heading Text Color
$wp_customize->add_setting('post_text_color', array(
    'default' => '#212529',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_text_color', array(
    'section' => 'voltmaster_electrician_posts_section',
    'label' => esc_html__('Text Color', 'voltmaster-electrician'),
)));

// ///////// Readmore Text Color
$wp_customize->add_setting('post_readmore_text_color', array(
    'default' => '#000000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_readmore_text_color', array(
    'section' => 'voltmaster_electrician_posts_section',
    'label' => esc_html__('Read More Text Color', 'voltmaster-electrician'),
)));


