-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add course continue button, course progress and pricing table blocks #2492
base: dev
Are you sure you want to change the base?
Conversation
usePostOptions
react hook* | ||
* @param array $atts Associative array of shortcode attributes. | ||
* @return string | ||
*/ | ||
public static function course_progress( $atts ) { | ||
|
||
$course_id = self::get_course_id(); | ||
$course_id = $atts['course_id'] ?? self::get_course_id() ?? null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, but I'd move the block editor related stuff into the class.llms.shortcodes.blocks.php what do you think?
I'd use existing filters or add new ones if needed, but I wouldn't do the checks here.
Same for the pricing table and the course continue button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems you missed this. There's a similar comment on the other PR.
e24f77d
to
98d84eb
Compare
* | ||
* @param array $atts Associative array of shortcode attributes. | ||
* @return string | ||
*/ | ||
public static function course_progress( $atts ) { | ||
|
||
$course_id = self::get_course_id(); | ||
$course_id = $atts['course_id'] ?? self::get_course_id() ?? null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems you missed this. There's a similar comment on the other PR.
@@ -601,12 +606,26 @@ public static function pricing_table( $atts ) { | |||
|
|||
if ( ! empty( $atts['product'] ) && is_numeric( $atts['product'] ) ) { | |||
|
|||
// enqueue match height for height alignments. | |||
$block_editor = llms_is_editor_block_rendering(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above.
Description
Adds:
with Course ID settings allowing blocks to be used on other post types.
How has this been tested?
Manually
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: