"MDL-17570, cleanup inline css settings"
This commit is contained in:
+1
-1
@@ -830,7 +830,7 @@
|
||||
echo ($filetemplate);
|
||||
}
|
||||
echo "</textarea>\n</div>\n";
|
||||
echo '<div style="text-align:center"><input type="submit" value="'.get_string('savechanges').'" /></div>';
|
||||
echo '<div class="mdl-align"><input type="submit" value="'.get_string('savechanges').'" /></div>';
|
||||
echo '</form>';
|
||||
$preview_url = lang_help_preview_url($currentfile, !$uselocal);
|
||||
if ($preview_url) {
|
||||
|
||||
+1
-1
@@ -186,7 +186,7 @@ $langdir/$currentfile")."</font></p>";
|
||||
if ($preview_url) {
|
||||
link_to_popup_window($preview_url, 'popup', get_string('preview'));
|
||||
}
|
||||
echo '<div style="text-align:center"><input type="submit" value="'.get_string('savechanges').': lang/'.$currentlang.'/'.$currentfile.'" /></div>';
|
||||
echo '<div class="mdl-align"><input type="submit" value="'.get_string('savechanges').': lang/'.$currentlang.'/'.$currentfile.'" /></div>';
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ print_heading('Search and replace text throughout the whole database');
|
||||
if (!data_submitted() or !$search or !$replace or !confirm_sesskey()) { /// Print a form
|
||||
|
||||
print_simple_box_start('center');
|
||||
echo '<div style="text-align:center">';
|
||||
echo '<div class="mdl-align">';
|
||||
echo '<form action="replace.php" method="post">';
|
||||
echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
|
||||
echo 'Search whole database for: <input type="text" name="search" /><br />';
|
||||
|
||||
@@ -69,7 +69,7 @@ class enrolment_plugin_authorize
|
||||
print_simple_box_start('center', '80%');
|
||||
if ($USER->username == 'guest') { // only real guest user, not for users with guest role
|
||||
$curcost = get_course_cost($course);
|
||||
echo '<div align="center">';
|
||||
echo '<div class="mdl-align">';
|
||||
echo '<p>'.get_string('paymentrequired').'</p>';
|
||||
echo '<p><b>'.get_string('cost').": $curcost[currency] $curcost[cost]".'</b></p>';
|
||||
echo '<p><a href="'.$CFG->httpswwwroot.'/login/">'.get_string('loginsite').'</a></p>';
|
||||
|
||||
@@ -51,7 +51,7 @@ function print_entry($course) {
|
||||
// in unencrypted connection...
|
||||
$wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
|
||||
}
|
||||
echo '<div style="text-align:center"><p>'.get_string('paymentrequired').'</p>';
|
||||
echo '<div class="mdl-align"><p>'.get_string('paymentrequired').'</p>';
|
||||
echo '<p><b>'.get_string('cost').": $CFG->enrol_currency $cost".'</b></p>';
|
||||
echo '<p><a href="'.$wwwroot.'/login/">'.get_string('loginsite').'</a></p>';
|
||||
echo '</div>';
|
||||
|
||||
+1
-1
@@ -300,7 +300,7 @@ function message_get_contact($contactid) {
|
||||
function message_print_search_results($frm) {
|
||||
global $USER, $CFG;
|
||||
|
||||
echo '<div style="text-align:center">';
|
||||
echo '<div class="mdl-align">';
|
||||
|
||||
/// search for person
|
||||
if (!empty($frm->personsubmit) and !empty($frm->name)) {
|
||||
|
||||
+1
-1
@@ -200,7 +200,7 @@ class data_field_base { // Base class for Database Field Types (see field/*/
|
||||
|
||||
require_once($CFG->dirroot.'/mod/data/field/'.$this->type.'/mod.html');
|
||||
|
||||
echo '<div style="text-align:center">';
|
||||
echo '<div class="mdl-align">';
|
||||
echo '<input type="submit" value="'.$savebutton.'" />'."\n";
|
||||
echo '<input type="submit" name="cancel" value="'.get_string('cancel').'" />'."\n";
|
||||
echo '</div>';
|
||||
|
||||
+1
-1
@@ -900,7 +900,7 @@ function forum_make_mail_html($course, $forum, $discussion, $post, $userfrom, $u
|
||||
$posthtml .= forum_make_mail_post($course, $forum, $discussion, $post, $userfrom, $userto, false, $canreply, true, false);
|
||||
|
||||
if ($canunsubscribe) {
|
||||
$posthtml .= '<hr /><div style="text-align:center" class="unsubscribelink">
|
||||
$posthtml .= '<hr /><div class="mdl-align unsubscribelink">
|
||||
<a href="'.$CFG->wwwroot.'/mod/forum/subscribe.php?id='.$forum->id.'">'.get_string('unsubscribe', 'forum').'</a>
|
||||
<a href="'.$CFG->wwwroot.'/mod/forum/unsubscribeall.php">'.get_string('unsubscribeall', 'forum').'</a></div>';
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
print '</ul>';
|
||||
}
|
||||
print ''
|
||||
. '<div style="text-align:center"><table border="0"><tr><td>'
|
||||
. '<div class="mdl-align"><table border="0"><tr><td>'
|
||||
. '<form target="_parent" method="post" action="'.$ME.'">'
|
||||
. '<input type="hidden" name="id" value="'.$course->id.'" />'
|
||||
. '<input type="hidden" name="regrade" value="'.$regrade.'" />'
|
||||
|
||||
+2
-2
@@ -71,13 +71,13 @@
|
||||
$boxwidth = 500;
|
||||
if (trim(strip_tags($hotpot->summary))) {
|
||||
print_simple_box_start($boxalign, $boxwidth);
|
||||
print '<div style="text-align:center">'.format_text($hotpot->summary)."</div>\n";
|
||||
print '<div class="mdl-align">'.format_text($hotpot->summary)."</div>\n";
|
||||
print_simple_box_end();
|
||||
print "<br />\n";
|
||||
}
|
||||
print '<form id="passwordform" method="post" action="view.php?id='.$cm->id.'">'."\n";
|
||||
print_simple_box_start($boxalign, $boxwidth);
|
||||
print '<div style="text-align:center">';
|
||||
print '<div class="mdl-align">';
|
||||
print get_string('requirepasswordmessage', 'quiz').'<br /><br />';
|
||||
print '<b>'.get_string('password').':</b> ';
|
||||
print '<input name="hppassword" type="password" value="" /> ';
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
switch ($mode) {
|
||||
case 'add':
|
||||
print_simple_box_start('center');
|
||||
echo '<div style="text-align:center">
|
||||
echo '<div class="mdl-align">
|
||||
<form id="nickname" method ="post" action="'.$CFG->wwwroot.'/mod/lesson/highscores.php" autocomplete="off">
|
||||
<input type="hidden" name="id" value="'.$cm->id.'" />
|
||||
<input type="hidden" name="mode" value="save" />
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</script>
|
||||
|
||||
<br />
|
||||
<div style="text-align:center" class="form">
|
||||
<div class="form mdl-align">
|
||||
<form id="myform">
|
||||
<fieldset class="invisiblefieldset">
|
||||
<input type="file" size="60" name="myfile" /><br />
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</script>
|
||||
|
||||
<br />
|
||||
<div style="text-align:center" class="form">
|
||||
<div class="form mdl-align">
|
||||
<form id="myform" action="localpath.php" method="post">
|
||||
<fieldset class="invisiblefieldset">
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>">
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
if ($scoes = get_records_select('scorm_scoes',"scorm='$scorm->id' ORDER BY id")) {
|
||||
if (!empty($userdata)) {
|
||||
print_simple_box_start('center');
|
||||
echo '<div style="text-align:center">'."\n";
|
||||
echo '<div class="mdl-align">'."\n";
|
||||
print_user_picture($user, $course->id, $userdata->picture, false, false);
|
||||
echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user&course=$course->id\">".
|
||||
"$userdata->firstname $userdata->lastname</a><br />";
|
||||
@@ -279,7 +279,7 @@
|
||||
print_simple_box_start('center');
|
||||
//print_heading(format_string($sco->title));
|
||||
print_heading('<a href="'.$CFG->wwwroot.'/mod/scorm/player.php?a='.$scorm->id.'&mode=browse&scoid='.$sco->id.'" target="_new">'.format_string($sco->title).'</a>');
|
||||
echo '<div style="text-align:center">'."\n";
|
||||
echo '<div class="mdl-align">'."\n";
|
||||
print_user_picture($user, $course->id, $userdata->picture, false, false);
|
||||
echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user&course=$course->id\">".
|
||||
"$userdata->firstname $userdata->lastname</a><br />";
|
||||
|
||||
@@ -216,7 +216,7 @@ function ewiki_page_filedownload($id, $data, $action, $def_sec="") {
|
||||
"orderby"=>$orderby, "section" => $sec)) .
|
||||
'">' . $title . "</a>";
|
||||
}
|
||||
$o .= '<div style="text-align:center" class="darker">'.implode(" · ", $oa).'</div><br />';
|
||||
$o .= '<div class="mdl-align darker">'.implode(" · ", $oa).'</div><br />';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -271,7 +271,7 @@
|
||||
</form>
|
||||
<br/>
|
||||
|
||||
<div style="text-align:center">
|
||||
<div class="mdl-align">
|
||||
<?php
|
||||
print_string('searching', 'search') . ': ';
|
||||
|
||||
|
||||
+1
-1
@@ -315,7 +315,7 @@ class SearchQuery {
|
||||
$next = get_string('next', 'search');
|
||||
$back = get_string('back', 'search');
|
||||
|
||||
$ret = "<div style='text-align:center' id='search_page_links'>";
|
||||
$ret = "<div class='mdl-align' id='search_page_links'>";
|
||||
|
||||
//Back is disabled if we're on page 1
|
||||
if ($page > 1) {
|
||||
|
||||
Reference in New Issue
Block a user