<?php if ( bp_group_is_visible() ) { ?>
<li class="forum-lastposts">
<div class="forum-lastposts-avatar"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 50, 'type' => 'avatar' ) ); ?></div>
<div class="activity-content">
<a href="<?php bbp_topic_permalink(); ?>" class="activity-content-title" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a><br />
<div class="activity-content-details">
<?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'type' => 'name' ) ); ?>
<?php bbp_topic_freshness_link(); ?>
<?php printf( __( 'in <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?>
</div>
</div>
</li>
<?php } ?>