| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) or exit; |
| 3 |
|
| 4 |
// render simple page with form in it. |
| 5 |
?><!DOCTYPE html> |
| 6 |
<html> |
| 7 |
<head> |
| 8 |
<meta charset="utf-8" /> |
| 9 |
<link type="text/css" rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> |
| 10 |
<?php |
| 11 |
wp_head(); ?> |
| 12 |
|
| 13 |
<style type="text/css"> |
| 14 |
body{ |
| 15 |
background: white; |
| 16 |
width: 100%; |
| 17 |
max-width: 100%; |
| 18 |
text-align: left; |
| 19 |
} |
| 20 |
|
| 21 |
/* hide other elements */ |
| 22 |
body > *:not(#form-preview) { |
| 23 |
display:none !important; |
| 24 |
} |
| 25 |
|
| 26 |
#form-preview { |
| 27 |
display: block !important; |
| 28 |
width: 100%; |
| 29 |
height: 100%; |
| 30 |
padding: 20px; |
| 31 |
} |
| 32 |
</style> |
| 33 |
</head> |
| 34 |
<body <?php body_class(); ?>> |
| 35 |
<div id="form-preview"> |
| 36 |
<?php echo $form; ?> |
| 37 |
</div> |
| 38 |
<?php wp_footer(); ?> |
| 39 |
</body> |
| 40 |
</html> |
| 41 |
|