Skip to content

Commit

Permalink
Merge pull request #107 from isuru89/release_2.0
Browse files Browse the repository at this point in the history
Release 2.0
  • Loading branch information
isuru89 authored Mar 8, 2021
2 parents 7f22751 + b61d1b4 commit 5b0c257
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ before_install:
- nvm install 14.2
- nvm use 14.2
- cd ../..
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"

install:
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Moodle - Local Reminders
---
![Version](https://img.shields.io/badge/version-v2.2.3-blue)
![Version](https://img.shields.io/badge/version-v2.2.4-blue)
![Moodle Version](https://img.shields.io/badge/moodle-%3E%3D%203.5-orange)
![License](https://img.shields.io/badge/license-GPL%20v3-green)
[![Build Status](https://travis-ci.org/isuru89/moodle-reminders-for-calendar-events.svg?branch=master)](https://travis-ci.org/isuru89/moodle-reminders-for-calendar-events)
Expand Down Expand Up @@ -94,6 +94,9 @@ In addition to above, user can control reminders for calendar event changes per

## Changelog

### v2.2.4
* Removed hardcoded strings (overdue text and moodle calendar name) #105

### v2.2.3
* Added privacy provider for the plugin (#99)

Expand Down
4 changes: 3 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Author: Isuru Madushanka Weerarathna ([email protected])
Blog: https://medium.com/@isuru89
Copyright: 2020 Isuru Madushanka Weerarathna
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Version: 2.2.3
Version: 2.2.4

== Introduction ==
This plugin will create a set of reminders for Moodle calendar events and will send them automatically
Expand All @@ -30,6 +30,8 @@ to recall their scheduled event before the actual moment.
6. Now you can change the plug-in specific settings via Site Administration -> Plugins -> Local Plugins -> Reminders.

== Change Log ==
v2.2.4
+ Removed hardcoded strings (overdue text and moodle calendar name) #105
v2.2.3
+ Added privacy provider (#99)
v2.2.2
Expand Down
3 changes: 2 additions & 1 deletion contents/category_reminder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public function get_message_html($user=null, $changetype=null) {

$contenttitle = $this->get_message_title();
if (!isemptystring($changetype)) {
$contenttitle = "[$changetype]: $contenttitle";
$titleprefixlangstr = get_string('calendarevent'.strtolower($changetype).'prefix', 'local_reminders');
$contenttitle = "[$titleprefixlangstr]: $contenttitle";
}
$htmlmail .= html_writer::start_tag('tr');
$htmlmail .= html_writer::start_tag('td', array('colspan' => 2));
Expand Down
3 changes: 2 additions & 1 deletion contents/course_reminder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public function get_message_html($user=null, $changetype=null) {

$contenttitle = $this->get_message_title();
if (!isemptystring($changetype)) {
$contenttitle = "[$changetype]: $contenttitle";
$titleprefixlangstr = get_string('calendarevent'.strtolower($changetype).'prefix', 'local_reminders');
$contenttitle = "[$titleprefixlangstr]: $contenttitle";
}
$htmlmail .= html_writer::start_tag('tr');
$htmlmail .= html_writer::start_tag('td', array('colspan' => 2));
Expand Down
3 changes: 2 additions & 1 deletion contents/due_reminder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public function get_message_html($user=null, $changetype=null) {

$contenttitle = $this->get_message_title();
if (!isemptystring($changetype)) {
$contenttitle = "[$changetype]: $contenttitle";
$titleprefixlangstr = get_string('calendarevent'.strtolower($changetype).'prefix', 'local_reminders');
$contenttitle = "[$titleprefixlangstr]: $contenttitle";
}
$htmlmail .= html_writer::start_tag('tr');
$htmlmail .= html_writer::start_tag('td', array('colspan' => 2));
Expand Down
3 changes: 2 additions & 1 deletion contents/group_reminder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public function get_message_html($user=null, $changetype=null) {

$contenttitle = $this->get_message_title();
if (!isemptystring($changetype)) {
$contenttitle = "[$changetype]: $contenttitle";
$titleprefixlangstr = get_string('calendarevent'.strtolower($changetype).'prefix', 'local_reminders');
$contenttitle = "[$titleprefixlangstr]: $contenttitle";
}
$htmlmail .= html_writer::start_tag('tr');
$htmlmail .= html_writer::start_tag('td', array('colspan' => 2));
Expand Down
3 changes: 2 additions & 1 deletion contents/site_reminder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function get_message_html($user=null, $changetype=null) {

$contenttitle = $this->get_message_title();
if (!isemptystring($changetype)) {
$contenttitle = "[$changetype]: $contenttitle";
$titleprefixlangstr = get_string('calendarevent'.strtolower($changetype).'prefix', 'local_reminders');
$contenttitle = "[$titleprefixlangstr]: $contenttitle";
}
$htmlmail .= html_writer::start_tag('tr');
$htmlmail .= html_writer::start_tag('td', array('colspan' => 2));
Expand Down
3 changes: 2 additions & 1 deletion contents/user_reminder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public function get_message_html($user=null, $changetype=null) {

$contenttitle = $this->get_message_title();
if (!isemptystring($changetype)) {
$contenttitle = "[$changetype]: $contenttitle";
$titleprefixlangstr = get_string('calendarevent'.strtolower($changetype).'prefix', 'local_reminders');
$contenttitle = "[$titleprefixlangstr]: $contenttitle";
}
$htmlmail .= html_writer::start_tag('tr');
$htmlmail .= html_writer::start_tag('td', array('colspan' => 2));
Expand Down
1 change: 1 addition & 0 deletions lang/en/local_reminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
$string['messageprovider:reminders_user'] = 'Reminder notifications for User events';
$string['messagetitleprefix'] = 'Message Title Prefix:';
$string['messagetitleprefixdescription'] = 'This text will be inserted as a prefix (within square brackets) to the title of every reminder message is being sent.';
$string['moodlecalendarname'] = 'Moodle Calendar';
$string['overduemessage'] = 'This activity is overdue!';
$string['pluginname'] = 'Event Reminders';
$string['privacy:metadata'] = 'The Event Reminders plugin does not store any personal data.';
Expand Down
3 changes: 2 additions & 1 deletion reminder.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ protected function pluralize($number, $text) {
protected function get_html_footer() {
global $CFG;

$calendarlink = html_writer::link($CFG->wwwroot.'/calendar/index.php', 'Moodle Calendar', array('target' => '_blank'));
$moodlecalendarname = get_string('moodlecalendarname', 'local_reminders');
$calendarlink = html_writer::link($CFG->wwwroot.'/calendar/index.php', $moodlecalendarname, array('target' => '_blank'));
$footer = html_writer::start_tag('tr');
$footer .= html_writer::start_tag('td', array('style' => $this->footerstyle, 'colspan' => 2));
$footer .= get_string('reminderfrom', 'local_reminders').' ';
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

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

$plugin->version = 2021010800;
$plugin->version = 2021030800;
$plugin->requires = 2018051700; // Require moodle 3.5 or higher.
$plugin->release = '2.2.3';
$plugin->release = '2.2.4';
$plugin->maturity = MATURITY_RC;
$plugin->component = 'local_reminders';

0 comments on commit 5b0c257

Please sign in to comment.