<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_random_image
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// include config and layout
$base = dirname(dirname(dirname(__FILE__)));
include($base.'/config.php');

?>

<div class="uk-text-center random-image<?php echo $moduleclass_sfx ?>">
<figure class="uk-overlay uk-overlay-hover">
	<?php echo JHtml::_('image', $image->folder . '/' . $image->name, $image->name, array('width' => $image->width, 'height' => $image->height)); ?>
	<div class="uk-overlay-panel uk-overlay-fade uk-overlay-background">
		<?php if ($link) : ?>
		<a class="uk-position-cover" href="<?php echo $link; ?>"></a>
		<?php endif; ?>
	</div>
</figure>
</div>