<?php if ($edit_mode) : ?>
<div class="dashboard__item dashboard__item--<?=$width?> widget <?=$class?>">
    <div class="widget__title-bar">
        <i class="widget-icon--reorder"></i>
        <h2 class="widget__title"><?=$title?></h2>
        <i class="widget-icon--<?=($enabled ? 'on' : 'off')?>">
            <input type="hidden" name="widgets_enabled[<?=$widget_id?>]" value="<?=($enabled ? 'y' : 'n')?>" />
        </i>
    </div>
<?php endif; ?>
    <?=$widget?>
<?php if ($edit_mode) : ?>
</div>
<?php endif; ?>
