feat: refactorer la pagination avec design moderne, styles flexbox optimisés, support thème clair/sombre, label dynamique Notes/Bookmarks selon contexte, correction de la syntaxe de boucle des plugins, et masquage temporaire du titre dans le header
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
{/if}
|
||||
{$from=($page_current - 1) * $links_per_page + 1}
|
||||
{$to=min($total, ($page_current - 1) * $links_per_page + $links_per_page)}
|
||||
{if="!empty($search_tags) && stripos($search_tags, 'note') !== false"}
|
||||
{$paging_label="Notes"}
|
||||
{else}
|
||||
{$paging_label="Bookmarks"}
|
||||
{/if}
|
||||
<div class="paging{if="$page_max <=1"} single-page{/if}">
|
||||
{if="$page_max > 1"}
|
||||
<div class="paging-links">
|
||||
@@ -22,11 +27,12 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div class="paging-stats">
|
||||
Bookmarks <strong>{$from}</strong> - <strong>{$to}</strong> / <strong>{$total}</strong>
|
||||
{$paging_label} <strong>{$from}</strong> - <strong>{$to}</strong> / <strong>{$total}</strong>
|
||||
</div>
|
||||
{loop="$action_plugin"}
|
||||
<div class="paging-plugin">
|
||||
<a {loop="$value.attr" }{$key}="{$value}">{$value.html}</a>
|
||||
{$plugin_html=$value.html}
|
||||
<a {loop="$value.attr"}{$key}="{$value}"{/loop}>{$plugin_html}</a>
|
||||
</div>
|
||||
{/loop}
|
||||
</div>
|
||||
Reference in New Issue
Block a user