_e('Freshness', 'bp_gtm'); ?> </th> <?php do_action('bp_gtm_discuss_extra_cell_head'); ?> </tr> </thead> <tbody id="discuss-list"> <?php foreach ((array) $options['posts'] as $post) { ?> <tr class=""> <td class="td-title"> <?php bp_gtm_view_disscuss_link($post->elem_id, $gtm_link, $options['type']); ?> </td> <td class="td-poster"> <?php bp_gtm_poster_discussion_meta($post->author_id); ?> </td> <td class="td-postcount"> <?php echo $post->discuss_count; ?> </td> <td class="td-freshness"> <div class="object-name center" ><?php
function bp_gtm_discuss_navi_content() { global $bp, $wpdb; $data = explode('-', $_GET['nextPage']); $limit['miss'] = $data['0'] * $data['1']; $limit['per_page'] = $data['1']; $discusses = BP_GTM_Discussion::get_list($bp->groups->current_group->id, $_GET['what'], $limit); if (count($discusses) > 0) { $i = 1; foreach ((array) $discusses as $post) { if (is_int($i / 2)) { $alt = ' alt'; } else { $alt = ''; } ?> <tr class="<?php echo $alt; ?> "> <td class="td-title"> <?php bp_gtm_view_disscuss_link($post->elem_id, $gtm_link, $_GET['what']); ?> </td> <td class="td-poster"> <?php bp_gtm_poster_discussion_meta($post->author_id); ?> </div> </td> <td class="td-postcount"> <?php echo $post->discuss_count; ?> </td> <td class="td-freshness"><div class="object-name" class="center"><?php bp_gtm_format_date($post->date_created); ?> </div> </td> <?php do_action('bp_gtm_discuss_extra_cell'); ?> </tr> <?php do_action('bp_gtm_discuss_extra_row'); $i++; } } else { echo '<div id="message" class="info"><p>' . __('There are no posts to display.', 'bp_gtm') . '</p></div>'; } }