2
This commit is contained in:
parent
b940e647fb
commit
1629a31de7
BIN
assets/pasted-20260608-072047-aaf73de0.png
Normal file
BIN
assets/pasted-20260608-072047-aaf73de0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 504 KiB |
@ -1574,20 +1574,9 @@ function matthew_lms_mvp_render_course_dashboard(array $profile): string {
|
||||
<div>
|
||||
<p class="mlms-kicker" style="color:#C9C4FF">Course overview</p>
|
||||
<h1 id="mlms-course-dashboard-heading">Course Dashboard: AI Workflow Fluency</h1>
|
||||
<p>This page is now dedicated to the course experience: overview, lesson view, task/build section, and lesson completion. Your profile lives separately on the profile page.</p>
|
||||
<div class="mlms-course-actions" aria-label="Course dashboard actions">
|
||||
<a class="mlms-btn mlms-btn-primary" href="<?php echo esc_url($continue_url); ?>" data-mlms-launch-course>Continue where I left off →</a>
|
||||
<a class="mlms-btn mlms-btn-secondary" href="<?php echo esc_url($quiz_url); ?>" data-mlms-open-quiz>Open quiz page</a>
|
||||
<a class="mlms-btn mlms-btn-secondary" href="<?php echo esc_url($profile_url); ?>">View profile</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mlms-course-streak" aria-label="Current course progress"><b data-mlms-course-percent><?php echo esc_html((string) $progress['percent']); ?>%</b><span data-mlms-course-status><?php echo esc_html($runtime['progress_status']); ?></span></div>
|
||||
</div>
|
||||
<div class="mlms-course-resume-strip" aria-live="polite">
|
||||
<span>Where you left off</span>
|
||||
<div><strong data-mlms-leftoff-title><?php echo esc_html($progress['lesson_title']); ?></strong><small data-mlms-leftoff-meta><?php echo esc_html($progress['phase_label'] . ' · ' . $progress['last_block']); ?></small></div>
|
||||
<div class="mlms-course-mini-meter" aria-hidden="true"><i data-mlms-course-progress-fill style="width:<?php echo esc_attr((string) $progress['percent']); ?>%"></i></div>
|
||||
</div>
|
||||
<div class="mlms-phase-path" role="list" aria-label="Course learning path">
|
||||
<article class="mlms-dashboard-phase current" role="listitem" aria-current="step">
|
||||
<div class="mlms-dashboard-phase-top"><span class="mlms-dashboard-phase-number">1</span><span class="mlms-dashboard-lock">Current</span><span class="mlms-dashboard-skill-node current" data-mlms-skill-node="phase-1" aria-label="Current skill node"></span></div>
|
||||
@ -1611,59 +1600,6 @@ function matthew_lms_mvp_render_course_dashboard(array $profile): string {
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<section id="mlms-lesson-view" class="mlms-course-workspace launched" data-mlms-course-workspace aria-labelledby="mlms-course-workspace-heading">
|
||||
<div class="mlms-course-workspace-head">
|
||||
<div>
|
||||
<p class="mlms-kicker">Lesson view</p>
|
||||
<h2 id="mlms-course-workspace-heading">Lesson View</h2>
|
||||
<p>Read the course lesson inside the course dashboard. If you prefer focus mode, open the lesson-only page.</p>
|
||||
</div>
|
||||
<div class="mlms-course-actions"><a class="mlms-btn mlms-btn-secondary" href="<?php echo esc_url($lesson_url); ?>" data-mlms-launch-course>Open focused lesson page</a></div>
|
||||
<span class="mlms-course-status-pill" data-mlms-course-status><?php echo esc_html($runtime['progress_status']); ?></span>
|
||||
</div>
|
||||
<?php echo matthew_lms_mvp_render_course_lesson_component($context, $progress); ?>
|
||||
</section>
|
||||
|
||||
<section id="mlms-task-build" class="mlms-course-workspace launched" aria-labelledby="mlms-task-build-heading">
|
||||
<div class="mlms-course-workspace-head">
|
||||
<div>
|
||||
<p class="mlms-kicker">Task / build section</p>
|
||||
<h2 id="mlms-task-build-heading">Task / Build Section</h2>
|
||||
<p>Complete the practical deliverable after reading the lesson and passing the quiz.</p>
|
||||
</div>
|
||||
<div class="mlms-course-actions"><a class="mlms-btn mlms-btn-secondary" href="<?php echo esc_url($quiz_url); ?>" data-mlms-open-quiz>Take quiz first</a></div>
|
||||
</div>
|
||||
<?php echo matthew_lms_mvp_render_course_build_component($context); ?>
|
||||
</section>
|
||||
|
||||
<section id="mlms-lesson-completion" class="mlms-course-workspace launched" aria-labelledby="mlms-lesson-completion-heading">
|
||||
<div class="mlms-course-workspace-head">
|
||||
<div>
|
||||
<p class="mlms-kicker">Lesson completion</p>
|
||||
<h2 id="mlms-lesson-completion-heading">Lesson Completion</h2>
|
||||
<p>Completion is confirmed when the build task is submitted and validated. Your profile progress, skill node, and portfolio readiness update automatically.</p>
|
||||
</div>
|
||||
<span class="mlms-course-status-pill" data-mlms-course-status><?php echo esc_html($runtime['progress_status']); ?></span>
|
||||
</div>
|
||||
<div class="mlms-course-page-grid">
|
||||
<article class="mlms-course-page-card">
|
||||
<div class="mlms-course-page-meta"><span>Progress</span><span data-mlms-course-percent><?php echo esc_html((string) $progress['percent']); ?>%</span></div>
|
||||
<h4>Saved course state</h4>
|
||||
<p><strong data-mlms-leftoff-title><?php echo esc_html($progress['lesson_title']); ?></strong><br><span data-mlms-leftoff-meta><?php echo esc_html($progress['phase_label'] . ' · ' . $progress['last_block']); ?></span></p>
|
||||
</article>
|
||||
<article class="mlms-course-page-card">
|
||||
<div class="mlms-course-page-meta"><span>Skill points</span><span><?php echo esc_html((string) $progress['skill_points']); ?>/20</span></div>
|
||||
<h4>Phase 1 skill node</h4>
|
||||
<p>Submitting and validating the build task marks the lesson complete and lights the Phase 1 node.</p>
|
||||
</article>
|
||||
<article class="mlms-course-page-card">
|
||||
<div class="mlms-course-page-meta"><span>Next action</span><span data-mlms-course-status><?php echo esc_html($runtime['progress_status']); ?></span></div>
|
||||
<h4>Return to profile</h4>
|
||||
<p>See your profile header, five-node skill indicator, progress, portfolio, and external skills feed.</p>
|
||||
<a class="mlms-btn mlms-btn-primary" href="<?php echo esc_url($profile_url); ?>">View profile →</a>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
<?php echo matthew_lms_mvp_render_ai_tutor_component($runtime['ajax_url'], $runtime['tutor_nonce'], $runtime['lesson_context']); ?>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user