Commit 64c39438 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[TASK] Add userprofile templates to t3omy

parent 70a7c473
Pipeline #3156 passed with stages
in 4 minutes and 17 seconds
......@@ -46,7 +46,7 @@ class MyProfile extends FrontendUser
/**
* @return string
*/
public function getTwitter(): string
public function getTwitter(): string
{
return $this->twitter;
}
......
plugin.tx_userprofile {
view {
templateRootPaths {
20 = EXT:t3omy/Resources/Private/Templates/UserProfile/
}
}
settings {
privacy {
_default {
......
<section class="container">
<h1>Edit my profile {user.name}</h1>
<ul>
<li>Name: {user.firstName} {user.lastName}</li>
<li>Email: {user.email}</li>
<li>About me: {user.aboutMe}</li>
</ul>
</section>
<section class="container">
<h1>Our community</h1>
<f:debug>{frontendUsers}</f:debug>
<table>
<f:for each="{frontendUsers}" as="frontendUser">
<f:if condition="{frontendUser.publicProfile}">
<tr>
<td><f:link.action controller="UserProfile" action="show" arguments="{user:frontendUser}">{frontendUser.username}</f:link.action></td>
</tr>
</f:if>
</f:for>
</table>
</section>
{namespace userprofile=In2code\Userprofile\ViewHelpers}
<section class="container">
<h1>{user.name}</h1>
<ul>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'name', user:user)}">
<li>Name: {user.name}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'email', user:user)}">
<li>Email: {user.email}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'about_me', user:user)}">
<li>About me: {user.aboutMe}</li>
</f:if>
<f:if condition="{isOwnProfile}">
<f:render partial="ShowEdit" arguments="{_all}" />
</f:if>
</ul>
</section>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment