Skip to content

Commit

Permalink
Merge pull request #2847 from gocodebox/dev
Browse files Browse the repository at this point in the history
Release 8.0
  • Loading branch information
brianhogg authored Jan 20, 2025
2 parents e8080ea + 84636e0 commit 7dc84b5
Show file tree
Hide file tree
Showing 120 changed files with 2,936 additions and 789 deletions.
25 changes: 0 additions & 25 deletions .config/travis/add-on.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .config/travis/e2e.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .config/travis/eslint.yml

This file was deleted.

129 changes: 0 additions & 129 deletions .config/travis/main.yml

This file was deleted.

46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,52 @@
LifterLMS Changelog
===================

v8.0.0 - 2025-01-20
-------------------

##### New Features

+ New popup when adding an Access Plan with templates to help set options quickly.
+ Adds support for Beaver Builder for Courses, Memberships and Lessons. [#2761](https://github.com/gocodebox/lifterlms/issues/2761)
+ Ability to show typed password for verification on the Student Dashboard login form.
+ Adds new "Featured Pricing Information" setting for Courses and Memberships.
+ Showing 'Has Quiz' or 'Has Assignment' in the Course Syllabus.

##### Updates and Enhancements

+ Improved accessibility of various front-end and back-end UIs including the Access Plans metaboxes to use proper labels and screen reader text where needed.
+ Allow lesson access based on enrollment drip setting with Course Start Date set. [#2843](https://github.com/gocodebox/lifterlms/issues/2843)
+ Course Information header is now h2 instead of h3 by default, for accessibility in heading order.
+ Adding purchase checkout link to the access plan header as an icon. [#2793](https://github.com/gocodebox/lifterlms/issues/2793)
+ Accessibility updates for lesson favorite and write a review forms. [#2852](https://github.com/gocodebox/lifterlms/issues/2852)

##### Bug Fixes

+ Allow additional shortcodes like [audio] within the description (content) of a quiz question.
+ Can now deactivate the Confirmation field for blocks like E-mail address and Password in forms. [#2646](https://github.com/gocodebox/lifterlms/issues/2646)
+ Fix SendWP connect button. [#2792](https://github.com/gocodebox/lifterlms/issues/2792)
+ Avoid unloading the textdomain for core translations in case the lifterlms textdomain is used before init (WP 6.7). [#2807](https://github.com/gocodebox/lifterlms/issues/2807)
+ Avoid wrapping of the text of buttons. [#2820](https://github.com/gocodebox/lifterlms/issues/2820)

##### Developer Notes

+ Improved llmsPostsSelect2 method when called on multiple elements at once, each with different options. [#2805](https://github.com/gocodebox/lifterlms/issues/2805)

##### Updated Templates

+ [templates/course/favorite.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/course/favorite.php)
+ [templates/course/lesson-preview.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/course/lesson-preview.php)
+ [templates/global/form-login.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/global/form-login.php)
+ [templates/global/form-registration.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/global/form-registration.php)
+ [templates/loop/featured-pricing.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/loop/featured-pricing.php)
+ [templates/myaccount/form-edit-account.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/myaccount/form-edit-account.php)
+ [templates/myaccount/form-redeem-voucher.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/myaccount/form-redeem-voucher.php)
+ [templates/notifications/basic.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/notifications/basic.php)
+ [templates/product/access-plan-button.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/product/access-plan-button.php)
+ [templates/product/free-enroll-form.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/product/free-enroll-form.php)
+ [templates/quiz/questions/description.php](https://github.com/gocodebox/lifterlms/blob/8.0.0/templates/quiz/questions/description.php)


v7.8.7 - 2024-12-17
-------------------

Expand Down
6 changes: 1 addition & 5 deletions assets/js/app/llms-lesson-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LLMS.LessonPreview = {

var self = this;

this.$locked = $( 'a[href="#llms-lesson-locked"]' );
this.$locked = $( '.llms-lesson-locked' );

if ( this.$locked.length ) {

Expand Down Expand Up @@ -56,10 +56,6 @@ LLMS.LessonPreview = {

var self = this;

this.$locked.on( 'click', function() {
return false;
} );

this.$locked.on( 'mouseenter', function() {

var $tip = $( this ).find( '.llms-tooltip' );
Expand Down
76 changes: 76 additions & 0 deletions assets/js/app/llms-visibility-toggle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/**
* Handle Password Visibility Toggle for LifterLMS Forms
*
* @package LifterLMS/Scripts
*
* @since TBD
*/

LLMS.PasswordVisibility = {

/**
* Initialize references and setup event binding
*
* @since TBD
* @return void
*/
init: function() {
this.$toggleButtons = $( '.llms-visibility-toggle button' );

if ( this.$toggleButtons.length ) {
this.$toggleButtons.removeClass( 'hide-if-no-js' );
this.bind();
}
},

/**
* Bind DOM events for toggle buttons
*
* @since TBD
* @return void
*/
bind: function() {
var self = this;

// Remove any previous click events and bind the new click event
this.$toggleButtons.off('click').on('click', function(event) {
self.toggleVisibility( $(this) );
});
},

/**
* Toggle visibility of password fields
*
* @since TBD
* @param {Object} $button The jQuery object of the clicked button
* @return void
*/
toggleVisibility: function( $button ) {
var isVisible = parseInt( $button.attr('data-toggle'), 10 );
var $form = $button.closest( '.llms-form-fields' );
var $passwordFields = $form.find( 'input.llms-field-input' );
var $icon = $button.find( 'i' );
var $stateText = $button.find( '.llms-visibility-toggle-state' );

// Toggle the visibility state
if ( isVisible === 1 ) {
// Show password
$passwordFields.filter('[type="password"]').attr('type', 'text');
$button.attr('data-toggle', 0);
$icon.removeClass('fa-eye').addClass('fa-eye-slash');
$stateText.text(LLMS.l10n.translate('Hide Password'));
} else {
// Hide password
$passwordFields.filter('[type="text"]').attr('type', 'password');
$button.attr('data-toggle', 1);
$icon.removeClass('fa-eye-slash').addClass('fa-eye');
$stateText.text(LLMS.l10n.translate('Show Password'));
}
}

};

// Initialize the Password Visibility module on document ready
jQuery(document).ready(function($) {
LLMS.PasswordVisibility.init();
});
Loading

0 comments on commit 7dc84b5

Please sign in to comment.