><?php topic_title(); ?> </h2> <span id="topic_posts">(<?php topic_posts_link(); ?> )</span> <span id="topic_voices">(<?php printf(_n('%s voice', '%s voices', bb_get_topic_voices()), bb_get_topic_voices()); ?> )</span> <ul class="topicmeta"> <li><?php printf(__('Asked %1$s ago by %2$s'), get_topic_start_time(), get_topic_author()); ?> </li> <?php if (1 < get_topic_posts()) { ?> <li><?php printf(__('<a href="%1$s">Latest answer</a> from %2$s'), esc_attr(get_topic_last_post_link()), get_topic_last_poster()); ?> </li> <?php } if (bb_is_user_logged_in()) { ?> <li<?php echo $class;
?> > <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')) { printf(__('Most recent reply: %s ago'), get_topic_time()); } else { _e('No replies.'); } ?> </span> </li> <?php } ?> </ol> <?php } else { if ($page) { ?>
function topic_start_time($args = '') { $args = _bb_parse_time_function_args($args); $time = apply_filters('topic_start_time', get_topic_start_time(array('format' => 'mysql') + $args), $args); echo _bb_time_function_return($time, $args); }
<div class="info"> <a href="<?php topic_rss_link(); ?> "><img src="<?php echo bb_get_active_theme_uri(); ?> image/feed.png" width="16" height="16" alt="Feed"/></a> </div> <h2><?php _e('Topic Information', 'guangzhou'); ?> </h2> <p><?php printf(__('Started %1$s ago by <strong>%2$s</strong>', 'guangzhou'), get_topic_start_time(), get_topic_author()); ?> , with a total of <?php topic_posts_link(); ?> . Follow this topic with the <a href="<?php topic_rss_link(); ?> ">RSS feed</a>.</p> <?php do_action('topicmeta'); ?> </li> <li>
} ?> <?php if (is_topic()) { ?> <div class="widget"> <h3>О теме</h3> <ul> <li><?php printf('Отправлено %1$s назад', get_topic_start_time(), get_topic_author()); ?> </li> <li><?php printf('%2$s', get_topic_start_time(), get_topic_author()); ?> </li> <li><?php printf('<a href=\\"%1$s\\">Последнее сообщение</a> от %2$s', attribute_escape(get_topic_last_post_link()), get_topic_last_poster()); ?> </li> <?php if (bb_is_user_logged_in()) { $class = 0 === is_user_favorite(bb_get_current_user_info('id')) ? ' class="is-not-favorite"' : ''; ?> <li<?php echo $class; ?> id="favorite-toggle"><?php user_favorites_link();
?> <?php topic_author(); ?> </a> </td> <td class="posts num"><?php topic_posts(); ?> </td> <td class="date num"> <?php if (get_topic_start_time('U') < time() - 86400) { topic_start_time('Y/m/d\\<\\b\\r \\/\\>H:i:s'); } else { printf(__('%s ago'), get_topic_start_time('since')); } ?> </td> <td class="freshness num"><a href="<?php topic_last_post_link(); ?> " title="<?php echo esc_attr(sprintf(__('Last post by %s'), get_topic_last_poster())); ?> "> <?php if (get_topic_time('U') < time() - 86400) { topic_time('Y/m/d\\<\\b\\r \\/\\>H:i:s'); } else { printf(__('%s ago'), get_topic_time('since'));
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); ?> </p> </li> <?php } ?> </ol> </div> <?php } ?>