<?php

/**
 *  Faced Extra Option
 *
 * @since Faced 1.0.0
 *
 */
/*Extra Options*/
$wp_customize->add_section('faced_extra_section', array(
   'priority'       => 60,
   'capability'     => 'edit_theme_options',
   'theme_supports' => '',
   'title'          => __('Extra Options', 'faced'),
   'panel'        => 'faced_panel',
));

/*post published or updated date*/
$wp_customize->add_setting('faced_options[faced-post-published-updated-date]', array(
   'capability'        => 'edit_theme_options',
   'transport' => 'refresh',
   'default'           => $default['faced-post-published-updated-date'],
   'sanitize_callback' => 'faced_sanitize_select'
));
$wp_customize->add_control('faced_options[faced-post-published-updated-date]', array(
   'choices' => array(
      'post-published'    => __('Show Post Published Date', 'faced'),
      'post-updated'   => __('Show Post Updated Date', 'faced'),
   ),
   'label'     => __('Show Post Publish or Updated Date', 'faced'),
   'description' => __('Show either post published or updated date.', 'faced'),
   'section'   => 'faced_extra_section',
   'settings'  => 'faced_options[faced-post-published-updated-date]',
   'type'      => 'select',
   'priority'  => 10,
));
