Skip to content

Commit

Permalink
Merge pull request WisdmLabs#39 from WisdmLabs/dev
Browse files Browse the repository at this point in the history
Dev to master for v1.0.9
  • Loading branch information
wisdmyogeshshirsath authored Sep 29, 2020
2 parents 6d4e874 + c2c960a commit c2fdd80
Show file tree
Hide file tree
Showing 32 changed files with 123 additions and 97 deletions.
2 changes: 1 addition & 1 deletion amd/build/format_card.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/format_card.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions amd/src/format_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ define([
}
});

$('.single-card').css({ opacity: 0.0, visibility: "visible", }).animate({ opacity: 1.0, }, 600, "swing");

// Call AJAX to set activity layout (Row or Card).
$('.remui-format-card.single-section-format .activity-cards .actions .toggle-row-column').on('click', function() {
var courseid = $('[data-courseid]').data('courseid');
Expand Down
9 changes: 8 additions & 1 deletion changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Version 1.0.9
Fixes
* Fixed resource creation using drag and drop.
* Fixed activity deletion issue with card layout.
* Fixed video playback issue with card layout section description.
* Fixed remui sidebar issue with Course format.

Version 1.0.8
Fixes
* Removed bootstrap classes from plugin CSS.
Expand Down Expand Up @@ -40,7 +47,7 @@ Version 1.0.4
Fixes
* Fixed issue when course layout resets on course restore.
* Fixed multi-language support for section/topic summary in card format.
* Fixed language support issue in activity count showed in the general section in card format.
* Fixed language support issue in activity count showed in the general section in card format.
* General section image changes when changed in the other duplicated course in List format.

Tweaks
Expand Down
3 changes: 1 addition & 2 deletions classes/course_format_data_common_trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* This is built using the bootstrapbase template to allow for new theme's using Moodle's new Bootstrap theme engine
*
Expand Down Expand Up @@ -475,7 +474,7 @@ public static function get_dummy_color_for_id($id) {
/**
* Fetches the last viewed activity from the database table mdl_logstore_standard_log.
*
* @param int $course Course ID.
* @param object $course Course ID.
* @return string Last viewed activity.
*/
public function get_activity_to_resume($course) {
Expand Down
1 change: 0 additions & 1 deletion classes/external/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Provides format_remuiformat\external\api class.
*
Expand Down
3 changes: 1 addition & 2 deletions classes/external/course_progress_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Provides format_remuiformat\external\course_progress_data trait.
*
Expand Down Expand Up @@ -105,7 +104,7 @@ public static function course_progress_data($courseid) {
public static function course_progress_data_returns() {
return new external_single_structure (
array(
'percentage' => new external_value(PARAM_NUMBER, 'Course completion percentage'),
'percentage' => new external_value(PARAM_FLOAT, 'Course completion percentage'),
'activitylist' => new external_multiple_structure(
new external_value(PARAM_TEXT, 'Activity count details'),
'Acitvity count list'
Expand Down
1 change: 0 additions & 1 deletion classes/external/move_activities.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Provides format_remuiformat\external\move_activities trait.
*
Expand Down
1 change: 0 additions & 1 deletion classes/external/move_activity_to_section.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Provides format_remuiformat\external\move_activity_to_section trait.
*
Expand Down
1 change: 0 additions & 1 deletion classes/external/show_activity_in_row.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Provides format_remuiformat\external\show_activity_in_row trait.
*
Expand Down
1 change: 0 additions & 1 deletion classes/mod_stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* This is built using the bootstrapbase template to allow for new theme's using Moodle's new Bootstrap theme engine
*
Expand Down
3 changes: 1 addition & 2 deletions classes/output/card_all_sections_summary_renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Sinigle Section Renderable - A topics based format that uses card layout to diaply the content.
*
Expand Down Expand Up @@ -179,8 +178,8 @@ private function get_card_format_context(&$export, $renderer, $editing, $rformat
$generalsectionsummary, 400
);
$export->generalsection['fullsummary'] = $generalsectionsummary;
// Get course image if added.

// Get course image if added.
$imgurl = $this->courseformatdatacommontrait->display_file($this->settings['remuicourseimage_filemanager']);
$imgurl = $this->courseformatdatacommontrait->display_file($this->settings['remuicourseimage_filemanager']);
if (empty($imgurl)) {
Expand Down
4 changes: 2 additions & 2 deletions classes/output/card_one_section_renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Activity Renderable - A topics based format that uses card layout to diaply the content.
*
Expand Down Expand Up @@ -211,7 +210,8 @@ private function get_activities_details($section, $displayoptions = array()) {
$activitydetails->move = course_get_cm_move($mod, $section->section);
$activitydetails->title = $this->courserenderer->course_section_cm_name($mod, $displayoptions);
$activitydetails->title .= $mod->afterlink;
$activitydetails->modulename = $mod->modfullname;
$activitydetails->modulename = $mod->modname;
$activitydetails->modulefullname = $mod->modfullname;
$activitydetails->summary = $this->modstats->get_formatted_summary(
$this->courserenderer->course_section_cm_text($mod, $displayoptions),
$this->settings
Expand Down
1 change: 0 additions & 1 deletion classes/output/list_all_sections_renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Sinigle Section Renderable - A topics based format that uses card layout to diaply the content.
*
Expand Down
1 change: 0 additions & 1 deletion classes/output/list_all_sections_summary_renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Sinigle Section Renderable - A topics based format that uses card layout to diaply the content.
*
Expand Down
5 changes: 2 additions & 3 deletions classes/output/list_one_section_renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Activity Renderable - A topics based format that uses card layout to diaply the content.
*
Expand Down Expand Up @@ -118,9 +117,9 @@ public function export_for_template(renderer_base $output) {

// Check if the section is hidden section.
if (!$sectioninfo->uservisible) {
if (!$course->hiddensections) {
if (!$this->course->hiddensections) {
$export->hiddensection = $renderer->start_section_list();
$export->hiddensection .= $renderer->section_hidden($displaysection, $this->course->id);
$export->hiddensection .= $renderer->section_hidden($this->displaysection, $this->course->id);
$export->hiddensection .= $renderer->end_section_list();
}
// Can't view this section.
Expand Down
Loading

0 comments on commit c2fdd80

Please sign in to comment.