Skip to content

Releases: michael-milette/moodle-filter_filtercodes

FilterCodes release 2.5.1 - 2024-05-01

02 May 12:26
Compare
Choose a tag to compare

What's New

Added

  • New {menucoursemore} tag.
  • New {iftheme}{/iftheme} tag.
  • New {ifnottheme}{/ifnottheme} tag.
  • New {alert border}{/alert} tag.
  • New links to edit Advanced theme settings and current theme settings to {menuthemes} tag.
  • {ALPHA} New {dashboard_siteinfo} tag. Work in progress - doesn't display correctly in all themes.
  • GitHub actions workflow.

Updated

  • {iftheme} tag now works even when at the beginning of a string.
  • Refactored for compliance with Moodle coding guidelines.
  • Small performance optimization.
  • Corrected "Course: Badges" link in {menuadmin}.
  • Updated PHP and Moodle compatibility in CONTRIBUTING.md.
  • Fix-291: Escape tags now work reliably.
  • Improved filtering of parameters for some tags.
  • Improved detection of https protocol.
  • Improved {ifmobile} tag detection.
  • Improved error handling of the ifactivitycompleted tag.
  • Improved error handling of the ifnotactivitycompleted tag.
  • {getstring} tag now checks if string is deprecated before trying to load a string from the language pack.
  • Reference to style guides in CONTRIBUTING.md.
  • References to PHP and Moodle versions in bug reports.
  • Removed support for Travis integration.
  • Copyright notice to include 2024.
  • Fixed compatibility issue with Moodle LMS 4.4.
  • Tested for compatibility with PHP 8.3.

FilterCodes release 2.5.0 - 2024-04-24

24 Apr 16:23
Compare
Choose a tag to compare

What's New

Added

  • New {menucoursemore} tag.
  • New {iftheme}{/iftheme} tag.
  • New {ifnottheme}{/ifnottheme} tag.
  • New {alert border}{/alert} tag.
  • New links to edit Advanced theme settings and current theme settings to {menuthemes} tag.
  • {ALPHA} New {dashboard_siteinfo} tag. Work in progress - doesn't display correctly in all themes.
  • GitHub actions workflow.

Updated

  • Small performance optimization.
  • Corrected "Course: Badges" link in {menuadmin}.
  • Updated PHP and Moodle compatibility in CONTRIBUTING.md.
  • Fix-291: Escape tags now work reliably.
  • Improved filtering of parameters for some tags.
  • Improved detection of https protocol.
  • Improved {ifmobile} tag detection.
  • Improved error handling of the ifactivitycompleted tag.
  • Improved error handling of the ifnotactivitycompleted tag.
  • {getstring} tag now checks if string is deprecated before trying to load a string from the language pack.
  • Reference to style guides in CONTRIBUTING.md.
  • References to PHP and Moodle versions in bug reports.
  • Removed support for Travis integration.
  • Copyright notice to include 2024.
  • Fixed compatibility issue with Moodle LMS 4.4.
  • Tested for compatibility with PHP 8.3.

FilterCodes release 2.4.5 - 2024-04-23

23 Apr 19:02
Compare
Choose a tag to compare

What's New

Added

  • New {menuthemes} tag.
  • New {sitename} tag.
  • New {sitesummary} tag.
  • New {ifminstudent} tag.

Updated

  • {courseenddate} tag can now take an optional courseid parameter.
  • {courseenddate} tag will now display strftime date formats.
  • If the support page is blank, the {supportpage} tag will be blank instead of displaying the tag.
  • If the support email is blank, the {supportemail} tag will display "Not available" instead of the tag.
  • If the support name is blank, the {supportname} tag will display "Not available" instead of the tag.
  • Fixed {preferredlanguage} tag if the system default language is a child language pack.
  • Refactored for performance improvement performance. Enable more tags for embedding.
  • Instructions for enabling filters in custom menu.
  • {courseshortname} tag can now be used inside other tags.
  • {teamcards} now lists users with selected roles in Site Administration > Appearance > Course > Course Contacts.
  • Fixed issue where a tel: link was unexpectedly created in {teamcards}.

