diff --git a/includes/artisans.php b/includes/artisans.php index d96fb57..3171300 100644 --- a/includes/artisans.php +++ b/includes/artisans.php @@ -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') { ?>

+ +

Vous ĂȘtes sur la partie NL de la fiche de l'artisan

+ + action !== 'add') : ?> +

Statut de travail :

@@ -146,6 +152,7 @@ add_action('edit_form_after_title', function () {
+ diff --git a/resources/css/admin-style.css b/resources/css/admin-style.css index 6788345..3bd667b 100644 --- a/resources/css/admin-style.css +++ b/resources/css/admin-style.css @@ -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; }