File: /var/www/clients/client1079/web2215/web/public/wp-content/themes/developer_c/top.php
<!-- Wybierz mieszkanie-->
<div class="mieszkania-container section-container">
<div class="container">
<div class="row">
<div class="col section-description wow fadeInUp">
<h3>Wybierz nieruchomość</h3>
<div class="mieszkanie_info">Kliknij na budynek, aby zobaczyć odpowiednie oferty:</div>
</div>
</div>
</div>
</div>
<div class="container-fluid ">
<div class="row mieszkania">
<div class="col-12 px-0">
<div class="mieszkania_img">
<div class="container_2">
<div>
<img class="img-map maphilighted img-fluid position-relative" src="./wp-content/uploads/mieszkania-scaled.jpg" usemap="#map" style="opacity: 0; position: absolute; left: 0px; top: 0px; padding: 0px; border: 0px;">
</div>
<map name="map">
<area shape="poly" coords="382,370,231,392,188,526,2,552,153,787,623,698,616,666,604,545,591,466,567,271,557,272,559,298,377,322" href="#area0" />
<area shape="poly" coords="623,698,795,666,792,631,769,535,760,439,733,278,579,295,575,271,567,271,591,466,604,545,616,666" href="#area1" />
<area shape="poly" coords="733,278,864,262,862,238,870,237,909,321,911,363,922,415,924,517,960,601,959,634,795,666,792,631,769,536,760,439" href="#area2" />
<area shape="poly" coords="959,634,1244,579,1249,545,1070,279,1061,280,1051,237,885,257,885,249,878,236,870,237,909,322,911,363,922,415,924,517,960,601" href="#area3" />
<area shape="poly" coords="1069,279,1249,545,1244,580,1506,531,1516,498,1443,426,1463,333,1451,287,1460,247,1443,230,1434,231,1433,238,1414,192,1394,194,1395,188,1379,175,1365,176,1361,198,1276,209,1221,237,1218,261" href="#area4" />
<area shape="poly" coords="1414,192,1475,185,1479,163,1491,159,1510,173,1509,180,1584,316,1559,405,1643,476,1633,506,1506,531,1516,498,1443,426,1463,333,1451,287,1460,247,1443,230,1434,231,1433,238,1421,209" href="#area5" />
<area shape="poly" coords="1509,180,1667,161,1723,294,1728,305,1847,291,1911,425,1897,457,1633,506,1643,476,1559,405,1584,316" href="#area6" />
</map>
<div class="container_3 display-4 text-center wow fadeInUp">Inwestycje na plus</div>
</div>
<?php
$term_id = 6;
$taxonomy_name = 'category';
$termchildren = get_term_children( $term_id, $taxonomy_name );
$arrTaxonomy = [];
foreach ( $termchildren as $child ) {
$term = get_term_by( 'id', $child, $taxonomy_name );
$arrTaxonomy[] = array('term_id' => $term->term_id, 'term_name' => $term->name);
}
?>
<div class="mieszkania_search">
<div class="row">
<div class="col-12 col-md-4 background_house py-4">
<div class="background_house_in">
<img class="img-fluid logo_house" src="<?php echo get_template_directory_uri(); ?>/assets/img/icons/logo_house.svg" alt="Budynek" >
<?php if(!empty($arrTaxonomy)): ?>
<div class="dropdown show listBuilding">
<a class="btn dropdown-toggle button_mieszkanie" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" data-termid="<?= $arrTaxonomy[0]['term_id']; ?>" aria-haspopup="true" aria-expanded="false">
<?= $arrTaxonomy[0]['term_name']; ?>
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="" data-termid="">Wszystkie</a>
<?php foreach($arrTaxonomy as $key => $taxon):?>
<a class="dropdown-item" href="#area<?= $key ?>" data-termid="<?=$taxon['term_id'];?>"><?=$taxon['term_name'];?></a>
<?php endforeach; ?>
</div>
</div>
<?php endif;?>
</div>
</div>
<div class="col-12 col-md-8 py-4">
<form class="form-horizontal">
<div class="row">
<div class="col-12 col-md-4 d-flex align-items-center">
<div class="text-control"><label for="floors" class="control-label"><b>Piętro</b></label></div>
<div class="control-slider1 filtersearch">
<input type="text" id="floors" name="floors" data-type="double" data-min="1" data-max="2" data-from="-1" data-to="4" data-grid="true" data-search="pietro">
</div>
</div>
<div class="col-12 col-md-4 d-flex align-items-center">
<div class="text-control"><label for="rooms" class=" control-label"><b>Ilość pokoi</b></label></div>
<div class="control-slider1 filtersearch">
<input type="text" id="rooms" name="rooms" data-type="double" data-min="0" data-max="4" data-from="0" data-to="4" data-grid="true" data-search="ilosc_pokoi">
</div>
</div>
<div class="col-12 col-md-4 d-flex align-items-center">
<div class="text-control"><label for="area" class=" control-label"><b>Powierzchnia</b></label></div>
<div class="control-slider1 filtersearch">
<input type="text" id="area" name="area" data-type="double" data-min="0" data-max="75" data-from="1" data-to="75" data-grid="true" data-search="powierzchnia">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- TABELA -->
<table id="tableOffers" class="table table-striped table-bordered" style="width:100%">
<thead>
<tr>
<th class="text-center">Nr</th>
<th class="text-right">Powierzchnia</th>
<th class="text-right">Piętro</th>
<th class="text-right">Liczba pokoi</th>
<th class="text-right">Status</th>
<th class="text-right">Cena (zł)</th>
<th class="text-center">Rzut</th>
<th class="text-center">Rzut 3D</th>
</tr>
</thead>
<tbody id="myCustomPost">
<?php
$args = array(
'post_type' => 'post',
'cat' => 6,
'post_status' => 'publish',
'posts_per_page' => 100,
);
$arr_posts = new WP_Query($args);
while ( $arr_posts->have_posts() ) : $arr_posts->the_post();
?>
<?php the_content();?>
<?php get_template_part('top_offer_1'); ?>
<?php
endwhile;
wp_reset_postdata();
?>
</tbody>
</table>
<!-- ./ TABELA -->