<?php
/*----------------------------------------------------------------------------------|  www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.36
	@build			26th July, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____  _____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \(  _  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/ )(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__)  (_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');
	$document = JFactory::getDocument();
	$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/effect_3d/default.css');
	$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/effect_3d/component.css');
	$document->addScript('/modules/mod_moojlacourseslider/assets/js/effect_3d/modernizr.custom.js');
	// dump($courses,"course");

?>

<div>
	<!-- Top Navigation -->
	<ul class="grid cs-style-1">
		<?php foreach($courses as $course): ?>
			<li>
				<figure>
					
					<?php if(!$course->summary_files):?>
						<img src="https://www.w3schools.com/w3css/img_lights.jpg" alt="img01">
					<?php else:?>
						<a href="<?php echo JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid); ?>">
							<img src="<?php echo $course->summary_files; ?>">
						</a>
					<?php endif;?>
					<figcaption class="box-3d-1">
						<h3><?php echo $course->shortname; ?></h3>
						<span><?php echo $course->cat_name; ?></span>
						<a href="<?php echo JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid); ?>" class="button-3d-1" target="_blank" >مشاهده کردن</a>
					</figcaption>
				</figure>
			</li>
		<?php endforeach; ?>
	</ul>
</div><!-- /container -->
	
<?php
$document->addScript('/modules/mod_moojlacourseslider/assets/js/effect_3d/toucheffects.js');
?>
