if intro image exist

if intro image exist

images); // set deafult values $itemimage = $params->get('defaultimg'); $alt = htmlspecialchars($item->title); // conditions to override defaults if( !empty($images->image_intro) ) { $itemimage = htmlspecialchars($images->image_intro); if( !empty($images->image_intro_alt) ) { $alt = htmlspecialchars($images->image_intro_alt); } }else if( !empty($images->image_fulltext) ) { $itemimage = htmlspecialchars($images->image_fulltext); if( !empty($images->image_intro_alt) ) { $alt = htmlspecialchars($images->image_fulltext_alt); } } ?> image_intro) || !empty($images->image_fulltext) || !is_null($params->get('defaultimg')) ) { ?>

  • <?php echo $alt; ?>