foreach ($this->cursos as $curso) : ?> <?php $cat_id = $curso['cat_id']; $course_id = $curso['remoteid']; $cat_slug = JFilterOutput::stringURLSafe ($curso['cat_name']); $course_slug = JFilterOutput::stringURLSafe ($curso['fullname']); ?> <div class="joomdle_course_list_item"> <div class="joomdle_item_title joomdle_course_list_item_title"> <?php $url = JRoute::_("index.php?option=com_joomdle&view=detail&cat_id=$cat_id:$cat_slug&course_id=$course_id:$course_slug&Itemid=$itemid"); ?> <?php echo "<a href=\"$url\">".$curso['fullname']."</a>"; ?> </div> <?php if ($curso['summary']) : ?> <div class="joomdle_item_content joomdle_course_list_item_description"> <div class="joomdle_course_description"> <?php echo JoomdleHelperSystem::fix_text_format($curso['summary']); ?> </div> <?php if ($show_buttons) : ?> <div class="joomdle_course_buttons"> <?php echo JoomdleHelperSystem::actionbutton ( $curso, $free_courses_button, $paid_courses_button); ?> </div> <?php endif; ?> </div> <?php endif; ?> </div> <?php endforeach; ?> </div>
$cat_id = $course_info['cat_id']; $course_id = $course_info['remoteid']; $cat_slug = JFilterOutput::stringURLSafe ($course_info['cat_name']); $course_slug = JFilterOutput::stringURLSafe ($course_info['fullname']); if ($show_topics_link) : ?> <?php $url = JRoute::_("index.php?option=com_joomdle&view=topics&cat_id=$cat_id:$cat_slug&course_id=$course_id:$course_slug&Itemid=$itemid"); ?> <P><b><?php echo "<a href=\"$url\">".JText::_('COM_JOOMDLE_COURSE_TOPICS')."</a><br>"; ?></b> <?php endif; ?> <?php if ($show_contents_link) : ?> <?php $url = JRoute::_("index.php?option=com_joomdle&view=course&cat_id=$cat_id:$cat_slug&course_id=$course_id:$course_slug&Itemid=$itemid"); ?> <P><b><?php echo "<a href=\"$url\">".JText::_('COM_JOOMDLE_COURSE_CONTENTS')."</a><br>"; ?></b> <?php endif; ?> <?php if ($show_grading_system_link) : ?> <?php $url = JRoute::_("index.php?option=com_joomdle&view=coursegradecategories&cat_id=$cat_id:$cat_slug&course_id=$course_id:$course_slug&Itemid=$itemid"); ?> <P><b><?php echo "<a href=\"$url\">".JText::_('COM_JOOMDLE_COURSE_GRADING_SYSTEM')."</a><br>"; ?></b> <?php endif; ?> <?php if ($show_teachers_link) : ?> <?php $url = JRoute::_("index.php?option=com_joomdle&view=teachers&cat_id=$cat_id:$cat_slug&course_id=$course_id:$course_slug&Itemid=$itemid"); ?> <P><b><?php echo "<a href=\"$url\">".JText::_('COM_JOOMDLE_COURSE_TEACHERS')."</a><br>"; ?></b> <?php endif; ?> </div> <div class="joomdle_course_buttons"> <?php echo JoomdleHelperSystem::actionbutton ( $course_info, $free_courses_button, $paid_courses_button) ?> </div> </div>