The Group Classes block can be pinned to one class (sidebar Classes shown → Class, or [us_group_classes offering="…"]) so it can be embedded on a page dedicated to that class. On such a page the surrounding copy already describes the class, but the card repeated the class description anyway.
In single-class mode the description is now left out. The card still shows the schedule (term dates + class time), instructor, schedule note, price, "Enrol by" deadline, and the enrol / enrolled / withdraw controls. Showing All classes is unchanged — descriptions are still included there.
The editor preview follows the same rule: BlockPreview::groupClasses() takes the mode from the block's offeringId attribute, drops the sample description when a class is pinned, and its note says what the published page shows. The sample card also gained the .us-class-when and .us-enrol-deadline elements the live markup has always rendered, so themes can style against them.
Docs updated (docs/features/editor-blocks.md, docs/features/group-classes.md) and a [1.2.2] changelog entry describes the whole option — the class picker itself shipped in cde8704 but was never recorded.
Tests
composer test — 620 tests, 1782 assertions, all pass
composer lint — PHPStan level 10, no errors
composer cs — PHPCS clean
Closes #114
The **Group Classes** block can be pinned to one class (sidebar **Classes shown → Class**, or `[us_group_classes offering="…"]`) so it can be embedded on a page dedicated to that class. On such a page the surrounding copy already describes the class, but the card repeated the class description anyway.
In single-class mode the description is now left out. The card still shows the schedule (term dates + class time), instructor, schedule note, price, "Enrol by" deadline, and the enrol / enrolled / withdraw controls. Showing **All classes** is unchanged — descriptions are still included there.
The editor preview follows the same rule: `BlockPreview::groupClasses()` takes the mode from the block's `offeringId` attribute, drops the sample description when a class is pinned, and its note says what the published page shows. The sample card also gained the `.us-class-when` and `.us-enrol-deadline` elements the live markup has always rendered, so themes can style against them.
Docs updated (`docs/features/editor-blocks.md`, `docs/features/group-classes.md`) and a `[1.2.2]` changelog entry describes the whole option — the class picker itself shipped in `cde8704` but was never recorded.
### Tests
- `composer test` — 620 tests, 1782 assertions, all pass
- `composer lint` — PHPStan level 10, no errors
- `composer cs` — PHPCS clean
The Group Classes block can be pinned to a single class via its Class
option so it can be embedded on a page dedicated to that class. On such a
page the surrounding copy already describes the class, so the card
repeated it. In single-class mode the description is now left out and the
card shows only the schedule, instructor, schedule note, price, enrolment
deadline and the enrol/withdraw controls.
The editor preview follows the same rule: BlockPreview::groupClasses()
takes the mode from the block's offeringId attribute, drops the sample
description when a class is pinned, and notes what the published page
shows. Its sample card also gained the .us-class-when and
.us-enrol-deadline elements the live markup has always rendered.
Closes#114
Co-Authored-By: Claude Opus 5 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #114
The Group Classes block can be pinned to one class (sidebar Classes shown → Class, or
[us_group_classes offering="…"]) so it can be embedded on a page dedicated to that class. On such a page the surrounding copy already describes the class, but the card repeated the class description anyway.In single-class mode the description is now left out. The card still shows the schedule (term dates + class time), instructor, schedule note, price, "Enrol by" deadline, and the enrol / enrolled / withdraw controls. Showing All classes is unchanged — descriptions are still included there.
The editor preview follows the same rule:
BlockPreview::groupClasses()takes the mode from the block'sofferingIdattribute, drops the sample description when a class is pinned, and its note says what the published page shows. The sample card also gained the.us-class-whenand.us-enrol-deadlineelements the live markup has always rendered, so themes can style against them.Docs updated (
docs/features/editor-blocks.md,docs/features/group-classes.md) and a[1.2.2]changelog entry describes the whole option — the class picker itself shipped incde8704but was never recorded.Tests
composer test— 620 tests, 1782 assertions, all passcomposer lint— PHPStan level 10, no errorscomposer cs— PHPCS cleanb0952ca06dtoc4acdb7ca4