- was ich wohl falsch mache
- was ich besser machen könnte
- ob es Alternativen gibt
Code: Select all
<!-- CSS:
.responsive-video-wrapper {
width: 960px; /* maximal erlaubte Abmessung im aktuellen Layout */
max-width: 100%; /* maximal vorhandene Containerbreite verwenden! */
}
.responsive-video { position: relative;
padding-bottom:55%; padding-top:15px; height:0; overflow:hidden;
}
.responsive-video iframe { position: absolute;
top:0; left:0; width:100%; height:100%;
}
-->
[TITLE]<h3>{TITLE}</h3>[/TITLE][SUBTITLE]
<h4>{SUBTITLE}</h4>[/SUBTITLE]
<div class="responsive-video-wrapper cf">
<div class="responsive-video">
[HTML]{HTML}[/HTML]
</div>
</div>
Code: Select all
<iframe width="853" height="480" src="//www.youtube.com/embed/kR75UraslRY?showinfo=0" frameborder="0" allowfullscreen></iframe>
Code: Select all
.video {
// whatever;
}
.video.youtube {
// more whatever
}
.video.vimeo {
// well you can
}
Code: Select all
function phpwcms_embed_api($matches) {
if(empty($matches[2])) {
return ' ';
}
$matches[1] = strtolower($matches[1]);
$player = '';
if($matches[1] == 'youtube') {
$player = '<iframe class="video youtube" width="552" height="312" src="http://www.youtube.com/embed/'.$matches[2].'?theme=light&color=white" frameborder="0" allowfullscreen></iframe>';
} elseif($matches[1] == 'vimeo') {
$player = '<iframe class="video vimeo" src="http://player.vimeo.com/video/'.$matches[2].'?portrait=0&color=000&byline=0" width="552" height="312" ';
$player .= 'frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
}
return $player;
}
$content['all'] = preg_replace_callback('/\[(youtube|vimeo)\]([a-zA-Z0-9\-_]+?)\[\/(youtube|vimeo)\]/i', 'phpwcms_embed_api', $content['all']);
Code: Select all
<!-- CSS:
/*** VIDEO ***/
.borderlike-video-wrapper {
padding:5px;
background:#eee;
}
.video-wrapper{
position:relative;
width:980px;
max-width:100%;
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
/*border:5px solid #eee !important;*/
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
min-height: 100%;
}
.video.youtube {
width: 100% !important;
height: auto !important;
}
.video.vimeo {
width: 100% !important;
height: auto !important;
}
/*** VIDEO END ***/
-->
[TITLE]<h3>{TITLE}</h3>[/TITLE][SUBTITLE]
<h4>{SUBTITLE}</h4>[/SUBTITLE]
<div class="borderlike-video-wrapper">
<div class="video-wrapper">
[youtube][HTML]{HTML}[/HTML][/youtube]
</div>
</div>
Nein, kann nicht sein.update wrote:Kann es sein, dass bei show_content nicht funktionieren mag?
Dann habe ich bei diesem einen OnePager anscheinend ein generelles (rendering)Problem...Oliver Georgi wrote:Nein, kann nicht sein.