mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
add long description field
This commit is contained in:
parent
e750dac85d
commit
c5eef6751d
8 changed files with 68 additions and 25 deletions
|
|
@ -147,9 +147,14 @@ 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,
|
||||
'description' => $magnet->description ? nl2br(
|
||||
htmlentities(
|
||||
$magnet->description
|
||||
)
|
||||
) : false,
|
||||
'approved' => (bool) $magnet->approved,
|
||||
'public' => (bool) $magnet->public,
|
||||
'sensitive' => (bool) $magnet->sensitive,
|
||||
|
|
@ -283,6 +288,9 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
|
|||
<?php if ($response->magnet->metaDescription) { ?>
|
||||
<div class="margin-y-8"><?php echo $response->magnet->metaDescription ?></div>
|
||||
<?php } ?>
|
||||
<?php if ($response->magnet->description) { ?>
|
||||
<div class="margin-y-8"><?php echo $response->magnet->description ?></div>
|
||||
<?php } ?>
|
||||
<?php if ($response->magnet->keywords) { ?>
|
||||
<div class="margin-y-8">
|
||||
<?php foreach ($response->magnet->keywords as $keyword) { ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue