Commit 4b58fc61 authored by lazydaisy's avatar lazydaisy
Browse files

MDL-55226 theme/index.php: Make theme selector responsive.

parent ddd8dc0d
......@@ -115,7 +115,8 @@ if (!empty($CFG->enabledevicedetection) && empty($device)) {
$screenshoturl = new moodle_url('/theme/image.php',
array('theme' => $themename, 'image' => 'screenshot', 'component' => 'theme'));
// Contents of the screenshot/preview cell.
$screenshotcell = html_writer::empty_tag('img', array('src' => $screenshoturl, 'alt' => $strthemename));
$screenshotcell = html_writer::empty_tag('img', array('class' => 'img-responsive img-fluid',
'src' => $screenshoturl, 'alt' => $strthemename));
// Show the name of the picked theme.
$headingthemename = $OUTPUT->heading($strthemename, 3);
}
......@@ -208,7 +209,8 @@ if (!empty($CFG->enabledevicedetection) && empty($device)) {
$screenshotpath = new moodle_url('/theme/image.php',
array('theme'=>$themename, 'image'=>'screenshot', 'component'=>'theme'));
// Contents of the first screenshot/preview cell.
$row[] = html_writer::empty_tag('img', array('src'=>$screenshotpath, 'alt'=>$strthemename));
$row[] = html_writer::empty_tag('img', array('class' => 'img-responsive img-fluid',
'src' => $screenshotpath, 'alt' => $strthemename));
// Contents of the second cell.
$infocell = $OUTPUT->heading($strthemename, 3);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment