Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
7c68fdb172
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (13 sloc) 437 Bytes
<?php
?>
<?php if ( is_active_sidebar( 'sidebar-'. get_post_meta($post->ID, 'sidebar', true) ) ) : ?>
<div id="blog-sidebar" role="complementary">
<ul id="sidebar-widgets">
<?php dynamic_sidebar( 'sidebar-'. get_post_meta($post->ID, 'sidebar', true) ); ?>
</ul>
</div>
<!-- #secondary -->
<?php
// PHP request : If active sidebar doesn't have any widgets, load some by default. (I've seen this elsewhere)
?>
<?php endif; ?>