do_action('under_title'); if ($posts) { topic_pages(array('before' => '<div class="nav">', 'after' => '</div>')); ?> <div id="ajax-response"></div> <ol id="thread" class="list:post"> <?php foreach ($posts as $bb_post) { $del_class = apply_filters('best_answer_class', post_del_class()); ?> <li id="post-<?php post_id(); ?> "<?php alt_class('post', $del_class); ?> > <?php bb_post_template(); ?> </li> <?php } ?> </ol> <div class="clearit"><br style=" clear: both;" /></div> <p class="rss-link"><a href="<?php topic_rss_link(); ?>
</div> <div id="user-threads" class="user-recent"> <h4><?php _e('Topics Started'); ?> </h4> <?php if ($topics) { ?> <ol> <?php foreach ($topics as $topic) { ?> <li<?php alt_class('topics'); ?> > <a href="<?php topic_link(); ?> "><?php topic_title(); ?> </a> - <?php printf(__('Started: %s ago'), get_topic_start_time()); ?> | <span class="freshness"><?php
function bb_admin_list_posts() { global $bb_posts, $bb_post; if (!$bb_posts) { ?> <p class="no-results"><?php _e('No posts found.'); ?> </p> <?php } else { ?> <table id="posts-list" class="widefat" cellspacing="0" cellpadding="0"> <thead> <tr> <th scope="col" class="check-column"><input type="checkbox" /></th> <th scope="col"><?php _e('Post'); ?> </th> <th scope="col"><?php _e('Author'); ?> </th> <th scope="col"><?php _e('Topic'); ?> </th> <th scope="col"><?php _e('Date'); ?> </th> </tr> </thead> <tfoot> <tr> <th scope="col" class="check-column"><input type="checkbox" /></th> <th scope="col"><?php _e('Post'); ?> </th> <th scope="col"><?php _e('Author'); ?> </th> <th scope="col"><?php _e('Topic'); ?> </th> <th scope="col"><?php _e('Date'); ?> </th> </tr> </tfoot> <tbody> <?php foreach ($bb_posts as $bb_post) { ?> <tr id="post-<?php post_id(); ?> "<?php alt_class('post', post_del_class()); ?> > <td class="check-column"><input type="checkbox" name="post[]" value="<?php post_id(); ?> " /></td> <td class="post"> <?php post_text(); ?> <div> <span class="row-actions"> <a href="<?php echo esc_url(get_post_link()); ?> "><?php _e('View'); ?> </a> <?php bb_post_admin(array('before_each' => ' | ', 'each' => array('undelete' => array('before' => ' ')), 'last_each' => array('before' => ' | '))); ?> </span> </div> </td> <td class="author"> <?php if (get_post_author_id()) { ?> <a href="<?php user_profile_link(get_post_author_id()); ?> "> <?php post_author_avatar('16'); ?> <?php post_author(); ?> </a> <?php } else { ?> <span> <?php post_author_avatar('16'); ?> <?php post_author(); ?> </span> <?php } ?> </td> <td class="topic"> <a href="<?php topic_link($bb_post->topic_id); ?> "><?php topic_title($bb_post->topic_id); ?> </a> </td> <td class="date"> <?php if (bb_get_post_time('U') < time() - 86400) { bb_post_time('Y/m/d\\<\\b\\r \\/\\>H:i:s'); } else { printf(__('%s ago'), bb_get_post_time('since')); } ?> </td> </tr> <?php } ?> </tbody> </table> <?php } }
function topic_class($class = '', $key = 'topic', $id = 0) { $topic = get_topic(get_topic_id($id)); $class = $class ? explode(' ', $class) : array(); if ('1' === $topic->topic_status && bb_current_user_can('browse_deleted')) { $class[] = 'deleted'; } elseif (1 < $topic->topic_status && bb_current_user_can('browse_deleted')) { $class[] = 'bozo'; } if ('0' === $topic->topic_open) { $class[] = 'closed'; } if (1 == $topic->topic_sticky && (bb_is_forum() || bb_is_view())) { $class[] = 'sticky'; } elseif (2 == $topic->topic_sticky && (bb_is_front() || bb_is_forum())) { $class[] = 'sticky super-sticky'; } $class = apply_filters('topic_class', $class, $topic->topic_id); $class = join(' ', $class); alt_class($key, $class); }
</div> <div class="post"> <h4><?php _e('Threads Started'); ?> </h4> <?php if ($threads) { ?> <ol> <?php foreach ($threads as $topic) { ?> <li<?php alt_class('threads'); ?> > <a href="<?php topic_link(); ?> "><?php topic_title(); ?> </a> - <?php printf(__('started %s ago, '), get_topic_start_time()); ?> <span class="freshness"><?php if (get_topic_start_time('timestamp') < get_topic_time('timestamp')) {
<?php if ($relevant) { ?> <div id="results-relevant" class="search-results"> <h4><?php _e('Relevant Topics'); ?> </h4> <ol> <?php foreach ($relevant as $topic) { $bb_post = bb_get_first_post($topic); ?> <li<?php alt_class('relevant'); ?> > <a class="result" href="<?php post_link(); ?> "><?php echo bb_show_topic_context($q, get_topic_title()); ?> </a> <span class="freshness"><?php printf(__('By <a href="%1$s">%2$s</a> on %3$s'), get_user_profile_link($topic->topic_poster), get_topic_author(), bb_datetime_format_i18n(get_topic_start_time(array('format' => 'timestamp')))); ?> </span> <p><?php echo bb_show_context($q, $bb_post->post_text);
function mass_edit_list_posts() { global $bb_posts, $bb_post; if ($bb_posts) { foreach ($bb_posts as $bb_post) { ?> <li<?php alt_class('post'); ?> > <div class="threadauthor"> <p><strong><?php poster_id_link(); ?> </strong><br /> <small><?php poster_id_type(); ?> </small></p> </div> <div class="threadpost"> <div class="post"><?php post_text(); ?> </div> <div class="poststuff"> <?php printf(__('Posted: %1$s in <a href="%2$s">%3$s</a>'), bb_get_post_time(), get_topic_link($bb_post->topic_id), get_topic_title($bb_post->topic_id)); ?> IP: <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?> </div> </div> </li><?php } } }