};
var callback = function(listItem) {
- var languageCode = elData(listItem, 'language-code');
- if (languageCode === '{$__wcf->getLanguage()->getFixedLanguageCode()}') {
- window.location.reload();
- return;
- }
-
- var alternateLink = elBySel('link[rel="alternate"][hreflang="' + languageCode + '"]');
- if (alternateLink) {
- // Check if the page does not have unique links per language, such as for the landing page.
- var currentLink = elBySel('link[rel="alternate"][hreflang="{$__wcf->getLanguage()->getFixedLanguageCode()}"]');
- if (!currentLink || currentLink.href !== alternateLink.href) {
- window.location = alternateLink.href;
- return;
- }
- }
-
Ajax.apiOnce({
data: {
actionName: 'devtoolsSetLanguage',
input.value = iconName;
};
- button.addEventListener('click', function(event) {
- event.preventDefault();
-
+ button.addEventListener('click', function() {
UiStyleFontAwesome.open(callback);
});
});
{include file='formError'}
{if $success|isset}
- <p class="success" role="status">{lang}wcf.global.success.{$action}{/lang}</p>
+ <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
{/if}
{if $action == 'edit'}
<p class="info jsArticleNoticeTrash"{if !$article->isDeleted} style="display: none;"{/if}>{lang}wcf.acp.article.trash.notice{/lang}</p>
- {if $lastVersion}<p class="info" role="status">{lang}wcf.acp.article.lastVersion{/lang}</p>{/if}
+ {if $lastVersion}<p class="info">{lang}wcf.acp.article.lastVersion{/lang}</p>{/if}
{/if}
<form class="articleAddForm" method="post" action="{if $action == 'add'}{link controller='ArticleAdd'}{/link}{else}{link controller='ArticleEdit' id=$articleID}{/link}{/if}">
{if !$isGuestGroup|isset}{assign var=isGuestGroup value=false}{/if}
+{if !$groupIsOwner|isset}{assign var=groupIsOwner value=false}{/if}
{foreach from=$options item=optionData}
{assign var=option value=$optionData[object]}
{if $errorType|is_array && $errorType[$option->optionName]|isset}
{assign var=error value=''}
{/if}
<dl class="{$option->optionName}Input{if $error} formError{/if}">
- <dt{if $optionData[cssClassName]} class="{$optionData[cssClassName]}"{/if}>{if $isSearchMode|empty || !$optionData[hideLabelInSearch]}<label for="{$option->optionName}">{if VISITOR_USE_TINY_BUILD && $isGuestGroup && $option->excludedInTinyBuild}<span class="icon icon16 fa-bolt red jsTooltip" title="{lang}wcf.acp.group.excludedInTinyBuild{/lang}"></span> {/if}{lang}{@$langPrefix}{$option->optionName}{/lang}</label>{/if}</dt>
+ <dt{if $optionData[cssClassName]} class="{$optionData[cssClassName]}"{/if}>
+ {if $isSearchMode|empty || !$optionData[hideLabelInSearch]}
+ <label for="{$option->optionName}">
+ {if VISITOR_USE_TINY_BUILD && $isGuestGroup && $option->excludedInTinyBuild}<span class="icon icon16 fa-bolt red jsTooltip" title="{lang}wcf.acp.group.excludedInTinyBuild{/lang}"></span> {/if}
+ {if $groupIsOwner && $option->optionName|in_array:$ownerGroupPermissions}<span class="icon icon16 fa-shield jsTooltip" title="{lang}wcf.acp.group.ownerGroupPermission{/lang}"></span> {/if}
+
+ {lang}{@$langPrefix}{$option->optionName}{/lang}
+ </label>
+ {/if}
+ </dt>
<dd>{@$optionData[html]}
{if $error}
<small class="innerError">
<small>{lang __optional=true}{@$langPrefix}{$option->optionName}.description{/lang}</small>
</dd>
</dl>
-{/foreach}
\ No newline at end of file
+{/foreach}
{if !$errorField|empty}
{if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'}
- <p class="error">{lang}wcf.global.form.error.securityToken{/lang}</p>
+ <p class="error" role="alert">{lang}wcf.global.form.error.securityToken{/lang}</p>
{else}
- <p class="error">{lang}wcf.global.form.error{/lang}</p>
+ <p class="error" role="alert">{lang}wcf.global.form.error{/lang}</p>
{/if}
{/if}
\ No newline at end of file