More updates
This commit is contained in:
parent
e191493d08
commit
fa92641baf
@ -17,6 +17,7 @@
|
||||
endif
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
<div class="sidebar" style="display: none;">
|
||||
<?php if (current_user()->is_privileged_or_higher()) : ?>
|
||||
<?= $this->partial('tag_script') ?>
|
||||
@ -34,7 +35,6 @@
|
||||
|
||||
<?= $this->partial('blacklists') ?>
|
||||
</div>
|
||||
<div class="content">
|
||||
<?php if (current_user()->is_member_or_lower()) : ?>
|
||||
<div class="status-notice">You’re not logged in! You are required to have an account to access <a href="/wiki/show?title=restricted_content">restricted content</a>! <a href="/user/login">Login</a>
|
||||
</div>
|
||||
|
@ -14,9 +14,11 @@
|
||||
<?= $this->partial('post/show_partials/status_notices', array('pools' => $this->pools)) ?>
|
||||
<div class="sidebar">
|
||||
<?= $this->partial('post/show_partials/related_posts_panel') ?>
|
||||
<?php if ($this->post->can_be_seen_by(current_user())) : ?>
|
||||
<?= $this->partial('tags') ?>
|
||||
<?= $this->partial('post/show_partials/statistics_panel') ?>
|
||||
<?= $this->partial('post/show_partials/options_panel') ?>
|
||||
<?php endif ?>
|
||||
<br />
|
||||
<?php if (CONFIG()->can_show_ad('post#show-sidebar', current_user())) : ?>
|
||||
<?= $this->partial('vertical') ?>
|
||||
@ -26,12 +28,15 @@
|
||||
<?php if (CONFIG()->can_show_ad('post#show-top', current_user())) : ?>
|
||||
<?= $this->partial('horizontal', ['position' => 'top']) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (!$this->post->can_be_seen_by(current_user())) : ?>
|
||||
<p>This post is restricted</p>
|
||||
<?php endif ?>
|
||||
<?php if ($this->post->can_be_seen_by(current_user())) : ?>
|
||||
<?= $this->partial('post/show_partials/image') ?>
|
||||
<?= $this->partial('post/show_partials/image_footer', ['post_id' => $this->post->id]) ?>
|
||||
<?= $this->partial('post/show_partials/edit') ?>
|
||||
<?= $this->partial('post/show_partials/comments') ?>
|
||||
|
||||
<?php endif ?>
|
||||
<?php if (CONFIG()->can_show_ad('post#show-bottom', current_user())) : ?>
|
||||
<?= $this->partial('horizontal', ['position' => 'bottom']) ?>
|
||||
<?php endif ?>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php if (!$this->post->is_deleted()) : ?>
|
||||
<div<?php if (CONFIG()->dblclick_resize_image) echo ' ondblclick="Post.resize_image(); return false;"' ?>>
|
||||
<?php if (!$this->post->can_be_seen_by(current_user())) : ?>
|
||||
<p><?= $this->t('.text') ?></p>
|
||||
<p>This post is restricted</p>
|
||||
<?php elseif ($this->post->image()) : ?>
|
||||
<div id="note-container">
|
||||
<?php foreach ($this->post->active_notes() as $note) : ?>
|
||||
|
Reference in New Issue
Block a user