179 lines
9.0 KiB
PHP
179 lines
9.0 KiB
PHP
<?php
|
|
/**
|
|
* Page: Nasze usługi
|
|
*/
|
|
|
|
get_header();
|
|
|
|
$box1 = get_field('box-1');
|
|
$box2 = get_field('box-2');
|
|
$box3 = get_field('box-3');
|
|
$box4 = get_field('box-4');
|
|
?>
|
|
<main id="primary" class="site-main">
|
|
<div class="box-0">
|
|
<?php get_template_part('inc/breadcrumb');?>
|
|
</div>
|
|
|
|
<div class="box-1">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col col-1">
|
|
<div class="box-head">
|
|
<?php echo $box1['title']; ?>
|
|
</div>
|
|
<div class="box-text">
|
|
<p><?php echo esc_html($box1['text']); ?></p>
|
|
</div>
|
|
<a class="btn_3" href="<?php echo esc_url($box1['btn']['url']); ?>" target="<?php echo esc_attr($box1['btn']['target'] ?: '_self'); ?>">
|
|
<?php echo esc_html($box1['btn']['title']); ?>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box-2">
|
|
<div class="row row-1">
|
|
<div class="col col-1">
|
|
<img src="<?php echo esc_url($box2['img']); ?>" alt="">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="row row-2">
|
|
<div class="c-tabs">
|
|
<ul class="c-tabs--nav">
|
|
<?php foreach ($box2['tabs'] as $i => $tab) : ?>
|
|
<li tab_id="<?= $i + 1; ?>" <?= $i === 0 ? 'class="active"' : ''; ?>><?= esc_html($tab['tab_name']); ?></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<div class="c-tabs--content">
|
|
<?php foreach ($box2['tabs'] as $tab_id => $tab) : ?>
|
|
<div tab_id="<?= $tab_id + 1; ?>" class="c-tab--item" <?= $i === 0 ? 'style="display: block;"' : ''; ?>>
|
|
<div class="t-row t-row-1">
|
|
<div class="t-col t-col-1">
|
|
<div class="t-head">
|
|
<h2><?= esc_html($tab['card_description']['title']); ?></h2>
|
|
</div>
|
|
<div class="t-text">
|
|
<p><?= esc_html($tab['card_description']['text']); ?></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="t-row t-row-2 c-acc-group">
|
|
<div class="t-col t-col-1">
|
|
<ol class="c-acc-advanced" acc_parent_id="<?= $tab_id + 1; ?>">
|
|
<?php foreach ($tab['accordion'] as $parent_item_id => $item) : ?>
|
|
<li class="c-acc--item" acc_parent_item_id="<?= $parent_item_id + 1; ?>">
|
|
<div class="c-acc--head">
|
|
<i class="icon"></i>
|
|
<span><?= esc_html($item['title']); ?></span>
|
|
</div>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ol>
|
|
</div>
|
|
<div class="t-col t-col-2">
|
|
<ol class="c-acc-advanced" acc_child_id="<?= $tab_id + 1 ; ?>">
|
|
<?php foreach ($tab['accordion'] as $child_item_id => $item) :
|
|
$title = $item['accordion_data']['title'] ?? '';
|
|
$text = $item['accordion_data']['text'] ?? '';
|
|
$btn = $item['accordion_data']['btn'] ?? [];
|
|
$btn_url = $btn['url'] ?? '';
|
|
$btn_title = $btn['title'] ?? '';
|
|
$btn_target = $btn['target'] ?? '_self';
|
|
|
|
// if (empty($title) && empty($text) && empty($btn_url) && empty($btn_title)) {
|
|
// continue;
|
|
// }
|
|
?>
|
|
<li class="c-acc--item" acc_child_item_id="<?= $child_item_id + 1; ?>">
|
|
<div class="c-acc--body">
|
|
<?php if (!empty($title)) : ?>
|
|
<div class="tab-description--head">
|
|
<h3><?= esc_html($title); ?></h3>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($text)) : ?>
|
|
<div class="tab-description--text">
|
|
<?= wp_kses_post($text); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($btn_url) && !empty($btn_title)) : ?>
|
|
<a class="btn_2"
|
|
href="<?= esc_url($btn_url); ?>"
|
|
target="<?= esc_attr($btn_target); ?>">
|
|
<?= esc_html($btn_title); ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box-3">
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
<div class="col col-1">
|
|
<img src="<?php echo esc_url($box3['img']); ?>" alt="">
|
|
</div>
|
|
|
|
<div class="col col-2">
|
|
<p><?php echo esc_html($box3['title']); ?></p>
|
|
|
|
<div class="box-text animate-text">
|
|
<?php echo split_text_into_spans(wp_kses_post($box3['text'])); ?>
|
|
</div>
|
|
|
|
<ul>
|
|
<?php foreach ($box3['list'] as $item) : ?>
|
|
<li><?= esc_html($item['tekst']); ?></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box-4">
|
|
<div class="container">
|
|
<div class="row row-1">
|
|
<h2><?php echo esc_html($box4['mini_title']); ?></h2>
|
|
</div>
|
|
|
|
<div class="row row-2">
|
|
<ol class="c-acc">
|
|
<?php foreach ($box4['faq'] as $i => $item) : ?>
|
|
<li class="c-acc--item">
|
|
<div class="c-acc--head">
|
|
<i class="icon"></i>
|
|
<span><?= esc_html($item['title']); ?></span>
|
|
</div>
|
|
<div class="c-acc--body">
|
|
<div class="c-acc--body-text">
|
|
<?= $item['text']; ?>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<?php
|
|
get_footer();
|