From 580a0dd95b8095589fac82fe8b34c8a2e39cfe05 Mon Sep 17 00:00:00 2001 From: Don Chambers <don.chambers@optional-necessity.com> Date: Thu, 20 Sep 2007 02:22:57 +0000 Subject: [PATCH] BP: contain sidebar navigation within .serendipitySideBarContent. Templates created on bulletproof prior to now may require revisions to accomodate this change. --- templates/bulletproof/blue_style.css | 6 + templates/bulletproof/green_style.css | 6 + templates/bulletproof/index.tpl | 693 +++++++++++++------------ templates/bulletproof/info.txt | 2 +- templates/bulletproof/purple_style.css | 6 + 5 files changed, 375 insertions(+), 338 deletions(-) diff --git a/templates/bulletproof/blue_style.css b/templates/bulletproof/blue_style.css index 4e4bc3e0..9cb10a80 100644 --- a/templates/bulletproof/blue_style.css +++ b/templates/bulletproof/blue_style.css @@ -182,6 +182,12 @@ body { /* not used in this template */ } +#sbsitenav .serendipitySideBarContent { + padding: 0; + border: 0; + margin: 0; +} + #sbsitenav { padding: 10px; margin: 0; diff --git a/templates/bulletproof/green_style.css b/templates/bulletproof/green_style.css index cff0936f..6d3900e6 100644 --- a/templates/bulletproof/green_style.css +++ b/templates/bulletproof/green_style.css @@ -177,6 +177,12 @@ body { /* not used in this template */ } +#sbsitenav .serendipitySideBarContent { + padding: 0; + border: 0; + margin: 0; +} + #sbsitenav { padding: 10px; margin: 0; diff --git a/templates/bulletproof/index.tpl b/templates/bulletproof/index.tpl index 490f8819..ffcc1e73 100644 --- a/templates/bulletproof/index.tpl +++ b/templates/bulletproof/index.tpl @@ -1,365 +1,384 @@ {if $is_embedded != true} -{if $is_xhtml} -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + {if $is_xhtml} + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + {else} + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> + {/if} + + <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang}" lang="{$lang}"> + <head> + <title>{$head_title|@default:$blogTitle}{if $head_subtitle} - {$head_subtitle}{/if}</title> + <meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" /> + <meta name="Powered-By" content="Serendipity v.{$head_version}" /> + <link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2" /> + <link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml" /> + {if $entry_id}<link rel="pingback" href="{$serendipityBaseURL}comment.php?type=pingback&entry_id={$entry_id}" />{/if} + <!-- uncomment the line below if your site uses a favicon --> + <!-- <link rel="shortcut icon" href="{$serendipityBaseURL}favicon.ico" /> --> + <!-- base styles needed for bulletproof --> + <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="base.css"}" /> + <!-- style.css --> + <link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" /> + <!--[if IE 5]> + <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="ie5.css"}" /> + <![endif]--> + <!--[if IE 6]> + <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="ie6.css"}" /> + <![endif]--> + <!--[if IE 7]> + <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="ie7.css"}" /> + <![endif]--> + <!-- additional colorset stylesheet --> + <link rel="stylesheet" type="text/css" href="{$serendipityHTTPPath}templates/{$template}/{$template_option.colorset}_style.css" /> + {if $template_option.custheader == 'true'} + <style type="text/css"> + #serendipity_banner {ldelim} + background-image: url({$template_option.headerimage}); + background-position: {$template_option.headerposhor} {$template_option.headerposver}; + {if $template_option.headertype == 'banner'} + background-repeat: no-repeat; + {elseif $template_option.headertype == 'htiled'} + background-repeat: repeat-x; + {elseif $template_option.headertype == 'vtiled'} + background-repeat: repeat-y; + {elseif $template_option.headertype == 'btiled'} + background-repeat: repeat; + {/if}{rdelim} + </style> + {/if} + {if $template_option.jscolumns == 'true'}<script type="text/javascript" src="{$serendipityHTTPPath}templates/{$template}/js/p7_eqCols2_10.js"></script>{/if} + {serendipity_hookPlugin hook="frontend_header"} + </head> + + <body{if $template_option.jscolumns == 'true'} onload="P7_equalCols2(0,{if $template_option.layouttype != '1col'}'content','DIV',{/if}'serendipityLeftSideBar','DIV','serendipityRightSideBar','DIV')"{/if}> {else} -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/html4/loose.dtd"> + {serendipity_hookPlugin hook="frontend_header"} {/if} - -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang}" lang="{$lang}"> -<head> - <title>{$head_title|@default:$blogTitle}{if $head_subtitle} - {$head_subtitle}{/if}</title> - <meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" /> - <meta name="Powered-By" content="Serendipity v.{$head_version}" /> - <link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2" /> - <link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml" /> - {if $entry_id}<link rel="pingback" href="{$serendipityBaseURL}comment.php?type=pingback&entry_id={$entry_id}" />{/if} -<!-- uncomment the line below if your site uses a favicon --> - <!-- <link rel="shortcut icon" href="{$serendipityBaseURL}favicon.ico" /> --> - <!-- base styles needed for bulletproof --> - <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="base.css"}" /> - <!-- style.css --> - <link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" /> - <!--[if IE 5]> - <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="ie5.css"}" /> - <![endif]--> - <!--[if IE 6]> - <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="ie6.css"}" /> - <![endif]--> - <!--[if IE 7]> - <link rel="stylesheet" type="text/css" href="{serendipity_getFile file="ie7.css"}" /> - <![endif]--> - <!-- additional colorset stylesheet --> - <link rel="stylesheet" type="text/css" href="{$serendipityHTTPPath}templates/{$template}/{$template_option.colorset}_style.css" /> - {if $template_option.custheader == 'true'} -<style type="text/css"> -#serendipity_banner {ldelim} - background-image: url({$template_option.headerimage}); - background-position: {$template_option.headerposhor} {$template_option.headerposver}; -{if $template_option.headertype == 'banner'} - background-repeat: no-repeat; -{elseif $template_option.headertype == 'htiled'} - background-repeat: repeat-x; -{elseif $template_option.headertype == 'vtiled'} - background-repeat: repeat-y; -{elseif $template_option.headertype == 'btiled'} - background-repeat: repeat; -{/if} -{rdelim} -</style> - {/if} - {if $template_option.jscolumns == 'true'}<script type="text/javascript" src="{$serendipityHTTPPath}templates/{$template}/js/p7_eqCols2_10.js"></script>{/if} - {serendipity_hookPlugin hook="frontend_header"} -</head> - -<body{if $template_option.jscolumns == 'true'} onload="P7_equalCols2(0,{if $template_option.layouttype != '1col'}'content','DIV',{/if}'serendipityLeftSideBar','DIV','serendipityRightSideBar','DIV')"{/if}> -{else}{serendipity_hookPlugin hook="frontend_header"}{/if} {if $is_raw_mode != true} -<!-- #skiplinks: these are links used to navigate quickly in text-based browsers --> -<!-- they are of little use in modern graphical browsers, so the are --> -<!-- hidden using CSS --> -<div id="skiplinks"> - <ul> - <li><a href="skipnav">Skip to site navigation</a></li> - <li><a href="skipent">Skip to blog entries</a></li> - <li><a href="{$serendipityBaseURL}index.php?/archive">Skip to archive page</a></li> - <li><a href="skiplsb">Skip to left sidebar</a></li> - <li><a href="skiprsb">Skip to right sidebar</a></li> - </ul> -</div> + <!-- #skiplinks: these are links used to navigate quickly in text-based browsers --> + <!-- they are of little use in modern graphical browsers, so the are --> + <!-- hidden using CSS --> + <div id="skiplinks"> + <ul> + <li><a href="skipnav">Skip to site navigation</a></li> + <li><a href="skipent">Skip to blog entries</a></li> + <li><a href="{$serendipityBaseURL}index.php?/archive">Skip to archive page</a></li> + <li><a href="skiplsb">Skip to left sidebar</a></li> + <li><a href="skiprsb">Skip to right sidebar</a></li> + </ul> + </div> -<!-- #wrapper: this wrapper div holds the actual blog content; it can be used to --> -<!-- give the blog a width in px or % plus an additional max-width in --> -<!-- order to limit the width in high resolutions to limit the length --> -<!-- of a line --> -<div id="wrapper"> -<div id="wrapper_top"></div> + <!-- #wrapper: this wrapper div holds the actual blog content; it can be used to --> + <!-- give the blog a width in px or % plus an additional max-width in --> + <!-- order to limit the width in high resolutions to limit the length --> + <!-- of a line --> + <div id="wrapper"> + <div id="wrapper_top"></div> -{if $template_option.sitenavpos == 'above'} -<!-- #sitenav: this holds a list of navigational links which can be customized --> -<!-- in the theme configurator --> -<div id="sitenav" class="snabove"> - <a name="skipnav"></a> - <ul> - {foreach from=$navlinks item="navlink" name=navbar} - <li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.navbar.first} navlink_first{/if}{if $smarty.foreach.navbar.last} navlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li> - {/foreach} - </ul> -<!-- quicksearch option in the navigational link menu bar only when navbar is --> -<!-- above or below the banner --> - {if $template_option.sitenav_quicksearch == 'true'} - <form id="navbarsearchform" action="{$serendipityBaseURL}" method="get"><input type="hidden" name="serendipity[action]" value="search" /><input alt="{$CONST.QUICKSEARCH}" type="text" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" /></form> - {/if} -</div> -{/if} + {if $template_option.sitenavpos == 'above'} + <!-- #sitenav: this holds a list of navigational links which can be customized --> + <!-- in the theme configurator --> + <div id="sitenav" class="snabove"> + <a name="skipnav"></a> + <ul> + {foreach from=$navlinks item="navlink" name=navbar} + <li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.navbar.first} navlink_first{/if}{if $smarty.foreach.navbar.last} navlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li> + {/foreach} + </ul> + <!-- quicksearch option in the navigational link menu bar only when navbar is --> + <!-- above or below the banner --> + {if $template_option.sitenav_quicksearch == 'true'} + <form id="navbarsearchform" action="{$serendipityBaseURL}" method="get"><input type="hidden" name="serendipity[action]" value="search" /><input alt="{$CONST.QUICKSEARCH}" type="text" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" /></form> + {/if} + </div> + {/if} -<!-- #serendipity_banner: this is the header area. it holds the blog title and --> -<!-- description headlines --> -<div id="serendipity_banner"> - <h1><span class="{if $template_option.firbtitle == 'false'}in{/if}visible"><a class="homelink1" href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle|truncate:80:" ..."}</a></span></h1> - <h2><span class="{if $template_option.firbdescr == 'false'}in{/if}visible"><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></span></h2> -</div> -<div id="serendipity_below_banner"></div> + <!-- #serendipity_banner: this is the header area. it holds the blog title and --> + <!-- description headlines --> + <div id="serendipity_banner"> + <h1><span class="{if $template_option.firbtitle == 'false'}in{/if}visible"><a class="homelink1" href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle|truncate:80:" ..."}</a></span></h1> + <h2><span class="{if $template_option.firbdescr == 'false'}in{/if}visible"><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></span></h2> + </div> + <div id="serendipity_below_banner"></div> -{if $template_option.sitenavpos == 'below'} -<!-- #sitenav: this holds a list of navigational links which can be customized --> -<!-- in the theme configurator --> -<div id="sitenav" class="snbelow"> - <a name="skipnav"></a> - <ul> - {foreach from=$navlinks item="navlink" name="navbar"} - <li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.navbar.first} navlink_first{/if}{if $smarty.foreach.navbar.last} navlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li> - {/foreach} - </ul> -<!-- quicksearch option in the navigational link menu bar only when navbar is --> -<!-- above or below the banner --> - {if $template_option.sitenav_quicksearch == 'true'} - <form id="navbarsearchform" action="{$serendipityBaseURL}" method="get"><input type="hidden" name="serendipity[action]" value="search" /><input alt="{$CONST.QUICKSEARCH}" type="text" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" /></form> - {/if} -</div> -{/if} + {if $template_option.sitenavpos == 'below'} + <!-- #sitenav: this holds a list of navigational links which can be customized --> + <!-- in the theme configurator --> + <div id="sitenav" class="snbelow"> + <a name="skipnav"></a> + <ul> + {foreach from=$navlinks item="navlink" name="navbar"} + <li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.navbar.first} navlink_first{/if}{if $smarty.foreach.navbar.last} navlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li> + {/foreach} + </ul> + <!-- quicksearch option in the navigational link menu bar only when navbar is --> + <!-- above or below the banner --> + {if $template_option.sitenav_quicksearch == 'true'} + <form id="navbarsearchform" action="{$serendipityBaseURL}" method="get"><input type="hidden" name="serendipity[action]" value="search" /><input alt="{$CONST.QUICKSEARCH}" type="text" name="serendipity[searchTerm]" value="{$CONST.QUICKSEARCH}..." onfocus="if(this.value=='{$CONST.QUICKSEARCH}...')value=''" onblur="if(this.value=='')value='{$CONST.QUICKSEARCH}...';" /></form> + {/if} + </div> + {/if} -<!-- this is the actual content of the blog, entries column plus one or two --> -<!-- sidebars, depending on how users configure their sidebar plugins --> + <!-- this is the actual content of the blog, entries column plus one or two --> + <!-- sidebars, depending on how users configure their sidebar plugins --> -{if $template_option.layouttype == '3sbs'} -<!-- case 1: 3 columns, sidebar-content-sidebar --> -<div id="serendipityLeftSideBar" class="threeside layout3sbs_left"> - <a name="skiplsb"></a> -{if $template_option.sitenavpos == 'left'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="left"} -</div> -<div id="content" class="threemain layout3sbs_content"> - <a name="skipent"></a> - {$CONTENT} -</div> -<div id="serendipityRightSideBar" class="threeside layout3sbs_right"> - <a name="skiprsb"></a> -{if $template_option.sitenavpos == 'right'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="right"} -</div> -{/if} + {if $template_option.layouttype == '3sbs'} + <!-- case 1: 3 columns, sidebar-content-sidebar --> + <div id="serendipityLeftSideBar" class="threeside layout3sbs_left"> + <a name="skiplsb"></a> + {if $template_option.sitenavpos == 'left'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="left"} + </div> + <div id="content" class="threemain layout3sbs_content"> + <a name="skipent"></a> + {$CONTENT} + </div> + <div id="serendipityRightSideBar" class="threeside layout3sbs_right"> + <a name="skiprsb"></a> + {if $template_option.sitenavpos == 'right'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="right"} + </div> + {/if} -{if $template_option.layouttype == '3bss'} -<!-- case 2: 3 columns, content-sidebar-sidebar --> -<div id="content" class="threemain layout3bss_content"> - <a name="skipent"></a> - {$CONTENT} -</div> -<div id="serendipityLeftSideBar" class="threeside layout3bss_left"> - <a name="skiplsb"></a> -{if $template_option.sitenavpos == 'left'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="left"} -</div> -<div id="serendipityRightSideBar" class="threeside layout3bss_right"> - <a name="skiprsb"></a> -{if $template_option.sitenavpos == 'right'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="right"} -</div> -{/if} + {if $template_option.layouttype == '3bss'} + <!-- case 2: 3 columns, content-sidebar-sidebar --> + <div id="content" class="threemain layout3bss_content"> + <a name="skipent"></a> + {$CONTENT} + </div> + <div id="serendipityLeftSideBar" class="threeside layout3bss_left"> + <a name="skiplsb"></a> + {if $template_option.sitenavpos == 'left'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="left"} + </div> + <div id="serendipityRightSideBar" class="threeside layout3bss_right"> + <a name="skiprsb"></a> + {if $template_option.sitenavpos == 'right'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="right"} + </div> + {/if} -{if $template_option.layouttype == '3ssb'} -<!-- case 3: 3 columns, sidebar-sidebar-content --> -<div id="serendipityLeftSideBar" class="threeside layout3ssb_left"> - <a name="skiplsb"></a> -{if $template_option.sitenavpos == 'left'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="left"} -</div> -<div id="serendipityRightSideBar" class="threeside layout3ssb_right"> - <a name="skiprsb"></a> -{if $template_option.sitenavpos == 'right'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="right"} -</div> -<div id="content" class="threemain layout3ssb_content"> - <a name="skipent"></a> - {$CONTENT} -</div> -{/if} + {if $template_option.layouttype == '3ssb'} + <!-- case 3: 3 columns, sidebar-sidebar-content --> + <div id="serendipityLeftSideBar" class="threeside layout3ssb_left"> + <a name="skiplsb"></a> + {if $template_option.sitenavpos == 'left'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="left"} + </div> + <div id="serendipityRightSideBar" class="threeside layout3ssb_right"> + <a name="skiprsb"></a> + {if $template_option.sitenavpos == 'right'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="right"} + </div> + <div id="content" class="threemain layout3ssb_content"> + <a name="skipent"></a> + {$CONTENT} + </div> + {/if} -{if $template_option.layouttype == '2sb'} -<!-- case 4: 2 columns, left sidebar only --> -<div id="serendipityLeftSideBar" class="twoside layout2sb_left"> - <a name="skiplsb"></a> -{if $template_option.sitenavpos == 'left' or $template_option.sitenavpos == 'right'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="left"} - {serendipity_printSidebar side="right"} -</div> -<div id="content" class="twomain layout2sb_content"> - <a name="skipent"></a> - {$CONTENT} -</div> -{/if} + {if $template_option.layouttype == '2sb'} + <!-- case 4: 2 columns, left sidebar only --> + <div id="serendipityLeftSideBar" class="twoside layout2sb_left"> + <a name="skiplsb"></a> + {if $template_option.sitenavpos == 'left' or $template_option.sitenavpos == 'right'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="left"} + {serendipity_printSidebar side="right"} + </div> + <div id="content" class="twomain layout2sb_content"> + <a name="skipent"></a> + {$CONTENT} + </div> + {/if} -{if $template_option.layouttype == '2bs'} -<!-- case 5: 2 columns, right sidebar only --> -<div id="content" class="twomain layout2bs_content"> - <a name="skipent"></a> - {$CONTENT} -</div> -<div id="serendipityRightSideBar" class="twoside layout2bs_right"> - <a name="skiprsb"></a> -{if $template_option.sitenavpos == 'left' or $template_option.sitenavpos == 'right'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="left"} - {serendipity_printSidebar side="right"} -</div> -{/if} + {if $template_option.layouttype == '2bs'} + <!-- case 5: 2 columns, right sidebar only --> + <div id="content" class="twomain layout2bs_content"> + <a name="skipent"></a> + {$CONTENT} + </div> + <div id="serendipityRightSideBar" class="twoside layout2bs_right"> + <a name="skiprsb"></a> + {if $template_option.sitenavpos == 'left' or $template_option.sitenavpos == 'right'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="left"} + {serendipity_printSidebar side="right"} + </div> + {/if} -{if $template_option.layouttype == '1col'} -<!-- case 6: 1 column, sidebar(s) below --> -<div id="content" class="onemain layout1col_content"> - <a name="skipent"></a> - {$CONTENT} -</div> + {if $template_option.layouttype == '1col'} + <!-- case 6: 1 column, sidebar(s) below --> + <div id="content" class="onemain layout1col_content"> + <a name="skipent"></a> + {$CONTENT} + </div> -{if $leftSidebarElements > 0} -<div id="serendipityLeftSideBar" class="{if $rightSidebarElements > 0}oneside layout1col_left_side{else}onefull layout_1col_left_full{/if}"> - <a name="skiplsb"></a> -{if $template_option.sitenavpos == 'left'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="left"} -</div> -{/if} + {if $leftSidebarElements > 0} + <div id="serendipityLeftSideBar" class="{if $rightSidebarElements > 0}oneside layout1col_left_side{else}onefull layout_1col_left_full{/if}"> + <a name="skiplsb"></a> + {if $template_option.sitenavpos == 'left'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="left"} + </div> + {/if} -{if $rightSidebarElements > 0} -<div id="serendipityRightSideBar" class="{if $leftSidebarElements > 0}oneside layout1col_right_side{else}onefull layout1col_right_full{/if}"> - <a name="skiprsb"></a> -{if $template_option.sitenavpos == 'right'} -<!-- #sbsitenav: like #sitenav, but placed within the sidebar --> - <div id="sbsitenav" class="serendipitySideBarItem"> - <a name="skipnav"></a> - <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> - <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> - <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> - <div class="serendipitySideBarFooter"></div> - </div> -{/if} - {serendipity_printSidebar side="right"} -</div> -{/if} -{/if} + {if $rightSidebarElements > 0} + <div id="serendipityRightSideBar" class="{if $leftSidebarElements > 0}oneside layout1col_right_side{else}onefull layout1col_right_full{/if}"> + <a name="skiprsb"></a> + {if $template_option.sitenavpos == 'right'} + <!-- #sbsitenav: like #sitenav, but placed within the sidebar --> + <div id="sbsitenav" class="serendipitySideBarItem"> + <a name="skipnav"></a> + <h3 class="serendipitySideBarTitle">{$template_option.sitenav_sidebar_title}</h3> + <div class="serendipitySideBarContent"> + <!-- the line below must remain as a single uninterrupted line to display correctly in ie6 --> + <ul>{foreach from=$navlinks item="navlink" name="sbnav"}<li class="{if $currpage==$navlink.href}currentpage{/if}{if $smarty.foreach.sbnav.first} sbnavlink_first{/if}{if $smarty.foreach.sbnav.last} sbnavlink_last{/if}"><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li>{/foreach}</ul> + </div> + <div class="serendipitySideBarFooter"></div> + </div> + {/if} + {serendipity_printSidebar side="right"} + </div> + {/if} + {/if} -<!-- #footer: the page footer can be used for additional information --> -<div id="footer"> -{if $template_option.footer_text_toggle == 'true'} - <p>{$template_option.footer_text}</p> -{/if} + <!-- #footer: the page footer can be used for additional information --> + <div id="footer"> + {if $template_option.footer_text_toggle == 'true'} + <p>{$template_option.footer_text}</p> + {/if} -<!-- ************************************************************** --> -<!-- the image and link below must remain if you use this template --> -<!-- or create your own template based on the bulletproof framework --> -<!-- ************************************************************** --> + <!-- ************************************************************** --> + <!-- The image and link below must remain if you use this template --> + <!-- or create your own template based on the bulletproof framework --> + <!-- ************************************************************** --> - <div id="serendipity_bulletproof_button"><a href="http://s9y-bulletproof.com" title="Based on the s9y Bulletproof template framework"><img src="{$serendipityHTTPPath}templates/{$template}/img/bulletproof_button.png" alt="Based on the s9y Bulletproof template framework" width="100" height="28" /></a></div> + <div id="serendipity_bulletproof_button"><a href="http://s9y-bulletproof.com" title="Based on the s9y Bulletproof template framework"><img src="{$serendipityHTTPPath}templates/{$template}/img/bulletproof_button.png" alt="Based on the s9y Bulletproof template framework" width="100" height="28" /></a></div> -<!-- ************************************************************** --> -<!-- feel free to insert your own "Template by" name and link below --> -<!-- if you create a custom template based on bulletproof. --> -<!-- ************************************************************** --> + <!-- ************************************************************** --> + <!-- Feel free to insert your own "Template by" name and link below --> + <!-- if you create a custom template based on bulletproof. --> + <!-- ************************************************************** --> - <div id="serendipity_credit_line">{$CONST.POWERED_BY} <a href="http://www.s9y.org">s9y</a> – Template by <a href="http://s9y-bulletproof.com">Bulletproof development team</a>.</div> -{if $template_option.counter_code_toggle == 'true'} - <div class="counter_code">{$template_option.counter_code}</div> -{/if} -<!-- option to display navigation links in the footer --> -{if ($template_option.sitenavpos != 'none' and $template_option.sitenav_footer == 'true')} - <div id="footer_sitenav"> - <ul> -{foreach from=$navlinks item="navlink" name=navbar} - <li{if $currpage == $navlink.href} class="currentpage"{/if}><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li> -{/foreach} - </ul> - </div> -{/if} -</div> -<div id="wrapper_footer"></div> -</div> + <div id="serendipity_credit_line">{$CONST.POWERED_BY} <a href="http://www.s9y.org">s9y</a> – Template by <a href="http://s9y-bulletproof.com">Bulletproof development team</a>.</div> + {if $template_option.counter_code_toggle == 'true'} + <div class="counter_code">{$template_option.counter_code}</div> + {/if} + <!-- option to display navigation links in the footer --> + {if ($template_option.sitenavpos != 'none' and $template_option.sitenav_footer == 'true')} + <div id="footer_sitenav"> + <ul> + {foreach from=$navlinks item="navlink" name=navbar} + <li{if $currpage == $navlink.href} class="currentpage"{/if}><a href="{$navlink.href}" title="{$navlink.title}">{$navlink.title}</a></li> + {/foreach} + </ul> + </div> + {/if} + </div> + <div id="wrapper_footer"></div> + </div> {/if} {$raw_data} {serendipity_hookPlugin hook="frontend_footer"} {if $is_embedded != true} -</body> -</html> -{/if} + </body> + </html> +{/if} \ No newline at end of file diff --git a/templates/bulletproof/info.txt b/templates/bulletproof/info.txt index afdcd096..5099f35e 100644 --- a/templates/bulletproof/info.txt +++ b/templates/bulletproof/info.txt @@ -1,4 +1,4 @@ -Name: Bulletproof v1.0 (s9y-bulletproof.com) +Name: Bulletproof v1.1 (s9y-bulletproof.com) Author: Bulletproof development team Date: 2007-09-20 Require Serendipity: 1.2 diff --git a/templates/bulletproof/purple_style.css b/templates/bulletproof/purple_style.css index f200f9e1..2ba2b9a1 100644 --- a/templates/bulletproof/purple_style.css +++ b/templates/bulletproof/purple_style.css @@ -182,6 +182,12 @@ body { /* not used in this template */ } +#sbsitenav .serendipitySideBarContent { + padding: 0; + border: 0; + margin: 0; +} + #sbsitenav { padding: 10px; margin: 0;