forked from rDrama/rDrama
Merge remote-tracking branch 'origin/master'
commit
6d4d78234e
|
@ -58,7 +58,7 @@
|
||||||
<label class="custom-control-label" for="cardview"></label>
|
<label class="custom-control-label" for="cardview"></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="text-small-extra text-muted">Enable if you would like to display images in full size in the frontpage.</span>
|
<span class="text-small-extra text-muted">Enable if you would like to display images and videos in full size on the frontpage.</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -389,28 +389,30 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.is_image and (not v or v.cardview) %}
|
{% if not v or v.cardview %}
|
||||||
<div style="text-align: center" class="mt-3 mb-4">
|
{% if p.is_image %}
|
||||||
<a target="_blank" rel="nofollow noopener noreferrer" href="{{p.url}}">
|
<div style="text-align: center" class="mt-3 mb-4">
|
||||||
<img loading="lazy" src="{{p.url}}" class="img-fluid" style="max-height:500px;" alt="Unable to load image">
|
<a target="_blank" rel="nofollow noopener noreferrer" href="{{p.url}}">
|
||||||
</a>
|
<img loading="lazy" src="{{p.url}}" class="img-fluid" style="max-height:500px;" alt="Unable to load image">
|
||||||
</div>
|
</a>
|
||||||
{% elif p.is_video %}
|
|
||||||
<a href="javascript:void(0)">
|
|
||||||
<div style="text-align: center" class="mt-4">
|
|
||||||
<video controls preload="metadata" style="max-width: 100%">
|
|
||||||
<source src="{{p.realurl(v)}}" type="video/mp4">
|
|
||||||
</video>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
{% elif p.is_video %}
|
||||||
{% elif p.embed_url and "youtu" in p.domain %}
|
<a href="javascript:void(0)">
|
||||||
<div style="text-align: center" class="mt-3 mb-4">
|
<div style="text-align: center" class="mt-4">
|
||||||
<iframe src="{{p.embed_url}}" frameborder="0" width="600" height="337" allow="fullscreen"></iframe>
|
<video controls preload="metadata" style="max-width: 100%">
|
||||||
</div>
|
<source src="{{p.realurl(v)}}" type="video/mp4">
|
||||||
{% elif p.url and "streamable.com/e/" in p.url %}
|
</video>
|
||||||
<div style="text-align: center" class="mt-3 mb-4">
|
</div>
|
||||||
<iframe src="{{p.url}}" frameborder="0" width="600" height="337" allow="fullscreen"></iframe>
|
</a>
|
||||||
</div>
|
{% elif p.embed_url and "youtu" in p.domain %}
|
||||||
|
<div style="text-align: center" class="mt-3 mb-4">
|
||||||
|
<iframe src="{{p.embed_url}}" frameborder="0" width="600" height="337" allow="fullscreen"></iframe>
|
||||||
|
</div>
|
||||||
|
{% elif p.url and "streamable.com/e/" in p.url %}
|
||||||
|
<div style="text-align: center" class="mt-3 mb-4">
|
||||||
|
<iframe src="{{p.url}}" frameborder="0" width="600" height="337" allow="fullscreen"></iframe>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue