From 506fc276708692412febf79196e8ff93197f970d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 19 Aug 2022 17:50:54 +0200 Subject: [PATCH] Replace legacy icons --- com.woltlab.wcf/templates/user.tpl | 6 +++++- com.woltlab.wcf/templates/userException.tpl | 2 +- .../templates/userInformationHeadline.tpl | 8 ++++++- com.woltlab.wcf/templates/userNotice.tpl | 4 +++- .../templates/__bbcodeAttributesFormField.tpl | 21 ++++++++++++++++--- ..._devtoolsMissingLanguageItemStackTrace.tpl | 4 +++- ...__devtoolsProjectInstructionsFormField.tpl | 8 +++++-- .../templates/__objectActionDeleteIcon.tpl | 6 ++++-- .../templates/__objectActionToogleIcon.tpl | 10 +++++++-- .../acp/templates/__optionRewriteTest.tpl | 4 ++-- .../install/files/acp/templates/adList.tpl | 4 +++- .../files/acp/templates/articleList.tpl | 4 +++- .../install/files/acp/templates/bbcodeAdd.tpl | 21 ++++++++++++++++--- .../files/acp/templates/bbcodeList.tpl | 4 +++- .../install/files/acp/templates/boxList.tpl | 4 +++- .../files/acp/templates/contactSettings.tpl | 8 +++++-- .../files/acp/templates/cronjobList.tpl | 8 +++++-- .../files/acp/templates/languageList.tpl | 4 +++- .../files/acp/templates/menuItemList.tpl | 4 +++- .../install/files/acp/templates/menuList.tpl | 4 +++- .../install/files/acp/templates/package.tpl | 12 +++++++---- .../files/acp/templates/packageList.tpl | 4 +++- .../acp/templates/packageUpdateServerList.tpl | 4 +++- .../install/files/acp/templates/pageList.tpl | 4 +++- .../templates/paidSubscriptionUserList.tpl | 4 +++- .../files/acp/templates/templateGroupList.tpl | 8 +++++-- .../files/acp/templates/templateList.tpl | 12 ++++++++--- .../files/acp/templates/userGroupList.tpl | 8 +++++-- .../acp/templates/userOptionCategoryList.tpl | 4 +++- .../files/acp/templates/userOptionList.tpl | 4 +++- .../files/acp/templates/userTrophyList.tpl | 8 +++++-- 31 files changed, 161 insertions(+), 49 deletions(-) diff --git a/com.woltlab.wcf/templates/user.tpl b/com.woltlab.wcf/templates/user.tpl index 239a3ba4b0..190802ee89 100644 --- a/com.woltlab.wcf/templates/user.tpl +++ b/com.woltlab.wcf/templates/user.tpl @@ -171,7 +171,11 @@

{$user->username} - {if $user->banned}{/if} + {if $user->banned} + + {icon size=24 name='lock'} + + {/if} {if MODULE_USER_RANK} {if $user->getUserTitle()} {$user->getUserTitle()} diff --git a/com.woltlab.wcf/templates/userException.tpl b/com.woltlab.wcf/templates/userException.tpl index 2382c4d7b3..3900056b9b 100644 --- a/com.woltlab.wcf/templates/userException.tpl +++ b/com.woltlab.wcf/templates/userException.tpl @@ -10,7 +10,7 @@
- + {icon size=64 name='circle-exclamation'}

{@$message}

diff --git a/com.woltlab.wcf/templates/userInformationHeadline.tpl b/com.woltlab.wcf/templates/userInformationHeadline.tpl index bf8832024a..e5b7641d92 100644 --- a/com.woltlab.wcf/templates/userInformationHeadline.tpl +++ b/com.woltlab.wcf/templates/userInformationHeadline.tpl @@ -1,5 +1,11 @@
-

{user object=$user class='username'}{if $user->banned} {/if} +

+ {user object=$user class='username'} + {if $user->banned} + + {icon size=16 name='lock'} + + {/if} {if MODULE_USER_RANK} {if $user->getUserTitle()} {$user->getUserTitle()} diff --git a/com.woltlab.wcf/templates/userNotice.tpl b/com.woltlab.wcf/templates/userNotice.tpl index 75e56bfadb..fc03e1adfe 100644 --- a/com.woltlab.wcf/templates/userNotice.tpl +++ b/com.woltlab.wcf/templates/userNotice.tpl @@ -29,7 +29,9 @@ {foreach from=$__wcf->getNoticeHandler()->getVisibleNotices() item='notice'}
{if $notice->isDismissible} - + {/if} {@$notice} diff --git a/wcfsetup/install/files/acp/templates/__bbcodeAttributesFormField.tpl b/wcfsetup/install/files/acp/templates/__bbcodeAttributesFormField.tpl index 2c35dcf174..e5340c19ad 100644 --- a/wcfsetup/install/files/acp/templates/__bbcodeAttributesFormField.tpl +++ b/wcfsetup/install/files/acp/templates/__bbcodeAttributesFormField.tpl @@ -1,6 +1,11 @@ {capture assign='attributeTemplate'}
-

{lang __literal=true}wcf.acp.bbcode.numberedAttribute{/lang}

+

+ + {lang __literal=true}wcf.acp.bbcode.numberedAttribute{/lang} +

@@ -95,7 +100,12 @@ var parentContainer = elById('{@$field->getParent()->getPrefixedId()}Container'); var parentTitle = DomTraverse.childBySel(parentContainer, 'h2.sectionTitle'); - parentTitle.innerHTML = ' ' + parentTitle.innerHTML; + parentTitle.innerHTML = ` + + ${parentTitle.innerHTML} + `; DomChangeListener.trigger(); @@ -128,7 +138,12 @@ {foreach from=$field->getValue() key=attributeNumber item=attributeData name=bbcodeAttributes}
-

{lang}wcf.acp.bbcode.numberedAttribute{/lang}

+

+ + {lang}wcf.acp.bbcode.numberedAttribute{/lang} +

diff --git a/wcfsetup/install/files/acp/templates/__devtoolsMissingLanguageItemStackTrace.tpl b/wcfsetup/install/files/acp/templates/__devtoolsMissingLanguageItemStackTrace.tpl index 39ef0cd199..bf5d047ce2 100644 --- a/wcfsetup/install/files/acp/templates/__devtoolsMissingLanguageItemStackTrace.tpl +++ b/wcfsetup/install/files/acp/templates/__devtoolsMissingLanguageItemStackTrace.tpl @@ -1,4 +1,6 @@ - +
{*
 	*}{foreach from=$stackTrace item=stackEntry name=stackEntries}{*
diff --git a/wcfsetup/install/files/acp/templates/__devtoolsProjectInstructionsFormField.tpl b/wcfsetup/install/files/acp/templates/__devtoolsProjectInstructionsFormField.tpl
index 8f3fcd7e21..16c6e767dc 100644
--- a/wcfsetup/install/files/acp/templates/__devtoolsProjectInstructionsFormField.tpl
+++ b/wcfsetup/install/files/acp/templates/__devtoolsProjectInstructionsFormField.tpl
@@ -39,8 +39,12 @@
 			

{literal}{if $type === 'update'}{/literal} - - + + {literal}{/if}{/literal} {literal}{$sectionTitle}{/literal}

diff --git a/wcfsetup/install/files/acp/templates/__objectActionDeleteIcon.tpl b/wcfsetup/install/files/acp/templates/__objectActionDeleteIcon.tpl index 3e9817995a..66b3c838a6 100644 --- a/wcfsetup/install/files/acp/templates/__objectActionDeleteIcon.tpl +++ b/wcfsetup/install/files/acp/templates/__objectActionDeleteIcon.tpl @@ -1,5 +1,7 @@ - +*}> + {icon size=16 name='xmark'} + diff --git a/wcfsetup/install/files/acp/templates/__objectActionToogleIcon.tpl b/wcfsetup/install/files/acp/templates/__objectActionToogleIcon.tpl index b4c22f983c..7b3f4389cf 100644 --- a/wcfsetup/install/files/acp/templates/__objectActionToogleIcon.tpl +++ b/wcfsetup/install/files/acp/templates/__objectActionToogleIcon.tpl @@ -1,4 +1,10 @@ - +*}> + {if $object->isDisabled} + {icon size=16 name='square-check'} + {else} + {icon size=16 name='square'} + {/if} + diff --git a/wcfsetup/install/files/acp/templates/__optionRewriteTest.tpl b/wcfsetup/install/files/acp/templates/__optionRewriteTest.tpl index 04043a6d22..e6ce1bdc4f 100644 --- a/wcfsetup/install/files/acp/templates/__optionRewriteTest.tpl +++ b/wcfsetup/install/files/acp/templates/__optionRewriteTest.tpl @@ -5,13 +5,13 @@

{lang}wcf.acp.option.url_omit_index_php.test.running{/lang}

-

{lang}wcf.acp.bbcode.attributes{/lang}

+

+ + {lang}wcf.acp.bbcode.attributes{/lang} +

{foreach from=$attributes item='attribute'}
-

