mirror of
https://github.com/YGGverse/Yo.git
synced 2025-02-05 11:24:20 +00:00
highlight url
This commit is contained in:
parent
458f36444c
commit
ca016f2646
@ -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…
x
Reference in New Issue
Block a user