| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | defined('ABSPATH') || exit; |
| 3 | 3 | |
| 4 | 4 | get_header(); |
| 5 | -$width = ultimate_post()->get_setting(); | |
| 6 | -$width = isset($width['container_width']) ? $width['container_width'] : '1140'; | |
| 5 | +$width = ultimate_post()->get_setting('container_width'); | |
| 6 | +$width = $width ? $width : '1140'; | |
| 7 | 7 | ?> |
| 8 | 8 | <div class="ultp-template-container" style="margin:0 auto;max-width:<?php echo $width;?>px; padding: 0 15px"> |
| 9 | 9 | <?php |
| 10 | 10 | while ( have_posts() ) : the_post(); |
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | while ( have_posts() ) : the_post(); |
| 11 | 11 | the_content(); |
| 12 | 12 | endwhile; |
| 13 | 13 | ?> |
| 14 | -<div> | |
| 14 | +</div> | |
| 15 | 15 | <?php |
| 16 | 16 | get_footer(); |