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

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_teachers.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.14.$$$$]-->
<?php require_once JPATH_ADMINISTRATOR . '/components/com_moojla/models/course.php';
  $course_model = new MoojlaModelCourse;
  $table = $course_model->getTable();
  $table->load($this->course->id);
?>
<?php foreach($this->teachersFromMoodle as $teacher): ?>
  <div class="lmskaran_course_section_sidebar">
     <div class="lmskaran_author_info_parent">
        <a href="<?php echo JRoute::_('index.php?option=com_moojla&view=teacherdetail&id=' . $teacher['mid'], false); ?>" class="lmskaran_teacher_name">
          <div class="lmskaran_picture_teacher">
            <img src="<?php echo $teacher['userimage']; ?>" alt="" />
          </div>
          <?php echo $teacher['name']?>
        </a>
        <?php $this->courseEventDispacher->trigger("onAfterTeacherName", array('com_moojla.coursedetail', $table, $teacher))?>
        <div class="lmskaran_about_author">
          <div class="lmskaran_titles"><?= JText::_('COM_MOOJLA_ABOUT_THE_TEACHER') ?></div>
          <p class="lmskaran_info_about_author"><?php echo isset($teacher['cv']) ? $teacher['cv'] : ''; ?></p>
        </div>
        <?php $this->courseEventDispacher->trigger("onAfterTeacherInfo", array('com_moojla.coursedetail', $table, $teacher))?>
     </div>
  </div>
<?php endforeach; ?>
<!--[/JCBGUI$$$$]-->

