Sync ACP trophy templates with frontend templates
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 12:11:06 +0000 (14:11 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 12:11:06 +0000 (14:11 +0200)
See #2315

wcfsetup/install/files/acp/templates/trophyBadge.tpl
wcfsetup/install/files/acp/templates/trophyImage.tpl

index 6e305d12409c922ad16c3fdcde8cd1f8244b31f0..ddce16f86c75027cd54a9dc31949c5c38203d901 100644 (file)
@@ -1,6 +1,6 @@
-<span 
-       class="icon icon{$size} fa-{$trophy->iconName} trophyIcon jsTooltip" 
+<span
+       class="icon icon{$size} fa-{$trophy->iconName} trophyIcon{if $showTooltip} jsTooltip{/if}"
        style="color: {$trophy->iconColor}; background-color: {$trophy->badgeColor}"
        data-trophy-id="{$trophy->trophyID}"
-       title="{$trophy->getTitle()}"
+       {if $showTooltip}title="{$trophy->getTitle()}"{/if}
 ></span>
index 38bc00fccb1641362ec4b349dfc2659724b95398..a5ca927d6184ad6770518353a75f3ec021d40523 100644 (file)
@@ -1,7 +1,7 @@
 <img
        src="{@$__wcf->getPath()}images/trophy/{$trophy->iconFile}"
        style="width:{$size}px;height:{$size}px"
-       title="{$trophy->getTitle()}"
-       class="jsTooltip trophyIcon"
+       {if $showTooltip}title="{$trophy->getTitle()}"{/if}
+       class="trophyIcon{if $showTooltip} jsTooltip{/if}"
        data-trophy-id="{$trophy->getObjectID()}"
 />