I'm trying to widgetize a sidebar
The example code is:
Using this method, it works!PHP Code:<?php if (function_exists('dynamic_sidebar) || !dynamic_sidebar()) : ?>
<li>Stuff shown here if widgets are not active</li>
<?php endif; ?>
I wanted to get a little creative and try something like this
I keep geting Parse error!PHP Code:<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) { ?>
<li>Stuff shown here if widgets are not active</li>
<?php } endif; ?>
What is wrong with my second example?








Bookmarks