1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-02 02:42:40 +02:00

Basic support for news videos.

Add {NEWSVIDEO} to your news template to take advantage of it and {NEWSTHUMBNAIL} for a thumbnail image of the video. (or image) {NEWSIMAGE} will return nothing for videos, only for images.
This commit is contained in:
Cameron
2014-01-31 01:09:24 -08:00
parent 19b5dd8614
commit cc07dac897
8 changed files with 100 additions and 46 deletions

View File

@@ -31,7 +31,7 @@ $NEWS_TEMPLATE['list']['item'] = '
<div class="row row-fluid">
<div class="span3 col-md-3">
<div class="thumbnail">
{NEWSIMAGE=placeholder}
{NEWSTHUMBNAIL=placeholder}
</div>
</div>
<div class="span9 col-md-9">
@@ -93,6 +93,7 @@ $NEWS_TEMPLATE['default']['item'] = '
<hr>
<p class="lead">{NEWSSUMMARY}</p>
{NEWSVIDEO}
{NEWSBODY}
<hr>
<div class="options">
@@ -126,6 +127,7 @@ $NEWS_TEMPLATE['view']['item'] = '
<hr>
<div class="body">
{NEWSVIDEO}
{NEWSBODY}
{EXTENDED}
</div>