Compare commits
10 Commits
3efa19249a
...
fb3a366421
| Author | SHA1 | Date | |
|---|---|---|---|
| fb3a366421 | |||
| 1063ed8cd1 | |||
| d7961e83cd | |||
| 9a69cf632a | |||
| 1a3d61eb8a | |||
| 18e5f76288 | |||
| 1670da7cd1 | |||
| 7165ed8ade | |||
| eaff2c2769 | |||
| 9c299e610c |
49
archive-dbmob.php
Normal file
49
archive-dbmob.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* The template for displaying archive pages for the dbmod post type
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div class="archive-dbmob">
|
||||
<div class="container">
|
||||
<div class="page-heading">
|
||||
<h1>
|
||||
<span class="acronyme">DBMOB</span>
|
||||
<span class="explanation"> Dictionnaire biographique du mouvement ouvrier en Belgique</span>
|
||||
</h1>
|
||||
<p>Découvrez notre rôle au sein du projet DBMOB et explorez les notices biographiques réalisées par l’équipe du CARHOP. Ces portraits de militant·e·s retracent leurs engagements et contributions. </p>
|
||||
</div>
|
||||
|
||||
<div class="post-grid">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<?php get_template_part('template-parts/content', 'dbmod'); ?>
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pagination">
|
||||
<?php
|
||||
the_posts_pagination(array(
|
||||
'mid_size' => 2,
|
||||
'prev_text' => __('Précédent', 'carhop'),
|
||||
'next_text' => __('Suivant', 'carhop'),
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="col-12">
|
||||
<?php get_template_part('template-parts/content', 'none'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* The template for displaying archive pages for the dbmod post type
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h1 class="archive-title"><?php echo post_type_archive_title('', false); ?></h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<div class="col-md-4 mb-4">
|
||||
<?php get_template_part('template-parts/content', 'dbmod'); ?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="col-12">
|
||||
<?php
|
||||
the_posts_pagination(array(
|
||||
'mid_size' => 2,
|
||||
'prev_text' => __('Précédent', 'carhop'),
|
||||
'next_text' => __('Suivant', 'carhop'),
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="col-12">
|
||||
<?php get_template_part('template-parts/content', 'none'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
884
css/app.css
884
css/app.css
File diff suppressed because it is too large
Load Diff
|
|
@ -44,6 +44,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.m-8 {
|
||||
margin: 2rem
|
||||
}
|
||||
|
|
@ -79,10 +83,22 @@
|
|||
margin-bottom: 0.25rem
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 0.5rem
|
||||
}
|
||||
|
||||
.mt-8 {
|
||||
margin-top: 2rem
|
||||
}
|
||||
|
||||
.mb-12 {
|
||||
margin-bottom: 3rem
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block
|
||||
}
|
||||
|
||||
.inline-block {
|
||||
display: inline-block
|
||||
}
|
||||
|
|
@ -91,6 +107,10 @@
|
|||
display: flex
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid
|
||||
}
|
||||
|
||||
.h-1 {
|
||||
height: 0.25rem
|
||||
}
|
||||
|
|
@ -99,6 +119,10 @@
|
|||
height: 1.5rem
|
||||
}
|
||||
|
||||
.h-48 {
|
||||
height: 12rem
|
||||
}
|
||||
|
||||
.min-h-screen {
|
||||
min-height: 100vh
|
||||
}
|
||||
|
|
@ -131,12 +155,8 @@
|
|||
cursor: pointer
|
||||
}
|
||||
|
||||
.list-disc {
|
||||
list-style-type: disc
|
||||
}
|
||||
|
||||
.list-decimal {
|
||||
list-style-type: decimal
|
||||
.grid-cols-1 {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr))
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
|
|
@ -155,10 +175,22 @@
|
|||
justify-content: space-between
|
||||
}
|
||||
|
||||
.gap-6 {
|
||||
gap: 1.5rem
|
||||
}
|
||||
|
||||
.overflow-hidden {
|
||||
overflow: hidden
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: 0.25rem
|
||||
}
|
||||
|
||||
.rounded-lg {
|
||||
border-radius: 0.5rem
|
||||
}
|
||||
|
||||
.border {
|
||||
border-width: 1px
|
||||
}
|
||||
|
|
@ -169,12 +201,17 @@
|
|||
|
||||
.border-primary {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(64 79 142 / var(--tw-border-opacity))
|
||||
border-color: rgb(19 111 99 / var(--tw-border-opacity))
|
||||
}
|
||||
|
||||
.border-red-400 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(248 113 113 / var(--tw-border-opacity))
|
||||
}
|
||||
|
||||
.bg-primary {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(64 79 142 / var(--tw-bg-opacity))
|
||||
background-color: rgb(19 111 99 / var(--tw-bg-opacity))
|
||||
}
|
||||
|
||||
.bg-gray-200 {
|
||||
|
|
@ -187,14 +224,19 @@
|
|||
background-color: rgb(249 250 251 / var(--tw-bg-opacity))
|
||||
}
|
||||
|
||||
.bg-red-100 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(254 226 226 / var(--tw-bg-opacity))
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
|
||||
}
|
||||
|
||||
.bg-red-500 {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(239 68 68 / var(--tw-bg-opacity))
|
||||
.object-cover {
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover
|
||||
}
|
||||
|
||||
.p-4 {
|
||||
|
|
@ -226,8 +268,14 @@
|
|||
padding-bottom: 1.5rem
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center
|
||||
.py-8 {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem
|
||||
}
|
||||
|
||||
.py-3 {
|
||||
padding-top: 0.75rem;
|
||||
padding-bottom: 0.75rem
|
||||
}
|
||||
|
||||
.text-5xl {
|
||||
|
|
@ -250,6 +298,15 @@
|
|||
line-height: 1.25rem
|
||||
}
|
||||
|
||||
.text-3xl {
|
||||
font-size: 1.875rem;
|
||||
line-height: 2.25rem
|
||||
}
|
||||
|
||||
.text-xl {
|
||||
font-size: 1.25rem
|
||||
}
|
||||
|
||||
.font-light {
|
||||
font-weight: 300
|
||||
}
|
||||
|
|
@ -262,6 +319,10 @@
|
|||
font-weight: 800
|
||||
}
|
||||
|
||||
.font-semibold {
|
||||
font-weight: 600
|
||||
}
|
||||
|
||||
.uppercase {
|
||||
text-transform: uppercase
|
||||
}
|
||||
|
|
@ -280,16 +341,6 @@
|
|||
color: rgb(255 255 255 / var(--tw-text-opacity))
|
||||
}
|
||||
|
||||
.text-gray-500 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(107 114 128 / var(--tw-text-opacity))
|
||||
}
|
||||
|
||||
.text-gray-900 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(17 24 39 / var(--tw-text-opacity))
|
||||
}
|
||||
|
||||
.text-gray-600 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(75 85 99 / var(--tw-text-opacity))
|
||||
|
|
@ -300,14 +351,9 @@
|
|||
color: rgb(55 65 81 / var(--tw-text-opacity))
|
||||
}
|
||||
|
||||
.text-blue-500 {
|
||||
.text-red-700 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(59 130 246 / var(--tw-text-opacity))
|
||||
}
|
||||
|
||||
.underline {
|
||||
-webkit-text-decoration-line: underline;
|
||||
text-decoration-line: underline
|
||||
color: rgb(185 28 28 / var(--tw-text-opacity))
|
||||
}
|
||||
|
||||
.antialiased {
|
||||
|
|
@ -315,6 +361,12 @@
|
|||
-moz-osx-font-smoothing: grayscale
|
||||
}
|
||||
|
||||
.shadow-md {
|
||||
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
||||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
||||
}
|
||||
|
||||
.alignfull {
|
||||
margin: 2rem calc(50% - 50vw) !important;
|
||||
max-width: 100vw !important;
|
||||
|
|
@ -404,6 +456,12 @@ body {
|
|||
max-width: 782px
|
||||
}
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.sm\:inline {
|
||||
display: inline
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 782px) {
|
||||
.md\:my-6 {
|
||||
margin-top: 1.5rem;
|
||||
|
|
@ -418,6 +476,10 @@ body {
|
|||
width: 50%
|
||||
}
|
||||
|
||||
.md\:grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr))
|
||||
}
|
||||
|
||||
.md\:text-3xl {
|
||||
font-size: 1.875rem;
|
||||
line-height: 2.25rem
|
||||
|
|
@ -451,6 +513,10 @@ body {
|
|||
display: none
|
||||
}
|
||||
|
||||
.lg\:grid-cols-3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr))
|
||||
}
|
||||
|
||||
.lg\:items-center {
|
||||
align-items: center
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,16 @@ body {
|
|||
|
||||
#wp-submit {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(64 79 142 / var(--tw-border-opacity));
|
||||
border-color: rgb(19 111 99 / var(--tw-border-opacity));
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(64 79 142 / var(--tw-bg-opacity));
|
||||
background-color: rgb(19 111 99 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
#nav a,
|
||||
#backtoblog a {
|
||||
/* color: var(--red) !important; */
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(64 79 142 / var(--tw-text-opacity));
|
||||
color: rgb(19 111 99 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
#loginform {
|
||||
|
|
@ -32,6 +32,6 @@ body {
|
|||
|
||||
.wp-pwd span {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(64 79 142 / var(--tw-text-opacity));
|
||||
color: rgb(19 111 99 / var(--tw-text-opacity));
|
||||
/* color: var(--red) !important; */
|
||||
}
|
||||
|
|
|
|||
20
footer.php
20
footer.php
|
|
@ -1,16 +1,24 @@
|
|||
</main>
|
||||
|
||||
<?php do_action( 'tailpress_content_end' ); ?>
|
||||
<?php do_action('tailpress_content_end'); ?>
|
||||
|
||||
|
||||
<?php do_action( 'tailpress_content_after' ); ?>
|
||||
<?php do_action('tailpress_content_after'); ?>
|
||||
|
||||
<footer id="colophon" class="site-footer bg-gray-50 py-12" role="contentinfo">
|
||||
<?php do_action( 'tailpress_footer' ); ?>
|
||||
|
||||
<div class="container mx-auto text-center text-gray-500">
|
||||
© <?php echo date_i18n( 'Y' );?> - <?php echo get_bloginfo( 'name' );?>
|
||||
</div>
|
||||
<?php
|
||||
$current_blog_id = get_current_blog_id();
|
||||
|
||||
switch_to_blog(1);
|
||||
$blog1_theme_path = get_template_directory();
|
||||
restore_current_blog();
|
||||
|
||||
include($blog1_theme_path . '/template-parts/footer.php');
|
||||
?>
|
||||
<?php do_action('tailpress_footer'); ?>
|
||||
|
||||
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
require_once(__DIR__ . '/includes/errorlog.php');
|
||||
require_once(__DIR__ . '/includes/init.php');
|
||||
require_once(__DIR__ . '/includes/blocks.php');
|
||||
require_once(__DIR__ . '/includes/post_types.php');
|
||||
require_once(__DIR__ . '/includes/admin.php');
|
||||
require_once(__DIR__ . '/includes/logos.php');
|
||||
require_once(__DIR__ . '/includes/collective-access-api.php');
|
||||
require_once(__DIR__ . '/includes/columns.php');
|
||||
// require_once(__DIR__ . '/includes/taxonomy.php');
|
||||
// require_once(__DIR__ . '/includes/admin.php');
|
||||
// require_once(__DIR__ . '/includes/logos.php');
|
||||
// require_once(__DIR__ . '/includes/nawalker_fction.php');
|
||||
// require_once(__DIR__ . '/includes/utilities.php');
|
||||
|
||||
// require_once(__DIR__ . '/includes/widget.php');
|
||||
// require_once( __DIR__ . '/includes/taxonomy.php');
|
||||
// require_once( __DIR__ . '/includes/errorlog.php');
|
||||
// require_once( __DIR__ . '/includes/logos.php');
|
||||
|
|
@ -4,9 +4,8 @@
|
|||
Walker to ReWrap li submenu parent with button instead of
|
||||
-----------------------------------------------------------*/
|
||||
|
||||
function wrap_parent_menu_item_buttons($output, $item, $depth, $args)
|
||||
function dynamiques_wrap_parent_menu_item_buttons($output, $item, $depth, $args)
|
||||
{
|
||||
// write_log($item);
|
||||
|
||||
// $item->classes = array_merge($item->classes, array('menu-item-' . $item->ID));
|
||||
|
||||
|
|
@ -22,34 +21,21 @@ function wrap_parent_menu_item_buttons($output, $item, $depth, $args)
|
|||
|
||||
|
||||
|
||||
if ($args->theme_location === "renovateur") {
|
||||
if ($args->theme_location === "primary") {
|
||||
$page_icon = get_field('page_icon', $item->object_id);
|
||||
|
||||
if (in_array('menu-item-has-children', $item->classes, true)) {
|
||||
$output = '<button type="button" class="menu-item-submenu-toggle" aria-expanded="false" aria-controls="sub-menu-' . $item->ID . '">' . $item->title . '</button>';
|
||||
}
|
||||
|
||||
// #### ICONE DE PAGE FOR TOP LEVEL MENU ITEMS
|
||||
|
||||
if (isset($page_icon)) {
|
||||
$icon = '<img class="page_icon" src="' . $page_icon['url'] . '" alt=""/>';
|
||||
$link = $output;
|
||||
$output = $icon . $link;
|
||||
}
|
||||
|
||||
write_log($output);
|
||||
|
||||
// #### TAXONOMY : GET ICON & INFOS ABOUT TAX
|
||||
|
||||
if ($item->type === "taxonomy") {
|
||||
$term = get_term_by('id', $item->object_id, 'thematiques');
|
||||
$cover = get_field('taxonomy_pictures', "thematiques_" . $item->object_id);
|
||||
|
||||
$output = '<a class="lol" href="' . $item->url . '">';
|
||||
$output .= '<img class="thematique-icon" src="' . $cover['icon']['url'] . '"/>';
|
||||
$output .= '<h6>' . $item->title . "</h6>";
|
||||
$output .= '<p>' . $term->description . "</p>";
|
||||
$output .= "</a>";
|
||||
}
|
||||
}
|
||||
|
||||
if ($args->theme_location === "footer" && in_array('menu-item-has-children', $item->classes, true)) {
|
||||
|
|
@ -57,7 +43,7 @@ function wrap_parent_menu_item_buttons($output, $item, $depth, $args)
|
|||
}
|
||||
return $output;
|
||||
}
|
||||
add_filter('walker_nav_menu_start_el', 'wrap_parent_menu_item_buttons', 10, 4);
|
||||
add_filter('walker_nav_menu_start_el', 'dynamiques_wrap_parent_menu_item_buttons', 10, 4);
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,30 +1,42 @@
|
|||
<?php
|
||||
|
||||
function add_custom_taxonomies() {
|
||||
register_taxonomy('thematiques', 'post', array(
|
||||
// // Register Custom Taxonomy
|
||||
// function custom_taxonomy()
|
||||
// {
|
||||
|
||||
// 'hierarchical' => true,
|
||||
|
||||
// This array of options controls the labels displayed in the WordPress Admin UI
|
||||
'labels' => array(
|
||||
'name' => _x( 'Thématiques', 'taxonomy general name' ),
|
||||
'singular_name' => _x( 'Thématique', 'taxonomy singular name' ),
|
||||
'search_items' => __( 'Chercher une Thématique' ),
|
||||
'all_items' => __( 'Toutes les Thématiques' ),
|
||||
'parent_item' => __( 'Thématique Parent' ),
|
||||
'parent_item_colon' => __( 'Thématique Parent:' ),
|
||||
'edit_item' => __( 'Editer la Thématique' ),
|
||||
'update_item' => __( 'Mettre à jour la Thématique' ),
|
||||
'add_new_item' => __( 'Ajouter une Thématique' ),
|
||||
'new_item_name' => __( 'Nom de la nouvelle Thématique' ),
|
||||
'menu_name' => __( 'Thématiques' ),
|
||||
),
|
||||
// Control the slugs used for this taxonomy
|
||||
'rewrite' => array(
|
||||
'slug' => 'thematiques', // This controls the base slug that will display before each term
|
||||
// 'with_front' => false, // Don't display the category base before "/locations/"
|
||||
'hierarchical' => true // This will allow URL's like "/locations/boston/cambridge/"
|
||||
),
|
||||
));
|
||||
}
|
||||
add_action( 'init', 'add_custom_taxonomies', 0 );
|
||||
// $labels = array(
|
||||
// 'name' => _x('Étiquettes', 'Taxonomy General Name', 'text_domain'),
|
||||
// 'singular_name' => _x('Étiquette', 'Taxonomy Singular Name', 'text_domain'),
|
||||
// 'menu_name' => __('Étiquettes', 'text_domain'),
|
||||
// 'all_items' => __('Toutes les étiquettes', 'text_domain'),
|
||||
// 'parent_item' => __('Étiquette parente', 'text_domain'),
|
||||
// 'parent_item_colon' => __('Étiquette parente:', 'text_domain'),
|
||||
// 'new_item_name' => __('Nouvelle étiquette', 'text_domain'),
|
||||
// 'add_new_item' => __('Ajouter une étiquette', 'text_domain'),
|
||||
// 'edit_item' => __('Modifier l\'étiquette', 'text_domain'),
|
||||
// 'update_item' => __('Mettre à jour l\'étiquette', 'text_domain'),
|
||||
// 'view_item' => __('Voir l\'étiquette', 'text_domain'),
|
||||
// 'separate_items_with_commas' => __('Séparer les étiquettes avec des virgules', 'text_domain'),
|
||||
// 'add_or_remove_items' => __('Ajouter ou supprimer des étiquettes', 'text_domain'),
|
||||
// 'choose_from_most_used' => __('Choisir parmi les plus utilisées', 'text_domain'),
|
||||
// 'popular_items' => __('Étiquettes populaires', 'text_domain'),
|
||||
// 'search_items' => __('Rechercher des étiquettes', 'text_domain'),
|
||||
// 'not_found' => __('Non trouvé', 'text_domain'),
|
||||
// 'no_terms' => __('Aucune étiquette', 'text_domain'),
|
||||
// 'items_list' => __('Liste des étiquettes', 'text_domain'),
|
||||
// 'items_list_navigation' => __('Navigation dans la liste des étiquettes', 'text_domain'),
|
||||
// );
|
||||
// $args = array(
|
||||
// 'show_in_rest' => true,
|
||||
// 'labels' => $labels,
|
||||
// 'hierarchical' => false,
|
||||
// 'public' => true,
|
||||
// 'show_ui' => true,
|
||||
// 'show_admin_column' => true,
|
||||
// 'show_in_nav_menus' => true,
|
||||
// 'show_tagcloud' => true,
|
||||
// 'meta_box_cb' => true,
|
||||
// );
|
||||
// register_taxonomy('etiquettes', array('articles', 'revues'), $args);
|
||||
// }
|
||||
// add_action('init', 'custom_taxonomy', 0);
|
||||
|
|
|
|||
0
includes/utilities.php
Normal file
0
includes/utilities.php
Normal file
6
resources/css/base/buttons.css
Normal file
6
resources/css/base/buttons.css
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.wp-block-button__link {
|
||||
border-radius: 0px;
|
||||
@apply border-primary border bg-transparent text-primary;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
.primary-menu-container {
|
||||
@apply mx-auto
|
||||
bg-primary
|
||||
|
||||
text-white
|
||||
relative
|
||||
h-fit
|
||||
|
|
@ -35,11 +35,17 @@
|
|||
xl:pr-24;
|
||||
}
|
||||
|
||||
li.menu-item:has(.page_icon) {
|
||||
@apply flex flex-col items-center justify-center gap-3;
|
||||
.page_icon {
|
||||
@apply w-12 h-12 object-contain;
|
||||
}
|
||||
}
|
||||
/* Highlight using list element */
|
||||
li.current-page-parent > a,
|
||||
li.current_page_item > a {
|
||||
@apply font-medium
|
||||
text-white
|
||||
!text-white
|
||||
decoration-secondary
|
||||
underline
|
||||
underline-offset-8;
|
||||
|
|
@ -55,7 +61,7 @@
|
|||
@apply cursor-pointer
|
||||
underline
|
||||
underline-offset-8
|
||||
text-secondary;
|
||||
!text-white;
|
||||
}
|
||||
a:focus {
|
||||
text-decoration: none;
|
||||
|
|
@ -65,7 +71,7 @@
|
|||
.menu-item-submenu-toggle {
|
||||
&:hover,
|
||||
&:focus {
|
||||
@apply text-secondary;
|
||||
@apply !text-white;
|
||||
}
|
||||
@apply relative pr-4;
|
||||
&:after {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,14 @@
|
|||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('dbmod-item'); ?>>
|
||||
<?php
|
||||
$chapo = get_field('chapo');
|
||||
$content = get_field('content');
|
||||
$author = get_field('author');
|
||||
$maitron_url = get_field('maitron_url');
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('post-card-dbmod'); ?>>
|
||||
<div class="card h-100">
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<div class="card-img-top">
|
||||
|
|
@ -13,40 +20,30 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card-body">
|
||||
<h2 class="card-title">
|
||||
<div class="post-card-dbmod__content">
|
||||
<h2 class="post-card-dbmod__title">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<div class="card-text">
|
||||
<?php the_excerpt(); ?>
|
||||
</div>
|
||||
<?php if ($author) : ?>
|
||||
<p class="author">par :<?php echo esc_html($author); ?></p>
|
||||
<?php endif; ?>
|
||||
<div class="post-card-dbmod__details">
|
||||
|
||||
<?php
|
||||
// Afficher les champs ACF si présents
|
||||
if (function_exists('get_field')) :
|
||||
// Exemple d'affichage de champs ACF
|
||||
$marque = get_field('marque');
|
||||
$modele = get_field('modele');
|
||||
$annee = get_field('annee');
|
||||
?>
|
||||
|
||||
<div class="dbmod-details">
|
||||
<?php if ($marque) : ?>
|
||||
<p class="marque">Marque: <?php echo esc_html($marque); ?></p>
|
||||
<?php if ($chapo) : ?>
|
||||
<p class="chapo"><?php echo esc_html($chapo); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($modele) : ?>
|
||||
<p class="modele">Modèle: <?php echo esc_html($modele); ?></p>
|
||||
<?php if ($content) : ?>
|
||||
<p class="content"><?php echo esc_html($content); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($annee) : ?>
|
||||
<p class="annee">Année: <?php echo esc_html($annee); ?></p>
|
||||
<?php if ($maitron_url) : ?>
|
||||
<p class="maitron_url">Maitron URL: <?php echo esc_html($maitron_url); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user