当前位置: 首页>>代码示例>>PHP>>正文


PHP wpex_pagination函数代码示例

本文整理汇总了PHP中wpex_pagination函数的典型用法代码示例。如果您正苦于以下问题:PHP wpex_pagination函数的具体用法?PHP wpex_pagination怎么用?PHP wpex_pagination使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wpex_pagination函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_header

<?php

/**
 * Index.php is the default template. This file is used when a more specific template can not be found to display your posts.
 */
get_header();
// Loads the header.php template
if (have_posts()) {
    ?>
<div id="blog-wrap" class="blog-isotope clearfix">   
	<?php 
    // Loop through each post
    while (have_posts()) {
        the_post();
        get_template_part('content', get_post_format());
    }
    ?>
           
</div><!-- /post -->
<?php 
    wpex_pagination();
    // Paginate your posts
}
get_footer();
//get template footer
开发者ID:shazadmaved,项目名称:vizblog,代码行数:25,代码来源:index.php

示例2: wpex_pagination

        ?>

			<?php 
        // End main loop
    }
    ?>
			
		</div><!-- .vcex-blog-grid -->

		<?php 
    // Display pagination if enabled
    if ('true' == $pagination) {
        ?>

			<?php 
        wpex_pagination($wpex_query);
        ?>
			
		<?php 
    }
    ?>

	</div><!-- <?php 
    echo $wrap_classes;
    ?>
 -->

	<?php 
    // Remove post object from memory
    $post = null;
    // Reset the post data to prevent conflicts with WP globals
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:31,代码来源:vcex_blog_grid.php

示例3: wpex_blog_pagination

 function wpex_blog_pagination()
 {
     // Admin Options
     $blog_style = wpex_get_mod('blog_style', 'large-image');
     $pagination_style = wpex_get_mod('blog_pagination_style', 'standard');
     // Category based settings
     if (is_category()) {
         // Get taxonomy meta
         $term = get_query_var('cat');
         $term_data = get_option('category_' . $term);
         $term_style = $term_pagination = '';
         if (isset($term_data['wpex_term_style'])) {
             $term_style = '' != $term_data['wpex_term_style'] ? $term_data['wpex_term_style'] . '' : $term_style;
         }
         if (isset($term_data['wpex_term_pagination'])) {
             $term_pagination = '' != $term_data['wpex_term_pagination'] ? $term_data['wpex_term_pagination'] . '' : '';
         }
         if ($term_style) {
             $blog_style = $term_style . '-entry-style';
         }
         if ($term_pagination) {
             $pagination_style = $term_pagination;
         }
     }
     // Set default $type for infnite scroll
     if ('grid-entry-style' == $blog_style) {
         $infinite_type = 'standard-grid';
     } else {
         $infinite_type = 'standard';
     }
     // Execute the correct pagination function
     if ('infinite_scroll' == $pagination_style) {
         wpex_infinite_scroll($infinite_type);
     } elseif ($pagination_style == 'next_prev') {
         wpex_pagejump();
     } else {
         wpex_pagination();
     }
 }
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:39,代码来源:pagination.php

示例4: vcex_portfolio_grid_shortcode


//.........这里部分代码省略.........
                    }
                    // Display excerpt and readmore
                    if ('true' == $excerpt || 'true' == $read_more) {
                        ?>
										<div class="portfolio-entry-excerpt clr">
											<?php 
                        // Display full content
                        if ('9999' == $excerpt_length) {
                            the_content();
                        } elseif (function_exists('wpex_excerpt')) {
                            $args = array('post_id' => $post_id, 'length' => intval($excerpt_length), 'trim_custom_excerpts' => $custom_excerpt_trim);
                            wpex_excerpt($args);
                        } else {
                            the_excerpt();
                        }
                        // Display Readmore
                        if ('false' != $read_more) {
                            // Read more string fallback
                            if ('' == $read_more_text) {
                                $read_more_text = __('read more', 'wpex');
                            }
                            ?>
												<a href="<?php 
                            echo $post_permalink;
                            ?>
" title="<?php 
                            echo $read_more_text;
                            ?>
" rel="bookmark" class="vcex-readmore theme-button" <?php 
                            echo $readmore_style;
                            ?>
>
													<?php 
                            echo $read_more_text;
                            ?>
 <span class="vcex-readmore-rarr"><?php 
                            echo wpex_element('rarr');
                            ?>
</span>
												</a>
											<?php 
                        }
                        ?>
										</div>
									<?php 
                    }
                    // Close Equal height div
                    if ($equal_heights_grid && !$is_isotope) {
                        ?>
										</div>
									<?php 
                    }
                    ?>
								</div><!-- .portfolio-entry-details -->
							<?php 
                }
                ?>
						</<?php 
                echo $main_element_type;
                ?>
