mirror of
https://github.com/openvk/openvk
synced 2025-07-07 00:09:48 +03:00
Compare commits
No commits in common. "aca48e726e4cecad9fe073fdcd7e24f574d4c127" and "c6a77de234d30e84c974c6df97818eab94a04dee" have entirely different histories.
aca48e726e
...
c6a77de234
5 changed files with 4 additions and 13 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -14,5 +14,3 @@ themepacks/*
|
||||||
!themepacks/midnight
|
!themepacks/midnight
|
||||||
storage/*
|
storage/*
|
||||||
!storage/.gitkeep
|
!storage/.gitkeep
|
||||||
|
|
||||||
.idea
|
|
|
@ -283,14 +283,6 @@ class Photo extends Media
|
||||||
return [$x, $y];
|
return [$x, $y];
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPageURL(): string
|
|
||||||
{
|
|
||||||
if($this->isAnonymous())
|
|
||||||
return "/photos/" . base_convert((string) $this->getId(), 10, 32);
|
|
||||||
|
|
||||||
return "/photo" . $this->getPrettyId();
|
|
||||||
}
|
|
||||||
|
|
||||||
function getAlbum(): ?Album
|
function getAlbum(): ?Album
|
||||||
{
|
{
|
||||||
return (new Albums)->getAlbumByPhotoId($this);
|
return (new Albums)->getAlbumByPhotoId($this);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{if $attachment instanceof \openvk\Web\Models\Entities\Photo}
|
{if $attachment instanceof \openvk\Web\Models\Entities\Photo}
|
||||||
{if !$attachment->isDeleted()}
|
{if !$attachment->isDeleted()}
|
||||||
<a href="{$attachment->getPageUrl()}">
|
{var $link = "/photo" . ($attachment->isAnonymous() ? ("s/" . base_convert((string) $attachment->getId(), 10, 32)) : $attachment->getPrettyId())}
|
||||||
|
<a href="{$link}">
|
||||||
<img class="media" src="{$attachment->getURLBySizeId('normal')}" alt="{$attachment->getDescription()}" />
|
<img class="media" src="{$attachment->getURLBySizeId('normal')}" alt="{$attachment->getDescription()}" />
|
||||||
</a>
|
</a>
|
||||||
{else}
|
{else}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{var $user = $notification->getModel(0)}
|
{var $user = $notification->getModel(0)}
|
||||||
{var $post = $notification->getModel(1)}
|
{var $post = $notification->getModel(1)}
|
||||||
|
|
||||||
{_nt_you_were_mentioned_u} <a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a> {$notification->getDateTime()} <a href="/photo{$post->getPageURL()}"><b>{_nt_mention_in_photo}</b></a>: "{$notification->getData()}"
|
{_nt_you_were_mentioned_u} <a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a> {$notification->getDateTime()} <a href="/photo{$post->getURL()}"><b>{_nt_mention_in_photo}</b></a>: "{$notification->getData()}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
"__locale" = "en_US.UTF-8;Eng";
|
"__locale" = "en_US.UTF-8;Eng";
|
||||||
"__transNames" = "[\P{script=Han}]; Russian-Latin/BGN; Any-Latin";
|
"__transNames" = "Russian-Latin/BGN; Any-Latin";
|
||||||
|
|
||||||
/* Check for https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html */
|
/* Check for https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue