| 1 |
<?php |
| 2 |
$consoleUrl = 'https://console.stateless.ci'; |
| 3 |
$auth_token = \wpCloud\StatelessMedia\Utility::generate_wizard_auth_token(); |
| 4 |
$api_root = get_rest_url(); |
| 5 |
?> |
| 6 |
|
| 7 |
<script> |
| 8 |
(function($) { |
| 9 |
$(document).ready(function(){ |
| 10 |
$('#consoleStatelessIframeWrapper') |
| 11 |
.html('<iframe id="console-stateless-wizard" src="<?php echo $consoleUrl ?>/#/?wp_nonce=<?php echo $auth_token ?>&api_root=<?php echo $api_root ?>" />') |
| 12 |
}) |
| 13 |
})(jQuery) |
| 14 |
</script> |
| 15 |
|
| 16 |
<div id="consoleStatelessIframeWrapper"></div> |
| 17 |
<style>#wpfooter{display:none!important}</style> |