| Server IP : 37.187.148.235 / Your IP : 216.73.216.195 Web Server : Apache/2.4.58 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.13 System : Linux server01.weblinkdesign.it 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64 User : lucafiask ( 1024) PHP Version : 8.3.30 Disable Function : 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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/lucafiask/web/dev.acquamark.it/public_html/wp-content/themes/bricks/ |
Upload File : |
<?php
get_header();
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
$post_id = get_the_ID();
$post_type = get_post_type();
$bricks_data = Bricks\Helpers::get_bricks_data( $post_id, 'content' );
$preview_id = Bricks\Helpers::get_template_setting( 'templatePreviewPostId', $post_id );
// Render Bricks data
if ( $bricks_data ) {
Bricks\Frontend::render_content( $bricks_data );
}
// Render default post layout
elseif ( $post_type === 'post' ) {
get_template_part( 'template-parts/post' );
}
// Previewing Bricks Template without content template assigned: Fallback to preview ID WordPress content
elseif ( $post_type === BRICKS_DB_TEMPLATE_SLUG && $preview_id ) {
echo '<main id="brx-content">' . apply_filters( 'the_content', get_post( $preview_id )->post_content ) . '</main>';
}
// Default content
else {
echo '<main id="brx-content" class="brxe-container layout-default">';
the_content();
echo Bricks\Helpers::page_break_navigation();
echo '</main>';
}
}
}
get_footer();