diff --git a/includes/artisans.php b/includes/artisans.php index 3f7d8e4..18c5a4c 100644 --- a/includes/artisans.php +++ b/includes/artisans.php @@ -67,10 +67,19 @@ add_action('edit_form_after_title', function () { $status_mdp = get_field('mdp_status', get_the_ID()); $post_status = get_post_status(); $translatedStatus = translate_wordpress_online_statuses($post_status); + $post_link = get_preview_post_link(); if ($screen && $screen->post_type === 'artisans') { ?>
+ action !== 'add') : ?> + +État :
diff --git a/resources/css/admin-style.css b/resources/css/admin-style.css index 5836d4d..9684834 100644 --- a/resources/css/admin-style.css +++ b/resources/css/admin-style.css @@ -702,6 +702,14 @@ select[data-enpassusermodified='yes'] { } } +.preview-artisan-link { + @apply !mb-12; + a { + @apply !bg-patrimoine-sante-securite !flex !items-center gap-2 w-fit !mt-4; + @apply bg-red-400 text-white !border-none !rounded-xl px-4 !py-1 ml-auto; + } +} + /* ----------------------------------------------------------- Admin styles -----------------------------------------------------------*/