common
4 years ago
redirection-rules
4 years ago
specific-url-redirections
4 years ago
automatic-redirects.php
4 years ago
change-urls.php
4 years ago
index.html
4 years ago
redirection-rules.php
4 years ago
specific-url-redirections.php
4 years ago
redirection-rules.php
23 lines
| 1 | <?php |
| 2 | if (!defined("ABSPATH")) { |
| 3 | exit(); |
| 4 | } |
| 5 | |
| 6 | $redirectionType = IRRPConstants::TYPE_REDIRECTION_RULE; |
| 7 | $args = ["type" => $redirectionType]; |
| 8 | $countRedirects = intval($this->dbManager->getCount($args)); |
| 9 | $countPages = ceil($countRedirects / self::PER_PAGE); |
| 10 | $settingsData = $this->data; |
| 11 | ?> |
| 12 | <?php include_once "redirection-rules/header.php"; ?> |
| 13 | <?php $customBodyClass = ($countRedirects > 0) ? "" : "ir-hidden"; ?> |
| 14 | <div class="custom-body <?php echo esc_attr($customBodyClass); ?>"> |
| 15 | <h3 class="custom-body__heading"> |
| 16 | <span class="custom-body__heading-primary"><?php _e( "Your redirection rules", "redirect-redirection" ); ?></span> |
| 17 | <!--<span class="custom-body__heading-secondary">(Your redirection rules)</span>--> |
| 18 | </h3> |
| 19 | <?php include_once "common/custom-filter.php"; ?> |
| 20 | <?php include_once "common/custom-body-data.php"; ?> |
| 21 | <textarea class="ir-selected-redirects ir-hidden"></textarea> |
| 22 | <input type="hidden" class="ir-redirection-type" value="<?php echo esc_attr(IRRPConstants::TYPE_REDIRECTION_RULE); ?>" /> |
| 23 | </div> |