><!-- .portfolio-entry -->
					<?php 
                // Check if counter equal columns
                if ($count == $columns) {
                    // Close equal height row
                    if ($equal_heights_grid && !$is_isotope) {
                        echo '</div><!-- .match-height-row -->';
                    }
                    // Reset counter
                    $count = '';
                }
                // End foreach
            }
            // Make sure match-height-row is closed
            if ($equal_heights_grid && !$is_isotope) {
                if ('4' == $columns && $count_all % 4 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
                if ('3' == $columns && $count_all % 3 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
                if ('2' == $columns && $count_all % 2 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
            }
            ?>
				</div><!-- .vcex-portfolio-grid -->
				
				<?php 
            // Paginate Posts
            if ('true' == $pagination) {
                wpex_pagination($wpex_query);
            }
            // Reset the WP query
            wp_reset_postdata();
            // End has posts check
        }
        // Return outbut buffer
        return ob_get_clean();
    }
开发者ID:sergey-h,项目名称:naman,代码行数:101,代码来源:portfolio_grid.php

示例5: vcex_testimonials_grid_shortcode


//.........这里部分代码省略.........
                            $read_more_link = '...<a href="' . get_permalink() . '" title="' . $read_more_text . '">' . $read_more_text . '<span>&rarr;</span></a>';
                        }
                    } else {
                        $read_more_link = '...';
                    }
                    // Custom Excerpt function
                    if (function_exists('wpex_excerpt')) {
                        $args = array('post_id' => $post_id, 'length' => intval($excerpt_length), 'trim_custom_excerpts' => $custom_excerpt_trim, 'readmore' => false, 'more' => $read_more_link);
                        wpex_excerpt($args);
                    } else {
                        the_excerpt();
                    }
                } else {
                    the_content();
                }
                ?>
							</div><!-- .home-testimonial-entry-content-->
							<div class="testimonial-entry-bottom">
								<?php 
                if (has_post_thumbnail()) {
                    ?>
								<div class="testimonial-entry-thumb">
									<img src="<?php 
                    echo $img_url;
                    ?>
" alt="<?php 
                    echo the_title();
                    ?>
" <?php 
                    echo $img_border_radius;
                    ?>
 />
								</div><!-- /testimonial-thumb -->
								<?php 
                }
                ?>
								<div class="testimonial-entry-meta">
									<?php 
                if ($wpex_testimonial_author) {
                    ?>
										<span class="testimonial-entry-author"><?php 
                    echo $wpex_testimonial_author;
                    ?>
</span>
									<?php 
                }
                ?>
									<?php 
                if ($wpex_testimonial_company) {
                    ?>
										<?php 
                    if ($wpex_testimonial_url) {
                        ?>
											<a href="<?php 
                        echo esc_url($wpex_testimonial_url);
                        ?>
" class="testimonial-entry-company" title="<?php 
                        echo $wpex_testimonial_company;
                        ?>
" target="_blank"><?php 
                        echo $wpex_testimonial_company;
                        ?>
</a>
										<?php 
                    } else {
                        ?>
											<span class="testimonial-entry-company"><?php 
                        echo $wpex_testimonial_company;
                        ?>
</span>
										<?php 
                    }
                    ?>
									<?php 
                }
                ?>
								</div><!-- .testimonial-entry-meta -->
							</div><!-- .home-testimonial-entry-bottom -->
						</div><!-- .testimonials-entry -->
						<?php 
                // Reset counter
                if ($count == $columns) {
                    $count = '';
                }
            }
            ?>
				</div><!-- .vcex-testimonials-grid -->
				
				<?php 
            // Paginate Posts
            if ('true' == $pagination) {
                wpex_pagination($wpex_query);
            }
            // End has posts check
        }
        // Reset the WP query
        wp_reset_postdata();
        // Return outbut buffer
        return ob_get_clean();
    }
开发者ID:sergey-h,项目名称:naman,代码行数:101,代码来源:testimonials_grid.php

示例6: vcex_blog_grid_shortcode


