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

function footer_customizer_settings( $sections ){
//    var_dump($sections['wpex_footer_widgets_columns']);

    unset($sections['wpex_footer_general']);
    unset($sections['wpex_footer_widgets']);
    unset($sections['wpex_footer_widgets_titles']);
    unset($sections['wpex_footer_bottom']['settings']['bottom_footer_text_align']);
    unset($sections['wpex_footer_bottom']['settings']['bottom_footer_padding']);

    $sections['wpex_footer_bottom']['settings']['row_1'] = array(
        'id' => 'row_1',
        'default' => '',
        'control' => array(
            'label' => __( 'Footer 1st row', 'total' ),
            'type' => 'text',
        ),
    );
    $sections['wpex_footer_bottom']['settings']['row_2'] = array(
        'id' => 'row_2',
        'default' => '',
        'control' => array(
            'label' => __( 'Footer 2nd row', 'total' ),
            'type' => 'text',
        ),
    );
    $sections['wpex_footer_bottom']['settings']['row_3'] = array(
        'id' => 'row_3',
        'default' => '',
        'control' => array(
            'label' => __( 'Footer 3rd row', 'total' ),
            'type' => 'text',
        ),
    );
    $sections['wpex_footer_bottom']['settings']['upper_copyright'] = array(
        'id' => 'upper_copyright',
        'default' => '',
        'control' => array(
            'label' => __( 'Footer 4th Row', 'total' ),
            'type' => 'text',
        ),
    );

    return $sections;
}
//add_filter( 'wpex_customizer_sections', 'footer_customizer_settings' );

/*add_action('wpex_hook_footer_top', function(){
    $row_1  = get_theme_mod('row_1');
    $row_2  = get_theme_mod('row_2');
    $row_3  = get_theme_mod('row_3');
    $row_4  = get_theme_mod('upper_copyright');
    if($row_1){
        echo '<div class="footer-row-1">';
        echo do_shortcode($row_1);
        echo '</div>';
    }
    if($row_2){
        echo '<div class="footer-row-2"><div class="container">';
        echo do_shortcode($row_2);
        echo '</div></div>';
    }
    if($row_3){
        echo '<div class="footer-row-3">';
        echo do_shortcode($row_3);
        echo '</div>';
    }
    if($row_3){
        echo '<div id="footer-inner" class="footer-row-4"><div class="container">';
        echo do_shortcode($row_4);
        echo '</div></div>';
    }
});*/