This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //thanks to : https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/ | |
| if ($(this).parent().hasClass('open-menu') == true) { | |
| const scrollY = document.body.style.top; | |
| document.body.style.position = ''; | |
| document.body.style.top = ''; | |
| window.scrollTo(0, parseInt(scrollY || '0') * -1); | |
| } else { | |
| document.body.style.top = '-' + window.scrollY + 'px'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if ( (( document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop ) >= | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| $classes = ['block-video-rgpd']; | |
| if (!empty($block['className'])) | |
| $classes = array_merge($classes, explode(' ', $block['className'])); | |
| $anchor = ''; | |
| if (!empty($block['anchor'])) | |
| $anchor = ' id="' . sanitize_title($block['anchor']) . '"'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | IMPORT DATABASE INTO MAMP | |
| Step One: | |
| Open a new terminal window | |
| CAREFUL: This will replace all tables in the database you specify! | |
| Step Two: | |
| /applications/MAMP/library/bin/mysql -u [USERNAME] -p [DATABASE_NAME] < [PATH_TO_SQL_FILE] | |
| Hit the Enter Key | |
| Example: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php if (!empty($post->post_parent)) { | |
| $pagelist = get_pages("child_of=" . $post->post_parent . "&sort_column=menu_order&sort_order=asc&exclude=" . $post->ID); | |
| $page_array = array(); | |
| foreach ($pagelist as $item) { | |
| $page_array[] += $item->ID; | |
| } | |
| if (!empty($page_array)) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <header id="header"> | |
| <div id="mainNav" class="bg-secondary"> | |
| <div class="navbar-wrapper"> | |
| <nav class="navbarMenu"> | |
| <a class="navbarMenu__brand" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a> | |
| <button class="navbarMenu__btn hamburger hamburger--spring" type="button" id="js-navbar-toggle"> | |
| <p>Menu</p> | |
| <span class="hamburger-box"> | |
| <span class="hamburger-inner"></span> | |
| </span> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function enqueue_my_scripts(){ | |
| if (!is_admin()) { | |
| wp_deregister_script('google-hosted-jquery'); | |
| wp_dequeue_script('google-hosted-jquery'); | |
| // load style in dist folder | |
| foreach( glob( get_template_directory(). '/dist/*.css' ) as $file ) { | |
| $info = pathinfo($file); | |
| // $file contains the name and extension of the file | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| global $wp_query; | |
| $currentPage = get_query_var('paged'); | |
| $total = $wp_query->max_num_pages; | |
| // si il n'y a pas de page | |
| if( !$currentPage) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import lottie from "lottie-web"; | |
| import "@lottiefiles/lottie-player"; | |
| import { create } from "@lottiefiles/lottie-interactivity"; | |
| const lottiesScroll = document.querySelectorAll(".lottie-scroll-player"); | |
| if (lottiesScroll.length) { | |
| lottiesScroll.forEach(function (anim) { | |
| // ne surtout pas le lancer dans un domContentLoad |