<!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][3685] trunk: Adds additional arguments to the BP_Button class to allow for greater customisation in themes.</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>3685</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2011-01-09 17:40:12 +0000 (Sun, 09 Jan 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Adds additional arguments to the BP_Button class to allow for greater customisation in themes. Fixes #2711, props johnjamesjacoby.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivitytemplatetagsphp">trunk/bp-activity/bp-activity-templatetags.php</a></li>
<li><a href="#trunkbpblogsbpblogstemplatetagsphp">trunk/bp-blogs/bp-blogs-templatetags.php</a></li>
<li><a href="#trunkbpcorebpcoreclassesphp">trunk/bp-core/bp-core-classes.php</a></li>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
<li><a href="#trunkbpfriendsbpfriendstemplatetagsphp">trunk/bp-friends/bp-friends-templatetags.php</a></li>
<li><a href="#trunkbpgroupsbpgroupstemplatetagsphp">trunk/bp-groups/bp-groups-templatetags.php</a></li>
<li><a href="#trunkbpmessagesbpmessagestemplatetagsphp">trunk/bp-messages/bp-messages-templatetags.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivitytemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-templatetags.php (3684 => 3685)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-templatetags.php        2011-01-09 16:01:35 UTC (rev 3684)
+++ trunk/bp-activity/bp-activity-templatetags.php        2011-01-09 17:40:12 UTC (rev 3685)
</span><span class="lines">@@ -1050,7 +1050,8 @@
</span><span class="cx">                         'wrapper_id'        =&gt; 'post-mention',
</span><span class="cx">                         'link_href'         =&gt; bp_get_send_public_message_link(),
</span><span class="cx">                         'link_title'        =&gt; __( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ),
</span><del>-                        'link_text'         =&gt; __( 'Mention this User', 'buddypress' )
</del><ins>+                        'link_text'         =&gt; __( 'Mention this User', 'buddypress' ),
+                        'link_class'        =&gt; 'activity-button mention'
</ins><span class="cx">                 );
</span><span class="cx"> 
</span><span class="cx">                 $button = wp_parse_args( $args, $defaults );
</span></span></pre></div>
<a id="trunkbpblogsbpblogstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/bp-blogs-templatetags.php (3684 => 3685)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/bp-blogs-templatetags.php        2011-01-09 16:01:35 UTC (rev 3684)
+++ trunk/bp-blogs/bp-blogs-templatetags.php        2011-01-09 17:40:12 UTC (rev 3685)
</span><span class="lines">@@ -539,7 +539,7 @@
</span><span class="cx">                         'block_self'        =&gt; false,
</span><span class="cx">                         'wrapper_class'     =&gt; 'blog-button visit',
</span><span class="cx">                         'link_href'         =&gt; bp_get_blog_permalink(),
</span><del>-                        'link_class'        =&gt; 'visit',
</del><ins>+                        'link_class'        =&gt; 'blog-button visit',
</ins><span class="cx">                         'link_text'         =&gt; __( 'Visit Blog', 'buddypress' ),
</span><span class="cx">                         'link_title'        =&gt; __( 'Visit Blog', 'buddypress' ),
</span><span class="cx">                 );
</span></span></pre></div>
<a id="trunkbpcorebpcoreclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-classes.php (3684 => 3685)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-classes.php        2011-01-09 16:01:35 UTC (rev 3684)
+++ trunk/bp-core/bp-core-classes.php        2011-01-09 17:40:12 UTC (rev 3685)
</span><span class="lines">@@ -546,7 +546,8 @@
</span><span class="cx">         var $must_be_logged_in;
</span><span class="cx">         var $block_self;
</span><span class="cx"> 
</span><del>-        // Wrapper div
</del><ins>+        // Wrapper
+        var $wrapper;
</ins><span class="cx">         var $wrapper_class;
</span><span class="cx">         var $wrapper_id;
</span><span class="cx"> 
</span><span class="lines">@@ -569,6 +570,7 @@
</span><span class="cx">          * component: Which component this button is for
</span><span class="cx">          * must_be_logged_in: Button only appears for logged in users
</span><span class="cx">          * block_self: Button will not appear when viewing your own profile.
</span><ins>+         * wrapper: div|span|p|li|false for no wrapper
</ins><span class="cx">          * wrapper_id: The DOM ID of the button wrapper
</span><span class="cx">          * wrapper_class: The DOM class of the button wrapper
</span><span class="cx">          * link_href: The destination link of the button
</span><span class="lines">@@ -583,12 +585,14 @@
</span><span class="cx">          */
</span><span class="cx">         function bp_button( $args = '' ) {
</span><span class="cx"> 
</span><ins>+                // Default arguments
</ins><span class="cx">                 $defaults = array(
</span><span class="cx">                         'id'                =&gt; '',
</span><span class="cx">                         'component'         =&gt; 'core',
</span><span class="cx">                         'must_be_logged_in' =&gt; true,
</span><span class="cx">                         'block_self'        =&gt; true,
</span><span class="cx"> 
</span><ins>+                        'wrapper'           =&gt; 'div',
</ins><span class="cx">                         'wrapper_id'        =&gt; '',
</span><span class="cx">                         'wrapper_class'     =&gt; '',
</span><span class="cx"> 
</span><span class="lines">@@ -608,6 +612,7 @@
</span><span class="cx">                 $this-&gt;component         = $component;
</span><span class="cx">                 $this-&gt;must_be_logged_in = (bool)$must_be_logged_in;
</span><span class="cx">                 $this-&gt;block_self        = (bool)$block_self;
</span><ins>+                $this-&gt;wrapper           = $wrapper;
</ins><span class="cx"> 
</span><span class="cx">                 // $id and $component are required
</span><span class="cx">                 if ( empty( $id ) || empty( $component ) )
</span><span class="lines">@@ -626,40 +631,51 @@
</span><span class="cx">                         return false;
</span><span class="cx"> 
</span><span class="cx">                 // Wrapper properties
</span><del>-                if ( !empty( $wrapper_id ) )
-                        $this-&gt;wrapper_id    = ' id=&quot;' . $wrapper_id . '&quot;';
</del><ins>+                if ( false !== $this-&gt;wrapper ) {
</ins><span class="cx"> 
</span><del>-                if ( !empty( $wrapper_class ) )
-                        $this-&gt;wrapper_class = ' class=&quot;generic-button ' . $wrapper_class . '&quot;';
-                else
-                        $this-&gt;wrapper_class = ' class=&quot;generic-button&quot;';
</del><ins>+                        // Wrapper ID
+                        if ( !empty( $wrapper_id ) )
+                                $this-&gt;wrapper_id    = ' id=&quot;' . $wrapper_id . '&quot;';
</ins><span class="cx"> 
</span><ins>+                        // Wrapper class
+                        if ( !empty( $wrapper_class ) )
+                                $this-&gt;wrapper_class = ' class=&quot;generic-button ' . $wrapper_class . '&quot;';
+                        else
+                                $this-&gt;wrapper_class = ' class=&quot;generic-button&quot;';
+
+                        // Set before and after
+                        $before = '&lt;' . $wrapper . $this-&gt;wrapper_class . $this-&gt;wrapper_id . '&gt;';
+                        $after  = '&lt;/' . $wrapper . '&gt;';
+
+                // No wrapper
+                } else {
+                        $before = $after = '';
+                }
+
</ins><span class="cx">                 // Link properties
</span><span class="cx">                 if ( !empty( $link_id ) )
</span><del>-                        $this-&gt;link_id       = ' id=&quot;' . $link_id . '&quot;';
</del><ins>+                        $this-&gt;link_id    = ' id=&quot;' . $link_id . '&quot;';
</ins><span class="cx"> 
</span><span class="cx">                 if ( !empty( $link_href ) )
</span><del>-                        $this-&gt;link_href     = ' href=&quot;' . $link_href . '&quot;';
</del><ins>+                        $this-&gt;link_href  = ' href=&quot;' . $link_href . '&quot;';
</ins><span class="cx"> 
</span><span class="cx">                 if ( !empty( $link_title ) )
</span><del>-                        $this-&gt;link_title    = ' title=&quot;' . $link_title . '&quot;';
</del><ins>+                        $this-&gt;link_title = ' title=&quot;' . $link_title . '&quot;';
</ins><span class="cx"> 
</span><span class="cx">                 if ( !empty( $link_rel ) )
</span><del>-                        $this-&gt;link_rel      = ' rel=&quot;' . $link_rel . '&quot;';
</del><ins>+                        $this-&gt;link_rel   = ' rel=&quot;' . $link_rel . '&quot;';
</ins><span class="cx"> 
</span><span class="cx">                 if ( !empty( $link_class ) )
</span><del>-                        $this-&gt;link_class    = ' class=&quot;' . $link_class . '&quot;';
</del><ins>+                        $this-&gt;link_class = ' class=&quot;' . $link_class . '&quot;';
</ins><span class="cx"> 
</span><span class="cx">                 if ( !empty( $link_text ) )
</span><del>-                        $this-&gt;link_text     = $link_text;
</del><ins>+                        $this-&gt;link_text  = $link_text;
</ins><span class="cx"> 
</span><span class="cx">                 // Build the button
</span><del>-                $this-&gt;contents  = '&lt;div' . $this-&gt;wrapper_class . $this-&gt;wrapper_id . '&gt;';
-                $this-&gt;contents .= '&lt;a'. $this-&gt;link_href . $this-&gt;link_title . $this-&gt;link_id . $this-&gt;link_rel . $this-&gt;link_class . '&gt;' . $this-&gt;link_text . '&lt;/a&gt;';
-                $this-&gt;contents .= '&lt;/div&gt;';
</del><ins>+                $this-&gt;contents = $before . '&lt;a'. $this-&gt;link_href . $this-&gt;link_title . $this-&gt;link_id . $this-&gt;link_rel . $this-&gt;link_class . '&gt;' . $this-&gt;link_text . '&lt;/a&gt;' . $after;
</ins><span class="cx"> 
</span><span class="cx">                 // Allow button to be manipulated externally
</span><del>-                $this-&gt;contents = apply_filters( 'bp_button_' . $component . '_' . $id, $this-&gt;contents, $this );
</del><ins>+                $this-&gt;contents = apply_filters( 'bp_button_' . $component . '_' . $id, $this-&gt;contents, $this, $before, $after );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /**
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (3684 => 3685)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2011-01-09 16:01:35 UTC (rev 3684)
+++ trunk/bp-core/bp-core-templatetags.php        2011-01-09 17:40:12 UTC (rev 3685)
</span><span class="lines">@@ -1115,28 +1115,40 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * bp_button( $button )
- *
</del><span class="cx">  * Creates and outputs a button.
</span><del>- * Args: div_id | div_class | a_href | a_title | a_id | a_class | a_rel | a_text
- *
- * @param array $button
</del><ins>+ * 
+ * @param array $args See bp_get_button() for the list of arguments.
+ * @see bp_get_button()
</ins><span class="cx">  */
</span><del>-function bp_button( $button = '' ) {
-        echo bp_get_button( $button );
</del><ins>+function bp_button( $args = '' ) {
+        echo bp_get_button( $args );
</ins><span class="cx"> }
</span><span class="cx">         /**
</span><del>-         * bp_get_button( $button )
-         *
</del><span class="cx">          * Creates and returns a button.
</span><del>-         * Args: div_id | div_class | a_href | a_title | a_id | a_class | a_rel | a_text
</del><span class="cx">          *
</span><ins>+         * Args:
+         * component: Which component this button is for
+         * must_be_logged_in: Button only appears for logged in users
+         * block_self: Button will not appear when viewing your own profile.
+         * wrapper: div|span|p|li|
+         * wrapper_id: The DOM ID of the button wrapper
+         * wrapper_class: The DOM class of the button wrapper
+         * link_href: The destination link of the button
+         * link_title: Title of the button
+         * link_id: The DOM ID of the button
+         * link_class: The DOM class of the button
+         * link_rel: The DOM rel of the button
+         * link_text: The contents of the button
+         *
</ins><span class="cx">          * @param array $button
</span><span class="cx">          * @return string
</span><ins>+         * @see bp_add_friend_button()
+         * @see bp_send_public_message_button()
+         * @see bp_send_private_message_button()
</ins><span class="cx">          */
</span><del>-        function bp_get_button( $button = '' ) {
-                $btn = new BP_Button( $button );
-                return apply_filters( 'bp_get_button', $btn-&gt;contents, $button );
</del><ins>+        function bp_get_button( $args = '' ) {
+                $button = new BP_Button( $args );
+                return apply_filters( 'bp_get_button', $button-&gt;contents, $args, $button );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkbpfriendsbpfriendstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends/bp-friends-templatetags.php (3684 => 3685)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends/bp-friends-templatetags.php        2011-01-09 16:01:35 UTC (rev 3684)
+++ trunk/bp-friends/bp-friends-templatetags.php        2011-01-09 17:40:12 UTC (rev 3685)
</span><span class="lines">@@ -219,10 +219,10 @@
</span><span class="cx">                                         'block_self'        =&gt; true,
</span><span class="cx">                                         'wrapper_class'     =&gt; 'friendship-button pending',
</span><span class="cx">                                         'wrapper_id'        =&gt; 'friendship-button-' . $potential_friend_id,
</span><del>-                                        'link_class'        =&gt; 'requested',
</del><span class="cx">                                         'link_href'         =&gt; trailingslashit( $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;friends-&gt;slug . '/requests' ),
</span><span class="cx">                                         'link_text'         =&gt; __( 'Friendship Requested', 'buddypress' ),
</span><del>-                                        'link_title'        =&gt; __( 'Friendship Requested', 'buddypress' )
</del><ins>+                                        'link_title'        =&gt; __( 'Friendship Requested', 'buddypress' ),
+                                        'link_class'        =&gt; 'friendship-button pending requested'
</ins><span class="cx">                                 );
</span><span class="cx">                                 break;
</span><span class="cx"> 
</span><span class="lines">@@ -234,13 +234,12 @@
</span><span class="cx">                                         'block_self'        =&gt; false,
</span><span class="cx">                                         'wrapper_class'     =&gt; 'friendship-button is_friend',
</span><span class="cx">                                         'wrapper_id'        =&gt; 'friendship-button-' . $potential_friend_id,
</span><del>-                                        'link_class'        =&gt; '',
</del><span class="cx">                                         'link_href'         =&gt; wp_nonce_url( $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;friends-&gt;slug . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' ),
</span><span class="cx">                                         'link_text'         =&gt; __( 'Cancel Friendship', 'buddypress' ),
</span><span class="cx">                                         'link_title'        =&gt; __( 'Cancel Friendship', 'buddypress' ),
</span><span class="cx">                                         'link_id'           =&gt; 'friend-' . $potential_friend_id,
</span><span class="cx">                                         'link_rel'          =&gt; 'remove',
</span><del>-                                        'link_class'        =&gt; 'remove'
</del><ins>+                                        'link_class'        =&gt; 'friendship-button is_friend remove'
</ins><span class="cx">                                 );
</span><span class="cx">                                 break;
</span><span class="cx"> 
</span><span class="lines">@@ -252,13 +251,12 @@
</span><span class="cx">                                         'block_self'        =&gt; true,
</span><span class="cx">                                         'wrapper_class'     =&gt; 'friendship-button not_friends',
</span><span class="cx">                                         'wrapper_id'        =&gt; 'friendship-button-' . $potential_friend_id,
</span><del>-                                        'link_class'        =&gt; '',
</del><span class="cx">                                         'link_href'         =&gt; wp_nonce_url( $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;friends-&gt;slug . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ),
</span><span class="cx">                                         'link_text'         =&gt; __( 'Add Friend', 'buddypress' ),
</span><span class="cx">                                         'link_title'        =&gt; __( 'Add Friend', 'buddypress' ),
</span><span class="cx">                                         'link_id'           =&gt; 'friend-' . $potential_friend_id,
</span><span class="cx">                                         'link_rel'          =&gt; 'add',
</span><del>-                                        'link_class'        =&gt; 'add'
</del><ins>+                                        'link_class'        =&gt; 'friendship-button not_friends add'
</ins><span class="cx">                                 );
</span><span class="cx">                                 break;
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-templatetags.php (3684 => 3685)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-templatetags.php        2011-01-09 16:01:35 UTC (rev 3684)
+++ trunk/bp-groups/bp-groups-templatetags.php        2011-01-09 17:40:12 UTC (rev 3685)
</span><span class="lines">@@ -1150,7 +1150,7 @@
</span><span class="cx">                         'block_self'        =&gt; true,
</span><span class="cx">                         'wrapper_class'     =&gt; 'group-button',
</span><span class="cx">                         'link_href'         =&gt; '#post-new',
</span><del>-                        'link_class'        =&gt; '',
</del><ins>+                        'link_class'        =&gt; 'group-button',
</ins><span class="cx">                         'link_id'           =&gt; 'new-topic-button',
</span><span class="cx">                         'link_text'         =&gt; __( 'New Topic', 'buddypress' ),
</span><span class="cx">                         'link_title'        =&gt; __( 'New Topic', 'buddypress' ),
</span><span class="lines">@@ -1191,10 +1191,10 @@
</span><span class="cx">                                 'block_self'        =&gt; false,
</span><span class="cx">                                 'wrapper_class'     =&gt; 'group-button ' . $group-&gt;status,
</span><span class="cx">                                 'wrapper_id'        =&gt; 'groupbutton-' . $group-&gt;id,
</span><del>-                                'link_class'        =&gt; 'leave-group',
</del><span class="cx">                                 'link_href'         =&gt; wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ),
</span><span class="cx">                                 'link_text'         =&gt; __( 'Leave Group', 'buddypress' ),
</span><del>-                                'link_title'        =&gt; __( 'Leave Group', 'buddypress' )
</del><ins>+                                'link_title'        =&gt; __( 'Leave Group', 'buddypress' ),
+                                'link_class'        =&gt; 'group-button leave-group',
</ins><span class="cx">                         );
</span><span class="cx"> 
</span><span class="cx">                 // Not a member
</span><span class="lines">@@ -1214,10 +1214,10 @@
</span><span class="cx">                                                 'block_self'        =&gt; false,
</span><span class="cx">                                                 'wrapper_class'     =&gt; 'group-button ' . $group-&gt;status,
</span><span class="cx">                                                 'wrapper_id'        =&gt; 'groupbutton-' . $group-&gt;id,
</span><del>-                                                'link_class'        =&gt; 'join-group',
</del><span class="cx">                                                 'link_href'         =&gt; wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ),
</span><span class="cx">                                                 'link_text'         =&gt; __( 'Join Group', 'buddypress' ),
</span><del>-                                                'link_title'        =&gt; __( 'Join Group', 'buddypress' )
</del><ins>+                                                'link_title'        =&gt; __( 'Join Group', 'buddypress' ),
+                                                'link_class'        =&gt; 'group-button join-group',
</ins><span class="cx">                                         );
</span><span class="cx">                                         break;
</span><span class="cx"> 
</span><span class="lines">@@ -1232,10 +1232,10 @@
</span><span class="cx">                                                         'block_self'        =&gt; false,
</span><span class="cx">                                                         'wrapper_class'     =&gt; 'group-button ' . $group-&gt;status,
</span><span class="cx">                                                         'wrapper_id'        =&gt; 'groupbutton-' . $group-&gt;id,
</span><del>-                                                        'link_class'        =&gt; 'request-membership',
</del><span class="cx">                                                         'link_href'         =&gt; wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ),
</span><span class="cx">                                                         'link_text'         =&gt; __( 'Request Membership', 'buddypress' ),
</span><span class="cx">                                                         'link_title'        =&gt; __( 'Request Membership', 'buddypress' ),
</span><ins>+                                                        'link_class'        =&gt; 'group-button request-membership',
</ins><span class="cx">                                                 );
</span><span class="cx"> 
</span><span class="cx">                                         // Member has requested membership already
</span><span class="lines">@@ -1247,10 +1247,10 @@
</span><span class="cx">                                                         'block_self'        =&gt; false,
</span><span class="cx">                                                         'wrapper_class'     =&gt; 'group-button pending ' . $group-&gt;status,
</span><span class="cx">                                                         'wrapper_id'        =&gt; 'groupbutton-' . $group-&gt;id,
</span><del>-                                                        'link_class'        =&gt; 'membership-requested',
</del><span class="cx">                                                         'link_href'         =&gt; bp_get_group_permalink( $group ),
</span><span class="cx">                                                         'link_text'         =&gt; __( 'Request Sent', 'buddypress' ),
</span><span class="cx">                                                         'link_title'        =&gt; __( 'Request Sent', 'buddypress' ),
</span><ins>+                                                        'link_class'        =&gt; 'group-button pending membership-requested',
</ins><span class="cx">                                                 );
</span><span class="cx">                                         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpmessagesbpmessagestemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-messages/bp-messages-templatetags.php (3684 => 3685)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-messages/bp-messages-templatetags.php        2011-01-09 16:01:35 UTC (rev 3684)
+++ trunk/bp-messages/bp-messages-templatetags.php        2011-01-09 17:40:12 UTC (rev 3685)
</span><span class="lines">@@ -547,9 +547,9 @@
</span><span class="cx">                                 'block_self'        =&gt; true,
</span><span class="cx">                                 'wrapper_id'        =&gt; 'send-private-message',
</span><span class="cx">                                 'link_href'         =&gt; bp_get_send_private_message_link(),
</span><ins>+                                'link_title'        =&gt; __( 'Send a private message to this user.', 'buddypress' ),
+                                'link_text'         =&gt; __( 'Send Private Message', 'buddypress' ),
</ins><span class="cx">                                 'link_class'        =&gt; 'send-message',
</span><del>-                                'link_title'        =&gt; __( 'Send a private message to this user.', 'buddypress' ),
-                                'link_text'         =&gt; __( 'Send Private Message', 'buddypress' )
</del><span class="cx">                         ) )
</span><span class="cx">                 );
</span><span class="cx">         }
</span></span></pre>
</div>
</div>

</body>
</html>