h5p-php-library/embed.php

21 lines
746 B
PHP
Raw Normal View History

2015-02-27 11:05:22 +01:00
<!doctype html>
<html lang="<?php print $lang; ?>" class="h5p-iframe">
<head>
<meta charset="utf-8">
<title><?php print $content['title']; ?></title>
<?php for ($i = 0, $s = count($scripts); $i < $s; $i++): ?>
<script src="<?php print $scripts[$i]; ?>"></script>
<?php endfor; ?>
<?php for ($i = 0, $s = count($styles); $i < $s; $i++): ?>
<link rel="stylesheet" href="<?php print $styles[$i]; ?>">
<?php endfor; ?>
2017-11-06 09:59:46 +01:00
<?php if (!empty($additional_embed_head_tags)): print implode("\n", $additional_embed_head_tags); endif; ?>
2015-02-27 11:05:22 +01:00
</head>
<body>
<div class="h5p-content" data-content-id="<?php print $content['id']; ?>"></div>
<script>
2015-02-27 13:59:42 +01:00
H5PIntegration = <?php print json_encode($integration); ?>;
2015-02-27 11:05:22 +01:00
</script>
</body>
</html>