$html .= sprintf(' <small class="date">%s</small>', showdate($dateparts));
if ($class == 'gallery' and $article->img) {
$html = "<div>$html</div>";
$html .= sprintf(' <small class="date">%s</small>', showdate($dateparts));
if ($class == 'gallery' and $article->img) {
$html = "<div>$html</div>";