[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Activity Post form JS Templates
   4   *
   5   * @since 3.0.0
   6   * @version 5.0.0
   7   */
   8  ?>
   9  
  10  <script type="text/html" id="tmpl-activity-before-post-form-inputs">
  11      <?php bp_nouveau_activity_hook( 'before', 'post_form' ); ?>
  12  </script>
  13  
  14  <script type="text/html" id="tmpl-activity-post-form-feedback">
  15      <span class="bp-icon" aria-hidden="true"></span><p>{{{data.message}}}</p>
  16  </script>
  17  
  18  <script type="text/html" id="tmpl-activity-post-form-avatar">
  19      <# if ( data.display_avatar ) { #>
  20          <a href="{{data.user_domain}}">
  21              <img src="{{{data.avatar_url}}}" class="avatar user-{{data.user_id}}-avatar avatar-{{data.avatar_width}} photo" width="{{data.avatar_width}}" height="{{data.avatar_width}}" alt="{{data.avatar_alt}}" />
  22          </a>
  23      <# } #>
  24  </script>
  25  
  26  <script type="text/html" id="tmpl-activity-post-form-options">
  27      <?php bp_nouveau_activity_hook( '', 'post_form_options' ); ?>
  28  </script>
  29  
  30  <script type="text/html" id="tmpl-activity-post-form-buttons">
  31      <button type="button" class="button dashicons {{data.icon}}" data-button="{{data.id}}"><span class="bp-screen-reader-text">{{data.caption}}</span></button>
  32  </script>
  33  
  34  <script type="text/html" id="tmpl-activity-target-item">
  35      <# if ( data.selected ) { #>
  36          <input type="hidden" value="{{data.id}}">
  37      <# } #>
  38  
  39      <# if ( data.avatar_url ) { #>
  40          <img src="{{data.avatar_url}}" class="avatar {{data.object_type}}-{{data.id}}-avatar photo" alt="" />
  41      <# } #>
  42  
  43      <span class="bp-item-name">{{data.name}}</span>
  44  
  45      <# if ( data.selected ) { #>
  46          <button type="button" class="bp-remove-item dashicons dashicons-no" data-item_id="{{data.id}}">
  47              <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Remove item', 'button', 'buddypress' ); ?></span>
  48          </button>
  49      <# } #>
  50  </script>


Generated: Tue Jul 5 01:00:53 2022 Cross-referenced by PHPXref 0.7.1