<div id="main">
            <h1><?php 
    echo TemplateHelpers::escapeHtml($template->translate($heading));
    ?>
</h1>
                <?php 
}
if (!$_cb->extends) {
    call_user_func(reset($_cb->blocks['sidebar']), $_cb, $template->getParams());
}
if (SnippetHelper::$outputAllowed) {
    ?>
            
            <?php 
}
LatteMacros::callBlock($_cb, 'content', $template->getParams());
if (SnippetHelper::$outputAllowed) {
    ?>
        </div>
    </div>
<?php 
}
if ($_cb->foo = SnippetHelper::create($control, "flash")) {
    $_cb->snippets[] = $_cb->foo;
    ?>
                <?php 
}
foreach ($iterator = $_cb->its[] = new SmartCachingIterator($flashes) as $flash) {
    if (SnippetHelper::$outputAllowed) {
        ?>
                    <div class="flash <?php