| 1 |
<?php |
| 2 |
defined('ABSPATH') || exit; |
| 3 |
|
| 4 |
if( wp_is_block_theme() ) { |
| 5 |
wp_site_icon(); |
| 6 |
wp_head(); |
| 7 |
block_template_part('header'); |
| 8 |
wp_head(); |
| 9 |
} else { |
| 10 |
get_header(); |
| 11 |
} |
| 12 |
|
| 13 |
$width = ultimate_post()->get_setting('container_width'); |
| 14 |
$width = $width ? $width : '1140'; |
| 15 |
?> |
| 16 |
<div class="ultp-template-container" style="margin:0 auto;max-width:<?php echo esc_attr($width); ?>px; padding: 0 15px; width: -webkit-fill-available; width: -moz-available;"> |
| 17 |
<?php |
| 18 |
while ( have_posts() ) : the_post(); |
| 19 |
the_content(); |
| 20 |
|
| 21 |
if (comments_open() || get_comments_number() ) { |
| 22 |
comments_template(); |
| 23 |
} |
| 24 |
endwhile; |
| 25 |
?> |
| 26 |
</div> |
| 27 |
|
| 28 |
<?php |
| 29 |
if( wp_is_block_theme() ) { |
| 30 |
wp_footer(); |
| 31 |
block_template_part('footer'); |
| 32 |
} else { |
| 33 |
get_footer(); |
| 34 |
} |