Advertisement
Guest User

Untitled

a guest
Mar 27th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. <xf:css src="structured_list.less" />
  2. <xf:css src="dbtech_shop_structured_list_item.less" />
  3.  
  4. <div class="structItem{{ !$item.active ? ' is-deleted' : '' }}{{ $item.hidden ? ' is-moderated' : '' }}">
  5. <div class="structItem-cell structItem-cell--icon">
  6. <div class="structItem-iconContainer">
  7. <a class="avatar avatar--s" href="{{ link('dbtech-shop/item', {'id': $item.purchaseid, 'title': $item.title}, {'shopid': $item.shopid, 'action': 'info'}) }}" data-xf-click="overlay" data-xf-init="member-tooltip" data-user-id="{$item.itemid}-{$item.shopid}"><img src="{$item.shopicon}" alt="{$item.title}" /></a>
  8. <a class="avatar--separated structItem-secondaryIcon" href="{{ link('dbtech-shop/item', {'id': $item.purchaseid, 'title': $item.title}, {'shopid': $item.shopid, 'action': 'info'}) }}" data-xf-click="overlay" data-xf-init="member-tooltip" data-user-id="{$item.itemid}-{$item.shopid}"><img src="{$item.icon}" alt="{$item.title}" /></a>
  9. </div>
  10. </div>
  11. <div class="structItem-cell structItem-cell--main">
  12. <xf:if is="{$item.userid} == {$visitor.user_id}">
  13. <div class="structItem-minor">
  14. <ul class="structItem-extraInfo">
  15. <li>
  16. <a href="{{ link('dbtech-shop/inventory', {'id': $item.purchaseid, 'title': $item.title}, {'action': 'discard'}) }}" data-xf-click="overlay" data-xf-init="tooltip" data-original-title="Discard (remove this item from your inventory)"><i class="fa fa-trash" style="color:#ca0000"></i></a>
  17. </li>
  18.  
  19. <xf:if is="{$item._sellback}">
  20. <li>
  21. <a href="{{ link('dbtech-shop/inventory', {'id': $item.purchaseid, 'title': $item.title}, {'action': 'sell'}) }}" data-xf-click="overlay">{{ phrase('dbtech_shop.sellback') }}</a>
  22. </li>
  23. </xf:if>
  24.  
  25. <!--DBT_PRO_START-->
  26. <xf:if is="{$item._gift}">
  27. <li>
  28. <a href="{{ link('dbtech-shop/inventory', {'id': $item.purchaseid, 'title': $item.title}, {'action': 'gift'}) }}" data-xf-click="overlay" data-xf-init="tooltip" data-original-title="Gift (send this item to another user)"><i class="fa fa-gift"></i></a>
  29. </li>
  30. </xf:if>
  31. <!--DBT_PRO_END-->
  32. </ul>
  33. </div>
  34. </xf:if>
  35.  
  36. <div class="structItem-title">
  37. <a href="{{ link('dbtech-shop/item', {'id': $item.itemid, 'title': $item.title}, {'shopid': $item.shopid, 'action': 'info'}) }}" data-xf-click="overlay" data-xf-init="member-tooltip" data-user-id="{$item.itemid}-{$item.shopid}">{$item.title}</a>
  38. </div>
  39.  
  40. <div class="structItem-minor">
  41. <ul class="structItem-parts">
  42. <li>
  43. <xf:username user="$item" rich="true" />
  44. </li>
  45. <li class="structItem-startDate"><xf:date time="{$item.dateline}" /></li>
  46. <xf:if is="$item.message is not empty">
  47. <li>{$item.message}</li>
  48. </xf:if>
  49. </ul>
  50. </div>
  51.  
  52. <xf:if is="$item.description">
  53. <div class="structItem-minor">{$item.description|raw}</div>
  54. </xf:if>
  55.  
  56. <xf:if is="{$item.userid} == {$visitor.user_id}">
  57. <div class="structItem-minor">
  58. <ul class="structItem-extraInfo">
  59. <li>
  60. <a href="{{ link('dbtech-shop/inventory', {'id': $item.purchaseid, 'title': $item.title}, {'action': 'info'}) }}" data-xf-click="overlay" data-xf-init="tooltip" data-original-title="Enable/Disable this item and all its effects."><i class="fa fa-toggle-on"></i></a>
  61. </li>
  62.  
  63. <xf:if is="{$item._configure}">
  64. <li>
  65. <a href="{{ link('dbtech-shop/inventory', {'id': $item.purchaseid, 'title': $item.title}, {'action': 'configure'}) }}" data-xf-click="overlay" data-xf-init="tooltip" data-original-title="Configure this item."><i class="fa fa-cog"></i></a>
  66. </li>
  67. </xf:if>
  68. </ul>
  69. </div>
  70. </xf:if>
  71. </div>
  72. <div class="structItem-cell structItem-cell--meta">
  73.  
  74. <dl class="pairs pairs--justified">
  75. <dt>{{ phrase('dbtech_shop.active') }}</dt>
  76. <dd>{{ $item.active ? phrase('yes') : phrase('no') }}</dd>
  77. </dl>
  78.  
  79. <dl class="pairs pairs--justified">
  80. <dt>{{ phrase('dbtech_shop.hidden') }}</dt>
  81. <dd>{{ $item.hidden ? phrase('yes') : phrase('no') }}</dd>
  82. </dl>
  83.  
  84. <dl class="pairs pairs--justified">
  85. <dt>{{ phrase('dbtech_shop.unique') }}</dt>
  86. <dd>{{ $item.uniqueitem ? phrase('yes') : phrase('no') }}</dd>
  87. </dl>
  88.  
  89. <dl class="pairs pairs--justified">
  90. <dt>{{ phrase('dbtech_shop.exclusive') }}</dt>
  91. <dd>{{ $item.exclusiveitem ? phrase('yes') : phrase('no') }}</dd>
  92. </dl>
  93.  
  94. <xf:if is="{$item.buybackprice} > 0 AND {$item._sellback}">
  95. <dl class="pairs pairs--justified">
  96. <dt>{{ phrase('dbtech_shop.buyback_price') }}</dt>
  97. <dd>{$buybackcurrency.prefix}{$item.buybackprice_formatted}{$buybackcurrency.suffix}</dd>
  98. </dl>
  99.  
  100. <dl class="pairs pairs--justified">
  101. <dt>{{ phrase('dbtech_shop.buyback_time') }}</dt>
  102. <dd>{$item.buybacktime_formatted}</dd>
  103. </dl>
  104. </xf:if>
  105.  
  106. <dl class="pairs pairs--justified">
  107. <dt>{{ phrase('dbtech_shop.expiry') }}</dt>
  108. <dd>
  109. <xf:if is="{$item.expirydate}">
  110. <xf:date time="{$item.expirydate}" />
  111. <xf:else />
  112. {{ phrase('never') }}
  113. </xf:if>
  114. </dd>
  115. </dl>
  116. </div>
  117. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement