To format the setting section: We have to start an array with type=>section and indent=>true. To end a section we have to declare an array with type=>section and indent=>false. Everything in between the said two section will have an indent.
Redux::setSection( $opt_name, array(
'subsection' => true,
'title' => __('Section One ( History )', 'capsule'),
'icon' => 'el el-th-list',
'customizer_width' => '400px',
'desc' => __('About page settings.', 'capsule'),
'fields' => array(
array(
'id' => 'section-start',
'type' => 'section',
'title' => __( 'Section Example', 'redux-framework-demo' ),
'subtitle' => __( 'With the "section" field you can create indented option sections.', 'redux-framework-demo' ),
'indent' => true, // Indent all options below until the next 'section' option is set.
),
array(
'id' => 'section-test',
'type' => 'text',
'title' => __( 'Field Title', 'redux-framework-demo' ),
'subtitle' => __( 'Field Subtitle', 'redux-framework-demo' ),
),
array(
'id' => 'section-test-media',
'type' => 'media',
'title' => __( 'Field Title', 'redux-framework-demo' ),
'subtitle' => __( 'Field Subtitle', 'redux-framework-demo' ),
),
array(
'id' => 'section-end',
'type' => 'section',
'indent' => false, // Indent all options below until the next 'section' option is set.
),
array(
'id' => 'section-starta',
'type' => 'section',
'title' => __( 'Section Example', 'redux-framework-demo' ),
'subtitle' => __( 'With the "section" field you can create indented option sections.', 'redux-framework-demo' ),
'indent' => true, // Indent all options below until the next 'section' option is set.
),
array(
'id' => 'section-testa',
'type' => 'text',
'title' => __( 'Field Title', 'redux-framework-demo' ),
'subtitle' => __( 'Field Subtitle', 'redux-framework-demo' ),
),
array(
'id' => 'section-test-mediaa',
'type' => 'media',
'title' => __( 'Field Title', 'redux-framework-demo' ),
'subtitle' => __( 'Field Subtitle', 'redux-framework-demo' ),
),
array(
'id' => 'section-enda',
'type' => 'section',
'indent' => false, // Indent all options below until the next 'section' option is set.
),
)
));