<?php

/**
 * @package     Joomla.Site
 * @subpackage  mod_custom
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Uri\Uri;

$modId = 'mod-custom-' . $module->id;

?>

<div id="<?php echo $modId; ?>" class="mod-banner-free">
	<div class="mod-banner-free-inner custom">
		<?php
			if ($params->get('backgroundimage')) {
				echo '<img src="' . Uri::root(true) . '/' . HTMLHelper::_('cleanImageURL', $params->get('backgroundimage'))->url . '" />';
			}
		?>
		<div class="body-banner-free">
			<?php echo $module->content; ?>
		</div>
	</div>
</div>
