Changeset 3810 for trunk/bp-themes/bp-default/activity/post-form.php
- Timestamp:
- 01/22/2011 10:13:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/activity/post-form.php
r3771 r3810 1 < form action="<?php bp_activity_post_form_action() ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">1 <?php 2 2 3 <?php do_action( 'bp_before_activity_post_form' ) ?> 3 /** 4 * BuddyPress - Activity Post Form 5 * 6 * @package BuddyPress 7 * @subpackage bp-default 8 */ 9 10 ?> 11 12 <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary"> 13 14 <?php do_action( 'bp_before_activity_post_form' ); ?> 4 15 5 16 <?php if ( isset( $_GET['r'] ) ) : ?> 6 17 <div id="message" class="info"> 7 <p><?php printf( __( 'You are mentioning %s in a new update, this user will be sent a notification of your message.', 'buddypress' ), bp_get_mentioned_user_display_name( $_GET['r'] ) ) ?></p>18 <p><?php printf( __( 'You are mentioning %s in a new update, this user will be sent a notification of your message.', 'buddypress' ), bp_get_mentioned_user_display_name( $_GET['r'] ) ); ?></p> 8 19 </div> 9 20 <?php endif; ?> 10 21 11 22 <div id="whats-new-avatar"> 12 <a href="<?php echo bp_loggedin_user_domain() ?>">13 <?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ) ?>23 <a href="<?php echo bp_loggedin_user_domain(); ?>"> 24 <?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?> 14 25 </a> 15 26 </div> 16 27 17 <h5> 18 <?php if ( bp_is_group() ) : ?> 19 <?php printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() ) ?> 20 <?php else : ?> 21 <?php printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname() ) ?> 22 <?php endif; ?> 23 </h5> 28 <h5><?php if ( bp_is_group() ) 29 printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() ); 30 else 31 printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname() ); 32 ?></h5> 24 33 25 34 <div id="whats-new-content"> 26 35 <div id="whats-new-textarea"> 27 <textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ) ?> <?php endif; ?></textarea>36 <textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ); ?> <?php endif; ?></textarea> 28 37 </div> 29 38 … … 31 40 <div id="whats-new-submit"> 32 41 <span class="ajax-loader"></span> 33 <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ) ?>" />42 <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ); ?>" /> 34 43 </div> 35 44 36 45 <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?> 46 37 47 <div id="whats-new-post-in-box"> 48 38 49 <?php _e( 'Post in', 'buddypress' ) ?>: 39 50 40 51 <select id="whats-new-post-in" name="whats-new-post-in"> 41 <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ) ?></option>52 <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option> 42 53 43 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) : while ( bp_groups() ) : bp_the_group(); ?> 44 <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option> 45 <?php endwhile; endif; ?> 54 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) : 55 while ( bp_groups() ) : bp_the_group(); ?> 56 57 <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option> 58 59 <?php endwhile; 60 endif; ?> 61 46 62 </select> 47 63 </div> 48 64 <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" /> 65 49 66 <?php elseif ( bp_is_group_home() ) : ?> 67 50 68 <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" /> 51 <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id() ?>" /> 69 <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" /> 70 52 71 <?php endif; ?> 53 72 54 <?php do_action( 'bp_activity_post_form_options' ) ?>73 <?php do_action( 'bp_activity_post_form_options' ); ?> 55 74 56 75 </div><!-- #whats-new-options --> … … 58 77 59 78 <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?> 60 <?php do_action( 'bp_after_activity_post_form' ) ?>79 <?php do_action( 'bp_after_activity_post_form' ); ?> 61 80 62 81 </form><!-- #whats-new-form -->
Note: See TracChangeset
for help on using the changeset viewer.