if ( !
$nav_menu ) { $nav_menu_style = 'display: none;';
} // If no menus exists, direct the user to go and create some.
?>
<p class="nav-menu-widget-no-menus-message" <?php
echo $not_empty_menus_style; ?>>
<?php
if ( $wp_customize instanceof WP_Customize_Manager
) { $url = 'javascript: wp.customize.panel( "nav_menus" ).focus();';
} else { $url =
admin_url( 'nav-menus.php'
);
} printf( /* translators: %s: URL to create a new menu. */
__( 'No menus have been created yet. <a href="%s">Create some</a>.'
),
// The URL can be a `javascript:` link, so esc_attr() is used here instead of esc_url().
esc_attr( $url ) );
?>
</p>
<div class="nav-menu-widget-form-controls" <?php
echo $empty_menus_style; ?>>
<p>
<label for="