Top and bottom bar added

On the model of sidebar, reuse code to generate either top, bottom or
sidebar.
Compatible with previous template using sidebar.