Skip to content

Commit

Permalink
Release 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed May 2, 2024
1 parent e51718a commit e211152
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 112 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.5.1] 2024-05-01
### Updated
- {iftheme} tag now works even when at the beginning of a string.
- Updated for Moodle coding guidelines.

## [2.5.0] 2024-04-24
### Added
- New {menucoursemore} tag.
Expand Down
216 changes: 106 additions & 110 deletions lang/en/filter_filtercodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,113 +25,53 @@

defined('MOODLE_INTERNAL') || die();

$string['pluginname'] = 'Filter Codes';
$string['filtername'] = 'Filter Codes';
$string['privacy:metadata'] = 'The Filter Codes plugin does not store any personal data about any user.';
$string['brief'] = 'Brief';
$string['categorycardshowpic'] = 'Show {categorycards} background';
$string['categorycardshowpic_desc'] = 'If enabled, will display a background colour/pattern for {categorycards} tag similar to the course images when no image was specified.';
$string['chartprogressbarlabel'] = '{$a->label}: {$a->value}';
$string['contentmissing'] = '<h1>Content is missing.</h1><p>Please notify the webmaster.</p>';
$string['coursecardsbyenrol'] = 'Maximum {coursecardsbyenrol} cards.';
$string['coursecardsbyenrol_desc'] = 'Maximum number of course cards to display for {coursecardsbyenrol} tag. Set to zero for unlimited (not recommended).';
$string['coursecardsformat'] = 'Course cards layout';
$string['coursecardsformat_desc'] = 'Display {coursecards}, {coursecardsbyenrol} and {mycoursescards} either:<br>
<ul>
<li><strong>Vertical</strong>: Course image above course name.</li>
<li><strong>Horizontal</strong>: Course image to the left of course name, category and summary; or</li>
<li><strong>List</strong> in a table: Course name, category and summary.</li>
</ul>';
$string['coursecontactlinktype'] = 'Contact link type';
$string['coursecontactlinktype_desc'] = 'Choose the type of link for the contact\'s link in the {coursecontacts} tags.';
$string['coursecontactshowdesc'] = 'Show contact\'s profile description.';
$string['coursecontactshowdesc_desc'] = 'If enabled, will display the contact\'s profile description in {coursecontacts} tags.';
$string['coursecontactshowpic'] = 'Show contact picture';
$string['coursecontactshowpic_desc'] = 'If enabled, will display the contact\'s profile picture in {coursecontacts} tags.';
$string['defaultemail'] = '';
$string['defaultfirstname'] = '';
$string['defaultsurname'] = '';
$string['defaultusername'] = '';
$string['defaultemail'] = '';
$string['disabled_customnav_description'] = '<strong>Note regarding support for custom menu</strong> - To enable support for FilterCodes in your Moodle site\'s custom menu, you may need to customize your theme or Moodle core. <a href="https://github.com/michael-milette/moodle-filter_filtercodes#filtercodes-in-a-custom-menu">Information on how to add FilterCodes support in custom menus</a>.';
$string['enable_customnav'] = 'Custom navigation support';
$string['enable_customnav_description'] = '<strong>Experimental</strong>: Enable support for FilterCode tags in Moodle custom navigation menu.
Note: Is known to be compatible with Clean and Boost based themes in Moodle 3.2 to 3.4 only. Does not filter tags on the Moodle Theme Settings page.';
$string['disabled_customnav_description'] = '<strong>Note regarding support for custom menu</strong> - To enable support for FilterCodes in your Moodle site\'s custom menu, you may need to customize your theme or Moodle core. <a href="https://github.com/michael-milette/moodle-filter_filtercodes#filtercodes-in-a-custom-menu">Information on how to add FilterCodes support in custom menus</a>.';
$string['enable_scrape'] = 'Scrape tag support';
$string['enable_scrape_description'] = 'Enable the scrape tag.';
$string['enable_sesskey'] = 'Sesskey tag support';
$string['enable_sesskey_description'] = 'Enable the sesskey tag globally. This feature is disabled in forums even when enabled globally.';
$string['escapebraces'] = 'Escape tags';
$string['escapebraces_desc'] = 'When this option is checked, you will be able to display FilterCode tags without them being interpreted by this filter by wrapping your tag in [ brackets ]. This can be very useful when creating FilterCodes documentation for the teachers and course creators on your Moodle site.<br><br>Example: [{fullname}] will not display the user\'s full name but display the {fullname} tag instead without the brackets.';
$string['hidecompletedcourses'] = 'Hide completed courses';
$string['hidecompletedcourses_desc'] = 'Enable to filter out completed courses in {mycoursesmenu} tag listings.';
$string['nocompletedcourses'] = 'None of the courses in which you are enrolled have been marked as completed.';
$string['coursecontactshowpic'] = 'Show contact picture';
$string['coursecontactshowpic_desc'] = 'If enabled, will display the contact\'s profile picture in {coursecontacts} tags.';
$string['coursecontactshowdesc'] = 'Show contact\'s profile description.';
$string['coursecontactshowdesc_desc'] = 'If enabled, will display the contact\'s profile description in {coursecontacts} tags.';
$string['coursecontactlinktype'] = 'Contact link type';
$string['coursecontactlinktype_desc'] = 'Choose the type of link for the contact\'s link in the {coursecontacts} tags.';
$string['showhiddenprofilefields'] = 'Show hidden profile fields';
$string['showhiddenprofilefields_desc'] = 'Enable the {profile_field_...} tag to process all profile fields including ones hidden from the user.';
$string['ifprofilefiedonlyvisible'] = '{ifprofile_field_} only visible.';
$string['ifprofilefiedonlyvisible_desc'] = 'When checked, restrict the {ifprofile_field_...} tag to only access visible user profile fields. Hidden fields will behave as if they were empty. If unchecked, this tag will be also able to check hidden fields.';
$string['categorycardshowpic'] = 'Show {categorycards} background';
$string['categorycardshowpic_desc'] = 'If enabled, will display a background colour/pattern for {categorycards} tag similar to the course images when no image was specified.';
$string['coursecardsformat'] = 'Course cards layout';
$string['coursecardsformat_desc'] = 'Display {coursecards}, {coursecardsbyenrol} and {mycoursescards} either:<br>
<ul>
<li><strong>Vertical</strong>: Course image above course name.</li>
<li><strong>Horizontal</strong>: Course image to the left of course name, category and summary; or</li>
<li><strong>List</strong> in a table: Course name, category and summary.</li>
</ul>';
$string['coursecardsbyenrol'] = 'Maximum {coursecardsbyenrol} cards.';
$string['coursecardsbyenrol_desc'] = 'Maximum number of course cards to display for {coursecardsbyenrol} tag. Set to zero for unlimited (not recommended).';
$string['chartprogressbarlabel'] = '{$a->label}: {$a->value}';
$string['teamcardsformat'] = 'Team cards format';
$string['teamcardsformat_desc'] = 'Choose how the team members will appear in the {teamcards} tag.<br>
<ul>
<li><strong>None</strong>: Displays just the picture and name as a card without the user description.</li>
<li><strong>Icon</strong>: Same as none except that the user description appears in an information popup bubble.</li>
<li><strong>Brief</strong>: Same as none but displays the description below the user picture and name.</li>
<li><strong>Verbose</strong>: List format. Recommended if your team members tends to have long user descriptions.</li>
</ul>';
$string['brief'] = 'Brief';
$string['verbose'] = 'Verbose';
$string['teamcardslinktype'] = 'Team link type';
$string['teamcardslinktype_desc'] = 'Choose the type of link for the team member\'s link in the {teamcards} tag. Note: Photo will automatically be linked to profile when the user is logged-in regardless of your choice here.';
$string['narrowpage'] = 'Narrow page';
$string['narrowpage_desc'] = 'Enable this option to optimize display of information if Moodle is using a theme with limited page width (e.g., Boost in Moodle 4.0+).';
$string['sizeb'] = 'B';
$string['sizekb'] = 'KB';
$string['sizemb'] = 'MB';
$string['sizegb'] = 'GB';
$string['sizetb'] = 'TB';
$string['sizeeb'] = 'EB';
$string['sizezb'] = 'ZB';
$string['sizeyb'] = 'YB';

