first commit

This commit is contained in:
2024-12-20 12:48:12 +01:00
commit d9fb74972a
217 changed files with 26712 additions and 0 deletions

View File

@@ -0,0 +1,98 @@
<?php /* Template Name: Page / O nas */ ?>
<?php get_header() ?>
<div class="wrapper--default">
<div class="wrapper--inner">
<h1>
<?php echo get_the_title() ?>
</h1>
</div>
</div>
<?php if (have_rows('sections')) : ?>
<?php while (have_rows('sections')) : the_row(); ?>
<?php if (get_row_layout() == 'hero_slider') : ?>
<?php get_template_part('template-parts/sections/section-hero-slider', 'hero_slider'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'hero_section') : ?>
<?php get_template_part('template-parts/sections/section-hero', 'hero_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'three_col_repeater_section') : ?>
<?php get_template_part('template-parts/sections/section-three-col-repeater', 'three_col_repeater_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section') : ?>
<?php get_template_part('template-parts/sections/section-two-col', 'section-two-col'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section_with_bg') : ?>
<?php get_template_part('template-parts/sections/section-two-col-with-bg', 'section-two-col-with-bg'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_2_cta') : ?>
<?php get_template_part('template-parts/sections/section-one-col-cta', 'section-one-col-cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_cta_images') : ?>
<?php get_template_part('template-parts/sections/section-one-col-cta-images', 'section-one-col-cta-images'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'boxes_repeater_img_title_text_cta') : ?>
<?php get_template_part('template-parts/sections/section-boxes_repeater_img_title_text_cta', 'boxes_repeater_img_title_text_cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'faq') : ?>
<?php get_template_part('template-parts/sections/section-faq', 'faq'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'gallery') : ?>
<?php get_template_part('template-parts/sections/section-gallery', 'gallery'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'hero_with_form') : ?>
<?php get_template_part('template-parts/sections/section-hero-with-form', 'hero-with-form'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'wysiwyg') : ?>
<?php get_template_part('template-parts/sections/section-wysiwyg', 'wysiwyg'); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<section class="wrapper--default">
<div class="wrapper--inner">
<h2 class="">Zobacz, jak wygląda proces powstawania niesamowitych ogrodów.</h2>
<div class="mt-12 flex flex-col lg:flex lg:flex-row ld:items-start lg:justify-around">
<?php
// Check rows exists.
if( have_rows('movies_repeater') ):
// Loop through rows.
while( have_rows('movies_repeater') ) : the_row();
// Load sub field value.
$thumb = get_sub_field('movie_thumbnail');
$vid = get_sub_field('video_item'); ?>
<div class="max-w-xs sm:max-w-sm md:w-6/12 lg:w-6/12 m-3 cursor-pointer transform hover:opacity-95">
<video id="my-video2" class="video-js max-w-full w-full" controls preload="auto" width="100%"
height="360" poster="<?php echo $thumb ?>" data-setup="{}">
<source src="<?php echo $vid ?>" type="video/mp4" />
<p class="vjs-no-js">
Aby obejrzeć to video, włącz obsługę javascript, sprawdź czy posiadasz aktualną
przeglądarkę internetową
<a href="https://videojs.com/html5-video-support/" target="_blank">zobacz przegląrki, które
wspierają HTML5 video</a>
</p>
</video>
</div>
<?php
// End loop.
endwhile;
else :
endif;
?>
</div>
</div>
</section>
<?php get_template_part( 'partials/cta'); ?>
<?php get_footer() ?>

View File

@@ -0,0 +1,68 @@
<?php /* Template Name: Page / Carporty */ ?>
<?php get_header() ?>
<?php if (have_rows('sections')) : ?>
<?php while (have_rows('sections')) : the_row(); ?>
<?php if (get_row_layout() == 'hero_slider') : ?>
<?php get_template_part('template-parts/sections/section-hero-slider', 'hero_slider'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'hero_section') : ?>
<?php get_template_part('template-parts/sections/section-hero', 'hero_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'three_col_repeater_section') : ?>
<?php get_template_part('template-parts/sections/section-three-col-repeater', 'three_col_repeater_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section') : ?>
<?php get_template_part('template-parts/sections/section-two-col', 'section-two-col'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section_with_bg') : ?>
<?php get_template_part('template-parts/sections/section-two-col-with-bg', 'section-two-col-with-bg'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_2_cta') : ?>
<?php get_template_part('template-parts/sections/section-one-col-cta', 'section-one-col-cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'boxes_repeater_img_title_text_cta') : ?>
<?php get_template_part('template-parts/sections/section-boxes_repeater_img_title_text_cta', 'boxes_repeater_img_title_text_cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'faq') : ?>
<?php get_template_part('template-parts/sections/section-faq', 'faq'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'gallery') : ?>
<?php get_template_part('template-parts/sections/section-gallery', 'gallery'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'wysiwyg') : ?>
<?php get_template_part('template-parts/sections/section-wysiwyg', 'wysiwyg'); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<div class="xl:container xl:mx-auto" style="max-width: 1200px;">
<div class="lg:flex lg:items-start lg:bg-gray ">
<div class="bg-gray pt-12 pb-12 p-6 lg:w-3/6">
<?php the_field('carports_row_2_content_left') ?>
</div>
<div class="p-6 pt-12 pb-12 lg:bg-gray lg:w-3/6">
<?php the_field('carports_row_2_content_right') ?>
</div>
</div>
<div class="lg:flex lg:flex-row-reverse lg:mt-10">
<div
class="bg-gray pt-12 pb-12 p-6 w-11/12 mx-auto mb-12 lg:p-20 lg:w-2/5 lg:flex lg:flex-col lg:items-start lg:justify-center">
<?php the_field('carports_row_3_info_box') ?>
</div>
<div class="p-6 lg:w-2/4">
<?php the_field('carports_row_3_content_left') ?>
</div>
</div>
</div>
<?php get_template_part( 'partials/cta'); ?>
<?php get_footer() ?>

View File

@@ -0,0 +1,77 @@
<?php /* Template Name: Page / Kontakt */ ?>
<?php get_header() ?>
<div class="wrapper--default">
<div class="wrapper--inner">
<section class="p-6 lg:container lg:mx-auto">
<h1 class=""><?php echo get_the_title() ?></h1>
<?php echo the_field('about_content') ?>
</section>
<div class="lg:flex lg:flex-row lg:container lg:mx-auto">
<div class="pt-12 pb-12 p-6 lg:w-6/12">
<div class="pb-6 text-xl">
<?php the_field('adres', 'option'); ?>
</div>
<div class="pb-6 text-xl">
<?php the_field('godziny_pracy', 'option'); ?>
</div>
<div class="pb-6 text-xl">
<?php the_field('dane_kontaktowe', 'option'); ?>
</div>
</div>
<div class="lg:w-full">
<iframe class="w-full"
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2502.856056265485!2d15.01493321575677!3d51.1480054795777!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4708dc057fca8a73%3A0x66d8cb5b2b983cc2!2sBohater%C3%B3w%20II%20Armii%20Wojska%20Polskiego%2014F%2C%2059-900%20Zgorzelec!5e0!3m2!1sen!2spl!4v1621415125033!5m2!1sen!2spl"
width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy"></iframe>
</div>
</div>
</div>
<?php if (have_rows('sections')) : ?>
<?php while (have_rows('sections')) : the_row(); ?>
<?php if (get_row_layout() == 'hero_slider') : ?>
<?php get_template_part('template-parts/sections/section-hero-slider', 'hero_slider'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'hero_section') : ?>
<?php get_template_part('template-parts/sections/section-hero', 'hero_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'three_col_repeater_section') : ?>
<?php get_template_part('template-parts/sections/section-three-col-repeater', 'three_col_repeater_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section') : ?>
<?php get_template_part('template-parts/sections/section-two-col', 'section-two-col'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section_with_bg') : ?>
<?php get_template_part('template-parts/sections/section-two-col-with-bg', 'section-two-col-with-bg'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_2_cta') : ?>
<?php get_template_part('template-parts/sections/section-one-col-cta', 'section-one-col-cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'boxes_repeater_img_title_text_cta') : ?>
<?php get_template_part('template-parts/sections/section-boxes_repeater_img_title_text_cta', 'boxes_repeater_img_title_text_cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'faq') : ?>
<?php get_template_part('template-parts/sections/section-faq', 'faq'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'gallery') : ?>
<?php get_template_part('template-parts/sections/section-gallery', 'gallery'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'wysiwyg') : ?>
<?php get_template_part('template-parts/sections/section-wysiwyg', 'wysiwyg'); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php get_footer() ?>

View File

@@ -0,0 +1,49 @@
<?php /* Template Name: Page / Ogrody zimowe */ ?>
<?php get_header() ?>
<?php if (have_rows('sections')) : ?>
<?php while (have_rows('sections')) : the_row(); ?>
<?php if (get_row_layout() == 'hero_slider') : ?>
<?php get_template_part('template-parts/sections/section-hero-slider', 'hero_slider'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'hero_section') : ?>
<?php get_template_part('template-parts/sections/section-hero', 'hero_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'three_col_repeater_section') : ?>
<?php get_template_part('template-parts/sections/section-three-col-repeater', 'three_col_repeater_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section') : ?>
<?php get_template_part('template-parts/sections/section-two-col', 'section-two-col'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section_with_bg') : ?>
<?php get_template_part('template-parts/sections/section-two-col-with-bg', 'section-two-col-with-bg'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_2_cta') : ?>
<?php get_template_part('template-parts/sections/garden-page-seo', 'garden-page-seo'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_2_cta') : ?>
<?php get_template_part('template-parts/sections/section-one-col-cta', 'section-one-col-cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_cta_images') : ?>
<?php get_template_part('template-parts/sections/section-one-col-cta-images', 'section-one-col-cta-images'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'boxes_repeater_img_title_text_cta') : ?>
<?php get_template_part('template-parts/sections/section-boxes_repeater_img_title_text_cta', 'boxes_repeater_img_title_text_cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'faq') : ?>
<?php get_template_part('template-parts/sections/section-faq', 'faq'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'gallery') : ?>
<?php get_template_part('template-parts/sections/section-gallery', 'gallery'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'hero_with_form') : ?>
<?php get_template_part('template-parts/sections/section-hero-with-form', 'hero-with-form'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'wysiwyg') : ?>
<?php get_template_part('template-parts/sections/section-wysiwyg', 'wysiwyg'); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer() ?>

View File

@@ -0,0 +1,43 @@
<?php /* Template Name: Page / Home */ ?>
<?php get_header() ?>
<?php if (have_rows('sections')) : ?>
<?php while (have_rows('sections')) : the_row(); ?>
<?php if (get_row_layout() == 'hero_slider') : ?>
<?php get_template_part('template-parts/sections/section-hero-slider', 'hero_slider'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'hero_section') : ?>
<?php get_template_part('template-parts/sections/section-hero', 'hero_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'three_col_repeater_section') : ?>
<?php get_template_part('template-parts/sections/section-three-col-repeater', 'three_col_repeater_section'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section') : ?>
<?php get_template_part('template-parts/sections/section-two-col', 'section-two-col'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'two_col_section_with_bg') : ?>
<?php get_template_part('template-parts/sections/section-two-col-with-bg', 'section-two-col-with-bg'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_2_cta') : ?>c
<?php get_template_part('template-parts/sections/home-page-seo', 'home-page-seo'); ?>d
<?php endif; ?>
<?php if (get_row_layout() == 'one_col_2_cta') : ?>
<?php get_template_part('template-parts/sections/section-one-col-cta', 'section-one-col-cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'boxes_repeater_img_title_text_cta') : ?>
<?php get_template_part('template-parts/sections/section-boxes_repeater_img_title_text_cta', 'boxes_repeater_img_title_text_cta'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'faq') : ?>
<?php get_template_part('template-parts/sections/section-faq', 'faq'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'gallery') : ?>
<?php get_template_part('template-parts/sections/section-gallery', 'gallery'); ?>
<?php endif; ?>
<?php if (get_row_layout() == 'wysiwyg') : ?>
<?php get_template_part('template-parts/sections/section-wysiwyg', 'wysiwyg'); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer() ?>

View File

@@ -0,0 +1,112 @@
<?php /* Template Name: Page / Poradniki */ ?>
<?php get_header() ?>
<div class="mx-auto">
<section class="p-6 lg:container lg:mx-auto">
<h1 class="text-3xl font-semibold pb-6"><?php echo get_the_title() ?></h1>
</section>
<div class="lg:container lg:mx-auto lg:mb-16">
<?php
if( have_rows('guides_repeater') ):
while( have_rows('guides_repeater') ) : the_row();
$title = get_sub_field('guide_title');
$excerpt = get_sub_field('guide_excerpt');
$file = get_sub_field('guide_file');
$link_title = get_sub_field('guide_link_title'); ?>
<div class="p-6 pb-14">
<h3 class="text-3xl font-semibold pb-6"><?php echo $title ?></h3>
<p class="text-xl pb-6">
<?php echo $excerpt ?>
</p>
<a class="flex relative bg-gray pt-10 pb-10 pl-12 pr-6 left-5 w-11/12 lg:min-w-full hover:underline"
href="<?php echo $file ?>" download>
<img class="absolute left-0 -ml-5"
src="<?php echo get_theme_file_uri() ?>/ostal-front/dist/assets/images/pdf.svg" alt="pdf-icon">
<p class="text-xl font-semibold "><?php echo $link_title ?> </p>
</a>
</div>
<?php
endwhile;
else :
endif;
?>
<div class="hidden p-6 pb-14">
<h3 class="text-3xl font-semibold pb-6">O ogrodach zimowych</h3>
<p class="text-xl pb-6">
Od dawna ogrody zimowe były stosowane w architekturze, głównie pałacowej i dworkowej,
dla stworzenia optymalnych warunków do uprawy egzotycznych roślin jak drzewka
pomarańczowe, stąd nazywano je również oranżeriami. Współcześnie mogą stać się
dopełnieniem miejskiej, luksusowej willi, jak też wiejskiej rezydencji letniej.
</p>
<p class="text-xl pb-6">
Już na początku należy odpowiedzieć sobie na pytanie: do czego ma służyć nasz nowy ogród zimowy oraz co
jest dla nas ważniejsze uzyskanie architektonicznego efektu, czy też powiększenie powierzchni
mieszkalnej.
</p>
<a class="flex relative bg-gray pt-10 pb-10 pl-12 pr-6 left-5 w-11/12 lg:min-w-full hover:underline"
href="#">
<img class="absolute left-0 -ml-5 "
src="<?php echo get_theme_file_uri() ?>/ostal-front/dist/assets/images/pdf.svg" alt="pdf-icon">
<p class="text-xl font-semibold ">Więcej dowiesz się z naszego poradnika “O ogrodach zimowych”.
</p>
</a>
</div>
<div class="hidden p-6 bg-gray pt-14 pb-14">
<h3 class="text-3xl font-semibold pb-6">Przed budową ogrodu zimowego
</h3>
<p class="text-xl pb-6">
Projektowanie ogrodu zimowego na etapie budowy nowego domu pozwala uniknąć wielu ograniczeń i zyskać
całkowitą dowolność w działaniach. Odpowiedni wybór położenia ogrodu i jego formy architektonicznej
pozwala na zachowanie stylu całego budynku oraz utrzymanie integralności jego struktury.
</p>
<p class="text-xl pb-6">
Przyłączenie ogrodu do już istniejącego budynku z kolei wymaga sprawdzenia, czy konstrukcja nośna
wytrzyma dodatkowe obciążenie.
</p>
<a class="flex relative bg-gray pt-10 pb-10 pl-12 pr-6 left-5 w-11/12 lg:min-w-full hover:underline"
href="#">
<img class="absolute left-0 -ml-5 "
src="<?php echo get_theme_file_uri() ?>/ostal-front/dist/assets/images/pdf.svg" alt="pdf-icon">
<p class="text-xl font-semibold">Więcej dowiesz się z naszego poradnika “Przed budową ogrodu zimowego”.
</p>
</a>
</div>
<div class="hidden p-6">
<h3 class="text-3xl font-semibold pt-14 pb-14">Dodatkowe elementy ogrodu zimowego
</h3>
<p class="text-xl pb-6">
Współczesne ogrody zimowe pozwalają na wykorzystanie wielu dodatkowych elementów, które zwiększają
energooszczędność, zapewniają komfort optyczny i termiczny czy też odpowiadają za skuteczna
klimatyzację.
</p>
<p class="text-xl pb-6">
W naszych konstrukcjach stosujemy markizy dachowe, żaluzje fasadowe, rolety zewnętrzne oraz automatykę
pogodową.
</p>
<a class="flex relative bg-gray pt-10 pb-10 pl-12 pr-6 left-5 w-11/12 lg:min-w-full hover:underline"
href="#">
<img class="absolute left-0 -ml-5 "
src="<?php echo get_theme_file_uri() ?>/ostal-front/dist/assets/images/pdf.svg" alt="pdf-icon">
<p class="text-xl font-semibold ">Więcej dowiesz się z naszego poradnika “Dodatkowe elementy ogrodu
zimowego”.
</p>
</a>
</div>
</div>
</div>
<?php get_template_part( 'partials/cta'); ?>
<?php get_footer() ?>