<!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' => 'post-mention',
</span><span class="cx">                         'link_href' => bp_get_send_public_message_link(),
</span><span class="cx">                         'link_title' => __( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ),
</span><del>-                        'link_text' => __( 'Mention this User', 'buddypress' )
</del><ins>+                        'link_text' => __( 'Mention this User', 'buddypress' ),
+                        'link_class' => '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' => false,
</span><span class="cx">                         'wrapper_class' => 'blog-button visit',
</span><span class="cx">                         'link_href' => bp_get_blog_permalink(),
</span><del>-                        'link_class' => 'visit',
</del><ins>+                        'link_class' => 'blog-button visit',
</ins><span class="cx">                         'link_text' => __( 'Visit Blog', 'buddypress' ),
</span><span class="cx">                         'link_title' => __( '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' => '',
</span><span class="cx">                         'component' => 'core',
</span><span class="cx">                         'must_be_logged_in' => true,
</span><span class="cx">                         'block_self' => true,
</span><span class="cx">
</span><ins>+                        'wrapper' => 'div',
</ins><span class="cx">                         'wrapper_id' => '',
</span><span class="cx">                         'wrapper_class' => '',
</span><span class="cx">
</span><span class="lines">@@ -608,6 +612,7 @@
</span><span class="cx">                 $this->component = $component;
</span><span class="cx">                 $this->must_be_logged_in = (bool)$must_be_logged_in;
</span><span class="cx">                 $this->block_self = (bool)$block_self;
</span><ins>+                $this->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->wrapper_id = ' id="' . $wrapper_id . '"';
</del><ins>+                if ( false !== $this->wrapper ) {
</ins><span class="cx">
</span><del>-                if ( !empty( $wrapper_class ) )
-                        $this->wrapper_class = ' class="generic-button ' . $wrapper_class . '"';
-                else
-                        $this->wrapper_class = ' class="generic-button"';
</del><ins>+                        // Wrapper ID
+                        if ( !empty( $wrapper_id ) )
+                                $this->wrapper_id = ' id="' . $wrapper_id . '"';
</ins><span class="cx">
</span><ins>+                        // Wrapper class
+                        if ( !empty( $wrapper_class ) )
+                                $this->wrapper_class = ' class="generic-button ' . $wrapper_class . '"';
+                        else
+                                $this->wrapper_class = ' class="generic-button"';
+
+                        // Set before and after
+                        $before = '<' . $wrapper . $this->wrapper_class . $this->wrapper_id . '>';
+                        $after = '</' . $wrapper . '>';
+
+                // No wrapper
+                } else {
+                        $before = $after = '';
+                }
+
</ins><span class="cx">                 // Link properties
</span><span class="cx">                 if ( !empty( $link_id ) )
</span><del>-                        $this->link_id = ' id="' . $link_id . '"';
</del><ins>+                        $this->link_id = ' id="' . $link_id . '"';
</ins><span class="cx">
</span><span class="cx">                 if ( !empty( $link_href ) )
</span><del>-                        $this->link_href = ' href="' . $link_href . '"';
</del><ins>+                        $this->link_href = ' href="' . $link_href . '"';
</ins><span class="cx">
</span><span class="cx">                 if ( !empty( $link_title ) )
</span><del>-                        $this->link_title = ' title="' . $link_title . '"';
</del><ins>+                        $this->link_title = ' title="' . $link_title . '"';
</ins><span class="cx">
</span><span class="cx">                 if ( !empty( $link_rel ) )
</span><del>-                        $this->link_rel = ' rel="' . $link_rel . '"';
</del><ins>+                        $this->link_rel = ' rel="' . $link_rel . '"';
</ins><span class="cx">
</span><span class="cx">                 if ( !empty( $link_class ) )
</span><del>-                        $this->link_class = ' class="' . $link_class . '"';
</del><ins>+                        $this->link_class = ' class="' . $link_class . '"';
</ins><span class="cx">
</span><span class="cx">                 if ( !empty( $link_text ) )
</span><del>-                        $this->link_text = $link_text;
</del><ins>+                        $this->link_text = $link_text;
</ins><span class="cx">
</span><span class="cx">                 // Build the button
</span><del>-                $this->contents = '<div' . $this->wrapper_class . $this->wrapper_id . '>';
-                $this->contents .= '<a'. $this->link_href . $this->link_title . $this->link_id . $this->link_rel . $this->link_class . '>' . $this->link_text . '</a>';
-                $this->contents .= '</div>';
</del><ins>+                $this->contents = $before . '<a'. $this->link_href . $this->link_title . $this->link_id . $this->link_rel . $this->link_class . '>' . $this->link_text . '</a>' . $after;
</ins><span class="cx">
</span><span class="cx">                 // Allow button to be manipulated externally
</span><del>-                $this->contents = apply_filters( 'bp_button_' . $component . '_' . $id, $this->contents, $this );
</del><ins>+                $this->contents = apply_filters( 'bp_button_' . $component . '_' . $id, $this->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->contents, $button );
</del><ins>+        function bp_get_button( $args = '' ) {
+                $button = new BP_Button( $args );
+                return apply_filters( 'bp_get_button', $button->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' => true,
</span><span class="cx">                                         'wrapper_class' => 'friendship-button pending',
</span><span class="cx">                                         'wrapper_id' => 'friendship-button-' . $potential_friend_id,
</span><del>-                                        'link_class' => 'requested',
</del><span class="cx">                                         'link_href' => trailingslashit( $bp->loggedin_user->domain . $bp->friends->slug . '/requests' ),
</span><span class="cx">                                         'link_text' => __( 'Friendship Requested', 'buddypress' ),
</span><del>-                                        'link_title' => __( 'Friendship Requested', 'buddypress' )
</del><ins>+                                        'link_title' => __( 'Friendship Requested', 'buddypress' ),
+                                        'link_class' => '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' => false,
</span><span class="cx">                                         'wrapper_class' => 'friendship-button is_friend',
</span><span class="cx">                                         'wrapper_id' => 'friendship-button-' . $potential_friend_id,
</span><del>-                                        'link_class' => '',
</del><span class="cx">                                         'link_href' => wp_nonce_url( $bp->loggedin_user->domain . $bp->friends->slug . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' ),
</span><span class="cx">                                         'link_text' => __( 'Cancel Friendship', 'buddypress' ),
</span><span class="cx">                                         'link_title' => __( 'Cancel Friendship', 'buddypress' ),
</span><span class="cx">                                         'link_id' => 'friend-' . $potential_friend_id,
</span><span class="cx">                                         'link_rel' => 'remove',
</span><del>-                                        'link_class' => 'remove'
</del><ins>+                                        'link_class' => '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' => true,
</span><span class="cx">                                         'wrapper_class' => 'friendship-button not_friends',
</span><span class="cx">                                         'wrapper_id' => 'friendship-button-' . $potential_friend_id,
</span><del>-                                        'link_class' => '',
</del><span class="cx">                                         'link_href' => wp_nonce_url( $bp->loggedin_user->domain . $bp->friends->slug . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ),
</span><span class="cx">                                         'link_text' => __( 'Add Friend', 'buddypress' ),
</span><span class="cx">                                         'link_title' => __( 'Add Friend', 'buddypress' ),
</span><span class="cx">                                         'link_id' => 'friend-' . $potential_friend_id,
</span><span class="cx">                                         'link_rel' => 'add',
</span><del>-                                        'link_class' => 'add'
</del><ins>+                                        'link_class' => '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' => true,
</span><span class="cx">                         'wrapper_class' => 'group-button',
</span><span class="cx">                         'link_href' => '#post-new',
</span><del>-                        'link_class' => '',
</del><ins>+                        'link_class' => 'group-button',
</ins><span class="cx">                         'link_id' => 'new-topic-button',
</span><span class="cx">                         'link_text' => __( 'New Topic', 'buddypress' ),
</span><span class="cx">                         'link_title' => __( 'New Topic', 'buddypress' ),
</span><span class="lines">@@ -1191,10 +1191,10 @@
</span><span class="cx">                                 'block_self' => false,
</span><span class="cx">                                 'wrapper_class' => 'group-button ' . $group->status,
</span><span class="cx">                                 'wrapper_id' => 'groupbutton-' . $group->id,
</span><del>-                                'link_class' => 'leave-group',
</del><span class="cx">                                 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ),
</span><span class="cx">                                 'link_text' => __( 'Leave Group', 'buddypress' ),
</span><del>-                                'link_title' => __( 'Leave Group', 'buddypress' )
</del><ins>+                                'link_title' => __( 'Leave Group', 'buddypress' ),
+                                'link_class' => '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' => false,
</span><span class="cx">                                                 'wrapper_class' => 'group-button ' . $group->status,
</span><span class="cx">                                                 'wrapper_id' => 'groupbutton-' . $group->id,
</span><del>-                                                'link_class' => 'join-group',
</del><span class="cx">                                                 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ),
</span><span class="cx">                                                 'link_text' => __( 'Join Group', 'buddypress' ),
</span><del>-                                                'link_title' => __( 'Join Group', 'buddypress' )
</del><ins>+                                                'link_title' => __( 'Join Group', 'buddypress' ),
+                                                'link_class' => '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' => false,
</span><span class="cx">                                                         'wrapper_class' => 'group-button ' . $group->status,
</span><span class="cx">                                                         'wrapper_id' => 'groupbutton-' . $group->id,
</span><del>-                                                        'link_class' => 'request-membership',
</del><span class="cx">                                                         'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ),
</span><span class="cx">                                                         'link_text' => __( 'Request Membership', 'buddypress' ),
</span><span class="cx">                                                         'link_title' => __( 'Request Membership', 'buddypress' ),
</span><ins>+                                                        'link_class' => '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' => false,
</span><span class="cx">                                                         'wrapper_class' => 'group-button pending ' . $group->status,
</span><span class="cx">                                                         'wrapper_id' => 'groupbutton-' . $group->id,
</span><del>-                                                        'link_class' => 'membership-requested',
</del><span class="cx">                                                         'link_href' => bp_get_group_permalink( $group ),
</span><span class="cx">                                                         'link_text' => __( 'Request Sent', 'buddypress' ),
</span><span class="cx">                                                         'link_title' => __( 'Request Sent', 'buddypress' ),
</span><ins>+                                                        'link_class' => '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' => true,
</span><span class="cx">                                 'wrapper_id' => 'send-private-message',
</span><span class="cx">                                 'link_href' => bp_get_send_private_message_link(),
</span><ins>+                                'link_title' => __( 'Send a private message to this user.', 'buddypress' ),
+                                'link_text' => __( 'Send Private Message', 'buddypress' ),
</ins><span class="cx">                                 'link_class' => 'send-message',
</span><del>-                                'link_title' => __( 'Send a private message to this user.', 'buddypress' ),
-                                'link_text' => __( 'Send Private Message', 'buddypress' )
</del><span class="cx">                         ) )
</span><span class="cx">                 );
</span><span class="cx">         }
</span></span></pre>
</div>
</div>
</body>
</html>