Fixed random movie
This commit is contained in:
parent
1abc9797e3
commit
72ccbfbb06
|
@ -122,7 +122,7 @@
|
||||||
<i><%- category.name %></i>
|
<i><%- category.name %></i>
|
||||||
<div class="randomMovieRelated">
|
<div class="randomMovieRelated">
|
||||||
<div class="cinemapress-random-related"
|
<div class="cinemapress-random-related"
|
||||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||||
title="<%- page.l.random %>">
|
title="<%- page.l.random %>">
|
||||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -139,7 +139,7 @@
|
||||||
<i><%- category.name %></i>
|
<i><%- category.name %></i>
|
||||||
<div class="randomMovieRelated">
|
<div class="randomMovieRelated">
|
||||||
<div class="cinemapress-random-related"
|
<div class="cinemapress-random-related"
|
||||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||||
title="<%- page.l.random %>">
|
title="<%- page.l.random %>">
|
||||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
<h2>
|
<h2>
|
||||||
<%- category.name %>
|
<%- category.name %>
|
||||||
<div class="randomMovieIndex">
|
<div class="randomMovieIndex">
|
||||||
<div class="cinemapress-random-index"
|
<div <% if (!category.url) { %>style="display:none"<% } %> class="cinemapress-random-index"
|
||||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||||
title="<%- page.l.random %>">
|
title="<%- page.l.random %>">
|
||||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -206,7 +206,7 @@
|
||||||
<i><%- category.name %></i>
|
<i><%- category.name %></i>
|
||||||
<div class="randomMovieRelated">
|
<div class="randomMovieRelated">
|
||||||
<div class="cinemapress-random-related"
|
<div class="cinemapress-random-related"
|
||||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||||
title="<%- page.l.random %>">
|
title="<%- page.l.random %>">
|
||||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
<i><%- category.name %></i>
|
<i><%- category.name %></i>
|
||||||
<div class="randomMovieRelated">
|
<div class="randomMovieRelated">
|
||||||
<div class="cinemapress-random-related"
|
<div class="cinemapress-random-related"
|
||||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||||
title="<%- page.l.random %>">
|
title="<%- page.l.random %>">
|
||||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
<i><%- category.name %></i>
|
<i><%- category.name %></i>
|
||||||
<div class="randomMovieRelated">
|
<div class="randomMovieRelated">
|
||||||
<div class="cinemapress-random-related"
|
<div class="cinemapress-random-related"
|
||||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||||
title="<%- page.l.random %>">
|
title="<%- page.l.random %>">
|
||||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
<i><%- category.name %></i>
|
<i><%- category.name %></i>
|
||||||
<div class="randomMovieRelated">
|
<div class="randomMovieRelated">
|
||||||
<div class="cinemapress-random-related"
|
<div class="cinemapress-random-related"
|
||||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||||
title="<%- page.l.random %>">
|
title="<%- page.l.random %>">
|
||||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue