html-settings.php
54 lines
| 1 | <?php |
| 2 | if (!defined("ABSPATH")) { |
| 3 | exit(); |
| 4 | } |
| 5 | $activeTab = empty($_COOKIE["ir_active_tab"]) ? IrrPRedirection::$TABS["specific-url-redirections"] : trim(sanitize_text_field($_COOKIE["ir_active_tab"])); |
| 6 | ?> |
| 7 | <div class="custom-container" id="irrp_container_main"> |
| 8 | <div class="page"> |
| 9 | <?php include_once "layouts/common/delete-confirmation-prompt.php"; ?> |
| 10 | <h1 class="page__heading"><?php _e( "Welcome to Ultimate Redirect!", "redirect-redirection" ); ?></h1> |
| 11 | <div class="tabs-container"> |
| 12 | <div class="tabs"> |
| 13 | <button class="tabs__button <?php echo ($activeTab === IrrPRedirection::$TABS["specific-url-redirections"]) ? "tabs__button--active" : "" ?>" data-tab="<?php esc_attr_e(IrrPRedirection::$TABS["specific-url-redirections"]); ?>"><?php _e( "Specific URL Redirections", "redirect-redirection" ); ?></button> |
| 14 | <button class="tabs__button <?php echo ($activeTab === IrrPRedirection::$TABS["redirection-rules"]) ? "tabs__button--active" : "" ?>" data-tab="<?php esc_attr_e(IrrPRedirection::$TABS["redirection-rules"]); ?>"><?php _e( "Redirection Rules", "redirect-redirection" ); ?></button> |
| 15 | <button class="tabs__button <?php echo ($activeTab === IrrPRedirection::$TABS["redirection-and-404-logs"]) ? "tabs__button--active" : "" ?>" data-tab="<?php esc_attr_e(IrrPRedirection::$TABS["redirection-and-404-logs"]); ?>"><?php _e( "Redirection & 404 Logs", "redirect-redirection" ); ?></button> |
| 16 | <button class="tabs__button <?php echo ($activeTab === IrrPRedirection::$TABS["automatic-redirects"]) ? "tabs__button--active" : "" ?>" data-tab="<?php esc_attr_e(IrrPRedirection::$TABS["automatic-redirects"]); ?>"><?php _e( "Automatic Redirects", "redirect-redirection" ); ?></button> |
| 17 | <button class="tabs__button <?php echo ($activeTab === IrrPRedirection::$TABS["change-urls"]) ? "tabs__button--active" : "" ?>" data-tab="<?php esc_attr_e(IrrPRedirection::$TABS["change-urls"]); ?>"><?php _e( "Change URLs", "redirect-redirection" ); ?></button> |
| 18 | </div> |
| 19 | </div> |
| 20 | <div class="page__block"> |
| 21 | <?php |
| 22 | if ($activeTab === IrrPRedirection::$TABS["redirection-rules"]) { |
| 23 | include_once "layouts/redirection-rules.php"; |
| 24 | } else if ($activeTab === IrrPRedirection::$TABS["redirection-and-404-logs"]) { |
| 25 | include_once "layouts/redirection-and-404-logs.php"; |
| 26 | } else if ($activeTab === IrrPRedirection::$TABS["automatic-redirects"]) { |
| 27 | include_once "layouts/automatic-redirects.php"; |
| 28 | } else if ($activeTab === IrrPRedirection::$TABS["change-urls"]) { |
| 29 | include_once "layouts/change-urls.php"; |
| 30 | } else { |
| 31 | include_once "layouts/specific-url-redirections.php"; |
| 32 | } |
| 33 | ?> |
| 34 | </div> |
| 35 | </div> |
| 36 | <jdiv class="label_e50 _bottom_ea7 notranslate" id="irrp_support_chat" style="background: linear-gradient(95deg, rgb(47, 50, 74) 20%, rgb(66, 72, 103) 80%);right: 30px;bottom: 0px;width: 310px;"> |
| 37 | <jdiv class="hoverl_bc6"></jdiv> |
| 38 | <jdiv class="text_468 _noAd_b4d contentTransitionWrap_c73" style="font-size: 15px;font-family: Arial, Arial;font-style: normal;color: rgb(240, 241, 241);position: absolute;top: 8px;line-height: 13px;"> |
| 39 | <span><?php _e('Connect with support (click to load)', 'redirect-redirection') ?></span><br> |
| 40 | <span style="color: #eee;font-size: 10px;"> |
| 41 | <?php _e('This will establish connection to the chat servers', 'redirect-redirection'); ?> |
| 42 | </span> |
| 43 | </jdiv> |
| 44 | <jdiv class="leafCont_180"> |
| 45 | <jdiv class="leaf_2cc _bottom_afb"> |
| 46 | <jdiv class="cssLeaf_464"></jdiv> |
| 47 | </jdiv> |
| 48 | </jdiv> |
| 49 | </jdiv> |
| 50 | </div> |
| 51 | <div style="margin-top: 90px;"> |
| 52 | <?php do_action('ins_global_print_carrousel'); ?> |
| 53 | </div> |
| 54 |