?> "><?php topic_title(); ?> </a> - <?php if ($user->ID == bb_get_current_user_info('id')) { printf(__('You last replied: %s ago'), bb_get_post_time()); } else { printf(__('User last replied: %s ago'), bb_get_post_time()); } ?> | <span class="freshness"><?php if (bb_get_post_time('timestamp') < get_topic_time('timestamp')) { printf(__('Most recent reply: %s ago'), get_topic_time()); } else { _e('No replies since'); } ?> </span> </li> <?php } ?> </ol> <?php } else { if ($page) { ?>
function bb_post_time($args = '') { $args = _bb_parse_time_function_args($args); $time = apply_filters('bb_post_time', bb_get_post_time(array('format' => 'mysql') + $args), $args); echo _bb_time_function_return($time, $args); }
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 } }
<?php post_author_avatar_link(); ?> <p> <strong><?php post_author_link(); ?> </strong><br /> <small><?php post_author_title_link(); ?> </small> </p> </div> <div class="threadpost"> <div class="post"><?php post_text(); ?> </div> <div class="poststuff"><?php printf(__('Posted %s ago'), bb_get_post_time()); ?> <a href="<?php post_anchor_link(); ?> ">#</a> <?php bb_post_admin(); ?> </div> </div> </div>
post_id(); ?> "> <ul class="post"> <?php if (bb_get_option('avatars_show')) { ?> <li class="post-avatar"><?php post_author_avatar('48'); ?> </li> <?php } ?> <li class="post-meta"><?php printf(__('%1$s ago'), bb_get_post_time()); ?> </li> <li class="post-author"><?php post_author(); ?> </li> <li class="post-text"><?php post_text(); ?> </li> </ul> </li> <?php } ?>
<?php foreach ($relevant as $bb_post) { ?> <li><h4><a href="<?php post_link(); ?> "><?php topic_title($bb_post->topic_id); ?> </a></h4> <p><?php echo bb_show_context($q, $bb_post->post_text); ?> </p> <p><small>Отправлено <?php echo bb_datetime_format_i18n(bb_get_post_time(array('format' => 'timestamp'))); ?> </small></p> </li> <?php } ?> </ol> <?php } ?> <?php if ($q && !$recent && !$relevant) { ?> <p>Нет результатов.</p>
<?php foreach ($recent as $bb_post) { ?> <li<?php alt_class('recent'); ?> > <a class="result" href="<?php post_link(); ?> "><?php echo bb_show_topic_context($q, get_topic_title($bb_post->topic_id)); ?> </a> <span class="freshness"><?php printf(__('By <a href="%1$s">%2$s</a> on %3$s'), get_user_profile_link($bb_post->poster_id), get_post_author(), bb_datetime_format_i18n(bb_get_post_time(array('format' => 'timestamp')))); ?> </span> <p><?php echo bb_show_context($q, $bb_post->post_text); ?> </p> </li> <?php } ?> </ol> </div> <?php } ?>
?> </strong><br /> <small><?php post_author_title(); ?> </small> </p> </div> <div class="threadpost"> <div class="post"><?php post_text(); ?> </div> <div class="poststuff"><?php printf('Отправлено %s назад', bb_get_post_time()); ?> <a href="<?php post_anchor_link(); ?> ">#</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?> </div> </div>
<?php foreach ($relevant as $bb_post) { ?> <li<?php alt_class('relevant'); ?> > <a href="<?php post_link(); ?> "><?php topic_title($bb_post->topic_id); ?> </a> <span class="freshness"><?php printf(__('Posted %s'), bb_datetime_format_i18n(bb_get_post_time(array('format' => 'timestamp')))); ?> </span> <p><?php post_text(); ?> </p> </li> <?php } ?> </ol> </div> <?php } ?>
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 } } }