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

/*Enable Offcanvas*/
$wp_customize->add_setting(
    'maglink_options[enable_offcanvas]',
    array(
        'default'           => $maglink_default['enable_offcanvas'],
        'sanitize_callback' => 'maglink_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'maglink_options[enable_offcanvas]',
    array(
        'label'    => __( 'Enable Offcanvas', 'maglink' ),
        'section'  => 'offcanvas_options',
        'type'     => 'checkbox',
    )
);
