Compare commits
2 Commits
c021b17d9e
...
ba3894d6e6
| Author | SHA1 | Date | |
|---|---|---|---|
| ba3894d6e6 | |||
| 8d39b80ab2 |
|
|
@ -136,12 +136,15 @@ add_filter('views_edit-artisans', function ($views) {
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($count > 0) {
|
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(
|
$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,
|
$post_type,
|
||||||
$status,
|
$status,
|
||||||
$class,
|
$class,
|
||||||
|
$aria_current,
|
||||||
__('Hors ligne', 'metiers-patrimoine-theme'),
|
__('Hors ligne', 'metiers-patrimoine-theme'),
|
||||||
$count
|
$count
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -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</p>
|
<p>Statut de travail</p>
|
||||||
</li>
|
</li>
|
||||||
<?php foreach ($artisans->posts as $artisan) : ?>
|
<?php foreach ($artisans->posts as $artisan) : ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user