[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/messages/ -> compose.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Single Messages Compose
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  ?>
  11  <h2 class="bp-screen-reader-text"><?php
  12      /* translators: accessibility text */
  13      _e( 'Compose Message', 'buddypress' );
  14  ?></h2>
  15  
  16  <form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" enctype="multipart/form-data">
  17  
  18      <?php
  19  
  20      /**
  21       * Fires before the display of message compose content.
  22       *
  23       * @since 1.1.0
  24       */
  25      do_action( 'bp_before_messages_compose_content' ); ?>
  26  
  27      <label for="send-to-input"><?php _e("Send To (Username or Friend's Name)", 'buddypress' ); ?></label>
  28      <ul class="first acfb-holder">
  29          <li>
  30              <?php bp_message_get_recipient_tabs(); ?>
  31              <input type="text" name="send-to-input" class="send-to-input" id="send-to-input" />
  32          </li>
  33      </ul>
  34  
  35      <?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
  36          <p><label for="send-notice"><input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", 'buddypress' ); ?></label></p>
  37      <?php endif; ?>
  38  
  39      <label for="subject"><?php _e( 'Subject', 'buddypress' ); ?></label>
  40      <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
  41  
  42      <label for="message_content"><?php _e( 'Message', 'buddypress' ); ?></label>
  43      <textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value(); ?></textarea>
  44  
  45      <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames(); ?>" class="<?php bp_message_get_recipient_usernames(); ?>" />
  46  
  47      <?php
  48  
  49      /**
  50       * Fires after the display of message compose content.
  51       *
  52       * @since 1.1.0
  53       */
  54      do_action( 'bp_after_messages_compose_content' ); ?>
  55  
  56      <div class="submit">
  57          <input type="submit" value="<?php esc_attr_e( "Send Message", 'buddypress' ); ?>" name="send" id="send" />
  58      </div>
  59  
  60      <?php wp_nonce_field( 'messages_send_message' ); ?>
  61  </form>
  62  
  63  <script type="text/javascript">
  64      document.getElementById("send-to-input").focus();
  65  </script>
  66  


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1