mirror of
https://github.com/openvk/openvk
synced 2024-11-14 02:59:12 +03:00
be1e5cf98f
Added: results, post_as_group, add_signature, contains_nsfw, attach_no_longer_available, open_post, version_incompatibility, all_news, posts_per_page, none
70 lines
No EOL
3.4 KiB
XML
70 lines
No EOL
3.4 KiB
XML
<div class="content_divider">
|
|
<div class="content_title_expanded" onclick="hidePanel(this);">
|
|
{_"wall"}
|
|
<nobold>
|
|
{tr("wall", $count)}
|
|
<a href="/wall{$owner}" class="float-right lowercase">{_all_title}</a>
|
|
</nobold>
|
|
</div>
|
|
<div>
|
|
<div n:if="$canPost" class="content_subtitle">
|
|
<div id="write" style="padding: 5px 0;" onfocusin="expand_wall_textarea();">
|
|
<form action="/wall{$owner}/makePost" method="post" enctype="multipart/form-data" style="margin:0;">
|
|
<textarea id="wall-post-input" placeholder="{_write}" name="text" style="width: 100%;resize: none;" class="small-textarea"></textarea>
|
|
<div>
|
|
<!-- padding to fix <br/> bug -->
|
|
</div>
|
|
<div id="post-buttons" style="display: none;">
|
|
<div class="post-upload">
|
|
{_"attachment"}: <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)" /> {_"post_as_group"}
|
|
</label>
|
|
<label id="forceSignOpt" style="display: none;">
|
|
<input type="checkbox" name="force_sign" /> {_"add_signature"}
|
|
</label>
|
|
{/if}
|
|
|
|
<label>
|
|
<input type="checkbox" name="nsfw" /> {_"contains_nsfw"}
|
|
</label>
|
|
</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());">
|
|
{_attach_photo}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</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}
|
|
{_no_posts_abstract}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div> |