Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/17/2017 07:10:27 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Admin: Alternate row styling for list tables.

  • Remove admin_head methods in forums/topics/replies classes
  • Move styling into admin.css
  • Bump asset version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/replies.php

    r6250 r6252  
    5959     */
    6060    private function setup_actions() {
    61 
    62         // Add some general styling to the admin area
    63         add_action( 'bbp_admin_head',        array( $this, 'admin_head'       ) );
    6461
    6562        // Messages
     
    451448
    452449        return $reply_id;
    453     }
    454 
    455     /**
    456      * Add some general styling to the admin area
    457      *
    458      * @since 2.0.0 bbPress (r2464)
    459      *
    460      * @uses bbp_get_forum_post_type() To get the forum post type
    461      * @uses bbp_get_topic_post_type() To get the topic post type
    462      * @uses bbp_get_reply_post_type() To get the reply post type
    463      * @uses sanitize_html_class() To sanitize the classes
    464      * @uses do_action() Calls 'bbp_admin_head'
    465      */
    466     public function admin_head() {
    467         ?>
    468 
    469         <style type="text/css" media="screen">
    470         /*<![CDATA[*/
    471 
    472             strong.label {
    473                 display: inline-block;
    474                 width: 60px;
    475             }
    476 
    477             .column-bbp_forum_topic_count,
    478             .column-bbp_forum_reply_count,
    479             .column-bbp_topic_reply_count,
    480             .column-bbp_topic_voice_count {
    481                 width: 8% !important;
    482             }
    483 
    484             .column-author,
    485             .column-bbp_reply_author,
    486             .column-bbp_topic_author {
    487                 width: 10% !important;
    488             }
    489 
    490             .column-bbp_topic_forum,
    491             .column-bbp_reply_forum,
    492             .column-bbp_reply_topic {
    493                 width: 10% !important;
    494             }
    495 
    496             .column-bbp_forum_freshness,
    497             .column-bbp_topic_freshness {
    498                 width: 10% !important;
    499             }
    500 
    501             .column-bbp_forum_created,
    502             .column-bbp_topic_created,
    503             .column-bbp_reply_created {
    504                 width: 15% !important;
    505             }
    506 
    507             .status-closed {
    508                 background-color: #eaeaea;
    509             }
    510 
    511             .status-spam {
    512                 background-color: #faeaea;
    513             }
    514 
    515             .status-pending {
    516                 background-color: #fef7f1;
    517             }
    518 
    519         /*]]>*/
    520         </style>
    521 
    522         <?php
    523450    }
    524451
Note: See TracChangeset for help on using the changeset viewer.