joomlaworks / allvideos

AllVideos
https://www.joomlaworks.net/allvideos
GNU General Public License v2.0
19 stars 15 forks source link

feature request - set max-width and margins #32

Closed shoulders closed 5 years ago

shoulders commented 7 years ago

in the day of responsive youtube videos can exapand to much and look huge. So being able to set max-width allow me to keep the responsive behaviour but not got massive

the margins allow me to make things look nicer. This might need to be changed to padding (or both) to allow me to set the video to align left rather than centered (if possible)

shoulders commented 6 years ago

i added this code to my copy of All videos and it works well. When you set the following setting in the plugin admin the youtube responsive style will use this as max-width

I dont think i did it for height but i might of I cant remmember.

Do you want the code?

fevangelou commented 6 years ago

Can you make a PR from the latest snapshot of the repo?

shoulders commented 6 years ago

I have no idea how to do that, still learning GitHub. Sorry not being lazy.

What I can do is get the code I changed and add it here a snippet or attach a file. I dont think it was a lot.

shoulders commented 6 years ago

in the file allvideos/plugin/jw_allvideos/tmpl/Responsive/default.php

I altered the line

<div class="avPlayerContainer">

to

<div class="avPlayerContainer" style="max-width:<?php echo $output->playerWidth; ?>px;">

If this got its own setting it would not harm.

thanks

fevangelou commented 6 years ago

OK, I'll add it as an option in the next release. Makes sense.

fevangelou commented 5 years ago

Added in v5.0.0 which is coming out in the next 24 hours.

fevangelou commented 5 years ago

v5.0.0 is ready. The release blog post will be published tomorrow. If you wish to checkout the new version, just install directly in Joomla using this URL: https://github.com/joomlaworks/allvideos/archive/master.zip