[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/activity/ -> comment-form.php (source)

   1  <?php
   2  /**
   3   * BP Nouveau Activity Comment form template.
   4   *
   5   * @since 3.0.0
   6   * @version 3.1.0
   7   */
   8  
   9  if ( ! bp_nouveau_current_user_can( 'comment_activity' ) || ! bp_activity_can_comment() ) {
  10      return;
  11  } ?>
  12  
  13  <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(); ?>>
  14  
  15      <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( array( 'type' => 'thumb' ) ); ?></div>
  16      <div class="ac-reply-content">
  17          <div class="ac-textarea">
  18              <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text">
  19                  <?php echo esc_html( _x( 'Comment', 'heading', 'buddypress' ) ); ?>
  20              </label>
  21              <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
  22          </div>
  23          <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
  24  
  25          <?php
  26          bp_nouveau_submit_button( 'activity-new-comment', bp_get_activity_id() );
  27          printf(
  28              '&nbsp; <button type="button" class="ac-reply-cancel">%s</button>',
  29              esc_html( _x( 'Cancel', 'button', 'buddypress' ) )
  30          );
  31          ?>
  32      </div>
  33  
  34  </form>


Generated: Tue Sep 29 01:01:36 2020 Cross-referenced by PHPXref 0.7.1