add long description field

This commit is contained in:
ghost 2023-08-30 19:38:04 +03:00
parent e750dac85d
commit c5eef6751d
8 changed files with 68 additions and 25 deletions

View file

@ -170,7 +170,7 @@ else
'metaTitle' => $magnet->metaTitle ? htmlentities($magnet->metaTitle) : ($magnet->dn ? htmlentities($magnet->dn): false),
'metaDescription' => $magnet->metaDescription ? nl2br(
htmlentities(
substr($magnet->metaDescription, 0, MAGNET_META_DESCRIPTION_LENGTH_SHORT)
$magnet->metaDescription
)
) : false,
'approved' => (bool) $magnet->approved,
@ -306,7 +306,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
<?php } ?>
</div>
<?php if ($magnet->metaDescription) { ?>
<div class="margin-y-8 max-height-220 max-height-parent-hover-840"><?php echo $magnet->metaDescription ?></div>
<div class="margin-y-8"><?php echo $magnet->metaDescription ?></div>
<?php } ?>
<?php if ($magnet->keywords) { ?>
<div class="margin-y-8">