CinemaPress 4
This commit is contained in:
parent
2d5a924f2f
commit
df896ef955
10
README.md
10
README.md
|
@ -1,10 +1,10 @@
|
|||
# Theme «mormont»
|
||||
|
||||
![Theme «mormont» for CinemaPress ACMS](https://raw.githubusercontent.com/CinemaPress/Theme-Mormont/master/screenshot.png "Theme «mormont» for CinemaPress ACMS")
|
||||
![Theme «mormont» for CinemaPress](https://raw.githubusercontent.com/CinemaPress/Theme-Mormont/master/screenshot.png "Theme «mormont» for CinemaPress")
|
||||
|
||||
:art: Theme «mormont» for CinemaPress ACMS
|
||||
:art: Theme «mormont» for CinemaPress
|
||||
|
||||
- [Mormont.CinemaPress.org](http://Mormont.CinemaPress.org/)
|
||||
- [Mormont.CinemaPress.io](http://Mormont.CinemaPress.io/)
|
||||
|
||||
## How to install?
|
||||
1. Download [GitHub](https://github.com/CinemaPress/Theme-Mormont/archive/master.zip) or [GitLab](https://gitlab.com/CinemaPress/Theme-Mormont/repository/archive.zip) or [BitBucket](https://bitbucket.org/cinemapress/theme-mormont/get/master.zip) or [Coding](https://coding.net/u/CinemaPress/p/Theme-Mormont/git/archive/master.zip)
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
## Installation via terminal
|
||||
```
|
||||
~# wget cinemapress.org/i -qO i && chmod +x i && ./i 3
|
||||
~# bash <(wget -qO- cinemapress.sh)
|
||||
```
|
||||
|
||||
## Как установить?
|
||||
|
@ -25,5 +25,5 @@
|
|||
|
||||
## Установка через терминал
|
||||
```
|
||||
~# wget cinemapress.org/i -qO i && chmod +x i && ./i 3
|
||||
~# bash <(wget -qO- cinemapress.sh)
|
||||
```
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8.3 KiB |
|
@ -29,13 +29,10 @@
|
|||
<% if (typeof categories === 'object' && categories.length) { %>
|
||||
<div style="clear: both"></div>
|
||||
<% categories.forEach(function (content) { %>
|
||||
<div style="float: left; width: 50%;">
|
||||
<div style="margin: 0; padding: 10px">
|
||||
<a href="<%- content.url %>" class="cinemapress-news" style="background-image:url(<%- content.image %>);">
|
||||
<div class="cinemapress-news-title">
|
||||
<%= content.title %>
|
||||
</div>
|
||||
</a>
|
||||
<div style="float:left;width:50%;">
|
||||
<div style="margin:10px;padding:0;position:relative">
|
||||
<div class="cinemapress-categories" style="background-image:url(<%- content.image %>);"></div>
|
||||
<a href="<%- content.url %>" class="cinemapress-categories-title"><%= content.title %></a>
|
||||
</div>
|
||||
</div>
|
||||
<% }); %>
|
||||
|
|
|
@ -48,19 +48,28 @@
|
|||
<div style="clear: both;"></div>
|
||||
<% } %>
|
||||
|
||||
<div class="randomMovieCategory">
|
||||
<div class="cinemapress-random-category"
|
||||
onclick="window.location.href='<%- page.url %>?random'">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
<span><%- page.l.lucky %></span>
|
||||
<small><%- page.l.random %></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if (typeof page.sorting === 'object') { %>
|
||||
<p>
|
||||
<% page.sorting.forEach(function (sort) { %>
|
||||
<% if (sort.active) { %>
|
||||
<a href="<%- sort.url %>" style="font-size: 14px;">
|
||||
<strong><%- sort.name %></strong>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<a href="<%- sort.url %>" style="font-size: 12px;">
|
||||
<%- sort.name %>
|
||||
</a>
|
||||
<% } }); %>
|
||||
</p>
|
||||
<div class="cinemapress-sort">
|
||||
<% page.sorting.forEach(function (sort) { %>
|
||||
<% if (sort.active) { %>
|
||||
<a href="<%- sort.url %>" class="cinemapress-sort-active">
|
||||
<%- sort.name %>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<a href="<%- sort.url %>">
|
||||
<%- sort.name %>
|
||||
</a>
|
||||
<% } }); %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<% } %>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style="width:100%;height:370px">
|
||||
<div id="cinemapress-player" class="tab-content">
|
||||
<%- page.player %>
|
||||
</div>
|
||||
|
||||
|
@ -158,11 +158,21 @@
|
|||
if (movies.hasOwnProperty(type) && movies[type].length) {
|
||||
movies[type].forEach(function (category) { %>
|
||||
|
||||
<h2 class="h3"><%- category.name %></h2>
|
||||
<h2 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<div class="cinemapress-random-related"
|
||||
onclick="window.location.href='<%- category.url %>?random'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
<div class="row items">
|
||||
|
||||
<% if (category.movies.length) {
|
||||
category.movies.splice(4, category.movies.length % 4);
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
<div class="col-xs-3 item">
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
<% } %>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style="width:100%;height:370px">
|
||||
<div id="cinemapress-player" class="tab-content">
|
||||
<%- page.player %>
|
||||
</div>
|
||||
|
||||
|
@ -161,11 +161,21 @@
|
|||
if (movies.hasOwnProperty(type) && movies[type].length) {
|
||||
movies[type].forEach(function (category) { %>
|
||||
|
||||
<h2 class="h3"><%- category.name %></h2>
|
||||
<h2 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<div class="cinemapress-random-related"
|
||||
onclick="window.location.href='<%- category.url %>?random'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
<div class="row items">
|
||||
|
||||
<% if (category.movies.length) {
|
||||
category.movies.splice(4, category.movies.length % 4);
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
<div class="col-xs-3 item">
|
||||
|
|
|
@ -18,19 +18,19 @@
|
|||
<span style="float:left; padding-top: 12px; padding-bottom: 12px;">
|
||||
<% if (page.social) { %>
|
||||
<span>
|
||||
<% if (page.social.vk) { %><a href="<%- page.social.vk %>" target="_blank"><%- page.l.vk %></a><% } %>
|
||||
<% if (page.social.facebook) { %><span> • </span><a href="<%- page.social.facebook %>" target="_blank">facebook</a><% } %>
|
||||
<% if (page.social.twitter) { %><span> • </span><a href="<%- page.social.twitter %>" target="_blank">twitter</a><% } %>
|
||||
<% if (page.social.gplus) { %><span> • </span><a href="<%- page.social.gplus %>" target="_blank">G+</a><% } %>
|
||||
<% if (page.social.youtube) { %><span> • </span><a href="<%- page.social.youtube %>" target="_blank"><%- page.l.youtube %></a><% } %>
|
||||
<% if (page.social.instagram) { %><span> • </span><a href="<%- page.social.instagram %>" target="_blank"><%- page.l.instagram %></a><% } %>
|
||||
<% if (page.social.vk) { %><a href="<%- page.social.vk %>" target="_blank"><%- page.l.vk %></a><span> • </span><% } %>
|
||||
<% if (page.social.facebook) { %><a href="<%- page.social.facebook %>" target="_blank">facebook</a><span> • </span><% } %>
|
||||
<% if (page.social.telegram) { %><a href="<%- page.social.telegram %>" target="_blank"><%- page.l.telegram %></a><span> • </span><% } %>
|
||||
<% if (page.social.twitter) { %><a href="<%- page.social.twitter %>" target="_blank">twitter</a><span> • </span><% } %>
|
||||
<% if (page.social.youtube) { %><a href="<%- page.social.youtube %>" target="_blank"><%- page.l.youtube %></a><span> • </span><% } %>
|
||||
<% if (page.social.instagram) { %><a href="<%- page.social.instagram %>" target="_blank"><%- page.l.instagram %></a><span> • </span><% } %>
|
||||
</span>
|
||||
<% } %>
|
||||
<span> • </span><span id="mylo">Activate JS</span><script>(function(d,i,l,r){d.getElementById(i).innerHTML=l+'@'+r;})(window.document,'mylo','<%- page.email.split('@')[0] %>','<%- page.email.split('@')[1] %>');</script>
|
||||
<span id="mylo">Activate JS</span><script>(function(d,i,l,r){d.getElementById(i).innerHTML=l+'@'+r;})(window.document,'mylo','<%- page.email.split('@')[0] %>','<%- page.email.split('@')[1] %>');</script>
|
||||
</span>
|
||||
|
||||
<div style="float:right; text-align: right; width:300px; padding-top: 12px; padding-bottom: 12px;">
|
||||
© <%- new Date().getFullYear() %> <a href="https://cinemapress.org" target="_blank">CinemaPress ACMS</a>
|
||||
© <%- new Date().getFullYear() %> <a href="https://cinemapress.io" target="_blank">CinemaPress</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
@ -41,11 +41,11 @@
|
|||
var fb = document.querySelector('.btn-fb');
|
||||
var vk = document.querySelector('.btn-vk');
|
||||
var tw = document.querySelector('.btn-tw');
|
||||
var ok = document.querySelector('.btn-ok'); console.log(ok);
|
||||
fb.href = 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(url);
|
||||
vk.href = 'http://vk.com/share.php?url='+encodeURIComponent(url)+'&title='+title;
|
||||
tw.href = 'https://twitter.com/intent/tweet?url='+encodeURIComponent(url)+'&text='+title;
|
||||
ok.href = 'http://connect.ok.ru/dk?st.cmd=WidgetSharePreview&service=odnoklassniki&st.shareUrl='+encodeURIComponent(url);
|
||||
var ok = document.querySelector('.btn-ok');
|
||||
if (fb) fb.href = 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(url);
|
||||
if (vk) vk.href = 'http://vk.com/share.php?url='+encodeURIComponent(url)+'&title='+title;
|
||||
if (tw) tw.href = 'https://twitter.com/intent/tweet?url='+encodeURIComponent(url)+'&text='+title;
|
||||
if (ok) ok.href = 'http://connect.ok.ru/dk?st.cmd=WidgetSharePreview&service=odnoklassniki&st.shareUrl='+encodeURIComponent(url);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,11 +4,15 @@
|
|||
<a href="/"></a>
|
||||
</div>
|
||||
|
||||
<form action="/<%- page.urls.search %>/title" class="search-form">
|
||||
<input class="search" id="sidebar_search" name="q" placeholder="<%- page.l.search %>" value="">
|
||||
<form action="/<%- page.urls.search %>" class="search-form">
|
||||
<input class="search" id="sidebar_search" name="q" placeholder="<%- page.l.search %>" value="" data-autocomplete="desktop">
|
||||
<input class="search-submit" type="submit" value="">
|
||||
<div class="cinemapress-autocomplete" data-autocomplete="desktop"></div>
|
||||
</form>
|
||||
|
||||
<div class="randomMovieMenu">
|
||||
<a href="/?random" class="sidebar-link cinemapress-random-menu"><%- page.l.lucky %></a>
|
||||
</div>
|
||||
<a href="javascript:void(0)" class="sidebar-link continueViewingBlock" id="continueViewing" style="display: none"><%- page.l.continue %>?</a>
|
||||
|
||||
<hr>
|
||||
|
|
|
@ -27,7 +27,16 @@
|
|||
if (index.hasOwnProperty(type) && index[type].length) {
|
||||
index[type].forEach(function (category) { %>
|
||||
|
||||
<h3 class="h3"><%- category.name %></h3>
|
||||
<h3 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieIndex">
|
||||
<div class="cinemapress-random-index"
|
||||
onclick="window.location.href='<%- category.url %>?random'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
</div>
|
||||
</h3>
|
||||
|
||||
<div class="row items">
|
||||
|
||||
|
|
|
@ -170,11 +170,21 @@
|
|||
if (movies.hasOwnProperty(type) && movies[type].length) {
|
||||
movies[type].forEach(function (category) { %>
|
||||
|
||||
<h2 class="h3"><%- category.name %></h2>
|
||||
<h2 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<div class="cinemapress-random-related"
|
||||
onclick="window.location.href='<%- category.url %>?random'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
<div class="row items">
|
||||
|
||||
<% if (category.movies.length) {
|
||||
category.movies.splice(4, category.movies.length % 4);
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
<div class="col-xs-3 item">
|
||||
|
|
|
@ -162,11 +162,21 @@
|
|||
if (movies.hasOwnProperty(type) && movies[type].length) {
|
||||
movies[type].forEach(function (category) { %>
|
||||
|
||||
<h2 class="h3"><%- category.name %></h2>
|
||||
<h2 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<div class="cinemapress-random-related"
|
||||
onclick="window.location.href='<%- category.url %>?random'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
<div class="row items">
|
||||
|
||||
<% if (category.movies.length) {
|
||||
category.movies.splice(4, category.movies.length % 4);
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
<div class="col-xs-3 item">
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
<% } %>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style="width:100%;height:370px;overflow:hidden">
|
||||
<div id="cinemapress-player" class="tab-content">
|
||||
<%- page.player %>
|
||||
</div>
|
||||
|
||||
|
@ -140,11 +140,21 @@
|
|||
if (movies.hasOwnProperty(type) && movies[type].length) {
|
||||
movies[type].forEach(function (category) { %>
|
||||
|
||||
<h2 class="h3"><%- category.name %></h2>
|
||||
<h2 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<div class="cinemapress-random-related"
|
||||
onclick="window.location.href='<%- category.url %>?random'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
<div class="row items">
|
||||
|
||||
<% if (category.movies.length) {
|
||||
category.movies.splice(4, category.movies.length % 4);
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
<div class="col-xs-3 item">
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<% } %>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content" style="width:100%;height:370px">
|
||||
<div id="cinemapress-player" class="tab-content">
|
||||
<%- page.player %>
|
||||
</div>
|
||||
|
||||
|
@ -158,11 +158,21 @@
|
|||
if (movies.hasOwnProperty(type) && movies[type].length) {
|
||||
movies[type].forEach(function (category) { %>
|
||||
|
||||
<h2 class="h3"><%- category.name %></h2>
|
||||
<h2 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<div class="cinemapress-random-related"
|
||||
onclick="window.location.href='<%- category.url %>?random'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/mormont/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
<div class="row items">
|
||||
|
||||
<% if (category.movies.length) {
|
||||
category.movies.splice(4, category.movies.length % 4);
|
||||
category.movies.forEach(function (movie) { %>
|
||||
|
||||
<div class="col-xs-3 item">
|
||||
|
|
Loading…
Reference in New Issue