post_type === acadlix()->cpt()->course()->get_post_type()) { $aelms_course = acadlix()->model()->course()->ofCourse()->find($post->ID); if ($aelms_course) { if ($aelms_display_title) { echo sprintf( '<%1$s class="aelms-course-curriculum-title"> ' . esc_html($aelms_title) . ' ', esc_attr($aelms_title_tag) ); } ?>
sections; if ($aelms_sections->count() > 0) { foreach ($aelms_sections as $aelms_i => $aelms_section) { ?>
post_title); ?>
contents; if ($aelms_contents->count() > 0) { foreach ($aelms_contents as $aelms_c_index => $aelms_content) { $aelms_preview = $aelms_content->rendered_metas['preview'] ?? false; ?>
contentable['type']; $aelms_icon = ''; if ($aelms_type === 'lesson') { $aelms_icon = $aelms_content->contentable_data?->rendered_metas['type'] === 'video' ? '' : ''; } elseif ($aelms_type === 'quiz') { $aelms_icon = ''; } elseif ($aelms_type === 'assignment') { $aelms_icon = ''; } echo wp_kses_post(apply_filters("aelms/single-course/content/icon", $aelms_icon, $aelms_content)); ?> contentable['title']); ?>
contentable['type'] == "lesson" ? $aelms_content->contentable_data?->rendered_metas['type'] == 'video' ? acadlix()->helper()->course()->intToTimeFormat( $aelms_content->contentable_data?->rendered_metas['hours'] ?? 0, $aelms_content->contentable_data?->rendered_metas['minutes'] ?? 0, $aelms_content->contentable_data?->rendered_metas['seconds'] ?? 0, ) : '' : '' ); ?>
rendered_metas['preview']) && $aelms_content->rendered_metas['preview'] ? '
' : ''; ?>