Guest User

status

a guest
Aug 24th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.45 KB | None | 0 0
  1. <?php
  2. /**
  3. * BuddyPress - Activity Post Form
  4.  *
  5.  * @package Status
  6.  * @since 1.0
  7.  */
  8. ?>
  9.  
  10. <div id="whats-new-declare" class="clearfix">
  11. <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">
  12.     <?php do_action( 'bp_before_activity_post_form' ); ?>
  13.     <section id="whats-new-about">
  14.         <div id="whats-new-avatar">
  15.             <a href="<?php echo bp_loggedin_user_domain(); ?>">
  16.                 <?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?>
  17.             </a>
  18.         </div>
  19.         <div id="whats-new-wrapper">
  20.             <div id="whats-new-tail"></div>
  21.             <div id="whats-new-textarea">
  22.                 <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>
  23.             </div>
  24.         </div>
  25.     </section>
  26.  
  27.  
  28.     <section id="whats-new-content">
  29.         <div id="whats-new-options">
  30.  
  31.             <div id="whats-new-submit">
  32.                 <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'status' ); ?>" class="submitbutton"/>
  33.             </div>
  34.             <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?>
  35.                 <div id="whats-new-post-in-box">
  36.                     <?php _e( 'Post in', 'status' ) ?>:
  37.                     <select id="whats-new-post-in" name="whats-new-post-in">
  38.                         <option selected="selected" value="0"><?php _e( 'My Profile', 'status' ); ?></option>
  39.                         <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) :
  40.                             while ( bp_groups() ) : bp_the_group(); ?>
  41.                                 <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
  42.                             <?php endwhile;
  43.                         endif; ?>
  44.                     </select>
  45.                 </div>
  46.                 <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
  47.             <?php elseif ( bp_is_group_home() ) : ?>
  48.                 <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
  49.                 <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>"  />
  50.             <?php endif; ?>
  51.             <?php do_action( 'bp_activity_post_form_options' ); ?>
  52.         </div><!-- #whats-new-options -->
  53.     </section><!-- #whats-new-content -->
  54.     <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
  55.     <?php do_action( 'bp_after_activity_post_form' ); ?>
  56.  
  57. </form><!-- #whats-new-form -->
  58. </div>
Advertisement
Add Comment
Please, Sign In to add comment