/**
     * Render the main admin page 'Export'
     *
     * @since 0.1
     * @return void
     */
    static function render()
    {
        $module_types = BRJ_ThemeElements::$worker_module_types;
        $module_groups = BRJ_ThemeElements::get_modules();
        ?>
        <div class="wrap brj-theme-elements-wrap">

        	<h1><?php 
        _e('Workspaces', 'brj-workspaces');
        ?>
</h1>

            <div class="editor-tabs">
                <div class="editor-tab php-tab active" data-trigger-tab="php">PHP</div>
                <div class="editor-tab css-tab" data-trigger-tab="css">CSS</div>
            </div>

            <div class="page-content">

                <div class="module-list box">
                <?php 
        if (!empty($module_groups)) {
            foreach ($module_groups as $type => $modules) {
                $module_type = $module_types[$type];
                $type_label = $module_type['label_plural'];
                $accent_color = $module_type['accent_color'];
                if ($accent_color) {
                    $style = "style='border-left-color: #{$accent_color}; '";
                }
                print "<div class='module-type' {$style}>{$type_label}</div>";
                foreach ($modules as $module_id => $module) {
                    $label_field = $module_type['label_field'];
                    $label = '';
                    if ($label_field && $module->settings->{$label_field}) {
                        $label = $module->settings->{$label_field};
                    }
                    print "<div class='module-name'>{$label}</div>";
                }
            }
        }
        ?>
                </div>

                <div class="generator-wrap">
                    <div id="php-editor" class="generated-php editor"><?php 
        BRJ_ThemeElementsGenerator::render_php();
        ?>
</div>

                    <div id="css-editor" class="generated-css editor"><?php 
        BRJ_ThemeElementsGenerator::render_css();
        ?>
</div>
                </div>
            </div><!-- /.page-content -->
        </div>
        <?php 
    }