if ($i == $page) { $output .= '<span class="current"> ' . number_format_i18n($i) . ' </span>'; } else { $output .= '<a href="' . download_page_link($i) . '" title="' . number_format_i18n($i) . '"> ' . number_format_i18n($i) . ' </a>'; } } if (empty($page) || $page + 1 <= $max_page) { $output .= '<a href="' . download_page_link($page + 1) . '" title="' . __('»', 'nqd-store') . '"> ' . __('»', 'nqd-store') . ' </a>'; } if ($end_page < $max_page) { $output .= '<span class="extend">...</span>'; $output .= '<a href="' . download_page_link($max_page) . '" title="' . __('Last »', 'nqd-store') . '"> ' . __('Last »', 'nqd-store') . ' </a>'; } $output .= '</div>'; } $post_ID = getPostIDFilterStar($offset, $perpage); ?> <?php foreach ($post_ID as $post_item) { global $post; $post = get_post($post_item->post_id); setup_postdata($post); ?> <?php get_template_part('content', get_post_format()); ?> <?php } echo $output; wp_reset_postdata(); ?>
function mostStarTab() { ?> <div class="mostStar"> <?php $post_ID = getPostIDFilterStar(); ?> <?php foreach ($post_ID as $post_item) { global $post; $post = get_post($post_item->post_id); setup_postdata($post); ?> <?php get_template_part('content', get_post_format()); ?> <?php } wp_reset_postdata(); ?> </div> <?php die; }