FilterCodes release 2.4.3 - 2023-11-20

20 Nov 13:59
Compare
Choose a tag to compare

What's New

Added

  • New {menuthemes} tag.
  • New {sitename} tag.
  • New {sitesummary} tag.
  • New {ifminstudent} tag.

Updated

  • {courseenddate} tag can now take an optional courseid parameter.
  • {courseenddate} tag will now display strftime date formats.
  • If the support page is blank, the {supportpage} tag will be blank instead of displaying the tag.
  • If the support email is blank, the {supportemail} tag will display "Not available" instead of the tag.
  • If the support name is blank, the {supportname} tag will display "Not available" instead of the tag.
  • Fixed {preferredlanguage} tag if the system default language is a child language pack.
  • Refactored for performance improvement performance. Enable more tags for embedding.
  • Instructions for enabling filters in custom menu.
  • {courseshortname} tag can now be used inside other tags.
  • {teamcards} now lists users with selected roles in Site Administration > Appearance > Course > Course Contacts.
  • Fixed issue where a tel: link was unexpectedly created in {teamcards}.

FilterCodes release 2.4.2 - 2023-10-25

25 Oct 15:36
Compare
Choose a tag to compare

What's New

Updated

  • Fixed bug with rendering of coursecards in Moodle 3.10 and earlier.

FilterCodes release 2.4.1 - 2023-10-23

23 Oct 09:18
Compare
Choose a tag to compare

What's new

Added

  • New %7Bwwwroot%7D - alias for the {wwwroot} tag.

Updated

  • Fixed: {coursecard}, {coursecards}, {mycoursescards} and {coursecardsbyenrol} now include visible courses without an end date.
  • Fixed a failed PHPUnit test for {coursemoduleid}.
  • Fix spacing for some failed CSS code checks.
  • Tested compatible with PHP 8.2.

FilterCodes release 2.4.0 - 2023-10-22

20 Oct 11:55
Compare
Choose a tag to compare

What's new

Added

  • New %7Bwwwroot%7D - alias for the {wwwroot} tag.
  • Support for FontAwesome v6 syntax including fa-solid and fa-brands. E.g. {fa-solid fa-user}.
  • Fix-266: New {multilang}{/multilang} tag. Note: Depends on Moodle's Multi-language content filter.
  • Fix-198: Module level assigned roles detection to {ifcustomrole} and {ifnotcustomrole} tags.
  • New {myccourses} tag.
  • New {ifnotincourse}{/ifnotincourse} tags.
  • New {coursecount students:active} tag.
  • Fix-258: New {ifvisible} tag.
  • New {supportservicespage} tag (for Moodle 4.2 and later).
  • New {coursemoduleid} tag.
  • Fix-261: New {courseimage-url} tag.
  • New {chart progresspie} tag.
  • Fix-187: New {coursecard} tag (not the same as {coursecards}).
  • New {courseenrolmentdate} tag.
  • (ALPHA) New horizontal layout setting for {coursecards}, {coursecardsbyenrol} and {mycoursescards} (affects all 3).
  • (ALPHA) New table list layout setting for {coursecards}, {coursecardsbyenrol} and {mycoursescards} (affects all 3).
  • Fix-251: New optional course ID parameter for {coursestartdate} tag.
  • Alternative (alt) text to {qrcode} tag.
  • Documented tags in the source code.
  • Compatibility with Moodle 4.3.

