Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Apply the width and height to the audio player as well (see #6114)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Sep 16, 2013
1 parent 08b3057 commit f1bdc59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contao/languages/en/tl_content.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
<source>Player size</source>
</trans-unit>
<trans-unit id="tl_content.playerSize.1">
<source>Width and height of the media player in pixels (e.g. 640x480). Applies to videos only.</source>
<source>Width and height of the media player in pixels (e.g. 640x480).</source>
</trans-unit>
<trans-unit id="tl_content.autoplay.0">
<source>Autoplay</source>
Expand Down
2 changes: 1 addition & 1 deletion contao/templates/elements/ce_player.html5
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php endforeach; ?>
</video>
<?php else: ?>
<audio preload="none"<?php if ($this->autoplay): ?> autoplay<?php endif; ?> controls>
<audio<?php echo $this->size; ?> preload="none"<?php if ($this->autoplay): ?> autoplay<?php endif; ?> controls>
<?php foreach ($this->files as $file): ?>
<source type="<?php echo $file->mime; ?>" src="<?php echo $file->path; ?>" title="<?php echo $file->title; ?>">
<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion contao/templates/elements/ce_player.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php endforeach; ?>
</video>
<?php else: ?>
<audio preload="none"<?php if ($this->autoplay): ?> autoplay<?php endif; ?> controls>
<audio<?php echo $this->size; ?> preload="none"<?php if ($this->autoplay): ?> autoplay<?php endif; ?> controls>
<?php foreach ($this->files as $file): ?>
<source type="<?php echo $file->mime; ?>" src="<?php echo $file->path; ?>" title="<?php echo $file->title; ?>" />
<?php endforeach; ?>
Expand Down

0 comments on commit f1bdc59

Please sign in to comment.