Changeset 4668 for trunk/bp-themes/bp-default/activity/entry.php
- Timestamp:
- 07/17/2011 05:39:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/activity/entry.php
r4632 r4668 32 32 </div> 33 33 34 <?php if ( 'activity_comment' == bp_get_activity_type() ) : ?> 35 36 <div class="activity-inreplyto"> 37 <strong><?php _e( 'In reply to', 'buddypress' ); ?></strong> - <?php bp_activity_parent_content(); ?> · 38 <a href="<?php bp_activity_thread_permalink(); ?>" class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ); ?>"><?php _e( 'View', 'buddypress' ); ?></a> 39 </div> 40 41 <?php endif; ?> 42 34 43 <?php if ( bp_activity_has_content() ) : ?> 35 44 … … 44 53 <?php do_action( 'bp_activity_entry_content' ); ?> 45 54 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 ?> 55 <?php if ( is_user_logged_in() ) : ?> 52 56 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> 57 <div class="activity-meta"> 58 59 <?php if ( bp_activity_can_comment() ) : ?> 60 61 <a href="<?php bp_get_activity_comment_link(); ?>" class="acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment (<span>%s</span>)', 'buddypress' ), bp_activity_get_comment_count() ); ?></a> 62 58 63 <?php endif; ?> 59 <?php endif; ?>60 64 61 <?php do_action( 'bp_activity_entry_meta' ); ?> 62 </div> 65 <?php if ( bp_activity_can_favorite() ) : ?> 66 67 <?php if ( !bp_get_activity_is_favorite() ) : ?> 68 69 <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> 70 71 <?php else : ?> 72 73 <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> 74 75 <?php endif; ?> 76 77 <?php endif; ?> 78 79 <?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?> 80 81 <?php do_action( 'bp_activity_entry_meta' ); ?> 82 83 </div> 84 85 <?php endif; ?> 86 63 87 </div> 64 65 <?php if ( 'activity_comment' == bp_get_activity_type() ) : ?>66 67 <div class="activity-inreplyto">68 <strong><?php _e( 'In reply to', 'buddypress' ); ?></strong> - <?php bp_activity_parent_content(); ?> ·69 <a href="<?php bp_activity_thread_permalink(); ?>" class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ); ?>"><?php _e( 'View', 'buddypress' ); ?></a>70 </div>71 72 <?php endif; ?>73 88 74 89 <?php do_action( 'bp_before_activity_entry_comments' ); ?> 75 90 76 91 <?php if ( bp_activity_can_comment() ) : ?> 92 77 93 <div class="activity-comments"> 78 94 … … 81 97 <?php if ( is_user_logged_in() ) : ?> 82 98 83 <form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>> 84 <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?></div> 85 <div class="ac-reply-content"> 86 <div class="ac-textarea"> 87 <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea> 99 <form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>> 100 <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?></div> 101 <div class="ac-reply-content"> 102 <div class="ac-textarea"> 103 <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea> 104 </div> 105 <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?> →" /> <?php _e( 'or press esc to cancel.', 'buddypress' ); ?> 106 <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" /> 88 107 </div> 89 <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?> →" /> <?php _e( 'or press esc to cancel.', 'buddypress' ); ?>90 <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />91 </div>92 108 93 <?php do_action( 'bp_activity_entry_comments' ); ?> 94 <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?> 109 <?php do_action( 'bp_activity_entry_comments' ); ?> 95 110 96 </form> 111 <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?> 112 113 </form> 97 114 98 115 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.