Fixed random movie
This commit is contained in:
parent
fc5f7b9df7
commit
d8da50c234
|
@ -163,7 +163,7 @@
|
|||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<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 %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
|
@ -166,7 +166,7 @@
|
|||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<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 %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
<h3 class="h3">
|
||||
<%- category.name %>
|
||||
<div class="randomMovieIndex">
|
||||
<div class="cinemapress-random-index"
|
||||
onclick="window.location.href='<%- (category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||
<div <% if (!category.url) { %>style="display:none"<% } %> class="cinemapress-random-index"
|
||||
onclick="window.location.href='<%- (category.url && category.url.indexOf('?')+1 ? category.url + '&random' : category.url + '?random') %>'"
|
||||
title="<%- page.l.random %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
|
@ -175,7 +175,7 @@
|
|||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<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 %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<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 %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<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 %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
|
@ -163,7 +163,7 @@
|
|||
<%- category.name %>
|
||||
<div class="randomMovieRelated">
|
||||
<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 %>">
|
||||
<img src="/themes/<%- page.theme %>/public/images/dice.svg" alt="<%- page.l.random %>">
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue