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-body-data.php
59 lines
| 1 | <?php |
| 2 | if (!defined("ABSPATH")) { |
| 3 | exit(); |
| 4 | } |
| 5 | ?> |
| 6 | <div class="custom-body__data"> |
| 7 | <div class="flex-table"> |
| 8 | <div class="flex-table__header"> |
| 9 | <span class="flex-table__heading"> |
| 10 | <input type="checkbox" class="ir-select-all-specific-redirects-chk"> |
| 11 | </span> |
| 12 | <span class="flex-table__heading"> |
| 13 | <?php _e( "Status", "redirect-redirection" ); ?> |
| 14 | </span> |
| 15 | <span class="flex-table__heading"> |
| 16 | <?php _e( "Redirect from…", "redirect-redirection" ); ?> |
| 17 | </span> |
| 18 | <span class="flex-table__heading"> |
| 19 | <?php _e( "…to:", "redirect-redirection" ); ?> |
| 20 | </span> |
| 21 | <span class="flex-table__heading"> |
| 22 | <?php _e( "Date added", "redirect-redirection" ); ?> |
| 23 | </span> |
| 24 | <span class="flex-table__heading"> |
| 25 | <?php _e( "Type", "redirect-redirection" ); ?> |
| 26 | </span> |
| 27 | </div> |
| 28 | |
| 29 | <div class="flex-table__body"> |
| 30 | <?php |
| 31 | $args = [ |
| 32 | "offset" => 0, |
| 33 | "where" => [ |
| 34 | "condition" => "AND", |
| 35 | "clauses" => [ |
| 36 | ["column" => "type", "value" => $redirectionType, "compare" => "="] |
| 37 | ], |
| 38 | ] |
| 39 | ]; |
| 40 | $redirects = $this->dbManager->getAll($args); |
| 41 | |
| 42 | $html = $this->helper->buildRedirectsHtml($redirects); |
| 43 | echo $html; |
| 44 | ?> |
| 45 | </div> |
| 46 | <?php $selectAllClass = ($countPages > 1) ? "" : "ir-hidden"; ?> |
| 47 | <div class="table-select-all d-block w-100 <?php echo esc_attr($selectAllClass); ?>"> |
| 48 | <input type="hidden" class="ir-redirects-count" value="<?php echo esc_attr($countRedirects); ?>" /> |
| 49 | <button class="table-select-all__button ir-select-all-specific-redirects" data-all-checked="false"><?php _e( "Select all", "redirect-redirection" ); ?></button> |
| 50 | <span><?php _e( "(also from other pages)", "redirect-redirection" ); ?></span> |
| 51 | </div> |
| 52 | |
| 53 | <?php $paginationClass = ($countPages > 1) ? "" : " ir-hidden"; ?> |
| 54 | <div class="custom-pagination <?php echo esc_attr($paginationClass); ?>"> |
| 55 | <?php $this->helper->buildPaginationHtml($countRedirects, $countPages, 0); ?> |
| 56 | </div> |
| 57 | |
| 58 | </div> |
| 59 | </div> |