<% function avatar() { const avatar = get_config_from_obj(widget, 'avatar'); const gravatar_email = get_config_from_obj(widget, 'gravatar'); if (gravatar_email !== null) { return gravatar(gravatar_email, 128); } if (avatar !== null) { return url_for(avatar) } return url_for('images/avatar.png'); } %>
<% if (widget.follow_link) { %> <% } %> <% const socialLinks = get_config_from_obj(widget, 'social_links'); %> <% if (socialLinks !== null) { %>
<% for (let name in socialLinks) { let link = socialLinks[name]; %> <% if (typeof(link) === 'string') { %> <%= name %> <% } else { %> <% } %> <% } %>
<% } %>