mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
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:
parent
e1f10353e0
commit
500107fa78
5 changed files with 34 additions and 6 deletions
|
@ -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
|
||||||
|
|
|
@ -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%;">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
BIN
Web/static/img/person.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 265 B |
Loading…
Reference in a new issue