';
foreach ($rows as $rowImages) {
$html .= '
';
foreach ($rowImages as $image) {
$parts = explode('.', $image);
$extension = array_pop($parts);
if(in_array($extension, ['png', 'jpg', 'jpeg', 'gif'])) {
$html .= ' | ';
} else {
$parts = explode('/', $image);
$extension = array_pop($parts);
$html .= ''.$extension.' | ';
}
}
$html .= '
';
}
$html .= '';
return $html;
}
}