Compare commits

...

2 Commits

Author SHA1 Message Date
ba3894d6e6 renaming statut de travail column
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-03 12:27:10 +02:00
8d39b80ab2 passing aria current to offline status on filttre supérieurs (subsubsub) 2025-04-03 09:54:38 +02:00
2 changed files with 6 additions and 3 deletions

View File

@ -136,12 +136,15 @@ add_filter('views_edit-artisans', function ($views) {
));
if ($count > 0) {
$class = (isset($_GET['post_status']) && $_GET['post_status'] === $status) ? 'current' : '';
$is_current = (isset($_GET['post_status']) && $_GET['post_status'] === $status);
$class = $is_current ? 'current' : '';
$aria_current = $is_current ? ' aria-current="page"' : '';
$views[$status] = sprintf(
'<a href="edit.php?post_type=%s&post_status=%s" class="%s">%s <span class="count">(%d)</span></a>',
'<a href="edit.php?post_type=%s&post_status=%s" class="%s"%s>%s <span class="count">(%d)</span></a>',
$post_type,
$status,
$class,
$aria_current,
__('Hors ligne', 'metiers-patrimoine-theme'),
$count
);

View File

@ -68,7 +68,7 @@ $artisans = new WP_Query($currentQueryArgs);
<p>Nom</p>
<p>Dernière action</p>
<p>Commentaire</p>
<p>Statut</p>
<p>Statut de travail</p>
</li>
<?php foreach ($artisans->posts as $artisan) : ?>
<?php