public static function media($atts = null, $content = null) { // Check YouTube video if (strpos($atts['url'], 'youtu') !== false) { return Su_Shortcodes::youtube($atts); } elseif (strpos($atts['url'], 'vimeo') !== false) { return Su_Shortcodes::vimeo($atts); } else { return '<img src="' . $atts['url'] . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" style="max-width:100%" />'; } }