| 1 | <script data-relocate="true"> |
| 2 | require(['WoltLabSuite/Core/Ui/Reaction/Profile/Loader', 'Language'], function(UiReactionProfileLoader, Language) { |
| 3 | Language.addObject({ |
| 4 | 'wcf.like.reaction.noMoreEntries': '{jslang}wcf.like.reaction.noMoreEntries{/jslang}', |
| 5 | 'wcf.like.reaction.more': '{jslang}wcf.like.reaction.more{/jslang}' |
| 6 | }); |
| 7 | |
| 8 | new UiReactionProfileLoader({@$userID}); |
| 9 | }); |
| 10 | </script> |
| 11 | |
| 12 | <ul id="likeList" class="containerList recentActivityList likeList" data-last-like-time="{@$lastLikeTime}"> |
| 13 | <li class="containerListButtonGroup likeTypeSelection"> |
| 14 | <ul class="buttonGroup" id="likeType"> |
| 15 | <li><a class="button small active" data-like-type="received">{lang}wcf.like.reactionsReceived{/lang}</a></li> |
| 16 | <li><a class="button small" data-like-type="given">{lang}wcf.like.reactionsGiven{/lang}</a></li> |
| 17 | </ul> |
| 18 | |
| 19 | {if $__wcf->getReactionHandler()->getReactionTypes()|count > 1} |
| 20 | <ul class="buttonGroup" id="reactionType"> |
| 21 | {foreach from=$__wcf->getReactionHandler()->getReactionTypes() item=reactionType name=reactionTypeLoop} |
| 22 | <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> |
| 23 | {/foreach} |
| 24 | </ul> |
| 25 | {/if} |
| 26 | </li> |
| 27 | |
| 28 | {include file='userProfileLikeItem'} |
| 29 | </ul> |