<?php
// Add Social Media Section
$wp_customize->add_section('thehoot_social-media', array(
    'title' => __('Social Media', 'thehoot'),
    'priority' => 30,
    'description' => __('Enter the URL to your account for each service for the icon to appear in the header.', 'thehoot')
));

// Add tiktok Setting
$wp_customize->add_setting('tiktok', array(
  'sanitize_callback' => 'thehoot_sanitize_text',
 ));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'tiktok', array(
    'label' => __('tiktok', 'thehoot'),
    'section' => 'thehoot_social-media',
    'settings' => 'tiktok',
    'description' => __('Enter your full tiktok URL', 'thehoot'),
    'input_attrs' => array(
    'placeholder' => __('Add your tiktok URL...', 'thehoot'),
        )
)));
// Add Facebook Setting
$wp_customize->add_setting('facebook', array( 'sanitize_callback' => 'thehoot_sanitize_text', ));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'facebook', array(
    'label' => __('Facebook', 'thehoot'),
    'section' => 'thehoot_social-media',
    'settings' => 'facebook',
    'description' => __('Enter your full FaceBook URL', 'thehoot'),
    'input_attrs' => array(
    'placeholder' => __('Add your FaceBook URL...', 'thehoot'),
        )
)));
// Add Instagram Setting
$wp_customize->add_setting('instagram', array( 'sanitize_callback' => 'thehoot_sanitize_text', ));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'instagram', array(
    'label' => __('Instagram', 'thehoot'),
    'section' => 'thehoot_social-media',
    'settings' => 'instagram',
    'description' => __('Enter your full Instagram URL', 'thehoot'),
    'input_attrs' => array(
    'placeholder' => __('Add your Instagram URL...', 'thehoot'),
        )
)));
// Add YouTube Setting
$wp_customize->add_setting('youtube', array( 'sanitize_callback' => 'thehoot_sanitize_text', ));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'youtube', array(
    'label' => __('YouTube', 'thehoot'),
    'section' => 'thehoot_social-media',
    'settings' => 'youtube',
    'description' => __('Enter your full YouTube URL', 'thehoot'),
    'input_attrs' => array(
    'placeholder' => __('Add your YouTube URL...', 'thehoot'),
        )
)));
//Add Spotify
$wp_customize->add_setting('spotify', array( 'sanitize_callback' => 'thehoot_sanitize_text',));
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'spotify', array(
    'label' => __('Spotify', 'thehoot'),
    'section' => 'thehoot_social-media',
    'settings' => 'spotify',
    'description' => __('Enter your full Spotify URL', 'thehoot'),
    'input_attrs' => array(
    'placeholder' => __('Add your Spotify URL...', 'thehoot'),
        )
)));
