bp_activity_admin_edit_metabox_status

Status metabox for the Activity admin edit screen.

Description

bp_activity_admin_edit_metabox_status( (object) $item ); 

Parameters (1)

0. $item (object)
Activity item.

Usage

  1. if ( !function_exists( 'bp_activity_admin_edit_metabox_status' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-admin.php'; 
  3.  
  4. // Activity item. 
  5. $item = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_activity_admin_edit_metabox_status($item); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-activity/bp-activity-admin.php  
  1. function bp_activity_admin_edit_metabox_status( $item ) { 
  2. ?> 
  3.  
  4. <div class="submitbox" id="submitcomment"> 
  5.  
  6. <div id="minor-publishing"> 
  7. <div id="minor-publishing-actions"> 
  8. <div id="preview-action"> 
  9. <a class="button preview" href="<?php echo esc_attr( bp_activity_get_permalink( $item->id, $item ) ); ?>" target="_blank"><?php _e( 'View Activity', buddypress ); ?></a> 
  10. </div> 
  11.  
  12. <div class="clear"></div> 
  13. </div><!-- #minor-publishing-actions --> 
  14.  
  15. <div id="misc-publishing-actions"> 
  16. <div class="misc-pub-section" id="comment-status-radio"> 
  17. <label class="approved" for="activity-status-approved"><input type="radio" name="activity_status" id="activity-status-approved" value="ham" <?php checked( $item->is_spam, 0 ); ?>><?php _e( 'Approved', buddypress ); ?></label><br /> 
  18. <label class="spam" for="activity-status-spam"><input type="radio" name="activity_status" id="activity-status-spam" value="spam" <?php checked( $item->is_spam, 1 ); ?>><?php _e( 'Spam', buddypress ); ?></label> 
  19. </div> 
  20.  
  21. <div class="misc-pub-section curtime misc-pub-section-last"> 
  22. <?php 
  23. // Translators: Publish box date format, see http://php.net/date. 
  24. $datef = __( 'M j, Y @ G:i', buddypress ); 
  25. $date = date_i18n( $datef, strtotime( $item->date_recorded ) ); 
  26. ?> 
  27. <span id="timestamp"><?php printf( __( 'Submitted on: %s', buddypress ), '<strong>' . $date . '</strong>' ); ?></span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e( 'Edit', buddypress ); ?></a> 
  28.  
  29. <div id='timestampdiv' class='hide-if-js'> 
  30. <?php touch_time( 1, 0, 5 ); ?> 
  31. </div><!-- #timestampdiv --> 
  32. </div> 
  33. </div> <!-- #misc-publishing-actions --> 
  34.  
  35. <div class="clear"></div> 
  36. </div><!-- #minor-publishing --> 
  37.  
  38. <div id="major-publishing-actions"> 
  39. <div id="publishing-action"> 
  40. <?php submit_button( __( 'Update', buddypress ), 'primary', 'save', false ); ?> 
  41. </div> 
  42. <div class="clear"></div> 
  43. </div><!-- #major-publishing-actions --> 
  44.  
  45. </div><!-- #submitcomment --> 
  46.  
  47. <?php