<?php
$wp_customize->add_section(
   'offcanvas_options' ,
    array(
        'title' => __( 'Offcanvas Options', 'magfusion' ),
        'panel' => 'header_options_panel',
    )
);

/*Enable Offcanvas*/
$wp_customize->add_setting(
    'magfusion_options[enable_offcanvas]',
    array(
        'default'           => $magfusion_default['enable_offcanvas'],
        'sanitize_callback' => 'magfusion_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'magfusion_options[enable_offcanvas]',
    array(
        'label'    => __( 'Enable Offcanvas', 'magfusion' ),
        'section'  => 'offcanvas_options',
        'type'     => 'checkbox',
    )
);
