BBP_Topics_Admin::admin_head()

Add some general styling to the admin area

Description

Source

File: bp-forums/admin/topics.php

412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
public function admin_head() {
 
    if ( $this->bail() ) return;
 
    ?>
 
    <style media="screen">
    /*<![CDATA[*/
 
        strong.label {
            display: inline-block;
            width: 60px;
        }
 
        .column-bbp_forum_topic_count,
        .column-bbp_forum_reply_count,
        .column-bbp_topic_reply_count,
        .column-bbp_topic_voice_count {
            width: 8% !important;
        }
 
        .column-author,
        .column-bbp_reply_author,
        .column-bbp_topic_author {
            width: 10% !important;
        }
 
        .column-bbp_topic_forum,
        .column-bbp_reply_forum,
        .column-bbp_reply_topic {
            width: 10% !important;
        }
 
        .column-bbp_forum_freshness,
        .column-bbp_topic_freshness {
            width: 10% !important;
        }
 
        .column-bbp_forum_created,
        .column-bbp_topic_created,
        .column-bbp_reply_created {
            width: 15% !important;
        }
 
        .status-closed {
            background-color: #eaeaea;
        }
 
        .status-spam {
            background-color: #faeaea;
        }
 
    /*]]>*/
    </style>
 
    <?php
}

Changelog

Changelog
Version Description
bbPress (r2464) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.