HEX
Server: Apache
System: Linux g3.galapp.net 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User: web2215 (1987)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client1079/web2215/web/public/wp-content/themes/developer_c/top_offer.php
<!-- TABELA -->
<table id="tableOffers" class="table table-striped table-bordered" style="width:100%">
    <thead>
        <tr>
            <th class="text-center">Nr</th>
			<th class="text-center">Wyrozniony</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>

        <?php
        $args = array(
            'post_type' => 'post',
            'cat' => 6,
            'post_status' => 'publish',
            'posts_per_page' => 100,
        );
        $arr_posts = new WP_Query($args);

        if ($arr_posts->have_posts()) :

            while ($arr_posts->have_posts()) :
                $arr_posts->the_post();
                ?>
                <tr id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<td class="text-center"><?php the_title(); ?></td>
                    <td class="text-right"><?php if (get_field('powierzchnia')): ?><?php the_field('powierzchnia'); ?><?php endif; ?> m<sup>2</sup></td>
                    <td class="text-right"><?= map_floor(get_field('pietro')); ?></td>
                    <td class="text-right"><?php if (get_field('ilosc_pokoi')): ?><?php the_field('ilosc_pokoi'); ?><?php endif; ?></td>
                    <td class="text-right <?php if (get_field('status')): ?><?php the_field('status'); ?><?php endif; ?>"><?php if (get_field('status')): ?><?php the_field('status'); ?><?php endif; ?></td>
                    <td class="text-right"><?php if (get_field('cena')): ?><?php the_field('cena'); ?><?php endif; ?></td>
                    <td class="text-center"><a target="_blank" href="<?php if (get_field('rzut')): ?><?php the_field('rzut'); ?><?php endif; ?>"><img class="img-fluid" src="<?php echo get_template_directory_uri(); ?>/assets/img/icons/pdf.svg" alt="pdf" ></a></td>
                        <td class="text-center"><a target="_blank" href="<?php if (get_field('wizualizacja')): ?><?php the_field('wizualizacja'); ?><?php endif; ?>"><img class="img-fluid" src="<?php echo get_template_directory_uri(); ?>/assets/img/icons/pdf.svg" alt="pdf" ></a></td>
                </tr>
                <?php
            endwhile;
        endif;
        ?>

    </tbody>
</table>
<!-- ./ TABELA -->