%PDF- %PDF-
Direktori : /var/www/cwg/wp-content/themes/cwg/ |
Current File : //var/www/cwg/wp-content/themes/cwg/index.php |
<?php /** * The main template file * Template Name: Accueil * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package onepoint */ get_header(); ?> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); if (isUserB2B()) { ?> <div class="js-headerGap"></div> <div class="page-container homepage"> <div class="filtered-title"> <h1>All Inventory</h1> <div class="filtered-by"> <label>Filtering By:</label> <?php echo do_shortcode( '[wpgb_facet id="38" grid="5"]' ); ?> <?php echo do_shortcode( '[wpgb_facet id="39" grid="5"]' ); ?> <span class="selected-empty">You have no filters selected</span> </div> </div> <h1 class="h-0 invisible">Carpenters Workshop Pro</h1> <!----Should be placed when there is no carousel--> <!-- <section class="js-collectibles mt-8"> <div class="cwg-container-main"> <div class="flex flex-row justify-between mb-5"> <div class="block lg:hidden uppercase leading-[15px]">Now trending</div> </div> <div class="js-productContainer"></div> <div class="js-productContainer mb-20"> <div class="js-isHome"></div> <div class="js-content js-collectible-quick-container w-full grid grid-cols-2 gap-3 grid-rows-2 lg:gap-10 lg:grid-cols-4"> <?php //get_collectibles(null, false, 'display', true); ?> </div> <div class="js-loader hidden"> <div class="mx-auto flex items-center w-10 h-10 mt-12"> <?php //include(locate_template('/assets/img/loader.svg')); ?> </div> </div> </div> </div> </section> --> <?php echo do_shortcode('[wpgb_grid id="5"]'); ?> </div> <?php } else { ?> <h1 class="h-0 invisible">Carpenters Workshop Gallery</h1> <!-- ROW carrousel --> <section class="relative h-screen w-full"> <?php if (have_rows('caroussel')) : ?> <div class="js-slider-b2c w-full h-full"> <?php while (have_rows('caroussel')) : the_row(); ?> <div class="slide-container"> <?php $row_image_mobile = get_sub_field('background_mobile'); ?> <?php $row_image_desktop = get_sub_field('background_desktop'); ?> <figure> <?= wp_get_attachment_image($row_image_mobile['id'], 'full', false, array('class' => 'sliderMobile object-cover')); ?> <?= wp_get_attachment_image($row_image_desktop['id'], 'full', false, array('class' => 'sliderDesktop object-cover')); ?> <figcaption class="w-full px-5 pt-6 pb-44 lg:pb-48 opacity-90 uppercase lg:px-[60px]"> <p class="text-[11px] leading-5 font-light lg:mb-[12px]"><span class="font-medium"><?php the_sub_field('city'); ?></span> | <?php the_sub_field('date'); ?></p> <h3 class="js-titleSlider text-[20px] leading-7 font-medium"><?php the_sub_field('firstname_artist'); ?> <?php the_sub_field('name_artist'); ?></h3> <h3 class="h-[25px] text-[20px] leading-7 font-thin mb-5"><?php the_sub_field('subtitle'); ?></h3> <a href="<?php the_sub_field('link_article'); ?>" class="w-[130px] h-[40px] leading-[40px] flex items-center justify-center text-[12px] font-light text-center border border-white"><?php the_sub_field('label_button'); ?></a> </figcaption> </figure> </div> <?php endwhile; ?> </div> <div class="js-navSlider-b2c w-full absolute uppercase lg:pl-[36px]"> <?php while (have_rows('caroussel')) : the_row(); ?> <div class="h-10 my-1.5 text-[12px] opacity-50 flex items-end"> <p class="js-titleSlider flex flex-col w-[100px] leading-4 flex items-start pb-[6px] h-full border-b border-white lg:w-[120px] justify-end <?php if(strtolower(get_sub_field('title_artist')) === "what’s on live") { echo 'lg:justify-center'; } ?>"> <?php the_sub_field('firstname_artist'); ?> <?php if(get_sub_field('name_artist')!="") : ?> <br class="lg:hidden"> <?php endif; ?> <?php the_sub_field('name_artist'); ?> <br> <span class="hidden lg:flex font-light"><?php the_sub_field('subtitle'); ?> </span> </p> </div> <?php endwhile; ?> </div> <?php endif; ?> </section> <div class="page-container homepage"> <div class="filtered-title"> <h1>All Inventory</h1> <div class="filtered-by"> <label>Filtering By:</label> <span>You have no filters selected</span> </div> </div> <?php echo do_shortcode('[wpgb_grid id="7"]'); ?> </div> <!-- ROW instagram --> <!-- <section class="w-full flex flex-col -pr-5 bg-grey-light pt-4 pb-[44px] mt-10 mb-[15px]"> <div class="flex justify-between items-center px-5 lg:px-[60px]"> <h2 class="text-[13px] leading-5 uppercase"><span><b>Follow us on instagram</b></span><br /><b>@carpentersworkshopgallery</b></h2> <a href="https://www.instagram.com/carpentersworkshopgallery/?hl=fr" class="ml-[auto] lg:mb-0 lg:order-3 lg:hidden"> <?php //include(locate_template('/assets/img/icon-instagram.svg')); ?> </a> <a href="https://www.instagram.com/carpentersworkshopgallery/?hl=fr" target="_blank" rel="noopener noreferrer nofollow" class="hidden ml-[auto] lg:mb-0 lg:order-3 lg:flex"> <?php //include(locate_template('/assets/img/icon-instagram.svg')); ?> </a> </div> <div class="pl-5 mt-5 pb-4 flex flex-nowrap overflow-x-auto w-full gap-5 lg:px-[60px]"> <div class="h-[265px] flex-shrink-0 bg-grey-light lg:h-[320px]"><?php //echo do_shortcode("[instagram-feed num=5 cols=5 showfollow=false]"); ?></div> </div> </section> --> <?php } } } ?> <?php get_footer();