</a> </div> <!-- stop home icon --> <div class="uk-width-7-10 uk-text-right"> <!-- start preview icon --> <?php $tmpl = ""; if ($target == "1") { $tmpl = "&tmpl=component"; } ?> <?php if (@$step->prevs != 0 && $step->prevs != "-1") { $chb_free_courses1 = $guruModelguruTask->getChbAccessCourses(); $step_access_courses1 = $guruModelguruTask->getStepAccessCourses(); if ($chb_free_courses1 == 1 && $step_access_courses1 == 2) { $step->prevaccess = 2; } if ($user->id <= 0 && (isset($step->prevaccess) && $step->prevaccess != 2) || $user->id > 0 && !in_array($user->id, $author) && accessToLesson($step->prevs, $course_id) === FALSE && $step->prevaccess != 2) { if ($target == "0") { ?> <a href="#" onclick="openMyModal(400, 400, '<?php echo JRoute::_("index.php?option=com_guru&view=guruEditplans&course_id=" . intval($catid) . "&tmpl=component"); ?> ');"> <img style="border:none;" src="<?php echo JUri::base() . "components/com_guru/images/back.png"; ?> " alt="<?php