本文整理汇总了PHP中kriesi_pagination函数的典型用法代码示例。如果您正苦于以下问题:PHP kriesi_pagination函数的具体用法?PHP kriesi_pagination怎么用?PHP kriesi_pagination使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了kriesi_pagination函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_post_meta
echo get_post_meta($post->ID, 'pyre_custom_link_target', true);
?>
" class="button button_default small">View More</a>
<?php
} else {
?>
<a href="<?php
echo get_permalink($post->ID);
?>
" class="button button_default small">View More</a>
<?php
}
?>
</div>
</div>
</div>
<!-- /Project Feed -->
</div>
<?php
}
}
?>
</div>
</div>
<?php
kriesi_pagination($gallery->max_num_pages, $range = 2);
?>
</div>
<?php
get_footer();
示例2: _e
</li>
<?php
}
} else {
?>
<li class="post">
<?php
_e("No results found.", $themename);
?>
</li>
<?php
}
?>
<?php
require_once "pagination.php";
kriesi_pagination("", 2, true);
//Reset Query
wp_reset_query();
?>
</ul>
</div>
<div class="page_right">
<?php
if (is_active_sidebar('blog')) {
get_sidebar('blog');
}
?>
</div>
</div>
</div>
<?php
示例3: block
function block($instance)
{
extract($instance);
// Fix for pagination
if (is_front_page()) {
$paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
/**
* Setup post query
*/
$query_args = array('post_type' => 'post', 'posts_per_page' => $pppage, 'paged' => $paged);
/**
* Set up category query if needed
*/
if (!($filter == 'all')) {
if (function_exists('icl_object_id')) {
$filter = (int) icl_object_id($filter, 'category', true);
}
$query_args['tax_query'] = array(array('taxonomy' => 'category', 'field' => 'id', 'terms' => $filter));
}
$blog_query = new WP_Query($query_args);
?>
<?php
if ($type == 'blogsidebar') {
?>
<?php
/**
* ebor_open_wrapper hook
* All actions contained in /ebor_framework/theme_actions.php
*
* @hooked ebor_open_wrapper_markup - 10
*/
do_action('ebor_open_wrapper');
?>
<div class="row blog">
<div class="span8 posts">
<?php
if ($blog_query->have_posts()) {
while ($blog_query->have_posts()) {
$blog_query->the_post();
?>
<div <?php
post_class();
?>
>
<?php
/**
* ebor_post_title hook
* All actions contained in /ebor_framework/theme_actions.php
*
* @hooked ebor_post_title_markup - 10
*/
do_action('ebor_post_title');
/**
* ebor_post_format hook
* All actions contained in /ebor_framework/theme_actions.php
*
* @hooked ebor_post_format_markup - 10
*/
do_action('ebor_post_format');
the_content(get_option('blog_continue', 'Continue Reading →'));
?>
</div>
<hr />
<div class="divide60"></div>
<?php
}
} else {
get_template_part('loop/loop', 'none');
}
echo function_exists('kriesi_pagination') ? kriesi_pagination($blog_query->max_num_pages) : posts_nav_link();
?>
</div>
<?php
get_sidebar();
?>
</div>
<?php
/**
* ebor_close_wrapper hook
* All actions contained in /ebor_framework/theme_actions.php
*
* @hooked ebor_close_wrapper_markup - 10
*/
do_action('ebor_close_wrapper');
?>
<?php
//.........这里部分代码省略.........
示例4: theme_blog
//.........这里部分代码省略.........
<a' . (isset($external_urls[$j]) && $external_urls[$j] != "" ? ' target="_blank"' : '') . ' href="' . (isset($external_urls[$j]) && $external_urls[$j] != "" ? $external_urls[$j] : (isset($iframes[$j]) && $iframes[$j] != "" ? $iframes[$j] : (isset($videos[$j]) && $videos[$j] != "" ? $videos[$j] : $images[$j]))) . '" title="' . (isset($images_titles[$j]) ? esc_attr($images_titles[$j]) : '') . '" class="fancybox' . (isset($external_urls[$j]) && $external_urls[$j] != "" ? '-externalurl' : (isset($iframes[$j]) && $iframes[$j] != "" ? '-iframe' : (isset($videos[$j]) && $videos[$j] != "" ? '-video' : ''))) . ' open_' . (isset($external_urls[$j]) && $external_urls[$j] != "" || isset($iframes[$j]) && $iframes[$j] != "" ? 'iframe_' : (isset($videos[$j]) && $videos[$j] != "" ? 'video_' : '')) . 'lightbox"' . ($features_images_loop == "yes" ? ' rel="featured_' . get_the_ID() . '"' : '') . ' style="background-image: url(\'' . get_template_directory_uri() . '/images/icons_media/' . $lightbox_icon_color . '/' . (isset($videos[$j]) && $videos[$j] != "" ? 'video' : (isset($iframes[$j]) && $iframes[$j] != "" || isset($external_urls[$j]) && $external_urls[$j] != "" ? 'url' : 'image')) . '.png\')"></a>
</li>
</ul>
</li>';
}
$output .= '</ul>
</div>';
} else {
if (has_post_thumbnail()) {
$output .= '<a class="post_image" href="' . get_permalink() . '" title="' . get_the_title() . '"><span class="mc_preloader"></span>' . get_the_post_thumbnail(get_the_ID(), $featured_image_size != "default" ? $featured_image_size : ($layout_type == 2 ? $themename . "-gallery-image" : "blog-post-thumb"), array("alt" => get_the_title(), "title" => "")) . '</a>';
}
}
} else {
if (has_post_thumbnail()) {
$output .= '<a class="thumb_image" href="' . get_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), $featured_image_size != "default" ? $featured_image_size : $themename . "-small-thumb", array("alt" => get_the_title(), "title" => "")) . '</a>';
} else {
$attachment_ids = get_post_meta(get_the_ID(), $themename . "_attachment_ids", true);
$images = get_post_meta(get_the_ID(), $themename . "_images", true);
$images_count = count((array) $images);
if ($images_count > 0) {
$output .= '<a class="thumb_image" href="' . get_permalink() . '" title="' . get_the_title() . '">' . wp_get_attachment_image((int) $attachment_ids[0], $featured_image_size != "default" ? $featured_image_size : $themename . "-small-thumb", array("alt " => get_the_title(), "title" => "")) . '</a>';
}
}
}
if ((int) $layout_type == 3) {
$output .= '<div class="text">';
}
if ((int) $show_post_title) {
$output .= ((int) $layout_type == 3 ? '<h3> ' : '<h2>') . '<a href="' . get_permalink() . '" title="' . get_the_title() . '">' . get_the_title() . '</a>' . ((int) $layout_type == 3 ? '</h3> ' : '</h2>');
}
$output .= apply_filters('the_excerpt', get_the_excerpt() . ((int) $read_more && (int) $layout_type == 3 ? '<a title="' . __('Read more', 'medicenter') . '" href="' . get_permalink() . '" class="more">' . __('Read more →', 'medicenter') . '</a>' : ''));
if ((int) $layout_type == 3) {
$output .= '</div>';
}
if ((int) $read_more && (int) $layout_type != 3) {
$output .= '<a title="' . __('Read more', 'medicenter') . '" href="' . get_permalink() . '" class="more">' . __('Read more →', 'medicenter') . '</a>';
}
if ((int) $show_post_categories || (int) $show_post_author || (int) $show_post_date_footer) {
$output .= ' <div class="post_footer clearfix">';
if ((int) $show_post_categories) {
$output .= '<ul class="post_footer_details">';
$categories = get_the_category();
$output .= '<li>' . __('Posted in ', 'medicenter') . '</li>';
foreach ($categories as $key => $category) {
$output .= '<li>
<a href="' . get_category_link($category->term_id) . '" ';
if (empty($category->description)) {
$output .= 'title="' . sprintf(__('View all posts filed under %s', 'medicenter'), $category->name) . '"';
} else {
$output .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $category->description, $category))) . '"';
}
$output .= '>' . $category->name . '</a>' . ($category != end($categories) ? ', ' : '') . '
</li>';
}
$output .= ' </ul>';
}
if ((int) $show_post_author) {
$output .= '<ul class="post_footer_details">
<li>' . __('Posted by', 'medicenter') . '</li>
<li>
' . (get_the_author_meta("user_url") != "" ? '<a class="author" href="' . get_the_author_meta("user_url") . '" title="' . get_the_author() . '">' . get_the_author() . '</a>' : get_the_author()) . '
</li>
</ul>';
}
if ((int) $show_post_date_footer) {
$output .= '<ul class="post_footer_details">
<li>' . __('Posted on', 'medicenter') . '</li>
<li>
' . date_i18n("d M y", get_post_time()) . '
</li>
</ul>';
}
if ((int) $show_post_comments_footer) {
$comments_count = get_comments_number();
$output .= '<ul class="post_footer_details">
<li>
' . __('Comments:', 'medicenter') . ' <a href="' . get_comments_link() . '" title="' . $comments_count . ' ' . ($comments_count == 1 ? __('comment', 'medicenter') : __('comments', 'medicenter')) . '">' . $comments_count . '</a>
</li>
</ul>';
}
$output .= '</div>';
}
$output .= ((int) $layout_type != 3 ? '</div>' : '') . '</li>';
$i++;
}
} elseif (is_search()) {
$output .= '<div class="vc_row wpb_row vc_row-fluid page_margin_top">' . sprintf(__('No results found for %s', 'pressroom'), get_query_var('s')) . '</div>';
}
$output .= '</ul>';
if ((int) $layout_type == 2) {
$output .= '</div>';
}
if ($mc_pagination) {
require_once locate_template("pagination.php");
$output .= kriesi_pagination(false, '', 2, false, false, '', 'page_margin_top');
}
//Reset Query
wp_reset_query();
return $output;
}
示例5: get_template_part
<?php
get_template_part('templates/compare_list');
?>
<!-- Listings starts here -->
<?php
get_template_part('templates/spiner');
?>
<div id="listing_ajax_container" class="row">
<?php
print $templates;
?>
</div>
<!-- Listings Ends here -->
<?php
kriesi_pagination($prop_selection->max_num_pages, $range = 2);
?>
</div><!-- end 8col container-->
<?php
include locate_template('sidebar.php');
?>
</div>
示例6: get_post_meta
<span class="pright"><a href="<?php
echo get_post_meta($post->ID, '_product_info_product_link', true);
?>
">Buy Now</a> </span>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
//web2feel_content_nav( 'nav-below' );
?>
<div class="grid_12">
<?php
kriesi_pagination("{$wp_query->max_num_pages}");
?>
</div>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php
get_footer();
示例7: portfolio_sc
//.........这里部分代码省略.........
echo '<div class="port_project_buttons">';
if ($project_url !== '') {
echo '<a href="' . $project_url . '" target="_blank" class="view-portfolio-pp">' . __('Launch Project', 'thefoxwp') . '</a>';
}
echo '<a class="view-portfolio-item" href="' . $linkToTheWork . '">' . __('View More', 'thefoxwp') . '</a></div></div>
</div>';
}
echo '<div class="portfolio_sub_info"><div class="isotope_portfolio_name">' . get_the_title() . '</div><div class="isotope_portfolio_date">' . get_the_date('Y-m-d') . '</div></div></div><!-- element END -->';
#END Portfolio
$i++;
unset($echoallterm, $pf);
}
}
echo '
</div><!-- .portfolio_block -->
<div class="rd_clear"><!-- ClearFix --></div>';
if ($port_navigation == 'loadmore_nav') {
$output = '';
$output .= '<style>#random' . $portfolio_rand_class . '_port .btn_load_more{background:' . $button_bg . '; color:' . $button_title . '; border:1px solid ' . $button_border . ';}#random' . $portfolio_rand_class . '_port .refresh_icn:before{color:' . $button_title . ';}#random' . $portfolio_rand_class . '_port .btn_load_more:hover{background:' . $button_hover_bg . '; color:' . $button_hover_title . '; border:1px solid ' . $button_hover_bg . ';}#random' . $portfolio_rand_class . '_port .btn_load_more:hover .refresh_icn:before{color:' . $button_hover_title . ';}</style>';
$output .= '<div class="load_more_cont"><a class="btn_load_more get_portfolio_works_btn" href="#"><span class="fa-plus refresh_icn"></span>' . __('Load More', 'thefoxwp') . '<span></span></a></div>';
echo !empty($output) ? $output : '';
}
if ($port_navigation == 'classic_nav') {
echo '<style>#random' . $portfolio_rand_class . '_port .navigation .pagination span,#random' . $portfolio_rand_class . '_port .navigation .pagination a{border:1px solid ' . $nav_border . '; color:' . $nav_color . '; background:' . $nav_bg . ';}#random' . $portfolio_rand_class . '_port .navigation .pagination .current,#random' . $portfolio_rand_class . '_port .navigation .pagination span:hover,#random' . $portfolio_rand_class . '_port .navigation .pagination a:hover{ color:' . $nav_hover_color . ' !important; background:' . $nav_hover_bg . '; border:1px solid ' . $nav_hover_bg . '; }#random' . $portfolio_rand_class . '_port .navigation{border-top:1px solid ' . $nav_border . ';}#random' . $portfolio_rand_class . '_port .pagination_current_position{color:' . $nav_color . ';}</style>';
if (isset($maxpages)) {
?>
<div class="navigation">
<?php
kriesi_pagination($maxpages);
echo "<span class='pagination_current_position'>" . __("Page", "rdesign") . ' ' . $current . "/" . $maxpages . "</span>";
?>
</div>
<?php
}
}
echo '</div>';
?>
<script>
jQuery.noConflict();
var $ = jQuery;
"use strict";
<?php
if ($port_navigation == 'loadmore_nav') {
?>
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!CONFIG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
var html_template = "<?php
echo esc_js($port_type);
?>
";
var thumbnail = "<?php
echo esc_js($port_thumbnail);
?>
";
var now_open_works = 0;
var first_load = true;
示例8: theme_gallery_shortcode
//.........这里部分代码省略.........
}
while (have_posts()) {
the_post();
$categories = array_filter((array) get_the_terms(get_the_ID(), ($shortcode_type == 'gallery' ? "medicenter_gallery" : $shortcode_type) . "_category"));
$categories_count = count($categories);
$categories_string = "";
$i = 0;
foreach ($categories as $category) {
$categories_string .= urldecode($category->slug) . ($i + 1 < $categories_count ? ' ' : '');
$i++;
}
if ($display_method == "dm_filters") {
$output .= '<li class="' . $categories_string . '" id="gallery-item-' . $post->post_name . '">
<div class="gallery_box ' . ($hover_icons == 0 ? 'hover_icons_off' : '') . '">';
} else {
$output .= '<li class="gallery_box ' . ($hover_icons == 0 ? 'hover_icons_off' : '') . '" id="gallery-item-' . $post->post_name . '">';
}
if (has_post_thumbnail()) {
$output .= ($display_method != "dm_carousel" ? '<span class="mc_preloader"></span>' : '') . get_the_post_thumbnail(get_the_ID(), $featured_image_size != "default" ? $featured_image_size : $themename . "-gallery-" . ($layout == "gallery_4_columns" ? "thumb-type-2" : ($layout == "gallery_3_columns" ? "thumb-type-1" : "image")), array("alt" => get_the_title(), "title" => "", "class" => "mc_preload"));
}
$output .= '
<div class="description">
<h3>' . get_the_title() . '</h3>
<h5>' . get_post_meta(get_the_ID(), "subtitle", true) . '</h5>
</div>';
if (get_the_excerpt() != "") {
$output .= '<div class="item_details">' . apply_filters('the_excerpt', get_the_excerpt()) . '</div>';
}
if ((int) $display_social_icons) {
$icon_type = get_post_meta(get_the_ID(), "social_icon_type", true);
$arrayEmpty = true;
for ($i = 0; $i < count($icon_type); $i++) {
if ($icon_type[$i] != "") {
$arrayEmpty = false;
}
}
if (!$arrayEmpty) {
$icon_url = get_post_meta(get_the_ID(), "social_icon_url", true);
$icon_target = get_post_meta(get_the_ID(), "social_icon_target", true);
$icon_color = get_post_meta(get_the_ID(), "social_icon_color", true);
$output .= '<ul class="social_icons clearfix">';
for ($i = 0; $i < count($icon_type); $i++) {
if ($icon_type[$i] != "") {
$output .= '<li><a class="social_icon" href="' . $icon_url[$i] . '"' . (isset($icon_target[$i]) && $icon_target[$i] == 'new_window' ? ' target="_blank"' : '') . ' title="" style="background-image: url(\'' . get_template_directory_uri() . '/images/social_body/' . $icon_color[$i] . '/' . $icon_type[$i] . '.png\');"> </a></li>';
}
}
$output .= '</ul>';
}
}
$output .= '
<ul class="controls">
<li>
<a href="' . ($type == "list" && (int) $details_page ? get_permalink((int) $details_page) : '') . '#gallery-details-' . $post->post_name . '" class="open_details" style="background-image: url(\'' . get_template_directory_uri() . '/images/icons_media/' . $lightbox_icon_color . '/details.png\')"></a>
</li>';
if (has_post_thumbnail()) {
$output .= '<li>';
$image_title = get_post_meta(get_the_ID(), "image_title", true);
$video_url = get_post_meta(get_the_ID(), "video_url", true);
if ($video_url != "") {
$large_image_url = $video_url;
} else {
$attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), "large");
$large_image_url = $attachment_image[0];
}
$external_url = get_post_meta(get_the_ID(), "external_url", true);
$external_url_target = get_post_meta(get_the_ID(), "external_url_target", true);
$iframe_url = get_post_meta(get_the_ID(), "iframe_url", true);
$output .= '<a' . ($external_url != "" && $external_url_target == "new_window" ? ' target="_blank"' : '') . ' href="' . ($external_url == "" ? $iframe_url != "" ? $iframe_url : $large_image_url : $external_url) . '" class="fancybox' . ($video_url != "" ? '-video' : ($iframe_url != "" ? '-iframe' : ($external_url != "" ? '-url' : ''))) . ' open' . ($video_url != "" ? '_video' : ($iframe_url != "" ? '_iframe' : ($external_url != "" ? '_url' : ''))) . '_lightbox"' . ($external_url == "" && $iframe_url == "" && $video_url == "" ? ' rel="' . ((int) $images_loop ? 'mc_gallery' : 'gallery_item_' . get_the_ID()) . '"' : '') . ($image_title != "" ? ' title="' . esc_attr($image_title) . '"' : '') . ' style="background-image: url(\'' . get_template_directory_uri() . '/images/icons_media/' . $lightbox_icon_color . '/' . ($video_url != "" ? 'video' : ($iframe_url != "" || $external_url != "" ? 'url' : 'image')) . '.png\')"></a>
</li>';
}
$output .= '</ul>';
if ($display_method == "dm_filters") {
$output .= '</div>';
}
$output .= '</li>';
}
$output .= '</ul>';
if ($display_method == "dm_pagination" && $_GET["action"] != "theme_" . $shortcode_type . "_pagination") {
$output .= "</div>";
}
if (isset($_GET["action"]) && $_GET["action"] == "theme_" . $shortcode_type . "_pagination") {
echo "theme_start" . $output . "theme_end";
//Reset Query
wp_reset_query();
exit;
} else {
if ($display_method == "dm_pagination") {
require_once locate_template("pagination.php");
$output .= kriesi_pagination((int) $ajax_pagination ? true : false, '', (int) $ajax_pagination ? 100 : 2, false, false, 'theme_' . $shortcode_type . '_pagination', 'page_margin_top');
if ((int) $ajax_pagination) {
$output .= '<input type="hidden" name="theme_' . $shortcode_type . '_pagination" value="' . htmlentities(serialize($atts)) . '" />';
}
}
}
}
}
//Reset Query
wp_reset_query();
return $output;
}
示例9: the_title
"><?php
the_title();
?>
</a>
</h3> </span>
</div>
</li>
<?php
}
// end of the loop.
?>
</ul>
</div>
<div id="page" style="float:left;">
<?php
kriesi_pagination($wp_query->max_num_pages);
?>
</div>
</div>
<div class="bottom">
<div class="left">
</div>
<div class="center">
</div>
<div class="right">
</div>
</div>
</div>
</li>
</ul>
</div>
示例10: get_post_meta
echo get_post_meta($post->ID, 'pyre_custom_link_target', true);
?>
" class="button button_default small">View More</a>
<?php
} else {
?>
<a href="<?php
echo get_permalink($post->ID);
?>
" class="button button_default small">View More</a>
<?php
}
?>
</div>
</div>
</div>
<!-- /Project Feed -->
</div>
<?php
}
}
?>
</div>
</div>
<?php
kriesi_pagination($portf->max_num_pages, $range = 2);
?>
</div>
<?php
get_footer();
示例11: if
<?php } ?>
<?php if ($term_list = wp_get_post_tags($post->ID, array("fields" => "all"))): ?>
<div class="tag-block">
<small>Article tags:</small>
<div class="article-tags">
<?php foreach($term_list as $term): ?>
<a href="<?php echo get_atoz_letter_link($term->slug); ?>"><?php echo ucfirst($term->name); ?></a>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
</article>
<?php endwhile; // End the loop. Whew. ?>
<?php kriesi_pagination(); ?>
<?php wp_reset_postdata(); ?>
<?php // Restore original query object
$wp_query = null;
$wp_query = $tmp_query;
?>
</div><!-- end of .left-column -->
<div class="right-column">
<?php
$args = array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => false,
'child_of' => $current_category->parent
示例12: get_template_part
<?php
get_template_part('templates/ajax_container');
?>
<div class="blog_list_wrapper row indexlist">
<?php
$paged = get_query_var('paged') ? get_query_var('paged') : 0;
$args = array('post_type' => 'post', 'paged' => $paged, 'status' => 'published');
$blog_selection = new WP_Query($args);
while ($blog_selection->have_posts()) {
$blog_selection->the_post();
get_template_part('templates/blog_unit');
}
wp_reset_query();
?>
</div>
<?php
kriesi_pagination($blog_selection->max_num_pages, $range = 2);
?>
</div><!-- end 8col container-->
<?php
include locate_template('sidebar.php');
?>
</div>
<?php
get_footer();
示例13: kriesi_pagination
?>
</div>
</div> <!-- end row -->
</li> <!-- end li -->
<?php
}
$ctr++;
}
?>
</ul>
<br />
<?php
kriesi_pagination($allsearch->max_num_pages);
?>
<?php
} else {
?>
<h2>Helaas, niets gevonden.</h2>
<br />
<p>Probeer hieronder een andere zoekopdracht...</p>
<?php
get_search_form();
?>
<?php
}
?>
示例14: staff_post_sc
//.........这里部分代码省略.........
<?php
}
?>
<?php
if ($gplus !== '') {
?>
<div id="gplus"> <a target="_blank" href="<?php
echo esc_url($gplus);
?>
" ><i class="fa fa-google-plus"></i></a></div>
<?php
}
?>
<?php
if ($mail !== '') {
?>
<div id="member_email"> <a target="_blank" href="mailto:<?php
echo esc_attr($mail);
?>
" ><i class="fa fa-envelope-o"></i></a></div>
<?php
}
?>
</div>
<?php
}
?>
</div>
</div>
<div class="member-info">
<h3><a href="<?php
echo the_permalink();
?>
" target="<?php
echo esc_attr($l_target);
?>
"><?php
echo the_title();
?>
</a></h3>
<span class="position" ><?php
echo !empty($position) ? $position : '';
?>
</span>
</div>
</div>
</div>
<?php
}
unset($echoallterm, $pf);
}
}
if ($blog_navigation == 'loadmore_nav') {
?>
<div class="blog_load_more_cont"><a class="btn_load_more get_blog_posts_btn" href="#"><span class="fa-plus refresh_icn"></span><?php
echo __('Load More', 'thefoxwp');
?>
</a></div><div class="clear"><!-- ClearFix --></div>
<?php
}
?>
</div>
<?php
if ($blog_navigation == 'classic_nav') {
?>
<!-- .navigation -->
<div class="navigation clearfix">
<?php
kriesi_pagination($maxpages);
echo "<span class='pagination_current_position'>" . __("Page", "rdesign") . ' ' . $current . "/" . $maxpages . "</span>";
?>
</div>
<!-- .navigation END -->
<?php
}
$output_string = ob_get_contents();
ob_end_clean();
return $output_string;
}
示例15: blog_sc
//.........这里部分代码省略.........
$galleryArray = get_post_gallery_ids($post->ID);
if ($galleryArray) {
echo "<div class='post-attachement'><div class='flexslider'><ul class='slides'>";
foreach ($galleryArray as $id) {
$url = wp_get_attachment_url($id, 'full', 0);
echo "<li>";
echo '<a href="' . get_permalink($post->ID) . '" class="blog_img_overlay">';
echo wp_get_attachment_image($id, 'full', 0);
echo "</a><a href='" . $url . "' class='prettyPhoto post-att-zoom'><i class='fa fa-expand'></i></a></li>";
}
echo "</ul></div></div><div class='sep_25'></div>";
}
}
}
if ($post_format !== 'quote') {
?>
<!-- .title -->
<div class="post-title">
<h2><a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
">
<?php
the_title();
?>
</a></h2>
</div>
<!-- .title END-->
<!-- post-info-top -->
<div class="post-info"><?php
echo __('By', 'thefoxwp');
?>
<?php
the_author();
?>
| <?php
the_time('j F, Y');
?>
</div>
<!-- post-info END-->
<!-- .entry -->
<div class="entry">
<?php
if ($post_format == 'audio') {
echo !empty($content) ? $content : '';
} else {
the_content(__('Read more', 'thefoxwp'));
}
?>
</div> <?php
}
?>
<div class="post-bottom-info"><span class="info_comment"><?php
comments_popup_link(__('0 comment', 'thefoxwp'), __('1 comment', 'thefoxwp'), __('% comments', 'thefoxwp'), 'comments-link', __('Comments are Closed', 'thefoxwp'));
?>
| </span><span class="info_like"><?php
if (function_exists('zilla_likes')) {
echo do_shortcode('[zilla_likes]');
}
?>
</span></div>
</div>
</div>
<!-- .post-content END-->
<!-- .post END -->
<?php
}
}
if ($blog_navigation == 'classic_nav') {
?>
<!-- .navigation -->
</div>
<div class="navigation clearfix">
<?php
kriesi_pagination();
?>
</div>
<!-- .navigation END -->
<?php
}
}
if ($type == 'type2') {
echo '</div>';
}
if ($blog_navigation !== 'classic_nav' && $type !== 'type5') {
echo '<div class="blog_load_more_cont"><a class="btn_load_more get_blog_posts_btn" href="#"><span class="fa-plus refresh_icn"></span>' . __('Load More', 'thefoxwp') . '</a></div></div><div class="clear"><!-- ClearFix --></div>';
} elseif ($blog_navigation !== 'classic_nav') {
echo '<div class="blog_load_more_cont multi_author_load"><a class="btn_load_more get_blog_posts_btn" href="#"><span class="fa-plus refresh_icn"></span></a></div></div><div class="clear"><!-- ClearFix --></div>';
}
wp_reset_postdata();
$output_string = ob_get_contents();
ob_end_clean();
return $output_string;
}