%PDF- %PDF-
Direktori : /var/www/cwg/wp-content/themes/cwg/ |
Current File : //var/www/cwg/wp-content/themes/cwg/exhibitions-and-fairs.php |
<?php /** * The main template file * Template Name: Exhibitions & Fairs * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package onepoint */ get_header(); $pageId = [ 191727, 202402, 191729, 282784 ]; $post_type = get_field('type') ? get_field('type') : $post->post_name; $taxonomy_name = get_taxonomy_name($post_type); $filters = $taxonomy_name ? get_terms(['taxonomy' => $taxonomy_name]) : false; ?> <div class="js-headerGap h-[51px]"></div> <div class="px-5 md:px-14"> <h1 class="leading-6 text-[16px] font-medium mt-[27px] md:mt-[30px] uppercase text-center"><b><?= __('Exhibitions & Fairs') ?></b></h1> <div class="flex flex-row gap-7 mt-[19px] text-[12px] font-light leading-[15px] justify-center uppercase"> <?php foreach($pageId as $id): ?> <?php $section = get_post($id); ?> <a href="<?= $id !== $post->ID ? get_the_permalink($id) : '#' ?>" class="<?= $id == $post->ID ? 'font-medium uppercase' : '' ?>"><?= $section->post_title ?></a> <?php endforeach ?> </div> <div class="flex flex-row overflow-x-auto gap-[10px] md:gap-7 md:pb-[12px] mt-[17px] js-artistFilters js-carpenters-workshop-element mb-[18px]" style="display:none;"> <?php if($filters && 202402 !== $post->ID): ?> <input type="checkbox" id="all" class="hidden js-checkfilter-exhibitions-and-fairs" checked disabled/> <label for="all" class="btn-selectable select-none lg:mr-0 lg:min-w-[120px] lg:max-w-[120px]"><?= __('All') ?></label> <?php foreach($filters as $filter): ?> <input type="checkbox" id="<?= $filter->slug ?>" class="hidden js-checkfilter-exhibitions-and-fairs" disabled/> <label for="<?= $filter->slug ?>" class="btn-selectable select-none lg:min-w-[120px] lg:max-w-[120px]"><?= $filter->name ?></label> <?php endforeach; ?> <?php endif; ?> </div> <div data-type="<?= $post_type ?>" class="js-container-exhibitions-and-fairs"> <?php search_exhibitions_and_fairs($post_type); ?> </div> <div class="js-loader hidden"> <div class="mx-auto flex items-center w-10 h-10 my-12"> <?php include(locate_template('/assets/img/loader.svg')); ?> </div> </div> </div> <?php get_footer(); ?>