<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][3912] trunk/bp-themes/bp-default: Normalize single topic and topic/post edit templates, and clean up associated CSS</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd>3912</dd>
<dt>Author</dt> <dd>johnjamesjacoby</dd>
<dt>Date</dt> <dd>2011-01-24 14:45:58 +0000 (Mon, 24 Jan 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Normalize single topic and topic/post edit templates, and clean up associated CSS</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpthemesbpdefault_inccssdefaultcss">trunk/bp-themes/bp-default/_inc/css/default.css</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssingleforumeditphp">trunk/bp-themes/bp-default/groups/single/forum/edit.php</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssingleforumtopicphp">trunk/bp-themes/bp-default/groups/single/forum/topic.php</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssinglehomephp">trunk/bp-themes/bp-default/groups/single/home.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpthemesbpdefault_inccssdefaultcss"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/css/default.css (3911 => 3912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/css/default.css        2011-01-24 14:34:53 UTC (rev 3911)
+++ trunk/bp-themes/bp-default/_inc/css/default.css        2011-01-24 14:45:58 UTC (rev 3912)
</span><span class="lines">@@ -1880,7 +1880,7 @@
</span><span class="cx"> -------------------------------------------------------------- */
</span><span class="cx"> 
</span><span class="cx"> ul#topic-post-list {
</span><del>-        margin: 15px -20px;
</del><ins>+        margin: 0px -19px 15px;
</ins><span class="cx">         width: auto;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1890,7 +1890,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ul#topic-post-list li.alt {
</span><del>-        background: #f4f4f4;
</del><ins>+        background: #f8f8f8;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ul#topic-post-list li div.poster-meta {
</span><span class="lines">@@ -1910,19 +1910,20 @@
</span><span class="cx">         font-size: 11px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-div#topic-meta div.admin-links {
-        bottom: 0;
-        right: 0;
-        top: auto;
-}
-
</del><span class="cx"> div#topic-meta {
</span><ins>+        padding: 5px 19px 30px;
+        margin: -10px -19px;
</ins><span class="cx">         position: relative;
</span><del>-        padding: 5px 0;
</del><span class="cx"> }
</span><span class="cx"> 
</span><ins>+div#topic-meta div.admin-links {
+        right: 19px;
+        top: -36px;
+}
+
</ins><span class="cx"> div#topic-meta h3 {
</span><span class="cx">         font-size: 20px;
</span><ins>+        margin: 5px 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> div#new-topic-post {
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssingleforumeditphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/forum/edit.php (3911 => 3912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/forum/edit.php        2011-01-24 14:34:53 UTC (rev 3911)
+++ trunk/bp-themes/bp-default/groups/single/forum/edit.php        2011-01-24 14:45:58 UTC (rev 3912)
</span><span class="lines">@@ -1,16 +1,41 @@
</span><del>-&lt;?php do_action( 'bp_before_group_forum_edit_form' ) ?&gt;
</del><ins>+&lt;?php do_action( 'bp_before_group_forum_edit_form' ); ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php if ( bp_has_forum_topic_posts() ) : ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;form action=&quot;&lt;?php bp_forum_topic_action() ?&gt;&quot; method=&quot;post&quot; id=&quot;forum-topic-form&quot; class=&quot;standard-form&quot;&gt;
</del><ins>+        &lt;form action=&quot;&lt;?php bp_forum_topic_action(); ?&gt;&quot; method=&quot;post&quot; id=&quot;forum-topic-form&quot; class=&quot;standard-form&quot;&gt;
</ins><span class="cx"> 
</span><ins>+                &lt;div class=&quot;item-list-tabs&quot; id=&quot;subnav&quot; role=&quot;navigation&quot;&gt;
+                        &lt;ul&gt;
+                                &lt;li&gt;
+                                        &lt;a href=&quot;#post-topic-reply&quot;&gt;&amp;darr; &lt;?php _e( 'Reply', 'buddypress' ); ?&gt;&lt;/a&gt;
+                                &lt;/li&gt;
+
+                                &lt;?php if ( !bp_forum_directory_is_disabled() ) : ?&gt;
+
+                                        &lt;li&gt;
+                                                &lt;a href=&quot;&lt;?php bp_forum_directory_permalink(); ?&gt;&quot;&gt;&lt;?php _e( 'Forum Directory', 'buddypress'); ?&gt;&lt;/a&gt;
+                                        &lt;/li&gt;
+
+                                &lt;?php endif; ?&gt;
+
+                        &lt;/ul&gt;
+                &lt;/div&gt;
+
</ins><span class="cx">                 &lt;div id=&quot;topic-meta&quot;&gt;
</span><del>-                        &lt;h3&gt;&lt;?php bp_the_topic_title() ?&gt; (&lt;?php bp_the_topic_total_post_count() ?&gt;)&lt;/h3&gt;
-                        &lt;a class=&quot;button&quot; href=&quot;&lt;?php bp_forum_permalink() ?&gt;/&quot;&gt;&amp;larr; &lt;?php _e( 'Group Forum', 'buddypress' ) ?&gt;&lt;/a&gt; &amp;nbsp; &lt;a class=&quot;button&quot; href=&quot;&lt;?php bp_forum_directory_permalink() ?&gt;/&quot;&gt;&lt;?php _e( 'Group Forum Directory', 'buddypress') ?&gt;&lt;/a&gt;
</del><ins>+                        &lt;h3&gt;&lt;?php _e( 'Edit:', 'buddypress' ); ?&gt; &lt;?php bp_the_topic_title(); ?&gt; (&lt;?php bp_the_topic_total_post_count(); ?&gt;)&lt;/h3&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?&gt;
</span><del>-                                &lt;div class=&quot;admin-links&quot;&gt;&lt;?php bp_the_topic_admin_links() ?&gt;&lt;/div&gt;
</del><ins>+
+                                &lt;div class=&quot;last admin-links&quot;&gt;
+
+                                        &lt;?php bp_the_topic_admin_links(); ?&gt;
+
+                                &lt;/div&gt;
+
</ins><span class="cx">                         &lt;?php endif; ?&gt;
</span><ins>+
+                        &lt;?php do_action( 'bp_group_forum_topic_meta' ); ?&gt;
+
</ins><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php if ( bp_group_is_member() ) : ?&gt;
</span><span class="lines">@@ -19,39 +44,35 @@
</span><span class="cx"> 
</span><span class="cx">                                 &lt;div id=&quot;edit-topic&quot;&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php do_action( 'bp_group_before_edit_forum_topic' ) ?&gt;
</del><ins>+                                        &lt;?php do_action( 'bp_group_before_edit_forum_topic' ); ?&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Edit Topic:', 'buddypress' ) ?&gt;&lt;/strong&gt;&lt;/p&gt;
</del><ins>+                                        &lt;label for=&quot;topic_title&quot;&gt;&lt;?php _e( 'Title:', 'buddypress' ); ?&gt;&lt;/label&gt;
+                                        &lt;input type=&quot;text&quot; name=&quot;topic_title&quot; id=&quot;topic_title&quot; value=&quot;&lt;?php bp_the_topic_title(); ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;label for=&quot;topic_title&quot;&gt;&lt;?php _e( 'Title:', 'buddypress' ) ?&gt;&lt;/label&gt;
-                                        &lt;input type=&quot;text&quot; name=&quot;topic_title&quot; id=&quot;topic_title&quot; value=&quot;&lt;?php bp_the_topic_title() ?&gt;&quot; /&gt;
</del><ins>+                                        &lt;label for=&quot;topic_text&quot;&gt;&lt;?php _e( 'Content:', 'buddypress' ); ?&gt;&lt;/label&gt;
+                                        &lt;textarea name=&quot;topic_text&quot; id=&quot;topic_text&quot;&gt;&lt;?php bp_the_topic_text(); ?&gt;&lt;/textarea&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;label for=&quot;topic_text&quot;&gt;&lt;?php _e( 'Content:', 'buddypress' ) ?&gt;&lt;/label&gt;
-                                        &lt;textarea name=&quot;topic_text&quot; id=&quot;topic_text&quot;&gt;&lt;?php bp_the_topic_text() ?&gt;&lt;/textarea&gt;
</del><ins>+                                        &lt;?php do_action( 'bp_group_after_edit_forum_topic' ); ?&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;?php do_action( 'bp_group_after_edit_forum_topic' ) ?&gt;
</del><ins>+                                        &lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;save_changes&quot; id=&quot;save_changes&quot; value=&quot;&lt;?php _e( 'Save Changes', 'buddypress' ); ?&gt;&quot; /&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;save_changes&quot; id=&quot;save_changes&quot; value=&quot;&lt;?php _e( 'Save Changes', 'buddypress' ) ?&gt;&quot; /&gt;&lt;/p&gt;
</del><ins>+                                        &lt;?php wp_nonce_field( 'bp_forums_edit_topic' ); ?&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;?php wp_nonce_field( 'bp_forums_edit_topic' ) ?&gt;
-
</del><span class="cx">                                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php else : ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;div id=&quot;edit-post&quot;&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php do_action( 'bp_group_before_edit_forum_post' ) ?&gt;
</del><ins>+                                        &lt;?php do_action( 'bp_group_before_edit_forum_post' ); ?&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Edit Post:', 'buddypress' ) ?&gt;&lt;/strong&gt;&lt;/p&gt;
</del><ins>+                                        &lt;textarea name=&quot;post_text&quot; id=&quot;post_text&quot;&gt;&lt;?php bp_the_topic_post_edit_text(); ?&gt;&lt;/textarea&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;textarea name=&quot;post_text&quot; id=&quot;post_text&quot;&gt;&lt;?php bp_the_topic_post_edit_text() ?&gt;&lt;/textarea&gt;
-
</del><span class="cx">                                         &lt;?php do_action( 'bp_group_after_edit_forum_post' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;save_changes&quot; id=&quot;save_changes&quot; value=&quot;&lt;?php _e( 'Save Changes', 'buddypress' ) ?&gt;&quot; /&gt;&lt;/p&gt;
</del><ins>+                                        &lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;save_changes&quot; id=&quot;save_changes&quot; value=&quot;&lt;?php _e( 'Save Changes', 'buddypress' ); ?&gt;&quot; /&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-                                        &lt;?php wp_nonce_field( 'bp_forums_edit_post' ) ?&gt;
</del><ins>+                                        &lt;?php wp_nonce_field( 'bp_forums_edit_post' ); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -64,9 +85,9 @@
</span><span class="cx"> &lt;?php else: ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;div id=&quot;message&quot; class=&quot;info&quot;&gt;
</span><del>-                &lt;p&gt;&lt;?php _e( 'This topic does not exist.', 'buddypress' ) ?&gt;&lt;/p&gt;
</del><ins>+                &lt;p&gt;&lt;?php _e( 'This topic does not exist.', 'buddypress' ); ?&gt;&lt;/p&gt;
</ins><span class="cx">         &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php endif;?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php do_action( 'bp_after_group_forum_edit_form' ) ?&gt;
</del><ins>+&lt;?php do_action( 'bp_after_group_forum_edit_form' ); ?&gt;
</ins></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssingleforumtopicphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/forum/topic.php (3911 => 3912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/forum/topic.php        2011-01-24 14:34:53 UTC (rev 3911)
+++ trunk/bp-themes/bp-default/groups/single/forum/topic.php        2011-01-24 14:45:58 UTC (rev 3912)
</span><span class="lines">@@ -1,32 +1,57 @@
</span><del>-&lt;?php do_action( 'bp_before_group_forum_topic' ) ?&gt;
</del><ins>+&lt;?php do_action( 'bp_before_group_forum_topic' ); ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php if ( bp_has_forum_topic_posts() ) : ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;form action=&quot;&lt;?php bp_forum_topic_action() ?&gt;&quot; method=&quot;post&quot; id=&quot;forum-topic-form&quot; class=&quot;standard-form&quot;&gt;
</span><span class="cx"> 
</span><del>-                &lt;div class=&quot;pagination no-ajax&quot;&gt;
</del><ins>+                &lt;div class=&quot;item-list-tabs&quot; id=&quot;subnav&quot; role=&quot;navigation&quot;&gt;
+                        &lt;ul&gt;
+                                &lt;li&gt;
+                                        &lt;a href=&quot;#post-topic-reply&quot;&gt;&amp;darr; &lt;?php _e( 'Reply', 'buddypress' ) ?&gt;&lt;/a&gt;
+                                &lt;/li&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;div id=&quot;post-count&quot; class=&quot;pag-count&quot;&gt;
-                                &lt;?php bp_the_topic_pagination_count() ?&gt;
-                        &lt;/div&gt;
</del><ins>+                                &lt;?php if ( !bp_forum_directory_is_disabled() ) : ?&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;div class=&quot;pagination-links&quot; id=&quot;topic-pag&quot;&gt;
-                                &lt;?php bp_the_topic_pagination() ?&gt;
-                        &lt;/div&gt;
</del><ins>+                                        &lt;li&gt;
+                                                &lt;a href=&quot;&lt;?php bp_forum_directory_permalink() ?&gt;&quot;&gt;&lt;?php _e( 'Forum Directory', 'buddypress') ?&gt;&lt;/a&gt;
+                                        &lt;/li&gt;
</ins><span class="cx"> 
</span><ins>+                                &lt;?php endif; ?&gt;
+
+                        &lt;/ul&gt;
</ins><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div id=&quot;topic-meta&quot;&gt;
</span><span class="cx">                         &lt;h3&gt;&lt;?php bp_the_topic_title() ?&gt; (&lt;?php bp_the_topic_total_post_count() ?&gt;)&lt;/h3&gt;
</span><del>-                        &lt;a class=&quot;button&quot; href=&quot;&lt;?php bp_forum_permalink() ?&gt;/&quot;&gt;&amp;larr; &lt;?php _e( 'Group Forum', 'buddypress' ) ?&gt;&lt;/a&gt; &amp;nbsp; &lt;?php if ( !bp_forum_directory_is_disabled() ) : ?&gt;&lt;a class=&quot;button&quot; href=&quot;&lt;?php bp_forum_directory_permalink() ?&gt;/&quot;&gt;&lt;?php _e( 'Group Forum Directory', 'buddypress') ?&gt;&lt;/a&gt;&lt;?php endif; ?&gt;
</del><span class="cx"> 
</span><del>-                        &lt;div class=&quot;admin-links&quot;&gt;
-                                &lt;?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?&gt;
</del><ins>+                        &lt;?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?&gt;
+
+                                &lt;div class=&quot;last admin-links&quot;&gt;
+
</ins><span class="cx">                                         &lt;?php bp_the_topic_admin_links() ?&gt;
</span><del>-                                &lt;?php endif; ?&gt;
</del><span class="cx"> 
</span><del>-                                &lt;?php do_action( 'bp_group_forum_topic_meta' ); ?&gt;
</del><ins>+                                &lt;/div&gt;
+
+                        &lt;?php endif; ?&gt;
+
+                        &lt;?php do_action( 'bp_group_forum_topic_meta' ); ?&gt;
+
+                &lt;/div&gt;
+
+                &lt;div class=&quot;pagination no-ajax&quot;&gt;
+
+                        &lt;div id=&quot;post-count&quot; class=&quot;pag-count&quot;&gt;
+
+                                &lt;?php bp_the_topic_pagination_count() ?&gt;
+
</ins><span class="cx">                         &lt;/div&gt;
</span><ins>+
+                        &lt;div class=&quot;pagination-links&quot; id=&quot;topic-pag&quot;&gt;
+
+                                &lt;?php bp_the_topic_pagination() ?&gt;
+
+                        &lt;/div&gt;
+
</ins><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php do_action( 'bp_before_group_forum_topic_posts' ) ?&gt;
</span><span class="lines">@@ -115,6 +140,7 @@
</span><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;/form&gt;&lt;!-- #forum-topic-form --&gt;
</span><ins>+
</ins><span class="cx"> &lt;?php else: ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;div id=&quot;message&quot; class=&quot;info&quot;&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssinglehomephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/home.php (3911 => 3912)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/home.php        2011-01-24 14:34:53 UTC (rev 3911)
+++ trunk/bp-themes/bp-default/groups/single/home.php        2011-01-24 14:45:58 UTC (rev 3912)
</span><span class="lines">@@ -1,73 +1,79 @@
</span><del>-&lt;?php get_header() ?&gt;
</del><ins>+&lt;?php get_header(); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">         &lt;div id=&quot;content&quot;&gt;
</span><span class="cx">                 &lt;div class=&quot;padder&quot;&gt;
</span><ins>+
</ins><span class="cx">                         &lt;?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php do_action( 'bp_before_group_home_content' ) ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;item-header&quot; role=&quot;complementary&quot;&gt;
</span><del>-                                &lt;?php locate_template( array( 'groups/single/group-header.php' ), true ) ?&gt;
</del><ins>+
+                                &lt;?php locate_template( array( 'groups/single/group-header.php' ), true ); ?&gt;
+
</ins><span class="cx">                         &lt;/div&gt;&lt;!-- #item-header --&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;item-nav&quot;&gt;
</span><span class="cx">                                 &lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;object-nav&quot; role=&quot;navigation&quot;&gt;
</span><span class="cx">                                         &lt;ul&gt;
</span><del>-                                                &lt;?php bp_get_options_nav() ?&gt;
</del><span class="cx"> 
</span><del>-                                                &lt;?php do_action( 'bp_group_options_nav' ) ?&gt;
</del><ins>+                                                &lt;?php bp_get_options_nav(); ?&gt;
+
+                                                &lt;?php do_action( 'bp_group_options_nav' ); ?&gt;
+
</ins><span class="cx">                                         &lt;/ul&gt;
</span><span class="cx">                                 &lt;/div&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- #item-nav --&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;item-body&quot;&gt;
</span><del>-                                &lt;?php do_action( 'bp_before_group_body' ) ?&gt;
</del><span class="cx"> 
</span><del>-                                &lt;?php if ( bp_is_group_admin_page() &amp;&amp; bp_group_is_visible() ) : ?&gt;
-                                        &lt;?php locate_template( array( 'groups/single/admin.php' ), true ) ?&gt;
</del><ins>+                                &lt;?php do_action( 'bp_before_group_body' );
</ins><span class="cx"> 
</span><del>-                                &lt;?php elseif ( bp_is_group_members() &amp;&amp; bp_group_is_visible() ) : ?&gt;
-                                        &lt;?php locate_template( array( 'groups/single/members.php' ), true ) ?&gt;
</del><ins>+                                if ( bp_is_group_admin_page() &amp;&amp; bp_group_is_visible() ) :
+                                        locate_template( array( 'groups/single/admin.php' ), true );
</ins><span class="cx"> 
</span><del>-                                &lt;?php elseif ( bp_is_group_invites() &amp;&amp; bp_group_is_visible() ) : ?&gt;
-                                        &lt;?php locate_template( array( 'groups/single/send-invites.php' ), true ) ?&gt;
</del><ins>+                                elseif ( bp_is_group_members() &amp;&amp; bp_group_is_visible() ) :
+                                        locate_template( array( 'groups/single/members.php' ), true );
</ins><span class="cx"> 
</span><del>-                                &lt;?php elseif ( bp_is_group_forum() &amp;&amp; bp_group_is_visible() ) : ?&gt;
-                                        &lt;?php locate_template( array( 'groups/single/forum.php' ), true ) ?&gt;
</del><ins>+                                elseif ( bp_is_group_invites() &amp;&amp; bp_group_is_visible() ) :
+                                        locate_template( array( 'groups/single/send-invites.php' ), true );
</ins><span class="cx"> 
</span><del>-                                &lt;?php elseif ( bp_is_group_membership_request() ) : ?&gt;
-                                        &lt;?php locate_template( array( 'groups/single/request-membership.php' ), true ) ?&gt;
</del><ins>+                                elseif ( bp_is_group_forum() &amp;&amp; bp_group_is_visible() ) :
+                                        locate_template( array( 'groups/single/forum.php' ), true );
</ins><span class="cx"> 
</span><del>-                                &lt;?php elseif ( bp_group_is_visible() &amp;&amp; bp_is_active( 'activity' ) ) : ?&gt;
-                                        &lt;?php locate_template( array( 'groups/single/activity.php' ), true ) ?&gt;
</del><ins>+                                elseif ( bp_is_group_membership_request() ) :
+                                        locate_template( array( 'groups/single/request-membership.php' ), true );
</ins><span class="cx"> 
</span><del>-                                &lt;?php elseif ( !bp_group_is_visible() ) : ?&gt;
-                                        &lt;?php /* The group is not visible, show the status message */ ?&gt;
</del><ins>+                                elseif ( bp_group_is_visible() &amp;&amp; bp_is_active( 'activity' ) ) :
+                                        locate_template( array( 'groups/single/activity.php' ), true );
</ins><span class="cx"> 
</span><del>-                                        &lt;?php do_action( 'bp_before_group_status_message' ) ?&gt;
</del><ins>+                                elseif ( !bp_group_is_visible() ) :
+                                        // The group is not visible, show the status message
</ins><span class="cx"> 
</span><ins>+                                        do_action( 'bp_before_group_status_message' ); ?&gt;
+
</ins><span class="cx">                                         &lt;div id=&quot;message&quot; class=&quot;info&quot;&gt;
</span><del>-                                                &lt;p&gt;&lt;?php bp_group_status_message() ?&gt;&lt;/p&gt;
</del><ins>+                                                &lt;p&gt;&lt;?php bp_group_status_message(); ?&gt;&lt;/p&gt;
</ins><span class="cx">                                         &lt;/div&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php do_action( 'bp_after_group_status_message' ) ?&gt;
</del><ins>+                                        &lt;?php do_action( 'bp_after_group_status_message' );
</ins><span class="cx"> 
</span><del>-                                &lt;?php else : ?&gt;
-                                        &lt;?php
-                                                /* If nothing sticks, just load a group front template if one exists. */
-                                                locate_template( array( 'groups/single/front.php' ), true );
-                                        ?&gt;
-                                &lt;?php endif; ?&gt;
</del><ins>+                                else :
+                                        // If nothing sticks, just load a group front template if one exists.
+                                        locate_template( array( 'groups/single/front.php' ), true );
</ins><span class="cx"> 
</span><del>-                                &lt;?php do_action( 'bp_after_group_body' ) ?&gt;
</del><ins>+                                endif;
+
+                                do_action( 'bp_after_group_body' ); ?&gt;
+
</ins><span class="cx">                         &lt;/div&gt;&lt;!-- #item-body --&gt;
</span><span class="cx"> 
</span><del>-                        &lt;?php do_action( 'bp_after_group_home_content' ) ?&gt;
</del><ins>+                        &lt;?php do_action( 'bp_after_group_home_content' ); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;?php endwhile; endif; ?&gt;
</span><ins>+
</ins><span class="cx">                 &lt;/div&gt;&lt;!-- .padder --&gt;
</span><span class="cx">         &lt;/div&gt;&lt;!-- #content --&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php get_sidebar() ?&gt;
-
-&lt;?php get_footer() ?&gt;
</del><ins>+&lt;?php get_sidebar(); ?&gt;
+&lt;?php get_footer(); ?&gt;
</ins></span></pre>
</div>
</div>

</body>
</html>