Compare commits
5 Commits
759004fb67
...
39560dc2cf
| Author | SHA1 | Date | |
|---|---|---|---|
| 39560dc2cf | |||
| 43cd094e01 | |||
| 66c53f0d49 | |||
| ccaafa7725 | |||
| 2badc3aeb5 |
|
|
@ -11,7 +11,15 @@ function metiers_patrimoine_create_posttype()
|
||||||
array(
|
array(
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
'name' => __('Artisans', 'metiers-patrimoine-theme'),
|
'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,
|
'public' => true,
|
||||||
'has_archive' => true,
|
'has_archive' => true,
|
||||||
|
|
@ -37,7 +45,6 @@ function metiers_patrimoine_create_posttype()
|
||||||
'search_items' => __('Rechercher un chantier', 'metiers-patrimoine-theme'),
|
'search_items' => __('Rechercher un chantier', 'metiers-patrimoine-theme'),
|
||||||
'not_found' => __('Aucun chantier trouvé', 'metiers-patrimoine-theme'),
|
'not_found' => __('Aucun chantier trouvé', 'metiers-patrimoine-theme'),
|
||||||
'not_found_in_trash' => __('Aucun chantier trouvé dans la corbeille', 'metiers-patrimoine-theme'),
|
'not_found_in_trash' => __('Aucun chantier trouvé dans la corbeille', 'metiers-patrimoine-theme'),
|
||||||
|
|
||||||
),
|
),
|
||||||
'public' => true,
|
'public' => true,
|
||||||
'has_archive' => true,
|
'has_archive' => true,
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ body.post-type-artisans {
|
||||||
.post-type-artisans #icl_translations {
|
.post-type-artisans #icl_translations {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------------------------
|
||||||
|
STATUTS
|
||||||
|
---------------------------*/
|
||||||
.post-type-artisans {
|
.post-type-artisans {
|
||||||
.status-state {
|
.status-state {
|
||||||
@apply font-medium !rounded-2xl px-2 py-2 w-fit mx-auto;
|
@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;
|
@apply text-rose-700;
|
||||||
}
|
}
|
||||||
&--to_actualize {
|
&--to_actualize {
|
||||||
@apply text-amber-600;
|
@apply text-amber-500;
|
||||||
|
}
|
||||||
|
&--to_contact {
|
||||||
|
@apply text-yellow-500;
|
||||||
}
|
}
|
||||||
&--waiting_feedback,
|
&--waiting_feedback,
|
||||||
&--new_artisan_to_contact {
|
&--ongoing {
|
||||||
@apply text-sky-600;
|
@apply text-blue-600;
|
||||||
}
|
|
||||||
&--being_updated {
|
|
||||||
@apply text-cyan-600;
|
|
||||||
}
|
}
|
||||||
&--rejected {
|
&--rejected {
|
||||||
@apply text-slate-600;
|
@apply text-rose-400;
|
||||||
/* filter: saturate(20%); */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@media screen and (max-width: 1600px) {
|
|
||||||
#conseiller,
|
#conseiller,
|
||||||
#status,
|
#status,
|
||||||
#lastmodified,
|
#lastmodified,
|
||||||
|
|
@ -50,6 +51,8 @@ body.post-type-artisans {
|
||||||
.column-status {
|
.column-status {
|
||||||
@apply text-center;
|
@apply text-center;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1600px) {
|
||||||
#lastmodified,
|
#lastmodified,
|
||||||
#onlinedate,
|
#onlinedate,
|
||||||
#conseiller {
|
#conseiller {
|
||||||
|
|
@ -99,6 +102,10 @@ body.post-type-artisans {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------------------------
|
||||||
|
STATUTS
|
||||||
|
---------------------------*/
|
||||||
|
|
||||||
.subsubsub {
|
.subsubsub {
|
||||||
.all,
|
.all,
|
||||||
.publish,
|
.publish,
|
||||||
|
|
@ -442,3 +449,7 @@ ul.striped > :nth-child(odd) {
|
||||||
.misc-pub-section.rank-math-seo-score {
|
.misc-pub-section.rank-math-seo-score {
|
||||||
@apply !hidden;
|
@apply !hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.acf-input-wrap input::placeholder {
|
||||||
|
@apply text-neutral-400;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,12 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="previous-next-posts previous-next-artisan">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__taxo-container {
|
&__taxo-container {
|
||||||
@apply !m-0;
|
@apply !m-0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ get_header();
|
||||||
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
|
|
||||||
$initialPosts = new WP_Query([
|
$initialPosts = new WP_Query([
|
||||||
"status" => "publish",
|
"post_status" => "publish",
|
||||||
"post_type" => "artisans",
|
"post_type" => "artisans",
|
||||||
"posts_per_page" => -1,
|
"posts_per_page" => -1,
|
||||||
"paged" => 1,
|
"paged" => 1,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user