Merge branch 'next' into next-usable-reactions
authorJoshua Rüsweg <ruesweg@woltlab.com>
Mon, 9 Sep 2019 18:02:57 +0000 (20:02 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 18:02:57 +0000 (20:02 +0200)
1  2 
com.woltlab.wcf/templates/userProfileLikes.tpl
wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 5dd3b3c8f43c9b5a025f36df10f7e44748d6d006,1a51843592376c0ddf7625c06f3eeff23ffd8ea2..64f0b3c93d50c2aa136fc612adf20cc6c143f35b
                        <li><a class="button small" data-like-type="given">{lang}wcf.like.reactionsGiven{/lang}</a></li>
                </ul>
                
-               <ul class="buttonGroup" id="reactionType">
-                       {foreach from=$__wcf->getReactionHandler()->getReactionTypes() item=reactionType name=reactionTypeLoop}
-                               <li><a class="button small jsTooltip" data-reaction-type-id="{$reactionType->reactionTypeID}" title="{$reactionType->getTitle()}" data-is-assignable="{if $reactionType->isAssignable}1{else}0{/if}">{@$reactionType->renderIcon()} <span class="invisible">{$reactionType->getTitle()}</span></a></li>
-                       {/foreach}
-               </ul>
+               {if $__wcf->getReactionHandler()->getReactionTypes()|count > 1}
+                       <ul class="buttonGroup" id="reactionType">
+                               {foreach from=$__wcf->getReactionHandler()->getReactionTypes() item=reactionType name=reactionTypeLoop}
 -                                      <li><a class="button small jsTooltip" data-reaction-type-id="{$reactionType->reactionTypeID}" title="{$reactionType->getTitle()}">{@$reactionType->renderIcon()} <span class="invisible">{$reactionType->getTitle()}</span></a></li>
++                                      <li><a class="button small jsTooltip" data-reaction-type-id="{$reactionType->reactionTypeID}" title="{$reactionType->getTitle()}" data-is-assignable="{if $reactionType->isAssignable}1{else}0{/if}">{@$reactionType->renderIcon()} <span class="invisible">{$reactionType->getTitle()}</span></a></li>
+                               {/foreach}
+                       </ul>
+               {/if}
        </li>
        
        {include file='userProfileLikeItem'}
Simple merge
Simple merge