Added episodes to sidebar

This commit is contained in:
zeldaroot 2019-12-03 05:38:39 +02:00
parent c6c84034d5
commit 97f5f844c7
3 changed files with 29 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -59,6 +59,32 @@
</div>
<% if (typeof index === 'object') {
for (var type in index) {
if (index.hasOwnProperty(type) && index[type].length && type === 'episode') {
index[type].forEach(function (category) { %>
<div class="new-items new_sb">
<div style="margin: 0 0 30px 0;color: #fff;font-size: 20px;font-weight: bold;"><%- category.name %></div>
<% if (category.movies.length) {
category.movies.forEach(function (movie) { %>
<div class="item">
<div class="poster">
<div class="sc_info"><% if (movie.season && movie.episode) { %><%- movie.season %> <%- page.l.season %> <%- movie.episode %> <%- page.l.episode %><br><% if (movie.translate) { %><%- movie.translate %><% } %><% } %></div>
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>" title="<%= movie.title %>"></a>
</div>
<div class="link"><a href="<%- movie.url %>"><%= movie.title %></a></div>
</div>
<% }); } %>
</div>
<% }); } } } %>
<% if (typeof soon === 'object' && soon.length) { %>
<div class="new-items new_sb">
@ -70,7 +96,7 @@
<div class="item">
<div class="poster">
<div class="sc_info"><%- page.l.premiere %><br> <%- movie.premiere %></div>
<a href="<%- movie.url %>" rel="nofollow"><img src="<%- movie.poster %>" alt="<%= movie.title %>" title="<%= movie.title %>"></a>
<a href="<%- movie.url %>"><img src="<%- movie.poster %>" alt="<%= movie.title %>" title="<%= movie.title %>"></a>
</div>
<div class="link"><a href="<%- movie.url %>"><%= movie.title %></a></div>
</div>

View File

@ -31,7 +31,7 @@
<% if (typeof index === 'object') {
for (var type in index) {
if (index.hasOwnProperty(type) && index[type].length) {
if (index.hasOwnProperty(type) && index[type].length && type !== 'episode') {
index[type].forEach(function (category) { %>
<div class="category-name_2">