Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shmoo_time_switch_if_has_replies() {
- if ( bbp_get_topic_reply_count() ) {
- // topic_author + last_reply_id and his time_ago
- echo "<p>door: ";
- echo bbp_topic_author_link( array( 'type' => 'name' ) );
- echo " <span class=\"last-reply-by\">laatste reactie: ";
- echo bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'type' => 'name' ) );
- echo " <span class=\"time-ago\">";
- echo bbp_topic_freshness_link();
- echo "</span></span></p>";
- }
- else {
- // topic_author and his time_ago
- echo "<p>door: ";
- echo bbp_topic_author_link( array( 'type' => 'name' ) );
- echo "<span class=\"time-ago\"> ";
- echo bbp_topic_post_date( $topic_id = 0, $humanize = true, $gmt = false );
- echo "</span></p>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement