<div id="wrapper">
    <div id="header">
        <h1><a href="<?php echo str_replace('admin.', '', $request->base()); ?>" target="_blank"></a></h1>
        <ul class="clear">
            <li><?php echo $request->execute('index/signed-widget'); ?></li>
            <li><a href="home">Home</a></li>
            <li><a href="theme">Theme</a></li>
            <li><a href="category/featured">Featured</a></li>
            <li><a href="category">Categories &amp; Products</a></li>
            <li><a href="section">Pages</a></li>
            <li><a href="partial">Partials</a></li>
            <li><a href="search">Searches</a></li>
            <li><a href="setting">Settings</a></li>
            <li><a href="update">Updates</a></li>
            <li class="extra">Version <?php echo htmlspecialchars($version); ?></li>
        </ul>
    </div>
    <div id="body">
        <!-- column hack -->
        <table id="column">
            <tr>
                <?php if (isset($menu)) : ?>
                <td class="menu">
                    <div id="menu">
                        <?php include $menu; ?>
                    </div>
                </td>
                <?php endif; ?>
                <td class="content">
                    <div id="content">
                        <?php echo $content; ?>
                    </div>
                </td>
                <td class="help">
                    <div id="help">
                        <?php if ($help) : ?>
                            <div class="title">
                                <a href="help/edit/<?php echo htmlspecialchars($help['id']); ?>">Edit help text</a>
                            </div>
                            <?php echo $help['content']; ?>
                        <?php else : ?>
                            <div class="title">
                                <a href="help/add/?template=<?php echo htmlspecialchars($file); ?>">Add help text</a>
                            </div>
                        <?php endif; ?>
                    </div>
                </td>
            </tr>
        </table>
        <!-- /column hack -->
    </div>
    <div id="footer">
        Admin by <a href="mailto:radiokinesis@gmail.com">Michael Murphy</a>.
    </div>
</div>
