Echo primary menu offcanvas button.
beans_primary_menu_offcanvas_button( )
Return: (void)
Source
function beans_primary_menu_offcanvas_button() {
if ( ! current_theme_supports( 'offcanvas-menu' ) ) {
return;
}
beans_open_markup_e( 'beans_primary_menu_offcanvas_button', 'a', array(
'href' => '#offcanvas_menu',
'class' => 'uk-button uk-hidden-large',
'data-uk-offcanvas' => '',
) );
beans_open_markup_e( 'beans_primary_menu_offcanvas_button_icon', 'i', array(
'class' => 'uk-icon-navicon uk-margin-small-right',
) );
beans_close_markup_e( 'beans_primary_menu_offcanvas_button_icon', 'i' );
beans_output_e( 'beans_offcanvas_menu_button', __( 'Menu', 'tm-beans' ) );
beans_close_markup_e( 'beans_primary_menu_offcanvas_button', 'a' );
}