Beispiel #1
0
			(<?php 
    echo $this->escape($categories[0]);
    ?>
)
		</span>
	</dd>
<?php 
}
?>
<dd class="result-text">
	<?php 
if (isset($this->highlight['introtext'])) {
    echo ElasticSearchHelper::truncateHighLight($this->highlight['introtext'], 200);
} else {
    if (isset($this->highlight['fulltext'])) {
        echo ElasticSearchHelper::truncateHighLight($this->highlight['fulltext'], 500);
    } else {
        $text = SearchHelper::prepareSearchContent($this->data['introtext'], "");
        echo JHtmlString::truncate($text, 500, true, false);
    }
}
?>
</dd>
<?php 
if (isset($this->data['created_at'])) {
    ?>
	<dd class="result-created">
	<?php 
    $date = new DateTime($this->data['created_at']);
    echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $date->format('Y-m-d H:i:s'));
    ?>
Beispiel #2
0
<?php 
if ($categories) {
    ?>
	<dd class="result-category">
		<span class="small">
			(<?php 
    echo $this->escape($categories[0]);
    ?>
)
		</span>
	</dd>
<?php 
}
?>
<dd class="result-text">
	<?php 
if (isset($this->highlight['description'])) {
    echo ElasticSearchHelper::truncateHighLight($this->highlight['description'], 200);
} else {
    if (isset($this->highlight['description'])) {
        echo ElasticSearchHelper::truncateHighLight($this->highlight['description'], 500);
    } else {
        $text = SearchHelper::prepareSearchContent($this->data['description'], "");
        echo JHtmlString::truncate($text, 500, true, false);
    }
}
?>
</dd>

</div>