Fix appearance and alert on the NL part
This commit is contained in:
parent
65da02dd62
commit
4619080ebb
|
|
@ -119,10 +119,15 @@ add_action('edit_form_after_title', function () {
|
|||
$post_status = get_post_status();
|
||||
$translatedStatus = translate_wordpress_online_statuses($post_status);
|
||||
$post_link = get_preview_post_link();
|
||||
$my_current_lang = apply_filters('wpml_current_language', NULL);
|
||||
|
||||
if ($screen && $screen->post_type === 'artisans') {
|
||||
?>
|
||||
<h1 class="admin-artisan-title"><?php echo get_the_title() ?></h1>
|
||||
<?php if($my_current_lang == 'nl'): ?>
|
||||
<h2 class="admin-artisan-alert-nl">Vous êtes sur la partie NL de la fiche de l'artisan</h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($post_link) && $screen->action !== 'add') : ?>
|
||||
<div class="preview-artisan-link">
|
||||
<a href="<?php echo $post_link; ?>" target="_blank" class="button button-primary">
|
||||
|
|
@ -137,6 +142,7 @@ add_action('edit_form_after_title', function () {
|
|||
<span class="post-state post-state--<?php echo $post_status; ?>"><?php echo $translatedStatus; ?></span>
|
||||
</div>
|
||||
|
||||
<?php if($my_current_lang == 'fr'): ?>
|
||||
<div class="state-container">
|
||||
<p>Statut de travail :</p>
|
||||
<?php if (isset($status_mdp) && isset($status_mdp['value']) && isset($status_mdp['label'])): ?>
|
||||
|
|
@ -146,6 +152,7 @@ add_action('edit_form_after_title', function () {
|
|||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- <button id="set-offline-status" class="button button-secondary">Mettre Hors Ligne</button>
|
||||
<button id="set-online-status" class="button button-secondary">Mettre En Ligne</button> -->
|
||||
|
|
|
|||
|
|
@ -233,6 +233,14 @@ body.post-type-artisans {
|
|||
.admin-artisan-title {
|
||||
@apply text-patrimoine-sante-securite !font-semibold !text-2xl;
|
||||
}
|
||||
.admin-artisan-alert-nl {
|
||||
@apply text-green-800 bg-white;
|
||||
border: 1px solid #c3c4c7;
|
||||
border-left-width: 4px;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
||||
margin: 5px 15px 2px;
|
||||
padding: 1px 12px;
|
||||
}
|
||||
.last-updated {
|
||||
@apply text-neutral-500 !text-xs my-0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user