mirror of
https://github.com/openvk/openvk
synced 2025-07-07 00:09:48 +03:00
Compare commits
61 commits
a6ce85aa6c
...
7a6da164a9
Author | SHA1 | Date | |
---|---|---|---|
|
7a6da164a9 | ||
|
b97783f144 | ||
|
12926f317d | ||
|
bd98c3c6c1 | ||
|
3fea659b98 | ||
|
d5128ced48 | ||
|
70db59b35c | ||
|
a9fef861c4 | ||
|
e7ec66b702 | ||
|
e82cb5d6d7 | ||
|
a16b1cdef6 | ||
|
7b055e863c | ||
|
ed8c166d7d | ||
|
ce5a742c7d | ||
|
7e0fba2779 | ||
|
e5db5fd8b0 | ||
|
b05d39e27a | ||
|
a6820d3ae0 | ||
|
e1dc5c67d6 | ||
|
6c5f60aebc | ||
|
1f8303dd15 | ||
|
199844ae85 | ||
|
6d9381e48c | ||
|
37b00e27d4 | ||
|
88c1430c9a | ||
|
e72e310f7f | ||
|
1943913713 | ||
|
7792a11e3f | ||
|
a84829b72d | ||
|
c07cac857a | ||
|
07bde0e649 | ||
|
86f8b0f923 | ||
|
8a82952f0d | ||
|
ff988cccaf | ||
|
afafb90fbd | ||
|
1fc37d5e91 | ||
|
ccb1448c15 | ||
|
57ef9430f8 | ||
|
13926e00b7 | ||
|
c4129d2cdc | ||
|
5f3b594e84 | ||
|
2948ed91c9 | ||
|
a210e3cf46 | ||
|
fbf287bcad | ||
|
0c8a441df9 | ||
|
f8e19d69bc | ||
|
0ffd195cfd | ||
|
7a91156916 | ||
|
8afc7c8c5c | ||
|
a9d7ff808a | ||
|
21930aecb2 | ||
|
6814979c9f | ||
|
02321989a6 | ||
|
b9bf98ef0a | ||
|
2440f2afd9 | ||
|
9c01cd00fc | ||
|
039988c7fc | ||
|
c07ebc2f4d | ||
|
da86a91b76 | ||
|
7c4743633e | ||
|
15b9000ee1 |
10 changed files with 21 additions and 18 deletions
|
@ -37,7 +37,6 @@ final class Gifts extends VKAPIRequestHandler
|
||||||
|
|
||||||
foreach ($user_gifts as $gift) {
|
foreach ($user_gifts as $gift) {
|
||||||
$gift_item[] = [
|
$gift_item[] = [
|
||||||
"id" => $i,
|
|
||||||
"from_id" => $gift->anon == true ? 0 : $gift->sender->getId(),
|
"from_id" => $gift->anon == true ? 0 : $gift->sender->getId(),
|
||||||
"message" => $gift->caption == null ? "" : $gift->caption,
|
"message" => $gift->caption == null ? "" : $gift->caption,
|
||||||
"date" => $gift->sent->timestamp(),
|
"date" => $gift->sent->timestamp(),
|
||||||
|
|
|
@ -106,7 +106,7 @@ final class Notes extends VKAPIRequestHandler
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get(int $user_id, string $note_ids = "", int $offset = 0, int $count = 10)
|
public function get(int $user_id, string $note_ids = "", int $offset = 0, int $count = 10, int $sort = 0)
|
||||||
{
|
{
|
||||||
$this->requireUser();
|
$this->requireUser();
|
||||||
|
|
||||||
|
|
|
@ -336,7 +336,12 @@ class Photo extends Media
|
||||||
|
|
||||||
public function getAlbum(): ?Album
|
public function getAlbum(): ?Album
|
||||||
{
|
{
|
||||||
return (new Albums())->getAlbumByPhotoId($this);
|
$album = (new Albums())->getAlbumByPhotoId($this);
|
||||||
|
if (!$album || $album->isDeleted()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $album;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toVkApiStruct(bool $photo_sizes = true, bool $extended = false): object
|
public function toVkApiStruct(bool $photo_sizes = true, bool $extended = false): object
|
||||||
|
|
|
@ -34,6 +34,12 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><span class="nobold">{_sent}: </span></td>
|
||||||
|
<td>
|
||||||
|
{$x->sent}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr n:if="!empty($x->caption)">
|
<tr n:if="!empty($x->caption)">
|
||||||
<td><span class="nobold">{_comment}: </span></td>
|
<td><span class="nobold">{_comment}: </span></td>
|
||||||
<td>{$x->caption}</td>
|
<td>{$x->caption}</td>
|
||||||
|
|
|
@ -76,14 +76,4 @@
|
||||||
|
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
|
||||||
$(document).ready(() => {
|
|
||||||
u("#post-buttons1 .postFileSel").on("change", function() {
|
|
||||||
handleUpload.bind(this, 1)();
|
|
||||||
});
|
|
||||||
|
|
||||||
setupWallPostInputHandlers(1);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
|
@ -33,9 +33,9 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{if $topic->getClub()->canBeModifiedBy($thisUser)}
|
{if $topic->getClub()->canBeModifiedBy($thisUser)}
|
||||||
<input type="checkbox" name="pin" n:attr="checked => $topic->isPinned()" /> {_pin_topic}<br />
|
<label><input type="checkbox" name="pin" n:attr="checked => $topic->isPinned()" /> {_pin_topic}</label><br />
|
||||||
{/if}
|
{/if}
|
||||||
<input type="checkbox" name="close" n:attr="checked => $topic->isClosed()" /> {_close_topic}
|
<label><input type="checkbox" name="close" n:attr="checked => $topic->isClosed()" /> {_close_topic}</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
{if sizeof($comments) > 0}
|
{if sizeof($comments) > 0}
|
||||||
<div class='scroll_container'>
|
<div class='scroll_container'>
|
||||||
<div class='scroll_node' n:foreach="$comments as $comment">
|
<div class='scroll_node' n:foreach="$comments as $comment">
|
||||||
{include "comment.xml", comment => $comment}
|
{include "comment.xml", comment => $comment, no_reply_button => $readOnly}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 11px;">
|
<div style="margin-top: 11px;">
|
||||||
|
|
|
@ -3840,12 +3840,13 @@ hr {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: -10%;
|
top: -10%;
|
||||||
background: rgba(26, 26, 26, 0.9);;
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
box-shadow: 0px 0px 2px 0px black;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
width: 91px;
|
width: 91px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 1px;
|
border-radius: 2px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
|
@ -1200,6 +1200,7 @@
|
||||||
"coins_other" = "$1 votes";
|
"coins_other" = "$1 votes";
|
||||||
|
|
||||||
"users_gifts" = "Gifts";
|
"users_gifts" = "Gifts";
|
||||||
|
"sent" = "Sent";
|
||||||
|
|
||||||
/* Apps */
|
/* Apps */
|
||||||
"app" = "Application";
|
"app" = "Application";
|
||||||
|
|
|
@ -1142,6 +1142,7 @@
|
||||||
"coins_many" = "$1 голосов";
|
"coins_many" = "$1 голосов";
|
||||||
"coins_other" = "$1 голосов";
|
"coins_other" = "$1 голосов";
|
||||||
"users_gifts" = "Подарки";
|
"users_gifts" = "Подарки";
|
||||||
|
"sent" = "Отправлено";
|
||||||
|
|
||||||
/* Apps */
|
/* Apps */
|
||||||
"app" = "Приложение";
|
"app" = "Приложение";
|
||||||
|
|
Loading…
Reference in a new issue