Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/j3/components/com_moojla/views/course_search/tmpl/ |
| [Home] [System Details] [Kill Me] |
<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
Lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.77
@build 6th April, 2022
@created 22nd July, 2020
@package Moojla
@subpackage default_card.php
@author Lmskaran <http://Lmskaran.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');
?>
<!--[JCBGUI.template.template.5.$$$$]-->
<?php
JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR .
'/components/com_fields/helpers/fields.php');
?>
<?php if(empty($this->courses)): ?>
<div class="col-md-12">
<p style="text-align: center"><?=
JText::_('COM_MOOJLA_NO_COURSE_FOUND');?></p>
</div>
<?php endif; ?>
<?php foreach($this->courses as $course):?>
<div class="col-md-4 mb-2">
<div class="card" style="height: 98%">
<div class="card-header">
<a href="<?=
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<img style="width: 100%" src="<?=
$course->summary_files; ?>" alt="">
</a>
</div>
<div class="card-body">
<ul class="list-group list-group-flush"
style="padding: 0;">
<li style="padding: 10px 0;"
class="list-group-item">
<span>نام کوتاه : </span>
<span>
<a href="<?=
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>"><?= $course->shortname; ?></a>
</span>
</li>
<?php
if($this->items['cs_display_cost']): ?>
<li style="padding: 10px 0;"
class="list-group-item">
<span>هزینه : </span>
<span><?= $course->cost;
?></span>
</li>
<?php endif; ?>
<li style="padding: 10px 0;"
class="list-group-item">
<span>مجموعه : </span>
<span><?= $course->cat_name;
?></span>
</li>
<?php $fields =
FieldsHelper::getFields('com_moojla.course', $course, true);
?>
<?php foreach($fields as $field):
$custom_field=
FieldsHelper::render($field->context, 'field.render',
array('field' => $field));
?>
<?php
if($field->params->get('display') != 0): ?>
<?php if($custom_field): ?>
<li style="padding: 10px 0;"
class="list-group-item">
<?= $custom_field; ?>
</li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php
$this->table->load($course->id);
$this->dispatcher->trigger('onAfterCourseSearchCard',
array('com_moojla.course_search', $this->table, $course));
?>
</ul>
</div>
</div>
</div>
<?php endforeach; ?>
<style>
img{
width: 100%;
}
</style><!--[/JCBGUI$$$$]-->