fix: a11y fixes
This commit is contained in:
parent
232fea794f
commit
6aed5527f8
5 changed files with 7 additions and 8 deletions
|
@ -19,8 +19,8 @@
|
||||||
}
|
}
|
||||||
$tags = get_the_tags();
|
$tags = get_the_tags();
|
||||||
if ($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 '<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 ) {
|
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> " . $tag->name . "</a></li>";
|
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> " . $tag->name . "</a></li>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,8 +40,7 @@
|
||||||
<section class="col" aria-labelledby="title-footer-section-3">
|
<section class="col" aria-labelledby="title-footer-section-3">
|
||||||
<h2 class="sr-only" id="title-footer-section-3">Informations annexes</h2>
|
<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>
|
<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>
|
<ul aria-label="Pages annexes">
|
||||||
<h3 class="sr-only">Pages annexes</h3>
|
|
||||||
<?php
|
<?php
|
||||||
$listmenu = get_nav_menu_locations();
|
$listmenu = get_nav_menu_locations();
|
||||||
$menu = wp_get_nav_menu_items($listmenu['footer-pages']);
|
$menu = wp_get_nav_menu_items($listmenu['footer-pages']);
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<div class="mb-1">
|
<div class="mb-1">
|
||||||
<?php include(TEMPLATEPATH . '/components/searchform.php'); ?>
|
<?php include(TEMPLATEPATH . '/components/searchform.php'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<h2>Menu principal</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<h2>Menu principal</h2>
|
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo site_url(); ?>" class="menu-item">
|
<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>
|
<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 ) {
|
foreach( $parent_categories as $parent_category ) {
|
||||||
?>
|
?>
|
||||||
|
<h2><?php echo $parent_category->name ?></h2>
|
||||||
<ul>
|
<ul>
|
||||||
<h2><?php echo $parent_category->name ?></h2>
|
|
||||||
<?php
|
<?php
|
||||||
$categories = get_categories( array(
|
$categories = get_categories( array(
|
||||||
'orderby' => 'slug',
|
'orderby' => 'slug',
|
||||||
|
@ -49,8 +49,8 @@
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<h2>Pages</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<h2>Pages</h2>
|
|
||||||
<?php
|
<?php
|
||||||
$listmenu = get_nav_menu_locations();
|
$listmenu = get_nav_menu_locations();
|
||||||
$menu = wp_get_nav_menu_items($listmenu['top-navbar-2']);
|
$menu = wp_get_nav_menu_items($listmenu['top-navbar-2']);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
|
<form method="get" action="<?php bloginfo('home'); ?>/">
|
||||||
<div>
|
<div>
|
||||||
<label for="searchfield" class="sr-only">Formulaire de recherche</label>
|
<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" />
|
<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" />
|
||||||
|
|
2
home.php
2
home.php
|
@ -10,7 +10,7 @@
|
||||||
<h1 id="desc-title" class="page-title"><?php echo get_the_title( $page ); ?></h1>
|
<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" />
|
<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 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 class="align-centered-block"><a href="/about" class="btn btn-primary">Plus d'info</a></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Reference in a new issue