From cf12fe3fa684e45f49280309352c6a35b59c7536 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Tue, 22 Jul 2008 07:00:48 +0000 Subject: [PATCH] BP: Added new theme option to include optional pagination. Thanks again to Jude for helping me with the code :-) --- templates/bulletproof/UTF-8/lang_de.inc.php | 1 + templates/bulletproof/UTF-8/lang_en.inc.php | 1 + templates/bulletproof/config.inc.php | 6 ++++++ templates/bulletproof/entries.tpl | 22 +++++++++++++++++++++ templates/bulletproof/lang_de.inc.php | 1 + templates/bulletproof/lang_en.inc.php | 1 + templates/bulletproof/style.css | 3 +++ 7 files changed, 35 insertions(+) diff --git a/templates/bulletproof/UTF-8/lang_de.inc.php b/templates/bulletproof/UTF-8/lang_de.inc.php index a3378ab7..83e95e64 100644 --- a/templates/bulletproof/UTF-8/lang_de.inc.php +++ b/templates/bulletproof/UTF-8/lang_de.inc.php @@ -51,6 +51,7 @@ @define('PREV_NEXT_TEXT','Nur Text'); @define('PREV_NEXT_TEXT_ICON','Text und Icon'); @define('PREV_NEXT_ICON','Nur Icon'); +@define('SHOW_PAGINATION','Zusätzliche Seitennummerierung (Pagination) anzeigen'); // coComment support @define('COCOMMENT_ACTIVE','coComment (http://www.cocomment.com) in Kommentarformulare einbinden'); // Counter code diff --git a/templates/bulletproof/UTF-8/lang_en.inc.php b/templates/bulletproof/UTF-8/lang_en.inc.php index 6aa2157c..13251f91 100644 --- a/templates/bulletproof/UTF-8/lang_en.inc.php +++ b/templates/bulletproof/UTF-8/lang_en.inc.php @@ -51,6 +51,7 @@ @define('PREV_NEXT_TEXT','Text only'); @define('PREV_NEXT_TEXT_ICON','Text and icon'); @define('PREV_NEXT_ICON','Icon only'); +@define('SHOW_PAGINATION','Show additional page numbers (pagination)'); // coComment support @define('COCOMMENT_ACTIVE','Integrate coComment (http://www.cocomment.com) into comment form'); // Counter code diff --git a/templates/bulletproof/config.inc.php b/templates/bulletproof/config.inc.php index 0c369fb6..f452d2b3 100644 --- a/templates/bulletproof/config.inc.php +++ b/templates/bulletproof/config.inc.php @@ -207,6 +207,12 @@ $template_config = array( 'texticon' => PREV_NEXT_TEXT_ICON, 'icon' => PREV_NEXT_ICON) ), + array( + 'var' => 'show_pagination', + 'name' => SHOW_PAGINATION, + 'type' => 'boolean', + 'default' => 'false', + ), array( 'var' => 'counter_code', 'name' => COUNTER_CODE, diff --git a/templates/bulletproof/entries.tpl b/templates/bulletproof/entries.tpl index 8cca46df..82c50b60 100644 --- a/templates/bulletproof/entries.tpl +++ b/templates/bulletproof/entries.tpl @@ -415,6 +415,28 @@ {/if} {/if} + {if $template_option.show_pagination == 'true'} + + {/if} + {serendipity_hookPlugin hook="entries_footer"} diff --git a/templates/bulletproof/lang_de.inc.php b/templates/bulletproof/lang_de.inc.php index d77be3a1..1cc400e3 100644 --- a/templates/bulletproof/lang_de.inc.php +++ b/templates/bulletproof/lang_de.inc.php @@ -51,6 +51,7 @@ @define('PREV_NEXT_TEXT','Nur Text'); @define('PREV_NEXT_TEXT_ICON','Text und Icon'); @define('PREV_NEXT_ICON','Nur Icon'); +@define('SHOW_PAGINATION','Zusätzliche Seitennummerierung (Pagination) anzeigen'); // coComment support @define('COCOMMENT_ACTIVE','coComment (http://www.cocomment.com) in Kommentarformulare einbinden'); // Counter code diff --git a/templates/bulletproof/lang_en.inc.php b/templates/bulletproof/lang_en.inc.php index b692c840..31f39b10 100644 --- a/templates/bulletproof/lang_en.inc.php +++ b/templates/bulletproof/lang_en.inc.php @@ -51,6 +51,7 @@ @define('PREV_NEXT_TEXT','Text only'); @define('PREV_NEXT_TEXT_ICON','Text and icon'); @define('PREV_NEXT_ICON','Icon only'); +@define('SHOW_PAGINATION','Show additional page numbers (pagination)'); // coComment support @define('COCOMMENT_ACTIVE','Integrate coComment (http://www.cocomment.com) into comment form'); // Counter code diff --git a/templates/bulletproof/style.css b/templates/bulletproof/style.css index 8a1f2bba..fad9724d 100644 --- a/templates/bulletproof/style.css +++ b/templates/bulletproof/style.css @@ -60,6 +60,9 @@ abbr, acronym, .help{ background: #ddd; } +/* optional pagination in the footer */ +.pagination { padding: 0.5em 0; } + /* optional nav links in the footer */ #footer_sitenav { clear: both;