[wp-trac] [WordPress Trac] #23119: UX Improvements to nav-menus.php

WordPress Trac noreply at wordpress.org
Tue Jan 22 12:47:17 UTC 2013


#23119: UX Improvements to nav-menus.php
-----------------------------------------------+------------------
 Reporter:  lessbloat                          |       Owner:
     Type:  enhancement                        |      Status:  new
 Priority:  normal                             |   Milestone:  3.6
Component:  Menus                              |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch needs-testing 3.6-menus  |
-----------------------------------------------+------------------

Comment (by ramiy):

 '''This is what i was thinking:'''

 When themes register menus and sidebars,
 {{{
 // Register Navigation Menus
 function custom_navigation_menus() {
         $locations = array(
                 'primary_menu' => __( 'Primary Menu', 'text_domain' ),
         );
         register_nav_menus( $locations );
 }
 add_action( 'init', 'custom_navigation_menus' );


 // Register Sidebar
 function custom_sidebar()  {
         $args = array(
                 'id'            => 'unique_id',
                 'name'          => __( 'Sidebars', 'text_domain' ),
                 'description'   => __( 'Sidebar Description',
 'text_domain' ),
                 'class'         => '',
                 'before_title'  => '<h2 class=\"widgettitle\">',
                 'after_title'   => '</h2>',
                 'before_widget' => '<li id=\"%1$s\" class=\"widget
 %2$s\">',
                 'after_widget'  => '</li>',
         );
         register_sidebar( $args );
 }
 add_action( 'widgets_init', 'custom_sidebar' );


 // Code generated using GenerateWP.com
 }}}

 We will see both Menus and Sidebars on the "Theme Customizer".

 [[Image(http://i.imgur.com/t9GOjrM.jpg)]]

 The '''Menu screen''' and the '''Widget screen''' will be used to manage
 links & wigets.

 Menus admin screen:
 [[Image(http://i.imgur.com/WAeJMjK.jpg)]]

 Sidebars admin screen:
 [[Image(http://i.imgur.com/reMYoku.jpg)]]

 The "Customizer" will be used to assign specific menu/sidebar to the
 theme.

 This is basicly the '''Two step workflow'''.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23119#comment:141>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list