/** * Return video short URL * * Return a short URL for the YouTube video * * @since 2.0 * * @uses vye_generate_shorturl_code Display an error * * @param string $id YouTube video ID * @return string Download URL */ function youtube_short_url($id) { return vye_generate_shorturl_code($id); }
/** * Short URL shortcode * * Generate a short URL for a YouTube video * * @since 2.0 * * @uses vye_generate_shorturl_code Generate the code * * @param string $paras Shortcode parameters * @param string $content Shortcode content * @return string YouTube short URL code */ function vye_shorturl_sc($paras = '', $content = '') { extract(shortcode_atts(array('id' => ''), $paras)); return do_shortcode(vye_generate_shorturl_code($id)); }