From 1889a7d24888b7158150640c70b912138d2ef655 Mon Sep 17 00:00:00 2001 From: Don Chambers Date: Sat, 13 Oct 2012 14:34:40 -0500 Subject: [PATCH] Update bulletproof with staticpage breadcrumb nav --- templates/bulletproof/plugin_staticpage.tpl | 5 ++++- templates/bulletproof/plugin_staticpage_aboutpage.tpl | 8 ++++++++ .../bulletproof/plugin_staticpage_related_category.tpl | 8 ++++++++ templates/bulletproof/style.css | 5 ++++- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/templates/bulletproof/plugin_staticpage.tpl b/templates/bulletproof/plugin_staticpage.tpl index b6a8887c..b3395a65 100644 --- a/templates/bulletproof/plugin_staticpage.tpl +++ b/templates/bulletproof/plugin_staticpage.tpl @@ -11,9 +11,12 @@
  • {$staticpage_navigation.top.name|@escape}
  • {$staticpage_navigation.next.name|@escape}
  • +{/if} +{if $staticpage_show_breadcrumb}
    + {$CONST.HOME|lower|capitalize:true} » {foreach name="crumbs" from=$staticpage_navigation.crumbs item="crumb"} - {if !$smarty.foreach.crumbs.first}»{/if}{$crumb.name|@escape} + {if !$smarty.foreach.crumbs.first}» {/if}{if !$smarty.foreach.crumbs.last}{$crumb.name|@escape}{else}{$crumb.name|@escape}{/if} {/foreach}
    {/if} diff --git a/templates/bulletproof/plugin_staticpage_aboutpage.tpl b/templates/bulletproof/plugin_staticpage_aboutpage.tpl index 63a50fe1..4a31dbdb 100644 --- a/templates/bulletproof/plugin_staticpage_aboutpage.tpl +++ b/templates/bulletproof/plugin_staticpage_aboutpage.tpl @@ -12,6 +12,14 @@
  • {$staticpage_navigation.next.name|@escape}
  • {/if} +{if $staticpage_show_breadcrumb} +
    + {$CONST.HOME|lower|capitalize:true} » + {foreach name="crumbs" from=$staticpage_navigation.crumbs item="crumb"} + {if !$smarty.foreach.crumbs.first}» {/if}{if !$smarty.foreach.crumbs.last}{$crumb.name|@escape}{else}{$crumb.name|@escape}{/if} + {/foreach} +
    +{/if} {if $staticpage_articleformat}
    diff --git a/templates/bulletproof/plugin_staticpage_related_category.tpl b/templates/bulletproof/plugin_staticpage_related_category.tpl index ef5b0de3..596d419a 100644 --- a/templates/bulletproof/plugin_staticpage_related_category.tpl +++ b/templates/bulletproof/plugin_staticpage_related_category.tpl @@ -12,6 +12,14 @@
  • {$staticpage_navigation.next.name|@escape}
  • {/if} +{if $staticpage_show_breadcrumb} +
    + {$CONST.HOME|lower|capitalize:true} » + {foreach name="crumbs" from=$staticpage_navigation.crumbs item="crumb"} + {if !$smarty.foreach.crumbs.first}» {/if}{if !$smarty.foreach.crumbs.last}{$crumb.name|@escape}{else}{$crumb.name|@escape}{/if} + {/foreach} +
    +{/if} {if $staticpage_articleformat}
    diff --git a/templates/bulletproof/style.css b/templates/bulletproof/style.css index e229f909..94f4ad06 100644 --- a/templates/bulletproof/style.css +++ b/templates/bulletproof/style.css @@ -270,7 +270,6 @@ a.day { /*** Staticpage styles ***/ ul.staticpage_navigation { margin-left: 0; - padding-left: 0; } .staticpage_results { @@ -278,6 +277,10 @@ ul.staticpage_navigation { padding: 0 10px; } +.staticpage_navigation_center { + margin: 1em 0; +} + /*** Contact form ***/ #serendipity_comment_CommentForm fieldset {