mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-09 22:37:57 +00:00
add meta data description
This commit is contained in:
parent
b83ad6cc3a
commit
9ad03c8153
@ -328,10 +328,15 @@ if (filter_var($q, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $q)) {
|
||||
<?php $hostPageURL = $hostPage->scheme . '://' . $hostPage->name . ($hostPage->port ? ':' . $hostPage->port : false) . $hostPage->uri ?>
|
||||
<div>
|
||||
<?php if ($hostPageDescription = $db->getLastPageDescription($result->id)) { ?>
|
||||
<h2><?php echo $hostPageDescription->title ?></h2>
|
||||
<?php if (!empty($hostPageDescription->title)) { ?>
|
||||
<h2><?php echo $hostPageDescription->title ?></h2>
|
||||
<?php } ?>
|
||||
<?php if (!empty($hostPageDescription->description)) { ?>
|
||||
<span><?php echo $hostPageDescription->description ?></span>
|
||||
<?php } ?>
|
||||
<?php if (!empty($hostPageDescription->keywords)) { ?>
|
||||
<span><?php echo $hostPageDescription->keywords ?></span>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<a href="<?php echo $hostPageURL ?>">
|
||||
<img src="<?php echo WEBSITE_DOMAIN; ?>/image.php?q=<?php echo urlencode($hostPage->name) ?>" alt="favicon" width="16" height="16" class="icon" />
|
||||
|
Loading…
Reference in New Issue
Block a user