2016-06-23 09:41:52 +00:00
|
|
|
<div class='post-content post-type-<%- ctx.post.type %>'>
|
2016-05-29 10:28:52 +00:00
|
|
|
<% if (['image', 'animation'].includes(ctx.post.type)) { %>
|
|
|
|
|
2016-06-23 09:41:52 +00:00
|
|
|
<img alt='' src='<%- ctx.post.contentUrl %>'/>
|
2016-05-29 10:28:52 +00:00
|
|
|
|
|
|
|
<% } else if (ctx.post.type === 'flash') { %>
|
|
|
|
|
2016-06-23 09:41:52 +00:00
|
|
|
<object width='<%- ctx.post.canvasWidth %>' height='<%- ctx.post.canvasHeight %>' data='<%- ctx.post.contentUrl %>'>
|
2016-05-29 10:28:52 +00:00
|
|
|
<param name='wmode' value='opaque'/>
|
2016-06-23 09:41:52 +00:00
|
|
|
<param name='movie' value='<%- ctx.post.contentUrl %>'/>
|
2016-05-29 10:28:52 +00:00
|
|
|
</object>
|
|
|
|
|
|
|
|
<% } else if (ctx.post.type === 'video') { %>
|
|
|
|
|
2016-06-06 18:57:22 +00:00
|
|
|
<% if ((ctx.post.flags || []).includes('loop')) { %>
|
2016-05-29 10:28:52 +00:00
|
|
|
<video id='video' controls loop='loop'>
|
|
|
|
<% } else { %>
|
|
|
|
<video id='video' controls>
|
|
|
|
<% } %>
|
|
|
|
|
2016-06-23 09:41:52 +00:00
|
|
|
<source type='<%- ctx.post.mimeType %>' src='<%- ctx.post.contentUrl %>'/>
|
2016-05-29 10:28:52 +00:00
|
|
|
|
|
|
|
Your browser doesn't support HTML5 videos.
|
|
|
|
</video>
|
|
|
|
|
|
|
|
<% } else { console.log(new Error('Unknown post type')); } %>
|
|
|
|
|
|
|
|
<div class='post-overlay'>
|
|
|
|
</div>
|
|
|
|
</div>
|