| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package WPEmerge |
| 4 |
* @author Atanas Angelov <[email protected]> |
| 5 |
* @copyright 2017-2019 Atanas Angelov |
| 6 |
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 |
| 7 |
* @link https://wpemerge.com/ |
| 8 |
*/ |
| 9 |
|
| 10 |
/** |
| 11 |
* Layout template file for Whoops's pretty error output. |
| 12 |
* |
| 13 |
* @noinspection ALL |
| 14 |
*/ |
| 15 |
|
| 16 |
$is_admin = function_exists( 'is_admin' ) && is_admin() && apply_filters( 'wpemerge.pretty_errors.apply_admin_styles', true ); |
| 17 |
$is_ajax = function_exists( 'wp_doing_ajax' ) && wp_doing_ajax(); |
| 18 |
|
| 19 |
if ( $is_admin && ! $is_ajax ) { |
| 20 |
?> |
| 21 |
<!--suppress CssUnusedSymbol --> |
| 22 |
<style> |
| 23 |
.wpemerge-whoops { |
| 24 |
position: relative; |
| 25 |
z-index: 1; |
| 26 |
margin: 20px 20px 0 0; |
| 27 |
} |
| 28 |
|
| 29 |
.wpemerge-whoops .stack-container { |
| 30 |
display: flex; |
| 31 |
} |
| 32 |
|
| 33 |
.wpemerge-whoops .left-panel { |
| 34 |
position: static; |
| 35 |
height: auto; |
| 36 |
overflow: visible; |
| 37 |
} |
| 38 |
|
| 39 |
.wpemerge-whoops .details-container { |
| 40 |
position: static; |
| 41 |
height: auto; |
| 42 |
overflow: visible; |
| 43 |
} |
| 44 |
|
| 45 |
@media (max-width: 600px) { |
| 46 |
.wpemerge-whoops { |
| 47 |
margin: 10px 10px 0 0; |
| 48 |
} |
| 49 |
|
| 50 |
.wpemerge-whoops .stack-container { |
| 51 |
display: block; |
| 52 |
} |
| 53 |
} |
| 54 |
</style> |
| 55 |
<!--suppress JSValidateTypes, JSValidateTypes --> |
| 56 |
<script> |
| 57 |
jQuery(window).load(function () { |
| 58 |
jQuery(window).scrollTop(0); |
| 59 |
|
| 60 |
jQuery('.frames-container').on('click', '.frame', function() { |
| 61 |
jQuery(window).scrollTop(0); |
| 62 |
}); |
| 63 |
}); |
| 64 |
</script> |
| 65 |
<?php |
| 66 |
require 'wpemerge-body.html.php'; |
| 67 |
return; |
| 68 |
} |
| 69 |
?> |
| 70 |
<!DOCTYPE html><?php echo $preface; ?> |
| 71 |
<html lang="en_US"> |
| 72 |
<head> |
| 73 |
<meta charset="utf-8"> |
| 74 |
<meta name="robots" content="noindex,nofollow"/> |
| 75 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/> |
| 76 |
<?php // Avoid triggering the Theme Check sniff as this is not a WordPress template. ?> |
| 77 |
<?php echo '<' . 'title' . '>' . $tpl->escape( $page_title ) . '</' . 'title' . '>' ?> |
| 78 |
</head> |
| 79 |
<body> |
| 80 |
<?php require 'wpemerge-body.html.php'; ?> |
| 81 |
</body> |
| 82 |
</html> |
| 83 |
|