]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-17570, cleanup align property in div, merged from 1.9"
authordongsheng <dongsheng>
Wed, 10 Dec 2008 06:48:54 +0000 (06:48 +0000)
committerdongsheng <dongsheng>
Wed, 10 Dec 2008 06:48:54 +0000 (06:48 +0000)
18 files changed:
admin/lang.php
admin/replace.php
course/format/topics/format.php
course/format/weeks/format.php
enrol/paypal/enrol.php
message/lib.php
mod/data/lib.php
mod/forum/lib.php
mod/hotpot/index.php
mod/hotpot/view.php
mod/lesson/highscores.php
mod/resource/type/file/localfile.php
mod/resource/type/file/localpath.php
mod/scorm/report.php
mod/wiki/ewiki/plugins/moodle/downloads.php
search/query.php
search/querylib.php
theme/standard/styles_layout.css

index 724b93d56ee2119cde4be36620c3c7df0e76e021..a89839326a0e2471c989ee60813713c5b222058c 100644 (file)
                     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) {
index 4e8df42be21e69e8f4afd9a4f1bc5e77f659974b..cd1ffb74af1426f8ece56fdda784fde018dc5420 100644 (file)
@@ -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 />';
index 9d91e5e1ea88c5fdd6ec8473a6495f8aecaf9c4e..fe8cb39f5f18fce54789a57847b38ba67b160cc5 100644 (file)
     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.'&amp;', $sectionmenu,
                    'sectionmenu', '', get_string('jumpto'), '', '', true);
         echo '</div>';
index 674ff48fbd54de99ab22aa1e1816a4637fd3d725..d000213d231632a8ca225f84b45ff481ced2ca69 100644 (file)
     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.'&amp;', $sectionmenu,
                    'sectionmenu', '', get_string('jumpto'), '', '', true);
         echo '</div>';
index 7cba406e955bb5a1acc9baf2fe18acdf0390b41c..f3851d0000ddb2a2ef4bb9e984026d708aadd4e2 100644 (file)
@@ -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>';
index 4e97406cceb16647b54739fe099a6a534b3a1669..89d8b5f70723fe1988f4bc9b3af137b29c485e42 100644 (file)
@@ -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)) {
index 5af8222b20bdc03388d08e4842be657ee48d4721..943902111ef5d598bcb6bdf9398b752ed5fe9349 100755 (executable)
@@ -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>';
index 90222060531484d911f684b4bccd70e5d27bfa1e..d367114b46717b57c830a281ea67092e83bd76b0 100644 (file)
@@ -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>&nbsp;
                       <a href="'.$CFG->wwwroot.'/mod/forum/unsubscribeall.php">'.get_string('unsubscribeall', 'forum').'</a></div>';
     }
index 70934fad3fede9608c4d1089a3114dab4262c6a7..5b06c525498e2283cdf07f0897bd64e417754c31 100644 (file)
                     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.'" />'
index 367da2a8f8188d24aa9c7f4d2246264784f72cda..2136d272fde9ddf7e6667fc5bfc5a99d05f1266d 100644 (file)
             $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="" /> ';
index abce2e24048d304feebbce12c3204bb99db0979d..d2ba6a4780b0e1d83a5e56374298a34daf20a178 100644 (file)
     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" />
             }
         
             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 {
index c3bfdf5b64ca5165f50018438ac4a57949c4126e..4bb560c5c605b494436e2e4574b07284516866e9 100644 (file)
@@ -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 />
index 7b2473998a9329203d6c1a551a9188cd5db98307..31d99455550b263136622b12a526e0445873aad8 100644 (file)
@@ -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');
-?>
\ No newline at end of file
+?>
index 02155de764ca77ed13b138413b4fb1e379827b00..e3a6ec19995051df2652da086553792b866ab00e 100755 (executable)
                 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&amp;course=$course->id\">".
                              "$userdata->firstname $userdata->lastname</a><br />";
             print_simple_box_start('center');
             //print_heading(format_string($sco->title));
             print_heading('<a href="'.$CFG->wwwroot.'/mod/scorm/player.php?a='.$scorm->id.'&amp;mode=browse&amp;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&amp;course=$course->id\">".
                  "$userdata->firstname $userdata->lastname</a><br />";
index 569806288253acfa62dd13eb31e3b924403855cc..06504bd6fe648f305ee915671d48dd010f0e9df5 100644 (file)
@@ -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(" &middot; ", $oa).'</div><br />';
+         $o .= '<div class="mdl-align darker">'.implode(" &middot; ", $oa).'</div><br />';
       }
    }
 
index 71e99af8f0ba5d6ae618f72d9c5ba97d8abbf64f..a073554e3a89f57efb438298b8ed6748f9888391 100644 (file)
     ?>
     </form>
     <br/>
-
-    <div align="center">
+    <div class="mdl-align">
     <?php
     print_string('searching', 'search') . ': ';
 
         }
         print_box_end();
     ?>
-    <div align="center">
-    <?php
+    <div class="mdl-align">
+    <?php 
         print_string('ittook', 'search');
         search_stopwatch();
         print_string('tofetchtheseresults', 'search');
index 7db4eef9ab43a1cbab1cefd79b091e4b88899887..ddb1fe59ddafcbc53bb3b627da0f31eb7258fe74 100644 (file)
@@ -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;
     }
 }
-?>
\ No newline at end of file
+?>
index 64da00c54c800aa6ed5594677d55ff7b5b8cfe26..e6b591296e33dc20c190085d1f1eaf4100e2ff47 100644 (file)
@@ -2431,6 +2431,8 @@ body#course-info .generalbox.info {
   text-align:center;
 }
 
+.jumpmenu {text-align:center}
+
 /***
  *** Group
  ***/