e107_plugins/social/ie7/ie7.js
/* To avoid CSS expressions while still supporting IE 7 and IE 6, use this script */
/* The script tag referencing this file must be placed before the ending body tag. */
/* Use conditional comments in order to target IE 7 and older:
<!--[if lt IE 8]><!-->
<script src="ie7/ie7.js"></script>
<!--<![endif]-->
*/
(function() {
function addIcon(el, entity) {
var html = el.innerHTML;
el.innerHTML = '<span style="font-family: \'social\'">' + entity + '</span>' + html;
}
var icons = {
'e-social-map': '',
'e-social-sms': '',
'e-social-facebook-square': '',
'e-social-github-square': '',
'e-social-phone': '',
'e-social-phone-square': '',
'e-social-facebook': '',
'e-social-github': '',
'e-social-mobile': '',
'e-social-tumblr': '',
'e-social-reddit': '',
'e-social-twitch': '',
'e-social-whatsapp': '',
'e-social-map-o': '',
'e-social-meetup': '',
'e-social-steam': '',
'e-social-vimeo': '',
'e-social-skype': '',
'e-social-wordpress': '',
'e-social-yelp': '',
'e-social-dropbox': '',
'e-social-vk': '',
'e-social-gplus': '',
'e-social-google': '',
'e-social-apple': '',
'e-social-digg': '',
'e-social-stumbleupon': '',
'e-social-flickr': '',
'e-social-reddit-alien': '',
'e-social-youtube-play': '',
'e-social-youtube': '',
'e-social-pocketpocket': '',
'e-social-rss': '',
'e-social-pinterest': '',
'e-social-instagram': '',
'e-social-linkedin': '',
'e-social-export': '',
'e-social-share': '',
'e-social-foursquare': '',
'e-social-thumbs-up': '',
'e-social-thumbs-up-solid': '',
'e-social-mail': '',
'e-social-mail-alt': '',
'e-social-discord': '',
'e-social-instapaper': '',
'e-social-twitter': '',
'e-social-squarespace': '',
'e-social-tiktok': '',
'e-social-pushpin': '',
'e-social-vine': '',
'e-social-dribbble': '',
'e-social-blogger': '',
'e-social-android': '',
'e-social-linkedin-rect': '',
'e-social-delicious': '',
'e-social-flattr': '',
'0': 0
},
els = document.getElementsByTagName('*'),
i, c, el;
for (i = 0; ; i += 1) {
el = els[i];
if(!el) {
break;
}
c = el.className;
c = c.match(/e-social-[^\s'"]+/);
if (c && icons[c[0]]) {
addIcon(el, icons[c[0]]);
}
}
}());