Compare commits
No commits in common. "1886840c704eeaac46f61d9297107e650e981789" and "2a75dd5d00d28361789ed6045f828f56ce7f7668" have entirely different histories.
1886840c70
...
2a75dd5d00
27
footer.php
|
|
@ -1,6 +1,3 @@
|
||||||
<?php
|
|
||||||
switch_to_blog(1);
|
|
||||||
?>
|
|
||||||
<?php get_template_part('template-components/footer/page-scroller'); ?>
|
<?php get_template_part('template-components/footer/page-scroller'); ?>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
@ -70,14 +67,8 @@ switch_to_blog(1);
|
||||||
$localizedSiteMapPage = apply_filters('wpml_object_id', 5699, 'page', TRUE);
|
$localizedSiteMapPage = apply_filters('wpml_object_id', 5699, 'page', TRUE);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
|
||||||
switch_to_blog(2);
|
|
||||||
$home_url_metiers_patrimoine = get_home_url();
|
|
||||||
restore_current_blog();
|
|
||||||
?>
|
|
||||||
<a class="cta cta--button cta--outline metiers-patrimoine-btn" href="<?php echo $home_url_metiers_patrimoine ?>"><?php echo __('Artisans du patrimoine', 'homegrade') ?></a>
|
|
||||||
|
|
||||||
<a class="cta cta--button cta--outline sitemap-btn" href="<?php echo get_the_permalink($localizedSiteMapPage) ?>">
|
<a class="cta cta--button cta--outline" href="<?php echo get_the_permalink($localizedSiteMapPage) ?>">
|
||||||
<?php echo get_the_title($localizedSiteMapPage) ?>
|
<?php echo get_the_title($localizedSiteMapPage) ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="social-networks">
|
<div class="social-networks">
|
||||||
|
|
@ -92,11 +83,10 @@ switch_to_blog(1);
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="site-footer__partenaires">
|
<ul class="site-footer__partenaires">
|
||||||
<h4 class="content-intertitle"><?php echo __('Nos partenaires', 'metiers-patrimoine-theme') ?></h4>
|
|
||||||
|
|
||||||
<?php $partenaires = get_field('footer_partenaires', 'term_' . $footer_locale_location_ID)['partenaires']; ?>
|
<?php $partenaires = get_field('footer_partenaires', 'term_' . $footer_locale_location_ID)['partenaires']; ?>
|
||||||
<?php foreach ($partenaires as $partenaire) : ?>
|
<?php foreach ($partenaires as $partenaire) : ?>
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -107,6 +97,13 @@ switch_to_blog(1);
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<div class="site-footer__metiers-patrimoine">
|
||||||
|
<?php $metiers_patrimoine = get_field('footer_metiers_du_patirmoine', 'term_' . $footer_locale_location_ID); ?>
|
||||||
|
|
||||||
|
<h4 class="content-intertitle"><?php echo $metiers_patrimoine['title'] ?> </h4>
|
||||||
|
<p><?php echo $metiers_patrimoine['text'] ?> </p>
|
||||||
|
<a class="cta cta cta--primary cta--button" href="<?php echo $metiers_patrimoine['cta_url'] ?> " target="_blank"><?php echo $metiers_patrimoine['cta_text'] ?></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -138,6 +135,7 @@ switch_to_blog(1);
|
||||||
$localizedConditionsGenerales = apply_filters('wpml_object_id', 3504, 'page', TRUE);
|
$localizedConditionsGenerales = apply_filters('wpml_object_id', 3504, 'page', TRUE);
|
||||||
$localizedPolitiqueConfidentialite = apply_filters('wpml_object_id', 3, 'page', TRUE);
|
$localizedPolitiqueConfidentialite = apply_filters('wpml_object_id', 3, 'page', TRUE);
|
||||||
$localizedDeclarationAccessibilite = apply_filters('wpml_object_id', 3506, 'page', TRUE);
|
$localizedDeclarationAccessibilite = apply_filters('wpml_object_id', 3506, 'page', TRUE);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<li class="legal-credits__legal-page-link">
|
<li class="legal-credits__legal-page-link">
|
||||||
|
|
@ -161,13 +159,10 @@ switch_to_blog(1);
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
restore_current_blog();
|
|
||||||
?>
|
|
||||||
<?php wp_footer(); ?>
|
<?php wp_footer(); ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
0
front-page.php
Normal file → Executable file
16
header.php
|
|
@ -10,15 +10,15 @@
|
||||||
</head>
|
</head>
|
||||||
<?php $currentLanguage = apply_filters('wpml_current_language', null); ?>
|
<?php $currentLanguage = apply_filters('wpml_current_language', null); ?>
|
||||||
|
|
||||||
<?php
|
|
||||||
switch_to_blog(1);
|
|
||||||
?>
|
|
||||||
|
|
||||||
<body <?php body_class("homegrade-frontend-page ") ?> current-language="<?php echo $currentLanguage ?? "" ?>">
|
<body <?php body_class("homegrade-frontend-page ") ?> current-language="<?php echo $currentLanguage ?? "" ?>">
|
||||||
<?php
|
<?php
|
||||||
do_action('tailpress_site_before');
|
do_action('tailpress_site_before');
|
||||||
global $post;
|
global $post;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="page-<?php echo $post->post_name ?? "" ?>" class="min-h-screen flex flex-col ">
|
<div id="page-<?php echo $post->post_name ?? "" ?>" class="min-h-screen flex flex-col ">
|
||||||
|
|
||||||
<div class="skiplinks" aria-label="<?php echo __('Accès rapide', 'homegrade-theme__texte-fonctionnel') ?>">
|
<div class="skiplinks" aria-label="<?php echo __('Accès rapide', 'homegrade-theme__texte-fonctionnel') ?>">
|
||||||
|
|
@ -31,21 +31,21 @@ switch_to_blog(1);
|
||||||
<?php do_action('tailpress_header'); ?>
|
<?php do_action('tailpress_header'); ?>
|
||||||
|
|
||||||
<header id="main-header">
|
<header id="main-header">
|
||||||
|
|
||||||
<!-- MENU MOBILE -->
|
<!-- MENU MOBILE -->
|
||||||
<?php get_template_part('template-components/header/mobile-brand'); ?>
|
<?php
|
||||||
|
get_template_part('template-components/header/mobile-brand');
|
||||||
|
?>
|
||||||
|
|
||||||
<!-- MENU HOMEGRADE -->
|
<!-- MENU HOMEGRADE -->
|
||||||
<?php get_template_part('template-components/header/menu-homegrade'); ?>
|
<?php get_template_part('template-components/header/menu-homegrade'); ?>
|
||||||
<?php get_template_part('template-components/header/menu-renovateur'); ?>
|
<?php get_template_part('template-components/header/menu-renovateur'); ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- SEARCH MODULE -->
|
<!-- SEARCH MODULE -->
|
||||||
<?php get_template_part('template-components/header/search-module'); ?>
|
<?php get_template_part('template-components/header/search-module'); ?>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<?php do_action('tailpress_content_start'); ?>
|
<?php do_action('tailpress_content_start'); ?>
|
||||||
|
|
||||||
|
|
||||||
<main id="content" class="site-content flex-grow">
|
<main id="content" class="site-content flex-grow">
|
||||||
<?php
|
|
||||||
restore_current_blog();
|
|
||||||
?>
|
|
||||||
|
|
@ -7,14 +7,15 @@
|
||||||
|
|
||||||
function register_theme_settings_option_page()
|
function register_theme_settings_option_page()
|
||||||
{
|
{
|
||||||
$current_blog_id = get_current_blog_id();
|
|
||||||
|
|
||||||
if (function_exists('acf_add_options_page') && $current_blog_id === 1) {
|
// Check function exists.
|
||||||
|
if (function_exists('acf_add_options_page')) {
|
||||||
|
|
||||||
// Register options page.
|
// Register options page.
|
||||||
$homegrade_option_page = acf_add_options_page(array(
|
$homegrade_option_page = acf_add_options_page(array(
|
||||||
'page_title' => __('Paramètres & Outils', 'homegrade-theme__texte-backoffice'),
|
'page_title' => __('Paramètres & Outils', 'homegrade-theme__texte-backoffice'),
|
||||||
'menu_title' => __('Paramètres', 'homegrade-theme__texte-backoffice'),
|
'menu_title' => __('Paramètres', 'homegrade-theme__texte-backoffice'),
|
||||||
|
|
||||||
'menu_slug' => 'theme-general-settings',
|
'menu_slug' => 'theme-general-settings',
|
||||||
'capability' => 'activate_plugins',
|
'capability' => 'activate_plugins',
|
||||||
'redirect' => false,
|
'redirect' => false,
|
||||||
|
|
|
||||||
0
includes/errorlog.php
Normal file → Executable file
|
|
@ -4,7 +4,6 @@
|
||||||
* Theme setup.
|
* Theme setup.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function tailpress_setup()
|
function tailpress_setup()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -62,7 +61,7 @@ function homegrade_enqueue_scripts()
|
||||||
wp_enqueue_script('gsap', get_template_directory_uri() . '/assets/gsap/gsap.min.js', array(), $theme->get('Version'));
|
wp_enqueue_script('gsap', get_template_directory_uri() . '/assets/gsap/gsap.min.js', array(), $theme->get('Version'));
|
||||||
wp_enqueue_script('swiperjs', get_template_directory_uri() . '/assets/swiper/swiper-bundle_11.min.js', array(), $theme->get('Version'));
|
wp_enqueue_script('swiperjs', get_template_directory_uri() . '/assets/swiper/swiper-bundle_11.min.js', array(), $theme->get('Version'));
|
||||||
wp_enqueue_style('swipercss', get_template_directory_uri() . '/assets/swiper/swiper-bundle.min.css', array(), $theme->get('Version'));
|
wp_enqueue_style('swipercss', get_template_directory_uri() . '/assets/swiper/swiper-bundle.min.css', array(), $theme->get('Version'));
|
||||||
wp_enqueue_style('homegrade-main-css', get_template_directory_uri() . '/css/app.css', array(), $theme->get('Version'));
|
wp_enqueue_style('tailpress', tailpress_asset('css/app.css'), array(), $theme->get('Version'));
|
||||||
|
|
||||||
// #PASSING TRANSLATIONS
|
// #PASSING TRANSLATIONS
|
||||||
wp_register_script('main-app-js', get_template_directory_uri() . '/js/app.js', array('gsap', 'jquery'), $theme->get('Version'));
|
wp_register_script('main-app-js', get_template_directory_uri() . '/js/app.js', array('gsap', 'jquery'), $theme->get('Version'));
|
||||||
|
|
@ -90,15 +89,6 @@ add_action('wp_enqueue_scripts', 'homegrade_enqueue_scripts');
|
||||||
Enqueue Theme assets 🡒 Back
|
Enqueue Theme assets 🡒 Back
|
||||||
-----------------------------------------------------------*/
|
-----------------------------------------------------------*/
|
||||||
add_action('enqueue_block_editor_assets', 'homegrade_enqueue_scripts');
|
add_action('enqueue_block_editor_assets', 'homegrade_enqueue_scripts');
|
||||||
|
|
||||||
function homegrade_enqueue_back_scripts()
|
|
||||||
{
|
|
||||||
wp_enqueue_script('metiers-theme-editor-js', get_stylesheet_directory_uri() . '/js/editor.js', array(), $theme->get('Version'));
|
|
||||||
}
|
|
||||||
|
|
||||||
add_action('enqueue_block_editor_assets', 'homegrade_enqueue_scripts');
|
|
||||||
|
|
||||||
|
|
||||||
// ALSO SEE add_editor_style('css/editor-style.css') line 41
|
// ALSO SEE add_editor_style('css/editor-style.css') line 41
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
0
includes/logos.php
Normal file → Executable file
|
|
@ -16,83 +16,38 @@ function wrap_parent_menu_item_buttons($output, $item, $depth, $args)
|
||||||
$output = '<h6 class="page-group-title">' . $item->title . '</h6>';
|
$output = '<h6 class="page-group-title">' . $item->title . '</h6>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// #### MENU RENOVATEUR
|
||||||
|
// if ($args->theme_location === "renovateur") {
|
||||||
|
// $page_icon = get_field('page_icon', $item->object_id);
|
||||||
|
|
||||||
|
// if (in_array('menu-item-has-children', $item->classes, true)) {
|
||||||
|
// $output = '<button type="button" class="footer__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['url'])) {
|
||||||
|
// $icon = '<img class="page_icon" src="' . $page_icon['url'] . '" alt=""/>';
|
||||||
|
// $link = $output;
|
||||||
|
// $output = $icon . $link;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// // #### 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>";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
add_filter('walker_nav_menu_start_el', 'wrap_parent_menu_item_buttons', 10, 4);
|
add_filter('walker_nav_menu_start_el', 'wrap_parent_menu_item_buttons', 10, 4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------
|
|
||||||
Hide Page presse from homegrade top-menu but not footer
|
|
||||||
-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
|
|
||||||
function metiers_patrimoine_filter_menu_items($items, $args)
|
|
||||||
{
|
|
||||||
|
|
||||||
// ID de l'élément de menu à masquer
|
|
||||||
$isMenuHomegradeInFooter = $args->menu_class === 'menu-homegrade--footer';
|
|
||||||
|
|
||||||
foreach ($items as $key => $item) {
|
|
||||||
$isPagePresse = $item->object_id == "2784" || $item->object_id == "4973";
|
|
||||||
|
|
||||||
if ($isPagePresse && !$isMenuHomegradeInFooter) {
|
|
||||||
unset($items[$key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $items;
|
|
||||||
}
|
|
||||||
add_filter('wp_nav_menu_objects', 'metiers_patrimoine_filter_menu_items', 10, 2);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------
|
|
||||||
PASS CUSTOM WPML NAV SWITCHER TO MENU
|
|
||||||
-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
add_filter('wp_nav_menu_items', 'add_custom_item_to_menu', 10, 2);
|
|
||||||
function add_custom_item_to_menu($items, $args)
|
|
||||||
{
|
|
||||||
|
|
||||||
$isMenuHomegradeInFooter = $args->menu_class === 'menu-homegrade--footer';
|
|
||||||
|
|
||||||
// restore_current_blog();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($args->theme_location === 'homegrade' && !$isMenuHomegradeInFooter) {
|
|
||||||
/* BOUTON METIERS DU PATRIMOINE */
|
|
||||||
|
|
||||||
switch_to_blog(2);
|
|
||||||
// $home_url_metiers_patrimoine = get_home_url();
|
|
||||||
$home_url_metiers_patrimoine = get_the_permalink(43);
|
|
||||||
restore_current_blog();
|
|
||||||
|
|
||||||
$items .= '<li id="menu-item-artisan-du-patrimoine" class="menu-item menu-item-type-post_type menu-item-object-page menu-navlink ">';
|
|
||||||
$items .= '<a href="' . $home_url_metiers_patrimoine . '">';
|
|
||||||
$items .= __('Artisans du patrimoine', 'homegrade');
|
|
||||||
$items .= '</a>';
|
|
||||||
$items .= '</li>';
|
|
||||||
|
|
||||||
|
|
||||||
/* WPML NAV SWITCHER */
|
|
||||||
ob_start();
|
|
||||||
restore_current_blog();
|
|
||||||
// do_action('wpml_language_switcher', array('flags' => false, 'translated' => false, 'link_current' => true));
|
|
||||||
do_action('wpml_add_language_selector');
|
|
||||||
|
|
||||||
switch_to_blog(1);
|
|
||||||
$wpmlnav = ob_get_clean();
|
|
||||||
|
|
||||||
$items .= '<li class="menu-item menu-item-type-post_type menu-item-object-page menu-navlink">';
|
|
||||||
$items .= $wpmlnav;
|
|
||||||
$items .= '</li>';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// switch_to_blog(1);
|
|
||||||
|
|
||||||
return $items;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
// Change Defaults Posts to "News" in menu bar
|
// Change Defaults Posts to "News" in menu bar
|
||||||
function cp_change_post_object()
|
function cp_change_post_object()
|
||||||
{
|
{
|
||||||
|
|
@ -42,10 +44,6 @@ add_action('admin_menu', 'change_menu_icon');
|
||||||
// #### POST TYPES
|
// #### POST TYPES
|
||||||
function create_posttype()
|
function create_posttype()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (get_current_blog_id() != 1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// **** CONSEILS
|
// **** CONSEILS
|
||||||
register_post_type(
|
register_post_type(
|
||||||
'conseils',
|
'conseils',
|
||||||
|
|
|
||||||
|
|
@ -42,14 +42,9 @@ function undo_create_term($term_id, $tt_id, $taxonomy)
|
||||||
REGISTER TAXONOMIES
|
REGISTER TAXONOMIES
|
||||||
--------------------*/
|
--------------------*/
|
||||||
|
|
||||||
function homegrade_add_homegrade_custom_taxonomies()
|
function homegrade_add_custom_taxonomies()
|
||||||
{
|
{
|
||||||
|
|
||||||
$current_blog_id = get_current_blog_id();
|
|
||||||
// write_log("Current blog ID: " . $current_blog_id);
|
|
||||||
// if ($current_blog_id !== 1) {
|
|
||||||
// return; // Skip if not on the main site
|
|
||||||
// }
|
|
||||||
|
|
||||||
// ————— Thématiques —————
|
// ————— Thématiques —————
|
||||||
register_taxonomy('thematiques', ['questions', 'conseils', 'brochures', 'fiches-infos', 'videos-webinaires'], array(
|
register_taxonomy('thematiques', ['questions', 'conseils', 'brochures', 'fiches-infos', 'videos-webinaires'], array(
|
||||||
|
|
@ -109,6 +104,7 @@ $current_blog_id = get_current_blog_id();
|
||||||
'name' => ' Général',
|
'name' => ' Général',
|
||||||
'slug' => 'general',
|
'slug' => 'general',
|
||||||
],
|
],
|
||||||
|
|
||||||
));
|
));
|
||||||
|
|
||||||
// ————— mots-clés —————
|
// ————— mots-clés —————
|
||||||
|
|
@ -135,7 +131,7 @@ $current_blog_id = get_current_blog_id();
|
||||||
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
add_action('init', 'homegrade_add_homegrade_custom_taxonomies', 0);
|
add_action('init', 'homegrade_add_custom_taxonomies', 0);
|
||||||
|
|
||||||
/* -----------------------
|
/* -----------------------
|
||||||
HIDE THEMATIQUE METABOX
|
HIDE THEMATIQUE METABOX
|
||||||
|
|
|
||||||
0
includes/wysiwyg.php
Normal file → Executable file
15
package.json
|
|
@ -1,10 +1,15 @@
|
||||||
{
|
{
|
||||||
"name": "Homegrade_Theme",
|
"name": "tailpress",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"description": "Homegrade Theme",
|
"description": "Boilerplate WordPress theme with Tailwind CSS.",
|
||||||
"author": "Deligraph — Antoine Martinon",
|
"author": "Jeffrey van Rossum",
|
||||||
"author_uri": "https://deligraph.be/",
|
"repository": {
|
||||||
"text_domain": "homegrade-theme",
|
"type": "git",
|
||||||
|
"url": "https://github.com/jeffreyvr/tailpress"
|
||||||
|
},
|
||||||
|
"theme_uri": "https://github.com/jeffreyvr/tailpress",
|
||||||
|
"author_uri": "https://vanrossum.dev",
|
||||||
|
"text_domain": "tailpress",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"production:css-app": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/app.css -o ./css/app.css --postcss --minify",
|
"production:css-app": "cross-env NODE_ENV=development tailwindcss -i ./resources/css/app.css -o ./css/app.css --postcss --minify",
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maybe Refactor ?
|
|
||||||
ol {
|
ol {
|
||||||
@apply list-decimal list-inside;
|
@apply list-decimal list-inside;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,8 @@
|
||||||
@import './components/thematiques-faq-filters.css';
|
@import './components/thematiques-faq-filters.css';
|
||||||
@import './components/checkboxes.css';
|
@import './components/checkboxes.css';
|
||||||
@import './components/search-results.css';
|
@import './components/search-results.css';
|
||||||
@import './components/side-card.css';
|
|
||||||
@import './components/accordeons.css';
|
@import './components/accordeons.css';
|
||||||
@import './components/page-scroller.css';
|
@import './components/page-scroller.css';
|
||||||
@import './components/informative-message.css';
|
|
||||||
@import './components/previous-next-posts.css';
|
@import './components/previous-next-posts.css';
|
||||||
@import './components/forms/field-order-publications.css';
|
@import './components/forms/field-order-publications.css';
|
||||||
@import './components/forms/field-homegrade-rating.css';
|
@import './components/forms/field-homegrade-rating.css';
|
||||||
|
|
@ -123,7 +121,6 @@
|
||||||
@import './blocks/page-card.css';
|
@import './blocks/page-card.css';
|
||||||
@import './blocks/lightbox-gallery.css';
|
@import './blocks/lightbox-gallery.css';
|
||||||
@import './blocks/explainer-screen.css';
|
@import './blocks/explainer-screen.css';
|
||||||
@import './blocks/cta-slim.css';
|
|
||||||
|
|
||||||
/* Home */
|
/* Home */
|
||||||
@import './blocks/home-header.css';
|
@import './blocks/home-header.css';
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ main
|
||||||
a[target='_blank']:not([href*='homegrade\.local']):not([href*='homegrade\.brussels']):not(
|
a[target='_blank']:not([href*='homegrade\.local']):not([href*='homegrade\.brussels']):not(
|
||||||
:has(img)
|
:has(img)
|
||||||
) {
|
) {
|
||||||
&:not(.cta--primary, .cta--secondary, .cta--button, .share-link, .wp-block-button__link) {
|
&:not(.cta--primary, .cta--secondary, .cta--button, .wp-block-button__link) {
|
||||||
@apply inline items-center;
|
@apply inline items-center;
|
||||||
@apply px-2 py-1 first-letter:text-primary underline font-bold relative rounded-md;
|
@apply px-2 py-1 first-letter:text-primary underline font-bold relative rounded-md;
|
||||||
|
|
||||||
|
|
|
||||||
0
resources/css/blocks/aides-financieres.css
Normal file → Executable file
|
|
@ -1,5 +1,5 @@
|
||||||
.block-content-page-header {
|
.block-content-page-header {
|
||||||
@apply py-8 md:py-16 lg:flex gap-12 justify-between mx-auto;
|
@apply py-8 md:py-16 flex gap-12 justify-between mx-auto;
|
||||||
|
|
||||||
.section_titling {
|
.section_titling {
|
||||||
@apply px-0 !mb-1;
|
@apply px-0 !mb-1;
|
||||||
|
|
@ -44,9 +44,3 @@
|
||||||
margin-bottom: unset;
|
margin-bottom: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-content-page-header {
|
|
||||||
.homegrade-blocks-cta-slim + .homegrade-blocks-shortcuts {
|
|
||||||
@apply mt-12;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
.homegrade-blocks-cta-slim {
|
|
||||||
@apply flex items-center font-bold pt-2 w-fit rounded-md;
|
|
||||||
&:after {
|
|
||||||
@apply ml-2;
|
|
||||||
transition: transform 0.2s ease-in-out;
|
|
||||||
/* @apply content-[''] w-4 h-4 bg-green-400 inline-block; */
|
|
||||||
content: url('../resources/img/graphic-assets/chevron-next.svg');
|
|
||||||
}
|
|
||||||
&:hover:after {
|
|
||||||
@apply translate-x-1;
|
|
||||||
transition: transform 0.2s ease-in-out;
|
|
||||||
/* @apply translate-x-2; */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
0
resources/css/blocks/demarches-administratives.css
Normal file → Executable file
0
resources/css/blocks/home-header.css
Normal file → Executable file
|
|
@ -1,31 +1,11 @@
|
||||||
.lightbox-gallery {
|
.lightbox-gallery {
|
||||||
@apply grid sm:grid-cols-2 lg:grid-cols-3 gap-6;
|
@apply grid sm:grid-cols-2 lg:grid-cols-3 gap-6;
|
||||||
img {
|
img {
|
||||||
@apply h-full w-full object-cover max-h-80 rounded-lg;
|
@apply h-full w-full object-cover max-h-80;
|
||||||
}
|
}
|
||||||
&__picture {
|
&__picture {
|
||||||
@apply pointer-events-none;
|
@apply pointer-events-none;
|
||||||
}
|
}
|
||||||
&__trigger {
|
|
||||||
@apply block relative;
|
|
||||||
cursor: zoom-in;
|
|
||||||
/* content: url('../resources/img/graphic-assets/icone-external-link-purple.svg'); */
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
content: '';
|
|
||||||
@apply bg-contain bg-center w-16 h-16 top-1/2 right-1/2 absolute z-40 content-[''];
|
|
||||||
@apply opacity-0;
|
|
||||||
transform: translateY(10px);
|
|
||||||
translate: 50% -50%;
|
|
||||||
background-image: url('../resources/img/graphic-assets/icone-focus-galerie.svg');
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:after {
|
|
||||||
transform: translateY(0px);
|
|
||||||
@apply opacity-100;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.lightbox {
|
.lightbox {
|
||||||
|
|
@ -76,22 +56,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&__container {
|
&__container {
|
||||||
@apply relative flex justify-center items-center bg-white rounded-xl;
|
@apply relative flex justify-center items-center bg-white;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
min-height: 90vh;
|
min-height: 90vh;
|
||||||
@apply my-4 mx-auto;
|
@apply my-4 mx-auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__current-picture {
|
&__current-picture {
|
||||||
img {
|
img {
|
||||||
@apply h-full w-full max-w-xl rounded-lg;
|
@apply h-full w-full max-w-xl;
|
||||||
|
|
||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&__current-picture-description {
|
|
||||||
@apply text-center text-neutral-800 pt-2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes lightboxIn {
|
@keyframes lightboxIn {
|
||||||
|
|
|
||||||
0
resources/css/blocks/show-thematiques.css
Normal file → Executable file
|
|
@ -21,9 +21,6 @@
|
||||||
@apply bg-primary text-white
|
@apply bg-primary text-white
|
||||||
hover:bg-primary-hover;
|
hover:bg-primary-hover;
|
||||||
}
|
}
|
||||||
&--patrimoine {
|
|
||||||
@apply !bg-patrimoine-sante-securite !text-white;
|
|
||||||
}
|
|
||||||
&--white {
|
&--white {
|
||||||
@apply bg-white text-secondary
|
@apply bg-white text-secondary
|
||||||
hover:bg-primary-hover;
|
hover:bg-primary-hover;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
form:not(.metabox-location-side):not(.metabox-location-normal):not(
|
form:not(.metabox-location-side):not(.metabox-location-normal):not(
|
||||||
.metabox-location-advanced,
|
.metabox-location-advanced,
|
||||||
.search-module__search-form,
|
.search-module__search-form
|
||||||
.metier-patrimoine-searchform
|
|
||||||
) {
|
) {
|
||||||
--secondary: #df1e1e;
|
--secondary: #df1e1e;
|
||||||
--secondary-darker: #bd1515;
|
--secondary-darker: #bd1515;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
.informative-message {
|
|
||||||
@apply bg-primary text-white p-8 col-span-4 rounded-3xl flex justify-center;
|
|
||||||
img {
|
|
||||||
@apply mr-2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
.previous-next-parcours,
|
.previous-next-parcours,
|
||||||
.previous-next-questions {
|
.previous-next-questions {
|
||||||
@apply grid md:grid-cols-2 gap-x-6 gap-y-3 mx-auto max-w-screen-xl !px-6 xl:px-24 my-16;
|
@apply grid md:grid-cols-2 gap-x-6 gap-y-3 mx-auto max-w-screen-xl !px-6 xl:px-24 my-16;
|
||||||
|
|
||||||
&__previous,
|
&__previous,
|
||||||
&__next {
|
&__next {
|
||||||
@apply flex gap-4 bg-white rounded-lg shadowed !py-4 px-6 items-center;
|
@apply flex gap-4 bg-white rounded-lg shadowed !py-4 px-6 items-center;
|
||||||
|
|
@ -13,10 +12,6 @@
|
||||||
@apply -translate-y-1 !bg-white;
|
@apply -translate-y-1 !bg-white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__post-thumbnail {
|
|
||||||
@apply w-20 h-20 object-cover rounded-lg;
|
|
||||||
}
|
|
||||||
&__previous {
|
&__previous {
|
||||||
@apply text-left justify-end;
|
@apply text-left justify-end;
|
||||||
&:after {
|
&:after {
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
.side-card {
|
|
||||||
@apply py-4 px-6 w-fit bg-white shadowed text-neutral-900
|
|
||||||
font-bold rounded-2xl flex items-center justify-center my-5 gap-6;
|
|
||||||
|
|
||||||
transition: transform 0.3s;
|
|
||||||
&__title {
|
|
||||||
@apply leading-snug;
|
|
||||||
}
|
|
||||||
&__icon {
|
|
||||||
@apply w-16 h-16;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:after {
|
|
||||||
@apply content-[''] w-3 h-3 block bg-no-repeat bg-center bg-contain mt-1 ml-4;
|
|
||||||
background-image: url('../resources/img/pictogrammes/Homegrade_back_icon.svg');
|
|
||||||
rotate: 180deg;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
@apply translate-x-2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -38,32 +38,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.extra_details {
|
.extra_details {
|
||||||
@apply flex flex-wrap items-center justify-between gap-4;
|
@apply flex flex-wrap items-center justify-between;
|
||||||
|
|
||||||
.sitemap-btn,
|
|
||||||
.metiers-patrimoine-btn {
|
|
||||||
@apply !py-3 !px-5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.metiers-patrimoine-btn {
|
|
||||||
@apply flex items-center justify-center;
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
@apply w-6 h-6 mr-2 block bg-contain bg-center bg-no-repeat content-[''];
|
|
||||||
background-image: url('../resources/img/pictogrammes/Homegrade_artisans-patrimoine.svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-networks {
|
.social-networks {
|
||||||
@apply flex gap-4 ml-auto;
|
@apply flex gap-4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&__partenaires {
|
&__partenaires {
|
||||||
@apply flex flex-wrap col-span-4 justify-center items-center gap-x-12;
|
@apply flex flex-wrap col-span-4 md:col-span-2 justify-center items-center gap-12;
|
||||||
.content-intertitle {
|
|
||||||
@apply w-full text-center;
|
|
||||||
}
|
|
||||||
a img {
|
a img {
|
||||||
@apply inline-block;
|
@apply inline-block;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
/* Handling background page scroll */
|
/* Handling background page scroll */
|
||||||
body:has(header .menu-renovateur .sub-menu--open) {
|
body:has(header .menu-renovateur .sub-menu--open) {
|
||||||
@apply overflow-hidden;
|
|
||||||
@media screen and (max-width: 960px) {
|
@media screen and (max-width: 960px) {
|
||||||
|
@apply overflow-hidden;
|
||||||
|
|
||||||
/* FIXING BUG ON SAFARI */
|
/* FIXING BUG ON SAFARI */
|
||||||
.menu-renovateur__mobile-menu-toggle,
|
.menu-renovateur__mobile-menu-toggle,
|
||||||
main {
|
main {
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
h-fit
|
h-fit
|
||||||
py-2
|
py-2
|
||||||
px-4
|
px-4
|
||||||
lg:pl-0
|
pl-10
|
||||||
xl:pl-24
|
md:pl-24
|
||||||
xl:px-8
|
xl:px-8
|
||||||
2xl:px-32
|
2xl:px-32
|
||||||
my-0;
|
my-0;
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
|
|
||||||
&__navlist {
|
&__navlist {
|
||||||
@apply w-full
|
@apply w-full
|
||||||
max-w-screen-2xl mx-auto lg:flex justify-center items-center pr-0;
|
max-w-screen-2xl mx-auto lg:flex justify-center pr-0;
|
||||||
|
|
||||||
/* Highlight using list element */
|
/* Highlight using list element */
|
||||||
li.current-page-parent > a,
|
li.current-page-parent > a,
|
||||||
|
|
@ -74,7 +74,6 @@
|
||||||
text-center
|
text-center
|
||||||
rounded-xl;
|
rounded-xl;
|
||||||
@apply w-fit lg:mx-0;
|
@apply w-fit lg:mx-0;
|
||||||
line-height: 1;
|
|
||||||
|
|
||||||
button,
|
button,
|
||||||
a {
|
a {
|
||||||
|
|
@ -97,23 +96,6 @@
|
||||||
outline-offset: 8px;
|
outline-offset: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&#menu-item-artisan-du-patrimoine {
|
|
||||||
@apply bg-white text-sm text-neutral-900 font-bold rounded-full mr-1
|
|
||||||
2xl:mr-8 mt-4 lg:mt-0;
|
|
||||||
transition: all 0.3s ease-out;
|
|
||||||
&:focus-within,
|
|
||||||
&:hover {
|
|
||||||
@apply text-primary translate-x-1;
|
|
||||||
}
|
|
||||||
a {
|
|
||||||
@apply flex items-center justify-center !py-1;
|
|
||||||
}
|
|
||||||
a:before {
|
|
||||||
@apply w-6 h-6 mr-2 bg-contain bg-center bg-no-repeat content-[''];
|
|
||||||
background-image: url('../resources/img/pictogrammes/Homegrade_artisans-patrimoine.svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* IF SUBMENU CHILD */
|
/* IF SUBMENU CHILD */
|
||||||
.menu-item__submenu-toggle {
|
.menu-item__submenu-toggle {
|
||||||
@apply pr-4;
|
@apply pr-4;
|
||||||
|
|
@ -136,12 +118,6 @@
|
||||||
transform: translateY(20%) rotate(225deg);
|
transform: translateY(20%) rotate(225deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* .wpml-ls-legacy-list-horizontal {
|
|
||||||
@apply p-0;
|
|
||||||
}
|
|
||||||
.wpml-ls {
|
|
||||||
@apply !p-0;
|
|
||||||
} */
|
|
||||||
}
|
}
|
||||||
/* &__burger-menu-toggle {
|
/* &__burger-menu-toggle {
|
||||||
@apply lg:hidden
|
@apply lg:hidden
|
||||||
|
|
@ -206,64 +182,11 @@
|
||||||
@apply hidden;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* .wpml-ls-legacy-list-horizontal {
|
.wpml-ls-item-nl {
|
||||||
@apply p-0;
|
|
||||||
} */
|
|
||||||
.wpml-ls {
|
|
||||||
@apply !p-0;
|
|
||||||
}
|
|
||||||
/* .wpml-ls-item-nl {
|
|
||||||
@apply xl:ml-8;
|
@apply xl:ml-8;
|
||||||
} */
|
|
||||||
|
|
||||||
.wpml-ls-legacy-dropdown-click {
|
|
||||||
@apply !w-fit mt-4 lg:mt-0;
|
|
||||||
/* margin-left: -10px !important; */
|
|
||||||
|
|
||||||
ul {
|
|
||||||
@apply border-none lg:!px-2;
|
|
||||||
}
|
}
|
||||||
ul.wpml-ls-sub-menu {
|
|
||||||
@apply !pb-2 bg-primary static lg:absolute;
|
|
||||||
|
|
||||||
@media screen and (max-width: 960px) {
|
|
||||||
@apply !visible;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
@apply !bg-transparent !text-white border-none;
|
|
||||||
}
|
|
||||||
a:hover {
|
|
||||||
@apply rounded-lg font-bold;
|
|
||||||
background-color: rgba(255, 255, 255, 0.1) !important;
|
|
||||||
}
|
|
||||||
a.wpml-ls-item-toggle {
|
|
||||||
@apply lg:!px-5;
|
|
||||||
}
|
|
||||||
a.wpml-ls-item-toggle:after {
|
|
||||||
@apply !content-none lg:!content-[''];
|
|
||||||
right: 0px;
|
|
||||||
display: inline-block;
|
|
||||||
transition: all 0.3s ease-out;
|
|
||||||
border: unset;
|
|
||||||
border-bottom: 2px solid white;
|
|
||||||
border-right: 2px solid white;
|
|
||||||
height: 8px;
|
|
||||||
width: 8px;
|
|
||||||
/* margin-left: 10px;
|
|
||||||
margin-left: 20px; */
|
|
||||||
|
|
||||||
transform: rotate(45deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.wpml-ls-item {
|
.wpml-ls-item {
|
||||||
@apply bg-transparent text-white;
|
@apply px-1 inline-block mb-3 lg:mb-0;
|
||||||
}
|
|
||||||
/* OLD LANGUAGE SELECTOR LOOK */
|
|
||||||
/* .wpml-ls-item {
|
|
||||||
@apply !px-1 inline-block mb-3 lg:mb-0;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@apply !rounded-full h-10 w-10 border-2 border-white p-0 !flex justify-center items-center font-semibold text-sm;
|
@apply !rounded-full h-10 w-10 border-2 border-white p-0 !flex justify-center items-center font-semibold text-sm;
|
||||||
|
|
@ -274,15 +197,15 @@
|
||||||
a:hover {
|
a:hover {
|
||||||
@apply !bg-white text-primary font-bold;
|
@apply !bg-white text-primary font-bold;
|
||||||
}
|
}
|
||||||
} */
|
}
|
||||||
/* .wpml-ls-current-language {
|
.wpml-ls-current-language {
|
||||||
a {
|
a {
|
||||||
@apply bg-white text-primary font-bold;
|
@apply bg-white text-primary font-bold;
|
||||||
}
|
}
|
||||||
a:focus-visible {
|
a:focus-visible {
|
||||||
@apply !bg-white text-primary font-bold;
|
@apply !bg-white text-primary font-bold;
|
||||||
}
|
}
|
||||||
} */
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-homegrade--footer {
|
.menu-homegrade--footer {
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ header#main-header {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 960px) {
|
@media screen and (max-width: 1024px) {
|
||||||
.menu-renovateur:not([opened]) {
|
.menu-renovateur:not([opened]) {
|
||||||
@apply h-0 opacity-0;
|
@apply h-0 opacity-0;
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@
|
||||||
px-4
|
px-4
|
||||||
xl:px-8
|
xl:px-8
|
||||||
relative
|
relative
|
||||||
lg:flex
|
flex
|
||||||
flex-nowrap
|
flex-wrap
|
||||||
xl:flex-wrap
|
|
||||||
items-center
|
items-center
|
||||||
justify-between
|
justify-between
|
||||||
lg:justify-center
|
lg:justify-center
|
||||||
|
|
@ -24,7 +23,6 @@
|
||||||
@apply order-1
|
@apply order-1
|
||||||
mr-2
|
mr-2
|
||||||
md:mr-12
|
md:mr-12
|
||||||
lg:mr-0
|
|
||||||
xl:mr-auto
|
xl:mr-auto
|
||||||
w-[140px]
|
w-[140px]
|
||||||
md:w-[190px]
|
md:w-[190px]
|
||||||
|
|
@ -37,10 +35,13 @@
|
||||||
@apply !opacity-90 rounded-md;
|
@apply !opacity-90 rounded-md;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* &__main-elements {
|
||||||
|
@apply w-full bg-red-200 flex justify-between items-center;
|
||||||
|
} */
|
||||||
|
|
||||||
&__navlist {
|
&__navlist {
|
||||||
@apply w-fit
|
@apply w-fit
|
||||||
xl:pl-14
|
md:pl-14
|
||||||
lg:mx-auto
|
lg:mx-auto
|
||||||
lg:flex
|
lg:flex
|
||||||
justify-center;
|
justify-center;
|
||||||
|
|
@ -168,7 +169,7 @@
|
||||||
}
|
}
|
||||||
&__submenu-toggle,
|
&__submenu-toggle,
|
||||||
> a {
|
> a {
|
||||||
@apply lg:p-4 xl:p-6 rounded-3xl
|
@apply p-6 rounded-3xl
|
||||||
flex
|
flex
|
||||||
items-center;
|
items-center;
|
||||||
}
|
}
|
||||||
|
|
@ -304,7 +305,7 @@
|
||||||
.menu-item {
|
.menu-item {
|
||||||
&__submenu-toggle,
|
&__submenu-toggle,
|
||||||
> a {
|
> a {
|
||||||
@apply p-1 xl:p-3;
|
@apply p-3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,20 +5,15 @@
|
||||||
.conseils_wrapper {
|
.conseils_wrapper {
|
||||||
@apply lg:flex gap-x-8 max-w-screen-2xl mx-auto pb-12;
|
@apply lg:flex gap-x-8 max-w-screen-2xl mx-auto pb-12;
|
||||||
|
|
||||||
aside {
|
|
||||||
@apply lg:sticky
|
|
||||||
left-0
|
|
||||||
h-fit
|
|
||||||
lg:max-w-md
|
|
||||||
top-4;
|
|
||||||
}
|
|
||||||
.chapter_index {
|
.chapter_index {
|
||||||
@apply bg-gray
|
@apply bg-gray
|
||||||
w-full
|
w-full
|
||||||
|
lg:max-w-md
|
||||||
p-8
|
p-8
|
||||||
|
h-fit
|
||||||
mb-4
|
lg:sticky
|
||||||
/* lg:sticky */
|
left-0
|
||||||
|
top-4
|
||||||
rounded-2xl;
|
rounded-2xl;
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
|
|
|
||||||
0
resources/img/demo-img/chauffage.jpg
Normal file → Executable file
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
|
@ -1,12 +0,0 @@
|
||||||
<svg id="Groupe_10951" data-name="Groupe 10951" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="41" height="41" viewBox="0 0 41 41">
|
|
||||||
<defs>
|
|
||||||
<clipPath id="clip-path">
|
|
||||||
<rect id="Rectangle_3875" data-name="Rectangle 3875" width="41" height="41" fill="none"/>
|
|
||||||
</clipPath>
|
|
||||||
</defs>
|
|
||||||
<g id="Groupe_10949" data-name="Groupe 10949" clip-path="url(#clip-path)">
|
|
||||||
<path id="Tracé_44192" data-name="Tracé 44192" d="M20.354,0A20.354,20.354,0,1,1,0,20.354,20.354,20.354,0,0,1,20.354,0" fill="#2f0154"/>
|
|
||||||
<path id="Ellipse_2522" data-name="Ellipse 2522" d="M3.916-1A4.916,4.916,0,1,1-1,3.916,4.921,4.921,0,0,1,3.916-1Zm0,8.3a3.38,3.38,0,1,0-3.38-3.38A3.383,3.383,0,0,0,3.916,7.3Z" transform="translate(15.478 15.616)" fill="#fff"/>
|
|
||||||
<path id="Ligne_7504" data-name="Ligne 7504" d="M3.255,4.023A.766.766,0,0,1,2.712,3.8L-.775.311a.768.768,0,0,1,0-1.086.768.768,0,0,1,1.086,0L3.8,2.712a.768.768,0,0,1-.543,1.311Z" transform="translate(22.967 22.836)" fill="#fff"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 670 B |
|
|
@ -1,55 +1,75 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<svg id="renolution-primes" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 223.89 323.88">
|
<svg id="renolution-primes" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 247.37 335.2">
|
||||||
<defs>
|
<defs>
|
||||||
<style>
|
<style>
|
||||||
.cls-1, .cls-2 {
|
.cls-1 {
|
||||||
|
fill: url(#Dégradé_sans_nom_11-3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cls-1, .cls-2, .cls-3, .cls-4 {
|
||||||
stroke-width: 0px;
|
stroke-width: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cls-3 {
|
.cls-5 {
|
||||||
fill: #fff;
|
fill: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cls-3, .cls-4 {
|
.cls-5, .cls-6 {
|
||||||
stroke: #000;
|
stroke: #000;
|
||||||
stroke-linecap: round;
|
stroke-linecap: round;
|
||||||
stroke-linejoin: round;
|
stroke-linejoin: round;
|
||||||
stroke-width: 2px;
|
stroke-width: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cls-2 {
|
.cls-3 {
|
||||||
fill: url(#Dégradé_sans_nom_11);
|
fill: url(#Dégradé_sans_nom_11-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cls-4 {
|
.cls-4 {
|
||||||
|
fill: url(#Dégradé_sans_nom_11);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cls-6 {
|
||||||
fill: none;
|
fill: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<linearGradient id="Dégradé_sans_nom_11" data-name="Dégradé sans nom 11" x1="156.55" y1="6.44" x2="96.61" y2="49.84" gradientTransform="translate(34.23 119.5) rotate(-30) skewX(-30)" gradientUnits="userSpaceOnUse">
|
<linearGradient id="Dégradé_sans_nom_11" data-name="Dégradé sans nom 11" x1="-5717.86" y1="-104.98" x2="-5716.78" y2="-106.12" gradientTransform="translate(-85206.48 -17519.94) rotate(-169.4) scale(15.26 15.2)" gradientUnits="userSpaceOnUse">
|
||||||
<stop offset="0" stop-color="#f3281d"/>
|
<stop offset="0" stop-color="#f3281d"/>
|
||||||
<stop offset="1" stop-color="#fe766f"/>
|
<stop offset="1" stop-color="#fe766f"/>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
|
<linearGradient id="Dégradé_sans_nom_11-2" data-name="Dégradé sans nom 11" x1="-5712.77" y1="-100.18" x2="-5711.22" y2="-101.81" gradientTransform="translate(-86319.6 -10446.66) rotate(-174.12) scale(15.26 15.2)" xlink:href="#Dégradé_sans_nom_11"/>
|
||||||
|
<linearGradient id="Dégradé_sans_nom_11-3" data-name="Dégradé sans nom 11" x1="156.55" y1="17.77" x2="96.61" y2="61.16" gradientTransform="translate(34.23 117.75) rotate(-30) skewX(-30)" xlink:href="#Dégradé_sans_nom_11"/>
|
||||||
</defs>
|
</defs>
|
||||||
<g>
|
<g id="Groupe_5560" data-name="Groupe 5560">
|
||||||
<polygon class="cls-3" points="8.06 262.47 112.64 322.88 112.64 204.34 60.35 108.7 8.06 143.97 8.06 262.47"/>
|
<g id="Groupe_5557" data-name="Groupe 5557">
|
||||||
<polygon class="cls-3" points="112.64 322.88 217.22 263.31 217.22 143.97 112.64 204.34 112.64 322.88"/>
|
<path id="Tracé_23834" data-name="Tracé 23834" class="cls-4" d="m233.24,96.7l-1.82.35c-.23.04-.38.27-.34.5.02.12.09.22.19.28l1.57.98c2.17,1.36,3.68,3.55,4.17,6.06l.35,1.82c.05.23.27.38.5.34.11-.02.22-.09.28-.19l.99-1.57c1.36-2.16,3.57-3.66,6.08-4.14l1.82-.35c.23-.04.38-.27.34-.5-.02-.12-.09-.22-.19-.28l-1.57-.99c-2.17-1.36-3.68-3.55-4.17-6.06l-.35-1.82c-.05-.23-.27-.38-.5-.34-.11.02-.22.09-.28.19l-.99,1.57c-1.36,2.16-3.56,3.66-6.07,4.14Z"/>
|
||||||
<polygon class="cls-3" points="222.89 145.24 166.82 42.68 54.67 107.43 110.75 209.99 222.89 145.24"/>
|
</g>
|
||||||
<polygon class="cls-3" points="54.67 107.43 1 143.97 8.06 143.97 56.71 111.15 54.67 107.43"/>
|
</g>
|
||||||
|
<g id="Groupe_5560-2" data-name="Groupe 5560">
|
||||||
|
<g id="Groupe_5557-2" data-name="Groupe 5557">
|
||||||
|
<path id="Tracé_23834-2" data-name="Tracé 23834" class="cls-3" d="m203.36,9.3l-2.56.71c-.32.09-.51.42-.42.75.05.16.16.3.31.38l2.36,1.22c3.25,1.68,5.66,4.63,6.65,8.15l.72,2.55c.09.32.43.51.75.42.16-.05.3-.16.37-.3l1.22-2.35c1.69-3.24,4.65-5.64,8.18-6.62l2.55-.71c.32-.09.51-.42.42-.75-.05-.16-.16-.3-.31-.38l-2.36-1.22c-3.25-1.68-5.66-4.63-6.65-8.15l-.71-2.55c-.09-.32-.43-.51-.75-.42-.16.05-.3.16-.37.3l-1.22,2.35c-1.69,3.24-4.65,5.64-8.17,6.62Z"/>
|
||||||
</g>
|
</g>
|
||||||
<polygon class="cls-1" points="99.81 144.19 107.72 156.63 183.15 116.01 175.13 103.23 99.81 144.19"/>
|
|
||||||
<g>
|
|
||||||
<polygon class="cls-3" points="161.61 29.38 161.61 76.8 105.87 104.49 105.87 61.48 161.61 29.38"/>
|
|
||||||
<path class="cls-3" d="m159.06,33.87l6.29,3.9-47.27,28.3c-1.26-.14-3.57-.45-5.99-1.05-.89-.22-1.98-.53-2.92-1.46-.34-.34-.57-.67-.71-.9,16.87-9.6,33.73-19.19,50.6-28.79Z"/>
|
|
||||||
<path class="cls-3" d="m105.37,62.89v76.11c.99,1.92,3,5.04,6.52,6.23,3.5,1.18,7.01.14,8.97-1,17.61-10.24,35.21-20.48,52.82-30.73V36.11l-53.65,31.06c-.66.32-5.06,2.35-9.7.24-2.89-1.32-4.39-3.56-4.95-4.51Z"/>
|
|
||||||
<line class="cls-4" x1="120.86" y1="144.23" x2="120.86" y2="67.17"/>
|
|
||||||
<path class="cls-3" d="m173.67,36.11l-2.53-1.81c-17.45,10.18-34.91,20.36-52.36,30.54-1.62.5-4.42,1.05-7.31-.08-1.18-.46-2.94-1.15-3.16-2.57-.19-1.27.89-2.74,2.7-3.61,16.86-9.73,33.73-19.46,50.59-29.19-.75-.48-1.49-.95-2.24-1.43-17.09,9.83-34.17,19.66-51.26,29.48-.78.49-2.81,1.88-2.99,3.96-.28,3.22,4.06,5.73,6.87,6.52,3.64,1.04,6.82-.2,8.04-.75,17.88-10.35,35.76-20.71,53.65-31.06Z"/>
|
|
||||||
</g>
|
</g>
|
||||||
<g>
|
<g>
|
||||||
<polygon class="cls-3" points="118.39 60.39 155.9 38.74 155.9 1 118.39 22.66 118.39 60.39"/>
|
<polygon class="cls-5" points="8.06 273.8 112.64 334.2 112.64 215.67 60.35 120.03 8.06 155.29 8.06 273.8"/>
|
||||||
<line class="cls-4" x1="150.32" y1="12.79" x2="123.97" y2="28"/>
|
<polygon class="cls-5" points="112.64 334.2 217.22 274.64 217.22 155.29 112.64 215.67 112.64 334.2"/>
|
||||||
<line class="cls-4" x1="150.32" y1="21.04" x2="123.97" y2="36.26"/>
|
<polygon class="cls-5" points="222.89 156.57 166.82 54.01 54.67 118.75 110.75 221.31 222.89 156.57"/>
|
||||||
<line class="cls-4" x1="150.32" y1="29.3" x2="123.97" y2="44.51"/>
|
<polygon class="cls-5" points="54.67 118.75 1 155.29 8.06 155.29 56.71 122.48 54.67 118.75"/>
|
||||||
<line class="cls-4" x1="150.32" y1="37.56" x2="123.97" y2="52.77"/>
|
|
||||||
</g>
|
</g>
|
||||||
<polygon class="cls-2" points="165.6 77.3 131.03 97.26 131.03 86.33 165.6 66.37 165.6 77.3"/>
|
<polygon class="cls-2" points="99.81 155.52 107.72 167.96 183.15 127.34 175.13 114.56 99.81 155.52"/>
|
||||||
|
<g>
|
||||||
|
<polygon class="cls-5" points="161.61 40.71 161.61 88.13 105.87 115.82 105.87 72.8 161.61 40.71"/>
|
||||||
|
<path class="cls-5" d="m159.06,45.2l6.29,3.9-47.27,28.3c-1.26-.14-3.57-.45-5.99-1.05-.89-.22-1.98-.53-2.92-1.46-.34-.34-.57-.67-.71-.9,16.87-9.6,33.73-19.19,50.6-28.79Z"/>
|
||||||
|
<path class="cls-5" d="m105.37,74.22v76.11c.99,1.92,3,5.04,6.52,6.23,3.5,1.18,7.01.14,8.97-1,17.61-10.24,35.21-20.48,52.82-30.73V47.44l-53.65,31.06c-.66.32-5.06,2.35-9.7.24-2.89-1.32-4.39-3.56-4.95-4.51Z"/>
|
||||||
|
<line class="cls-6" x1="120.86" y1="155.56" x2="120.86" y2="78.5"/>
|
||||||
|
<path class="cls-5" d="m173.67,47.44l-2.53-1.81c-17.45,10.18-34.91,20.36-52.36,30.54-1.62.5-4.42,1.05-7.31-.08-1.18-.46-2.94-1.15-3.16-2.57-.19-1.27.89-2.74,2.7-3.61,16.86-9.73,33.73-19.46,50.59-29.19-.75-.48-1.49-.95-2.24-1.43-17.09,9.83-34.17,19.66-51.26,29.48-.78.49-2.81,1.88-2.99,3.96-.28,3.22,4.06,5.73,6.87,6.52,3.64,1.04,6.82-.2,8.04-.75,17.88-10.35,35.76-20.71,53.65-31.06Z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<polygon class="cls-5" points="118.39 71.72 155.9 50.07 155.9 12.33 118.39 33.98 118.39 71.72"/>
|
||||||
|
<line class="cls-6" x1="150.32" y1="24.11" x2="123.97" y2="39.33"/>
|
||||||
|
<line class="cls-6" x1="150.32" y1="32.37" x2="123.97" y2="47.58"/>
|
||||||
|
<line class="cls-6" x1="150.32" y1="40.63" x2="123.97" y2="55.84"/>
|
||||||
|
<line class="cls-6" x1="150.32" y1="48.88" x2="123.97" y2="64.1"/>
|
||||||
|
</g>
|
||||||
|
<polygon class="cls-1" points="165.6 88.63 131.03 108.58 131.03 97.66 165.6 77.7 165.6 88.63"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 4.6 KiB |
|
|
@ -1 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?><svg id="artisans-patrimoine" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32.9 32.93"><defs><style>.cls-1{fill:url(#Dégradé_sans_nom_2);stroke-width:0px;}.cls-2{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;}</style><linearGradient id="Dégradé_sans_nom_2" x1="0" y1="23.83" x2="15.76" y2="23.83" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f3281d"/><stop offset="1" stop-color="#fe766f"/></linearGradient></defs><polyline class="cls-2" points="5.47 16.62 25.9 1 31.9 7.01 28.3 7.01 28.3 10.61 24.7 10.61 24.7 14.22 21.09 14.22 21.09 17.82 17.49 17.82 17.49 21.42 13.88 21.42 13.88 25.03"/><path class="cls-1" d="M15.56,25.75L4.75,14.94c-.24-.24-.62-.27-.89-.06l-2.04,1.53c-1.85,1.39-2.37,3.94-1.2,5.94l5.42,9.3c.41.7,1.1,1.16,1.9,1.26.11.01.23.02.34.02.68,0,1.33-.27,1.82-.76l5.46-5.46c.27-.27.27-.69,0-.96Z"/><line class="cls-2" x1="4.66" y1="21.09" x2="8.69" y2="26.56"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 1021 B |
|
|
@ -1,3 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="6.235" height="9.001" viewBox="0 0 6.235 9.001">
|
|
||||||
<path id="Tracé_38214" data-name="Tracé 38214" d="M104.818,76.33l3.829-3.094-3.829-3.094" transform="translate(109.647 77.736) rotate(180)" fill="none" stroke="#8b2ff7" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 5.5 KiB |
|
|
@ -1,4 +1,4 @@
|
||||||
import editorInit from './editor-shortcode';
|
import editorInit from './editor';
|
||||||
import menuInit from './menus';
|
import menuInit from './menus';
|
||||||
import SchemaBulletPointsInit from './schema-bullet-points';
|
import SchemaBulletPointsInit from './schema-bullet-points';
|
||||||
import taxonomyThematiqueFaqInit from './taxonomy-thematique-(faq)';
|
import taxonomyThematiqueFaqInit from './taxonomy-thematique-(faq)';
|
||||||
|
|
@ -29,4 +29,5 @@ window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
// NOTIFICATIONS
|
// NOTIFICATIONS
|
||||||
notificationsInit();
|
notificationsInit();
|
||||||
LightBoxSingle.init();
|
LightBoxSingle.init();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,6 @@ export default function menuInit() {
|
||||||
HANDLE SEARCH
|
HANDLE SEARCH
|
||||||
-----------------------------------------------------------*/
|
-----------------------------------------------------------*/
|
||||||
function isSearchOpen() {
|
function isSearchOpen() {
|
||||||
if (!searchModule) return null;
|
|
||||||
// IF CLOSED
|
// IF CLOSED
|
||||||
if (
|
if (
|
||||||
searchModule.getAttribute('mobile-closed') != null &&
|
searchModule.getAttribute('mobile-closed') != null &&
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
<input class="search-module__search-form__input" type="text" name="s" id="search" value="<?php the_search_query(); ?>" placeholder="<?php echo __('Rechercher dans le site. Taper vos mots-clés ici', 'homegrade-theme__texte-fonctionnel') ?>" />
|
<input class="search-module__search-form__input" type="text" name="s" id="search" value="<?php the_search_query(); ?>" placeholder="<?php echo __('Rechercher dans le site. Taper vos mots-clés ici', 'homegrade-theme__texte-fonctionnel') ?>" />
|
||||||
|
|
||||||
|
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
<span><?php echo __('Rechercher', 'homegrade-theme__texte-fonctionnel') ?></span>
|
<span><?php echo __('Rechercher', 'homegrade-theme__texte-fonctionnel') ?></span>
|
||||||
<img class="search_icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/search-icon.svg' alt=''>
|
<img class="search_icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/search-icon.svg' alt=''>
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ get_header();
|
||||||
$relatedBrochuresPosts = get_posts($queryArgs);
|
$relatedBrochuresPosts = get_posts($queryArgs);
|
||||||
$relatedBrochure = get_field('brochure_pdf', $relatedBrochuresPosts[0]->ID) ?? null;
|
$relatedBrochure = get_field('brochure_pdf', $relatedBrochuresPosts[0]->ID) ?? null;
|
||||||
|
|
||||||
|
|
||||||
$hasManualDocument = get_field('manual_source_document') ?? null;
|
$hasManualDocument = get_field('manual_source_document') ?? null;
|
||||||
$manualSrcDocument = get_field('manual_document_link');
|
$manualSrcDocument = get_field('manual_document_link');
|
||||||
|
|
||||||
|
|
@ -81,27 +82,27 @@ get_header();
|
||||||
'ctaUrl' => $relatedDocumentUrl,
|
'ctaUrl' => $relatedDocumentUrl,
|
||||||
'ctaTitle' => $relatedDocumentCtaTitle,
|
'ctaTitle' => $relatedDocumentCtaTitle,
|
||||||
'hasInfoCapsule' => true,
|
'hasInfoCapsule' => true,
|
||||||
));
|
)); ?>
|
||||||
?>
|
|
||||||
|
|
||||||
<?php /* -------
|
<?php /* -------
|
||||||
CONSEIL
|
CONSEIL
|
||||||
---------------*/ ?>
|
---------------*/ ?>
|
||||||
<div class=" conseils_wrapper">
|
<div class=" conseils_wrapper">
|
||||||
<!-- CHAPTER INDEX -->
|
<!-- CHAPTER INDEX -->
|
||||||
<aside>
|
<aside class="chapter_index">
|
||||||
<?php if ($chapterBlockIndex) {
|
<?php if ($chapterBlockIndex) : ?>
|
||||||
get_template_part('template-components/post-conseils/chapter-index', null, array(
|
<div class="chapter_index__titling">
|
||||||
'chapterBlockIndex' => $chapterBlockIndex,
|
<div class="icon">
|
||||||
));
|
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/icon-feather-menu.svg' ?>" alt="">
|
||||||
} ?>
|
</div>
|
||||||
|
<h2 class="chapter_index__title"> <?php echo __("Dans ce conseil", "homegrade-theme__texte-fonctionnel") ?> </h2>
|
||||||
<?php
|
</div>
|
||||||
if ($mainThematique->term_id == 59 || $mainThematique->term_id == 32) {
|
<ul class="chapter_index__list">
|
||||||
get_template_part('template-components/post-conseils/find-artisan', null, array());
|
<div class="chapter_index__position-indicator"></div>
|
||||||
}
|
<?php foreach ($chapterBlockIndex as $chapter) : ?>
|
||||||
?>
|
<li class="chapter_index__link"><a href="<?php echo $chapter['anchor'] ?>"><?php echo $chapter['title'] ?></a></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<!-- ARTICLE -->
|
<!-- ARTICLE -->
|
||||||
|
|
@ -115,5 +116,10 @@ get_header();
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
get_footer();
|
get_footer();
|
||||||
|
|
|
||||||
0
style-login.css
Normal file → Executable file
|
|
@ -3,7 +3,7 @@ Theme Name: Homegrade_Theme
|
||||||
Author: Deligraph
|
Author: Deligraph
|
||||||
Author URI: https://deligraph.com/
|
Author URI: https://deligraph.com/
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Text Domain: metiers-du-patrimoine
|
Text Domain: homegrade-theme__texte-fonctionnel
|
||||||
Language: French
|
Language: French
|
||||||
Test
|
Test
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ module.exports = {
|
||||||
md: '782px',
|
md: '782px',
|
||||||
lg: tailpress.theme('settings.layout.contentSize', theme),
|
lg: tailpress.theme('settings.layout.contentSize', theme),
|
||||||
xl: tailpress.theme('settings.layout.wideSize', theme),
|
xl: tailpress.theme('settings.layout.wideSize', theme),
|
||||||
'2xl': '1441px',
|
'2xl': '1440px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [tailpress.tailwind],
|
plugins: [tailpress.tailwind],
|
||||||
|
|
|
||||||
|
|
@ -3,17 +3,18 @@
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<nav class="menu-homegrade menu-homegrade--header" closed>
|
<nav class="menu-homegrade menu-homegrade--header" closed>
|
||||||
|
<!-- <div class="menu-homegrade__wrapper-container"> -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$args = array(
|
wp_nav_menu(
|
||||||
|
array(
|
||||||
'container' => 'false',
|
'container' => 'false',
|
||||||
'theme_location' => 'homegrade',
|
'theme_location' => 'homegrade',
|
||||||
'li_class' => 'menu-navlink',
|
'li_class' => 'menu-navlink',
|
||||||
'fallback_cb' => false,
|
'fallback_cb' => false,
|
||||||
'menu_class' => 'menu-homegrade-header menu-homegrade__navlist',
|
'menu_class' => 'menu-homegrade-header menu-homegrade__navlist',
|
||||||
'menu_id' => 'menu-homegrade-navlist',
|
'menu_id' => 'menu-homegrade-navlist',
|
||||||
);
|
|
||||||
wp_nav_menu($args);
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
switch_to_blog(1);
|
|
||||||
$menu_name = 'renovateur';
|
$menu_name = 'renovateur';
|
||||||
$locations = get_nav_menu_locations();
|
$locations = get_nav_menu_locations();
|
||||||
$menu = wp_get_nav_menu_object($locations[$menu_name]);
|
$menu = wp_get_nav_menu_object($locations[$menu_name]);
|
||||||
|
|
@ -155,7 +153,7 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<a href="<?php echo "#" ?>">
|
<a href="<?php echo get_permalink($taxonomyRelatedPost->ID) ?>">
|
||||||
<?php if ($cover) : ?>
|
<?php if ($cover) : ?>
|
||||||
<img class="sub-menu__navlist__thematique-icon" src="<?php echo $cover['icon']['url'] ?>" alt="">
|
<img class="sub-menu__navlist__thematique-icon" src="<?php echo $cover['icon']['url'] ?>" alt="">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
@ -219,7 +217,3 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
|
||||||
restore_current_blog();
|
|
||||||
?>
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
switch_to_blog(1);
|
|
||||||
$logoID = get_theme_mod('custom_logo');
|
$logoID = get_theme_mod('custom_logo');
|
||||||
$logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
$logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
||||||
?>
|
?>
|
||||||
|
|
@ -38,8 +37,3 @@ $logoSRC = wp_get_attachment_image_src($logoID, 'full');
|
||||||
// get_template_part('template-components/header/search-module');
|
// get_template_part('template-components/header/search-module');
|
||||||
?>
|
?>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
restore_current_blog();
|
|
||||||
?>
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
// switch_to_blog(1);
|
|
||||||
?>
|
?>
|
||||||
<div id="search-module" class="search-module" mobile-closed aria-hidden role="search">
|
<div id="search-module" class="search-module" mobile-closed aria-hidden role="search">
|
||||||
<div class="search-module__wrapper-container">
|
<div class="search-module__wrapper-container">
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
$suggestions_posts = new WP_Query($args);
|
$suggestions_posts = new WP_Query($args);
|
||||||
?>
|
?>
|
||||||
<ul class="search-module__suggestions__navlist">
|
<ul class="search-module__suggestions__navlist">
|
||||||
|
|
||||||
<?php foreach ($suggestions_posts->posts as $post) : ?>
|
<?php foreach ($suggestions_posts->posts as $post) : ?>
|
||||||
<li class="suggestion-item">
|
<li class="suggestion-item">
|
||||||
<a href="<?php echo get_the_permalink($post->ID) ?>"><?php echo $post->post_title ?></a>
|
<a href="<?php echo get_the_permalink($post->ID) ?>"><?php echo $post->post_title ?></a>
|
||||||
|
|
@ -26,7 +27,3 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
|
||||||
// restore_current_blog();
|
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
<?php
|
|
||||||
$message = $args['message'];
|
|
||||||
if (!$message) return;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="informative-message">
|
|
||||||
<img src='<?php echo get_template_directory_uri() ?>/resources/img/pictogrammes/icone-info.svg' alt=''>
|
|
||||||
<p><?php echo $message ?></p>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
<?php
|
|
||||||
$chapterBlockIndex = $args["chapterBlockIndex"];
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="chapter_index">
|
|
||||||
<div class="chapter_index__titling">
|
|
||||||
<div class="icon">
|
|
||||||
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/icon-feather-menu.svg' ?>" alt="">
|
|
||||||
</div>
|
|
||||||
<h2 class="chapter_index__title"> <?php echo __("Dans ce conseil", "homegrade-theme__texte-fonctionnel") ?> </h2>
|
|
||||||
</div>
|
|
||||||
<ul class="chapter_index__list">
|
|
||||||
<div class="chapter_index__position-indicator"></div>
|
|
||||||
<?php foreach ($chapterBlockIndex as $chapter) : ?>
|
|
||||||
<li class="chapter_index__link"><a href="<?php echo $chapter['anchor'] ?>"><?php echo $chapter['title'] ?></a></li>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
// get network site 2 home url
|
|
||||||
$networkArtisan = get_blog_details(2);
|
|
||||||
$networkArtisanHomeUrl = isset($networkArtisan->home) ? $networkArtisan->home : '';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<a href="<?php echo $networkArtisanHomeUrl ?>" class="side-card">
|
|
||||||
<img class="side-card__icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/Homegrade_chercher-entreprise.svg' ?>" alt=''>
|
|
||||||
<p class="side-card__title"> <?php echo __("Trouver un artisan du patrimoine pour réaliser vos rénovations", "metiers-patrimoine-theme") ?></p>
|
|
||||||
</a>
|
|
||||||
|
|
@ -22,7 +22,6 @@
|
||||||
.share-button a {
|
.share-button a {
|
||||||
@apply bg-primary !block w-8 h-8 rounded-full p-4 relative;
|
@apply bg-primary !block w-8 h-8 rounded-full p-4 relative;
|
||||||
transition: transform 0.3s ease-in-out;
|
transition: transform 0.3s ease-in-out;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
@apply absolute w-3 h-3 bg-contain bg-center bg-no-repeat;
|
@apply absolute w-3 h-3 bg-contain bg-center bg-no-repeat;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
|
|
|
||||||