Lines 110-116
sub pagination_bar {
Link Here
|
110 |
|
110 |
|
111 |
# navigation bar useful only if more than one page to display ! |
111 |
# navigation bar useful only if more than one page to display ! |
112 |
if ( $nb_pages > 1 ) { |
112 |
if ( $nb_pages > 1 ) { |
113 |
$pagination_bar = '<ul class="pagination">'; |
113 |
$pagination_bar = '<ul class="pagination output">'; |
114 |
# link to first page? |
114 |
# link to first page? |
115 |
if ( $current_page > 1 ) { |
115 |
if ( $current_page > 1 ) { |
116 |
$pagination_bar .= |
116 |
$pagination_bar .= |
Lines 120-126
sub pagination_bar {
Link Here
|
120 |
. '1' |
120 |
. '1' |
121 |
. $url_suffix |
121 |
. $url_suffix |
122 |
. '"rel="start">' |
122 |
. '"rel="start">' |
123 |
. '<i class="fa fa-fw fa-angle-double-left"></i> First' . '</a></li>'; |
123 |
. '<i class="fa fa-fw fa-angle-double-left"></i> ' . '</a></li>'; |
124 |
} |
124 |
} |
125 |
|
125 |
|
126 |
# link on previous page ? |
126 |
# link on previous page ? |
Lines 133-139
sub pagination_bar {
Link Here
|
133 |
. $url |
133 |
. $url |
134 |
. $previous |
134 |
. $previous |
135 |
. $url_suffix |
135 |
. $url_suffix |
136 |
. '" rel="prev">' . '<i class="fa fa-fw fa-angle-left"></i> Previous' . '</a></li>'; |
136 |
. '" rel="prev">' . '<i class="fa fa-fw fa-angle-left"></i> ' . '</a></li>'; |
137 |
} |
137 |
} |
138 |
|
138 |
|
139 |
my $min_to_display = $current_page - $pages_around; |
139 |
my $min_to_display = $current_page - $pages_around; |
Lines 185-191
sub pagination_bar {
Link Here
|
185 |
. $url |
185 |
. $url |
186 |
. $next |
186 |
. $next |
187 |
. $url_suffix |
187 |
. $url_suffix |
188 |
. '" rel="next">' . 'Next <i class="fa fa-fw fa-angle-right"></i>' . '</a></li>'; |
188 |
. '" rel="next"><i class="fa fa-fw fa-angle-right"></i></a></li>'; |
189 |
} |
189 |
} |
190 |
|
190 |
|
191 |
# link to last page? |
191 |
# link to last page? |
Lines 196-202
sub pagination_bar {
Link Here
|
196 |
. $nb_pages |
196 |
. $nb_pages |
197 |
. $url_suffix |
197 |
. $url_suffix |
198 |
. '" rel="last">' |
198 |
. '" rel="last">' |
199 |
. 'Last <i class="fa fa-fw fa-angle-double-right"></i>' . '</a></li>'; |
199 |
. ' <i class="fa fa-fw fa-angle-double-right"></i></a></li>'; |
200 |
} |
200 |
} |
201 |
|
201 |
|
202 |
$pagination_bar .= "\n" . '</ul>'; |
202 |
$pagination_bar .= "\n" . '</ul>'; |