feat: ajout lien de skip

Fixes #16
This commit is contained in:
Kazhnuz Klappsthul 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(); ?>
<main>
<main id="skip">
<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-body">

View File

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

View File

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php -->
<main>
<main id="skip">
<?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' );
?>

View File

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php -->
<main>
<main id="skip">
<?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' );
?>

View File

@ -1,6 +1,6 @@
<div class="osd">
<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>
<ul>
<li>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,3 +6,18 @@
visibility: collapse;
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 -->
<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>
<?php include(TEMPLATEPATH . '/components/preview-list.php'); ?>

View File

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

View File

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

View File

@ -1549,6 +1549,19 @@ textarea {
visibility: collapse;
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
* Handle easily alignement and flexboxes
**/

View File

@ -1,5 +1,5 @@
<?php get_header(); ?> <!-- ouvrir header,php -->
<main>
<main id="skip">
<?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' );
?>

View File

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