-{include file='documentHeader'}
-
-<head>
- <title>{lang}wcf.user.avatar.edit{/lang} - {lang}wcf.user.usercp{/lang} - {PAGE_TITLE|language}</title>
-
- {include file='headInclude'}
-</head>
-
-<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
-
{include file='userMenuSidebar'}
{include file='header'}
-<header class="contentHeader">
- <h1 class="contentTitle">{lang}wcf.user.avatar.edit{/lang}</h1>
-</header>
-
-{include file='userNotice'}
-
{if $__wcf->user->disableAvatar}
<p class="error">{lang}wcf.user.avatar.error.disabled{/lang}</p>
{/if}
<p class="success">{lang}wcf.global.success.edit{/lang}</p>
{/if}
-<div class="contentNavigation">
- {hascontent}
- <nav>
- <ul>
- {content}
- {event name='contentNavigationButtons'}
- {/content}
- </ul>
- </nav>
- {/hascontent}
-</div>
-
<form method="post" action="{link controller='AvatarEdit'}{/link}" id="avatarForm">
- <section class="section">
- <h2 class="sectionTitle">{lang}wcf.user.avatar{/lang}</h2>
-
- <dl>
+ <div class="section avatarEdit">
+ <dl class="avatarType">
<dt></dt>
<dd>
<label><input type="radio" name="avatarType" value="none" {if $avatarType == 'none'}checked="checked" {/if}/> {lang}wcf.user.avatar.type.none{/lang}</label>
</dl>
{if $__wcf->getSession()->getPermission('user.profile.avatar.canUploadAvatar')}
- <dl class="jsOnly{if $errorField == 'custom'} formError{/if}" id="avatarUpload">
+ <dl class="avatarType jsOnly{if $errorField == 'custom'} formError{/if}" id="avatarUpload">
<dt>
{if $avatarType == 'custom'}
{if $__wcf->getUserProfileHandler()->getAvatar()->canCrop()}
{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(96)}
{/if}
{else}
- <img src="{@$__wcf->getPath()}images/avatars/avatar-default.svg" alt="" class="userAvatarImage icon96" />
+ <img src="{@$__wcf->getPath()}images/avatars/avatar-default.svg" alt="" class="userAvatarImage" style="width: 96px; height: 96px" />
{/if}
</dt>
<dd>
<small>{lang}wcf.user.avatar.type.custom.description{/lang}</small>
{* placeholder for upload button: *}
- <div></div>
+ <div class="avatarUploadButtonContainer"></div>
{if $errorField == 'custom'}
<small class="innerError">
{/if}
{if MODULE_GRAVATAR}
- <dl{if $errorField == 'gravatar'} class="formError"{/if}>
+ <dl class="avatarType{if $errorField == 'gravatar'} formError{/if}">
<dt><img src="https://secure.gravatar.com/avatar/{@$__wcf->user->email|strtolower|md5}?s=96{if GRAVATAR_DEFAULT_TYPE != '404'}&d={@GRAVATAR_DEFAULT_TYPE}{/if}" alt="" class="userAvatarImage icon96" /></dt>
<dd>
<label><input type="radio" name="avatarType" value="gravatar" {if $avatarType == 'gravatar'}checked="checked" {/if}/> {lang}wcf.user.avatar.type.gravatar{/lang}</label>
{/if}
{event name='avatarFields'}
- </section>
+ </div>
{event name='sections'}
{/if}
</form>
-{include file='footer'}
-
{if $__wcf->getSession()->getPermission('user.profile.avatar.canUploadAvatar')}
<script data-relocate="true">
//<![CDATA[
</script>
{/if}
-</body>
-</html>
+{include file='footer'}