]> git.mjollnir.org Git - moodle.git/commitdiff
Adding space in channel <img /> element. Minor whitespace cleanup.
authornfreear <nfreear>
Fri, 1 Dec 2006 10:10:56 +0000 (10:10 +0000)
committernfreear <nfreear>
Fri, 1 Dec 2006 10:10:56 +0000 (10:10 +0000)
blocks/login/block_login.php
blocks/rss_client/block_rss_client.php

index a32be62a2cb34a6f23ba1b03e44101fc1a2fb345..45c956089c5cf80877fbaca5c8e8d9d3fc9a2d88 100644 (file)
@@ -3,7 +3,7 @@
 class block_login extends block_base {
     function init() {
         $this->title = get_string('login');
-        $this->version = 2004081600;
+        $this->version = 2006102700; //TODO
     }
 
     function applicable_formats() {
@@ -48,18 +48,19 @@ class block_login extends block_base {
         $this->content->text = '';
 
         if (empty($USER->loggedin) or isguest()) {   // Show the block
-            $this->content->text .= '<form class="loginform" name="login" method="post" action="'.$wwwroot.'/login/index.php">';
-            $this->content->text .= '<table align="center" cellpadding="2" cellspacing="0" class="logintable">';
+///            $this->content->text .= '<style> .loginform div { margin:0.4em 0.4em; text-align:right; } .loginform input { width: 6em; } .r2 input { text-align:center; } </style>'; //DONOTCOMMIT:TODO
 
-            $this->content->text .= '<tr><td class="c0 r0" align="right">'.get_string('username').':</td>';
-            $this->content->text .= '<td class="c1 r0"><input type="text" name="username" size="10" value="'.$username.'" /></td></tr>';
+            $this->content->text .= "\n".'<form class="loginform" name="login" method="post" action="'.$wwwroot.'/login/index.php">';
 
-            $this->content->text .= '<tr><td class="c0 r1" align="right">'.get_string('password').':</td>';
-            $this->content->text .= '<td class="c1 r1"><input type="password" name="password" size="10" value="" /></td></tr>';
+            $this->content->text .= '<div class="r0"><label for="login_username">'.get_string('username').'</label>: ';
+            $this->content->text .= '<input type="text" name="username" id="login_username" value="'.$username.'" /></div>';
 
-            $this->content->text .= '<tr><td class="c0 r2">&nbsp;</td><td class="c1 r2" align="left"><input type="submit" value="'.get_string('login').'" /></td></tr>';
+            $this->content->text .= '<div class="r1"><label for="login_password">'.get_string('password').'</label>: ';
+            $this->content->text .= '<input type="password" name="password" id="login_password" value="" /></div>';
 
-            $this->content->text .= '</table></form>';
+            $this->content->text .= '<div class="r2"><input type="submit" value="'.get_string('login').'" /></div>';
+
+            $this->content->text .= "</form>\n";
 
             if (!empty($signup)) {
                 $this->content->footer .= '<div><a href="'.$signup.'">'.get_string('startsignup').'</a></div>';
index 6841dffb3d09a1e2c074952e03df808a72572b45..c2c9914827069c37b0d5eba8238f801ec6f84666 100644 (file)
                     isset($this->config->block_rss_client_show_channel_image) && 
                         $this->config->block_rss_client_show_channel_image &&
                             isset($rss->image) && isset($rss->image['link']) && isset($rss->image['title']) && isset($rss->image['url']) ) {
-                $returnstring .= '<div class="image" title="'. $rss->image['title'] .'"><a href="'. $rss->image['link'] .'"><img src="'. $rss->image['url'] .'" alt="'. $rss->image['title'] .'"/></a></div>';
+                $returnstring .= "\n".'<div class="image" title="'. $rss->image['title'] .'"><a href="'. $rss->image['link'] .'"><img src="'. $rss->image['url'] .'" alt="'. $rss->image['title'] .'" /></a></div>';
             }
 
             if ($showtitle) {
                 $returnstring .= '<div class="title">'. $feedtitle .'</div>';
-            } 
+            }
 
             $formatoptions->para = false;
 
          }
      }
 }
-?>
+
+?>
\ No newline at end of file