From b3d6ae7d49ab8dc177376a89315a1f47c508f48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Thu, 23 May 2019 13:56:57 +0200 Subject: [PATCH] Button classes added for Bootstrap based themes. --- lib/editor/atto/plugins/kalturamedia/ltibrowse_container.php | 1 + mod/kalvidassign/renderer.php | 3 ++- mod/kalvidres/mod_form.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/editor/atto/plugins/kalturamedia/ltibrowse_container.php b/lib/editor/atto/plugins/kalturamedia/ltibrowse_container.php index cb0ee8dd..0ae4107e 100644 --- a/lib/editor/atto/plugins/kalturamedia/ltibrowse_container.php +++ b/lib/editor/atto/plugins/kalturamedia/ltibrowse_container.php @@ -17,6 +17,7 @@ var buttonJs = window.opener.buttonJs; var embedButton = Y.Node.create(''); embedButton.setAttribute('id', 'KalturaMediaSubmit'); + embedButton.setAttribute('class', 'btn btn-primary'); embedButton.setAttribute('disabled', 'disabled'); embedButton.setHTML(""); embedButton.hide(); diff --git a/mod/kalvidassign/renderer.php b/mod/kalvidassign/renderer.php index a43c37f6..772789eb 100644 --- a/mod/kalvidassign/renderer.php +++ b/mod/kalvidassign/renderer.php @@ -691,7 +691,8 @@ public function display_instructor_buttons($cm, $userid) { $attr = array('type' => 'submit', 'name' => 'grade_submissions', - 'value' => get_string('gradesubmission', 'kalvidassign')); + 'value' => get_string('gradesubmission', 'kalvidassign'), + 'class' => 'btn btn-secondary'); $html .= html_writer::empty_tag('input', $attr); diff --git a/mod/kalvidres/mod_form.php b/mod/kalvidres/mod_form.php index 5d9bb511..b7098cbd 100644 --- a/mod/kalvidres/mod_form.php +++ b/mod/kalvidres/mod_form.php @@ -154,9 +154,9 @@ private function add_video_definition($mform) { $videogroup = array(); if ($addinstance) { - $videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('add_video', 'kalvidres')); + $videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('add_video', 'kalvidres'), array('class' => 'btn btn-secondary')); } else { - $videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('replace_video', 'kalvidres')); + $videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('replace_video', 'kalvidres'), array('class' => 'btn btn-secondary')); } $mform->addGroup($videogroup, 'video_group', ' ', ' ', false);