{lang}wcf.acp.bbcode.attribute{/lang} {#$attribute->attributeNo}

+

+ + {lang}wcf.acp.bbcode.attribute{/lang} {#$attribute->attributeNo} +

attributeNo} class="formError"{/if}>
diff --git a/wcfsetup/install/files/acp/templates/bbcodeList.tpl b/wcfsetup/install/files/acp/templates/bbcodeList.tpl index c5dfd1b27b..94491751ec 100644 --- a/wcfsetup/install/files/acp/templates/bbcodeList.tpl +++ b/wcfsetup/install/files/acp/templates/bbcodeList.tpl @@ -41,7 +41,9 @@ {if $bbcode->canDelete()} {objectAction action="delete" objectTitle=$bbcode->getTitle()} {else} - + + {icon size=16 name='xmark'} + {/if} {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/boxList.tpl b/wcfsetup/install/files/acp/templates/boxList.tpl index 7c71473dd6..1120a0c3cd 100644 --- a/wcfsetup/install/files/acp/templates/boxList.tpl +++ b/wcfsetup/install/files/acp/templates/boxList.tpl @@ -122,7 +122,9 @@ {if $box->canDelete()} {objectAction action="delete" objectTitle=$box->name} {else} - + + {icon size=16 name='xmark'} + {/if} {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/contactSettings.tpl b/wcfsetup/install/files/acp/templates/contactSettings.tpl index 80d0d14e7c..28893ba8af 100644 --- a/wcfsetup/install/files/acp/templates/contactSettings.tpl +++ b/wcfsetup/install/files/acp/templates/contactSettings.tpl @@ -55,7 +55,9 @@ {if $option->canDelete()} {objectAction action="delete" objectTitle=$option->getTitle()} {else} - + + {icon size=16 name='xmark'} + {/if} {event name='rowButtons'} @@ -92,7 +94,9 @@ {objectAction action="toggle" isDisabled=$recipient->isDisabled} {if $recipient->originIsSystem} - + + {icon size=16 name='xmark'} + {else} {objectAction action="delete" objectTitle=$recipient->getName()} {/if} diff --git a/wcfsetup/install/files/acp/templates/cronjobList.tpl b/wcfsetup/install/files/acp/templates/cronjobList.tpl index ccd4978b73..7ac8708bfb 100644 --- a/wcfsetup/install/files/acp/templates/cronjobList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobList.tpl @@ -65,12 +65,16 @@ {if $cronjob->isEditable()} {icon size=16 name='pencil'} {else} - + + {icon size=16 name='pencil'} + {/if} {if $cronjob->isDeletable()} {objectAction action="delete" objectTitle=$cronjob->getDescription()} {else} - + + {icon size=16 name='xmark'} + {/if} {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/languageList.tpl b/wcfsetup/install/files/acp/templates/languageList.tpl index 0ad3713b8a..65ffeab659 100644 --- a/wcfsetup/install/files/acp/templates/languageList.tpl +++ b/wcfsetup/install/files/acp/templates/languageList.tpl @@ -55,7 +55,9 @@ {if $language->isDeletable()} {objectAction action="delete" objectTitle=$language->languageName} {else} - + + {icon size=16 name='xmark'} + {/if} {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/menuItemList.tpl b/wcfsetup/install/files/acp/templates/menuItemList.tpl index 085b6ee629..129a528c91 100644 --- a/wcfsetup/install/files/acp/templates/menuItemList.tpl +++ b/wcfsetup/install/files/acp/templates/menuItemList.tpl @@ -50,7 +50,9 @@ {if $menuItemNode->canDelete()} {objectAction action="delete" objectTitle=$menuItemNode->getTitle()} {else} - + + {icon size=16 name='xmark'} + {/if} {event name='itemButtons'} diff --git a/wcfsetup/install/files/acp/templates/menuList.tpl b/wcfsetup/install/files/acp/templates/menuList.tpl index 5e4c2124bd..b7d45b1789 100644 --- a/wcfsetup/install/files/acp/templates/menuList.tpl +++ b/wcfsetup/install/files/acp/templates/menuList.tpl @@ -43,7 +43,9 @@ {if $menu->canDelete()} {objectAction action="delete" objectTitle=$menu->getTitle()} {else} - + + {icon size=16 name='xmark'} + {/if} {icon size=16 name='list'} {icon size=16 name='plus'} diff --git a/wcfsetup/install/files/acp/templates/package.tpl b/wcfsetup/install/files/acp/templates/package.tpl index 446e009cb9..839102ecd3 100644 --- a/wcfsetup/install/files/acp/templates/package.tpl +++ b/wcfsetup/install/files/acp/templates/package.tpl @@ -20,7 +20,7 @@
    {content} {if $package->canUninstall()} -
  • +
  • {/if} {event name='contentHeaderNavigation'} @@ -132,7 +132,9 @@ {if $requiredPackage->canUninstall()} {else} - + + {icon size=16 name='xmark'} + {/if} {@$requiredPackage->packageID} @@ -173,7 +175,9 @@ {if $dependentPackage->canUninstall()} {else} - + + {icon size=16 name='xmark'} + {/if} {@$dependentPackage->packageID} @@ -201,7 +205,7 @@