reformat code RTMediaTemplate
fix gallery shortcode