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 1ed67f0 commit 8fcfbb4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS Changelog
Version 3.1.3 (2013-XX-XX)
--------------------------

### Fixed
Apply the width and height to the audio player as well (see #6114).

### Fixed
Do not exit after a template has been output (see #5570).

Expand Down
2 changes: 1 addition & 1 deletion system/modules/core/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 system/modules/core/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 system/modules/core/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 8fcfbb4

Please sign in to comment.