I have the following code, which is a Facebook share icon.
<!-- Facebook -->
onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436');return false;">
<img alt="Share on Facebook" src="@Url.Content(Html.ThemePath(WorkContext.CurrentTheme, "/Content/Images/facebook24.png"))" />
Now I can put this into an HTML Widget, but then I am hard-coding the theme url. I do not have a problem with this.
I am wondering if there are any alternatives to how I am doing this. I really do not want to have to create a new module for something that is so easy to do with an HTML Widget.
Any additional ideas I have not considered?