planshet openvk

Add tabs for post view, add signer's object in wall get and add person icon in microblog
This commit is contained in:
lalka2016 2023-09-02 13:10:06 +03:00
parent e1f10353e0
commit 500107fa78
5 changed files with 34 additions and 6 deletions

View file

@ -201,8 +201,8 @@ final class Wall extends VKAPIRequestHandler
else else
$groups[] = $from_id * -1; $groups[] = $from_id * -1;
/*if($post->isSigned()) if($post->isSigned())
$profiles[] = $post->getOwner(false)->getId();*/ $profiles[] = $post->getOwner(false)->getId();
$attachments = NULL; # free attachments so it will not clone everythingg $attachments = NULL; # free attachments so it will not clone everythingg
} }
@ -392,8 +392,8 @@ final class Wall extends VKAPIRequestHandler
else else
$groups[] = $from_id * -1; $groups[] = $from_id * -1;
/*if($post->isSigned()) if($post->isSigned())
$profiles[] = $post->getOwner(false)->getId();*/ $profiles[] = $post->getOwner(false)->getId();
$attachments = NULL; # free attachments so it will not clone everything $attachments = NULL; # free attachments so it will not clone everything
$repost = NULL; # same $repost = NULL; # same

View file

@ -14,6 +14,20 @@
{/block} {/block}
{block content} {block content}
<div class="tabs">
<div class="tab">
<a href="/wall{$post->getTargetWall()}">{_all_posts}</a>
</div>
<div class="tab">
<a href="/wall{$post->getTargetWall()}?type=owners">{$post->getTargetWall() < 0 ? tr("clubs_posts") : tr("users_posts", ovk_proc_strtr($wallOwner->getFirstName(), 20))}</a>
</div>
<div class="tab">
<a href="/wall{$post->getTargetWall()}?type=others">{_others_posts}</a>
</div>
<div class="tab" id="activetabs">
<a href="" id="act_tab_a">{_post}</a>
</div>
</div>
{include "../components/post.xml", post => $post, forceNoCommentsLink => TRUE, forceNoDeleteLink => TRUE} {include "../components/post.xml", post => $post, forceNoCommentsLink => TRUE, forceNoDeleteLink => TRUE}
<hr/> <hr/>
<div style="float: left; min-height: 100px; width: 68%;"> <div style="float: left; min-height: 100px; width: 68%;">

View file

@ -80,8 +80,8 @@
<div n:if="$post->isSigned()" class="post-signature"> <div n:if="$post->isSigned()" class="post-signature">
{var $actualAuthor = $post->getOwner(false)} {var $actualAuthor = $post->getOwner(false)}
<span> <span>
{_author}: <div class="authorIcon"></div>
<a href="{$actualAuthor->getURL()}" class="mention" data-mention-ref="{$actualAuthor->getId()}"> <a href="{$actualAuthor->getURL()}" class="mention authorName" data-mention-ref="{$actualAuthor->getId()}">
{$actualAuthor->getCanonicalName()} {$actualAuthor->getCanonicalName()}
</a> </a>
</span> </span>

View file

@ -2736,3 +2736,17 @@ body.article .floating_sidebar, body.article .page_content {
text-decoration: underline; text-decoration: underline;
color:#4a4a4a; color:#4a4a4a;
} }
.authorIcon {
height: 11px;
margin-top: 1px;
width: 10px;
float: left;
background: url("/assets/packages/static/openvk/img/person.png") no-repeat 0 0;
}
.authorName {
margin-left: 4px;
font-weight: normal !important;
font-size: 11px;
}

BIN
Web/static/img/person.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B