var $allowed_domains = array();
"//instagram.com/"
if ($source['host'] != "youtube.com" AND $source['host'] != "youtu.be" AND $source['host'] != "vimeo.com" AND $source['host'] != "video.mail.ru" AND $source['host'] != "smotri.com" AND $source['host'] != "gametrailers.com") return "[media=".$url."]";
if ($source['host'] != "youtube.com" AND $source['host'] != "youtu.be" AND $source['host'] != "vimeo.com" AND $source['host'] != "video.mail.ru" AND $source['host'] != "smotri.com" AND $source['host'] != "gametrailers.com" AND $source['host'] != "instagram.com") return "[media=".$url."]";
} elseif ($source['host'] == "video.mail.ru") {
elseif ($source['host'] == "instagram.com") { $video_link = substr($source['path'], 2); $video_link = str_replace( "/", "", $video_link ); $depre_url = "http://instagram.com/p/".$video_link."/"; return '<!--dle_media_begin:'.$depre_url.'--><iframe width="640px" height="720px" src="http://instagram.com/p/'.$video_link.'/embed" frameborder="0" allowfullscreen="allowfullscreen"></iframe><!--dle_media_end-->'; }
[media=http://instagram.com/p/MjYxxJs32C/]
[media=http://instagram.com/p/MjYxxJs32C/?modal=true]
сработает и фотография будет отображаться.
Перед публикацией, советую ознакомится с правилами!