markocupic / bootstrap_responsive_youtube_embed
将YouTube视频嵌入到响应式布局中。Contao开源CMS的前端扩展
2.3.0
2024-08-17 12:10 UTC
Requires
- php: ^8.1
- contao/core-bundle: ^5.3
Requires (Dev)
- contao/easy-coding-standard: ^3.0
- contao/manager-plugin: ^2.3.1
- contao/test-case: ^4.5
- phpunit/phpunit: ^9.3
- symfony/http-client: 5.4.*
- symfony/phpunit-bridge: ^5.4
README
Contao Bootstrap Responsive Youtube Embed
此插件为Youtube/Vimeo/Dropbox播放器内容元素提供支持,适用于Contao CMS。通过创建一个基于父元素宽度的内禀比例,创建响应式视频嵌入,在任何设备上缩放。
视频ID
在后台,您需要填写视频ID输入框。
Contao插入标签
该扩展支持Contao插入标签以嵌入视频。
<div>
{{bootstrapResponsiveYoutubeEmbed::a7D3A_wwl0g}}
<!-- or a bit more complex -->
{{bootstrapResponsiveYoutubeEmbed::a7D3A_wwl0g?autoplay=1&caption=Lorem ipsum&playerAspectRatio=4x3}}
</div>