Ejemplo n.º 1
0
 /**
  * Lists fields that have highlighting applied on the found text.
  */
 public final function onJSolrSearchHLAdd()
 {
     $hl = array();
     foreach ($this->highlighting as $higlighting) {
         if ($higlighting) {
             $hl[] = \JSolr\Helper::localize($higlighting);
         }
     }
     return $hl;
 }
Ejemplo n.º 2
0
defined('_JEXEC') or die('Restricted access');
?>
<article class="jsolrsearch-result">
	<header>
		<h4>
			<a href="<?php 
echo $this->item->link;
?>
"><?php 
echo \JSolr\Helper::highlight($this->item->key, 'title', $this->item->title);
?>
</a>
		</h4>
	</header>
	<p><?php 
echo \JSolr\Helper::highlight($this->item->key, \JSolr\Helper::localize('body_*'));
?>
</p>
	<footer>
		<dl>
			<?php 
if ($this->item->created) {
    ?>
			<dt><?php 
    echo JText::_("COM_JSOLRSEARCH_RESULT_CREATED_LABEL");
    ?>
</dt>
			<dd>
				<time datetime="<?php 
    echo JFactory::getDate($this->item->created)->toISO8601();
    ?>