mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
"MDL-17570, cleanup align property in div, merged from 1.9"
This commit is contained in:
parent
aafdb447bf
commit
85db96c5b4
@ -830,7 +830,7 @@
|
||||
echo ($filetemplate);
|
||||
}
|
||||
echo "</textarea>\n</div>\n";
|
||||
echo '<div 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) {
|
||||
|
@ -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 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 />';
|
||||
|
@ -283,7 +283,7 @@
|
||||
echo "</ul>\n";
|
||||
|
||||
if (!empty($sectionmenu)) {
|
||||
echo '<div align="center" class="jumpmenu">';
|
||||
echo '<div class="jumpmenu">';
|
||||
echo popup_form($CFG->wwwroot.'/course/view.php?id='.$course->id.'&', $sectionmenu,
|
||||
'sectionmenu', '', get_string('jumpto'), '', '', true);
|
||||
echo '</div>';
|
||||
|
@ -274,7 +274,7 @@
|
||||
echo "</ul>\n";
|
||||
|
||||
if (!empty($sectionmenu)) {
|
||||
echo '<div align="center" class="jumpmenu">';
|
||||
echo '<div class="jumpmenu">';
|
||||
echo popup_form($CFG->wwwroot.'/course/view.php?id='.$course->id.'&', $sectionmenu,
|
||||
'sectionmenu', '', get_string('jumpto'), '', '', true);
|
||||
echo '</div>';
|
||||
|
@ -51,7 +51,7 @@ function print_entry($course) {
|
||||
// in unencrypted connection...
|
||||
$wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
|
||||
}
|
||||
echo '<div 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>';
|
||||
|
@ -295,7 +295,7 @@ function message_get_contact($contactid) {
|
||||
function message_print_search_results($frm) {
|
||||
global $USER, $CFG, $DB;
|
||||
|
||||
echo '<div align="center">';
|
||||
echo '<div class="mdl-align">';
|
||||
|
||||
/// search for person
|
||||
if (!empty($frm->personsubmit) and !empty($frm->name)) {
|
||||
|
@ -227,7 +227,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 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>';
|
||||
|
@ -1017,7 +1017,7 @@ function forum_make_mail_html($course, $cm, $forum, $discussion, $post, $userfro
|
||||
$posthtml .= forum_make_mail_post($course, $cm, $forum, $discussion, $post, $userfrom, $userto, false, $canreply, true, false);
|
||||
|
||||
if ($canunsubscribe) {
|
||||
$posthtml .= '<hr /><div 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>';
|
||||
}
|
||||
|
@ -114,7 +114,7 @@
|
||||
print '</ul>';
|
||||
}
|
||||
print ''
|
||||
. '<div 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.'" />'
|
||||
|
@ -71,13 +71,13 @@
|
||||
$boxwidth = 500;
|
||||
if (trim(strip_tags($hotpot->summary))) {
|
||||
print_simple_box_start($boxalign, $boxwidth);
|
||||
print '<div 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 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="" /> ';
|
||||
|
@ -139,7 +139,7 @@
|
||||
switch ($mode) {
|
||||
case 'add':
|
||||
print_simple_box_start('center');
|
||||
echo '<div 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" />
|
||||
@ -194,7 +194,7 @@
|
||||
}
|
||||
|
||||
if (!has_capability('mod/lesson:manage', $context)) { // teachers don't need the links
|
||||
echo '<div align="center">';
|
||||
echo '<div class="mdl-align">';
|
||||
if ($link) {
|
||||
echo "<br /><div class=\"lessonbutton standardbutton\"><a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">".get_string("returntocourse", "lesson")."</a></div>";
|
||||
} else {
|
||||
|
@ -33,7 +33,7 @@
|
||||
</script>
|
||||
|
||||
<br />
|
||||
<div align="center" class="form">
|
||||
<div class="mdl-align form">
|
||||
<form id="myform">
|
||||
<fieldset class="invisiblefieldset">
|
||||
<input type="file" size="60" name="myfile" /><br />
|
||||
|
@ -39,7 +39,7 @@
|
||||
</script>
|
||||
|
||||
<br />
|
||||
<div align="center" class="form">
|
||||
<div class="mdl-align form">
|
||||
<form id="myform" action="localpath.php" method="post">
|
||||
<fieldset class="invisiblefieldset">
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>">
|
||||
@ -54,4 +54,4 @@
|
||||
</div>
|
||||
<?php
|
||||
print_footer('empty');
|
||||
?>
|
||||
?>
|
||||
|
@ -220,7 +220,7 @@
|
||||
if ($scoes = $DB->get_records_select('scorm_scoes',"scorm=? ORDER BY id", array($scorm->id))) {
|
||||
if (!empty($userdata)) {
|
||||
print_simple_box_start('center');
|
||||
echo '<div 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 />";
|
||||
@ -282,7 +282,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 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 align="center" class="darker">'.implode(" · ", $oa).'</div><br />';
|
||||
$o .= '<div class="mdl-align darker">'.implode(" · ", $oa).'</div><br />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -274,8 +274,7 @@
|
||||
?>
|
||||
</form>
|
||||
<br/>
|
||||
|
||||
<div align="center">
|
||||
<div class="mdl-align">
|
||||
<?php
|
||||
print_string('searching', 'search') . ': ';
|
||||
|
||||
@ -365,8 +364,8 @@
|
||||
}
|
||||
print_box_end();
|
||||
?>
|
||||
<div align="center">
|
||||
<?php
|
||||
<div class="mdl-align">
|
||||
<?php
|
||||
print_string('ittook', 'search');
|
||||
search_stopwatch();
|
||||
print_string('tofetchtheseresults', 'search');
|
||||
|
@ -326,7 +326,7 @@ class SearchQuery {
|
||||
$next = get_string('next', 'search');
|
||||
$back = get_string('back', 'search');
|
||||
|
||||
$ret = "<div 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) {
|
||||
@ -487,4 +487,4 @@ class SearchQuery {
|
||||
return $this->results_per_page;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -2431,6 +2431,8 @@ body#course-info .generalbox.info {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.jumpmenu {text-align:center}
|
||||
|
||||
/***
|
||||
*** Group
|
||||
***/
|
||||
|
Loading…
x
Reference in New Issue
Block a user