From 6a742bf8d5e8a7efb55c8ac5ecc79bd69724b0a9 Mon Sep 17 00:00:00 2001 From: Don Chambers <don.chambers@optional-necessity.com> Date: Tue, 30 Sep 2008 16:02:32 +0000 Subject: [PATCH] BP: Page footer previous/next links - add option "none" so links can be suppressed. --- templates/bulletproof/config.inc.php | 3 ++- templates/bulletproof/entries.tpl | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/bulletproof/config.inc.php b/templates/bulletproof/config.inc.php index c7dad33f..e8c56495 100644 --- a/templates/bulletproof/config.inc.php +++ b/templates/bulletproof/config.inc.php @@ -205,7 +205,8 @@ $template_config = array( 'default' => 'text', 'select_values' => array('text' => PREV_NEXT_TEXT, 'texticon' => PREV_NEXT_TEXT_ICON, - 'icon' => PREV_NEXT_ICON) + 'icon' => PREV_NEXT_ICON, + 'none' => NONE) ), array( 'var' => 'show_pagination', diff --git a/templates/bulletproof/entries.tpl b/templates/bulletproof/entries.tpl index f1ce4c07..0baad22b 100644 --- a/templates/bulletproof/entries.tpl +++ b/templates/bulletproof/entries.tpl @@ -389,7 +389,7 @@ {else} <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_back.png" /></a> {/if} - {else} + {elseif $template_option.prev_next_style == 'text'} <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}">« {$CONST.PREVIOUS_PAGE}</a>   {/if} {/if} @@ -411,7 +411,7 @@ {else} <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}"><img alt="{$CONST.NEXT_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_forward.png" /></a> {/if} - {else} + {elseif $template_option.prev_next_style == 'text'} <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE} »</a> {/if} {/if}