feat: ajout lien de skip

Fixes #16
This commit is contained in:
Kazhnuz 2023-05-02 11:31:38 +02:00
parent 8932bebc95
commit b62f217bbd
18 changed files with 46 additions and 15 deletions

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <?php get_header(); ?>
<main> <main id="skip">
<div class="card head-danger"> <div class="card head-danger">
<div class="card-header"><i class="fa fa-folder-exclamation-mark" aria-hidden="true"></i> 404 Not Found</div> <div class="card-header"><i class="fa fa-folder-exclamation-mark" aria-hidden="true"></i> 404 Not Found</div>
<div class="card-body"> <div class="card-body">

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php kspace_cat_breadcrumb(get_the_archive_title(), 'calendar'); ?> <?php kspace_cat_breadcrumb(get_the_archive_title(), 'calendar'); ?>
<?php include(TEMPLATEPATH . '/components/preview-list.php'); ?> <?php include(TEMPLATEPATH . '/components/preview-list.php'); ?>
</main> </main>

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php $category = get_category( get_query_var( 'cat' ) ); <?php $category = get_category( get_query_var( 'cat' ) );
kspace_cat_breadcrumb_with_rss(single_cat_title('', false), 'folder-open', 'la catégorie', get_category_link( $category->cat_ID ) . '/feed' ); kspace_cat_breadcrumb_with_rss(single_cat_title('', false), 'folder-open', 'la catégorie', get_category_link( $category->cat_ID ) . '/feed' );
?> ?>

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php $category = get_category( get_query_var( 'cat' ) ); <?php $category = get_category( get_query_var( 'cat' ) );
kspace_cat_breadcrumb_with_rss(single_cat_title('', false), 'folder-open', 'la catégorie', get_category_link( $category->cat_ID ) . '/feed' ); kspace_cat_breadcrumb_with_rss(single_cat_title('', false), 'folder-open', 'la catégorie', get_category_link( $category->cat_ID ) . '/feed' );
?> ?>

View file

@ -1,6 +1,6 @@
<div class="osd"> <div class="osd">
<div class="container menu toolbar fg-light d-none d-flex-sm"> <div class="container menu toolbar fg-light d-none d-flex-sm">
<nav> <nav class="d-flex">
<h2 class="sr-only">Menu des pages</h2> <h2 class="sr-only">Menu des pages</h2>
<ul> <ul>
<li> <li>

View file

@ -29,6 +29,9 @@
<!-- Début du vrai HTML --> <!-- Début du vrai HTML -->
<body> <body>
<div class="bg-dark skip small-text">
<a href="#skip">Accéder au contenu</a>
</div>
<div id="wrapper"> <div id="wrapper">
<?php include(TEMPLATEPATH . '/components/header-content.php'); ?> <?php include(TEMPLATEPATH . '/components/header-content.php'); ?>
<div class="container-blog"> <div class="container-blog">

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <?php get_header(); ?>
<main> <main id="skip">
<h1 class="page-title">Publications</h1> <h1 class="page-title">Publications</h1>
<?php include(TEMPLATEPATH . '/components/preview-grid.php'); ?> <?php include(TEMPLATEPATH . '/components/preview-grid.php'); ?>
</main> </main>

View file

@ -1,6 +1,6 @@
<?php /* Template Name: page-about */ ?> <?php /* Template Name: page-about */ ?>
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article class="article-content container-article" id="post-<?php the_ID(); ?>"> <article class="article-content container-article" id="post-<?php the_ID(); ?>">

View file

@ -1,6 +1,6 @@
<?php /* Template Name: page-links */ ?> <?php /* Template Name: page-links */ ?>
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article class="article-content" id="post-<?php the_ID(); ?>"> <article class="article-content" id="post-<?php the_ID(); ?>">

View file

@ -1,6 +1,6 @@
<?php /* Template Name: page-romans */ ?> <?php /* Template Name: page-romans */ ?>
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<?php kspace_cat_breadcrumb('Romans', 'book'); ?> <?php kspace_cat_breadcrumb('Romans', 'book'); ?>

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article class="article-content" id="post-<?php the_ID(); ?>"> <article class="article-content" id="post-<?php the_ID(); ?>">

View file

@ -6,3 +6,18 @@
visibility: collapse; visibility: collapse;
font-size:0; font-size:0;
} }
.skip {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
.skip:focus-within {
position: static;
width: auto;
height: auto;
}

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<h1 class="page-title"><i class="fa fa-fw fa-search" aria-hidden="true"></i><?php _e('', 'sandbox') ?> Recherche pour le terme « <?php echo get_search_query(); ?> »</h1> <h1 class="page-title"><i class="fa fa-fw fa-search" aria-hidden="true"></i><?php _e('', 'sandbox') ?> Recherche pour le terme « <?php echo get_search_query(); ?> »</h1>
<?php include(TEMPLATEPATH . '/components/preview-list.php'); ?> <?php include(TEMPLATEPATH . '/components/preview-list.php'); ?>

View file

@ -5,7 +5,7 @@ Template Post Type: post
*/ */
?> <!-- ouvrir header,php --> ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php $haveTitle = false; ?> <?php $haveTitle = false; ?>
<?php include(TEMPLATEPATH . '/components/article.php'); ?> <?php include(TEMPLATEPATH . '/components/article.php'); ?>

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php $haveTitle = true; ?> <?php $haveTitle = true; ?>
<?php include(TEMPLATEPATH . '/components/article.php'); ?> <?php include(TEMPLATEPATH . '/components/article.php'); ?>

View file

@ -1549,6 +1549,19 @@ textarea {
visibility: collapse; visibility: collapse;
font-size: 0; } font-size: 0; }
.skip {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden; }
.skip:focus-within {
position: static;
width: auto;
height: auto; }
/* 1.1 - Alignement classes /* 1.1 - Alignement classes
* Handle easily alignement and flexboxes * Handle easily alignement and flexboxes
**/ **/

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php $tag = get_category( get_query_var( 'tag' ) ); <?php $tag = get_category( get_query_var( 'tag' ) );
kspace_cat_breadcrumb_with_rss(single_cat_title('', false), 'tag', 'RSS du tag', get_tag_link( $tag->cat_ID ) . '/feed' ); kspace_cat_breadcrumb_with_rss(single_cat_title('', false), 'tag', 'RSS du tag', get_tag_link( $tag->cat_ID ) . '/feed' );
?> ?>

View file

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php --> <?php get_header(); ?> <!-- ouvrir header,php -->
<main> <main id="skip">
<?php kspace_cat_breadcrumb(single_cat_title('', false), 'book'); ?> <?php kspace_cat_breadcrumb(single_cat_title('', false), 'book'); ?>
<img class="cover" src="<?php <img class="cover" src="<?php