static function originalImage($config, $item) { $images = json_decode($item['images']); $IMG_SOURCE = ''; if ($config['thumb_image_type'] == 'full' && (isset($images) && $images->image_fulltext != '')) { $IMG_SOURCE = $images->image_fulltext; } elseif ($config['thumb_image_type'] == 'intro' && (isset($images) && $images->image_intro != '')) { $IMG_SOURCE = $images->image_intro; } else { // set image to first in article content $IMG_SOURCE = NSP_GK5_com_content_View::getImageFromText($item['text']); } return $IMG_SOURCE; }