rtmedia_gallery_after_title_callback

The rtMedia for WordPress, BuddyPress and bbPress rtmedia gallery after title callback function.

Description

rtmedia_gallery_after_title_callback(); 

Usage

  1. if ( !function_exists( 'rtmedia_gallery_after_title_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'rtmedia-for-wordpress-buddypress-and-bbpress/app/main/controllers/template/rtmedia-actions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rtmedia_gallery_after_title_callback(); 
  7.  

Defined (1)

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

/app/main/controllers/template/rtmedia-actions.php  
  1. function rtmedia_gallery_after_title_callback() { 
  2. // show description in album gallery page 
  3. global $rtmedia_query; 
  4. // check if it's an album gallery page and album id is not empty 
  5. if ( 
  6. isset( $rtmedia_query->query ) && isset( $rtmedia_query->query['media_type'] ) && 'album' == $rtmedia_query->query['media_type'] 
  7. && 
  8. isset( $rtmedia_query->media_query ) && isset( $rtmedia_query->media_query['album_id'] ) && ! empty( $rtmedia_query->media_query['album_id'] ) 
  9. && 
  10. ) { 
  11. $description = rtmedia_get_media_description( $rtmedia_query->media_query['album_id'] ); 
  12. if ( ! empty( $description ) ) { 
  13. echo '<div class="gallery-description gallery-album-description">' . $description . '</div>';