$string['globaltagheadingtitle'] = 'Global custom tags';
$string['globaltagheadingdesc'] = 'Define your own global tags, sometimes also called global blocks.';
$string['globaltagcount'] = 'Number of global tags.';
$string['globaltagcountdesc'] = 'Select the number of tags you want to define. For optimal performance, only select the the number you will need.';
$string['globaltagnametitle'] = 'Tag: global_';
$string['globaltagnamedesc'] = 'This will be part of your tag name, prefixed with "global_". Example: If you enter "address" here, your tag will be called {global_address}". Must be a single string of letters only. Spaces, numbers and special characters are not permitted.';
$string['globaltagcontenttitle'] = 'Content';
$string['globaltagcontentdesc'] = 'This is the content that your global tag will replace. Example: If your tag is called "{global_address}", that tag will be replaced by the content entered into this field.';
$string['pagebuilder'] = 'Page builder';
$string['pagebuilderlink'] = 'https://www.layoutit.com/build';
$string['photoeditor'] = 'Photo editor';
$string['photoeditorlink'] = 'https://pixlr.com/editor/';
$string['screenrec'] = 'Screen recorder';
$string['screenreclink'] = 'https://screenapp.io/#/recording';
$string['notavailable'] = 'Not available';

$string['moremenu'] = 'More'; // Only used for Moodle before 4.0.
$string['unenrolme'] = 'Unenrol me from this course'; // Only used for Moodle before 4.2.

