[buddypress-trac] [BuddyPress Trac] #6799: Unify structure of item lists.

buddypress-trac noreply at wordpress.org
Wed Dec 30 18:14:52 UTC 2015


#6799: Unify structure of item lists.
-----------------------------------------+-----------------------------
 Reporter:  dcavins                      |      Owner:
     Type:  enhancement                  |     Status:  new
 Priority:  normal                       |  Milestone:  Awaiting Review
Component:  Appearance - Template Parts  |    Version:  2.4.0
 Severity:  normal                       |   Keywords:
-----------------------------------------+-----------------------------
 Unordered lists with the class `item-list` are used in the default
 template to represent object lists, usually members or group but also
 activity. The list items in these lists don't share a common structure,
 which makes styling them in a general way harder than it needs to be.
 There seems to be one common form, and then a variety of others:

 The first has three containers within the li,  an avatar container,  a
 `div.item` that contains details like the name, updates, description, and
 a `div.action`. It is generally structured like so:

 {{{
 <li>
         <div class="item-avatar"></div>

         <div class="item">
                 <div class="item-title"></div>
                 <div class="item-meta"></div>
                 <div class="item-desc"></div>
         </div>

         <div class="action">
                 <div class="meta"></div>
         </div>
 </li>
 }}}

 and is used in these cases:
 * `blogs/blogs-loop.php`
 * `groups/groups-loop.php`
 * `members/members-loop.php`
 * `members/single/friends/requests.php`

 Then there are the other cases. These generally don't contain the wrapper
 `div.item`, but just have the details loose in the `li`:
 * `activity/entry.php`
 * `groups/create.php`
 * `groups/single/admin.php` <- this one's particularly troublesome, with
 an h5 wrapping a bunch of actions.
 * `groups/single/invites-loop.php`
 * `groups/single/members.php`
 * `groups/single/requests-loop.php`
 * `members/single/groups/invites.php`

 I don't think we should change the current legacy template--it would cause
 too much heartache. But in the next iteration, we could give themers a
 nice gift by minimizing the number of structures used in the templates.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6799>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list