Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions com.woltlab.wcf/templates/accountManagement.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{if $success|isset && $success|count > 0}
<woltlab-core-notice type="success">
{foreach from=$success item=successMessage}
<p>{lang}{@$successMessage}{/lang}</p>
<p>{lang}{$successMessage}{/lang}</p>
{/foreach}
</woltlab-core-notice>
{/if}
Expand All @@ -30,7 +30,7 @@
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
{lang}wcf.user.password.error.{@$errorType}{/lang}
{lang}wcf.user.password.error.{$errorType}{/lang}
{/if}
</small>
{/if}
Expand Down Expand Up @@ -59,7 +59,7 @@
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
{lang}wcf.user.username.error.{@$errorType}{/lang}
{lang}wcf.user.username.error.{$errorType}{/lang}
{/if}
</small>
{/if}
Expand Down Expand Up @@ -87,7 +87,7 @@
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
{lang}wcf.user.password.error.{@$errorType}{/lang}
{lang}wcf.user.password.error.{$errorType}{/lang}
{/if}
</small>
{/if}
Expand Down Expand Up @@ -129,7 +129,7 @@
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
{lang}wcf.user.email.error.{@$errorType}{/lang}
{lang}wcf.user.email.error.{$errorType}{/lang}
{/if}
</small>
{/if}
Expand Down Expand Up @@ -182,9 +182,9 @@
{content}
{if $__authProvider}
<dl>
<dt>{lang}wcf.user.3rdparty.{@$__authProvider}{/lang}</dt>
<dt>{lang}wcf.user.3rdparty.{$__authProvider}{/lang}</dt>
<dd>
<label><input type="checkbox" name="{@$__authProvider}Disconnect" value="1"> {lang}wcf.user.3rdparty.{@$__authProvider}.disconnect{/lang}</label>
<label><input type="checkbox" name="{$__authProvider}Disconnect" value="1"> {lang}wcf.user.3rdparty.{$__authProvider}.disconnect{/lang}</label>
</dd>
</dl>
{elseif !$__wcf->getUser()->hasAdministrativeAccess()}
Expand Down
4 changes: 2 additions & 2 deletions com.woltlab.wcf/templates/accountSecurity.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</h3>

{if $enabledMultifactorMethods[$method->objectTypeID]|isset}
{@$method->getProcessor()->getStatusText($enabledMultifactorMethods[$method->objectTypeID])}
{unsafe:$method->getProcessor()->getStatusText($enabledMultifactorMethods[$method->objectTypeID])}
{else}
{lang}wcf.user.security.multifactor.{$method->objectType}.description{/lang}
{/if}
Expand Down Expand Up @@ -88,7 +88,7 @@

<dl class="plain inlineDataList small">
<dt>{lang}wcf.user.security.lastActivity{/lang}</dt>
<dd>{if $session->isCurrentSession()}{lang}wcf.user.security.currentSession{/lang}{else}{@$session->getLastActivityTime()|time}{/if}</dd>
<dd>{if $session->isCurrentSession()}{lang}wcf.user.security.currentSession{/lang}{else}{time time=$session->getLastActivityTime()}{/if}</dd>

<dt>{lang}wcf.user.security.ipAddress{/lang}</dt>
<dd title="{$session->getIpAddress()}">{$session->getIpAddress()->toBulletMasked(16, 48)}</dd>
Expand Down
2 changes: 1 addition & 1 deletion com.woltlab.wcf/templates/lostPassword.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{include file='authFlowHeader'}

{@$form->getHtml()}
{unsafe:$form->getHtml()}

{include file='authFlowFooter'}
8 changes: 4 additions & 4 deletions com.woltlab.wcf/templates/manageSubscription.tpl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div class="section">
<dl class="wide">
<dd>
<label><input type="radio" name="subscribe" value="1"{if $userObjectWatch} checked{/if}> {lang}wcf.user.objectWatch.subscribe.{@$objectType->objectType}{/lang}</label>
<label><input type="radio" name="subscribe" value="1"{if $userObjectWatch} checked{/if}> {lang}wcf.user.objectWatch.subscribe.{$objectType->objectType}{/lang}</label>

<small><label><input type="checkbox" name="enableNotification" value="1"{if $userObjectWatch && $userObjectWatch->notification} checked{/if}> {lang}wcf.user.objectWatch.enableNotification.{@$objectType->objectType}{/lang}</label></small>
<small><label><input type="checkbox" name="enableNotification" value="1"{if $userObjectWatch && $userObjectWatch->notification} checked{/if}> {lang}wcf.user.objectWatch.enableNotification.{$objectType->objectType}{/lang}</label></small>
</dd>
</dl>
<dl class="wide">
<dd>
<label><input type="radio" name="subscribe" value="0"{if !$userObjectWatch} checked{/if}> {lang}wcf.user.objectWatch.unsubscribe.{@$objectType->objectType}{/lang}</label>
<label><input type="radio" name="subscribe" value="0"{if !$userObjectWatch} checked{/if}> {lang}wcf.user.objectWatch.unsubscribe.{$objectType->objectType}{/lang}</label>
</dd>
</dl>

Expand All @@ -17,4 +17,4 @@

<div class="formSubmit">
<button type="button" class="button jsButtonSave buttonPrimary">{lang}wcf.global.button.save{/lang}</button>
</div>
</div>
6 changes: 3 additions & 3 deletions com.woltlab.wcf/templates/newPassword.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

<woltlab-core-notice type="info">{lang}wcf.user.newPassword.info{/lang}</woltlab-core-notice>

{@$form->getHtml()}
{unsafe:$form->getHtml()}

<script data-relocate="true">
require(['WoltLabSuite/Core/Ui/User/PasswordStrength', 'Language'], (PasswordStrength, Language) => {
{include file='shared_passwordStrengthLanguage'}
new PasswordStrength(document.getElementById('newPassword'), {
staticDictionary: [
'{$user->username|encodeJS}',
'{$user->email|encodeJS}',
'{unsafe:$user->username|encodeJS}',
'{unsafe:$user->email|encodeJS}',
]
});
})
Expand Down
10 changes: 6 additions & 4 deletions com.woltlab.wcf/templates/notificationList.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
{/capture}

{capture assign='contentInteractionPagination'}
{pages print=true assign=pagesLinks controller='NotificationList' link="pageNo=%d"}
{if $pages > 1}
<woltlab-core-pagination page="{$pageNo}" count="{$pages}" url="{link controller='NotificationList'}{/link}"></woltlab-core-pagination>
{/if}
{/capture}

{capture assign='contentInteractionButtons'}
Expand Down Expand Up @@ -84,11 +86,11 @@
</section>

<footer class="contentFooter">
{hascontent}
{if $pages > 1}
<div class="paginationBottom">
{content}{unsafe:$pagesLinks}{/content}
<woltlab-core-pagination page="{$pageNo}" count="{$pages}" url="{link controller='NotificationList'}{/link}"></woltlab-core-pagination>
</div>
{/hascontent}
{/if}

{hascontent}
<nav class="contentFooterNavigation">
Expand Down
8 changes: 4 additions & 4 deletions com.woltlab.wcf/templates/notificationSettings.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
{foreach from=$eventList item=event}
<div class="notificationSettingsItem">
<div class="notificationSettingsEvent">
<label for="settings_{@$event->eventID}">{lang}wcf.user.notification.{$event->objectType}.{$event->eventName}{/lang}</label>
<label for="settings_{$event->eventID}">{lang}wcf.user.notification.{$event->objectType}.{$event->eventName}{/lang}</label>
</div>
<div class="notificationSettingsState">
<label>
<input type="checkbox" id="settings_{@$event->eventID}" name="settings[{@$event->eventID}][enabled]" class="jsCheckboxNotificationSettingsState" value="1" data-object-id="{@$event->eventID}"{if !$settings[$event->eventID][enabled]|empty} checked{/if}>
<input type="checkbox" id="settings_{$event->eventID}" name="settings[{$event->eventID}][enabled]" class="jsCheckboxNotificationSettingsState" value="1" data-object-id="{$event->eventID}"{if !$settings[$event->eventID][enabled]|empty} checked{/if}>
{icon size=24 name='bell' type='solid'}
{icon size=24 name='bell-slash'}
</label>
</div>
<div class="notificationSettingsEmail">
{if $event->supportsEmailNotification()}
<input type="hidden" id="settings_{$event->eventID}_mailNotificationType" name="settings[{@$event->eventID}][mailNotificationType]" value="{$settings[$event->eventID][mailNotificationType]}">
<button type="button" class="notificationSettingsEmailType jsTooltip{if $settings[$event->eventID][enabled]|empty} disabled{/if}" title="{lang}wcf.user.notification.mailNotificationType.{@$settings[$event->eventID][mailNotificationType]}{/lang}" data-object-id="{@$event->eventID}">
<input type="hidden" id="settings_{$event->eventID}_mailNotificationType" name="settings[{$event->eventID}][mailNotificationType]" value="{$settings[$event->eventID][mailNotificationType]}">
<button type="button" class="notificationSettingsEmailType jsTooltip{if $settings[$event->eventID][enabled]|empty} disabled{/if}" title="{lang}wcf.user.notification.mailNotificationType.{$settings[$event->eventID][mailNotificationType]}{/lang}" data-object-id="{$event->eventID}">
<span class="jsIconNotificationSettingsEmailType">
{if $settings[$event->eventID][mailNotificationType] === 'none'}
{icon size=24 name='xmark'}
Expand Down
31 changes: 17 additions & 14 deletions com.woltlab.wcf/templates/paidSubscriptionList.tpl
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{capture assign='headContent'}
{if PAID_SUBSCRIPTION_ENABLE_TOS_CONFIRMATION}
<script data-relocate="true">
$(function() {
$('#tosConfirmed').change(function () {
if ($('#tosConfirmed').is(':checked')) {
$('.paidSubscriptionList button').enable();
{
const tosCheckbox = document.getElementById('tosConfirmed');
const buttons = document.querySelectorAll('.paidSubscriptionList button');
if (tosCheckbox) {
function toggleButtons () {
buttons.forEach(function(button) {
button.disabled = !tosCheckbox.checked;
});
}
else {
$('.paidSubscriptionList button').disable();
}
});
$('#tosConfirmed').change();
});
tosCheckbox.addEventListener('change', toggleButtons);
toggleButtons();
}
}
</script>

<noscript>
Expand Down Expand Up @@ -42,13 +45,13 @@
<li>
<div class="containerHeadline">
<h3>{$subscription->getTitle()} <span class="badge label">{lang}wcf.paidSubscription.formattedCost{/lang}</span></h3>
<div class="htmlContent">{@$subscription->getFormattedDescription()}</div>
<div class="htmlContent">{unsafe:$subscription->getFormattedDescription()}</div>
</div>

<div class="containerContent">
<ul class="buttonList">
{foreach from=$subscription->getPurchaseButtons() item=button}
<li>{@$button}</li>
<li>{unsafe:$button}</li>
{/foreach}
</ul>
</div>
Expand All @@ -67,14 +70,14 @@
<li>
<div class="containerHeadline">
<h3>{$userSubscription->getSubscription()->getTitle()}</h3>
<div class="htmlContent">{@$userSubscription->getSubscription()->getFormattedDescription()}</div>
<div class="htmlContent">{unsafe:$userSubscription->getSubscription()->getFormattedDescription()}</div>
</div>

{if $userSubscription->endDate}
<div class="containerContent">
<dl class="plain inlineDataList">
<dt>{lang}wcf.paidSubscription.expires{/lang}</dt>
<dd>{@$userSubscription->endDate|time}</dd>
<dd>{time time=$userSubscription->endDate}</dd>
</dl>
</div>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion com.woltlab.wcf/templates/reauthentication.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

<woltlab-core-notice type="info">{lang}wcf.user.reauthentication.explanation{/lang}</woltlab-core-notice>

{@$form->getHtml()}
{unsafe:$form->getHtml()}

{include file='authFlowFooter'}
42 changes: 21 additions & 21 deletions com.woltlab.wcf/templates/register.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
<div class="section">
<dl{if $errorType[username]|isset} class="formError"{/if}>
<dt>
<label for="{@$randomFieldNames[username]}">{lang}wcf.user.username{/lang}</label> <span class="formFieldRequired">*</span>
<label for="{$randomFieldNames[username]}">{lang}wcf.user.username{/lang}</label> <span class="formFieldRequired">*</span>
</dt>
<dd>
<input
type="text"
id="{@$randomFieldNames[username]}"
name="{@$randomFieldNames[username]}"
id="{$randomFieldNames[username]}"
name="{$randomFieldNames[username]}"
value="{$username}"
required
class="long"
Expand All @@ -67,13 +67,13 @@

<dl{if $errorType[email]|isset} class="formError"{/if}>
<dt>
<label for="{@$randomFieldNames[email]}">{lang}wcf.user.email{/lang}</label> <span class="formFieldRequired">*</span>
<label for="{$randomFieldNames[email]}">{lang}wcf.user.email{/lang}</label> <span class="formFieldRequired">*</span>
</dt>
<dd>
<input
type="email"
id="{@$randomFieldNames[email]}"
name="{@$randomFieldNames[email]}"
id="{$randomFieldNames[email]}"
name="{$randomFieldNames[email]}"
value="{$email}"
required
class="long"
Expand All @@ -95,13 +95,13 @@
{if !$isExternalAuthentication}
<dl{if $errorType[password]|isset} class="formError"{/if}>
<dt>
<label for="{@$randomFieldNames[password]}">{lang}wcf.user.password{/lang}</label> <span class="formFieldRequired">*</span>
<label for="{$randomFieldNames[password]}">{lang}wcf.user.password{/lang}</label> <span class="formFieldRequired">*</span>
</dt>
<dd>
<input
type="password"
id="{@$randomFieldNames[password]}"
name="{@$randomFieldNames[password]}"
id="{$randomFieldNames[password]}"
name="{$randomFieldNames[password]}"
value="{$password}"
required
class="long"
Expand Down Expand Up @@ -130,14 +130,14 @@
require(['WoltLabSuite/Core/Language/Chooser'], ({ init }) => {
const languages = {
{implode from=$availableLanguages item=language}
'{@$language->languageID}': {
iconPath: '{@$language->getIconPath()|encodeJS}',
languageName: '{@$language|encodeJS}'
'{$language->languageID}': {
iconPath: '{unsafe:$language->getIconPath()|encodeJS}',
languageName: '{unsafe:$language|encodeJS}'
}
{/implode}
};

init('languageIDContainer', 'languageID', {@$languageID}, languages);
init('languageIDContainer', 'languageID', {$languageID}, languages);
});
</script>
<noscript>
Expand Down Expand Up @@ -214,22 +214,22 @@
{jsphrase name='wcf.user.email.error.notUnique'}

setup(
document.getElementById('{@$randomFieldNames[username]}'),
document.getElementById('{@$randomFieldNames[email]}'),
document.getElementById('{@$randomFieldNames[password]}'),
document.getElementById('{unsafe:$randomFieldNames[username]|encodeJS}'),
document.getElementById('{unsafe:$randomFieldNames[email]|encodeJS}'),
document.getElementById('{unsafe:$randomFieldNames[password]|encodeJS}'),
{
minlength: {@REGISTER_USERNAME_MIN_LENGTH},
maxlength: {@REGISTER_USERNAME_MAX_LENGTH}
minlength: {REGISTER_USERNAME_MIN_LENGTH},
maxlength: {REGISTER_USERNAME_MAX_LENGTH}
}
);
});
require(['WoltLabSuite/Core/Ui/User/PasswordStrength', 'Language'], (PasswordStrength, Language) => {
{include file='shared_passwordStrengthLanguage'}

new PasswordStrength(document.getElementById('{@$randomFieldNames[password]}'), {
new PasswordStrength(document.getElementById('{unsafe:$randomFieldNames[password]|encodeJS}'), {
relatedInputs: [
document.getElementById('{@$randomFieldNames[username]}'),
document.getElementById('{@$randomFieldNames[email]}')
document.getElementById('{unsafe:$randomFieldNames[username]|encodeJS}'),
document.getElementById('{unsafe:$randomFieldNames[email]|encodeJS}')
]
});
});
Expand Down
2 changes: 1 addition & 1 deletion com.woltlab.wcf/templates/registerActivation.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<woltlab-core-notice type="info">{lang}wcf.user.registerActivation.info{/lang}</woltlab-core-notice>
{/if}

{@$form->getHtml()}
{unsafe:$form->getHtml()}

{include file='authFlowFooter'}
2 changes: 1 addition & 1 deletion com.woltlab.wcf/templates/registerNewActivationCode.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{include file='authFlowHeader'}

{@$form->getHtml()}
{unsafe:$form->getHtml()}

{include file='authFlowFooter'}
Loading