<?php if (count($step->layout_jump) > 0) { ?> <div id="g_jump_button_ref"> <?php if (isset($step->layout_jump["0"])) { ?> <?php $tmpl = ""; if ($target == 1) { $tmpl = "&tmpl=component"; } $jump_details = $guruModelguruTask->getJumpStep($step->layout_jump[0]->jump); $module_link = @$jump_details["0"]["module_id1"]; $jump_cid = @$jump_details["0"]["jump_step"]; $jump_link = JRoute::_("index.php?option=com_guru&view=guruTasks&catid=" . intval($catid) . "&module=" . intval($module_link) . "&task=view&cid=" . $jump_cid . $tmpl); if ($jump_details["0"]["type_selected"] == "module") { $jump_link = JRoute::_("index.php?option=com_guru&view=guruTasks&catid=" . intval($catid) . "&task=view&module=" . $jump_cid . "&action=viewmodule" . $tmpl); } $db = JFactory::getDBO(); $sql = "select step_access from #__guru_task where id=" . intval($jump_cid); $db->setQuery($sql); $db->query(); $lesson_acces = intval($db->loadResult()); if (!accessToLesson($jump_cid, $course_id, $jump_details["0"]["type_selected"]) && $accessJumpB != 1) { ?> <?php $style_jump = "";