From 8cbf8300d86580625ef691d1b39fe518f65a9bd3 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 16 Jan 2018 13:07:10 +0100 Subject: [PATCH] fix: Use a main tag for the main part of the page See https://dequeuniversity.com/rules/axe/2.2/bypass?application=lighthouse --- templates/error.tpl | 22 +++++++++++----------- templates/index.tpl | 4 ++-- templates/password.tpl | 4 ++-- templates/playlist.tpl | 4 ++-- templates/video.tpl | 4 ++-- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/templates/error.tpl b/templates/error.tpl index d2f85b0..076e15f 100644 --- a/templates/error.tpl +++ b/templates/error.tpl @@ -1,14 +1,14 @@ {include file='inc/head.tpl'}
-
- {include file="inc/logo.tpl"} -

{t}An error occurred{/t}

- {t}Please check the URL of your video.{/t} -

- {foreach $errors as $error} - {$error|escape} -
- {/foreach} -

-
+
+ {include file="inc/logo.tpl"} +

{t}An error occurred{/t}

+ {t}Please check the URL of your video.{/t} +

+ {foreach $errors as $error} + {$error|escape} +
+ {/foreach} +

+
{include file='inc/footer.tpl'} diff --git a/templates/index.tpl b/templates/index.tpl index c978ec8..2a5420f 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -1,6 +1,6 @@ {include file='inc/head.tpl'} {include file='inc/header.tpl'} -
+
@@ -32,5 +32,5 @@ {t}Bookmarklet{/t}
-
+ {include file='inc/footer.tpl'} diff --git a/templates/password.tpl b/templates/password.tpl index a4c56f2..de412ba 100644 --- a/templates/password.tpl +++ b/templates/password.tpl @@ -1,6 +1,6 @@ {include file='inc/head.tpl'}
-
+
{include file="inc/logo.tpl"}

{t}This video is protected{/t}

{t}You need a password in order to download this video.{/t}

@@ -9,5 +9,5 @@

-
+ {include file='inc/footer.tpl'} diff --git a/templates/playlist.tpl b/templates/playlist.tpl index fcf9847..39617a0 100644 --- a/templates/playlist.tpl +++ b/templates/playlist.tpl @@ -1,6 +1,6 @@ {include file="inc/head.tpl"}
-
+
{include file="inc/logo.tpl"}

{t}Videos extracted from{/t} {if isset($video->title)} @@ -28,5 +28,5 @@

{/foreach} -
+ {include file="inc/footer.tpl"} diff --git a/templates/video.tpl b/templates/video.tpl index 12797f6..7198e0a 100644 --- a/templates/video.tpl +++ b/templates/video.tpl @@ -1,7 +1,7 @@ {include file="inc/head.tpl"}