field_kaltura_embed_player.tpl.php in Kaltura 7.3
Same filename and directory in other branches
Displays Kaltura player.
Available variables:
- $html_id: Object HTML ID.
- $height: Player height.
- $width: Player width.
File
plugins/field_kaltura/templates/field_kaltura_embed_player.tpl.phpView source
<?php
/**
* @file
* Displays Kaltura player.
*
* Available variables:
* - $html_id: Object HTML ID.
* - $height: Player height.
* - $width: Player width.
*
* @see http://player.kaltura.com/docs/kwidget
* @see http://player.kaltura.com/docs/responsive
*
* @ingroup themeable
*/
?>
<div style="width: 100%;<?php
if ($width) {
?> max-width: <?php
print $width;
?>px;<?php
}
?> display: inline-block; position: relative;">
<?php
if ($width && $height) {
?>
<div style="margin-top: <?php
print 100 * $height / $width;
?>%;"></div>
<?php
}
?>
<div id="<?php
print $html_id;
?>" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0;"></div>
</div>