<?php

$menu_id = cloudfw_get_option('topbar_widget_custom_menu', 'menu_id');

if ( ! empty( $menu_id ) ) {

    wp_nav_menu( array(
            'fallback_cb'           => '__return_false',
            'menu'                  => $menu_id,
            'container'             => false,
            'menu_class'            => cloudfw_visible( $device, 'widget--language-selector ui--widget ui--custom-menu opt--on-hover opt--menu-direction-right unstyled-all'),
            'menu_id'               => 'navigation-menu',
            'before'                => '',
            'after'                 => '',
            'link_before'           => '',
            'link_after'            => '',
            'caret'                 => '<i class="ui--caret fontawesome-angle-down px14"></i>',
            'sub_level_caret_right' => '<i class="ui--caret fontawesome-angle-right px14"></i>',
            'sub_level_caret_left'  => '<i class="ui--caret fontawesome-angle-left px14"></i>',
            'depth'                 => 3,
            'top_level_class'       => 'ui--gradient ui--gradient-grey on--hover',
            'walker'                => cloudfw_conditional_menu_class(),
        )
    );

}