[wp-trac] [WordPress Trac] #23450: Refactor menu item meta boxes as accordion

WordPress Trac noreply at wordpress.org
Tue Feb 12 13:55:42 UTC 2013


#23450: Refactor menu item meta boxes as accordion
-----------------------------------+------------------
 Reporter:  lessbloat              |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  3.6
Component:  Menus                  |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  needs-patch 3.6-menus  |
-----------------------------------+------------------

Comment (by lessbloat):

 23450.diff​ is a first pass at this.

 The basic reusable structure looks like this:

 {{{
 <div id="accordion-container">
         <ul>
                 <li class="control-section accordion-section" id
 ="accordion-section-title_tagline">
                         <h3 title="" tabindex="0" class="accordion-
 section-title">Title here</h3>
                         <ul class="accordion-section-content">
                                 <li><!-- content here --></li>
                         </ul>
                 </li>
         </ul>
 </div>
 }}}

 So you'd enqueue the new "accordion" JS file drop this anywhere in the
 admin.

 '''A couple notes'''

 - I left all of the color CSS in wp-admin.css, since for now both fresh,
 and classic use the same colors for the accordion.
 - We could optionally move all of the form element styling (used within
 the customizer) over.  I left that out of this first pass.
 - .accordion-section-content, could just as well be a DIV if you only have
 one block of code to add there (which is likely what I'll do for menus).

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


More information about the wp-trac mailing list