2020-06-07 19:04:43 +03:00
|
|
|
<div class="content_divider">
|
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this, {$count});">
|
|
|
|
{_"wall"}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="content_subtitle">
|
|
|
|
{tr("wall", $count)}
|
|
|
|
|
|
|
|
<div n:if="$canPost" style="float: right;">
|
|
|
|
<a n:ifset="$thisUser" onclick="show_write_textarea()">{_'write'}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div n:if="$canPost" id="write" style="padding: 8px; display: none;">
|
|
|
|
<form action="/wall{$owner}/makePost" method="post" enctype="multipart/form-data" style="margin:0;">
|
|
|
|
<textarea id="wall-post-input" name="text" style="width: 100%;resize: none;"></textarea>
|
|
|
|
<div>
|
|
|
|
<!-- padding to fix <br/> bug -->
|
|
|
|
</div>
|
|
|
|
<div class="post-upload">
|
|
|
|
Вложение: <span>(unknown)</span>
|
|
|
|
</div>
|
|
|
|
<div class="post-opts">
|
|
|
|
{if !is_null($thisUser) && $owner < 0 && $club->canBeModifiedBy($thisUser)}
|
|
|
|
<script>
|
|
|
|
function onWallAsGroupClick(el) {
|
|
|
|
_display = el.checked ? "block" : "none";
|
|
|
|
document.querySelector("#forceSignOpt").style.display = _display;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="as_group" onchange="onWallAsGroupClick(this)" /> От имени сообщества
|
|
|
|
</label>
|
|
|
|
<label id="forceSignOpt" style="display: none;">
|
|
|
|
<input type="checkbox" name="force_sign" /> Подпись автора
|
|
|
|
</label>
|
|
|
|
{/if}
|
|
|
|
|
2020-06-29 23:05:20 +03:00
|
|
|
{*
|
|
|
|
<label>
|
2020-06-07 19:04:43 +03:00
|
|
|
<input type="checkbox" name="nsfw" /> Содержит NSFW-контент
|
|
|
|
</label>
|
2020-06-29 23:05:20 +03:00
|
|
|
*}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<input type="file" name="_pic_attachment" accept="image/*" style="display:none;" />
|
|
|
|
<input type="hidden" name="type" value="1" />
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
|
|
<br/>
|
|
|
|
<input type="submit" value="{_'write'}" class="button" />
|
|
|
|
<div style="float: right;">
|
|
|
|
<a href="javascript:void(document.querySelector(`input[name=_pic_attachment]`).click());">
|
2020-08-20 17:05:00 +03:00
|
|
|
{_attach_photo}
|
2020-06-07 19:04:43 +03:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
{if sizeof($posts) > 0}
|
|
|
|
{foreach $posts as $post}
|
|
|
|
<a name="postGarter={$post->getId()}"></a>
|
|
|
|
|
|
|
|
{include "../components/post.xml", post => $post}
|
|
|
|
{/foreach}
|
|
|
|
{include "../components/paginator.xml", conf => $paginatorConf}
|
|
|
|
{else}
|
2020-08-20 17:05:00 +03:00
|
|
|
{_no_posts_abstract}
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|