refactoring and cleaning
This commit is contained in:
parent
1a6b5f2366
commit
635137d1a7
|
|
@ -155,7 +155,6 @@ add_filter('views_edit-artisans', function ($views) {
|
|||
REMPLACER LES LABELS DES FILTRES DE LA LISTE DES ARTISANS (TOUT EN HAUT DANS LE SUBSUBSUB)
|
||||
--------------------------------------------------------------------------------------------*/
|
||||
add_filter('views_edit-artisans', function ($views) {
|
||||
write_log($views);
|
||||
if (isset($views['publish'])) {
|
||||
$views['publish'] = str_replace('Publié', 'En ligne', $views['publish']);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ add_action('edit_form_after_title', function () {
|
|||
?>
|
||||
<h1 class="admin-artisan-title"><?php echo get_the_title() ?></h1>
|
||||
<div id="top-status" class="top-status">
|
||||
|
||||
<div class="state-container">
|
||||
<p>État :</p>
|
||||
<span class="post-state post-state--<?php echo $post_status; ?>"><?php echo $translatedStatus; ?></span>
|
||||
|
|
@ -48,7 +47,12 @@ add_action('edit_form_after_title', function () {
|
|||
|
||||
<div class="state-container">
|
||||
<p>Statut :</p>
|
||||
<span class="status-state status-state--<?php echo $status_mdp['value']; ?> "><?php echo $status_mdp['label']; ?></span>
|
||||
<?php if (isset($status_mdp)): ?>
|
||||
<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>
|
||||
|
||||
<button id="set-offline-status" class="button button-secondary">Mettre Hors Ligne</button>
|
||||
|
|
@ -255,9 +259,6 @@ add_filter('manage_artisans_posts_columns', 'remove_rank_math_seo_column_for_art
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
DÉCLARATION DES COLONNES CUSTOM DANS LA LISTE DES POSTS ARTISANS
|
||||
------------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user