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 9457a80094b01f4d4ca7a48ce6b552c380aa92ad..9fe2c4e5bfb5193b5dab35e3773978ae21b818f2 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 e946a5bc7e00be25e217a5c5580744aa6533ff38..39b42ca6d12d44d2114ec5291fbccb31f02f73f6 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 0bd7a7bbd042352a18c438b2dc1922eaef3d67a9..87c58b9065a3a7e0c6a32050c51412399fd0f571 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 18d1f40e672780fc1645bb9b665638ee1c7b94a1..77ed7adbadc2d9dfe079361e89e54699b6c02b9e 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 7edda55be15827ef510fc65ab9b4f78204689800..fbb21a1bcdbdd49218d56d8083f57a0309e5dc7e 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>