本文整理汇总了PHP中custom_pagination函数的典型用法代码示例。如果您正苦于以下问题:PHP custom_pagination函数的具体用法?PHP custom_pagination怎么用?PHP custom_pagination使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了custom_pagination函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
?>
<p>
<?php
_e('Sorry, no posts matched your criteria.');
?>
</p>
<?php
}
?>
<!-- end post with pagination -->
<!-- Or pagination here -->
<div class="row">
<?php
if (function_exists(custom_pagination)) {
custom_pagination($the_query->max_num_pages, "", $paged);
} else {
echo "function pagination not found";
}
?>
</div>
</div>
<div class="sidemenu col-md-3">
<div class="btn-rekomendasi">
<a href="<?php
echo $url_submit_fotovideo;
?>
">
示例2: get_permalink
<a href="<?php
echo get_permalink($id);
?>
" class="permalink-blog-item">К статье</a>
</div>
<hr class="blog-hr">
</div>
<?php
}
?>
<?php
if (function_exists('wp_corenavi')) {
wp_corenavi();
}
custom_pagination($paged);
?>
</div>
</section>
</div><!-- #content -->
</section><!-- #primary -->
<?php
if (!dynamic_sidebar()) {
?>
<aside class="sidebar col-xs-4">
<div class="sidebar-list">
<?php
示例3: the_permalink
$latest_query->the_post();
?>
<ul class="list-unstyled">
<li>
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
</li>
</ul>
<?php
}
?>
</div>
<?php
custom_pagination($latest_query);
?>
</div>
<?php
get_sidebar();
?>
</div>
<?php
get_footer();
示例4: the_title
<i class="icon-clockalt-timealt"></i></p>
</div>
<div class="content">
<h3><?php
the_title();
?>
</h3>
<?php
echo the_excerpt();
?>
</div>
</a>
</div>
<div class="large-12 columns text-center ani">
<?php
custom_pagination($html_id);
?>
</div>
</div>
<div class="large-3 columns sidebar">
<?php
if (is_active_sidebar('newsletter')) {
?>
<div style="background: url('<?php
bloginfo('template_directory');
?>
/images/dont-be-square.jpg') no-repeat scroll 0px 0px / contain rgb(249, 249, 249); padding: 50% 8% 8%;">
<div style="background: none repeat scroll 0% 0% rgb(255, 255, 255); padding: 20px;"><?php
dynamic_sidebar('newsletter');
?>
</div></div>
示例5: complete_paper
public function complete_paper()
{
$select_filed = '*';
$tbl_name = 'tbl_article';
//$where_condition = array('art_status'=>'14','art_editor_decision'=>'Accept');
$where_condition = '(art_status="14" OR art_status="15" ) AND art_editor_decision ="Accept"';
$order_by_field = 'art_id';
$order_by_type = 'desc';
$group_by_field = 'art_id';
$all_list = $this->user_model->select_query_with_pagination($select_filed, $tbl_name, $where_condition, '', '', 'Y', $order_by_field, $order_by_type, $group_by_field);
$url = base_url() . 'complete-paper';
$no_data = sizeof($all_list);
$limit = 10;
$uri_seg = $this->uri->segment(2);
$all_record = 'N';
$data['total_records'] = sizeof($all_list);
if ($this->uri->segment(2) == 0 or $this->uri->segment(2) == 1) {
$data['offset'] = $offset = 0;
} else {
$data['offset'] = $offset = ($this->uri->segment(2) - 1) * $limit;
}
$data['page_no'] = custom_pagination($url, $no_data, $limit, $uri_seg);
$data['proof_data'] = $this->user_model->select_query_with_pagination($select_filed, $tbl_name, $where_condition, $limit, $offset, $all_record, $order_by_field, $order_by_type, $group_by_field);
$this->load->view('header');
$this->load->view('publisher/compelte_paper', $data);
$this->load->view('footer');
}
示例6: if
<div class="row">
<div class="page-banner-container">
<?php if ( !has_post_thumbnail() ) { ?>
<img src="<?=get_stylesheet_directory_uri()?>/assets/img/banner_contact.png" alt="" />
<? } ?>
<h1 <?=(has_post_thumbnail()?"":"class='no-banner'");?>><?=the_title();?></h1>
</div>
</div>
</div>
<div class="latest-new-container clearfix">
<?php if (!have_posts()) : ?>
<div class="alert alert-warning">
<?php _e('Sorry, no results were found.', 'roots'); ?>
</div>
<?php get_search_form(); ?>
<?php endif; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="latest-new-item container">
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php
if (function_exists(custom_pagination)) {
custom_pagination($page_links_total,"",$paged);
}
?>
</div>
示例7: the_permalink
$popular_query->the_post();
?>
<ul class="list-unstyled">
<li>
<a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
</li>
</ul>
<?php
}
?>
</div>
<?php
custom_pagination($popular_query);
?>
</div>
<?php
get_sidebar();
?>
</div>
<?php
get_footer();
示例8: wp_reset_query
<img src="<?php
echo $img_video;
?>
" class="anonce-category-prev-link">
</div>
<?php
}
}
wp_reset_query();
wp_reset_postdata();
?>
<?php
if (function_exists('wp_corenavi')) {
wp_corenavi();
}
custom_pagination($paged, $count_post);
?>
</div>
</div>
</section>
</div><!-- #content -->
</section><!-- #primary -->
<?php
if (!dynamic_sidebar()) {
?>
<aside class="sidebar col-xs-4">
<div class="sidebar-list">
<?php
示例9: contact_details
function contact_details()
{
?>
<form action="" xmlns="http://www.w3.org/1999/html" method="post" id="home_slider" enctype="multipart/form-data">
<?php
global $wpdb;
$table_name = $wpdb->prefix . "contacts";
$per_page = 30;
if (isset($_GET['page_no'])) {
$no = $_GET['page_no'];
} else {
$no = 0;
}
$offset = $per_page * $no;
$limit = $per_page;
$sql_query = "SELECT * FROM {$table_name} ORDER BY submitted_on DESC LIMIT {$offset},{$limit};";
$contact_lists = $wpdb->get_results($sql_query);
$total = $wpdb->get_row("select count(*) as number_of_rows from {$table_name}");
?>
<table class="table table-striped table-bordered table-condensed">
<caption><h3>Contact List</h3></caption>
<tr>
<th style="width: 15%;">Name</th>
<th style="width: 20%;">Email</th>
<th style="width: 10%;">Company</th>
<th style="width: 10%;">Phone Number</th>
<th style="width: 20%;">Message</th>
<th style="width: 15%;">Submitted On</th>
<th style="width: 10%;"></th>
</tr>
<?php
foreach ($contact_lists as $contact_list) {
?>
<tr>
<td ><?php
echo $contact_list->name;
?>
</td>
<td ><?php
echo $contact_list->email;
?>
</td>
<td ><?php
echo $contact_list->company;
?>
</td>
<td ><?php
echo $contact_list->ph_no;
?>
</td>
<td ><?php
echo $contact_list->message;
?>
</td>
<td ><?php
echo date("d-m-Y", strtotime($contact_list->submitted_on));
?>
</td>
<td class="action">
<a class="btn btn-small btn-inverse" href="admin.php?page=<?php
echo $_GET["page"];
?>
&id=<?php
echo $contact_list->id;
?>
&action=delete">Delete</a>
</td>
</tr>
<?php
}
?>
</table>
</form>
<?php
custom_pagination($total, $_GET["page"], $per_page);
}
示例10: the_permalink
<article class="one_fourth">
<h3><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h3>
<div class="content">
<?php
the_excerpt();
?>
</div>
</article>
<?php
}
?>
</ul>
</div>
<?php
}
if (function_exists(custom_pagination)) {
custom_pagination($year->max_num_pages, "", $paged);
}
?>
</div>
</div>
示例11: custom_pagination
<a href="' . $link['eventlink'] . '" target="blank"><p>' . $link['eventlinkname'] . '</p><img src="' . $image_path . '/resources/ext-link.png"/></a>
</li>';
}
}
?>
</ul>
</div>
</li>
</ul>
<?php
}
}
?>
<?php
if (function_exists(custom_pagination)) {
custom_pagination($events->max_num_pages, "", $paged);
}
?>
</div>
</section>
<?php
$GLOBALS['sideb'] = "EVE";
include 'sidebar.php';
?>
</div>
</div>
示例12: custom_pagination
echo $search->post->post_name;
?>
/"><?php
echo $search->post->post_title;
?>
</a></div>
</li>
<?php
}
?>
</ul>
<div class="fix"></div>
<!-- pagination here -->
<?php
if (function_exists(custom_pagination)) {
custom_pagination($search->post->max_num_pages, "", $paged);
}
?>
<?php
wp_reset_postdata();
?>
</div>
<?php
} else {
?>
<p>შედეგი არ მოიძებნა</p>
<?php
}
?>
示例13: the_permalink
<h3 class="news-title"><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h3>
<div class="content"><?php
the_excerpt();
?>
</div>
</div>
</article>
<?php
}
}
?>
<!-- pagination here -->
<?php
if (function_exists(custom_pagination)) {
custom_pagination($newsquery->max_num_pages, "", $paged);
} else {
_e('Sorry, no posts matched your criteria.');
}
?>
<?php
wp_reset_postdata();
?>
</div>
示例14: the_template
?>
<div id="<?php
echo the_template();
?>
">
<div id="content" class="equal_height qgall">
<!-- gallery-grid -->
<?php
echo do_shortcode("[quickgallery id='" . $post->ID . "' count='" . $post_per_page . "' cols='" . $cols . "']");
?>
<?php
echo $content;
?>
<?php
custom_pagination();
?>
<?php
wp_reset_query();
?>
<?php
echo the_adminbar();
?>
</div><!-- content -->
<?php
if (the_template() != "page-sidebar-no-sidebar") {
?>
<div class="sidebar equal_height">
<div id="sidebar-body">
示例15: if
<? } ?>
<span class="logo_audio enable"></span>
<? if(is_user_logged_in()){?>
</a>
<? } ?>
<? }else{ ?>
<span class="logo_audio"></span>
<? } ?>
</td>
</tr>
<? endwhile; ?>
</table>
</div>
<?php
if (function_exists(custom_pagination)) {
custom_pagination($results->max_num_pages,"",$paged);
}
?>
</div>
</div>
<div id="lecture_content"></div>
<div id="author_content"></div>
<?
$uri_parts = explode('?', $_SERVER['REQUEST_URI'], 2);
?>
<script>
var full_url = 'http://<?=$_SERVER['HTTP_HOST']; ?>'+'<?=$uri_parts[0];?>';