Suggestion to add profile blog image when it have one

If a member is using a BlogImage, it will be use instead of the Gravatar image.
This commit is contained in:
Stéphane Guevremont 2016-10-20 10:08:44 -04:00 committed by GitHub
parent 09db00a783
commit 8e3e4d4f23

View File

@ -8,7 +8,9 @@
<span class="date">$Created.Nice ($Created.Ago)</span> <span class="date">$Created.Nice ($Created.Ago)</span>
</p> </p>
<% end_if %> <% end_if %>
<% if $Gravatar %> <% if $Author.BlogProfileImage && $Gravatar %>
<img class="gravatar" src="$Author.BlogProfileImage.URL" alt="Gravatar for $Author.Name.ATT" title="Gravatar for $Author.Name.ATT" />
<% else_if $Gravatar %>
<img class="gravatar" src="$Gravatar.ATT" alt="Gravatar for $Name.ATT" title="Gravatar for $Name.ATT" /> <img class="gravatar" src="$Gravatar.ATT" alt="Gravatar for $Name.ATT" title="Gravatar for $Name.ATT" />
<% end_if %> <% end_if %>
<div class="comment-text<% if $Gravatar %> hasGravatar<% end_if %>" id="<% if $isPreview %>comment-preview<% else %>$Permalink<% end_if %>"> <div class="comment-text<% if $Gravatar %> hasGravatar<% end_if %>" id="<% if $isPreview %>comment-preview<% else %>$Permalink<% end_if %>">