Advertisement
Guest User

forum-code

a guest
Dec 18th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.27 KB | None | 0 0
  1. <?php
  2. $forum_root_slug = get_option('_bbp_forum_slug');
  3. $topic_root_slug = get_option('_bbp_topic_slug');
  4. $reply_root_slug = get_option('_bbp_reply_slug');
  5. if( get_post_type() == 'forum' || get_post_type() == $forum_root_slug || get_post_type() == $topic_root_slug || get_post_type() == $reply_root_slug ) { ?>
  6. <?php print "<style type='text/css' media='screen'>"; ?>
  7. #sidebar, .post-meta { display: none; }
  8. #custom #post-entry { width: 100% !important; padding: 0% !important; border: 0 none !important; }
  9. #custom div.post-blog-content {float:left !important;}
  10. .bbp-forum-info {width: 40%;}
  11. #content fieldset.bbp-form, #container fieldset.bbp-form, #wrapper fieldset.bbp-form { border: 1px solid #ccc;
  12.   padding: 10px 20px;
  13. }
  14. table.bbp-topic tbody tr td, table.bbp-replies tbody tr td {
  15.   background-color: transparent !important;
  16. }
  17. .bbp-forums .even, .bbp-topics .even { background: #f8f8f8; }
  18. #container .post-blog-content {width: 100%;}
  19. .bbp-breadcrumb {margin: 0 0 1em 0;}
  20. #bbp_topic_title { width: 70%; }
  21. .bbp-reply-author {width: 30%;}
  22. .bbp-topic-meta {font-size: 0.875em;}
  23. .bbp-reply-author img {margin: 0 1em 0 0;}
  24. #container .bbp-reply-content,#container .bbp-reply-author {padding: 1.4em 1em;}
  25. .bbp-topics td {padding: 1em;}
  26. <?php print "</style>"; ?>
  27. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement