From: VirtualTam Date: Tue, 20 Jan 2015 01:35:52 +0000 (+0100) Subject: w3c: fix HTML syntax errors X-Git-Tag: v0.0.43beta~11^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=04751e044170c1dbc13fa51ee4ea9234ab541ab9 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 --- diff --git a/index.php b/index.php index 4cb25ab7..4a91220f 100644 --- 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='Timezone:'.$timezone_form.''; + $timezone_html=''; if ($timezone_form!='') $timezone_html='Timezone:'.$timezone_form.''; $PAGE = new pageBuilder; $PAGE->assign('timezone_html',$timezone_html); 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 @@ -{if="is_file('inc/user.css')"}{/if} +{if="is_file('inc/user.css')"}{/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 @@

Shaarli

It looks like it's the first time you run Shaarli. Please configure it:
-
+ 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 @@ archive - {/if}
- + onclick="return showQrCode(this);" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"> + QR-Code - {$value.url|htmlspecialchars}
{if="$value.tags"}
Login:
Password: