$nav_menus_setting_ids[] =
$setting_id;
} } $settings =
$this->manager->
add_dynamic_settings( $nav_menus_setting_ids );
if ( $this->manager->
settings_previewed() ) { foreach ( $settings as $setting ) { $setting->
preview();
} } // Require JS-rendered control types.
$this->manager->
register_panel_type( 'WP_Customize_Nav_Menus_Panel'
);
$this->manager->
register_control_type( 'WP_Customize_Nav_Menu_Control'
);
$this->manager->
register_control_type( 'WP_Customize_Nav_Menu_Name_Control'
);
$this->manager->
register_control_type( 'WP_Customize_Nav_Menu_Locations_Control'
);
$this->manager->
register_control_type( 'WP_Customize_Nav_Menu_Auto_Add_Control'
);
$this->manager->
register_control_type( 'WP_Customize_Nav_Menu_Item_Control'
);
// Create a panel for Menus.
$description = '<p>' .
__( 'This panel is used for managing navigation menus for content you have already published on your site. You can create menus and add items for existing content such as pages, posts, categories, tags, formats, or custom links.'
) . '</p>';
if ( current_theme_supports( 'widgets'
) ) { $description .= '<p>' .
sprintf( /* translators: %s: URL to the Widgets panel of the Customizer. */