<?php
if (isset($params['for-module'])) {
    $params['parent-module'] = $params['for-module'];
}
if (!isset($params['parent-module'])) {
    return;

}


$v_mod = $params['parent-module'];

$module = mw()->modules->get('one=1&ui=any&module=' . $v_mod);
?>

<div class="section-header">
    <?php if (is_admin()): ?>

        <?php if (isset($module['icon'])): ?><img src="<?php print $module['icon'] ?>" alt="" class="pull-left m-r-10 mw-modules-icon-header-admin" /><?php endif; ?>
        <span class="module-toolbar-info-description"><?php if (isset($module['name'])) {print $module['name'];}; ?></span>
        <a title="<?php _e("Back"); ?>"<?php if (isset($params['history_back'])) { ?> onClick="history.go(-1)"<?php } else { ?> href="<?php print admin_url(); ?>view:modules"<?php } ?> class="mw-ui-btn mw-ui-btn-info mw-ui-btn-medium m-l-10 btn-back">
            <i class="mw-icon-arrowleft"></i> &nbsp;
            <span><?php _e("Back"); ?></span>
        </a>

        <?php $active = mw()->url_manager->param('view'); ?>
    <?php endif; ?>
</div>
