mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
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:
parent
09db00a783
commit
8e3e4d4f23
@ -8,7 +8,9 @@
|
||||
<span class="date">$Created.Nice ($Created.Ago)</span>
|
||||
</p>
|
||||
<% 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" />
|
||||
<% end_if %>
|
||||
<div class="comment-text<% if $Gravatar %> hasGravatar<% end_if %>" id="<% if $isPreview %>comment-preview<% else %>$Permalink<% end_if %>">
|
||||
|
Loading…
Reference in New Issue
Block a user