function printDateSubtitle($showResult) { ?> <p class='show-subtitle'> <?php echo getThumbnailDateFormat($showResult["StartDate"]); echo " - "; echo getThumbnailDateFormat($showResult["EndDate"]); echo ", "; echo $showResult["StartDate"]->format("Y"); ?> <p> <?php }
function printDateSubtitle($showResult) { ?> <p class='show-subtitle'> <?php echo getThumbnailDateFormat($showResult["StartDate"]); if ($showResult["StartDate"] != $showResult["EndDate"]) { echo " - "; echo getThumbnailDateFormat($showResult["EndDate"]); } ?> </p> <?php }