Hier das Template:
Code: Select all
[ATTR_CLASS]<div class="{ATTR_CLASS}"[ATTR_ID] id="{ATTR_ID}"[/ATTR_ID]>[/ATTR_CLASS][ATTR_CLASS_ELSE][ATTR_ID]<div id="{ATTR_ID}">[/ATTR_ID][/ATTR_CLASS_ELSE]
[TITLE]<h3>{TITLE}</h3>[/TITLE]
[SUBTITLE]<h4>{SUBTITLE}</h4>[/SUBTITLE]
[PLAYER]
<div id="player-{ID}" class="video-player">
{PLAYER}
</div>
<!-- CSS: {TEMPLATE}lib/videojs-markers/dist/videojs.markers.min.css -->
<!-- JS: {TEMPLATE}lib/videojs-markers/dist/videojs-markers.min.js -->
<script>
if(typeof videoJS_{ID}_marker !== 'undefined' && videoJS_{ID}_marker.length) {
videoJS_{ID}.markers({
markers: videoJS_{ID}_marker,
breakOverlay: {
display: true
}
});
}
</script>
[/PLAYER]
[CAPTION]
<p class="video-player-caption">
{CAPTION}
</p>
[/CAPTION]
[LINK]
<p class="video-player-link">
<a href="{LINK}"[TARGET] target="{TARGET}"[/TARGET]>
@@More@@
</a>
</p>
[/LINK]
[ATTR_CLASS]</div>[/ATTR_CLASS][ATTR_CLASS_ELSE][ATTR_ID]</div>[/ATTR_ID][/ATTR_CLASS_ELSE]
Und das Ergebnis:
Hier alles zusammengefasst: