Compare commits

...

5 Commits

Author SHA1 Message Date
39560dc2cf refining status and placeholder
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-20 12:49:21 +01:00
43cd094e01 handlign labels 2025-01-20 12:49:09 +01:00
66c53f0d49 handling post_status in initial query 2025-01-20 12:49:02 +01:00
ccaafa7725 adding disclaimer component 2025-01-20 12:48:36 +01:00
2badc3aeb5 removing unecessary space 2025-01-08 16:24:28 +01:00
5 changed files with 37 additions and 14 deletions

View File

@ -11,7 +11,15 @@ function metiers_patrimoine_create_posttype()
array(
'labels' => array(
'name' => __('Artisans', 'metiers-patrimoine-theme'),
'singular_name' => __('Artisan', 'metiers-patrimoine-theme')
'singular_name' => __('Artisan', 'metiers-patrimoine-theme'),
'add_new' => __('Ajouter un artisan', 'metiers-patrimoine-theme'),
'add_new_item' => __('Ajouter un artisan', 'metiers-patrimoine-theme'),
'edit_item' => __('Modifier l\'artisan', 'metiers-patrimoine-theme'),
'new_item' => __('Nouvel artisan', 'metiers-patrimoine-theme'),
'view_item' => __('Voir l\'artisan', 'metiers-patrimoine-theme'),
'search_items' => __('Rechercher un artisan', 'metiers-patrimoine-theme'),
'not_found' => __('Aucun artisan trouvé', 'metiers-patrimoine-theme'),
'not_found_in_trash' => __('Aucun artisan trouvé dans la corbeille', 'metiers-patrimoine-theme'),
),
'public' => true,
'has_archive' => true,
@ -37,7 +45,6 @@ function metiers_patrimoine_create_posttype()
'search_items' => __('Rechercher un chantier', 'metiers-patrimoine-theme'),
'not_found' => __('Aucun chantier trouvé', 'metiers-patrimoine-theme'),
'not_found_in_trash' => __('Aucun chantier trouvé dans la corbeille', 'metiers-patrimoine-theme'),
),
'public' => true,
'has_archive' => true,

View File

@ -14,6 +14,10 @@ body.post-type-artisans {
.post-type-artisans #icl_translations {
width: 40px;
}
/* ---------------------------
STATUTS
---------------------------*/
.post-type-artisans {
.status-state {
@apply font-medium !rounded-2xl px-2 py-2 w-fit mx-auto;
@ -24,22 +28,19 @@ body.post-type-artisans {
@apply text-rose-700;
}
&--to_actualize {
@apply text-amber-600;
@apply text-amber-500;
}
&--to_contact {
@apply text-yellow-500;
}
&--waiting_feedback,
&--new_artisan_to_contact {
@apply text-sky-600;
}
&--being_updated {
@apply text-cyan-600;
&--ongoing {
@apply text-blue-600;
}
&--rejected {
@apply text-slate-600;
/* filter: saturate(20%); */
@apply text-rose-400;
}
}
}
@media screen and (max-width: 1600px) {
#conseiller,
#status,
#lastmodified,
@ -50,6 +51,8 @@ body.post-type-artisans {
.column-status {
@apply text-center;
}
}
@media screen and (max-width: 1600px) {
#lastmodified,
#onlinedate,
#conseiller {
@ -99,6 +102,10 @@ body.post-type-artisans {
}
}
/* ---------------------------
STATUTS
---------------------------*/
.subsubsub {
.all,
.publish,
@ -442,3 +449,7 @@ ul.striped > :nth-child(odd) {
.misc-pub-section.rank-math-seo-score {
@apply !hidden;
}
.acf-input-wrap input::placeholder {
@apply text-neutral-400;
}

View File

@ -188,6 +188,12 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
</div>
</div>
<?php
get_template_part('template-components/informative-message/informative-message', null, array(
"message" => __("Ces fiches reprennent les informations communiquées par l'entreprise. Les erreurs éventuelles n'engagent pas la responsabilité de Homegrade.", "metiers-patrimoine-theme")
));
?>
</p>
<div class="previous-next-posts previous-next-artisan">
<?php

View File

@ -16,7 +16,6 @@
object-fit: contain;
}
}
&__taxo-container {
@apply !m-0;
}

View File

@ -6,7 +6,7 @@ get_header();
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
$initialPosts = new WP_Query([
"status" => "publish",
"post_status" => "publish",
"post_type" => "artisans",
"posts_per_page" => -1,
"paged" => 1,