mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
highlight url
This commit is contained in:
parent
458f36444c
commit
ca016f2646
1 changed files with 9 additions and 1 deletions
|
|
@ -481,7 +481,15 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu
|
|||
</div>
|
||||
<?php } ?>
|
||||
<div>
|
||||
<a href="<?php echo $result->url ?>"><?php echo htmlentities(urldecode($result->url)) ?></a>
|
||||
<?php if (!empty($result->getHighlight()['url'])) { ?>
|
||||
<?php foreach ($result->getHighlight()['url'] as $url) { ?>
|
||||
<p>
|
||||
<a href="<?php echo $result->url ?>"><?php echo urldecode($url) ?></a>
|
||||
</p>
|
||||
<?php } ?>
|
||||
<?php } else if (!empty($result->title)) { ?>
|
||||
<a href="<?php echo $result->url ?>"><?php echo htmlentities(urldecode($result->url)) ?></a>
|
||||
<?php } ?>
|
||||
<?php if (!in_array($result->get('code'), [0, 200])) { ?>
|
||||
<small>•</small>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" class="text-warning" viewBox="0 0 16 16">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue