| @@ -11,11 +11,20 @@ | ||
| 11 | 11 | * Config |
| 12 | 12 | */ |
| 13 | 13 | class Config { |
| 14 | 14 | /** |
| 15 | + * Track whether we opened the layout wrapper in get_header(). | |
| 16 | + * | |
| 17 | + * @var bool | |
| 18 | + */ | |
| 19 | + private static $layout_wrapper_open = false; | |
| 20 | + | |
| 21 | + /** | |
| 15 | 22 | * Print header html |
| 16 | 23 | */ |
| 17 | 24 | public static function get_header() { |
| 25 | + self::$layout_wrapper_open = true; | |
| 26 | + echo '<div class="lasso-lite-layout">'; | |
| 18 | 27 | require_once SIMPLE_URLS_DIR . '/admin/views/header.php'; |
| 19 | 28 | } |
| 20 | 29 | |
| 21 | 30 | /** |
| @@ -22,6 +31,10 @@ | ||
| 22 | 31 | * Print footer html |
| 23 | 32 | */ |
| 24 | 33 | public static function get_footer() { |
| 25 | 34 | require_once SIMPLE_URLS_DIR . '/admin/views/footer.php'; |
| 35 | + if ( self::$layout_wrapper_open ) { | |
| 36 | + echo '</div>'; | |
| 37 | + self::$layout_wrapper_open = false; | |
| 38 | + } | |
| 26 | 39 | } |
| 27 | 40 | } |