Skip to content

Commit

Permalink
Import
Browse files Browse the repository at this point in the history
first import
  • Loading branch information
Tazzios committed Mar 8, 2021
0 parents commit f3ec66a
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
58 changes: 58 additions & 0 deletions TEMPLATE/html/com_jdownloads/search/default_results.php
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>
17 changes: 17 additions & 0 deletions readme.md
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.




0 comments on commit f3ec66a

Please sign in to comment.