Changeset 10904
- Timestamp:
- 06/23/2016 05:39:30 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r10894 r10904 3163 3163 * @type string $link_href Default: the public message link for 3164 3164 * the current member in the loop. 3165 * @type string $link_title Default: 'Send a public message on your3166 * activity stream.'.3167 3165 * @type string $link_text Default: 'Public Message'. 3168 3166 * @type string $link_class Default: 'activity-button mention'. … … 3179 3177 'wrapper_id' => 'post-mention', 3180 3178 'link_href' => bp_get_send_public_message_link(), 3181 'link_title' => __( 'Send a public message on your activity stream.', 'buddypress' ),3182 3179 'link_text' => __( 'Public Message', 'buddypress' ), 3183 3180 'link_class' => 'activity-button mention' -
trunk/src/bp-blogs/bp-blogs-template.php
r10825 r10904 1281 1281 'component' => 'blogs', 1282 1282 'link_text' => __( 'Create a Site', 'buddypress' ), 1283 'link_title' => __( 'Create a Site', 'buddypress' ),1284 1283 'link_class' => 'blog-create no-ajax', 1285 1284 'link_href' => trailingslashit( bp_get_blogs_directory_permalink() . 'create' ), … … 1378 1377 * @type string $link_class Default: 'blog-button visit'. 1379 1378 * @type string $link_text Default: 'Visit Site'. 1380 * @type string $link_title Default: 'Visit Site'.1381 1379 * } 1382 1380 * @return string The HTML for the Visit button. … … 1392 1390 'link_class' => 'blog-button visit', 1393 1391 'link_text' => __( 'Visit Site', 'buddypress' ), 1394 'link_title' => __( 'Visit Site', 'buddypress' ),1395 1392 ); 1396 1393 -
trunk/src/bp-friends/bp-friends-template.php
r10825 r10904 370 370 'link_href' => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . $potential_friend_id . '/', 'friends_withdraw_friendship' ), 371 371 'link_text' => __( 'Cancel Friendship Request', 'buddypress' ), 372 'link_title' => __( 'Cancel Friendship Requested', 'buddypress' ),373 372 'link_id' => 'friend-' . $potential_friend_id, 374 373 'link_rel' => 'remove', … … 387 386 'link_href' => bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/', 388 387 'link_text' => __( 'Friendship Requested', 'buddypress' ), 389 'link_title' => __( 'Friendship Requested', 'buddypress' ),390 388 'link_id' => 'friend-' . $potential_friend_id, 391 389 'link_rel' => 'remove', … … 404 402 'link_href' => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' ), 405 403 'link_text' => __( 'Cancel Friendship', 'buddypress' ), 406 'link_title' => __( 'Cancel Friendship', 'buddypress' ),407 404 'link_id' => 'friend-' . $potential_friend_id, 408 405 'link_rel' => 'remove', … … 421 418 'link_href' => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ), 422 419 'link_text' => __( 'Add Friend', 'buddypress' ), 423 'link_title' => __( 'Add Friend', 'buddypress' ),424 420 'link_id' => 'friend-' . $potential_friend_id, 425 421 'link_rel' => 'add', -
trunk/src/bp-groups/bp-groups-template.php
r10891 r10904 2249 2249 2250 2250 <span class="small"> 2251 <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => $mod->user_id ) ) ?>" class="button confirm mod-promote-to-admin" title="<?php esc_attr_e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>2251 <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => $mod->user_id ) ) ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a> 2252 2252 <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link($mod->user_id) ?>"><?php _e( 'Demote to Member', 'buddypress' ) ?></a> 2253 2253 </span> … … 3163 3163 'link_id' => 'new-topic-button', 3164 3164 'link_text' => __( 'New Topic', 'buddypress' ), 3165 'link_title' => __( 'New Topic', 'buddypress' ),3166 3165 ); 3167 3166 … … 3233 3232 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ), 3234 3233 'link_text' => __( 'Leave Group', 'buddypress' ), 3235 'link_title' => __( 'Leave Group', 'buddypress' ),3236 3234 'link_class' => 'group-button leave-group', 3237 3235 ); … … 3255 3253 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ), 3256 3254 'link_text' => __( 'Join Group', 'buddypress' ), 3257 'link_title' => __( 'Join Group', 'buddypress' ),3258 3255 'link_class' => 'group-button join-group', 3259 3256 ); … … 3274 3271 'link_href' => add_query_arg( 'redirect_to', bp_get_group_permalink( $group ), bp_get_group_accept_invite_link( $group ) ), 3275 3272 'link_text' => __( 'Accept Invitation', 'buddypress' ), 3276 'link_title' => __( 'Accept Invitation', 'buddypress' ),3277 3273 'link_class' => 'group-button accept-invite', 3278 3274 ); … … 3290 3286 'link_href' => bp_get_group_permalink( $group ), 3291 3287 'link_text' => __( 'Request Sent', 'buddypress' ), 3292 'link_title' => __( 'Request Sent', 'buddypress' ),3293 3288 'link_class' => 'group-button pending membership-requested', 3294 3289 ); … … 3306 3301 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ), 3307 3302 'link_text' => __( 'Request Membership', 'buddypress' ), 3308 'link_title' => __( 'Request Membership', 'buddypress' ),3309 3303 'link_class' => 'group-button request-membership', 3310 3304 ); … … 3355 3349 'component' => 'groups', 3356 3350 'link_text' => __( 'Create a Group', 'buddypress' ), 3357 'link_title' => __( 'Create a Group', 'buddypress' ),3358 3351 'link_class' => 'group-create no-ajax', 3359 3352 'link_href' => trailingslashit( bp_get_groups_directory_permalink() . 'create' ), -
trunk/src/bp-messages/bp-messages-template.php
r10882 r10904 1346 1346 'wrapper_id' => 'send-private-message', 1347 1347 'link_href' => bp_get_send_private_message_link(), 1348 'link_title' => __( 'Send a private message to this user.', 'buddypress' ),1349 1348 'link_text' => __( 'Private Message', 'buddypress' ), 1350 1349 'link_class' => 'send-message', -
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r10858 r10904 1345 1345 echo __( 'Friendship could not be canceled.', 'buddypress' ); 1346 1346 } else { 1347 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="add" rel="add" title="' . __( 'Add Friend', 'buddypress' ) . '"href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $friend_id, 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>';1347 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="add" rel="add" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $friend_id, 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>'; 1348 1348 } 1349 1349 … … 1355 1355 echo __(' Friendship could not be requested.', 'buddypress' ); 1356 1356 } else { 1357 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="remove" rel="remove" title="' . __( 'Cancel Friendship Request', 'buddypress' ) . '"href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . $friend_id . '/', 'friends_withdraw_friendship' ) . '" class="requested">' . __( 'Cancel Friendship Request', 'buddypress' ) . '</a>';1357 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="remove" rel="remove" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . $friend_id . '/', 'friends_withdraw_friendship' ) . '" class="requested">' . __( 'Cancel Friendship Request', 'buddypress' ) . '</a>'; 1358 1358 } 1359 1359 … … 1363 1363 1364 1364 if ( friends_withdraw_friendship( bp_loggedin_user_id(), $friend_id ) ) { 1365 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="add" rel="add" title="' . __( 'Add Friend', 'buddypress' ) . '"href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $friend_id, 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>';1365 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="add" rel="add" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $friend_id, 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>'; 1366 1366 } else { 1367 1367 echo __("Friendship request could not be cancelled.", 'buddypress'); -
trunk/src/bp-templates/bp-legacy/buddypress/activity/entry.php
r10827 r10904 73 73 <?php if ( !bp_get_activity_is_favorite() ) : ?> 74 74 75 <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php _e( 'Favorite', 'buddypress' ); ?></a>75 <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action"><?php _e( 'Favorite', 'buddypress' ); ?></a> 76 76 77 77 <?php else : ?> 78 78 79 <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php _e( 'Remove Favorite', 'buddypress' ); ?></a>79 <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action"><?php _e( 'Remove Favorite', 'buddypress' ); ?></a> 80 80 81 81 <?php endif; ?> -
trunk/src/bp-templates/bp-legacy/buddypress/activity/index.php
r10265 r10904 53 53 do_action( 'bp_before_activity_type_tab_all' ); ?> 54 54 55 <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li>55 <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li> 56 56 57 57 <?php if ( is_user_logged_in() ) : ?> … … 70 70 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 71 71 72 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>72 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li> 73 73 74 74 <?php endif; ?> … … 89 89 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 90 90 91 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>91 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>"><?php printf( __( 'My Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li> 92 92 93 93 <?php endif; ?> … … 106 106 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 107 107 108 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>" title="<?php esc_attr_e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( __( 'My Favorites %s', 'buddypress' ), '<span>' . bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>108 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>"><?php printf( __( 'My Favorites %s', 'buddypress' ), '<span>' . bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li> 109 109 110 110 <?php endif; ?> … … 121 121 do_action( 'bp_before_activity_type_tab_mentions' ); ?> 122 122 123 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php esc_attr_e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><span><?php printf( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></span></strong><?php endif; ?></a></li>123 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><span><?php printf( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></span></strong><?php endif; ?></a></li> 124 124 125 125 <?php endif; ?> -
trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/index.php
r10181 r10904 36 36 <# if ( 'user' === data.object ) { #> 37 37 <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p> 38 <p><a class="button edit" id="bp-delete-avatar" href="#" title="<?php esc_attr_e( 'Delete Profile Photo', 'buddypress' ); ?>"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p>38 <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p> 39 39 <# } else if ( 'group' === data.object ) { #> 40 40 <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p> 41 <p><a class="button edit" id="bp-delete-avatar" href="#" title="<?php esc_attr_e( 'Delete Group Profile Photo', 'buddypress' ); ?>"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></a></p>41 <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></a></p> 42 42 <# } else { #> 43 43 <?php do_action( 'bp_attachments_avatar_delete_template' ); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/cover-images/index.php
r10181 r10904 25 25 <# if ( 'user' === data.object ) { #> 26 26 <p><?php _e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p> 27 <p><a class="button edit" id="bp-delete-cover-image" href="#" title="<?php esc_attr_e( 'Delete Cover Image', 'buddypress' ); ?>"><?php esc_html_e( 'Delete My Cover Image', 'buddypress' ); ?></a></p>27 <p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete My Cover Image', 'buddypress' ); ?></a></p> 28 28 <# } else if ( 'group' === data.object ) { #> 29 29 <p><?php _e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p> 30 <p><a class="button edit" id="bp-delete-cover-image" href="#" title="<?php esc_attr_e( 'Delete Cover Image', 'buddypress' ); ?>"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></a></p>30 <p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></a></p> 31 31 <# } else { #> 32 32 <?php do_action( 'bp_attachments_cover_image_delete_template' ); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php
r10848 r10904 181 181 <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p> 182 182 183 <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_t itle' => __( 'Delete Group Profile Photo', 'buddypress' ), 'link_text' => __( 'Delete Group Profile Photo', 'buddypress' ) ) ); ?>183 <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_text' => __( 'Delete Group Profile Photo', 'buddypress' ) ) ); ?> 184 184 185 185 <?php endif; ?> … … 302 302 <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a> 303 303 <span class="small"> 304 <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin" title="<?php esc_attr_e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>304 <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a> 305 305 <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a> 306 306 </span> … … 356 356 <?php else : ?> 357 357 358 <a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban" title="<?php esc_attr_e( 'Kick and ban this member', 'buddypress' ); ?>"><?php _e( 'Kick & Ban', 'buddypress' ); ?></a>359 <a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod" title="<?php esc_attr_e( 'Promote to Mod', 'buddypress' ); ?>"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a>360 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin" title="<?php esc_attr_e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>358 <a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban"><?php _e( 'Kick & Ban', 'buddypress' ); ?></a> 359 <a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a> 360 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a> 361 361 362 362 <?php endif; ?> 363 363 364 <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm" title="<?php esc_attr_e( 'Remove this member', 'buddypress' ); ?>"><?php _e( 'Remove from group', 'buddypress' ); ?></a>364 <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php _e( 'Remove from group', 'buddypress' ); ?></a> 365 365 366 366 <?php … … 505 505 506 506 </form><!-- #group-settings-form --> 507 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/requests-loop.php
r10813 r10904 55 55 <div class="action"> 56 56 57 <?php bp_button( array( 'id' => 'group_membership_accept', 'component' => 'groups', 'wrapper_class' => 'accept', 'link_href' => bp_get_group_request_accept_link(), 'link_t itle' => __( 'Accept', 'buddypress' ), 'link_text' => __( 'Accept', 'buddypress' ) ) ); ?>57 <?php bp_button( array( 'id' => 'group_membership_accept', 'component' => 'groups', 'wrapper_class' => 'accept', 'link_href' => bp_get_group_request_accept_link(), 'link_text' => __( 'Accept', 'buddypress' ) ) ); ?> 58 58 59 <?php bp_button( array( 'id' => 'group_membership_reject', 'component' => 'groups', 'wrapper_class' => 'reject', 'link_href' => bp_get_group_request_reject_link(), 'link_t itle' => __( 'Reject', 'buddypress' ), 'link_text' => __( 'Reject', 'buddypress' ) ) ); ?>59 <?php bp_button( array( 'id' => 'group_membership_reject', 'component' => 'groups', 'wrapper_class' => 'reject', 'link_href' => bp_get_group_request_reject_link(), 'link_text' => __( 'Reject', 'buddypress' ) ) ); ?> 60 60 61 61 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php
r10827 r10904 43 43 <?php if ( bp_get_user_has_avatar() ) : ?> 44 44 <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p> 45 <p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>" title="<?php esc_attr_e( 'Delete Profile Photo', 'buddypress' ); ?>"><?php _e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p>45 <p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>"><?php _e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p> 46 46 <?php endif; ?> 47 47 -
trunk/src/bp-xprofile/bp-xprofile-template.php
r10828 r10904 1230 1230 'link_class' => 'edit', 1231 1231 'link_text' => __( 'Edit Profile', 'buddypress' ), 1232 'link_title' => __( 'Edit Profile', 'buddypress' ),1233 1232 ) ); 1234 1233 } … … 1388 1387 <?php else : ?> 1389 1388 1390 <span class="field-visibility-settings-notoggle" title="<?php esc_attr_e( "This field's visibility cannot be changed.", 'buddypress' ); ?>"><?php bp_the_profile_field_visibility_level_label(); ?></span>1389 <span class="field-visibility-settings-notoggle"><?php bp_the_profile_field_visibility_level_label(); ?></span> 1391 1390 1392 1391 <?php endif; -
trunk/src/bp-xprofile/classes/class-bp-xprofile-user-admin.php
r10825 r10904 482 482 $delete_link = wp_nonce_url( $community_url, 'delete_avatar' ); ?> 483 483 484 <a href="<?php echo esc_url( $delete_link ); ?>" title="<?php esc_attr_e( 'Delete Profile Photo', 'buddypress' ); ?>"class="bp-xprofile-avatar-user-admin"><?php esc_html_e( 'Delete Profile Photo', 'buddypress' ); ?></a>484 <a href="<?php echo esc_url( $delete_link ); ?>" class="bp-xprofile-avatar-user-admin"><?php esc_html_e( 'Delete Profile Photo', 'buddypress' ); ?></a> 485 485 486 486 <?php endif; … … 488 488 // Load the Avatar UI templates if user avatar uploads are enabled and current WordPress version is supported. 489 489 if ( ! bp_core_get_root_option( 'bp-disable-avatar-uploads' ) && bp_attachments_is_wp_version_supported() ) : ?> 490 <a href="#TB_inline?width=800px&height=400px&inlineId=bp-xprofile-avatar-editor" title="<?php esc_attr_e( 'Edit Profile Photo', 'buddypress' );?>"class="thickbox bp-xprofile-avatar-user-edit"><?php esc_html_e( 'Edit Profile Photo', 'buddypress' ); ?></a>490 <a href="#TB_inline?width=800px&height=400px&inlineId=bp-xprofile-avatar-editor" class="thickbox bp-xprofile-avatar-user-edit"><?php esc_html_e( 'Edit Profile Photo', 'buddypress' ); ?></a> 491 491 <div id="bp-xprofile-avatar-editor" style="display:none;"> 492 492 <?php bp_attachments_get_template_part( 'avatars/index' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.