$tmp_content = $post->post_excerpt; if (strlen(trim($tmp_content)) == 0) { $tmp_content = wp_trim_words($post->post_content); } echo '<div class="frontier-new-list" id="frontier-post-new-list-excerpt">'; echo $tmp_content; echo '</div>'; } ?> <div class="frontier-new-list" id="frontier-post-new-list-info"> <?php echo frontier_post_edit_link($post, $fp_show_icons, $frontier_permalink); echo frontier_post_delete_link($post, $fp_show_icons, $frontier_permalink); echo frontier_post_preview_link($post, $fp_show_icons, $frontier_permalink); echo __("Status", "frontier-post") . ': ' . (isset($tmp_status_list[$post->post_status]) ? $tmp_status_list[$post->post_status] : $post->post_status); echo $tmp_info_separator; echo __("Autor", "frontier-post") . ': '; the_author(); echo $tmp_info_separator; printf(_x('%s atrás', '%s = human-readable time difference', 'frontier-post'), human_time_diff(get_the_time('U'), current_time('timestamp'))); echo $tmp_info_separator; echo frontier_get_icon('comments2') . ' ' . intval($post->comment_count); echo $tmp_info_separator; echo __("Categorias", "frontier-post") . ': '; the_category(' '); echo $tmp_info_separator; echo __("Tags", "frontier-post") . ': '; the_tags(' '); /*
} else { echo $category->cat_name; } } } ?> </td> <td class="frontier-list-posts" id="frontier-list-posts-cmt"><?php echo $post->comment_count; ?> </td> <td class="frontier-list-posts" id="frontier-list-posts-action"> <?php echo frontier_post_edit_link($post, $fp_show_icons, $frontier_permalink); echo frontier_post_delete_link($post, $fp_show_icons, $frontier_permalink); echo frontier_post_preview_link($post, $fp_show_icons); ?> </td> </tr> <?php } ?> </tbody> </table> <?php $pagination = paginate_links(array('base' => add_query_arg('pagenum', '%#%'), 'format' => '', 'prev_text' => __('«', 'frontier-post'), 'next_text' => __('»', 'frontier-post'), 'total' => $user_posts->max_num_pages, 'current' => $pagenum, 'add_args' => false)); if ($pagination) { echo $pagination; } if ($frontier_list_all_posts != "true") {
function frontier_post_display_links($fp_post, $fp_show_icons = true, $tmp_plink = "default", $tmp_class = '') { if ($tmp_plink == "default") { $tmp_plink = get_permalink(fp_get_option('fps_page_id')); } $tmp_out = ''; $tmp_out .= frontier_post_edit_link($fp_post, $fp_show_icons, $tmp_plink, $tmp_class); $tmp_out .= frontier_post_approve_link($fp_post, $fp_show_icons, $tmp_plink, $tmp_class); $tmp_out .= frontier_post_delete_link($fp_post, $fp_show_icons, $tmp_plink, $tmp_class); $tmp_out .= frontier_post_preview_link($fp_post, $fp_show_icons, $tmp_plink, $tmp_class); return $tmp_out; }