33 lines
2.0 KiB
HTML
33 lines
2.0 KiB
HTML
<div class="index-layout-wrapper">
|
|
<div class="index-container">
|
|
@include(snippets/page-title)
|
|
<div class="posts {{ feed_layout_class }}" data-current-page="{{ pagination.current }}" data-has-more="{{ pagination.next ? 'true' : 'false' }}">
|
|
@each(items as item)
|
|
<a href="{{ link.main }}{{ item.id }}" class="{{ item.is_pinned ? 'anim-boxshadow ' : '' }}thumb lazy-thumb {{ item.has_notification ? 'has-notif' : '' }} {{ item.is_pinned ? 'is-pinned' : '' }}" data-file="{{ item.dest }}" data-mime="{{ item.mime }}" data-user="{!! item.display_name || item.username !!}" data-ext="{{ item.mime.split('/')[1].replace('youtube', 'yt').replace('x-shockwave-flash', 'flash').replace('vnd.adobe.flash.movie', 'flash').toUpperCase() }}" data-mode="{{ item.tag_id == nsfl_tag_id ? 'nsfl' : (item.tag_id == 2 ? 'nsfw' : (item.tag_id == 1 ? 'sfw' : 'null')) }}" data-bg="/t/{{ item.id }}.webp" data-size="{{ enable_dynamic_thumbs ? (item.thumb_size || 1) : 1 }}">
|
|
<div class="thumb-indicators">
|
|
@if(item.is_pinned)
|
|
<i class="fa-solid fa-thumbtack pin-indicator anim"></i>
|
|
@endif
|
|
@if(item.is_oc)
|
|
<span class="oc-indicator anim">OC</span>
|
|
@endif
|
|
@if(enable_xd_score && item.xd_score > 0)
|
|
<span class="thumb-xd-indicator xd-tier-{{ item.xd_score >= 60 ? 5 : (item.xd_score >= 30 ? 4 : (item.xd_score >= 15 ? 3 : (item.xd_score >= 5 ? 2 : 1))) }}" title="xD Score: {{ item.xd_score }}">xD</span>
|
|
@endif
|
|
</div>
|
|
<p></p>
|
|
</a>
|
|
@endeach
|
|
</div>
|
|
<div id="footbar">
|
|
▼
|
|
</div>
|
|
</div>
|
|
|
|
<div class="pagination-container-fluid" @if(typeof hidePagination !=='undefined' && hidePagination) style="display: none;" @endif>
|
|
<div class="pagination-wrapper bottom-pagination fixed-pagination">
|
|
@include(snippets/pagination)
|
|
</div>
|
|
</div>
|
|
|
|
</div> |