Compare commits
No commits in common. "ee0837b0771d4293f88f42a51274b1d8f1cb9fd1" and "1a6b5f2366227ec5d1791eb6236efe4368d2b510" have entirely different histories.
ee0837b077
...
1a6b5f2366
|
|
@ -155,6 +155,7 @@ add_filter('views_edit-artisans', function ($views) {
|
||||||
REMPLACER LES LABELS DES FILTRES DE LA LISTE DES ARTISANS (TOUT EN HAUT DANS LE SUBSUBSUB)
|
REMPLACER LES LABELS DES FILTRES DE LA LISTE DES ARTISANS (TOUT EN HAUT DANS LE SUBSUBSUB)
|
||||||
--------------------------------------------------------------------------------------------*/
|
--------------------------------------------------------------------------------------------*/
|
||||||
add_filter('views_edit-artisans', function ($views) {
|
add_filter('views_edit-artisans', function ($views) {
|
||||||
|
write_log($views);
|
||||||
if (isset($views['publish'])) {
|
if (isset($views['publish'])) {
|
||||||
$views['publish'] = str_replace('Publié', 'En ligne', $views['publish']);
|
$views['publish'] = str_replace('Publié', 'En ligne', $views['publish']);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ add_action('edit_form_after_title', function () {
|
||||||
?>
|
?>
|
||||||
<h1 class="admin-artisan-title"><?php echo get_the_title() ?></h1>
|
<h1 class="admin-artisan-title"><?php echo get_the_title() ?></h1>
|
||||||
<div id="top-status" class="top-status">
|
<div id="top-status" class="top-status">
|
||||||
|
|
||||||
<div class="state-container">
|
<div class="state-container">
|
||||||
<p>État :</p>
|
<p>État :</p>
|
||||||
<span class="post-state post-state--<?php echo $post_status; ?>"><?php echo $translatedStatus; ?></span>
|
<span class="post-state post-state--<?php echo $post_status; ?>"><?php echo $translatedStatus; ?></span>
|
||||||
|
|
@ -47,12 +48,7 @@ add_action('edit_form_after_title', function () {
|
||||||
|
|
||||||
<div class="state-container">
|
<div class="state-container">
|
||||||
<p>Statut :</p>
|
<p>Statut :</p>
|
||||||
<?php if (isset($status_mdp)): ?>
|
|
||||||
<span class="status-state status-state--<?php echo $status_mdp['value']; ?> "><?php echo $status_mdp['label']; ?></span>
|
<span class="status-state status-state--<?php echo $status_mdp['value']; ?> "><?php echo $status_mdp['label']; ?></span>
|
||||||
<?php else : ?>
|
|
||||||
<span class="status-state status-state--none">Aucun !!</span>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="set-offline-status" class="button button-secondary">Mettre Hors Ligne</button>
|
<button id="set-offline-status" class="button button-secondary">Mettre Hors Ligne</button>
|
||||||
|
|
@ -259,6 +255,9 @@ add_filter('manage_artisans_posts_columns', 'remove_rank_math_seo_column_for_art
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
DÉCLARATION DES COLONNES CUSTOM DANS LA LISTE DES POSTS ARTISANS
|
DÉCLARATION DES COLONNES CUSTOM DANS LA LISTE DES POSTS ARTISANS
|
||||||
------------------------------------------------------------------------*/
|
------------------------------------------------------------------------*/
|
||||||
|
|
|
||||||
|
|
@ -489,12 +489,11 @@ ul.striped > :nth-child(odd) {
|
||||||
&--publish:before {
|
&--publish:before {
|
||||||
@apply bg-green-700;
|
@apply bg-green-700;
|
||||||
}
|
}
|
||||||
&--none,
|
|
||||||
&--draft,
|
&--draft,
|
||||||
&--offline {
|
&--offline {
|
||||||
@apply text-neutral-500 border-neutral-500;
|
@apply text-neutral-500 border-neutral-500;
|
||||||
}
|
}
|
||||||
&--none:before,
|
|
||||||
&--draft:before,
|
&--draft:before,
|
||||||
&--offline:before {
|
&--offline:before {
|
||||||
@apply bg-neutral-500;
|
@apply bg-neutral-500;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user