<main class="main" data-scroll-section>
    <div class="container">
        <div class="webinaire">
            <div class="webinaire_header">
                <h2>Pradel</h2>
                <div><?php echo $pageData['surtitle']; ?></div>
            </div>
            <h1 class="webinaire_title" data-splitting="words"><?php echo $pageData['maintitle']; ?></h1>
            <div>
                <div class="row">
                    <div class="col-6 offset-6 col-sm-16 offset-sm-1">
                        <button type="button" class="webinaire_action" data-webinar="<?php echo $post->ID; ?>">
                            Je<br/><strong>m'inscris</strong>
                        </button>
                    </div>
                    <div class="col-4 offset-1 col-sm-16 col--first-sm">
                        <div class="webinaire_content">
                            <div class="webinaire_date"><?php echo $pageData['date']; ?></div>
                            <div><?php echo $pageData['content']; ?></div>
                            <?php svg('quote', 'webinaire_content_icon') ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <?php if ($pageData['photos']): ?>
        <div class="trailEffect">
            <?php foreach ($pageData['photos'] as $photo): ?>
                <img src="<?php echo getImageUrl($photo, 'medium'); ?>" alt="<?php echo pradel_format_attr($pageData['maintitle']); ?>" class="trailImg" />
            <?php endforeach; ?>
        </div>
        <?php endif; ?>
    </div>
</main>

<div class="webinaire_form">
    <div class="webinaire_form_mask"></div>
    <div class="webinaire_form_content" data-webinar="<?php echo $post->ID; ?>">
        <div class="webinaire_form_scroller">
            <div class="webinaire_form_title"><?php echo $pageData['titreform']; ?></div>
            <div class="webinaire_form_intro"><?php echo $pageData['introform']; ?></div>
            <?php if ($pageData['codeform']): ?>
                <div class="webinaire_form_code">
                    <?php echo replaceWidgetContainer($pageData['codeform'], $post->ID); ?>
                </div>
            <?php elseif ($pageData['urlform']): ?>
                <iframe frameborder="0" class="webinaire_form_iframe" src="<?php echo $pageData['urlform']; ?>"></iframe>
            <?php endif; ?>
        </div>
    </div>
</div>