LLMS_Widget_Course_Progress::form( array $instance )
Back-end widget form.
Description Description
See also See also
Parameters Parameters
- $instance
-
(array) (Required) Previously saved values from database.
Source Source
File: includes/widgets/class.llms.widget.course.progress.php
public function form( $instance ) { // Call widget defaults from parent. parent::form( $instance ); $check_enrollment = ( isset( $instance['check_enrollment'] ) ) ? $instance['check_enrollment'] : 1; ?> <p> <input <?php checked( 1, $check_enrollment ); ?> class="checkbox llms-course-progress-check-enrollment" id="<?php echo $this->get_field_id( 'check_enrollment' ); ?>" name="<?php echo $this->get_field_name( 'check_enrollment' ); ?>" type="checkbox" value="1"> <label for="<?php echo $this->get_field_id( 'check_enrollment' ); ?>"> <?php _e( 'Display to enrolled students only?', 'lifterlms' ); ?><br> <em><?php _e( 'When checked the course progress bar will be shown only to those students enrolled in the course.', 'lifterlms' ); ?></em> </label> </p> <?php }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.38.0 | Introduced. |