Unique link if only one plugin is selected at a time

If the user just wants to insert an image or a map, no need for two clicks, one should be better. I rearranged the code to show a direct link when only one plugin is selected (image or map).