mirror of
https://github.com/openvk/openvk
synced 2024-12-24 17:41:07 +03:00
7d450c18fd
* Make audio player pizdatey * Simple ajax routing (scripts are broken) * Fix most common script problems pt1 * Add ajax player Осталось пофиксить скрипты и создание плейлистов! Ну и ещё некоторые хуйни по аудиозаписям которые я задумал. * Add context menu for audios * Refactor audio upload page * Repair playlists * Fix main problems * Midnight teme adaptation * Stupid bug fix * Save audios list in da localstorage and fix msgbox * Fix time setting * add beforeUnload event * Stupid bugs fix * update page footer on transition * fix wall publihing * fix 500 on non existent page
106 lines
5.6 KiB
XML
106 lines
5.6 KiB
XML
{php if(!isset($GLOBALS["textAreaCtr"])) $GLOBALS["textAreaCtr"] = 10;}
|
|
{var $textAreaId = ($post ?? NULL) === NULL ? (++$GLOBALS["textAreaCtr"]) : $post->getId()}
|
|
{var $textAreaId = ($custom_id ?? NULL) === NULL ? $textAreaId : $custom_id}
|
|
|
|
<div id="write" class='model_content_textarea' style="padding: 5px 0;">
|
|
<form action="{$route}" method="post" enctype="multipart/form-data" style="margin:0;">
|
|
<textarea id="wall-post-input{$textAreaId}" placeholder="{_write}" name="text" style="width: 100%;resize: none;" class="small-textarea"></textarea>
|
|
<div>
|
|
<!-- padding to fix <br/> bug -->
|
|
</div>
|
|
<div id="post-buttons{$textAreaId}" class='post-buttons' style="display: none;">
|
|
<div class="post-horizontal"></div>
|
|
<div class="post-vertical"></div>
|
|
<div class="post-has-poll">
|
|
{_poll}
|
|
</div>
|
|
<div class="post-source"></div>
|
|
|
|
<div n:if="$postOpts ?? true" class="post-opts">
|
|
{var $anonEnabled = OPENVK_ROOT_CONF['openvk']['preferences']['wall']['anonymousPosting']['enable']}
|
|
|
|
{if !is_null($thisUser) && !is_null($club ?? NULL) && $owner < 0}
|
|
{if $club->canBeModifiedBy($thisUser)}
|
|
<script>
|
|
function onWallAsGroupClick(el) {
|
|
document.querySelector("#forceSignOpt").style.display = el.checked ? "block" : "none";
|
|
|
|
{if $anonEnabled}
|
|
document.querySelector("#octoberAnonOpt").style.display = el.checked ? "none" : "block";
|
|
{/if}
|
|
}
|
|
</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}
|
|
{/if}
|
|
|
|
<label n:if="$anonEnabled" id="octoberAnonOpt">
|
|
<input type="checkbox" name="anon" /> {_as_anonymous}
|
|
</label>
|
|
|
|
<label>
|
|
<input type="checkbox" name="nsfw" /> {_contains_nsfw}
|
|
</label>
|
|
</div>
|
|
|
|
<div n:if="!($postOpts ?? true) && !is_null($thisUser) && !is_null($club ?? NULL) && $club->canBeModifiedBy($thisUser)" class="post-opts">
|
|
<label>
|
|
<input type="checkbox" name="as_group" /> {_comment_as_group}
|
|
</label>
|
|
</div>
|
|
<input type="hidden" name="horizontal_attachments" value="" autocomplete="off" />
|
|
<input type="hidden" name="vertical_attachments" value="" autocomplete="off" />
|
|
<input type="hidden" name="poll" value="none" autocomplete="off" />
|
|
<input type="hidden" id="source" name="source" value="none" autocomplete="off" />
|
|
<input type="hidden" name="type" value="1" autocomplete="off" />
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
<br/>
|
|
<input type="submit" value="{_write}" class="button" />
|
|
<div style="float: right; display: flex; flex-direction: column;">
|
|
<a class='menu_toggler'>
|
|
{_attach}
|
|
</a>
|
|
|
|
<div id="wallAttachmentMenu" class="hidden">
|
|
<a class="header menu_toggler">
|
|
{_attach}
|
|
</a>
|
|
<a id="__photoAttachment" {if !is_null($club ?? NULL) && $club->canBeModifiedBy($thisUser)}data-club="{$club->getId()}"{/if}>
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/mimetypes/application-x-egon.png" />
|
|
{_photo}
|
|
</a>
|
|
<a id="__videoAttachment">
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/mimetypes/application-vnd.rn-realmedia.png" />
|
|
{_video}
|
|
</a>
|
|
<a id="__audioAttachment">
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/mimetypes/audio-ac3.png" />
|
|
{_audio}
|
|
</a>
|
|
<a n:if="$notes ?? false" id="__notesAttachment">
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/mimetypes/application-x-srt.png" />
|
|
{_note}
|
|
</a>
|
|
<a n:if="$graffiti ?? false" onclick="initGraffiti(event);">
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/actions/draw-brush.png" />
|
|
{_graffiti}
|
|
</a>
|
|
<a n:if="$polls ?? false" onclick="initPoll(event);">
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/actions/office-chart-bar-stacked.png" />
|
|
{_poll}
|
|
</a>
|
|
<a n:if="$hasSource ?? false" id='__sourceAttacher'>
|
|
<img src="/assets/packages/static/openvk/img/oxygen-icons/16x16/actions/insert-link.png" />
|
|
{_source}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|