diff --git a/components/com_search/views/search/tmpl/default_results.php b/components/com_search/views/search/tmpl/default_results.php index 037f8e9fade16..c6ea58517193e 100644 --- a/components/com_search/views/search/tmpl/default_results.php +++ b/components/com_search/views/search/tmpl/default_results.php @@ -11,7 +11,24 @@ ?>
-results as $result) : ?> +results as $result) : + +/** + * display images in search results + */ +if (isset($result->image) ) +{ +$image = json_decode($result->image); +$result->picture = $image->image_intro; +} +if (isset($result->picture) && $result->picture != '') +{ +?> +
+ +
pagination->limitstart + $result->count . '. '; ?> href) : ?>