%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/cwg/wp-content/themes/cwg/
Upload File :
Create Path :
Current File : //var/www/cwg/wp-content/themes/cwg/single-viewingroom.php

<?php get_header(); ?>

<?php $number = 0; ?>
<?php $modal_content = ''; ?>

<div class="flex flex-col overflow-x-hidden js-viewing-room">
    <div class="js-headerGap h-[51px]"></div>
    <?php foreach(get_field('content') as $content): $number++; ?>
        <?php if($content['acf_fc_layout'] === 'title'): ?>
            <?php include(locate_template('template-parts/viewing-rooms/title.php')); ?>
        <?php elseif($content['acf_fc_layout'] === 'video'): ?>
            <?php include(locate_template('template-parts/viewing-rooms/video.php')); ?>
        <?php elseif($content['acf_fc_layout'] === 'description_with_picture'): ?>
            <?php include(locate_template('template-parts/viewing-rooms/text.php')); ?>
        <?php elseif($content['acf_fc_layout'] === 'image' && isset($content['image']['ID'])): ?>
            <?= wp_get_attachment_image($content['image']['ID'], 'full', false, array('class' => "w-full min-h-[70vh] h-auto object-cover")); ?>
        <?php elseif($content['acf_fc_layout'] === 'grid'): ?>
            <?php include(locate_template('template-parts/viewing-rooms/grid.php')); ?>
        <?php elseif($content['acf_fc_layout'] === 'product_list'): ?>
            <?php include(locate_template('template-parts/viewing-rooms/product-list.php')); ?>
        <?php endif; ?>
    <?php endforeach; ?>
</div>

<?= $modal_content ?>

<?php
    $user = wp_get_current_user();
    $idSale = $user->client_sale;
    if($idSale) {
        $sale = get_user_by('id', $idSale);
        $sale_mail = $sale->user_email;
        $productName = '';
        $userName = $user->user_firstname . ' ' . $user->user_lastname;
        $userMail = $user->user_email;
        $to = $sale_mail;
    }
    
    include(locate_template('template-parts/popups/enquire-modal.php'));
?>

<?php get_footer(); ?>

<script src="https://player.vimeo.com/api/player.js"></script>
<script src="<?= get_template_directory_uri() . '/assets/js/viewingroom.js' ?>"></script>

Zerion Mini Shell 1.0