From e3186662118d1217c8b5d3b6a8736e2c90c140eb Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Fri, 28 Aug 2009 02:24:22 -0700 Subject: [PATCH] pagination.php created to handle the multiple uses of the function. Signed-off-by: Philip M. Hofer (Frumph) --- archive.php | 15 ++------------- author.php | 14 ++------------ blog.php | 19 +++---------------- functions.php | 1 + functions/pagination.php | 17 +++++++++++++++++ index.php | 25 ++++++------------------- search-transcript.php | 17 +++-------------- search.php | 14 +------------- 8 files changed, 35 insertions(+), 87 deletions(-) create mode 100644 functions/pagination.php diff --git a/archive.php b/archive.php index d362268..653b417 100644 --- a/archive.php +++ b/archive.php @@ -137,19 +137,8 @@ - -
- -
-
- - - -
+ + diff --git a/author.php b/author.php index 6b904d8..cd4d5a2 100644 --- a/author.php +++ b/author.php @@ -68,18 +68,8 @@ - -
- -
-
- - - + + diff --git a/blog.php b/blog.php index c82d867..6c668ed 100644 --- a/blog.php +++ b/blog.php @@ -36,22 +36,9 @@ Template Name: Blog display_blog_post(); - endwhile; ?> - - - -
- -
-
- - - -
+ endwhile; + + comicpress_pagination(); ?> diff --git a/functions.php b/functions.php index 5cf3e14..e552212 100644 --- a/functions.php +++ b/functions.php @@ -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'); diff --git a/functions/pagination.php b/functions/pagination.php new file mode 100644 index 0000000..9ecb4ca --- /dev/null +++ b/functions/pagination.php @@ -0,0 +1,17 @@ + +
+ +
+
+ + + diff --git a/index.php b/index.php index 70c7da9..1816f1a 100644 --- a/index.php +++ b/index.php @@ -85,26 +85,13 @@ if ($disable_blog_frontpage == 'no') { display_blog_post(); - endwhile; ?> - - - -
- -
-
- - - -
- - - + endwhile; + + comicpress_pagination(); + } +} ?> + diff --git a/search-transcript.php b/search-transcript.php index 27f8dd4..2df07a1 100644 --- a/search-transcript.php +++ b/search-transcript.php @@ -121,20 +121,9 @@ $count = $tmp_search->post_count; - -
- -
-
- - - -
- + + + diff --git a/search.php b/search.php index db426d2..f773df1 100644 --- a/search.php +++ b/search.php @@ -120,19 +120,7 @@ $count = $tmp_search->post_count; - -
- -
-
- - - -
+