mirror of
https://github.com/openvk/openvk
synced 2025-07-07 08:19:49 +03:00
Compare commits
52 commits
7a6da164a9
...
a6ce85aa6c
Author | SHA1 | Date | |
---|---|---|---|
|
a6ce85aa6c | ||
|
bf3f7ac3cb | ||
|
4d8370f322 | ||
|
6ffbc0ed29 | ||
|
abf43c7ab5 | ||
|
5416090407 | ||
|
b43fe8b016 | ||
|
ff61ba5e24 | ||
|
9bd59d2b89 | ||
|
88125a7195 | ||
|
51e640ce42 | ||
|
bf30cfaeeb | ||
|
9d7971ad77 | ||
|
b9f3a67433 | ||
|
718d4ffd86 | ||
|
fcc4a99799 | ||
|
40b6b2715a | ||
|
3faab6f9e9 | ||
|
89cccd5878 | ||
|
ca07849bb9 | ||
|
c5d4e8d1a0 | ||
|
800ad5d7b8 | ||
|
074bdec314 | ||
|
dd3e355504 | ||
|
cdf2eb685e | ||
|
78dd0bf0d6 | ||
|
a88e17a6e5 | ||
|
acd00c5f86 | ||
|
9e7956ec03 | ||
|
911247b396 | ||
|
f05ea1973e | ||
|
cca6f55bc8 | ||
|
bb2f1b55f7 | ||
|
1ce92f7c58 | ||
|
f276522fc5 | ||
|
5755d13425 | ||
|
1bf662c5e2 | ||
|
408caf4302 | ||
|
586d7e1e6a | ||
|
2971d4f06f | ||
|
903528e481 | ||
|
ecd463963e | ||
|
d64c46412e | ||
|
73356f4d9f | ||
|
6f31da02c8 | ||
|
4ec6ceca8e | ||
|
596eb7b5e7 | ||
|
a922fb7c4c | ||
|
9f07a83966 | ||
|
87a8c8384f | ||
|
491cd77cd5 | ||
|
41100469d0 |
10 changed files with 18 additions and 21 deletions
|
@ -37,6 +37,7 @@ 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, int $sort = 0)
|
public function get(int $user_id, string $note_ids = "", int $offset = 0, int $count = 10)
|
||||||
{
|
{
|
||||||
$this->requireUser();
|
$this->requireUser();
|
||||||
|
|
||||||
|
|
|
@ -336,12 +336,7 @@ class Photo extends Media
|
||||||
|
|
||||||
public function getAlbum(): ?Album
|
public function getAlbum(): ?Album
|
||||||
{
|
{
|
||||||
$album = (new Albums())->getAlbumByPhotoId($this);
|
return (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,12 +34,6 @@
|
||||||
</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,4 +76,14 @@
|
||||||
|
|
||||||
<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)}
|
||||||
<label><input type="checkbox" name="pin" n:attr="checked => $topic->isPinned()" /> {_pin_topic}</label><br />
|
<input type="checkbox" name="pin" n:attr="checked => $topic->isPinned()" /> {_pin_topic}<br />
|
||||||
{/if}
|
{/if}
|
||||||
<label><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}
|
||||||
</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, no_reply_button => $readOnly}
|
{include "comment.xml", comment => $comment}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 11px;">
|
<div style="margin-top: 11px;">
|
||||||
|
|
|
@ -3840,13 +3840,12 @@ hr {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: -10%;
|
top: -10%;
|
||||||
background: rgba(0, 0, 0, 0.8);
|
background: rgba(26, 26, 26, 0.9);;
|
||||||
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: 2px;
|
border-radius: 1px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
|
@ -1200,7 +1200,6 @@
|
||||||
"coins_other" = "$1 votes";
|
"coins_other" = "$1 votes";
|
||||||
|
|
||||||
"users_gifts" = "Gifts";
|
"users_gifts" = "Gifts";
|
||||||
"sent" = "Sent";
|
|
||||||
|
|
||||||
/* Apps */
|
/* Apps */
|
||||||
"app" = "Application";
|
"app" = "Application";
|
||||||
|
|
|
@ -1142,7 +1142,6 @@
|
||||||
"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