When adding a video using [video:URL align:right], [video:URL align:left], or [video:URL align:center], the video-right, video-left, or video-center classes are not being added to the object.
If I revert back to 6.x-2.8 the videos are aligned as expected.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1233706-theme_video_filter_iframe.patch | 4.54 KB | Draknek |
| #3 | 1233706_video_filter_html5_theme.patch | 4.68 KB | blackdog |
| #2 | youtubehtml5classes-1233706.patch | 1.17 KB | bneil |
Comments
Comment #1
blackdog commentedAre you using the HTML5 option? Align won't work with that option I'm afraid.
Comment #2
bneil commentedI was using HTML 5 with a YouTube video. Can we add the classes variable to the iframe as part of the video_filter_youtube_html5 function? I did a quick and dirty patch with the code from theme_video_filter_flash in video_filter.module. I'm not quite sure if this is the best approach, but maybe it's at least a step in that direction? Bear with me, first patch.
Comment #3
blackdog commentedThis patch adds a theme function for HTML5, and moves some code to a helper function.
Comment #4
anonReview for patch in #2
Always use a space between the dot and the concatenated parts to improve readability.
Also, check for whitespace
Comment #5
Draknek commentedUpdated patch from #3 against version 3.0.
Changed the new theme function to theme_video_filter_iframe (as opposed to html5) since it specifically creates iframe output.
Fixes some whitespace issues.
Should work in both the 6.x and 7.x branches.
Comment #6
blackdog commentedCommitted to 6.x & 7.x. Thanks!
Comment #7
monil-dupe commentedThanks a lot. My problem is fixed now.