{if $is_embedded != true} {if $is_xhtml} {else} {/if} {$head_title|@default:$blogTitle}{if $head_subtitle} - {$head_subtitle}{/if} {serendipity_hookPlugin hook="frontend_header"} {if $entry_id}{/if} {if $template_option.custheader == 'true'} {/if} {if $template_option.jscolumns == 'true'}{/if} {if $template_option.userstylesheet == 'true'}{/if} {else} {serendipity_hookPlugin hook="frontend_header"} {/if} {if $is_raw_mode != true}
{if $template_option.sitenavpos == 'above'} {/if}
{if $template_option.sitenavpos == 'below'} {/if} {if $template_option.layouttype == '3sbs'}
{if $template_option.sitenavpos == 'left'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if}
{$CONTENT}
{if $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{/if} {if $template_option.layouttype == '3bss'}
{$CONTENT}
{if $template_option.sitenavpos == 'left'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if}
{if $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{/if} {if $template_option.layouttype == '3ssb'}
{if $template_option.sitenavpos == 'left'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if}
{if $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{$CONTENT}
{/if} {if $template_option.layouttype == '2sb'}
{if $template_option.sitenavpos == 'left' or $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{$CONTENT}
{/if} {if $template_option.layouttype == '2bs'}
{$CONTENT}
{if $template_option.sitenavpos == 'left' or $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{/if} {if $template_option.layouttype == '1col'}
{$CONTENT}
{if $template_option.sitenavpos == 'left' || $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{/if} {if $template_option.layouttype == '2sbf'}
{if $template_option.sitenavpos == 'left'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if}
{$CONTENT}
{if $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{/if} {if $template_option.layouttype == '2bsf'}
{$CONTENT}
{if $template_option.sitenavpos == 'right'}

{$template_option.sitenav_sidebar_title}

{/if} {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
{if $template_option.sitenavpos == 'left'}

{$template_option.sitenav_sidebar_title}

{/if} {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if}
{/if}
{/if} {$raw_data} {serendipity_hookPlugin hook="frontend_footer"} {if $is_embedded != true} {/if}