PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.32.51
E2Pdf – Export Pdf Tool for WordPress v1.32.51
1.32.51 1.32.49 1.32.48 1.32.43 1.32.40 1.32.34 1.32.32 1.32.31 1.32.26 1.32.22 1.32.23 1.32.18 1.32.17 1.32.15 trunk 1.00.00 1.00.13 1.01.01 1.02.02 1.03.07 1.04.07 1.05.03 1.06.02 1.07.11 1.08.00 All 73 releases
← All changes | classes/view/blocks/pagination.php +17 -7 1.06.021.32.51 View file →
@@ -3,34 +3,44 @@
3 3 die('Access denied.');
4 4 }
5 5 ?>
6 6 <div class="tablenav-pages e2pdf-tablenav-pages"><span class="displaying-num">
7 - <?php echo $this->tpl_args->get('total') == '1' ? sprintf(__("%s item", 'e2pdf'), $this->tpl_args->get('total')) : sprintf(__("%s items", 'e2pdf'), $this->tpl_args->get('total')); ?></span>
7 + <?php echo esc_html(sprintf(__("Templates: %d", 'e2pdf'), $this->tpl_args->get('total'))); ?></span>
8 8 <span class="pagination-links">
9 9 <?php if (($this->tpl_args->get('paged')) > 2) { ?>
10 - <a class="first-page button" href="<?php echo $this->helper->get_url($this->tpl_args->get('url')); ?>"><span class="screen-reader-text"><?php _e('First page', 'e2pdf') ?></span><span aria-hidden="true">«</span></a>
10 + <a class="first-page button" href="<?php echo esc_url($this->helper->get_url($this->tpl_args->get('url'))); ?>"><span class="screen-reader-text"><?php _e('First page', 'e2pdf') ?></span><span aria-hidden="true">«</span></a>
11 11 <?php } else { ?>
12 12 <span class="tablenav-pages-navspan button disabled" aria-hidden="true">«</span>
13 13 <?php } ?>
14 14
15 15 <?php if (($this->tpl_args->get('paged')) > 1) { ?>
16 - <a class="prev-page button" href="<?php echo $this->helper->get_url($this->tpl_args->get('paged') > 2 ? array_merge($this->tpl_args->get('url'), array('paged' => $this->tpl_args->get('paged') - 1)) : $this->tpl_args->get('url')); ?>"><span class="screen-reader-text"><?php _e('Prev page', 'e2pdf') ?></span><span aria-hidden="true">‹</span></a>
16 + <a class="prev-page button" href="<?php echo esc_url($this->helper->get_url($this->tpl_args->get('paged') > 2 ? array_merge($this->tpl_args->get('url'), array('paged' => $this->tpl_args->get('paged') - 1)) : $this->tpl_args->get('url'))); ?>"><span class="screen-reader-text"><?php _e('Prev page', 'e2pdf') ?></span><span aria-hidden="true">‹</span></a>
17 17 <?php } else { ?>
18 18 <span class="tablenav-pages-navspan button disabled" aria-hidden="true">‹</span>
19 19 <?php } ?>
20 20 <span class="screen-reader-text"><?php _e('Current Page', 'e2pdf') ?></span>
21 21 <span id="table-paging" class="paging-input">
22 - <span class="tablenav-paging-text"><?php echo sprintf(__("%d of <span class=\"total-pages\">%d</span>", 'e2pdf'), $this->tpl_args->get('paged'), $this->tpl_args->get('total') ? ceil($this->tpl_args->get('total') / $this->tpl_args->get('limit')) : '1'); ?></span>
22 + <span class="tablenav-paging-text">
23 + <?php
24 + echo sprintf(
25 + esc_html__('%d of ', 'e2pdf'),
26 + (int) $this->tpl_args->get('paged')
27 + );
28 + ?>
29 + <span class="total-pages">
30 + <?php echo (int) ($this->tpl_args->get('total') ? ceil((int) $this->tpl_args->get('total') / (int) $this->tpl_args->get('limit')) : 1); ?>
31 + </span>
32 + </span>
23 33 </span>
24 34 <?php if ((ceil($this->tpl_args->get('total') / $this->tpl_args->get('limit')) - $this->tpl_args->get('paged')) >= 1) { ?>
25 - <a class="next-page button" href="<?php echo $this->helper->get_url(array_merge($this->tpl_args->get('url'), array('paged' => $this->tpl_args->get('paged') + 1))); ?>"><span class="screen-reader-text"><?php _e('Next page', 'e2pdf') ?></span><span aria-hidden="true">›</span></a>
35 + <a class="next-page button" href="<?php echo esc_url($this->helper->get_url(array_merge($this->tpl_args->get('url'), array('paged' => $this->tpl_args->get('paged') + 1)))); ?>"><span class="screen-reader-text"><?php _e('Next page', 'e2pdf') ?></span><span aria-hidden="true">›</span></a>
26 36 <?php } else { ?>
27 37 <span class="tablenav-pages-navspan button disabled" aria-hidden="true">›</span>
28 38 <?php } ?>
29 39
30 40 <?php if ((ceil($this->tpl_args->get('total') / $this->tpl_args->get('limit')) - $this->tpl_args->get('paged')) >= 2) { ?>
31 - <a class="last-page button" href="<?php echo $this->helper->get_url(array_merge($this->tpl_args->get('url'), array('paged' => ceil($this->tpl_args->get('total') / $this->tpl_args->get('limit'))))); ?>"><span class="screen-reader-text"><?php _e('Last page', 'e2pdf') ?></span><span aria-hidden="true">»</span></a>
41 + <a class="last-page button" href="<?php echo esc_url($this->helper->get_url(array_merge($this->tpl_args->get('url'), array('paged' => ceil($this->tpl_args->get('total') / $this->tpl_args->get('limit')))))); ?>"><span class="screen-reader-text"><?php _e('Last page', 'e2pdf') ?></span><span aria-hidden="true">»</span></a>
32 42 <?php } else { ?>
33 43 <span class="tablenav-pages-navspan button disabled" aria-hidden="true">»</span>
34 44 <?php } ?>
35 45 </span>
36 -</div>
46 +</div>