-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first import
- Loading branch information
0 parents
commit f3ec66a
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Site | ||
* @subpackage com_search | ||
* | ||
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
|
||
defined('_JEXEC') or die; | ||
?> | ||
<?php | ||
$searchword= base64_encode(htmlspecialchars($_POST["searchword"])); | ||
?> | ||
|
||
|
||
|
||
<dl class="search-results<?php echo $this->pageclass_sfx; ?>"> | ||
<?php foreach($this->results as $result) : ?> | ||
<dt class="result-title"> | ||
<?php echo $this->pagination->limitstart + $result->count.'. ';?> | ||
<?php if ($result->href) :?> | ||
<a href="<?php echo JRoute::_($result->href); ?>?highlight=<?php echo $searchword ?>"<?php if ($result->browsernav == 1) :?> target="_blank"<?php endif;?>> | ||
<?php // $result->title should not be escaped in this case, as it may ?> | ||
<?php // contain span HTML tags wrapping the searched terms, if present ?> | ||
<?php // in the title. ?> | ||
<?php echo $result->title; ?> | ||
</a> | ||
<?php else:?> | ||
<?php // see above comment: do not escape $result->title ?> | ||
<?php echo $result->title; ?> | ||
<?php endif; ?> | ||
</dt> | ||
<?php if ($result->section) : ?> | ||
<dd class="result-category"> | ||
<span class="small<?php echo $this->pageclass_sfx; ?>"> | ||
(<?php echo $this->escape($result->section); ?>) | ||
</span> | ||
</dd> | ||
<?php endif; ?> | ||
<dd class="result-text"> | ||
<?php echo $result->text; ?> | ||
</dd> | ||
<?php | ||
if ($this->params->get('show_date')) : ?> | ||
<dd class="result-created<?php echo $this->pageclass_sfx; ?>"><small> | ||
<?php echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $result->created); ?> | ||
</small> | ||
</dd> | ||
<?php endif; ?> | ||
<?php endforeach; ?> | ||
</dl> | ||
|
||
<div class="pagination"> | ||
<?php echo $this->pagination->getPagesLinks(); ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
21-11-2020 Tazzios | ||
|
||
|
||
version: | ||
Jdownloads 3.9.7 | ||
|
||
Install | ||
Place the file from the 'TEMPLATE' folder in your active template. | ||
|
||
How to use | ||
If you use the buildin search fron jdownloads the search terms will be highlighted on the target page. | ||
Just like the Joomla smart search. | ||
|
||
|
||
|
||
|