<?php
/*
 * This file belongs to the YIT Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

$gateways = apply_filters( 'yith_wcmv_panel_gateways_options', array(

        'default' => array(

            'payments_options_start'          => array( 'type'  => 'sectionstart' ),

            'payments_options_title'          => array(
                'title' => __( 'Gateways options', 'yith-woocommerce-product-vendors' ),
                'type'  => 'title',
            ),

            'payments_options_table'          => array( 'type'  => 'yith_wcmv_gateways_list' ),

            'payments_options_end'          => array( 'type'  => 'sectionend' ),
        )
    )
);

$to_return = $gateways['default'];

if( ! empty( $_GET['section'] ) && ! empty( $gateways[ $_GET['section'] ] ) ) {
	$to_return = $gateways[ $_GET['section'] ];
}

return array( 'gateways' => $to_return);