do not show content if deleted (fave)

This commit is contained in:
mrilyew 2025-03-24 21:54:43 +03:00
parent 41aef80e85
commit 6ca46028e9
3 changed files with 27 additions and 18 deletions

View file

@ -36,24 +36,30 @@
</style> </style>
{if $count > 0} {if $count > 0}
{foreach $data as $dat} {foreach $data as $dat}
{if $section == "posts"} {if $dat->isDeleted()}
<div class="scroll_node"> <div n:class="deleted_mark, $section == 'photos' ? album-photo : deleted_mark_average">
{include "../components/post.xml", post => $dat, commentSection => true} <span>[deleted]</span>
</div>
{elseif $section == "comments"}
<div class="scroll_node">
{include "../components/comment.xml", comment => $dat, correctLink => true, no_reply_button => true}
</div>
{elseif $section == "photos"}
<div class="album-photo scroll_node" onclick="OpenMiniature(event, {$dat->getURLBySizeId('larger')}, null, {$dat->getPrettyId()}, null)">
<a href="/photo{$dat->getPrettyId()}">
<img class="album-photo--image" src="{$dat->getURLBySizeId('tinier')}" alt="{$dat->getDescription()}" loading="lazy" />
</a>
</div>
{elseif $section == "videos"}
<div class="scroll_node">
{include "../components/video.xml", video => $dat}
</div> </div>
{else}
{if $section == "posts"}
<div class="scroll_node">
{include "../components/post.xml", post => $dat, commentSection => true}
</div>
{elseif $section == "comments"}
<div class="scroll_node">
{include "../components/comment.xml", comment => $dat, correctLink => true, no_reply_button => true}
</div>
{elseif $section == "photos"}
<div class="album-photo scroll_node" onclick="OpenMiniature(event, {$dat->getURLBySizeId('larger')}, null, {$dat->getPrettyId()}, null)">
<a href="/photo{$dat->getPrettyId()}">
<img class="album-photo--image" src="{$dat->getURLBySizeId('tinier')}" alt="{$dat->getDescription()}" loading="lazy" />
</a>
</div>
{elseif $section == "videos"}
<div class="scroll_node">
{include "../components/video.xml", video => $dat}
</div>
{/if}
{/if} {/if}
{/foreach} {/foreach}
{else} {else}

View file

@ -52,7 +52,6 @@
height: 46px; height: 46px;
} }
/* кто прочитал тому не завидую */
.bigPlayer .bigPlayerWrapper .absoluteButtons { .bigPlayer .bigPlayerWrapper .absoluteButtons {
position: absolute; position: absolute;
bottom: 0; bottom: 0;

View file

@ -4282,3 +4282,7 @@ hr {
height: 30px; height: 30px;
background-position-y: 9px; background-position-y: 9px;
} }
.deleted_mark_average {
padding: 5px 61px;
}