| 1 |
<?php |
| 2 |
// This file is included via require_once inside Admin_Bar::RootPage(); $logoUrl is in that method's local scope, not global namespace. |
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
if (!defined('BITFORMS_ASSET_URI')) { |
| 7 |
exit; |
| 8 |
} |
| 9 |
|
| 10 |
$logoUrl = BITFORMS_ASSET_URI . '/logo-black.svg'; |
| 11 |
|
| 12 |
?> |
| 13 |
|
| 14 |
<noscript>You need to enable JavaScript to run this app.</noscript> |
| 15 |
<style> |
| 16 |
.__root-wrp { |
| 17 |
display: grid; |
| 18 |
place-content: center; |
| 19 |
height: 90vh; |
| 20 |
text-align: center; |
| 21 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
| 22 |
} |
| 23 |
|
| 24 |
.__root-logo { |
| 25 |
margin-inline: auto; |
| 26 |
border-radius: 8px; |
| 27 |
} |
| 28 |
|
| 29 |
.__root-title { |
| 30 |
color: white; |
| 31 |
} |
| 32 |
|
| 33 |
.__root-subtitle { |
| 34 |
color: gray; |
| 35 |
} |
| 36 |
</style> |
| 37 |
|
| 38 |
<div id="btcd-app"> |
| 39 |
<div class="__root-wrp"> |
| 40 |
<img alt="bitform-logo" class="__root-logo" width="40" src="<?php echo esc_url($logoUrl) ?>"> |
| 41 |
<h1 class="__root-title">Welcome to Bit Form.</h1> |
| 42 |
<p class="__root-subtitle">Modern form solution in Wordpress</p> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
<script> |
| 46 |
const { |
| 47 |
backgroundColor |
| 48 |
} = window.getComputedStyle(document.querySelector('#wpadminbar')) |
| 49 |
document.querySelector('#wpbody').style.backgroundColor = backgroundColor |
| 50 |
document.querySelector('#wpcontent').style.paddingLeft = 0 |
| 51 |
</script> |