PluginProbe ʕ •ᴥ•ʔ
Redirection / 1.0.3
Redirection v1.0.3
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0
redirect-redirection / includes / settings / layouts / common / custom-pagination.php
redirect-redirection / includes / settings / layouts / common Last commit date
custom-body-data.php 4 years ago custom-dropdown.php 4 years ago custom-filter.php 4 years ago custom-pagination.php 4 years ago default-settings-modal.php 4 years ago delete-confirmation-prompt.php 4 years ago header-settings-paragraph.php 4 years ago index.html 4 years ago single-redirection.php 4 years ago
custom-pagination.php
28 lines
1 <?php
2 if (!defined("ABSPATH")) {
3 exit();
4 }
5 $prevClass = $currentOffset == 0 ? "ir-hidden" : "";
6 $nextClass = ($currentOffset + 1) == $countPages ? "ir-hidden" : "";
7 ?>
8 <a href="#!" class="custom-pagination__btn custom-pagination__btn--arrow ir-prev-page <?php echo esc_attr($prevClass); ?>">
9 <svg xmlns="http://www.w3.org/2000/svg" width="8" height="13" viewBox="0 0 8 13" fill="none">
10 <path d="M6.38928 13C6.78815 13 7.1873 12.8528 7.49917 12.5568C8.1438 11.9438 8.1695 10.924 7.55679 10.2791L3.95285 6.48873L7.55312 2.72462C8.16809 2.08196 8.14549 1.06219 7.50256 0.44694C6.85934 -0.168312 5.83985 -0.145431 5.22488 0.497505L0.562469 5.37122C-0.0318794 5.99268 -0.0330095 6.97149 0.558796 7.59494L5.22093 12.4992C5.53816 12.8316 5.96273 13 6.38928 13Z" fill="currentColor" />
11 </svg>
12 </a>
13 <?php
14 for ($i = 0; $i < $countPages; $i++) {
15 $page = $i + 1;
16 $offset = $i ? $i : "";
17 $classActive = ($i === $currentOffset) ? "custom-pagination__btn--active" : "";
18 ?>
19 <a href="#!" class="custom-pagination__btn <?php echo esc_attr($classActive); ?> <?php echo "ir-page-" . intval($page); ?>" data-offset="<?php echo intval($i); ?>"><?php echo intval($page); ?></a>
20 <?php
21 }
22 ?>
23 <a href="#!" class="custom-pagination__btn ir-next-page <?php echo esc_attr($nextClass); ?>">
24 <svg xmlns="http://www.w3.org/2000/svg" style="transform: rotateY(180deg);" width="8" height="13" viewBox="0 0 8 13" fill="none">
25 <path d="M6.38928 13C6.78815 13 7.1873 12.8528 7.49917 12.5568C8.1438 11.9438 8.1695 10.924 7.55679 10.2791L3.95285 6.48873L7.55312 2.72462C8.16809 2.08196 8.14549 1.06219 7.50256 0.44694C6.85934 -0.168312 5.83985 -0.145431 5.22488 0.497505L0.562469 5.37122C-0.0318794 5.99268 -0.0330095 6.97149 0.558796 7.59494L5.22093 12.4992C5.53816 12.8316 5.96273 13 6.38928 13Z" fill="currentColor" />
26 </svg>
27 </a>
28 <input type="hidden" class="ir-count-pages" value="<?php echo intval($countPages); ?>" />