Reduce code duplication for generation of list view.

* inc/bb/calendar.php (Calendar::displayMonthAsList): create map between
field names and anonymous functions to generate table/list text in order
to reduce duplication.
style: keep lines under 80 characters.

* theme/contentfooter.php: only aesthetic changes to keep lines under 80 characters.