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/topics.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
     
    540537
    541538        return $topic_id;
    542     }
    543 
    544     /**
    545      * Add some general styling to the admin area
    546      *
    547      * @since 2.0.0 bbPress (r2464)
    548      *
    549      * @uses bbp_get_forum_post_type() To get the forum post type
    550      * @uses bbp_get_topic_post_type() To get the topic post type
    551      * @uses bbp_get_reply_post_type() To get the reply post type
    552      * @uses sanitize_html_class() To sanitize the classes
    553      * @uses do_action() Calls 'bbp_admin_head'
    554      */
    555     public function admin_head() {
    556         ?>
    557 
    558         <style type="text/css" media="screen">
    559         /*<![CDATA[*/
    560 
    561             strong.label {
    562                 display: inline-block;
    563                 width: 60px;
    564             }
    565 
    566             .column-bbp_topic_reply_author,
    567             .column-bbp_forum_topic_author {
    568                 width: 25% !important;
    569             }
    570 
    571             .column-bbp_topic_reply_author .avatar,
    572             .column-bbp_forum_topic_author .avatar {
    573                 float: left;
    574                 margin-right: 10px;
    575             }
    576 
    577             .column-bbp_forum_topic_count,
    578             .column-bbp_forum_reply_count,
    579             .column-bbp_topic_reply_count,
    580             .column-bbp_topic_voice_count {
    581                 width: 8% !important;
    582             }
    583 
    584             .column-author,
    585             .column-bbp_reply_author,
    586             .column-bbp_topic_author {
    587                 width: 10% !important;
    588             }
    589 
    590             .column-bbp_topic_forum,
    591             .column-bbp_reply_forum,
    592             .column-bbp_reply_topic {
    593                 width: 10% !important;
    594             }
    595 
    596             .column-bbp_forum_freshness,
    597             .column-bbp_topic_freshness {
    598                 width: 10% !important;
    599             }
    600 
    601             .column-bbp_forum_created,
    602             .column-bbp_topic_created,
    603             .column-bbp_reply_created {
    604                 width: 15% !important;
    605             }
    606 
    607             .status-closed {
    608                 background-color: #eaeaea;
    609             }
    610 
    611             .status-spam {
    612                 background-color: #faeaea;
    613             }
    614 
    615             .status-pending {
    616                 background-color: #fef7f1;
    617             }
    618 
    619         /*]]>*/
    620         </style>
    621 
    622         <?php
    623539    }
    624540
Note: See TracChangeset for help on using the changeset viewer.