pagination.php created to handle the multiple uses of the function.
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
ada5a72e44
commit
e318666211
15
archive.php
15
archive.php
|
@ -137,19 +137,8 @@
|
|||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="clear"></div>
|
||||
<?php comicpress_pagination(); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
14
author.php
14
author.php
|
@ -68,18 +68,8 @@
|
|||
</table>
|
||||
</ol>
|
||||
|
||||
<?php if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php comicpress_pagination(); ?>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
19
blog.php
19
blog.php
|
@ -36,22 +36,9 @@ Template Name: Blog
|
|||
|
||||
display_blog_post();
|
||||
|
||||
endwhile; ?>
|
||||
|
||||
|
||||
<?php if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="clear"></div>
|
||||
endwhile;
|
||||
|
||||
comicpress_pagination(); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php get_sidebar('underblog'); ?>
|
||||
|
|
|
@ -129,6 +129,7 @@ require_once(get_template_directory() . '/widgets/comicblogpost.php');
|
|||
require_once(get_template_directory() . '/functions/displaycomic.php');
|
||||
require_once(get_template_directory() . '/functions/displaycomicpost.php');
|
||||
require_once(get_template_directory() . '/functions/displayblogpost.php');
|
||||
require_once(get_template_directory() . '/functions/pagination.php');
|
||||
require_once(get_template_directory() . '/functions/adminnotes.php');
|
||||
require_once(get_template_directory() . '/functions/checkbrowser.php');
|
||||
require_once(get_template_directory() . '/functions/searchcustomfields.php');
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
function comicpress_pagination() {
|
||||
global $post, $wp_query;
|
||||
if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
25
index.php
25
index.php
|
@ -85,26 +85,13 @@ if ($disable_blog_frontpage == 'no') {
|
|||
|
||||
display_blog_post();
|
||||
|
||||
endwhile; ?>
|
||||
|
||||
|
||||
<?php if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php } } ?>
|
||||
<?php get_sidebar('underblog'); ?>
|
||||
endwhile;
|
||||
|
||||
comicpress_pagination();
|
||||
}
|
||||
} ?>
|
||||
|
||||
<?php get_sidebar('underblog'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -121,20 +121,9 @@ $count = $tmp_search->post_count;
|
|||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php comicpress_pagination(); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
14
search.php
14
search.php
|
@ -120,19 +120,7 @@ $count = $tmp_search->post_count;
|
|||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="clear"></div>
|
||||
<?php comicpress_pagination(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue