if (course_ajax_enabled($course)) {
$straddeither = get_string('addresourceoractivity');
// The module chooser link
- $modchooser = '<div class="sectionaddmodule">';
- $modchooser .= '<div class="section_add_menus"><a class="sectionmodchooserlink" href="#">';
- $modchooser .= '<img alt="'.$straddeither.'" src="'.$OUTPUT->pix_url('t/add').'" class="activityicon"> ';
- $modchooser .= '<span class="instancename">'.$straddeither.'</span>';
- $modchooser .= '</a></div></div>';
+ $modchooser = html_writer::start_tag('div', array('class' => 'mdl-right'));
+ $modchooser.= html_writer::start_tag('div', array('class' => 'section-modchooser'));
+ $icon = $OUTPUT->pix_icon('t/add', $straddeither);
+ $span = html_writer::tag('span', $straddeither, array('class' => 'section-modchooser-text'));
+ $modchooser.= html_writer::link('#', $icon.$span, array('class' => 'section-modchooser-link'));
+ $modchooser.= html_writer::end_tag('div');
+ $modchooser.= html_writer::end_tag('div');
// Wrap the normal output in a noscript div
$usemodchooser = get_user_preferences('usemodchooser', 1);
var CSS = {
PAGECONTENT : 'div#page-content',
SECTION : 'li.section',
- SECTIONMODCHOOSER : 'a.sectionmodchooserlink',
+ SECTIONMODCHOOSER : 'a.section-modchooser-link',
SITEMENU : 'div.block_site_main_menu',
SITETOPIC : 'div.sitetopic'
};
$string['addnousersrecip'] = 'Add users who haven\'t accessed this {$a} to recipient list';
$string['addpagehere'] = 'Add page here';
$string['addresource'] = 'Add a resource...';
-$string['addresourceoractivity'] = 'Add a new resource or activity';
+$string['addresourceoractivity'] = 'Add a resource or activity';
$string['address'] = 'Address';
$string['addstudent'] = 'Add student';
$string['addsubcategory'] = 'Add a sub-category';
$string['nofilesselected'] = 'No files have been selected to restore';
$string['nofilesyet'] = 'No files have been uploaded to your course yet';
$string['nograde'] = 'No grade';
-$string['nohelpforactivityorresource'] = 'I\'m sorry, but there is currently no help associated with this resource or activity';
+$string['nohelpforactivityorresource'] = 'There is currently no help associated with this resource or activity';
$string['nochange'] = 'No change';
$string['noimagesyet'] = 'No images have been uploaded to your course yet';
$string['nologsfound'] = 'No logs have been found';