BBP_Forums_Admin::admin_head()
Add some general styling to the admin area
Description
Source
File: bp-forums/admin/forums.php
public function admin_head() { if ( $this->bail() ) return; global $post, $pagenow; if ( ( isset( $post->post_type ) && $post->post_type === bbp_get_forum_post_type() && $pagenow == 'edit.php' ) || ( isset( $post->post_type ) && $post->post_type == bbp_get_forum_post_type() && $pagenow == 'post-new.php' ) || ( isset( $post->post_type ) && $post->post_type == bbp_get_forum_post_type() && $pagenow == 'post.php' ) ) { ?> <style media="screen"> /*<![CDATA[*/ #misc-publishing-actions, #save-post { display: block !important; } /*]]>*/ </style> <?php } ?> <style media="screen"> /*<![CDATA[*/ #misc-publishing-actions, #save-post { display: none; } strong.label { display: inline-block; width: 60px; } #bbp_forum_attributes hr { border-style: solid; border-width: 1px; border-color: #ccc #fff #fff #ccc; } .column-bbp_forum_topic_count, .column-bbp_forum_reply_count, .column-bbp_topic_reply_count, .column-bbp_topic_voice_count { width: 10% !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
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.