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

/*Enable Offcanvas*/
$wp_customize->add_setting(
    'newsmachine_options[enable_offcanvas]',
    array(
        'default'           => $newsmachine_default['enable_offcanvas'],
        'sanitize_callback' => 'newsmachine_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'newsmachine_options[enable_offcanvas]',
    array(
        'label'    => __( 'Enable Offcanvas', 'newsmachine' ),
        'section'  => 'offcanvas_options',
        'type'     => 'checkbox',
    )
);