//.........这里部分代码省略.........
                    }
                    // Excerpt
                    if ('true' == $excerpt || 'true' == $read_more) {
                        if ('true' != $excerpt) {
                            $excerpt_length = '0';
                        }
                        ?>
									<div class="vcex-blog-entry-excerpt clr">
										<?php 
                        // Show full content
                        if ('9999' == $excerpt_length) {
                            the_content();
                        } else {
                            // Custom Excerpt
                            $excerpt_array = array('post_id' => $post_id, 'length' => intval($excerpt_length), 'trim_custom_excerpts' => $custom_excerpt_trim);
                            vcex_excerpt($excerpt_array);
                        }
                        // Read more
                        if ('true' == $read_more) {
                            if ('link' == $format) {
                                $read_more_text = __('Visit Website', 'wpex');
                            }
                            ?>
											<a href="<?php 
                            echo $link;
                            ?>
" title="<?php 
                            echo $read_more_text;
                            ?>
" rel="bookmark" class="vcex-readmore theme-button" target="<?php 
                            echo $url_target;
                            ?>
" <?php 
                            echo $readmore_style;
                            ?>
>
												<?php 
                            echo $read_more_text;
                            ?>
 <span class="vcex-readmore-rarr"><?php 
                            echo wpex_element('rarr');
                            ?>
</span>
											</a>
										<?php 
                        }
                        ?>
									</div>
								<?php 
                    }
                    // Close Equal height div
                    if ($equal_heights_grid && !$is_isotope) {
                        ?>
								</div>
								<?php 
                    }
                    ?>
							</div><!-- .blog-entry-details -->
						<?php 
                }
                ?>
					</article><!-- .blog-entry -->
				<?php 
                // Reset counter
                if ($count == $columns) {
                    // Close equal height row
                    if ($equal_heights_grid && !$is_isotope) {
                        echo '</div><!-- .match-height-row -->';
                    }
                    $count = '0';
                }
                // End foreach
            }
            // Make sure match-height-row is closed
            if ($equal_heights_grid && !$is_isotope) {
                if ('4' == $columns && $count_all % 4 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
                if ('3' == $columns && $count_all % 3 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
                if ('2' == $columns && $count_all % 2 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
            }
            ?>
			</div><!-- .vcex-blog-grid -->
			
			<?php 
            // Paginate Posts
            if ('true' == $pagination) {
                wpex_pagination($wpex_query);
            }
            // End has posts check
        }
        // Reset the WP query
        wp_reset_postdata();
        // Return outbut buffer
        return ob_get_clean();
    }
开发者ID:sergey-h,项目名称:naman,代码行数:101,代码来源:blog_grid.php

示例7: vcex_post_type_grid_shortcode


//.........这里部分代码省略.........
                    // Excerpt
                    if ('true' == $excerpt || 'true' == $read_more) {
                        if ('true' != $excerpt) {
                            $excerpt_length = '0';
                        }
                        ?>
										<div class="vcex-post-type-entry-excerpt clr">
											<?php 
                        // Show full content
                        if ('9999' == $excerpt_length) {
                            the_content();
                        } else {
                            $trim_custom_excerpts = 'true' == $custom_excerpt_trim ? true : false;
                            $excerpt_array = array('length' => intval($excerpt_length), 'trim_custom_excerpts' => $trim_custom_excerpts);
                            vcex_excerpt($excerpt_array);
                        }
                        // Read more
                        if ($read_more) {
                            ?>
												<a href="<?php 
                            the_permalink();
                            ?>
" title="<?php 
                            echo $read_more_text;
                            ?>
" rel="bookmark" class="vcex-readmore theme-button" target="<?php 
                            echo $url_target;
                            ?>
" <?php 
                            echo $readmore_style;
                            ?>
>
													<?php 
                            echo $read_more_text;
                            ?>
 <span class="vcex-readmore-rarr"><?php 
                            echo wpex_element('rarr');
                            ?>
</span>
												</a>
											<?php 
                        }
                        ?>
										</div>
									<?php 
                    }
                    // Close Equal height div
                    if ($equal_heights_grid && !$is_isotope) {
                        ?>
									</div>
									<?php 
                    }
                    ?>
								</div><!-- .post_type-entry-details -->
							<?php 
                }
                ?>
						</<?php 
                echo $main_element_type;
                ?>
><!-- .post_type-entry -->
					<?php 
                // Check if counter equal columns
                if ($count == $columns) {
                    // Close equal height row
                    if ($equal_heights_grid && !$is_isotope) {
                        echo '</div><!-- .match-height-row -->';
                    }
                    // Reset counter
                    $count = '';
                }
                // End foreach
            }
            // Make sure match-height-row is closed
            if ($equal_heights_grid && !$is_isotope) {
                if ('4' == $columns && $count_all % 4 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
                if ('3' == $columns && $count_all % 3 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
                if ('2' == $columns && $count_all % 2 != 0) {
                    echo '</div><!-- .match-height-row -->';
                }
            }
            ?>
				</div><!-- .vcex-post-type-grid -->
				
				<?php 
            // Paginate Posts
            if ('true' == $pagination) {
                wpex_pagination($wpex_query);
            }
            // End has posts check
        }
        // Reset the WP query
        wp_reset_postdata();
        // Return outbut buffer
        return ob_get_clean();
    }
开发者ID:sergey-h,项目名称:naman2,代码行数:101,代码来源:post_type_grid.php

示例8: wpex_pagination

		</div><!-- .vcex-image-grid -->

		<?php 
        // Close CSS div
        if ($css) {
            echo '</div><!-- css wrapper -->';
        }
        ?>

		<?php 
        // Paginate Posts
        if ('-1' != $posts_per_page) {
            ?>
		   <?php 
            wpex_pagination($my_query);
            ?>
		<?php 
        }
        ?>

		<?php 
        // Remove post object from memory
        $post = null;
        // Reset the post data to prevent conflicts with WP globals
        wp_reset_postdata();
        ?>

		<?php 
        // End Query
    }
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:30,代码来源:vcex_image_grid.php


注:本文中的wpex_pagination函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。