Skip to content

Commit

Permalink
[TASK] Fix user image
Browse files Browse the repository at this point in the history
  • Loading branch information
o-ba committed Apr 11, 2024
1 parent 086dbd9 commit 6ae9d53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ lib.frontenduseravatar {
renderObj = TEXT
renderObj {
data = file:current:publicUrl
stdWrap.wrap = <img src="|" alt="">
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<div class="sidebar-inner">
<f:if condition="{frontendusername}">
<div class="user-info-container">
<div class="user-info-avatar">{frontenduseravatar -> f:format.raw()}</div>
<div class="user-info-avatar">
<img src="{frontenduseravatar -> f:format.raw()}" width="50" />
</div>
<div class="user-infos">{frontendusertitle -> f:format.raw()}
<div class="user-info-name">
{frontendusername -> f:format.raw()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<div class="profile__container">

<div class="profile__card">
<f:if condition="{user.image}">
<img alt="Image placeholder" class="profile__image"
src="https://static.vecteezy.com/system/resources/previews/009/749/643/non_2x/woman-profile-mascot-illustration-female-avatar-character-icon-cartoon-girl-head-face-business-user-logo-free-vector.jpg">
<f:variable name="frontenduseravatar" value="{f:cObject(typoscriptObjectPath: 'lib.frontenduseravatar')}" />
<f:if condition="{frontenduseravatar}">
<img src="{frontenduseravatar -> f:format.raw()}" alt="Image placeholder" class="profile__image" />
</f:if>
<f:if condition="{user.first_name} || {user.last_name}">
<h3 class="profile__name">{user.first_name} {user.last_name}</h3>
Expand Down

0 comments on commit 6ae9d53

Please sign in to comment.