Conversation
…lesson focus mode template for the FSE. Uses CSS to clear out the styling on the main container elements while still loading the theme + plugin js/css needed for various addons.
…croll to the bottom. Remove shortcode and have a block only for the "parent course" link.
…gress + button block in block template.
…show/hide sidebar. Left/right sidebar position and content width.
…ult to 960px vs. full width.
…r is enabled on a page.
…etween header and sidebar without affecting all other block spacing (ie. between paragraphs).
…s maybe) don't dequeue.
…sses around the content.
…on a quiz or assignment.
…ting with javascript.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Free Tier Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
includes/admin/post-types/meta-boxes/class.llms.meta.box.course.options.php
Outdated
Show resolved
Hide resolved
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on April 4. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on April 4. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
…ttom. Show the sidebar along the bottom on mobile.
…ttom-right "take notes" button on mobile.
…h to account for mobile safari and other mobile browsers with nav bar that overlaps the content area.
…adence class support to add in the background color. Content render action which can be overridden.
| break; | ||
| } | ||
|
|
||
| case 'kadence': |
There was a problem hiding this comment.
Decide if we want to add this or just have them do it.
src/blocks/parent-course/block.json
Outdated
| @@ -0,0 +1,27 @@ | |||
| { | |||
| "$schema": "https://schemas.wp.org/trunk/block.json", | |||
| "apiVersion": 2, | |||
…led in the course.
Description
Adds a "focus mode" option for courses where, when enabled, lessons have a focused view of the course and the lessons.
How has this been tested?
Manually
Screenshots
Checklist:
Note
Medium Risk
Changes template selection and frontend rendering for lessons/quizzes based on new settings, so theme compatibility and edge cases (block themes/page builders, missing parent course) could cause unexpected layout or routing behavior.
Overview
Introduces a new Focus Mode experience for lessons/quizzes, switching eligible singular views to a dedicated PHP template (
single-lesson-focus.php) with a fixed header (back link + progress) and a syllabus sidebar.Adds global course settings (
lifterlms_enable_focus_mode, content width, sidebar position) plus per-course overrides (enable/disable/inherit + width/position), and wires in helper functions (llms_is_focus_mode_enabled,llms_get_focus_mode_*) to decide when/How focus mode applies (including filters for add-ons).Ships new focus-mode frontend assets: SCSS/CSS for layout variants and a small JS toggle that collapses the sidebar with
localStoragepersistence; also adds a new editor block (llms/parent-course) and updates template loading to avoid block-template overrides for focus mode.Written by Cursor Bugbot for commit acf765a. This will update automatically on new commits. Configure here.