<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[BuddyPress] [1987] trunk/bp-core/bp-core-templatetags.php:
  Conditional tag updates.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>1987</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-09-29 16:54:57 +0000 (Tue, 29 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Conditional tag updates.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (1986 => 1987)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2009-09-29 16:24:57 UTC (rev 1986)
+++ trunk/bp-core/bp-core-templatetags.php        2009-09-29 16:54:57 UTC (rev 1987)
</span><span class="lines">@@ -1242,7 +1242,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* Template is_() functions to determine the current page */
</span><span class="cx"> 
</span><del>-function bp_is_profile() {
</del><ins>+function bp_is_profile_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_XPROFILE_SLUG == $bp-&gt;current_component )
</span><span class="lines">@@ -1251,7 +1251,7 @@
</span><span class="cx">         return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_activity() {
</del><ins>+function bp_is_activity_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_ACTIVITY_SLUG == $bp-&gt;current_component )
</span><span class="lines">@@ -1260,7 +1260,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_blogs() {
</del><ins>+function bp_is_blogs_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_BLOGS_SLUG == $bp-&gt;current_component )
</span><span class="lines">@@ -1269,7 +1269,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_wire() {
</del><ins>+function bp_is_wire_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_WIRE_SLUG == $bp-&gt;current_action || in_array( BP_WIRE_SLUG, (array)$bp-&gt;action_variables ) )
</span><span class="lines">@@ -1278,7 +1278,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_messages() {
</del><ins>+function bp_is_messages_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_MESSAGES_SLUG == $bp-&gt;current_component )
</span><span class="lines">@@ -1287,7 +1287,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_friends() {
</del><ins>+function bp_is_friends_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_FRIENDS_SLUG == $bp-&gt;current_component )
</span><span class="lines">@@ -1296,7 +1296,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_groups() {
</del><ins>+function bp_is_groups_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_GROUPS_SLUG == $bp-&gt;current_component )
</span><span class="lines">@@ -1305,7 +1305,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_settings() {
</del><ins>+function bp_is_settings_component() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_SETTINGS_SLUG == $bp-&gt;current_component )
</span><span class="lines">@@ -1314,7 +1314,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_my_activity() {
</del><ins>+function bp_is_user_activity() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_ACTIVITY_SLUG == $bp-&gt;current_component &amp;&amp; ( !$bp-&gt;current_action || 'my-activity' == $bp-&gt;current_action ) )
</span><span class="lines">@@ -1323,7 +1323,7 @@
</span><span class="cx">         return false;
</span><span class="cx"> }        
</span><span class="cx"> 
</span><del>-function bp_is_friends_activity() {
</del><ins>+function bp_is_user_friends_activity() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_ACTIVITY_SLUG == $bp-&gt;current_component &amp;&amp; 'my-friends' == $bp-&gt;current_action )
</span><span class="lines">@@ -1332,6 +1332,15 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function bp_is_user_profile() {
+        global $bp;
+        
+        if ( BP_XPROFILE_SLUG == $bp-&gt;current_component )
+                return true;
+        
+        return false;        
+}
+
</ins><span class="cx"> function bp_is_profile_edit() {
</span><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="lines">@@ -1359,7 +1368,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_my_groups() {
</del><ins>+function bp_is_user_groups() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_GROUPS_SLUG == $bp-&gt;current_component &amp;&amp; ( !$bp-&gt;current_action || 'my-groups' == $bp-&gt;current_action ) )
</span><span class="lines">@@ -1450,7 +1459,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_my_blogs() {
</del><ins>+function bp_is_user_blogs() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_BLOGS_SLUG == $bp-&gt;current_component &amp;&amp; ( !$bp-&gt;current_action || 'my-blogs' == $bp-&gt;current_action ) )
</span><span class="lines">@@ -1459,7 +1468,7 @@
</span><span class="cx">         return false;                
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_recent_posts() {
</del><ins>+function bp_is_user_recent_posts() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_BLOGS_SLUG == $bp-&gt;current_component &amp;&amp; 'recent-posts' == $bp-&gt;current_action )
</span><span class="lines">@@ -1468,7 +1477,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_recent_commments() {
</del><ins>+function bp_is_user_recent_commments() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_BLOGS_SLUG == $bp-&gt;current_component &amp;&amp; 'recent-comments' == $bp-&gt;current_action )
</span><span class="lines">@@ -1486,7 +1495,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_friends_screen() {
</del><ins>+function bp_is_user_friends() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_FRIENDS_SLUG == $bp-&gt;current_component &amp;&amp; ( !$bp-&gt;current_action || 'my-friends' == $bp-&gt;current_action ) )
</span><span class="lines">@@ -1504,7 +1513,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_inbox() {
</del><ins>+function bp_is_messages_inbox() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_MESSAGES_SLUG == $bp-&gt;current_component &amp;&amp; ( !$bp-&gt;current_action || 'inbox' == $bp-&gt;current_action ) )
</span><span class="lines">@@ -1513,7 +1522,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_sentbox() {
</del><ins>+function bp_is_messages_sentbox() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_MESSAGES_SLUG == $bp-&gt;current_component &amp;&amp; 'sentbox' == $bp-&gt;current_action )
</span><span class="lines">@@ -1533,7 +1542,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-function bp_is_compose_screen() {
</del><ins>+function bp_is_messages_compose_screen() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( BP_MESSAGES_SLUG == $bp-&gt;current_component &amp;&amp; 'compose' == $bp-&gt;current_action )
</span><span class="lines">@@ -1542,7 +1551,7 @@
</span><span class="cx">         return false;        
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_is_site_item() {
</del><ins>+function bp_is_single_item() {
</ins><span class="cx">         global $bp;
</span><span class="cx">         
</span><span class="cx">         if ( $bp-&gt;is_single_item )
</span><span class="lines">@@ -1589,55 +1598,64 @@
</span><span class="cx">                 if ( bp_is_directory() )
</span><span class="cx">                         $bp_classes[] = 'directory';
</span><span class="cx">                         
</span><del>-                if ( bp_is_profile() &amp;&amp; !bp_is_blog_page() )
</del><ins>+                if ( bp_is_user_profile() &amp;&amp; !bp_is_blog_page() )
</ins><span class="cx">                         $bp_classes[] = 'profile';
</span><span class="cx">                 
</span><del>-                if ( bp_is_activity() &amp;&amp; !bp_is_blog_page()  )
</del><ins>+                if ( bp_is_activity_component() &amp;&amp; !bp_is_blog_page()  )
</ins><span class="cx">                         $bp_classes[] = 'activity';                
</span><span class="cx"> 
</span><del>-                if ( bp_is_blogs() &amp;&amp; !bp_is_blog_page()  )
</del><ins>+                if ( bp_is_blogs_component() &amp;&amp; !bp_is_blog_page()  )
</ins><span class="cx">                         $bp_classes[] = 'blogs';
</span><span class="cx"> 
</span><del>-                if ( bp_is_wire() &amp;&amp; !bp_is_blog_page()  )
</del><ins>+                if ( bp_is_wire_component() &amp;&amp; !bp_is_blog_page()  )
</ins><span class="cx">                         $bp_classes[] = 'wire';
</span><span class="cx"> 
</span><del>-                if ( bp_is_messages() &amp;&amp; !bp_is_blog_page()  )
</del><ins>+                if ( bp_is_messages_component() &amp;&amp; !bp_is_blog_page()  )
</ins><span class="cx">                         $bp_classes[] = 'messages';                                        
</span><span class="cx">                 
</span><del>-                if ( bp_is_friends() &amp;&amp; !bp_is_blog_page()  )
</del><ins>+                if ( bp_is_friends_component() &amp;&amp; !bp_is_blog_page()  )
</ins><span class="cx">                         $bp_classes[] = 'friends';
</span><span class="cx">                         
</span><del>-                if ( bp_is_groups() &amp;&amp; !bp_is_blog_page()  )
</del><ins>+                if ( bp_is_groups_component() &amp;&amp; !bp_is_blog_page()  )
</ins><span class="cx">                         $bp_classes[] = 'groups';
</span><span class="cx"> 
</span><del>-                if ( bp_is_settings() &amp;&amp; !bp_is_blog_page()  )
</del><ins>+                if ( bp_is_settings_component() &amp;&amp; !bp_is_blog_page()  )
</ins><span class="cx">                         $bp_classes[] = 'settings';
</span><span class="cx">                         
</span><del>-                if ( bp_is_site_item() )
</del><ins>+                if ( bp_is_single_item() )
</ins><span class="cx">                         $bp_classes[] = 'single-item';
</span><span class="cx">                         
</span><del>-                if ( bp_is_inbox() )
</del><ins>+                if ( bp_is_messages_inbox() )
</ins><span class="cx">                         $bp_classes[] = 'inbox';
</span><del>-                        
</del><ins>+
+                if ( bp_is_messages_sentbox() )
+                        $bp_classes[] = 'sentbox';
+
+                if ( bp_is_messages_compose_screen() )
+                        $bp_classes[] = 'compose';
+
+                if ( bp_is_notices() )
+                        $bp_classes[] = 'notices';
+                                                
</ins><span class="cx">                 if ( bp_is_friend_requests() )
</span><span class="cx">                         $bp_classes[] = 'friend-requests';
</span><span class="cx"> 
</span><del>-                if ( bp_is_friends_screen() )
</del><ins>+                if ( bp_is_user_friends() )
</ins><span class="cx">                         $bp_classes[] = 'my-friends';
</span><span class="cx">                         
</span><span class="cx">                 if ( bp_is_create_blog() )
</span><span class="cx">                         $bp_classes[] = 'create-blog';
</span><span class="cx">                         
</span><del>-                if ( bp_is_recent_commments() )
</del><ins>+                if ( bp_is_user_recent_commments() )
</ins><span class="cx">                         $bp_classes[] = 'recent-comments';
</span><span class="cx">                         
</span><del>-                if ( bp_is_recent_posts() )
</del><ins>+                if ( bp_is_user_recent_posts() )
</ins><span class="cx">                         $bp_classes[] = 'recent-posts';
</span><span class="cx">                         
</span><del>-                if ( bp_is_my_blogs() &amp;&amp; !bp_is_directory() )
</del><ins>+                if ( bp_is_user_blogs() &amp;&amp; !bp_is_directory() )
</ins><span class="cx">                         $bp_classes[] = 'my-blogs';
</span><span class="cx">                         
</span><del>-                if ( bp_is_my_groups() &amp;&amp; !bp_is_directory() )
</del><ins>+                if ( bp_is_user_groups() &amp;&amp; !bp_is_directory() )
</ins><span class="cx">                         $bp_classes[] = 'my-groups';
</span><span class="cx">                         
</span><span class="cx">                 if ( bp_is_group_leave() )
</span><span class="lines">@@ -1676,10 +1694,10 @@
</span><span class="cx">                 if ( bp_is_profile_edit() )
</span><span class="cx">                         $bp_classes[] = 'profile-edit';
</span><span class="cx">                         
</span><del>-                if ( bp_is_friends_activity() )
</del><ins>+                if ( bp_is_user_friends_activity() )
</ins><span class="cx">                         $bp_classes[] = 'friends-activity';
</span><span class="cx">                         
</span><del>-                if ( bp_is_my_activity() )
</del><ins>+                if ( bp_is_user_activity() )
</ins><span class="cx">                         $bp_classes[] = 'my-activity';
</span><span class="cx">                 
</span><span class="cx">                 if ( bp_is_register_page() )
</span></span></pre>
</div>
</div>

</body>
</html>