[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php bb_get_header(); ?> 2 3 <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> » <?php _e('Favorites'); ?></div> 4 5 <h2 id="userlogin" role="main"><?php echo get_user_display_name( $user->ID ); ?> <small>(<?php echo get_user_name( $user->ID ); ?>)</small> <?php _e( 'favorites' ); ?><?php if ( $topics ) printf( __( ' - %d' ), $favorites_total ); ?></h2> 6 7 <p><?php _e( 'Favorites allow members to create a custom <abbr title="Really Simple Syndication">RSS</abbr> feed which pulls recent replies to the topics they specify.' ); ?></p> 8 <?php if ( bb_current_user_can( 'edit_favorites_of', $user_id ) ) : ?> 9 <p><?php _e( 'To add topics to your list of favorites, just click the "Add to Favorites" link found on that topic’s page.' ); ?></p> 10 <?php endif; ?> 11 12 <?php if ( $topics ) : ?> 13 14 <table id="favorites"> 15 <tr> 16 <th><?php _e('Topic'); ?></th> 17 <th><?php _e('Posts'); ?></th> 18 <!-- <th><?php _e('Voices'); ?></th> --> 19 <th><?php _e('Last Poster'); ?></th> 20 <th><?php _e('Freshness'); ?></th> 21 <?php if ( bb_current_user_can( 'edit_favorites_of', $user_id ) ) : ?> 22 <th><?php _e('Remove'); ?></th> 23 <?php endif; ?> 24 </tr> 25 26 <?php foreach ( $topics as $topic ) : ?> 27 <tr<?php topic_class(); ?>> 28 <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td> 29 <td class="num"><?php topic_posts(); ?></td> 30 <!-- <td class="num"><?php bb_topic_voices(); ?></td> --> 31 <td class="num"><?php topic_last_poster(); ?></td> 32 <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td> 33 <?php if ( bb_current_user_can( 'edit_favorites_of', $user_id ) ) : ?> 34 <td class="num">[<?php user_favorites_link('', array('mid'=>'×'), $user_id); ?>]</td> 35 <?php endif; ?> 36 </tr> 37 <?php endforeach; ?> 38 </table> 39 40 <p class="rss-link"><a href="<?php favorites_rss_link( $user_id ); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for these favorites'); ?></a></p> 41 42 <?php favorites_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?> 43 44 <?php else: if ( $user_id == bb_get_current_user_info( 'id' ) ) : ?> 45 46 <p><?php _e('You currently have no favorites.'); ?></p> 47 48 <?php else : ?> 49 50 <p><?php echo get_user_name( $user_id ); ?> <?php _e('currently has no favorites.'); ?></p> 51 52 <?php endif; endif; ?> 53 54 <?php bb_get_footer(); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 7 01:01:35 2017 | Cross-referenced by PHPXref 0.7.1 |