-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-galeria.php
More file actions
38 lines (28 loc) · 1.2 KB
/
page-galeria.php
File metadata and controls
38 lines (28 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php /*Template Name:Galeria*/?>
<?php get_header();?>
<main class="mainwrapper">
<?php echo get_template_part("parts/part","banner");?>
<section id="oferta-lista">
<section class="main-section hide-sekcja">
<div class="col-1 text-box-sekcja centeralign">
<h2><?php the_field('pagegaleria_h2', $page_id);?></h2>
<div class="romby">
<span></span><span></span><span></span>
</div>
<p><?php the_field('pagegaleria_p', $page_id);?></p>
</div>
<div class="clearfix"></div>
</section>
<div class="list-col-4 strona-galeria pad-s hide-sekcja">
<?php
$args = array( 'post_type' => 'galerie', 'posts_per_page' =>-1 );
$loop = new WP_Query( $args );
if($loop->have_posts()){ while ( $loop->have_posts() ) : $loop->the_post();?>
<?php echo get_template_part("parts/part","galerie_el");?>
<?php endwhile; };?>
</div>
</section>
<?php echo get_template_part("parts/part","wirtualnyspacer");?>
<?php echo get_template_part("parts/part","paseksocialmedia");?>
</main>
<?php get_footer();?>