Skip to content

Commit

Permalink
More!
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Mar 11, 2016
1 parent bb2edde commit 83ec9dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block_theme_selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function get_content() {
$selectdataarray['data-urlparams'] = (strpos($pageurl, '?') === false) ? 1 : 2;
}
$selectdataarray['aria-labelledby'] = 'themeselectorselectlabel';
$selectdataarray['id'] = 'themeselectorselect';
$this->page->requires->js_call_amd('block_theme_selector/block_theme_selector', 'init', array());

// Add a dropdown to switch themes.
Expand All @@ -82,7 +83,7 @@ public function get_content() {
}
$this->content->text .= html_writer::start_tag('form', array('class' => 'themeselectorselect'));
$this->content->text .= html_writer::tag('label', get_string('changetheme', 'block_theme_selector'),
array('id' => 'themeselectorselectlabel'));
array('id' => 'themeselectorselectlabel', 'for' => 'themeselectorselect'));
$this->content->text .= html_writer::select($options, 'choose', $current, false, $selectdataarray);
$this->content->text .= html_writer::end_tag('form');

Expand Down

0 comments on commit 83ec9dc

Please sign in to comment.