Updated

  • The {button} tag will now attempt to automatically strip HTML tags created by some other filters.
  • Fixed profile pictures including user picture, gravatar and faceless avatar.
  • {scrape} tag now automatically removes any HTML in case Moodle turned the URL into a link.
  • Reordered tags to fix issues where some tags were not working or not being interpreted in the right order.
  • Fix-271: Fixed issue with multiple static declarations.
  • Fix-272: Fixed issue with {categorydescription} tag if it includes an embedded URL for image.
  • Fix-274: Fixed issue creating {button} with {urlencoded}{shortcoursename}{/urlencoded}.
  • Fix-273: Fixed several tags that were not being replaced.
  • Fix-269: Fixed deprecation notice relating to trim() function in PHP 8.1.
  • Fix-241: You may now optionally specify a space-delimited list of category ID(s) in the {mycoursescards} tag.
  • Git now ignores .patch files.
  • Fix-256: The {courseid} and %7Bcourseid%7D tags can now be embedded in other tags.
  • Fix-256: The {coursemoduleid} and %7Bcoursecontextid%7D tags can now be embedded in other tags.
  • Fix-256: The {coursecontextid} and %7Bcoursecontextid%7D tags can now be embedded in other tags.
  • Fix-256: The {coursemoduleid} and %7Bcoursemoduleid%7D tags can now be embedded in other tags.
  • Fixed display of Course Cards Layout list of settings.
  • Addressed some PHP 8.1 compatibility warnings.
  • Some tags are now disabled if they do not meet Moodle and PHP version requirements.
  • Fix-253: Cohort names can now contain a dash in {ifincohort} tag.
  • Instruction to patch Moodle 4.2 to enable FilterCodes in the custom menu.
  • {timezone} now works correctly if the user's timezone is set to system timezone.
  • Refactored {mycourses...} tags and added missing unordered tag for {mycourses} tag.
  • {mycoursescards} tag will now display a message if the user is not enrolled in any courses.
  • Courses that are either hidden or expired will now appear in course cards if the user has the capability to see hidden courses.
  • Documentation (README.md)
  • Fixed a failed PHPUnit test for {coursemoduleid}.
  • Fix spacing for some failed CSS code checks.
  • Tested compatible with PHP 8.2.

FilterCodes release 2.3.6 - 2023-05-07

17 May 13:10
Compare
Choose a tag to compare

What's new

Updated

  • Partial fix for sizing issue of radial and pie charts in Moodle 4.1 and 4.2.
  • Copyright notice to include 2023.
  • Compatibility with Moodle 4.2.
  • Compatibility with PHP 8.1.

FilterCodes release 2.3.4 - 2022-12-11

11 Dec 11:09
Compare
Choose a tag to compare

What's new

Added

  • New {courseunenrolurl} tag.
  • New {coursecount students} tag.
  • Setting to show hidden profile fields using the {profile_field_...} tag.
  • CSS class support for details tag.
  • New {coursegrade} tag.
  • New {ifnotingroup}{/ifnotingroup} tags.
  • New setting to disable {sesskey} tag globally.
  • GitHub bug and feature request issue templates.
  • Code of Conduct guidelines.
  • Compatibility with Moodle 4.1.
  • Compatibility with PHP 8.0.

Updated

  • Fix-218: You can now use the {profile_field_...} tag inside the {chart} tag.
  • Fix-244: Blank avatars now appear in {coursecards} regardless of whether Gravatars are enabled.
  • Fix-217: You can now have up to 50 global tags.
  • Fix-231: Updated documentation for {coursecards} tag.
  • Fix-236: Fixed bug which appeared during installation of Moodle with FilterCodes pre-installed.
  • Fix-240: Corrected documentation for {supportpage} tag. (thanks dinism!)
  • Most tags are compatible with Moodle 2.7, 2.8, 2.9, 3.0, 3.1, 3,2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 4.0 and now 4.1.
  • Tested to be compatible with PHP 7.4 and 8.0.

FilterCodes release 2.3.1 - 2022-06-07

07 Jun 16:01
Compare
Choose a tag to compare

What's New in v.2.3.1

This is a bug-fix release. There are no new features.

Added

  • phpcs.xml.cont.dist file.

Updated

  • .gitignore file.
  • Fix-221: Resolved conflict between {mygroups} amd {ifingroup} tags when used at the same time.
  • Fix-222: Fixed PHPUnit v9.5 compatibility.

What's New in v2.3.0

