Also meine Aufrufe sehen nur so aus:
Code: Select all
<div class="youtube"><span class="xhplugincall mceNonEditable" lang="de">{{{youtube_privacy('<iframe src="..." width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>');}}}</span></div>
also theoretisch sogar nur so:
Code: Select all
<div class="youtube">{{{youtube_privacy('<iframe src="..." width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>');}}}</div>
denn das span ist ja nur vom Editor-Plugin.
heraus kommt dabei:
Code: Select all
<div class="youtube"><div class="yp-video-container" style="max-width: 100%;"><iframe src="..." width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div><script>$("#ypxh_1 button").click(function() {$(this).parent().parent().html('<iframe src="..." width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>');});</script></div>
die Klasse youtube ist im Templatestyle so angelegt:
Code: Select all
div.youtube {
max-width: 560px;
max-height: 315px;
margin-bottom: 4em;
Und die Videos verhalten sich responsive.
Denn es steckt ja <div class="yp-video-container" style="max-width: 100%;"> in der Ausgabe.
Gruß Olaf,
Plugins for CMSimple_XH
Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.