[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-templates/kakumei/ -> profile.php (source)

   1  <?php bb_get_header(); ?>
   2  
   3  <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id ); ?></a> &raquo; <?php _e('Profile') ?></div>
   4  
   5  <div class="vcard" role="main">
   6  
   7  <?php if ( $avatar = bb_get_avatar( $user->ID ) ) : ?>
   8  <div id="useravatar"><?php echo $avatar; ?></div>
   9  <?php unset($avatar); endif; ?>
  10  <h2 id="userlogin"><span class="fn"><?php echo get_user_display_name( $user->ID ); ?></span> <small>(<span class="nickname"><?php echo get_user_name( $user->ID ); ?></span>)</small></h2>
  11  
  12  <?php if ( $updated ) : ?>
  13  <div class="notice">
  14  <p><?php _e('Profile updated'); ?>. <a href="<?php profile_tab_link( $user_id, 'edit' ); ?>"><?php _e('Edit again &raquo;'); ?></a></p>
  15  </div>
  16  <?php elseif ( $user_id == bb_get_current_user_info( 'id' ) ) : ?>
  17  <p>
  18  <?php _e('This is how your profile appears to a logged in member.'); ?>
  19  
  20  <?php if (bb_current_user_can( 'edit_user', $user->ID )) : ?>
  21  <?php printf(__('You may <a href="%1$s">edit this information</a>.'), esc_attr( get_profile_tab_link( $user_id, 'edit' ) ) ); ?>
  22  <?php endif; ?>
  23  </p>
  24  
  25  <?php if (bb_current_user_can( 'edit_favorites_of', $user->ID )) : ?>
  26  <p><?php printf(__('You can also <a href="%1$s">manage your favorites</a> and subscribe to your favorites&#8217; <a href="%2$s"><abbr title="Really Simple Syndication">RSS</abbr> feed</a>.'), esc_attr( get_favorites_link() ), esc_attr( get_favorites_rss_link() )); ?></p>
  27  <?php endif; ?>
  28  <?php endif; ?>
  29  
  30  <?php bb_profile_data(); ?>
  31  
  32  </div>
  33  
  34  <h3 id="useractivity"><?php _e('User Activity') ?></h3>
  35  
  36  <div id="user-replies" class="user-recent"><h4><?php _e('Recent Replies'); ?></h4>
  37  <?php if ( $posts ) : ?>
  38  <ol>
  39  <?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?>
  40  <li<?php alt_class('replies'); ?>>
  41      <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> -
  42      <?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); else printf(__('User last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); ?> |
  43  
  44      <span class="freshness"><?php
  45          if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
  46              printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(),  get_topic_time());
  47          else
  48              _e('No replies since');
  49      ?></span>
  50  </li>
  51  <?php endforeach; ?>
  52  </ol>
  53  <?php else : if ( $page ) : ?>
  54  <p><?php _e('No more replies.') ?></p>
  55  <?php else : ?>
  56  <p><?php _e('No replies yet.') ?></p>
  57  <?php endif; endif; ?>
  58  </div>
  59  
  60  <div id="user-threads" class="user-recent">
  61  <h4><?php _e('Topics Started') ?></h4>
  62  <?php if ( $topics ) : ?>
  63  <ol>
  64  <?php foreach ($topics as $topic) : ?>
  65  <li<?php alt_class('topics'); ?>>
  66      <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> -
  67      <?php printf(__('Started: %s ago'), get_topic_start_time()); ?> |
  68  
  69      <span class="freshness"><?php
  70          if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
  71              printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(), get_topic_time());
  72          else
  73              _e('No replies since');
  74      ?></span>
  75  </li>
  76  <?php endforeach; ?>
  77  </ol>
  78  <?php else : if ( $page ) : ?>
  79  <p><?php _e('No more topics posted.') ?></p>
  80  <?php else : ?>
  81  <p><?php _e('No topics posted yet.') ?></p>
  82  <?php endif; endif;?>
  83  </div>
  84  
  85  <?php profile_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
  86  
  87  <?php bb_get_footer(); ?>


Generated: Thu Dec 7 01:01:35 2017 Cross-referenced by PHPXref 0.7.1