]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
w3c: fix HTML syntax errors 103/head
authorVirtualTam <virtualtam@flibidi.org>
Tue, 20 Jan 2015 01:35:52 +0000 (02:35 +0100)
committerVirtualTam <virtualtam@flibidi.org>
Tue, 20 Jan 2015 01:53:53 +0000 (02:53 +0100)
Fixes #64

All pages:
- add `urlencode` when passing the version to a custom stylesheet;
- set meaningful values of `alt` and `title` for QR-Code images.

Install page:
- the form's `action` attribute must be non-empty;
- the `valign` attribute is deprecated.

Signed-off-by: VirtualTam <virtualtam@flibidi.org>
index.php
tpl/includes.html
tpl/install.html
tpl/linklist.html

index 4cb25ab7a5800e19fdd3846403f3b82aa7457673..4a91220f9791f3a45ca1e762851b63d25aa33fb9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2129,7 +2129,7 @@ function install()
 
     // Display config form:
     list($timezone_form,$timezone_js) = templateTZform();
-    $timezone_html=''; if ($timezone_form!='') $timezone_html='<tr><td valign="top"><b>Timezone:</b></td><td>'.$timezone_form.'</td></tr>';
+    $timezone_html=''; if ($timezone_form!='') $timezone_html='<tr><td><b>Timezone:</b></td><td>'.$timezone_form.'</td></tr>';
 
     $PAGE = new pageBuilder;
     $PAGE->assign('timezone_html',$timezone_html);
index cc573801884ae2a5e01fd17cff495e3638e1aceb..efc658ebc2f4f3d8e97792f3e49977ffa97d2e26 100644 (file)
@@ -6,4 +6,4 @@
 <link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" />
 <link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" />
 <link type="text/css" rel="stylesheet" href="inc/shaarli.css?version={$version|urlencode}#" />
-{if="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version}#" />{/if}
+{if="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version|urlencode}#" />{/if}
index 32b8811be0856824acf8da15ff66d6df6b73e900..df42bf6d0fbe5187782364d04121d8272588bc4d 100644 (file)
@@ -5,7 +5,7 @@
 <div id="install">
 <h1>Shaarli</h1>       
 It looks like it's the first time you run Shaarli. Please configure it:<br>
-<form method="POST" action="" name="installform" id="installform">
+<form method="POST" action="#" name="installform" id="installform">
 <table>
 <tr><td><b>Login:</b></td><td><input type="text" name="setlogin" size="30"></td></tr>
 <tr><td><b>Password:</b></td><td><input type="password" name="setpassword" size="30"></td></tr>
index d5bfadf8669eb5b898d78925a0b5588443e354b7..16fc842d048a87d48c7821af77399a49f034dd6f 100644 (file)
@@ -52,7 +52,8 @@
                 <span class="linkarchive"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">archive</a> - </span>
                 {/if}
                 <div class="linkqrcode"><a href="http://qrfree.kaywa.com/?l=1&amp;s=8&amp;d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
-                    onclick="return showQrCode(this);" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code"></a></div> -
+                    onclick="return showQrCode(this);" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}">
+                   <img src="images/qrcode.png#" alt="QR-Code" title="{$value.localdate|htmlspecialchars}"></a></div> -
                 <a href="{$value.url|htmlspecialchars}"><span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span></a><br>
                 {if="$value.tags"}
                     <div class="linktaglist">