<?php
/*
Template Name: Widgetized
*/
if (is_front_page() && (get_option('smallbiz_mobile-layout-enabled') && $GLOBALS["smartphone"])){
    include("page.php");
} else {
	
	
ob_start();
?>

	<div class="entry" id="widgetized_entry" style="padding-left:0px;">

<div id="widgetize_before_content" style="width: 945px; margin: 0 auto"><?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Dropzone Full Width') ) {
} else {
?><span style="clear: both;"></span><?php
}
?></div><?php
$widgetized_before_content = ob_get_clean();

ob_start();
get_header();
echo str_replace('<!-- WIDGETIZED BEFORE CONTENT -->', $widgetized_before_content, ob_get_clean());
?>
<?php if (function_exists('dynamic_sidebar')) { !dynamic_sidebar('Dropzone Main Content'); } ?>
</div> <!--content closing-->
	
<div id="sidebar">
<div id="innersidebarwrap">
<ul>
		<?php 	/* Widgetized sidebar, if you have the plugin installed. */
				if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Dropzone Right Sidebar') ) : ?>
	
		<?php endif; ?>
</ul>	
	</div><!--innersidebarwrap-->
</div><!--sidebar-->

<div style="clear: both;"></div>
<div id="widgetize_below_content"><?php if(function_exists('dynamic_sidebar')) { dynamic_sidebar('Dropzone 4 Column'); }; ?></div>
<div style="clear: both;"></div>

</div> <!--entry closing-->
<?php get_footer(); ?>
<?php } ?>