Compare commits

..

No commits in common. "ba3894d6e6dfd9af00d50bb17b297bbca7ed6b16" and "c021b17d9e6d315f1501dcb2bfbfb94c5eb04178" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

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

View File

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