Spade
Mini Shell
| Directory:~$ /proc/self/root/home/lmsyaran/public_html/j3/components/com_moojla/layouts/ |
| [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 favorite.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('JPATH_BASE') or die('Restricted access');
?>
<!--[JCBGUI.layout.layout.5.$$$$]-->
<?php if (!JFactory::getUser()->guest):
extract($displayData);
require_once JPATH_SITE .
'/components/com_moojla/models/coursedetail.php';
$courseDetailModel = new MoojlaModelCoursedetail;
$params = JComponentHelper::getParams('com_moojla');
$favorite = $courseDetailModel->getFavorite();
?>
<?php if($params->get('favorite')): ?>
<div class="favorite" style="margin-top:
12px;" data-id="<?= $course->remoteid; ?>">
<i class="fas fa-heart"
style="cursor: pointer; font-size: 25px; color:<?=
isset($favorite[$course->remoteid]) ? '#f30101' :
'#acabab'; ?>"></i>
</div>
<?php endif; ?>
<?php
JFactory::getDocument()->addScriptOptions('token',
JSession::getFormToken());
JFactory::getDocument()->addScript(JUri::base() .
'/components/com_moojla/assets/js/favorite.js')
?>
<?php endif; ?><!--[/JCBGUI$$$$]-->