hide comments indicator on disabled

This commit is contained in:
ghost 2023-09-19 19:01:16 +03:00
parent 1d29f0f9f1
commit ac7d496075
2 changed files with 32 additions and 28 deletions

View File

@ -317,6 +317,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
</a> </a>
<sup><?php echo $magnet->star->total ?></sup> <sup><?php echo $magnet->star->total ?></sup>
</span> </span>
<?php if ($magnet->comments) { ?>
<span class="float-right margin-l-12"> <span class="float-right margin-l-12">
<a rel="nofollow" href="<?php echo WEBSITE_URL ?>/magnet.php?magnetId=<?php echo $magnet->magnetId ?>#comment" title="<?php echo _('Comment') ?>"> <a rel="nofollow" href="<?php echo WEBSITE_URL ?>/magnet.php?magnetId=<?php echo $magnet->magnetId ?>#comment" title="<?php echo _('Comment') ?>">
<?php if ($magnet->comment->status) { ?> <?php if ($magnet->comment->status) { ?>
@ -331,6 +332,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
</a> </a>
<sup><?php echo $magnet->comment->total ?></sup> <sup><?php echo $magnet->comment->total ?></sup>
</span> </span>
<?php } ?>
<span class="float-right margin-l-12"> <span class="float-right margin-l-12">
<a rel="nofollow" href="<?php echo WEBSITE_URL ?>/download.php?magnetId=<?php echo $magnet->magnetId ?>" title="<?php echo _('Download') ?>"> <a rel="nofollow" href="<?php echo WEBSITE_URL ?>/download.php?magnetId=<?php echo $magnet->magnetId ?>" title="<?php echo _('Download') ?>">
<?php if ($magnet->download->status) { ?> <?php if ($magnet->download->status) { ?>

View File

@ -315,8 +315,9 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
</a> </a>
<sup><?php echo $response->magnet->star->total ?></sup> <sup><?php echo $response->magnet->star->total ?></sup>
</span> </span>
<?php if ($response->magnet->comments) { ?>
<span class="float-right margin-l-12"> <span class="float-right margin-l-12">
<a rel="nofollow" href="<?php echo WEBSITE_URL ?>/magnet.php?magnetId=<?php echo $response->magnet->magnetId ?>#comment" title="<?php echo _('Comment') ?>"> <a rel="nofollow" href="<?php echo WEBSITE_URL ?>/magnet.php?magnetId=<?php echo $magnet->magnetId ?>#comment" title="<?php echo _('Comment') ?>">
<?php if ($response->magnet->comment->status) { ?> <?php if ($response->magnet->comment->status) { ?>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-fill" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-fill" viewBox="0 0 16 16">
<path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9.06 9.06 0 0 0 8 15z"/> <path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9.06 9.06 0 0 0 8 15z"/>
@ -329,6 +330,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
</a> </a>
<sup><?php echo $response->magnet->comment->total ?></sup> <sup><?php echo $response->magnet->comment->total ?></sup>
</span> </span>
<?php } ?>
<span class="float-right margin-l-12"> <span class="float-right margin-l-12">
<a rel="nofollow" href="<?php echo WEBSITE_URL ?>/download.php?magnetId=<?php echo $response->magnet->magnetId ?>" title="<?php echo _('Download') ?>"> <a rel="nofollow" href="<?php echo WEBSITE_URL ?>/download.php?magnetId=<?php echo $response->magnet->magnetId ?>" title="<?php echo _('Download') ?>">
<?php if ($response->magnet->download->status) { ?> <?php if ($response->magnet->download->status) { ?>