$string['formquickquestion'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf contact-us">
$string['filtername'] = 'Filter Codes';
$string['formcheckin'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf check-in">
<fieldset>
<div class="form-group">
<label for="subject" id="subjectlabel" class="d-block">Subject <strong class="required">(required)</strong></label>
<input class="block" id="subject" name="subject" type="text" size="57" maxlength="80" minlength="5"
title="Minimum 5 characters." required="required">
</div>
<div class="form-group">
<label for="message" id="messagelabel" class="d-block">Message <strong class="required">(required)</strong></label>
<textarea id="message" name="message" rows="5" cols="58" minlength="5"
title="Minimum 5 characters." required="required"></textarea>
</div>
<input type="hidden" id="subject" name="subject" value="Present!">
<input type="hidden" id="sesskey" name="sesskey" value="">
<script>document.getElementById("sesskey").value = M.cfg.sesskey;</script>
{recaptcha}
</fieldset>
<div>
<input type="submit" name="submit" id="submit" value="Send">
<input type="submit" name="submit" id="submit" value="I\'m here!">
</div>
</form>
';
</form>';
$string['formcontactus'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf contact-us">
<fieldset>
Expand Down Expand Up @@ -163,39 +103,28 @@
<input type="submit" name="submit" id="submit" value="Send">
</div>
</form>';

$string['formcourserequest'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf new-course-request">
$string['formquickquestion'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf contact-us">
<fieldset>
<div class="form-group">
<label for="name" id="namelabel" class="d-block">Your name <strong class="required">(required)</strong></label>
<input id="name" name="name" type="text" size="57" maxlength="45" pattern="[A-zÀ-ž]([A-zÀ-ž\s]){2,}"
title="Minimum 3 letters/spaces." required="required" {readonly}{ifloggedin} disabled{/ifloggedin} value="{fullname}">
</div>
<div class="form-group">
<label for="email" id="emaillabel" class="d-block">Email address <strong class="required">(required)</strong></label>
<input id="email" name="email" type="email" size="57" maxlength="60" required="required" {readonly}{ifloggedin} disabled{/ifloggedin} value="{email}">
</div>
<div class="form-group">
<label for="new_course_name" id="new_course_namelabel" class="d-block">Proposed name of the new course <strong class="required">(required)</strong></label>
<input id="new_course_name" name="new_course_name" type="text" size="57" maxlength="80" minlength="5"
<label for="subject" id="subjectlabel" class="d-block">Subject <strong class="required">(required)</strong></label>
<input class="block" id="subject" name="subject" type="text" size="57" maxlength="80" minlength="5"
title="Minimum 5 characters." required="required">
</div>
<div class="form-group">
<label for="description" id="descriptionlabel" class="d-block">Course description <strong class="required">(required)</strong></label>
<textarea id="description" name="description" rows="5" cols="58" minlength="5"
<label for="message" id="messagelabel" class="d-block">Message <strong class="required">(required)</strong></label>
<textarea id="message" name="message" rows="5" cols="58" minlength="5"
title="Minimum 5 characters." required="required"></textarea>
</div>
<input type="hidden" id="sesskey" name="sesskey" value="">
<script>document.getElementById("sesskey").value = M.cfg.sesskey;</script>
{recaptcha}
</fieldset>
<div>
<input type="submit" name="submit" id="submit" value="Submit request for this course">
<input type="submit" name="submit" id="submit" value="Send">
</div>
</form>
';

$string['formsupport'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf support-request">
<fieldset>
Expand Down Expand Up @@ -242,16 +171,83 @@
<input type="submit" name="submit" id="submit" value="Submit request for help">
</div>
</form>';
$string['globaltagcontentdesc'] = 'This is the content that your global tag will replace. Example: If your tag is called "{global_address}", that tag will be replaced by the content entered into this field.';
$string['globaltagcontenttitle'] = 'Content';
$string['globaltagcount'] = 'Number of global tags.';
$string['globaltagcountdesc'] = 'Select the number of tags you want to define. For optimal performance, only select the the number you will need.';
$string['globaltagheadingdesc'] = 'Define your own global tags, sometimes also called global blocks.';
$string['globaltagheadingtitle'] = 'Global custom tags';
$string['globaltagnamedesc'] = 'This will be part of your tag name, prefixed with "global_". Example: If you enter "address" here, your tag will be called {global_address}". Must be a single string of letters only. Spaces, numbers and special characters are not permitted.';
$string['globaltagnametitle'] = 'Tag: global_';
$string['hidecompletedcourses'] = 'Hide completed courses';
$string['hidecompletedcourses_desc'] = 'Enable to filter out completed courses in {mycoursesmenu} tag listings.';
$string['ifprofilefiedonlyvisible_desc'] = 'When checked, restrict the {ifprofile_field_...} tag to only access visible user profile fields. Hidden fields will behave as if they were empty. If unchecked, this tag will be also able to check hidden fields.';
$string['ifprofilefiedonlyvisible'] = '{ifprofile_field_} only visible.';
$string['moremenu'] = 'More'; // Only used for Moodle before 4.0.
$string['narrowpage'] = 'Narrow page';
$string['narrowpage_desc'] = 'Enable this option to optimize display of information if Moodle is using a theme with limited page width (e.g., Boost in Moodle 4.0+).';
$string['nocompletedcourses'] = 'None of the courses in which you are enrolled have been marked as completed.';
$string['notavailable'] = 'Not available';
$string['pagebuilder'] = 'Page builder';
$string['pagebuilderlink'] = 'https://www.layoutit.com/build';
$string['photoeditor'] = 'Photo editor';
$string['photoeditorlink'] = 'https://pixlr.com/editor/';
$string['pluginname'] = 'Filter Codes';
$string['privacy:metadata'] = 'The Filter Codes plugin does not store any personal data about any user.';
$string['screenrec'] = 'Screen recorder';
$string['screenreclink'] = 'https://screenapp.io/#/recording';
$string['showhiddenprofilefields'] = 'Show hidden profile fields';
$string['showhiddenprofilefields_desc'] = 'Enable the {profile_field_...} tag to process all profile fields including ones hidden from the user.';
$string['sizeb'] = 'B';
$string['sizeeb'] = 'EB';
$string['sizegb'] = 'GB';
$string['sizekb'] = 'KB';
$string['sizemb'] = 'MB';
$string['sizetb'] = 'TB';
$string['sizeyb'] = 'YB';
$string['sizezb'] = 'ZB';
$string['teamcardsformat'] = 'Team cards format';
$string['teamcardsformat_desc'] = 'Choose how the team members will appear in the {teamcards} tag.<br>
<ul>
<li><strong>None</strong>: Displays just the picture and name as a card without the user description.</li>
<li><strong>Icon</strong>: Same as none except that the user description appears in an information popup bubble.</li>
<li><strong>Brief</strong>: Same as none but displays the description below the user picture and name.</li>
<li><strong>Verbose</strong>: List format. Recommended if your team members tends to have long user descriptions.</li>
</ul>';
$string['teamcardslinktype'] = 'Team link type';
$string['teamcardslinktype_desc'] = 'Choose the type of link for the team member\'s link in the {teamcards} tag. Note: Photo will automatically be linked to profile when the user is logged-in regardless of your choice here.';
$string['unenrolme'] = 'Unenrol me from this course'; // Only used for Moodle before 4.2.
$string['verbose'] = 'Verbose';

$string['formcheckin'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf check-in">

$string['formcourserequest'] = '
<form action="{wwwroot}/local/contact/index.php" method="post" class="cf new-course-request">
<fieldset>
<input type="hidden" id="subject" name="subject" value="Present!">
<div class="form-group">
<label for="name" id="namelabel" class="d-block">Your name <strong class="required">(required)</strong></label>
<input id="name" name="name" type="text" size="57" maxlength="45" pattern="[A-zÀ-ž]([A-zÀ-ž\s]){2,}"
title="Minimum 3 letters/spaces." required="required" {readonly}{ifloggedin} disabled{/ifloggedin} value="{fullname}">
</div>
<div class="form-group">
<label for="email" id="emaillabel" class="d-block">Email address <strong class="required">(required)</strong></label>
<input id="email" name="email" type="email" size="57" maxlength="60" required="required" {readonly}{ifloggedin} disabled{/ifloggedin} value="{email}">
</div>
<div class="form-group">
<label for="new_course_name" id="new_course_namelabel" class="d-block">Proposed name of the new course <strong class="required">(required)</strong></label>
<input id="new_course_name" name="new_course_name" type="text" size="57" maxlength="80" minlength="5"
title="Minimum 5 characters." required="required">
</div>
<div class="form-group">
<label for="description" id="descriptionlabel" class="d-block">Course description <strong class="required">(required)</strong></label>
<textarea id="description" name="description" rows="5" cols="58" minlength="5"
title="Minimum 5 characters." required="required"></textarea>
</div>
<input type="hidden" id="sesskey" name="sesskey" value="">
<script>document.getElementById("sesskey").value = M.cfg.sesskey;</script>
{recaptcha}
</fieldset>
<div>
<input type="submit" name="submit" id="submit" value="I\'m here!">
<input type="submit" name="submit" id="submit" value="Submit request for this course">
</div>
</form>';
</form>
';
Loading

0 comments on commit e211152

Please sign in to comment.