Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/j3/components/com_moojla/views/coursedetail/tmpl/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/j3/components/com_moojla/views/coursedetail/tmpl/default_courseinfo.php

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

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_courseinfo.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.11.$$$$]-->
<?php require_once JPATH_ADMINISTRATOR .
'/components/com_moojla/models/course.php';
  $course_model = new MoojlaModelCourse;
  $table = $course_model->getTable();
  $table->load($this->course->id);
?>
<div class="lmskaran_course_section_sidebar">
  <div class="lmskaran_course_inner_parent">
    <h3><?php echo $this->course->fullname;
?></h3>			
    <div class="lmskaran_information_course">
      <?php
$this->courseEventDispacher->trigger("onBeforeCustomFields",
array('com_moojla.coursedetail', $table, $this)); ?>
      <?php echo $this->loadTemplate("custom_fields");
?>
      <?php
$this->courseEventDispacher->trigger("onAfterCustomFields",
array('com_moojla.coursedetail', $table, $this)); ?>
    </div>
  </div>
  <?php
$this->courseEventDispacher->trigger("onBeforeCourseButton",
array('com_moojla.coursedetail', $table, $this)); ?>
  <div class="lmskaran_button_registration">
    <div class="lmskaran_reg_download">
      <?php JLoader::register('MoojlaHelper',
JPATH_ADMINISTRATOR.'/components/com_moojla/helpers/moojla.php');
      $btn = MoojlaHelper::newActionButton($this->course,
$this->course->enrolState, null, '',
$this->moodle_url);
			if($btn[0])
				echo $btn[1];
	  ?>
      <?php if(!$this->course->enrolState): ?>
        <?php if ($this->course->cost == 0): ?>
					<?php if ($btn[0]): ?>
						<span class="lmskaran_course_price_cost"><span
class="lmskaran_toman">رایگان</span></span>
					<?php else: ?>
						<span class="Registration-by-administrator"><span
class="lmskaran_toman">ثبت نام توسط مدیر
دوره</span></span>
					<?php endif; ?>
        <?php else: ?>
        	<span class="lmskaran_course_price_cost"><?php
echo $this->course->cost; ?></span>
        <?php endif; ?>
      <?php endif; ?>
    </div>
  </div>
  <div style="display: flex; justify-content:
space-between">
    <?php echo JLayoutHelper::render('favorite',
['course'=>$this->course,
'favorite'=>$this->course->favorite,
'params'=>$this->params]); ?>
    <?php echo JLayoutHelper::render('rate', $this); ?>
  </div>
  <?php
$this->courseEventDispacher->trigger("onAfterCourseButton",
array('com_moojla.coursedetail', $table, $this)); ?>
</div>
<!--[/JCBGUI$$$$]-->