[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php bb_get_header(); ?>
   2  
   3  <?php if ( $forums ) : ?>
   4  
   5  <div id="hottags" role="main">
   6  <h2><?php _e('Hot Tags'); ?></h2>
   7  <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
   8  </div>
   9  
  10  <div id="discussions">
  11  <?php if ( $topics || $super_stickies ) : ?>
  12  
  13  <h2><?php _e('Latest Discussions'); ?></h2>
  14  
  15  <table id="latest">
  16  <tr>
  17      <th><?php _e('Topic'); ?> &#8212; <?php bb_new_topic_link(); ?></th>
  18      <th><?php _e('Posts'); ?></th>
  19      <!-- <th><?php _e('Voices'); ?></th> -->
  20      <th><?php _e('Last Poster'); ?></th>
  21      <th><?php _e('Freshness'); ?></th>
  22  </tr>
  23  
  24  <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
  25  <tr<?php topic_class(); ?>>
  26      <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td>
  27      <td class="num"><?php topic_posts(); ?></td>
  28      <!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
  29      <td class="num"><?php topic_last_poster(); ?></td>
  30      <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td>
  31  </tr>
  32  <?php endforeach; endif; // $super_stickies ?>
  33  
  34  <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
  35  <tr<?php topic_class(); ?>>
  36      <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
  37      <td class="num"><?php topic_posts(); ?></td>
  38      <!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
  39      <td class="num"><?php topic_last_poster(); ?></td>
  40      <td class="num"><a href="<?php topic_last_post_link(); ?>" title="<?php topic_time(array('format'=>'datetime')); ?>"><?php topic_time(); ?></a></td>
  41  </tr>
  42  <?php endforeach; endif; // $topics ?>
  43  </table>
  44  <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
  45  <?php endif; // $topics or $super_stickies ?>
  46  
  47  <?php if ( bb_forums() ) : ?>
  48  <h2><?php _e('Forums'); ?></h2>
  49  <table id="forumlist">
  50  
  51  <tr>
  52      <th><?php _e('Main Theme'); ?></th>
  53      <th><?php _e('Topics'); ?></th>
  54      <th><?php _e('Posts'); ?></th>
  55  </tr>
  56  <?php while ( bb_forum() ) : ?>
  57  <?php if (bb_get_forum_is_category()) : ?>
  58  <tr<?php bb_forum_class('bb-category'); ?>>
  59      <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
  60  </tr>
  61  <?php continue; endif; ?>
  62  <tr<?php bb_forum_class(); ?>>
  63      <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
  64      <td class="num"><?php forum_topics(); ?></td>
  65      <td class="num"><?php forum_posts(); ?></td>
  66  </tr>
  67  <?php endwhile; ?>
  68  </table>
  69  <?php endif; // bb_forums() ?>
  70  
  71  <?php if ( bb_is_user_logged_in() ) : ?>
  72  <div id="viewdiv">
  73  <h2><?php _e('Views'); ?></h2>
  74  <ul id="views">
  75  <?php foreach ( bb_get_views() as $the_view => $title ) : ?>
  76  <li class="view"><a href="<?php view_link( $the_view ); ?>"><?php view_name( $the_view ); ?></a></li>
  77  <?php endforeach; ?>
  78  </ul>
  79  </div>
  80  <?php endif; // bb_is_user_logged_in() ?>
  81  
  82  </div>
  83  
  84  <?php else : // $forums ?>
  85  
  86  <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>
  87  
  88  <?php post_form(); endif; // $forums ?>
  89  
  90  <?php bb_get_footer(); ?>


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