Prints optional additonal head tags in embed.php

Works in conjunction with modifications to class-h5p-php-admin.php
in the core h5p plugin. Allows other plugins to add code to be
inserted into the head of the embeded iframe generated by embed.php.

See discussion of this issue here:
https://github.com/h5p/h5p-wordpress-plugin/issues/58#issuecomment-337906304
pull/42/head
Ian McNamara 2017-11-01 16:08:14 -05:00
parent 500c264b88
commit 07ac995cf0
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@
<?php for ($i = 0, $s = count($styles); $i < $s; $i++): ?> <?php for ($i = 0, $s = count($styles); $i < $s; $i++): ?>
<link rel="stylesheet" href="<?php print $styles[$i]; ?>"> <link rel="stylesheet" href="<?php print $styles[$i]; ?>">
<?php endfor; ?> <?php endfor; ?>
<?php if (isset($additional_embed_head_tags)) { print implode("\n", $additional_embed_head_tags); } ?>
</head> </head>
<body> <body>
<div class="h5p-content" data-content-id="<?php print $content['id']; ?>"></div> <div class="h5p-content" data-content-id="<?php print $content['id']; ?>"></div>