]> git.agnieray.net Git - galette.git/commitdiff
Use icons instead of html entities on icon buttons
authorGuillaume AGNIERAY <dev@agnieray.net>
Tue, 21 Nov 2023 22:47:59 +0000 (23:47 +0100)
committerJohan Cwiklinski <trasher@x-tnd.be>
Wed, 22 Nov 2023 08:41:09 +0000 (09:41 +0100)
galette/lib/Galette/Core/Pagination.php

index fad1fbf6ce0c545958a53a880f6ef86d87bfa2c4..fa8644494aa371625942ad1f45154210fe3e8062 100644 (file)
@@ -274,13 +274,13 @@ abstract class Pagination
 
         if ($this->current_page != 1) {
             $paginate .= $this->getLink(
-                '&lt;&lt;',
+                '<i class="fast backward small icon" aria-hidden="true"></i>',
                 $this->getHref(1),
                 preg_replace("(%i)", $next, _T("First page"))
             );
 
             $paginate .= $this->getLink(
-                '&lt;',
+                '<i class="step backward small icon" aria-hidden="true"></i>',
                 $this->getHref($previous),
                 preg_replace("(%i)", $previous, _T("Previous page (%i)"))
             );
@@ -308,13 +308,13 @@ abstract class Pagination
         }
         if ($this->current_page != $this->pages) {
             $paginate .= $this->getLink(
-                '&gt;',
+                '<i class="step forward small icon" aria-hidden="true"></i>',
                 $this->getHref($next),
                 preg_replace("(%i)", $next, _T("Next page (%i)"))
             );
 
             $paginate .= $this->getLink(
-                '&gt;&gt;',
+                '<i class="fast forward small icon" aria-hidden="true"></i>',
                 $this->getHref($this->pages),
                 preg_replace("(%i)", $this->pages, _T("Last page (%i)"))
             );