aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.org>2015-01-20 02:35:52 +0100
committerVirtualTam <virtualtam@flibidi.org>2015-01-20 02:53:53 +0100
commit04751e044170c1dbc13fa51ee4ea9234ab541ab9 (patch)
tree09289e84bff2cb74680e3bd161615d655f653692 /tpl
parent486f25a5f4ab2a9191618edcb89ebb61350ff600 (diff)
downloadShaarli-04751e044170c1dbc13fa51ee4ea9234ab541ab9.tar.gz
Shaarli-04751e044170c1dbc13fa51ee4ea9234ab541ab9.tar.zst
Shaarli-04751e044170c1dbc13fa51ee4ea9234ab541ab9.zip
w3c: fix HTML syntax errors
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>
Diffstat (limited to 'tpl')
-rw-r--r--tpl/includes.html2
-rw-r--r--tpl/install.html2
-rw-r--r--tpl/linklist.html3
3 files changed, 4 insertions, 3 deletions
diff --git a/tpl/includes.html b/tpl/includes.html
index cc573801..efc658eb 100644
--- a/tpl/includes.html
+++ b/tpl/includes.html
@@ -6,4 +6,4 @@
6<link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" /> 6<link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" />
7<link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" /> 7<link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" />
8<link type="text/css" rel="stylesheet" href="inc/shaarli.css?version={$version|urlencode}#" /> 8<link type="text/css" rel="stylesheet" href="inc/shaarli.css?version={$version|urlencode}#" />
9{if="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version}#" />{/if} 9{if="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version|urlencode}#" />{/if}
diff --git a/tpl/install.html b/tpl/install.html
index 32b8811b..df42bf6d 100644
--- a/tpl/install.html
+++ b/tpl/install.html
@@ -5,7 +5,7 @@
5<div id="install"> 5<div id="install">
6<h1>Shaarli</h1> 6<h1>Shaarli</h1>
7It looks like it's the first time you run Shaarli. Please configure it:<br> 7It looks like it's the first time you run Shaarli. Please configure it:<br>
8<form method="POST" action="" name="installform" id="installform"> 8<form method="POST" action="#" name="installform" id="installform">
9<table> 9<table>
10<tr><td><b>Login:</b></td><td><input type="text" name="setlogin" size="30"></td></tr> 10<tr><td><b>Login:</b></td><td><input type="text" name="setlogin" size="30"></td></tr>
11<tr><td><b>Password:</b></td><td><input type="password" name="setpassword" size="30"></td></tr> 11<tr><td><b>Password:</b></td><td><input type="password" name="setpassword" size="30"></td></tr>
diff --git a/tpl/linklist.html b/tpl/linklist.html
index d5bfadf8..16fc842d 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -52,7 +52,8 @@
52 <span class="linkarchive"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">archive</a> - </span> 52 <span class="linkarchive"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">archive</a> - </span>
53 {/if} 53 {/if}
54 <div class="linkqrcode"><a href="http://qrfree.kaywa.com/?l=1&amp;s=8&amp;d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}" 54 <div class="linkqrcode"><a href="http://qrfree.kaywa.com/?l=1&amp;s=8&amp;d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
55 onclick="return showQrCode(this);" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code"></a></div> - 55 onclick="return showQrCode(this);" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}">
56 <img src="images/qrcode.png#" alt="QR-Code" title="{$value.localdate|htmlspecialchars}"></a></div> -
56 <a href="{$value.url|htmlspecialchars}"><span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span></a><br> 57 <a href="{$value.url|htmlspecialchars}"><span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span></a><br>
57 {if="$value.tags"} 58 {if="$value.tags"}
58 <div class="linktaglist"> 59 <div class="linktaglist">