CinemaPress ACMS GA
This commit is contained in:
parent
b1f862d207
commit
0f4ac5abbc
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 5.1 KiB |
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +35,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +59,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -98,7 +98,7 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof categories == 'object' && categories.length) { %>
|
||||
<% if (typeof categories === 'object' && categories.length) { %>
|
||||
|
||||
<div class="page_block">
|
||||
<div class="wall_module">
|
||||
|
@ -118,20 +118,17 @@
|
|||
<div class="module clear album_module _module">
|
||||
<div class="module_body clear_fix" style="text-align: center;">
|
||||
|
||||
<% categories.forEach(function (category) { %>
|
||||
|
||||
<div class="clear_fix clear page_album_row" style="margin: 5px !important;">
|
||||
<a href="<%- category.url %>" class="page_album_link ">
|
||||
<div class="page_album_thumb_wrap">
|
||||
<img class="page_album_thumb" src="<% if (category.image) { %><%- category.image %><% } else { %>/themes/default/public/desktop/img/og.png<% } %>" alt="<%- category.name %>" style="height: 132px;">
|
||||
</div>
|
||||
<div class="page_album_title">
|
||||
<div class="page_album_title_text" title="<%- category.name %>"><%- category.name %></div>
|
||||
</div>
|
||||
</a>
|
||||
<a class="bg"></a>
|
||||
<% categories.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>" style="height: 160px">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% }); %>
|
||||
|
||||
</div>
|
||||
|
@ -145,7 +142,7 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +35,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +59,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +80,30 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof content === 'object') { %>
|
||||
<div class="page_block">
|
||||
<div class="cinemapress-content">
|
||||
<% if (content.image) { %>
|
||||
<img src="<%- content.image %>" class="cinemapress-content-image">
|
||||
<% } %>
|
||||
<% if (content.description) { %>
|
||||
<div class="cinemapress-content-description">
|
||||
<%- content.description %>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="cinemapress-content-publish">
|
||||
<% if (content.tags) { %>
|
||||
<span class="cinemapress-content-publish-tags"><img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDU1LjI1IDU1LjI1IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1NS4yNSA1NS4yNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8Zz4KCTxwYXRoIGQ9Ik0wLjUyMyw1MS45MzNsLTAuNDk3LDIuMDg1Yy0wLjAxNiwwLjA2Ny0wLjAyLDAuMTM1LTAuMDIyLDAuMjAyQzAuMDA0LDU0LjIzNCwwLDU0LjI0NiwwLDU0LjI1OSAgIGMwLjAwMSwwLjExNCwwLjAyNiwwLjIyNSwwLjA2NSwwLjMzMmMwLjAwOSwwLjAyNSwwLjAxOSwwLjA0NywwLjAzLDAuMDcxYzAuMDQ5LDAuMTA3LDAuMTEsMC4yMSwwLjE5NiwwLjI5NiAgIGMwLjA5NSwwLjA5NSwwLjIwNywwLjE2OCwwLjMyOCwwLjIxOGMwLjEyMSwwLjA1LDAuMjUsMC4wNzUsMC4zNzksMC4wNzVjMC4wNzcsMCwwLjE1NS0wLjAwOSwwLjIzMS0wLjAyN2wyLjA4Ni0wLjQ5NyAgIEwwLjUyMyw1MS45MzN6IiBmaWxsPSIjRkZGRkZGIi8+Cgk8cGF0aCBkPSJNNTIuNjE4LDIuNjMxYy0zLjUxLTMuNTA4LTkuMjE5LTMuNTA4LTEyLjcyOSwwTDMuODI3LDM4LjY5M0MzLjgxLDM4LjcxLDMuOCwzOC43MzEsMy43ODUsMzguNzQ5ICAgYy0wLjAyMSwwLjAyNC0wLjAzOSwwLjA1LTAuMDU4LDAuMDc2Yy0wLjA1MywwLjA3NC0wLjA5NCwwLjE1My0wLjEyNSwwLjIzOWMtMC4wMDksMC4wMjYtMC4wMjIsMC4wNDktMC4wMjksMC4wNzUgICBjLTAuMDAzLDAuMDEtMC4wMDksMC4wMi0wLjAxMiwwLjAzbC0yLjQ5NSwxMC40OEw1LjYsNTQuMTgybDEwLjQ4LTIuNDk1YzAuMDI3LTAuMDA2LDAuMDUxLTAuMDIxLDAuMDc3LTAuMDMgICBjMC4wMzQtMC4wMTEsMC4wNjYtMC4wMjQsMC4wOTktMC4wMzljMC4wNzItMC4wMzMsMC4xMzktMC4wNzQsMC4yMDEtMC4xMjNjMC4wMjQtMC4wMTksMC4wNDktMC4wMzMsMC4wNzItMC4wNTQgICBjMC4wMDgtMC4wMDgsMC4wMTgtMC4wMTIsMC4wMjYtMC4wMmwzNi4wNjMtMzYuMDYzQzU2LjEyNywxMS44NSw1Ni4xMjcsNi4xNCw1Mi42MTgsMi42MzF6IE0xNy4xNTcsNDcuOTkybDAuMzU0LTMuMTgzICAgTDM5Ljg4OSwyMi40M2MwLjM5MS0wLjM5MSwwLjM5MS0xLjAyMywwLTEuNDE0cy0xLjAyMy0wLjM5MS0xLjQxNCwwTDE2LjA5Nyw0My4zOTVsLTQuNzczLDAuNTNsMC41My00Ljc3M2wyMi4zOC0yMi4zNzggICBjMC4zOTEtMC4zOTEsMC4zOTEtMS4wMjMsMC0xLjQxNHMtMS4wMjMtMC4zOTEtMS40MTQsMEwxMC40NCwzNy43MzhsLTMuMTgzLDAuMzU0TDM0Ljk0LDEwLjQwOWw5LjksOS45TDE3LjE1Nyw0Ny45OTJ6ICAgIE00Ni4yNTQsMTguODk1bC05LjktOS45bDEuNDE0LTEuNDE0bDkuOSw5LjlMNDYuMjU0LDE4Ljg5NXogTTQ5LjA4MiwxNi4wNjdsLTkuOS05LjlsMS40MTUtMS40MTVsOS45LDkuOUw0OS4wODIsMTYuMDY3eiIgZmlsbD0iI0ZGRkZGRiIvPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=" style="width: 10px;"> <%- content.tags %></span>
|
||||
<% } %>
|
||||
<% if (content.tags) { %>
|
||||
<span class="cinemapress-content-publish-publish"><img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDYwIDYwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA2MCA2MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8Zz4KCTxjaXJjbGUgY3g9IjMwIiBjeT0iMjkuODc5IiByPSIyIiBmaWxsPSIjRkZGRkZGIi8+Cgk8cGF0aCBkPSJNMzAsMEMxMy40NTgsMCwwLDEzLjQ1OCwwLDMwczEzLjQ1OCwzMCwzMCwzMHMzMC0xMy40NTgsMzAtMzBTNDYuNTQyLDAsMzAsMHogTTI5LDcuODc5YzAtMC41NTMsMC40NDgtMSwxLTFzMSwwLjQ0NywxLDEgICB2MWMwLDAuNTUzLTAuNDQ4LDEtMSwxcy0xLTAuNDQ3LTEtMVY3Ljg3OXogTTksMzAuODc5SDhjLTAuNTUyLDAtMS0wLjQ0Ny0xLTFzMC40NDgtMSwxLTFoMWMwLjU1MiwwLDEsMC40NDcsMSwxICAgUzkuNTUyLDMwLjg3OSw5LDMwLjg3OXogTTE1Ljg1OCw0NS40MzZsLTAuNzA3LDAuNzA3Yy0wLjE5NSwwLjE5NS0wLjQ1MSwwLjI5My0wLjcwNywwLjI5M3MtMC41MTItMC4wOTgtMC43MDctMC4yOTMgICBjLTAuMzkxLTAuMzkxLTAuMzkxLTEuMDIzLDAtMS40MTRsMC43MDctMC43MDdjMC4zOTEtMC4zOTEsMS4wMjMtMC4zOTEsMS40MTQsMFMxNi4yNDksNDUuMDQ1LDE1Ljg1OCw0NS40MzZ6IE0xNS44NTgsMTUuNzM2ICAgYy0wLjE5NSwwLjE5NS0wLjQ1MSwwLjI5My0wLjcwNywwLjI5M3MtMC41MTItMC4wOTgtMC43MDctMC4yOTNsLTAuNzA3LTAuNzA3Yy0wLjM5MS0wLjM5MS0wLjM5MS0xLjAyMywwLTEuNDE0ICAgczEuMDIzLTAuMzkxLDEuNDE0LDBsMC43MDcsMC43MDdDMTYuMjQ5LDE0LjcxMywxNi4yNDksMTUuMzQ2LDE1Ljg1OCwxNS43MzZ6IE0zMSw1MS44NzljMCwwLjU1My0wLjQ0OCwxLTEsMXMtMS0wLjQ0Ny0xLTF2LTEgICBjMC0wLjU1MywwLjQ0OC0xLDEtMXMxLDAuNDQ3LDEsMVY1MS44Nzl6IE0zMCwzMy44NzljLTEuODU4LDAtMy40MTEtMS4yOC0zLjg1OC0zSDE5Yy0wLjU1MiwwLTEtMC40NDctMS0xczAuNDQ4LTEsMS0xaDcuMTQyICAgYzAuMzY0LTEuMzk5LDEuNDU5LTIuNDk0LDIuODU4LTIuODU4VjE1Ljg3OWMwLTAuNTUzLDAuNDQ4LTEsMS0xczEsMC40NDcsMSwxdjEwLjE0MmMxLjcyLDAuNDQ3LDMsMS45OTksMywzLjg1OCAgIEMzNCwzMi4wODUsMzIuMjA2LDMzLjg3OSwzMCwzMy44Nzl6IE00Ni4yNjMsNDYuMTQzYy0wLjE5NSwwLjE5NS0wLjQ1MSwwLjI5My0wLjcwNywwLjI5M3MtMC41MTItMC4wOTgtMC43MDctMC4yOTNsLTAuNzA3LTAuNzA3ICAgYy0wLjM5MS0wLjM5MS0wLjM5MS0xLjAyMywwLTEuNDE0czEuMDIzLTAuMzkxLDEuNDE0LDBsMC43MDcsMC43MDdDNDYuNjU0LDQ1LjExOSw0Ni42NTQsNDUuNzUyLDQ2LjI2Myw0Ni4xNDN6IE00Ni4yNjMsMTUuMDI5ICAgbC0wLjcwNywwLjcwN2MtMC4xOTUsMC4xOTUtMC40NTEsMC4yOTMtMC43MDcsMC4yOTNzLTAuNTEyLTAuMDk4LTAuNzA3LTAuMjkzYy0wLjM5MS0wLjM5MS0wLjM5MS0xLjAyMywwLTEuNDE0bDAuNzA3LTAuNzA3ICAgYzAuMzkxLTAuMzkxLDEuMDIzLTAuMzkxLDEuNDE0LDBTNDYuNjU0LDE0LjYzOSw0Ni4yNjMsMTUuMDI5eiBNNTIsMzAuODc5aC0xYy0wLjU1MiwwLTEtMC40NDctMS0xczAuNDQ4LTEsMS0xaDEgICBjMC41NTIsMCwxLDAuNDQ3LDEsMVM1Mi41NTIsMzAuODc5LDUyLDMwLjg3OXoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" style="width: 10px;"> <%- content.publish %></span>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -101,7 +124,7 @@
|
|||
<div class="wall_module">
|
||||
<div class="wall_posts own">
|
||||
|
||||
<% if (typeof movies == 'object' && movies.length) { %>
|
||||
<% if (typeof movies === 'object' && movies.length) { %>
|
||||
|
||||
<% movies.forEach(function (movie) { %>
|
||||
|
||||
|
@ -117,9 +140,11 @@
|
|||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -141,6 +166,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -170,8 +207,8 @@
|
|||
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
<a href="<%- movie.url %>" style="width: 245px; height: 350px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover page_post_thumb_last_row fl_l"></a>
|
||||
<a href="<%- movie.url %>/<%- page.urls.movies.trailer %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[0]) { %><%- movie.pictures[0].picture_min %><% } else { %>/themes/default/public/desktop/img/og.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column fl_l"><span class="page_post_video_duration">2:<%- Math.floor(Math.random() * 20) + 30 %></span></a>
|
||||
<a href="<%- movie.url %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[1]) { %><%- movie.pictures[1].picture_min %><% } else { %>/themes/default/public/desktop/img/og.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column page_post_thumb_last_row fl_l"><span class="page_post_video_duration">1:<%- Math.floor(Math.random() * 20) + 30 %>:<%- Math.floor(Math.random() * 20) + 30 %></span></a>
|
||||
<a href="<%- movie.url %>/<%- page.urls.movies.trailer %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[0]) { %><%- movie.pictures[0].picture_min %><% } else { %>/themes/default/public/desktop/img/player.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column fl_l"><span class="page_post_video_duration">2:<%- (movie.title.length + 9 >= 60) ? '37' : movie.title.length + 9; %></span></a>
|
||||
<a href="<%- movie.url %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[1]) { %><%- movie.pictures[1].picture_min %><% } else { %>/themes/default/public/desktop/img/player.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column page_post_thumb_last_row fl_l"><span class="page_post_video_duration"><%- (movie.title.length + 10 >= 60) ? '2' : '1'; %>:<%- (movie.title_ru.length + 20 >= 60) ? '28' : movie.title_ru.length + 20; %>:<%- (movie.title_en.length + 10 >= 60) ? '08' : movie.title_en.length + 10; %></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -187,12 +224,16 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.pagination === 'object') { %>
|
||||
<div class="page_block">
|
||||
|
||||
<div style="margin: auto; text-align: center; padding: 10px">
|
||||
|
||||
<% if (page.pagination.first) { %>
|
||||
<a href="<%- page.pagination.first.link %>" class="flat_button" rel="nofollow"><%- page.pagination.first.number %></a>
|
||||
<span class="flat_button" style="color: #000; background: #fff">...</span>
|
||||
<% } %>
|
||||
<% if (page.pagination.prev.length) { %>
|
||||
<% page.pagination.prev.slice(-3).forEach(function (prev) { %>
|
||||
<% page.pagination.prev.forEach(function (prev) { %>
|
||||
<a href="<%- prev.link %>" class="flat_button" rel="nofollow">
|
||||
<%- prev.number %>
|
||||
</a>
|
||||
|
@ -202,17 +243,29 @@
|
|||
<span class="flat_button" style="color: #000; background: #fff"><%- page.pagination.current %></span>
|
||||
<% if (page.pagination.next.length) { %>
|
||||
<span class="flat_button" style="color: #000; background: #fff">...</span>
|
||||
<% page.pagination.next.slice(0,3).forEach(function (next) { %>
|
||||
<% page.pagination.next.forEach(function (next) { %>
|
||||
<a href="<%- next.link %>" class="flat_button" rel="nofollow">
|
||||
<%- next.number %>
|
||||
</a>
|
||||
<% }); %>
|
||||
<% } %>
|
||||
|
||||
<% if (page.pagination.last) { %>
|
||||
<span class="flat_button" style="color: #000; background: #fff">...</span>
|
||||
<a href="<%- page.pagination.last.link %>" class="flat_button" rel="nofollow"><%- page.pagination.last.number %></a>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof content === 'object' && page.comments) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 10px;">
|
||||
<%- page.comments %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns#
|
||||
video: http://ogp.me/ns/video#
|
||||
ya: http://webmaster.yandex.ru/vocabularies/">
|
||||
<head>
|
||||
|
||||
<% include includes/head.ejs %>
|
||||
|
@ -27,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +37,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +61,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +82,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -102,9 +104,11 @@
|
|||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -127,6 +131,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -164,13 +180,13 @@
|
|||
<div id="episodesList" data-id="<%- movie.kp_id %>"></div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.over) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.over) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.over %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div style="position: relative; height: 370px; margin: 20px auto">
|
||||
<div style="position: relative; height: 370px; margin: 20px auto; border-radius: 10px; background: transparent;overflow: hidden;">
|
||||
<% if (page.player) { %>
|
||||
<%- page.player %>
|
||||
<% } %>
|
||||
|
@ -182,7 +198,7 @@
|
|||
|
||||
<div style="clear: both"></div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.under) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.under) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.under %>
|
||||
</div>
|
||||
|
@ -211,7 +227,24 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies == 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
<% if (typeof contents === 'object' && contents.length) { %>
|
||||
<div style="clear: both"></div>
|
||||
<% contents.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div style="clear: both"></div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies === 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
|
||||
<% if (movies[type].length) { %>
|
||||
|
||||
|
@ -239,7 +272,7 @@
|
|||
<% if (category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie, i) { if (i>7) {return;} %>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -264,7 +297,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns#
|
||||
video: http://ogp.me/ns/video#
|
||||
ya: http://webmaster.yandex.ru/vocabularies/">
|
||||
<head>
|
||||
|
||||
<% include includes/head.ejs %>
|
||||
|
@ -27,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +37,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +61,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +82,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -102,9 +104,11 @@
|
|||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -127,6 +131,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -164,13 +180,13 @@
|
|||
<div id="episodesList" data-id="<%- movie.kp_id %>"></div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.over) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.over) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.over %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div style="position: relative; height: 370px; margin: 20px auto">
|
||||
<div style="position: relative; height: 370px; margin: 20px auto; border-radius: 10px; background: transparent;overflow: hidden;">
|
||||
<% if (page.player) { %>
|
||||
<%- page.player %>
|
||||
<% } %>
|
||||
|
@ -183,7 +199,7 @@
|
|||
<div class="flat_button watchLaterBlock" style="float: right; display: none;" id="watchLater">Досмотреть позже</div>
|
||||
<div style="clear: both"></div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.under) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.under) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.under %>
|
||||
</div>
|
||||
|
@ -212,7 +228,24 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies == 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
<% if (typeof contents === 'object' && contents.length) { %>
|
||||
<div style="clear: both"></div>
|
||||
<% contents.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div style="clear: both"></div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies === 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
|
||||
<% if (movies[type].length) { %>
|
||||
|
||||
|
@ -240,7 +273,7 @@
|
|||
<% if (category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie, i) { if (i>7) {return;} %>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -265,7 +298,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="footer_wrap fl_r" style="width: 795px;">
|
||||
<div class="footer_nav">
|
||||
<div class="footer_copy fl_l">
|
||||
© 2017 <a href="https://cinemapress.org" target="_blank">CinemaPress ACMS</a>
|
||||
© <%- new Date().getFullYear() %> <a href="https://cinemapress.org" target="_blank">CinemaPress ACMS</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
<div class="content">
|
||||
<div id="top_nav" class="head_nav">
|
||||
<div class="head_nav_item fl_l" style="background: url(/themes/joffrey/public/images/logo.png) no-repeat; background-size: auto 42px;">
|
||||
<a class="top_home_link fl_l" href="<%- page.protocol %><%- page.domain %>"></a>
|
||||
<a class="top_home_link fl_l" href="/"></a>
|
||||
</div>
|
||||
<div class="head_nav_item fl_l head_nav_btns">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.type %>/<%- page.urls.types.movie %>" class="top_nav_link">Фильмы</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.type %>/<%- page.urls.types.mult %>" class="top_nav_link">Мульты</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.type %>/<%- page.urls.types.serial %>" class="top_nav_link">Сериалы</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.type %>/<%- page.urls.types.anime %>" class="top_nav_link">Аниме</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.type %>/<%- page.urls.types.tv %>" class="top_nav_link">ТВ</a>
|
||||
<a href="/<%- page.urls.type %>/<%- page.urls.types.movie %>" class="top_nav_link">Фильмы</a>
|
||||
<a href="/<%- page.urls.type %>/<%- page.urls.types.mult %>" class="top_nav_link">Мульты</a>
|
||||
<a href="/<%- page.urls.type %>/<%- page.urls.types.serial %>" class="top_nav_link">Сериалы</a>
|
||||
<a href="/<%- page.urls.type %>/<%- page.urls.types.anime %>" class="top_nav_link">Аниме</a>
|
||||
<a href="/<%- page.urls.type %>/<%- page.urls.types.tv %>" class="top_nav_link">ТВ</a>
|
||||
</div>
|
||||
<div class="head_nav_item fl_r continueViewingBlock" style="display: none;">
|
||||
<a href="javascript:void(0)" class="top_nav_link" id="continueViewing">
|
||||
|
@ -26,7 +26,7 @@
|
|||
<div class="input_back_content" style="width: 210px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<form method="get" action="<%- page.protocol %><%- page.domain %>/<%- page.urls.search %>">
|
||||
<form method="get" action="/<%- page.urls.search %>">
|
||||
<input class="text ts_input" autocomplete="off" name="q" type="text" placeholder="Поиск">
|
||||
<button style="display: none;" type="submit"></button>
|
||||
</form>
|
||||
|
|
|
@ -1,147 +1,45 @@
|
|||
<div id="side_bar" class="fl_l">
|
||||
<div id="side_bar_inner" class="side_bar_inner" style="position: relative; margin-top: 42px;">
|
||||
<ol>
|
||||
<li id="l_pr">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/семейный" class="left_row">
|
||||
<% page.urls.genres.forEach(function(genre) { %>
|
||||
<li class="genre_app">
|
||||
<a href="<%- genre.url %>" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Семейный</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_nwsf">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/драма" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Драма</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_msg">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/комедия" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Комедия</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_fr">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/фантастика" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void left_count_wrap_hovered"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Фантастика</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_gr">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/боевик" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Боевик</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_ph">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/приключения" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Приключения</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_aud">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/музыка" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Музыка</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_vid">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/ужасы" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Ужасы</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="l_ap">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>/спорт" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Спортивные</span>
|
||||
<span class="left_label inl_bl"><%- genre.title %></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<% }); %>
|
||||
<li class="more_div l_main"></li>
|
||||
<% page.urls.years.slice(0,10).forEach(function(year) { %>
|
||||
<li class="genre_app">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.year %>/2017" class="left_row">
|
||||
<a href="<%- year.url %>" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">2017 год</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="genre_app">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.year %>/2016" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">2016 год</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="genre_app">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.year %>/2015" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">2015 год</span>
|
||||
<span class="left_label inl_bl"><%- year.title %> год</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<% }); %>
|
||||
<li class="more_div"></li>
|
||||
<% page.urls.countries.slice(0,10).forEach(function(country) { %>
|
||||
<li class="genre_app">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.country %>/США" class="left_row">
|
||||
<a href="<%- country.url %>" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Американские</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="genre_app">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.country %>/Россия" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Русские</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="genre_app">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.country %>/Япония" class="left_row">
|
||||
<span class="left_fixer">
|
||||
<span class="left_count_wrap fl_r left_void"><span class="inl_bl left_count_sign"></span></span>
|
||||
<span class="left_icon fl_l"></span>
|
||||
<span class="left_label inl_bl">Японские</span>
|
||||
<span class="left_label inl_bl"><%- country.title %></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<% }); %>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.left) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.left) { %>
|
||||
<div style="text-align: center; margin: 10px auto; max-width: 150px;">
|
||||
<%- page.adv.left %>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="page_block page_photo">
|
||||
<div class="page_avatar_wrap">
|
||||
<div id="page_avatar" class="page_avatar">
|
||||
<img class="page_avatar_img" src="<% if (typeof movie == 'object') { %><%- movie.poster %><% } else { %>/themes/joffrey/public/images/ava.png<% } %>" alt="Ава">
|
||||
<img class="page_avatar_img" src="<% if (typeof movie === 'object') { %><%- movie.poster %><% } else { %>/themes/joffrey/public/images/ava.png<% } %>" alt="Ава">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -22,7 +22,7 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movie == 'object') { %>
|
||||
<% if (typeof movie === 'object') { %>
|
||||
|
||||
<div class="page_block">
|
||||
<div class="module clear page_list_module _module">
|
||||
|
@ -57,7 +57,7 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof page == 'object' && page.sorting) { %>
|
||||
<% if (typeof page.sorting === 'object') { %>
|
||||
|
||||
<div class="page_block">
|
||||
<div class="module clear page_list_module _module">
|
||||
|
@ -95,18 +95,18 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof top == 'object' && top.movies.length) { %>
|
||||
<% if (typeof top === 'object' && top.length) { %>
|
||||
|
||||
<div class="page_block">
|
||||
<div class="module clear page_list_module _module">
|
||||
<div class="module_header">
|
||||
<h3 class="header_top clear_fix">
|
||||
<span class="header_label fl_l"><%- top.name %></span>
|
||||
<span class="header_label fl_l">Топ</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="module_body clear_fix">
|
||||
|
||||
<% top.movies.forEach(function (movie) { %>
|
||||
<% top.forEach(function (movie) { %>
|
||||
|
||||
<a href="<%- movie.url %>" class="line_cell clear_fix">
|
||||
<div class="fl_l thumb">
|
||||
|
@ -133,7 +133,7 @@
|
|||
</h3>
|
||||
</div>
|
||||
<div class="module_body clear_fix">
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.genre %>" class="line_cell clear_fix">
|
||||
<a href="/<%- page.urls.genre %>" class="line_cell clear_fix">
|
||||
<div class="fl_l thumb">
|
||||
<img class="cell_img" src="/themes/joffrey/public/images/ava.png" alt="Ава">
|
||||
</div>
|
||||
|
@ -141,7 +141,7 @@
|
|||
Все жанры
|
||||
</div>
|
||||
</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.year %>" class="line_cell clear_fix">
|
||||
<a href="/<%- page.urls.year %>" class="line_cell clear_fix">
|
||||
<div class="fl_l thumb">
|
||||
<img class="cell_img" src="/themes/joffrey/public/images/ava.png" alt="Ава">
|
||||
</div>
|
||||
|
@ -149,7 +149,7 @@
|
|||
Все годы
|
||||
</div>
|
||||
</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.country %>" class="line_cell
|
||||
<a href="/<%- page.urls.country %>" class="line_cell
|
||||
clear_fix">
|
||||
<div class="fl_l thumb">
|
||||
<img class="cell_img" src="/themes/joffrey/public/images/ava.png" alt="Ава">
|
||||
|
@ -158,7 +158,7 @@
|
|||
Все страны
|
||||
</div>
|
||||
</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.actor %>" class="line_cell clear_fix">
|
||||
<a href="/<%- page.urls.actor %>" class="line_cell clear_fix">
|
||||
<div class="fl_l thumb">
|
||||
<img class="cell_img" src="/themes/joffrey/public/images/ava.png" alt="Ава">
|
||||
</div>
|
||||
|
@ -166,7 +166,7 @@
|
|||
Все актеры
|
||||
</div>
|
||||
</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.director %>" class="line_cell clear_fix">
|
||||
<a href="/<%- page.urls.director %>" class="line_cell clear_fix">
|
||||
<div class="fl_l thumb">
|
||||
<img class="cell_img" src="/themes/joffrey/public/images/ava.png" alt="Ава">
|
||||
</div>
|
||||
|
@ -174,7 +174,7 @@
|
|||
Все режиссеры
|
||||
</div>
|
||||
</a>
|
||||
<a href="<%- page.protocol %><%- page.domain %>/<%- page.urls.collection %>" class="line_cell clear_fix">
|
||||
<a href="/<%- page.urls.content %>?tag=Коллекция" class="line_cell clear_fix">
|
||||
<div class="fl_l thumb">
|
||||
<img class="cell_img" src="/themes/joffrey/public/images/ava.png" alt="Ава">
|
||||
</div>
|
||||
|
@ -186,7 +186,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.right) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.right) { %>
|
||||
<div class="page_block">
|
||||
<div class="module clear page_list_module _module">
|
||||
<div class="module_body clear_fix">
|
||||
|
@ -198,18 +198,18 @@
|
|||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof soon == 'object' && soon.movies.length) { %>
|
||||
<% if (typeof soon === 'object' && soon.length) { %>
|
||||
|
||||
<div class="page_block">
|
||||
<div class="module clear album_module _module" id="public_albums">
|
||||
<div class="module_header">
|
||||
<h3 class="header_top clear_fix">
|
||||
<span class="header_label fl_l"><%- soon.name %></span>
|
||||
<span class="header_label fl_l">Скоро выйдет</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="module_body clear_fix">
|
||||
|
||||
<% soon.movies.forEach(function (movie) { %>
|
||||
<% soon.forEach(function (movie) { %>
|
||||
|
||||
<div class="clear_fix clear page_album_row">
|
||||
<a href="<%- movie.url %>" class="page_album_link">
|
||||
|
@ -232,6 +232,55 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof news === 'object' && news.length) { %>
|
||||
<% news.forEach(function (content) { %>
|
||||
<div style="float: left; width: 100%;">
|
||||
<div style="margin: 0; padding: 10px 0;">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>" style="height: 160px">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div style="clear: both"></div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof recent === 'object' && recent.length) { %>
|
||||
<% recent.forEach(function (comment) { %>
|
||||
<div>
|
||||
<div class="cinemapress-recent" style="border: 0; background: #fff">
|
||||
<div class="cinemapress-recent-head">
|
||||
<% if (comment.avatar) { %>
|
||||
<div class="cinemapress-recent-head-avatar" style="background: #507299; border: 5px #507299 solid;">
|
||||
<img src="<%- comment.avatar %>" alt="<%- comment.user %>">
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="cinemapress-recent-head-meta">
|
||||
<div>
|
||||
<a href="<%- comment.url %>" style="color: #000"><%- comment.title %></a>
|
||||
</div>
|
||||
<div>
|
||||
<span>
|
||||
<%- comment.user %>
|
||||
</span><span>
|
||||
сказал(а)
|
||||
</span><span>
|
||||
<%- comment.date %>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cinemapress-recent-comment" style="background:#507299; color: #fff">
|
||||
<%- comment.comment %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<% } %>
|
||||
|
||||
<div class="page_block">
|
||||
<div class="module clear page_list_module _module">
|
||||
<div class="module_header">
|
||||
|
@ -280,6 +329,18 @@
|
|||
Google+
|
||||
</a>
|
||||
<% } %>
|
||||
<% if (page.social.youtube) { %>
|
||||
<a href="<%- page.social.youtube %>" class="flat_button" style="display: block;margin: 2px
|
||||
auto; background: #FF0000">
|
||||
YouTube
|
||||
</a>
|
||||
<% } %>
|
||||
<% if (page.social.instagram) { %>
|
||||
<a href="<%- page.social.instagram %>" class="flat_button" style="display: block;margin: 2px
|
||||
auto; background: #005CA3">
|
||||
Instagram
|
||||
</a>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +35,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +59,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -98,11 +98,11 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies == 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
<% if (typeof index === 'object') { for (var type in index) { if (index.hasOwnProperty(type)) { %>
|
||||
|
||||
<% if (movies[type].length) { %>
|
||||
<% if (index[type].length) { %>
|
||||
|
||||
<% movies[type].forEach(function (category) { %>
|
||||
<% index[type].forEach(function (category) { %>
|
||||
|
||||
<div class="wall_module">
|
||||
<div class="page_block">
|
||||
|
@ -130,11 +130,13 @@
|
|||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %> <% if (movie.season && movie.episode) { %>(<%- movie.season %> сезон <%- movie.episode %> серия <% if (movie.translate) { %><%- movie.translate %><% } %>)<% } %></a>
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %> <% if (movie.season && movie.episode) { %>(<%- movie.season %> сезон <%- movie.episode %> серия)<% } %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -156,6 +158,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -185,8 +199,8 @@
|
|||
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
<a href="<%- movie.url %>" style="width: 245px; height: 350px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover page_post_thumb_last_row fl_l"></a>
|
||||
<a href="<%- movie.url %>/<%- page.urls.movies.trailer %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[0]) { %><%- movie.pictures[0].picture_min %><% } else { %>/themes/default/public/desktop/img/og.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column fl_l"><span class="page_post_video_duration">2:<%- Math.floor(Math.random() * 20) + 30 %></span></a>
|
||||
<a href="<%- movie.url %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[1]) { %><%- movie.pictures[1].picture_min %><% } else { %>/themes/default/public/desktop/img/og.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column page_post_thumb_last_row fl_l"><span class="page_post_video_duration">1:<%- Math.floor(Math.random() * 20) + 30 %>:<%- Math.floor(Math.random() * 20) + 30 %></span></a>
|
||||
<a href="<%- movie.url %>/<%- page.urls.movies.trailer %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[0]) { %><%- movie.pictures[0].picture_min %><% } else { %>/themes/default/public/desktop/img/player.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column fl_l"><span class="page_post_video_duration">2:<%- (movie.title.length + 9 >= 60) ? '37' : movie.title.length + 9; %></span></a>
|
||||
<a href="<%- movie.url %>" style="width: 260px; height: 172px; background-image: url(<% if (movie.pictures[1]) { %><%- movie.pictures[1].picture_min %><% } else { %>/themes/default/public/desktop/img/player.png<% } %>)" class="page_post_thumb_wrap image_cover page_post_thumb_video page_post_thumb_last_column page_post_thumb_last_row fl_l"><span class="page_post_video_duration"><%- (movie.title.length + 10 >= 60) ? '2' : '1'; %>:<%- (movie.title_ru.length + 20 >= 60) ? '28' : movie.title_ru.length + 20; %>:<%- (movie.title_en.length + 10 >= 60) ? '08' : movie.title_en.length + 10; %></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -209,12 +223,15 @@
|
|||
|
||||
<% } } } %>
|
||||
|
||||
<% if (typeof page.pagination === 'object') { %>
|
||||
<div class="page_block">
|
||||
|
||||
<div style="margin: auto; text-align: center; padding: 10px">
|
||||
|
||||
<% if (page.pagination.first) { %>
|
||||
<a href="<%- page.pagination.first.link %>" class="flat_button" rel="nofollow"><%- page.pagination.first.number %></a>
|
||||
<span class="flat_button" style="color: #000; background: #fff">...</span>
|
||||
<% } %>
|
||||
<% if (page.pagination.prev.length) { %>
|
||||
<% page.pagination.prev.slice(-3).forEach(function (prev) { %>
|
||||
<% page.pagination.prev.forEach(function (prev) { %>
|
||||
<a href="<%- prev.link %>" class="flat_button" rel="nofollow">
|
||||
<%- prev.number %>
|
||||
</a>
|
||||
|
@ -224,21 +241,21 @@
|
|||
<span class="flat_button" style="color: #000; background: #fff"><%- page.pagination.current %></span>
|
||||
<% if (page.pagination.next.length) { %>
|
||||
<span class="flat_button" style="color: #000; background: #fff">...</span>
|
||||
<% page.pagination.next.slice(0,3).forEach(function (next) { %>
|
||||
<% page.pagination.next.forEach(function (next) { %>
|
||||
<a href="<%- next.link %>" class="flat_button" rel="nofollow">
|
||||
<%- next.number %>
|
||||
</a>
|
||||
<% }); %>
|
||||
<% } %>
|
||||
<% if (page.pagination.all) { %>
|
||||
<% if (page.pagination.last) { %>
|
||||
<span class="flat_button" style="color: #000; background: #fff">...</span>
|
||||
<a href="<%- page.pagination.all.link %>" class="flat_button" rel="nofollow"><%- page.pagination.all.number %></a>
|
||||
<a href="<%- page.pagination.last.link %>" class="flat_button" rel="nofollow"><%- page.pagination.last.number %></a>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns#
|
||||
video: http://ogp.me/ns/video#
|
||||
ya: http://webmaster.yandex.ru/vocabularies/">
|
||||
<head>
|
||||
|
||||
<% include includes/head.ejs %>
|
||||
|
@ -27,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +37,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +61,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +82,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -102,9 +104,11 @@
|
|||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -127,6 +131,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -170,13 +186,13 @@
|
|||
<div id="episodesList" data-id="<%- movie.kp_id %>"></div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.over) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.over) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.over %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div style="position: relative; height: 370px; margin: 20px auto">
|
||||
<div style="position: relative; height: 370px; margin: 20px auto; border-radius: 10px; background: transparent;overflow: hidden;">
|
||||
<% if (page.player) { %>
|
||||
<%- page.player %>
|
||||
<% } %>
|
||||
|
@ -189,7 +205,7 @@
|
|||
<div class="flat_button watchLaterBlock" style="float: right; display: none;" id="watchLater">Досмотреть позже</div>
|
||||
<div style="clear: both"></div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.under) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.under) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.under %>
|
||||
</div>
|
||||
|
@ -209,16 +225,31 @@
|
|||
</div>
|
||||
|
||||
<% if (page.seo) { %>
|
||||
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: justify">
|
||||
<%- page.seo %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies == 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
<% if (typeof contents === 'object' && contents.length) { %>
|
||||
<div style="clear: both"></div>
|
||||
<% contents.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div style="clear: both"></div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies === 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
|
||||
<% if (movies[type].length) { %>
|
||||
|
||||
|
@ -246,7 +277,7 @@
|
|||
<% if (category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie, i) { if (i>7) {return;} %>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -271,7 +302,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns#
|
||||
video: http://ogp.me/ns/video#
|
||||
ya: http://webmaster.yandex.ru/vocabularies/">
|
||||
<head>
|
||||
|
||||
<% include includes/head.ejs %>
|
||||
|
@ -27,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +37,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +61,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +82,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -102,9 +104,11 @@
|
|||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -127,6 +131,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -164,13 +180,13 @@
|
|||
<div id="episodesList" data-id="<%- movie.kp_id %>"></div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.over) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.over) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.over %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div style="position: relative; height: 370px; margin: 20px auto">
|
||||
<div style="position: relative; height: 370px; margin: 20px auto; border-radius: 10px; background: transparent;overflow: hidden;">
|
||||
<% if (page.player) { %>
|
||||
<%- page.player %>
|
||||
<% } %>
|
||||
|
@ -183,7 +199,7 @@
|
|||
<div class="flat_button watchLaterBlock" style="float: right; display: none;" id="watchLater">Досмотреть позже</div>
|
||||
<div style="clear: both"></div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.under) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.under) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.under %>
|
||||
</div>
|
||||
|
@ -212,7 +228,24 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies == 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
<% if (typeof contents === 'object' && contents.length) { %>
|
||||
<div style="clear: both"></div>
|
||||
<% contents.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div style="clear: both"></div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies === 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
|
||||
<% if (movies[type].length) { %>
|
||||
|
||||
|
@ -240,7 +273,7 @@
|
|||
<% if (category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie, i) { if (i>7) {return;} %>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -265,7 +298,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns#
|
||||
video: http://ogp.me/ns/video#
|
||||
ya: http://webmaster.yandex.ru/vocabularies/">
|
||||
<head>
|
||||
|
||||
<% include includes/head.ejs %>
|
||||
|
@ -27,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +37,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +61,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +82,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -102,9 +104,11 @@
|
|||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -127,6 +131,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -164,13 +180,13 @@
|
|||
<div id="episodesList" data-id="<%- movie.kp_id %>"></div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.over) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.over) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.over %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div style="position: relative; margin: 20px auto">
|
||||
<div style="position: relative; margin: 20px auto; border-radius: 10px; background: transparent;overflow: hidden;">
|
||||
<% if (page.player) { %>
|
||||
<%- page.player %>
|
||||
<% } %>
|
||||
|
@ -182,7 +198,7 @@
|
|||
|
||||
<div style="clear: both"></div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.under) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.under) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.under %>
|
||||
</div>
|
||||
|
@ -211,7 +227,24 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies == 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
<% if (typeof contents === 'object' && contents.length) { %>
|
||||
<div style="clear: both"></div>
|
||||
<% contents.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div style="clear: both"></div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies === 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
|
||||
<% if (movies[type].length) { %>
|
||||
|
||||
|
@ -239,7 +272,7 @@
|
|||
<% if (category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie, i) { if (i>7) {return;} %>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -264,7 +297,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="ru" prefix="og: http://ogp.me/ns#
|
||||
video: http://ogp.me/ns/video#
|
||||
ya: http://webmaster.yandex.ru/vocabularies/">
|
||||
<head>
|
||||
|
||||
<% include includes/head.ejs %>
|
||||
|
@ -27,7 +29,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof slider == 'object' && slider.movies.length) { %>
|
||||
<% if (typeof slider === 'object' && slider.length) { %>
|
||||
|
||||
<div class="wall_fixed">
|
||||
<div class="wall_module">
|
||||
|
@ -35,19 +37,19 @@
|
|||
<div class="_post post all own post_fixed">
|
||||
<div class="_post_content">
|
||||
<div class="post_header">
|
||||
<a href="<%- page.protocol %><%- page.domain %>" class="post_image">
|
||||
<a href="/" class="post_image">
|
||||
<img src="/themes/joffrey/public/images/ava.png" class="post_img" height="50" width="50" alt="Ава">
|
||||
<span class="blind_label">.</span>
|
||||
</a>
|
||||
<div class="post_header_info">
|
||||
<h5 class="post_author">
|
||||
<a class="author" href="<%- page.protocol %><%- page.domain %>">10 лучших фильмов</a>
|
||||
<a class="author" href="/">10 лучших фильмов</a>
|
||||
<span class="explain">
|
||||
<span class="wall_fixed_label"> запись закреплена</span>
|
||||
</span>
|
||||
</h5>
|
||||
<div class="post_date">
|
||||
<a class="post_link" href="<%- page.protocol %><%- page.domain %>">
|
||||
<a class="post_link" href="/">
|
||||
<span class="rel_date">сегодня</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -59,9 +61,9 @@
|
|||
<div class="_wall_post_cont">
|
||||
<div class="page_post_sized_thumbs clear_fix" style="width: 510px;">
|
||||
|
||||
<% slider.movies.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
<% slider.forEach(function (movie, i) { if (i > 9) {return;} %>
|
||||
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 2) { %>page_post_thumb_last_column<% } else if (i == 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
<a href="<%- movie.url %>" style="<% if (i > 2) { %>width: 68px; height: 97px;<% } else { %>width: 166px; height: 237px;<% } %> background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 2) { %>page_post_thumb_last_column<% } else if (i === 9) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else if (i > 2) { %>page_post_thumb_last_row<% } %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -80,7 +82,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.top) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.top) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.top %>
|
||||
|
@ -102,9 +104,11 @@
|
|||
<h5 class="post_author">
|
||||
<a class="author" href="<%- movie.url %>"><%- movie.title %></a>
|
||||
</h5>
|
||||
<% if (movie.premiere) { %>
|
||||
<div class="post_date">
|
||||
<span class="rel_date rel_date_needs_update">Премьера: <%- movie.premiere %></span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post_content">
|
||||
|
@ -127,6 +131,18 @@
|
|||
|
||||
<br>
|
||||
|
||||
<% if (movie.quality) { %>
|
||||
<div>
|
||||
Качество: <%- movie.quality %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if (movie.translate) { %>
|
||||
<div>
|
||||
Перевод: <%- movie.translate %>
|
||||
</div>
|
||||
<br>
|
||||
<% } %>
|
||||
|
||||
<% if (movie.year) { %>
|
||||
<div>
|
||||
Год выпуска: <%- movie.year %>
|
||||
|
@ -164,13 +180,13 @@
|
|||
<div id="episodesList" data-id="<%- movie.kp_id %>"></div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.over) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.over) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.over %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div style="position: relative; height: 370px; margin: 20px auto">
|
||||
<div style="position: relative; height: 370px; margin: 20px auto; border-radius: 10px; background: transparent;overflow: hidden;">
|
||||
<% if (page.player) { %>
|
||||
<%- page.player %>
|
||||
<% } %>
|
||||
|
@ -182,7 +198,7 @@
|
|||
|
||||
<div style="clear: both"></div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.under) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.under) { %>
|
||||
<div style="margin: 10px; text-align: center;">
|
||||
<%- page.adv.under %>
|
||||
</div>
|
||||
|
@ -211,7 +227,24 @@
|
|||
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies == 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
<% if (typeof contents === 'object' && contents.length) { %>
|
||||
<div style="clear: both"></div>
|
||||
<% contents.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news">
|
||||
<img src="<%- content.image %>" class="cinemapress-news-image" alt="<%- content.title %>">
|
||||
<div class="cinemapress-news-title">
|
||||
<%- content.title %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div style="clear: both"></div>
|
||||
<% } %>
|
||||
|
||||
<% if (typeof movies === 'object') { for (var type in movies) { if (movies.hasOwnProperty(type)) { %>
|
||||
|
||||
<% if (movies[type].length) { %>
|
||||
|
||||
|
@ -239,7 +272,7 @@
|
|||
<% if (category.movies.length) { %>
|
||||
|
||||
<% category.movies.forEach(function (movie, i) { if (i>7) {return;} %>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i == 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
<a href="<%- movie.url %>" style="width: 68px; height: 97px; background-image: url(<%- movie.poster %>)" class="page_post_thumb_wrap image_cover fl_l <% if (i === 6) { %>page_post_thumb_last_column page_post_thumb_last_row<% } else { %>page_post_thumb_last_row<% } %>" title="<%- movie.title %>"></a>
|
||||
|
||||
<% }); %>
|
||||
|
||||
|
@ -264,7 +297,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.adv == 'object' && page.adv.bottom) { %>
|
||||
<% if (typeof page.adv === 'object' && page.adv.bottom) { %>
|
||||
<div class="page_block">
|
||||
<div style="padding: 20px; text-align: center;">
|
||||
<%- page.adv.bottom %>
|
||||
|
|
Loading…
Reference in New Issue