cleanup: worked a bit on valid html
authorArun Persaud <arun@nubati.net>
Sat, 10 May 2008 17:02:09 +0000 (10:02 -0700)
committerArun Persaud <arun@nubati.net>
Sat, 10 May 2008 17:02:09 +0000 (10:02 -0700)
the validator still shows some errors, but most are gone

Signed-off-by: Arun Persaud <arun@nubati.net>
themes/default/stylesheet.css
themes/default/templates/header.tpl
themes/default/templates/index.tpl
themes/default/templates/search.tpl
themes/default/templates/welcome.tpl

index 9457a80..9fe2c4e 100644 (file)
@@ -150,7 +150,7 @@ div.welcome {
    margin-right:           10px;
 }
 
-div.welcome div { 
+div.welcome  span { 
    float:                  left; 
    padding-right:          10px;
    width:                  150px; 
index e946a5b..39b42ca 100644 (file)
@@ -15,7 +15,7 @@
   <link rel="stylesheet" href="lightbox2/css/lightbox.css" type="text/css" media="screen" />
   { /if }
   { if $use_autocomplete }
-  <script src="autosuggest/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
+  <script type="text/javascript" src="autosuggest/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
   <link rel="stylesheet" href="autosuggest/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />
   { /if }
  </head>                                                                                                      
index 0bd7a7b..87c58b9 100644 (file)
@@ -4,7 +4,7 @@
   <!-- loading -->
 
   <div id="HTML_AJAX_LOADING">
-   <img src="resources/loading.gif" style="vertical-align: middle;" />&nbsp;&nbsp;Loading...
+   <img src="resources/loading.gif" style="vertical-align: middle;" alt="Loading..." />&nbsp;&nbsp;Loading...
   </div>
 
   <!-- top menu -->
@@ -25,7 +25,7 @@
   </div>
   <!-- /top menu -->
 
-  <span style="clear: both;">
+  <div style="clear: both;">
   <!-- option column -->
   <div class="options" style="float: left;">
    <div>
@@ -41,6 +41,6 @@
   <div id="content" class="content">
    {include file="welcome.tpl"}
   </div>
-  </span>
+  </div>
 
 {include file="footer.tpl"}
index 18d1f40..77ed7ad 100644 (file)
@@ -12,7 +12,7 @@
    { literal }
    <script type="text/javascript">
       var options = {
-         script: "rpc.php?action=getxmltaglist&",
+         script: "rpc.php?action=getxmltaglist&amp;",
          varname: "search",
          json: false,
          maxresults: 15
@@ -41,9 +41,9 @@
   <td>Date:</td>
   <td class="nowarp">
    { if ! $date_search_enabled }
-    <input type="checkbox" class="checkbox" name="consider_date" value="Y" onclick="datesearch();">
+    <input type="checkbox" class="checkbox" name="consider_date" value="Y" onclick="datesearch();" />
    { else }
-    <input type="checkbox" class="checkbox" name="consider_date" value="Y" onclick="datesearch();" checked="checked">
+    <input type="checkbox" class="checkbox" name="consider_date" value="Y" onclick="datesearch();" checked="checked" />
    { /if }
    consider date-range
   </td>
  </tr>
  <tr>
   <td>&nbsp;</td>
-  <td>{$from_date} <a href="javascript:showCalendar('from');" onclick="click(this);"><img src="resources/date.png" id="frompic"/></a></td>
+  <td>{$from_date} <a href="javascript:showCalendar('from');" onclick="click(this);"><img src="resources/date.png" id="frompic" alt="from" /></a></td>
  </tr>
  <tr>
   <td>&nbsp;</td>
   <td>
-   {$to_date} <a href="javascript:showCalendar('to');" onclick="click(this);"><img src="resources/date.png" id="topic" /></a>
+   {$to_date} <a href="javascript:showCalendar('to');" onclick="click(this);"><img src="resources/date.png" id="topic" alt="to" /></a>
   </td>
   <td>
    <input type="image" class="submit" src="resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
index 7edda55..fbb21a1 100644 (file)
@@ -5,30 +5,30 @@
 <div class="welcome">
 
  <p>
- <div>
-   <img src="phpfspot_img.php?idx=rand&width=150&i=1">
- </div>
+ <span>
+   <img src="phpfspot_img.php?idx=rand&amp;width=150&amp;i=1" alt="random image" />
+ </span>
   This application targets to provide an easy way, to presentate your F-Spot<br />
   pictures in the web, in a way where you do not need any of the current<br />
   web2.0 providers or setup complex apps like gallery
  </p>
 
- <br class="clearboth">
+ <br class="clearboth" />
 
  <p>
- <div>
-   <img src="phpfspot_img.php?idx=rand&width=150&i=2">
- </div>
+ <span>
+   <img src="phpfspot_img.php?idx=rand&amp;width=150&amp;i=2" alt="random image" />
+ </span>
   You can adapt this welcome page in the file "welcome.tpl" in the template<br />
   directory of your current theme.
  </p>
 
- <br class="clearboth">
+ <br class="clearboth" />
 
  <p>
- <div>
-   <img src="phpfspot_img.php?idx=rand&width=150&i=3">
- </div>
+ <span>
+   <img src="phpfspot_img.php?idx=rand&amp;width=150&amp;i=3" alt="random image" />
+ </span>
  <a href="javascript:showPhotoIndex();">[ Click here to take a look at your photo index or select a tag from the list on the left ]</a>
  </p>
 </div>