mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 13:34:25 +00:00
fix page info conditions
This commit is contained in:
parent
ef170f62f3
commit
39ba77fce5
@ -222,14 +222,22 @@ $placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<p><?php echo $hostPage->mime ? _('MIME') : false ?></p>
|
||||
<p><?php echo $hostPage->mime ?></p>
|
||||
<p><?php echo $hostPage->size ? _('Size') : false ?></p>
|
||||
<p><?php echo $hostPage->size ?></p>
|
||||
<p><?php echo $hostPage->timeAdded ? _('Time added') : false ?></p>
|
||||
<p><?php echo date('c', $hostPage->timeAdded) ?></p>
|
||||
<p><?php echo $hostPage->timeUpdated ? _('Time updated') : false ?></p>
|
||||
<p><?php echo date('c', $hostPage->timeUpdated) ?></p>
|
||||
<?php if (!empty($hostPage->mime)) { ?>
|
||||
<p><?php echo _('MIME') ?></p>
|
||||
<p><?php echo $hostPage->mime ?></p>
|
||||
<?php } ?>
|
||||
<?php if (!empty($hostPage->size)) { ?>
|
||||
<p><?php echo _('Size') ?></p>
|
||||
<p><?php echo $hostPage->size ?></p>
|
||||
<?php } ?>
|
||||
<?php if (!empty($hostPage->timeAdded)) { ?>
|
||||
<p><?php echo _('Time added') ?></p>
|
||||
<p><?php echo date('c', $hostPage->timeAdded) ?></p>
|
||||
<?php } ?>
|
||||
<?php if (!empty($hostPage->timeUpdated)) { ?>
|
||||
<p><?php echo _('Time updated') ?></p>
|
||||
<p><?php echo date('c', $hostPage->timeUpdated) ?></p>
|
||||
<?php } ?>
|
||||
<?php $totalHostPageSnaps = $db->getTotalHostPageSnaps($hp); ?>
|
||||
<p>
|
||||
<?php echo $totalHostPageSnaps ? Filter::plural($totalHostPageSnaps, [sprintf(_('%s snap'), $totalHostPageSnaps),
|
||||
|
Loading…
x
Reference in New Issue
Block a user