Code: Select all
array(
'var' => 'sidebars',
'name' => 'Sidebars',
'type' => 'hidden',
'value' => 'custom,left,right,hide',
),
Code: Select all
{if $CustomSidebarElements >0}
<div id="serendipityCustomSideBar">
{serendipity_printSidebar side="custom"}
</div>
{/if}
However, in my latest theme (not yet released), I cannot get a smarty value for $CustomSidebarElements... I looked quickly for newer themes with custom sidebars, and found "bartleby". That theme's config for sidebars looks like this:
Code: Select all
$template_config['sidebars'] = array('hide,bottom');
$serendipity['sidebars'] = array('hide', 'bottom');
Code: Select all
<footer id="sidebar_bottom" class="clearfix">
{serendipity_printSidebar side="bottom"}
</footer>
What am I missing here?