fix: a11y fixes

This commit is contained in:
Kazhnuz Klappsthul 2024-02-16 16:08:33 +01:00
parent 232fea794f
commit 6aed5527f8
5 changed files with 7 additions and 8 deletions

View File

@ -19,8 +19,8 @@
}
$tags = get_the_tags();
if ($tags) {
echo "<ul class='nolist' aria-labelledby='title-article-taxo-tags'>";
echo '<h4 class="sr-only" id="title-article-taxo-tags">Tags</h4>';
echo "<ul class='nolist' aria-labelledby='title-article-taxo-tags'>";
foreach( $tags as $tag ) {
echo "<li><a href= '" . esc_url( get_tag_link( $tag->term_id ) ) . "' class='btn btn-small c-secondary mr-half'><i class='icon icon-tag'></i>&nbsp;" . $tag->name . "</a></li>";
}

View File

@ -40,8 +40,7 @@
<section class="col" aria-labelledby="title-footer-section-3">
<h2 class="sr-only" id="title-footer-section-3">Informations annexes</h2>
<p>Kazhnuz Space et les différents sites/services qui le composent sont fourni "tel-quel", sans garantie. Cependant, toute critique, remarque, etc. est la bienvenue. Pour cela, vous pouvez me contacter à kazhnuz [at] kobold [point] cafe ou sur les réseaux sociaux visible plus haut</p>
<ul>
<h3 class="sr-only">Pages annexes</h3>
<ul aria-label="Pages annexes">
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['footer-pages']);

View File

@ -3,8 +3,8 @@
<div class="mb-1">
<?php include(TEMPLATEPATH . '/components/searchform.php'); ?>
</div>
<h2>Menu principal</h2>
<ul>
<h2>Menu principal</h2>
<li>
<a href="<?php echo site_url(); ?>" class="menu-item">
<span><svg class="icon icon-home" alt=""><use xlink:href="#icon-home"></use></svg> Accueil</span>
@ -28,8 +28,8 @@
foreach( $parent_categories as $parent_category ) {
?>
<h2><?php echo $parent_category->name ?></h2>
<ul>
<h2><?php echo $parent_category->name ?></h2>
<?php
$categories = get_categories( array(
'orderby' => 'slug',
@ -49,8 +49,8 @@
<?php
}
?>
<h2>Pages</h2>
<ul>
<h2>Pages</h2>
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['top-navbar-2']);

View File

@ -1,4 +1,4 @@
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<form method="get" action="<?php bloginfo('home'); ?>/">
<div>
<label for="searchfield" class="sr-only">Formulaire de recherche</label>
<input class="form-control" id="searchfield" type="search" placeholder="Chercher sur le site" aria-label="Chercher sur le site" value="<?php the_search_query(); ?>" name="s" id="s" />

View File

@ -10,7 +10,7 @@
<h1 id="desc-title" class="page-title"><?php echo get_the_title( $page ); ?></h1>
<img class="illustration" alt="Un kobold gris et violet binoclard, avec un manteau noir plein de cables" src="<?php echo get_template_directory_uri();?>/img/zerhjyj-small.webp" height="530px" width="509px" />
<div id="description-content">
<div aria-libelledby="desc-title" class="post-content"><?php echo $page->post_content; ?></div>
<div class="post-content"><?php echo $page->post_content; ?></div>
<div class="align-centered-block"><a href="/about" class="btn btn-primary">Plus d'info</a></div>
</div>
</section>