public function renderWidget($widget)
    {
        $configure = false;
        if (is_callable($widget["settings_cb"])) {
            if (isset($_GET["configure"]) && $_GET["configure"] == $widget["id"]) {
                $configure = true;
            }
        }
        $settings = DashboardWidgets::getWidgetSettings($widget["id"]);
        ?>
				<div class="wolf-widget wolf-widget-<?php 
        echo $widget["id"];
        ?>
" data-widget="<?php 
        echo $widget["id"];
        ?>
">
					<header class="wolf-widget-header"><h1><?php 
        echo $widget["title"];
        ?>
</h1></header>
					<article class="wolf-widget-article" <?php 
        if ($configure) {
            echo 'style="display:none;"';
        }
        ?>
>
						<?php 
        echo call_user_func($widget["callback"], $settings);
        ?>
					</article>
					<?php 
        if (is_callable($widget["settings_cb"])) {
            ?>
					<article class="wolf-widget-article wolf-widget-article-settings" <?php 
            if (!$configure) {
                echo 'style="display:none;"';
            }
            ?>
>
						<?php 
            echo call_user_func($widget["settings_cb"], $settings, true);
            ?>
					</article>
					<?php 
        }
        ?>
					<?php 
        if (is_callable($widget["settings_cb"])) {
            ?>
					<footer class="wolf-widget-footer">
						<?php 
            if ($configure) {
                ?>
							<a href="#configure" class="wolf-widget-configure" data-text="<?php 
                echo __("Configure this Widget");
                ?>
"><?php 
                echo __("Show Widget");
                ?>
</a>
						<?php 
            } else {
                ?>
							<a href="#configure" class="wolf-widget-configure" data-text="<?php 
                echo __("Show Widget");
                ?>
"><?php 
                echo __("Configure this Widget");
                ?>
</a>
						<?php 
            }
            ?>
					</footer>
					<?php 
        }
        ?>
				</div>
			<?php 
    }