function tie_shortcode_lightbox($atts, $content = null) { $full = $title = ''; if (is_array($atts)) { extract($atts); } $full = tie_get_video_embed($full); $out = '<a class="lightbox-enabled" href="' . $full . '" data-caption="' . $title . '" title="' . $title . '">' . do_shortcode($content) . '</a>'; return $out; }
function tie_video_embed() { global $post; $get_meta = get_post_custom($post->ID); if (!empty($get_meta["tie_video_url"][0])) { $video_output = tie_get_video_embed($get_meta["tie_video_url"][0]); } if (!empty($video_output)) { return $video_output; } else { false; } }