Added

  • New {ifhasarolename roleshortname}{/ifhasarolename} tags.
  • Sample ALPHA code in the documentation to patch Moodle 4.0 themes for support in the custom menu.
  • New {courseprogresspercent} tag.
  • New {ifmobile}{/ifmobile} tags.
  • New {ifnotmobile}{/ifnotmobile} tags.
  • New {ifnotinactivity}{/ifnotinactivity} tags.
  • New {ifinactivity}{/ifinactivity} tags.
  • New {ifnotactivitycompleted id}{/ifnotactivitycompleted} tags.
  • New {ifactivitycompleted id}{/ifactivitycompleted} tags.
  • Support for optional course ID parameter in the {coursename} tag.
  • Support for optional course ID parameter in the {coursesummary} tag.
  • New {qrcode}{/qrcode} tags.
  • New {lastlogin} tag.
  • New {mygroups} tag.
  • New {teamcards} (ALPHA) tag.
  • New {ifnotvisible}{/ifnotvisible} tags.
  • New {showmore}{/showmore} tags (ALPHA).
  • New {menuadmin} tag.
  • New {mycoursescards} tag.
  • New fc-coursecontacts and fc-coursecontactroles classes for {coursecontacts} HTML.
  • New {coursecontacts} tag (formerly {courseteachers}).
  • {coursecontacts} can now optionally display user profile description.
  • {coursecontacts} can now optionally link to phone number.
  • New {chart progressbar x Title text} tag (ALPHA).
  • New {chart radial x Title text} tag (ALPHA).
  • New {chart pie x Title text} tag (ALPHA).
  • New {markborder}{/markborder} tags.
  • New {marktext}{/marktext} tags.
  • New {coursegradepercent} tag.
  • New {button}{/button} tags
  • New {ifnothome}{/ifnothome} tags.
  • New {label}{/label} tags.
  • New setting to enable/disable {categorycards} background.
  • New fc-categorycards class to {categorycards} to make it easier to customize.
  • New fc-categorycard-ID# class to {categorycards} to make it possible to customize background of card.
  • New {sectionname} tag.
  • New {hr} tag.
  • New {coursecardsbyenrol} tag.
  • New {userscountrycount} tag.
  • Missing support for {supportname}, {supportemail} and {supportpage} tags.
  • Known limitation in README.md regarding Moodle's 'Download course content' feature.
  • Compatible with Moodle 4.0 (ALPHA) - Note: Custom menu patch does not work in 4.0 yet.

Updated

  • Improve parsing of {scrape} tag. Improper syntax will no longer make Moodle crash, the tag just won't work properly.
  • {lang}, {idnumber} and {coursegradepercent} tags can now be used within other tags for example.
  • {coursesummary} tag is now processed through Moodle filters for multi-language support.
  • Fixed {coursecards catid}.
  • Fixed many tags that did not work if they contained a line break.
  • Tag %7Bcoursecontextid%7D now works.
  • Fix-166,168,191 multiple instances of date/time related tags (firstaccessdate, coursestartdate, courseenddate, coursecompletiondate, now)
  • {coursesactive} no longer count courses that are before start date or after end date, if any.
  • Renamed {courseteachers} tag to {coursecontacts}. No longer ALPHA.
  • {coursecontacts} now display's based on role coursecontacts setting in Site Admin > Display > Courses.
  • The {highlight} tag now uses HTML5 mark tags instead of span tags.
  • Replaced Learn Moodle link with Moodle Academy in menudev.
  • Page Builder link now works in menudev.
  • Photo Editor link now works in menudev.
  • Screen Recorder link now works in menudev.
  • Fixed undefined COMPLETION_ENABLED error on Dashboard.
  • Full name now supports RTL languages.
  • Refactored the {coursecards} code. No longer displays empty list.
  • Fixed {ifprofile_field_...} tag visibility and clarified documentation.
  • {coursecards} no longer displays hidden courses or those whose end-dates are past, unless you are an administrator.
  • Results from {course_field_shortname} and {course_fields} are now processed through Moodle filters.
  • Updated the documentation and fix typos.
  • Updated copyright notice to include 2022.