Skip to content
Snippets Groups Projects
Commit 5ac436be authored by Alexander Bias's avatar Alexander Bias
Browse files

Output introduction string in course news like it's done in block_course_overview

parent e9c82087
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ This plugin requires Moodle 2.9+
Changes
-------
* 2015-09-29 - Output introduction string in course news like it's done in block_course_overview
* 2015-08-21 - Change My Moodle to Dashboard in language pack
* 2015-08-18 - Check compatibility for Moodle 2.9, no functionality change
* 2015-03-21 - Bugfix: Block couldn't be placed on MyMoodle in some circumstances
......
......@@ -1089,7 +1089,17 @@ class block_course_overview_campus extends block_base {
// Output the course's preformatted news HTML
foreach ($coursenews[$c->id] as $modname => $html) {
echo '<div class="coc-module">';
// Output activity icon
echo $OUTPUT->pix_icon('icon', $modname, 'mod_'.$modname, array('class'=>'iconlarge'));
// Output activity introduction string
if (get_string_manager()->string_exists("activityoverview", $modname)) {
echo '<div class="overview">'.get_string("activityoverview", $modname).'</div>';
} else {
echo '<div class="overview">'.get_string("activityoverview", 'block_course_overview_campus', get_string('modulename', $modname)).'</div>';
}
// Output activity news
echo $html;
echo '</div>';
}
......
......@@ -17,6 +17,7 @@
defined('MOODLE_INTERNAL') || die();
$string['academicyear_desc'] = 'Academic year (Calendar year is not divided)';
$string['activityoverview'] = 'You have {$a}s that need attention';
$string['all'] = 'All';
$string['appearancesettingheading'] = 'Appearance';
$string['blocktitle'] = 'Block title';
......
......@@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'block_course_overview_campus';
$plugin->version = 2015051101;
$plugin->release = '2.9 (Build: 2015082100)';
$plugin->version = 2015051102;
$plugin->release = '2.9 (Build: 2015092900)';
$plugin->requires = 2015051100;
$plugin->maturity = MATURITY_STABLE;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment