Changeset 4611
- Timestamp:
- 07/04/2011 08:54:42 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-filters.php
r4367 r4611 88 88 $activity_allowedtags['div']['id'] = array(); 89 89 $activity_allowedtags['a']['class'] = array(); 90 $activity_allowedtags['a']['id'] = array(); 90 91 $activity_allowedtags['a']['rel'] = array(); 91 92 $activity_allowedtags['img'] = array(); -
trunk/bp-activity/bp-activity-functions.php
r4596 r4611 677 677 // Record this on the user's profile 678 678 $from_user_link = bp_core_get_userlink( $user_id ); 679 $activity_action = sprintf( __( '%s posted an update :', 'buddypress' ), $from_user_link );679 $activity_action = sprintf( __( '%s posted an update', 'buddypress' ), $from_user_link ); 680 680 $activity_content = $content; 681 681 $primary_link = bp_core_get_userlink( $user_id, false, true ); … … 729 729 $comment_id = bp_activity_add( array( 730 730 'id' => $id, 731 'action' => apply_filters( 'bp_activity_comment_action', sprintf( __( '%s posted a new activity comment :', 'buddypress' ), bp_core_get_userlink( $user_id ) ) ),731 'action' => apply_filters( 'bp_activity_comment_action', sprintf( __( '%s posted a new activity comment', 'buddypress' ), bp_core_get_userlink( $user_id ) ) ), 732 732 'content' => apply_filters( 'bp_activity_comment_content', $content ), 733 733 'component' => $bp->activity->id, -
trunk/bp-activity/bp-activity-template.php
r4589 r4611 700 700 global $activities_template, $bp; 701 701 702 // Strip any legacy time since placeholders -- TODO: Remove this in 1.3702 // Strip any legacy time since placeholders from BP 1.0-1.1 703 703 $content = str_replace( '<span class="time-since">%s</span>', '', $content ); 704 704 705 705 // Insert the time since. 706 $ content .= ' ' . apply_filters_ref_array( 'bp_activity_time_since', array( '<span class="time-since">' . sprintf( __( ' %s ago', 'buddypress' ), bp_core_time_since( $activities_template->activity->date_recorded ) ) . '</span>', &$activities_template->activity ) );707 706 $time_since = apply_filters_ref_array( 'bp_activity_time_since', array( '<span class="time-since">' . sprintf( __( ' %s ago ', 'buddypress' ), bp_core_time_since( $activities_template->activity->date_recorded ) ) . '</span>', &$activities_template->activity ) ); 707 708 708 // Insert the permalink 709 709 if ( !bp_is_single_activity() ) 710 $content .= apply_filters_ref_array( 'bp_activity_permalink', array( ' · <a href="' . bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ) . '" class="view" title="' . __( 'View Thread / Permalink', 'buddypress' ) . '">' . __( 'View', 'buddypress' ) . '</a>', &$activities_template->activity ) ); 711 712 // Add the delete link if the user has permission on this item 713 if ( bp_activity_user_can_delete() ) 714 $content .= apply_filters_ref_array( 'bp_activity_delete_link', array( ' · ' . bp_get_activity_delete_link(), &$activities_template->activity ) ); 710 $content .= apply_filters_ref_array( 'bp_activity_permalink', array( sprintf( ' about <a href="%1$s" class="view" title="%2$s">%3$s</a>', bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ), esc_attr__( 'View Discussion', 'buddypress' ), $time_since ), &$activities_template->activity ) ); 711 else 712 $content .= $time_since; 713 714 if ( is_user_logged_in() && bp_activity_can_comment() ) 715 $content .= sprintf( '<a href="%1$s" class="acomment-reply bp-primary-action" id="acomment-comment-%2$d">%3$s</a>', bp_get_activity_comment_link(), bp_get_activity_id(), sprintf( __( 'Reply (<span>%s</span>)', 'buddypress' ), bp_activity_get_comment_count() ) ); 715 716 716 717 return apply_filters( 'bp_insert_activity_meta', $content ); … … 1217 1218 } 1218 1219 1219 $link = '<a href="' . wp_nonce_url( $url, 'bp_activity_delete_link' ) . '" class="item-button ' . $class . ' confirm" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>';1220 $link = '<a href="' . wp_nonce_url( $url, 'bp_activity_delete_link' ) . '" class="item-button bp-secondary-action ' . $class . ' confirm" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>'; 1220 1221 return apply_filters( 'bp_get_activity_delete_link', $link ); 1221 1222 } -
trunk/bp-groups/bp-groups-forums.php
r4561 r4611 52 52 $topic = bp_forums_get_topic_details( $topic_id ); 53 53 54 $activity_action = sprintf( __( '%1$s posted on the forum topic %2$s in the group %3$s :', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );54 $activity_action = sprintf( __( '%1$s posted on the forum topic %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' ); 55 55 $activity_content = bp_create_excerpt( $post_text ); 56 56 $primary_link = bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/'; … … 91 91 $topic = bp_forums_get_topic_details( $topic_id ); 92 92 93 $activity_action = sprintf( __( '%1$s started the forum topic %2$s in the group %3$s :', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );93 $activity_action = sprintf( __( '%1$s started the forum topic %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' ); 94 94 $activity_content = bp_create_excerpt( $topic_text ); 95 95 … … 123 123 bp_activity_delete_by_item_id( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $topic_id, 'component' => $bp->groups->id, 'type' => 'new_forum_topic' ) ); 124 124 125 $activity_action = sprintf( __( '%1$s started the forum topic %2$s in the group %3$s :', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );125 $activity_action = sprintf( __( '%1$s started the forum topic %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' ); 126 126 $activity_content = bp_create_excerpt( $topic_text ); 127 127 … … 156 156 $topic = bp_forums_get_topic_details( $topic_id ); 157 157 158 $activity_action = sprintf( __( '%1$s posted on the forum topic %2$s in the group %3$s :', 'buddypress'), bp_core_get_userlink( $post->poster_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );158 $activity_action = sprintf( __( '%1$s posted on the forum topic %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $post->poster_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'">' . esc_attr( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' ); 159 159 $activity_content = bp_create_excerpt( $post_text ); 160 160 $primary_link = bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/'; -
trunk/bp-groups/bp-groups-functions.php
r4605 r4611 494 494 495 495 // Record this in activity streams 496 $activity_action = sprintf( __( '%1$s posted an update in the group %2$s :', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );496 $activity_action = sprintf( __( '%1$s posted an update in the group %2$s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' ); 497 497 $activity_content = $content; 498 498 -
trunk/bp-themes/bp-default/_inc/ajax.php
r4558 r4611 215 215 216 216 <div class="acomment-meta"> 217 <?php echo bp_core_get_userlink( bp_get_activity_user_id() ) ?> · <?php printf( __( '%s ago', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ) ?> 218 <span class="acomment-replylink"> · <a class="acomment-reply" href="#acomment-<?php bp_activity_id() ?>" id="acomment-reply-<?php echo esc_attr( $_POST['form_id'] ) ?>"><?php _e( 'Reply', 'buddypress' ) ?></a></span> 219 · <a href="<?php echo wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/' . bp_get_activity_id() . '?cid=' . $comment_id, 'bp_activity_delete_link' ) ?>" class="delete acomment-delete confirm" rel="nofollow"><?php _e( 'Delete', 'buddypress' ) ?></a> 217 <?php 218 /* translators: 1: user profile link + username, 2: activity item permalink, 3: activity item timestamp */ 219 printf( __( '%1$s replied <a href="%2$s">%3$s ago</a>', 'buddypress' ), bp_core_get_userlink( bp_get_activity_user_id() ), bp_get_activity_thread_permalink(), bp_core_time_since( bp_core_current_time() ) ); 220 ?> 221 222 <a class="acomment-reply bp-primary-action" href="#acomment-<?php bp_activity_id() ?>" id="acomment-reply-<?php echo esc_attr( $_POST['form_id'] ) ?>"><?php _e( 'Reply', 'buddypress' ); ?></a> 223 224 <?php if ( bp_activity_user_can_delete() ) : ?> 225 <div class="acomment-options"> 226 <a href="<?php echo wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/' . bp_get_activity_id() . '?cid=' . $comment_id, 'bp_activity_delete_link' ) ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a> 227 </div> 228 <?php endif; ?> 220 229 </div> 221 230 222 231 <div class="acomment-content"> 223 <?php bp_activity_content_body() ?>232 <?php bp_activity_content_body(); ?> 224 233 </div> 225 234 </li> -
trunk/bp-themes/bp-default/_inc/css/default-rtl.css
r4582 r4611 315 315 } 316 316 .commentlist ul.children ul { 317 margin: 0 25px 0 0 0; 318 } 319 .commentlist ul.children div.comment-options a.comment-reply-link { 320 margin-left: 0; 321 margin-right: auto; 317 margin: 0 25px 0 0; 318 padding-left: 0; 322 319 } 323 320 ol.commentlist #respond { … … 338 335 margin: 0 0 0 10px; 339 336 } 337 .commentlist ul.children div.comment-options { 338 margin-right: auto; 339 margin-left: 0; 340 } 340 341 #comments ol.commentlist ol { 341 342 margin: 0 2.5em 18px 0; … … 352 353 div.comment-meta .comment-options { 353 354 float: left; 354 }355 div.comment-meta span.comment-highlight a {356 border-left: 1px solid #a1dcfa;357 border-right: 0;358 margin-left: 3px;359 355 margin-right: auto; 356 margin-left: 10px; 360 357 } 361 358 .comment-entry { … … 365 362 float: left; 366 363 } 367 #reply-title small a, 368 div.comment-options a.comment-reply-link { 369 border-left: 1px solid #FFE8C4; 370 border-right: 0; 364 #reply-title small a { 365 margin-right: auto; 366 margin-left: 0; 367 } 368 #respond .comment-avatar-box { 369 float: right; 370 margin: 0 0 0 15px; 371 } 372 .acomment-options { 373 float: left; 371 374 margin-left: 10px; 372 375 margin-right: auto; 373 }374 #reply-title small a {375 margin-right: auto;376 margin-left: 0;377 }378 #respond .comment-avatar-box {379 float: right;380 margin: 0 0 0 15px;381 376 } 382 377 … … 452 447 body.activity-permalink .activity-list li .activity-avatar img.avatar, 453 448 body.activity-permalink .activity-list li .activity-avatar img.FB_profile_pic { 454 margin-right: 175px; 455 } 449 margin-left: auto; 450 margin-right: 0; 451 } 452 body.activity-permalink .activity-list li .activity-header > p { 453 margin-left: auto; 454 margin-right: -35px; 455 padding: 5px 35px 0 0; 456 } 457 456 458 .activity-list li.mini .activity-content { 457 459 margin-right: 0; … … 502 504 margin-right: 0; 503 505 } 504 .activity-list .activity-content .activity-inner,505 .activity-list .activity-content blockquote {506 margin: 15px 5px 15px 0;507 overflow: hidden;508 }509 506 .activity-list .activity-content img.thumbnail { 510 507 float: right; … … 521 518 --------------------------------------------------------------*/ 522 519 div.activity-meta { 523 margin: 0 3px 20px 0; 524 clear: right; 525 } 526 .activity-list div.activity-meta a { 527 margin-left: 3px; 528 margin-right: 0; 529 } 530 .activity-list div.activity-meta a.acomment-reply { 520 margin: 0 0 20px 10px; 521 clear: right; 531 522 } 532 523 div.activity-comments { 533 margin: 0 7 5px 0 0;524 margin: 0 70px 0 0; 534 525 } 535 526 body.activity-permalink div.activity-comments { … … 540 531 clear: right; 541 532 } 542 div.activity-comments ul li { 543 padding: 10px 0 10px 15px; 544 margin-right: 15px; 545 margin-left: 0; 546 } 547 body.activity-permalink div.activity-comments ul li { 548 padding: 15px 0 15px 15px; 533 div.activity-comments > ul { 534 padding: 0 10px 0 0; 549 535 } 550 536 div.activity-comments ul li > ul { 537 margin-left: 0; 551 538 margin-right: 25px; 552 margin-left: 0; 539 padding-left: 0; 540 padding-right: 10px; 553 541 } 554 542 div.activity-comments div.acomment-avatar img { … … 584 572 padding-right: 15px; 585 573 padding-left: 0; 574 } 575 body.activity-permalink .activity-list .activity-meta { 576 left: 10px; 577 right: auto; 578 } 579 body.activity-permalink div.activity-comments > ul { 580 padding: 0 15px 0 10px; 586 581 } 587 582 -
trunk/bp-themes/bp-default/_inc/css/default.css
r4583 r4611 758 758 div.comment-meta .comment-options { 759 759 float: right; 760 margin-right: 10px; 760 761 } 761 762 div.comment-meta em { 762 763 font-style: normal; 763 764 } 764 div.comment-meta span.comment-highlight a { 765 background: #EBF7FF; 766 border-right: 1px solid #a1dcfa; 767 border-bottom: 1px solid #a1dcfa; 768 -moz-border-radius: 4px; 769 -webkit-border-radius: 4px; 770 border-radius: 4px; 771 color: #059AE7; 772 margin-right: 3px; 773 padding: 3px 8px; 774 text-decoration: none; 775 } 776 div.comment-meta .comment-highlight a:hover, 777 .commentlist .depth-1 > .comment-content .comment-meta > p a:first-child:hover { 765 a.bp-secondary-action:hover { 778 766 background: #059AE7; 779 767 border-color: #059AE7; … … 788 776 font-weight: normal; 789 777 } 790 #reply-title small a,791 div.comment-options a.comment-reply-link {792 background: #FFF9DB;793 border-bottom: 1px solid #FFE8C4;794 border-right: 1px solid #FFE8C4;795 -moz-border-radius: 4px;796 -webkit-border-radius: 4px;797 border-radius: 4px;798 color: #ffa200;799 margin-right: 10px;800 padding: 3px 8px;801 text-decoration: none;802 }803 778 #reply-title small a { 804 779 margin-right: 0; 805 }806 #reply-title small a:hover,807 div.comment-options a.comment-reply-link:hover {808 background: #f7740a;809 border-color: #f7740a;810 color: #fff;811 780 } 812 781 .commentlist ul.children { … … 820 789 .commentlist ul.children ul { 821 790 margin: 0 0 0 25px; 791 padding-right: 0; 822 792 } 823 793 .commentlist ul.children img.avatar { … … 832 802 } 833 803 .commentlist ul.children div.comment-options { 834 margin-bottom: 5px; 835 margin-top: 0; 804 margin-right: 0; 836 805 } 837 806 .commentlist ul.children li { … … 844 813 .commentlist ul.children ul li:first-child { 845 814 border-top: 2px solid #fffeff; 846 }847 .commentlist ul.children div.comment-options a.comment-reply-link {848 background: transparent;849 border-style: none;850 color: #1fb3dd;851 margin-right: 0;852 padding: 3px 8px;853 text-decoration: underline;854 }855 .commentlist ul.children div.comment-options a.comment-reply-link:hover {856 background: transparent;857 border-style: none;858 color: #1fb3dd;859 815 } 860 816 #respond { … … 1202 1158 } 1203 1159 body.activity-permalink .activity-list .activity-meta { 1204 right: 1 5px;1160 right: 10px; 1205 1161 top: 18px; 1206 1162 } … … 1276 1232 margin-right: 130px; 1277 1233 } 1234 .activity-header a, 1235 .comment-meta a, 1236 .acomment-meta a { 1237 text-decoration: none; 1238 } 1278 1239 .activity-list .activity-content .activity-header img.avatar { 1279 1240 float: none !important; 1280 1241 margin: 0 5px -8px 0 !important; 1281 1242 } 1282 .activity-list .activity-header a:first-child, 1283 .commentlist .depth-1 > .comment-content .comment-meta > p a:first-child, 1243 a.bp-secondary-action, 1284 1244 span.highlight { 1285 1245 background: #ebf7ff; … … 1290 1250 border-radius: 4px; 1291 1251 color: #059ae7; 1292 margin-right: 3px;1252 font-size: 11px; 1293 1253 padding: 3px 8px; 1294 1254 text-decoration: none; 1295 1255 } 1296 .activity-list .activity-header a:first-child:hover {1297 background: #059ae7 !important;1298 color: #fff !important;1299 }1300 .activity-list .activity-content a:first-child:focus {1301 outline: none;1302 }1303 .activity-list .activity-content span.time-since,1304 .comment-content .comment-meta span.time-since {1305 color: #bbb;1306 }1307 .activity-list .activity-content span.activity-header-meta a {1308 background: none;1309 border: none;1310 color: #aaa;1311 font-size: 11px;1312 margin: 0;1313 padding: 0;1314 text-decoration: underline;1315 }1316 .activity-list .activity-content span.activity-header-meta a:hover {1317 color: inherit;1318 text-decoration: none;1319 }1320 1256 .activity-list .activity-content .activity-inner, 1321 1257 .activity-list .activity-content blockquote { 1322 margin: 15px 0 15px 5px;1258 margin: 15px 0; 1323 1259 overflow: hidden; 1324 1260 } … … 1364 1300 div.activity-meta { 1365 1301 clear: left; 1366 margin: 0 0 20px 3px; 1367 } 1368 .activity-list div.activity-meta a { 1369 background: #f4f4f4; 1370 border-bottom: 1px solid #ddd; 1371 border-right: 1px solid #ddd; 1302 margin: 0 10px 20px 0; 1303 } 1304 a.bp-primary-action, 1305 .comment-reply-link, 1306 #reply-title small a { 1307 background: #fff9db; 1308 border-bottom: 1px solid #ffe8c4; 1372 1309 -moz-border-radius: 4px; 1373 1310 -webkit-border-radius: 4px; 1374 1311 border-radius: 4px; 1375 color: #999;1376 font-size: 11px;1377 margin-right: 3px;1378 padding: 4px 8px;1379 text-decoration: none;1380 }1381 .activity-list div.activity-meta a.acomment-reply {1382 background: #fff9db;1383 border-bottom: 1px solid #ffe8c4;1384 1312 border-right: 1px solid #ffe8c4; 1385 1313 color: #ffa200; 1386 } 1387 div.activity-meta a:focus { 1388 outline: none; 1389 } 1390 div.activity-meta a:hover { 1391 background: #aaa; 1392 border-color: #aaa; 1393 color: #fff; 1394 } 1395 div.activity-meta a.acomment-reply:hover { 1314 font-size: 11px; 1315 padding: 3px 8px; 1316 text-decoration: none; 1317 } 1318 a.bp-primary-action:hover, 1319 .comment-reply-link:hover, 1320 #reply-title small a:hover { 1396 1321 background: #f7740a; 1397 1322 border-color: #f7740a; … … 1399 1324 } 1400 1325 div.activity-comments { 1401 margin: 0 0 0 7 5px;1326 margin: 0 0 0 70px; 1402 1327 overflow: hidden; /* IE fix */ 1403 1328 position: relative; … … 1405 1330 } 1406 1331 body.activity-permalink div.activity-comments { 1407 1332 background: none; 1408 1333 margin-left: 135px; 1409 1334 width: auto; … … 1434 1359 body.activity-permalink div.activity-comments ul li { 1435 1360 border-width: 1px; 1436 padding: 10px 10px 0; 1437 } 1438 .commentlist .comment-content a:first-child { 1439 margin-bottom: 10px; 1361 padding: 10px 0 0 0; 1440 1362 } 1441 1363 div.activity-comments > ul > li:first-child { … … 1446 1368 } 1447 1369 div.activity-comments ul li > ul { 1370 margin-left: 25px; 1448 1371 margin-top: 0; 1449 margin-left: 20px;1372 padding-left: 10px; 1450 1373 } 1451 1374 body.activity-permalink div.activity-comments ul li > ul { … … 1453 1376 } 1454 1377 body.activity-permalink div.activity-comments > ul { 1455 padding -left:15px;1378 padding: 0 10px 0 15px; 1456 1379 } 1457 1380 div.activity-comments div.acomment-avatar img { … … 1535 1458 margin-left: 50px; 1536 1459 padding-left: 15px; 1460 } 1461 .acomment-options { 1462 float: right; 1463 margin-right: 10px; 1537 1464 } 1538 1465 -
trunk/bp-themes/bp-default/activity/comment.php
r4522 r4611 15 15 <?php do_action( 'bp_before_activity_comment' ); ?> 16 16 17 <li id="acomment-<?php bp_activity_comment_id() ?>">17 <li id="acomment-<?php bp_activity_comment_id(); ?>"> 18 18 <div class="acomment-avatar"> 19 <a href="<?php bp_activity_comment_user_link() ?>">20 <?php bp_activity_avatar( 'type=full&width= 30&height=30&user_id=' . bp_get_activity_comment_user_id() ); ?>19 <a href="<?php bp_activity_comment_user_link(); ?>"> 20 <?php bp_activity_avatar( 'type=full&width=25&height=25&user_id=' . bp_get_activity_comment_user_id() ); ?> 21 21 </a> 22 22 </div> 23 23 24 24 <div class="acomment-meta"> 25 <a href="<?php bp_activity_comment_user_link() ?>"><?php bp_activity_comment_name() ?></a> · <?php bp_activity_comment_date_recorded() ?> 25 <?php 26 /* translators: 1: user profile link, 2: user name, 3: activity permalink, 3: activity timestamp */ 27 printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s">%4$s</a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded() ); 28 ?> 26 29 27 30 <?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?> 28 < span class="acomment-replylink"> · <a href="#acomment-<?php bp_activity_comment_id() ?>" class="acomment-reply" id="acomment-reply-<?php bp_activity_id() ?>-from-<?php bp_activity_comment_id() ?>"><?php _e( 'Reply', 'buddypress' ) ?></a></span>29 <?php endif ?>30 31 <a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id() ?>-from-<?php bp_activity_comment_id() ?>"><?php _e( 'Reply', 'buddypress' ); ?></a> 32 <?php endif; ?> 33 31 34 <?php if ( bp_activity_user_can_delete() ) : ?> 32 · <a href="<?php bp_activity_comment_delete_link() ?>" class="delete acomment-delete confirm" rel="nofollow"><?php _e( 'Delete', 'buddypress' ) ?></a> 33 <?php endif ?> 35 <div class="acomment-options"> 36 <a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a> 37 </div> 38 <?php endif; ?> 39 </div> 34 40 41 <div class="acomment-content"> 42 <?php bp_activity_comment_content(); ?> 35 43 </div> 36 44 37 38 <div class="acomment-content"> 39 <?php bp_activity_comment_content() ?> 40 </div> 41 42 <?php bp_activity_recurse_comments( bp_activity_current_comment() ) ?> 45 <?php bp_activity_recurse_comments( bp_activity_current_comment() ); ?> 43 46 </li> 44 47 -
trunk/bp-themes/bp-default/activity/entry.php
r4493 r4611 45 45 46 46 <div class="activity-meta"> 47 <?php 48 // Add the delete link if the user has permission on this item 49 if ( bp_activity_user_can_delete() ) 50 bp_activity_delete_link(); 51 ?> 47 52 48 <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?> 49 50 <a href="<?php bp_activity_comment_link(); ?>" class="acomment-reply" id="acomment-comment-<?php bp_activity_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?> (<span><?php bp_activity_comment_count(); ?></span>)</a> 51 53 <?php if ( is_user_logged_in() && bp_activity_can_favorite() ) : ?> 54 <?php if ( !bp_get_activity_is_favorite() ) : ?> 55 <a href="<?php bp_activity_favorite_link(); ?>" class="fav bp-secondary-action" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a> 56 <?php else : ?> 57 <a href="<?php bp_activity_unfavorite_link(); ?>" class="unfav bp-secondary-action" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a> 58 <?php endif; ?> 52 59 <?php endif; ?> 53 54 <?php if ( is_user_logged_in() && bp_activity_can_favorite() ) :55 if ( !bp_get_activity_is_favorite() ) : ?>56 57 <a href="<?php bp_activity_favorite_link() ?>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>58 59 <?php else : ?>60 61 <a href="<?php bp_activity_unfavorite_link() ?>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>62 63 <?php endif;64 endif; ?>65 60 66 61 <?php do_action( 'bp_activity_entry_meta' ); ?> -
trunk/bp-themes/bp-default/functions.php
r4597 r4611 420 420 $avatar_size = 50; 421 421 else 422 $avatar_size = 2 0;422 $avatar_size = 25; 423 423 ?> 424 424 … … 440 440 <p> 441 441 <?php 442 if ( 1 == $depth)443 $links = sprintf( '<a href="#comment-%1$d">%2$s</a>', get_comment_ID(), __( 'View', 'buddypress') );442 if ( current_user_can( 'edit_comment', get_comment_ID() ) ) 443 $links = get_comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ); 444 444 else 445 $links = get_comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __( 'Reply', 'buddypress' ) ) ); 446 447 $links .= sprintf( ' <a class="comment-edit-link" href="%1$s" title="%2$s">%3$s</a>', get_edit_comment_link( $comment->comment_ID ), esc_attr__( 'Edit comment', 'buddypress' ), __( 'Edit', 'buddypress' ) ); 448 $noun = _n( 'said:', 'replied:', $depth, 'buddypress' ); 449 450 /* translators: 1: comment author url, 2: comment author name, 3: "said:" or "replied:", 4: comment date/timestamp, 5: view/reply & edit comment links */ 451 printf( __( '<a href="%1$s" rel="nofollow">%2$s</a> %3$s <span class="time-since"> %4$s</span> %5$s', 'buddypress' ), get_comment_author_url(), get_comment_author(), $noun, get_comment_date(), $links ); 445 $links = ''; 446 447 /* translators: 1: comment author url, 2: comment author name, 3: comment permalink, 4: comment date/timestamp, 5: view/reply & edit comment links */ 448 printf( __( '<a href="%1$s" rel="nofollow">%2$s</a> said on <a href="%3$s"><span class="time-since">%4$s</span></a> %5$s', 'buddypress' ), get_comment_author_url(), get_comment_author(), get_comment_link(), get_comment_date(), $links ); 452 449 ?> 453 450 </p> 454 451 455 <?php if ( 1 == $depth && -1 != $args['max_depth'] &&comments_open() ) : ?>456 <div class="comment-options"><?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth']) ) ?></div>452 <?php if ( comments_open() ) : ?> 453 <div class="comment-options"><?php printf( '<a class="comment-edit-link bp-secondary-action" href="%1$s" title="%2$s">%3$s</a> ', get_edit_comment_link( $comment->comment_ID ), esc_attr__( 'Edit comment', 'buddypress' ), __( 'Edit', 'buddypress' ) ) ?></div> 457 454 <?php endif; ?> 458 455 </div>
Note: See TracChangeset
for help on using the changeset viewer.