Example #1
0
    new ItalyStrapBreadcrumbs($defaults);
}
?>
						<header class="page-header">
							<h1 itemprop="headline"><?php 
printf(__('Search result of: %s', 'ItalyStrap'), '<span>' . get_search_query() . '</span>');
?>
</h1>
						</header>
					<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('loops/content', 'archive');
    }
} else {
    get_template_part('loops/content', 'none');
}
wp_reset_query();
bootstrap_pagination();
?>
				</div>
				<?php 
get_sidebar();
?>
 
			</div>
		</div>
	</section>
<?php 
get_footer();
Example #2
0
        <div class="container">
            <div class="row">
				<div class="col-md-8" itemscope itemtype="http://schema.org/CollectionPage">
				<?php 
if (class_exists('ItalyStrapBreadcrumbs')) {
    $defaults = array('home' => '<span class="glyphicon glyphicon-home" aria-hidden="true"></span>');
    new ItalyStrapBreadcrumbs($defaults);
}
$paged = get_query_var('paged') ? absint(get_query_var('paged')) : 1;
$blog = new WP_Query(array('post_type' => 'post', 'pagination' => true, 'paged' => $paged));
if ($blog->have_posts()) {
    while ($blog->have_posts()) {
        $blog->the_post();
        get_template_part('loops/content', 'archive');
    }
    bootstrap_pagination($blog);
} else {
    get_template_part('loops/content', 'none');
}
wp_reset_query();
wp_reset_postdata();
?>


				</div><!-- / .col-md-8 -->
				<?php 
get_sidebar();
?>
 
			</div><!-- / .row -->
		</div><!-- / .container -->
                    <div class="row">
                  <?php 
        }
        ?>
            
                <!-- CREATING NEW ROW FOR BOOTSTRAP ENDs -->

            <?php 
    }
    ?>

              <section class="custom-post-nav row">

                <nav class="text-center col-md-12">
                  <?php 
    bootstrap_pagination($the_query->max_num_pages, 2);
    ?>
                </nav>

               
              </section>

              <?php 
    wp_reset_postdata();
    ?>

            <?php 
} else {
    ?>
                        
                        <h3>No Content Found ...</h3>
Example #4
0
        case 'coupons_view':
            $coupons = get_usrGotCoupons_list($_REQUEST['coupon_id']);
            break;
        default:
            die('非法访问!');
            break;
    }
    $smarty->assign('coupons', $coupons['coupons']);
    $smarty->assign('filter', $coupons['filter']);
    $smarty->assign('record_count', $coupons['record_count']);
    $smarty->assign('page_count', $coupons['page_count']);
    /* 排序标记 */
    $sort_flag = sort_flag_bootstrap($coupons['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    /*分页html代码*/
    $smarty->assign('pagination', bootstrap_pagination($coupons['filter']));
    //跳转页面
    make_json_result($smarty->fetch($_REQUEST['key_url_para'] . '.htm'), '', array('filter' => $coupons['filter'], 'page_count' => $coupons['page_count']));
} elseif (strstr($_REQUEST['act'], 'edit_')) {
    $val = trim($_REQUEST['val']);
    $id = trim($_REQUEST['id']);
    /**对修改的值进行格式处理**/
    $field = str_replace('edit_', '', $_REQUEST['act']);
    switch ($field) {
        case 'coupon_value':
        case 'restriction_ext':
            $val = floatval($val);
            break;
        case 'today_sent':
        case 'daily_total':
        case 'total_num_restriction':