Template function and shortcode added