<?php
/**
 * Created by PhpStorm.
 * User: adiardana
 * Date: 25/03/19
 * Time: 10.48
 */

function topbar_customizer_settings( $sections ) {

//    unset($sections['wpex_topbar_general']['settings']['top_bar_sticky']);
//    unset($sections['wpex_topbar_general']['settings']['top_bar_sticky_mobile']);
//    unset($sections['wpex_topbar_general']['settings']['top_bar_visibility']);
//    unset($sections['wpex_topbar_general']['settings']['top_bar_style']);
//    unset($sections['wpex_topbar_general']['settings']['top_bar_top_padding']);
//    unset($sections['wpex_topbar_general']['settings']['top_bar_bottom_padding']);
//    unset($sections['wpex_topbar_social']);

//    var_dump($sections);
//    var_dump($sections['wpex_topbar_content']['settings']['top_bar_content']);
    // change topbar content to text
    //$sections['wpex_topbar_content']['settings']['top_bar_content']['control']['type'] = 'text';

    // Add new setting under the header > logo section
    $sections['wpex_topbar_content']['settings']['top_bar_phone'] = array(
        'id' => 'top_bar_phone',
        'default' => '',
        'control' => array(
            'label' => __( 'Phone Content', 'total' ),
            'type' => 'text', // text, checkbox, textarea, dropdown, number, wpex-heading, wpex-fa-icon-select, wpex-sortable
//            'choices' => array(), // used for dropdowns
        ),
    );

    // Return settings
    return $sections;

}
add_filter( 'wpex_customizer_sections', 'topbar_customizer_settings' );