Guest User

reaction_list

a guest
Sep 27th, 2024
40
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.41 KB | None | 1 0
  1. <xf:if is="$title">
  2.     <xf:title>{$title}</xf:title>
  3. <xf:else />
  4.     <xf:title>{{ phrase('members_who_reacted_to_this') }}</xf:title>
  5. </xf:if>
  6.  
  7. <xf:head option="metaNoindex"><meta name="robots" content="noindex" /></xf:head>
  8.  
  9. <xf:if is="$breadcrumbs">
  10.     <xf:breadcrumb source="$breadcrumbs" />
  11. </xf:if>
  12.  
  13. <xf:if is="!$listOnly">
  14.     <div class="block">
  15.         <div class="block-container">
  16.             <h3 class="tabs hScroller block-minorTabHeader" data-xf-init="tabs h-scroller"
  17.                 data-panes="< .block-container | .js-reactionTabPanes" role="tablist">
  18.                 <span class="hScroller-scroll">
  19.                     <xf:foreach loop="$tabSummary" key="$reactionId" value="$total">
  20.                         <a class="tabs-tab tabs-tab--reaction{$reactionId}{{ $reactionId == $activeReactionId ? ' is-active' : '' }}" role="tab" id="{{ $reactionId ? 'reaction-' . $reactionId : '' }}">
  21.                             <xf:if is="$reactionId">
  22.                                 <xf:reaction id="{$reactionId}" small="true" showtitle="true" appendtitle="{$total|number|parens}" />
  23.                             <xf:else />
  24.                                 <bdi>{{ phrase('all') }}</bdi> {$total|number|parens}
  25.                             </xf:if>
  26.                         </a>
  27.                     </xf:foreach>
  28.                 </span>
  29.             </h3>
  30.             <ul class="tabPanes js-reactionTabPanes">
  31.                 <xf:foreach loop="$tabSummary" key="$reactionId" value="$total">
  32.                     <xf:if is="$reactionId == $activeReactionId">
  33.                         <li class="{{ $reactionId == $activeReactionId ? 'is-active' : '' }}" role="tabpanel" id="reaction-{$reactionId}">
  34.                             <xf:macro name="reactions_list"
  35.                                 arg-reactions="{$reactions}"
  36.                                 arg-hasNext="{$hasNext}"
  37.                                 arg-content="{$content}"
  38.                                 arg-link="{$link}"
  39.                                 arg-linkParams="{$linkParams}"
  40.                                 arg-page="{$page}"
  41.                                 arg-reactionId="{$reactionId|default(0)}" />
  42.                         </li>
  43.                     <xf:else />
  44.                         <li data-href="{{ link($link, $content, $linkParams + {'reaction_id': $reactionId, 'list_only': 1}) }}" class="{{ $reactionId == $activeReactionId ? 'is-active' : '' }}" role="tabpanel" id="reaction-{$reactionId}">
  45.                             <div class="blockMessage">{{ phrase('loading...') }}</div>
  46.                         </li>
  47.                     </xf:if>
  48.                 </xf:foreach>
  49.             </ul>
  50.         </div>
  51.     </div>
  52. <xf:else />
  53.     <xf:macro name="reactions_list"
  54.         arg-reactions="{$reactions}"
  55.         arg-hasNext="{$hasNext}"
  56.         arg-content="{$content}"
  57.         arg-link="{$link}"
  58.         arg-linkParams="{$linkParams}"
  59.         arg-page="{$page}"
  60.         arg-reactionId="{$activeReactionId}" />
  61. </xf:if>
  62.  
  63. <xf:macro name="reactions_list"
  64.     arg-reactions="!"
  65.     arg-hasNext="!"
  66.     arg-content="!"
  67.     arg-link="!"
  68.     arg-linkParams="!"
  69.     arg-page="!"
  70.     arg-reactionId="0">
  71.     <ol class="block-body js-reactionList-{$reactionId}">
  72.         <xf:foreach loop="$reactions" value="$reaction">
  73.             <li class="block-row block-row--separated">
  74.                 <xf:set var="$extraData">
  75.                     <xf:reaction id="{$reaction}" class="reaction--right" />
  76.                     <xf:date time="{$reaction.reaction_date}" />
  77.                 </xf:set>
  78.                 <xf:macro template="member_list_macros" name="item"
  79.                     arg-user="{$reaction.ReactionUser}"
  80.                     arg-extraData="{$extraData|preescaped}" />
  81.             </li>
  82.         </xf:foreach>
  83.         <xf:if is="$hasNext">
  84.             <li class="block-footer">
  85.                 <span class="block-footer-controls"><xf:button href="{{ link($link, $content, $linkParams + {'reaction_id': $reactionId, 'list_only': 1, 'page': $page + 1}) }}"
  86.                     data-xf-click="inserter"
  87.                     data-replace=".js-reactionList-{$reactionId}"
  88.                     data-scroll-target="< .overlay">
  89.                         {{ phrase('continue...') }}
  90.                 </xf:button></span>
  91.             </li>
  92.         </xf:if>
  93.     </ol>
  94. </xf:macro>
Advertisement
Add Comment
Please, Sign In to add comment