• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP themefusion_pagination函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: if

                     <div class="alignright">
                         <?php if(!$data['post_meta_read']): ?><a href="<?php the_permalink(); ?>" class="read-more"><?php echo __('Read More', 'Avada'); ?></a><?php endif; ?>
                     </div>
                     <?php endif; ?>
                 </div>
                 <?php endif; ?>
             </div>
         </div>
         <?php
         $prev_post_timestamp = $post_timestamp;
         $prev_post_month = $post_month;
         $post_count++;
         endwhile;
         ?>
     </div>
     <?php themefusion_pagination($pages = '', $range = 2); ?>
 </div>
 <?php wp_reset_query(); ?>
 <div id="sidebar" style="<?php echo $sidebar_css; ?>">
     <?php
     if(is_home()) {
         $name = get_post_meta(get_option('page_for_posts'), 'sbg_selected_sidebar_replacement', true);
         if($name) {
             generated_dynamic_sidebar($name[0]);
         }
     }
     if(is_front_page()) {
         if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog Sidebar')): 
         endif;
     }
     ?>
开发者ID:plusinterativa,项目名称:clientes,代码行数:31,代码来源:index.php


示例2: themefusion_pagination

        }
        ?>
				<?php 
        if ($portfolio_sep == true) {
            ?>
				<div class="demo-sep sep-double" style="margin-top:50px;"></div>
				<?php 
        }
        ?>
			</div>
			<?php 
    }
}
?>
		</div>
		<?php 
themefusion_pagination($gallery->max_num_pages, $range = 2);
?>
	</div>
	<div id="sidebar" style="<?php 
echo $sidebar_css;
?>
">
	<?php 
if ($data['portfolio_archive_sidebar'] != 'None' && function_exists('dynamic_sidebar')) {
    generated_dynamic_sidebar($data['portfolio_archive_sidebar']);
}
?>
	</div>
<?php 
get_footer();
开发者ID:shieldsdesignstudio,项目名称:trilogic,代码行数:31,代码来源:taxonomy-portfolio_tags.php


示例3: render


//.........这里部分代码省略.........
                 } else {
                     $cat_ids .= $id_obj->cat_ID . ',';
                 }
             }
         }
     }
     $defaults['cat'] = substr($cat_ids, 0, -1);
     if ($defaults['blog_grid_column_spacing'] === '0') {
         $defaults['blog_grid_column_spacing'] = '0.0';
     }
     self::$args = $defaults;
     $fusion_query = new WP_Query($defaults);
     $this->query = $fusion_query;
     //prepare needed wrapping containers
     $html = '';
     $html .= sprintf('<div %s>', FusionCore_Plugin::attributes('blog-shortcode'));
     if (self::$args['layout'] == 'grid' && self::$args['blog_grid_column_spacing']) {
         $html .= sprintf('<style type="text/css">.fusion-blog-shortcode-%s .grid-layout .post{padding:%spx;}</style>', $this->blog_sc_counter, $defaults['blog_grid_column_spacing'] / 2);
     }
     $html .= sprintf('<div %s>', FusionCore_Plugin::attributes('blog-shortcode-posts-container'));
     ob_start();
     do_action('fusion_blog_shortcode_wrap_loop_open');
     $wrap_loop_open = ob_get_contents();
     ob_get_clean();
     $html .= $wrap_loop_open;
     if (self::$args['layout'] == 'timeline') {
         $this->post_count = 1;
         $prev_post_timestamp = null;
         $prev_post_month = null;
         $prev_post_year = null;
         $first_timeline_loop = false;
     }
     //do the loop
     if ($fusion_query->have_posts()) {
         while ($fusion_query->have_posts()) {
             $fusion_query->the_post();
             $this->post_id = get_the_ID();
             if (self::$args['layout'] == 'timeline') {
                 $post_timestamp = strtotime(get_the_date());
                 $this->post_month = date('n', $post_timestamp);
                 $this->post_year = get_the_date('o');
                 $current_date = get_the_date('o-n');
                 $date_params['prev_post_month'] = $prev_post_month;
                 $date_params['post_month'] = $this->post_month;
                 $date_params['prev_post_year'] = $prev_post_year;
                 $date_params['post_year'] = $this->post_year;
                 ob_start();
                 do_action('fusion_blog_shortcode_timeline_date', $date_params);
                 do_action('fusion_blog_shortcode_before_loop_timeline');
                 $before_loop_timeline_action = ob_get_contents();
                 ob_get_clean();
                 $html .= $before_loop_timeline_action;
             } else {
                 ob_start();
                 do_action('fusion_blog_shortcode_before_loop');
                 $before_loop_action = ob_get_contents();
                 ob_get_clean();
                 $html .= $before_loop_action;
             }
             if (self::$args['layout'] == 'grid' || self::$args['layout'] == 'timeline') {
                 $html .= sprintf('<div %s>', FusionCore_Plugin::attributes('post-wrapper'));
             }
             $this->header = array('title_link' => true);
             ob_start();
             do_action('fusion_blog_shortcode_loop_header');
             do_action('fusion_blog_shortcode_loop_content');
             do_action('fusion_blog_shortcode_loop_footer');
             do_action('fusion_blog_shortcode_after_loop');
             $loop_actions = ob_get_contents();
             ob_get_clean();
             $html .= $loop_actions;
             if (self::$args['layout'] == 'grid' || self::$args['layout'] == 'timeline') {
                 $html .= '</div>';
             }
             if (self::$args['layout'] == 'timeline') {
                 $prev_post_timestamp = $post_timestamp;
                 $prev_post_month = $this->post_month;
                 $prev_post_year = $this->post_year;
                 $this->post_count++;
             }
         }
     } else {
     }
     ob_start();
     do_action('fusion_blog_shortcode_wrap_loop_close');
     $wrap_loop_close_action = ob_get_contents();
     ob_get_clean();
     $html .= $wrap_loop_close_action;
     $html .= '</div>';
     if (self::$args['paging']) {
         ob_start();
         themefusion_pagination($this->query->max_num_pages, $range = 2, $this->query);
         $pagination = ob_get_contents();
         ob_get_clean();
         $html .= $pagination;
     }
     $html .= '</div>';
     $this->blog_sc_counter++;
     return $html;
 }
开发者ID:jolay,项目名称:maga2.0,代码行数:101,代码来源:class-blog.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP themerex_enqueue_script函数代码示例发布时间:2022-05-23
下一篇:
PHP themecenterposts函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap