<script>
    mw.lib.require('bootstrap3ns');
</script>
<script>mw.lib.require('material_icons');</script>
<script>mw.moduleCSS("<?php print modules_url(); ?>layouts/styles.css"); </script>

<div class="bootstrap3ns">
    <?php
    $classes = mw_get_layout_css_classes($params);

    $template = get_option('data-template', $params['id']);
    if ($template == false and isset($params['template'])) {
        $template = $params['template'];
    }

    $layout_height_auto = false;

    $template_file = false;
    if ($template != false and strtolower($template) != 'none') {
        $template_file = module_templates($config['module'], $template);
    }
    if ($template_file == false) {
        $template_file = module_templates($config['module'], 'default');
    }
    if ($template_file != false and is_file($template_file)) {
        include($template_file);
    }
    ?>
</div>
