Browse Source

hide comments indicator on disabled

main
ghost 1 year ago
parent
commit
ac7d496075
  1. 2
      src/public/index.php
  2. 4
      src/public/magnet.php

2
src/public/index.php

@ -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) { ?>

4
src/public/magnet.php

@ -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) { ?>

Loading…
Cancel
Save