Browse Source

Fix the usage of Preview on public pages

pull/991/head
Timothée Jaussoin 5 years ago
parent
commit
c670f5e903
  1. 5
      app/views/page.tpl
  2. 4
      app/widgets/Post/_post.tpl

5
app/views/page.tpl

@ -55,8 +55,11 @@
</div>
<?php $this->widget('Dialog');?>
<?php $this->widget('Drawer');?>
<?php $this->widget('Preview');?>
<?php $this->widget('Confirm');?>
<?php if (!$this->public) { ?>
<?php $this->widget('Preview');?>
<?php } ?>
<%content%>
</body>
</html>

4
app/widgets/Post/_post.tpl

@ -256,10 +256,12 @@
</ul>
<ul class="grid active">
{loop="$post->pictures"}
<li style="background-image: url('{$value->href|protectPicture}')"
<li
{if="$public"}
style="background-image: url('{$value->href}')"
onclick="window.location.href = '{$value->href}'"
{else}
style="background-image: url('{$value->href|protectPicture}')"
onclick="Preview_ajaxShow('{$value->href}')"
{/if}
>

Loading…
Cancel
Save