Corrected Javascript for dateFormat and corrected save function for datetime fields in CPTs
Updated shortcode for events custom post type

Changed the shortcode to include 3 optional attributes to define number of posts,
type of listing to be displayed and whether the links should be displayed
Created a separate method to render the links
Created a switch statement in the render_programme method to be able to cope with
different rendering options
Created a separate method to render the dates (so it can be used in future
render methods)