Class-based shortcode template