81 lines
3.5 KiB
Plaintext
81 lines
3.5 KiB
Plaintext
<% if (typeof top === 'object' && top.length) { %>
|
|
<h3 class="h3"><%- page.l.top %></h3>
|
|
<ul class="list-unstyled related">
|
|
<% top.forEach(function (movie, i) { %>
|
|
<li style="white-space:nowrap;overflow: hidden;text-overflow: ellipsis;"><%- i+1 %>. <a href="<%- movie.url %>" title="<%= movie.title %>"><%- movie.title %></a></li>
|
|
<% }); %>
|
|
</ul>
|
|
<% } else if (typeof slider === 'object' && slider.length) { %>
|
|
<h3 class="h3"><%- page.l.popular %></h3>
|
|
<ul class="list-unstyled related">
|
|
<% slider.forEach(function (movie, i) { %>
|
|
<li style="white-space:nowrap;overflow: hidden;text-overflow: ellipsis;"><%- i+1 %>. <a href="<%- movie.url %>" title="<%= movie.title %>"><%- movie.title %></a></li>
|
|
<% }); %>
|
|
</ul>
|
|
<% } %>
|
|
|
|
<% if (typeof soon === 'object' && soon.length) { %>
|
|
<h3 class="h3"><%- page.l.premieres %></h3>
|
|
<% soon.forEach(function (movie) { %>
|
|
<div>
|
|
<a href="<%- movie.url %>" class="cinemapress-news" style="background-image:url('<%- movie.poster %>');">
|
|
<div class="cinemapress-news-title">
|
|
<%= movie.title %>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<% }); %>
|
|
<% } %>
|
|
|
|
<% if (typeof news === 'object' && news.length) { %>
|
|
<h3 class="h3" style="margin-top: 15px"><%- page.l.news %></h3>
|
|
<% news.forEach(function (content) { %>
|
|
<div>
|
|
<a href="<%- content.url %>" class="cinemapress-news" style="background-image:url('<%- content.image %>');">
|
|
<div class="cinemapress-news-title">
|
|
<%= content.title %>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<% }); %>
|
|
<% } %>
|
|
|
|
<% if (typeof recent === 'object' && recent.length) { %>
|
|
<h3 class="h3" style="margin-top: 15px"><%- page.l.comments %></h3>
|
|
<% recent.forEach(function (comment) { %>
|
|
<div>
|
|
<div class="cinemapress-comment">
|
|
<div class="cinemapress-comment-head">
|
|
<div class="cinemapress-comment-head-avatar">
|
|
<img src="<%- comment.avatar %>" alt="<%= comment.user %>">
|
|
</div>
|
|
<div class="cinemapress-comment-head-meta">
|
|
<div class="cinemapress-comment-head-meta-title">
|
|
<a href="<%- comment.url %>" title="<%= comment.title %>"><%= comment.title %></a>
|
|
</div>
|
|
<div class="cinemapress-comment-user" data-comment-id="<%- comment.id %>">
|
|
<div class="cinemapress-comment-user-name">
|
|
<%- comment.user %>
|
|
</div><div class="cinemapress-comment-user-said">
|
|
<%- page.l.said %>
|
|
</div><div class="cinemapress-comment-user-date">
|
|
<%- comment.date %>
|
|
</div><div class="cinemapress-comment-user-link">
|
|
<a href="<%- comment.url %>#c<%- comment.id %>" title="<%= comment.title %>">#</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="cinemapress-comment-bg cinemapress-comment-radius">
|
|
<%- comment.comment %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% }); %>
|
|
<% } %>
|
|
|
|
<% if (typeof page.adv === 'object' && page.adv.right) { %>
|
|
<div style="text-align: center; margin: 10px auto">
|
|
<%- page.adv.right %>
|
|
</div>
|
|
<% } %> |