| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/studiokobylisy_cz/www/wp-content/themes/studiokobylisy/ |
Upload File : |
<?php
get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<div class="container-fluid">
<?php get_template_part('partials/head-home', 'page'); ?>
</div>
<section class="section">
<div class="container">
<?php get_template_part('partials/highlights', 'page'); ?>
</div>
</section>
<?php
while (have_posts()) : the_post();
?>
<section class="bg-beige section">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-lg-6">
<?php get_template_part('partials/gallery', 'page'); ?>
</div>
<div class="col-lg-6">
<div class="slider-text">
<?php the_content(); ?>
</div>
</div>
</div>
</div>
</section>
<?php
endwhile; // End of the loop.
?>
<section class="section" id="sluzby">
<div class="container">
<h2>Služby</h2>
<div class="row g-sm-2 g-lg-3 g-1">
<?php $args = array('post_type' => 'sluzby'); ?>
<?php $loop = new WP_Query($args); ?>
<?php if ($loop->have_posts()) {
while ($loop->have_posts()) : $loop->the_post(); ?>
<div class="col-md-4 col-6">
<?php if (!empty(get_the_content())) {; ?>
<a class="service-tile" href="<?php echo get_permalink(); ?>">
<?php } else { ?>
<div class="service-tile">
<?php }; ?>
<div class="service-tile__title">
<?php the_title('<h3>', '</h3>'); ?>
</div>
<div class="service-tile__image">
<?php if (get_post_meta(get_the_ID(), 'fotka_dlazdice', true)) { ?>
<img src="<?php echo pods_field_display('fotka_dlazdice'); ?>" alt="cover" />
<?php } else {; ?>
<img src="<?php echo get_template_directory_uri(); ?>/assets/dist/img/studio-kobylisy-default.jpg" alt="cover" class="parallax">
<?php }; ?>
</div>
<?php if (!empty(get_the_content())) {; ?>
</a>
<?php } else { ?>
</div>
<?php }; ?>
</div>
<?php endwhile;
} else {
echo __('Žádné služby');
}
wp_reset_postdata(); ?>
</div>
</div>
</section>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();