Ordering in front page written with some parameters. Also picks a sub-template to display content depending on whether there is an event the next day or not.