transitional xhtml compliant
[booh] / lib / booh / html-merges.rb
index c4ef279f0c5223c6d3ae7e496a4598b1e1c9f7a7..8ae534322442399f967d617dc08f899f709f2b71 100644 (file)
@@ -24,10 +24,11 @@ require 'gettext'
 bindtextdomain("booh")
 
 require 'booh/booh-lib'
+require 'booh/version.rb'
 include Booh
 
-$image_head_code = <<'EOF'
-<meta name="generator" content="Generated by Booh! http://zarb.org/~gc/html/booh.html">
+$image_head_code = '<meta name="generator" content="Booh-' + $VERSION + <<'EOF'
+ http://zarb.org/~gc/html/booh.html"/>
 
 <script language="JavaScript1.1" type="text/JavaScript">
 var images = new Array(~~images~~);
@@ -424,25 +425,25 @@ onload="init()" id="body"
 EOF
 
 $button_first = '
-    <form><input type="button"
+    <form action="fake"><input type="button"
                  onclick="first()"
                  value="' + utf8(_('<<- First')) + '"
                  id="b_first"/></form>'
 
 $button_previous = '
-    <form><input type="button"
+    <form action="fake"><input type="button"
                  onclick="previous()"
                  value="' + utf8(_('<- Previous')) + '"
                  id="b_previous"/></form>'
 
 $button_next = '
-    <form><input type="button"
+    <form action="fake"><input type="button"
                  onclick="next()"
                  value="' + utf8(_('Next ->')) + '"
                  id="b_next"/></form>'
 
 $button_last = '
-    <form><input type="button"
+    <form action="fake"><input type="button"
                  onclick="last()"
                  value="' + utf8(_('Last ->>')) + '"
                  id="b_last"/></form>'
@@ -458,7 +459,7 @@ $pause_slideshow = '
 
 
 $image = <<'EOF'
-  <img name="main_img" class="image">
+  <img name="main_img" class="image" src="fake" alt="main image"/>
 EOF
 
 $image_counter_additions = <<'EOF'
@@ -473,8 +474,8 @@ $body_code = <<'EOF'
 EOF
 
 
-$thumbnails_head_code = <<'EOF'
-<meta name="generator" content="Generated by Booh! http://zarb.org/~gc/html/booh.html">
+$thumbnails_head_code = '<meta name="generator" content="Booh-' + $VERSION + <<'EOF'
+ http://zarb.org/~gc/html/booh.html"/>
 
 <script language="JavaScript1.1" type="text/JavaScript">
     var expires = new Date(new Date().getTime() + (30 * 86400000));  // 30 days