111 lines
3.9 KiB
PHP
111 lines
3.9 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying the footer
|
|
*
|
|
* Contains the closing of the #content div and all content after.
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
|
*
|
|
* @package skysafe
|
|
*/
|
|
|
|
$form_box = get_field('form_box', 'option');
|
|
$map_box = get_field('map_box', 'option');
|
|
$footer_box = get_field('footer_box', 'option');
|
|
?>
|
|
<section id="zarezerwuj-miejsce">
|
|
<div class="box-bg">
|
|
<img src="/wp-content/uploads/2025/08/icon-2.svg" alt="">
|
|
</div>
|
|
<div class="container">
|
|
<div class="c-row">
|
|
<div class="c-col c-col-1">
|
|
<h2 class="h2-title"><?php echo $form_box['title']; ?></h2>
|
|
|
|
<ul>
|
|
<?php foreach ($form_box['list'] as $key => $item) : ?>
|
|
<li>
|
|
<div class="icon">
|
|
<img src="/wp-content/uploads/2025/08/icon-1.svg" alt="">
|
|
</div>
|
|
<div class="text">
|
|
<?php echo $item['text']; ?>
|
|
</div>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<div class="c-col c-col-2">
|
|
<div class="form-box">
|
|
<div class="form-head">
|
|
<h4><?php echo $form_box['form_box']['mini_title']; ?></h4>
|
|
<?php echo $form_box['form_box']['title']; ?>
|
|
</div>
|
|
<div class="form-content">
|
|
<?php echo do_shortcode( '[contact-form-7 id="dedc259" title="Kontakt"]' ); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="lokalizacja">
|
|
<div class="box-bg">
|
|
<iframe src="<?php echo $map_box['maps']; ?>" width="100%" height="100%" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
|
|
</div>
|
|
<div class="container">
|
|
<div class="c-row">
|
|
<div class="card">
|
|
<h4><?php echo $map_box['title']; ?></h4>
|
|
<h3><?php echo $map_box['text']; ?></h3>
|
|
<a class="btn-3" href="<?php echo $map_box['btn']['url']; ?>" <?php echo isset($map_box['btn']['target']) ? 'target="' . $map_box['btn']['target'] . '"' : ''; ?>><?php echo $map_box['btn']['title']; ?></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<footer id="colophon" class="site-footer">
|
|
<div class="container">
|
|
<div class="c-row">
|
|
<div class="footer-left">
|
|
<ul>
|
|
<li class="copyright">
|
|
<?php echo $footer_box['copyright']; ?>
|
|
</li>
|
|
<li>
|
|
<a href="<?php echo $footer_box['privacy-policy']['url']; ?>"><?php echo $footer_box['privacy-policy']['title']; ?></a>
|
|
</li>
|
|
<li>
|
|
<a href="<?php echo $footer_box['terms-and-conditions']['url']; ?>"><?php echo $footer_box['terms-and-conditions']['title']; ?></a>
|
|
</li>
|
|
<li>
|
|
<?php echo $footer_box['contact']; ?>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer-right">
|
|
<?php echo $footer_box['implementation']; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer><!-- #colophon -->
|
|
</div><!-- #page -->
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
document.querySelectorAll('.c-item label').forEach(label => {
|
|
const inputWrap = label.querySelector('.wpcf7-form-control-wrap');
|
|
const p = label.querySelector('p');
|
|
if (inputWrap && p) {
|
|
inputWrap.appendChild(p);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<?php wp_footer(); ?>
|
|
|
|
</body>
|
|
</html>
|