From 98d1eefdaefc609c7ef36d0f918d76f3f11a680b Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Thu, 16 Apr 2009 14:15:25 +0000 Subject: [PATCH] BP: Added additional currpage2 variable to distinguish between absolute and full URL in navbar menu. --- templates/bulletproof/config.inc.php | 1 + templates/bulletproof/index.tpl | 32 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/templates/bulletproof/config.inc.php b/templates/bulletproof/config.inc.php index f60c035a..6561a84b 100644 --- a/templates/bulletproof/config.inc.php +++ b/templates/bulletproof/config.inc.php @@ -12,6 +12,7 @@ if (file_exists($probelang)) { include dirname(__FILE__) . '/lang_en.inc.php'; $serendipity['smarty']->assign(array('currpage'=> "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])); +$serendipity['smarty']->assign(array('currpage2'=> $_SERVER['REQUEST_URI'])); function serendipity_plugin_api_event_hook($event, &$bag, &$eventData, $addData = null) { global $serendipity; diff --git a/templates/bulletproof/index.tpl b/templates/bulletproof/index.tpl index c10ed214..4f2ea6f4 100644 --- a/templates/bulletproof/index.tpl +++ b/templates/bulletproof/index.tpl @@ -87,7 +87,7 @@ @@ -183,7 +183,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -197,7 +197,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -215,7 +215,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -229,7 +229,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -250,7 +250,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -275,7 +275,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -298,7 +298,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -317,7 +317,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -334,7 +334,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -355,7 +355,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -369,7 +369,7 @@

{$template_option.sitenav_sidebar_title}

- +
@@ -406,7 +406,7 @@