HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-external-links/templates/partials/nav-tabs.php
<?php
/**
 * Tab Nav
 *
 * @package  WPEL
 * @category WordPress Plugin
 * @version  2.3
 * @link     https://www.webfactoryltd.com/
 * @license  Dual licensed under the MIT and GPLv2+ licenses
 *
 * @var array $vars
 *      @option array  "tabs"
 *      @option string "current_tab"
 *      @option string "page_url"
 */
$set_tab_active_class = function ( $tab ) use ( $vars ) {
    if ( $tab === $vars[ 'current_tab' ] ) {
        echo ' nav-tab-active';
    }
};

// disabled
$first_install = get_option( 'wpel-first-install' );
if(isset($_SERVER['REQUEST_URI'])){
    $redirect_url = sanitize_url(wp_unslash($_SERVER['REQUEST_URI']));
} else {
    $redirect_url = '';
}
$dismiss_url = add_query_arg(array('action' => 'wpel_dismiss_notice', 'notice' => 'rate', 'redirect' => urlencode($redirect_url)), admin_url('admin.php'));
$dismiss_url = wp_nonce_url($dismiss_url, 'wpel_dismiss_rate');

if (false && false == get_option( 'wpel-notice-dismissed-rate', false ) && current_time( 'timestamp' ) - $first_install > ( HOUR_IN_SECONDS / 4 ) ) {
  echo '<div id="rating-notice" class="notice notice-info">
  <p><strong>Help us keep External Links <u>free &amp; maintained</u></strong><br>By taking a minute to rate the plugin you\'ll help us keep it free &amp; maintained. Thank you 👋</p>
  <p><a href="https://wordpress.org/support/plugin/wp-external-links/reviews/#new-post" target="_blank" class="button button-primary">Rate the plugin 👍</a> &nbsp;&nbsp; <a href="' . esc_url($dismiss_url) . '">I\'ve already rated it</a></p>
  </div>';
}
?>
<h2 class="nav-tab-wrapper">
    <?php foreach ( $vars[ 'tabs' ] as $tab_key => $tab_values ):
        if($tab_key == 'admin'){
            continue;
        }

        ?>
        <a class="nav-tab<?php $set_tab_active_class( $tab_key ); ?> nav-tab-<?php echo esc_html($tab_key); ?>" href="<?php echo esc_url($vars[ 'page_url' ]); ?>&tab=<?php echo esc_html($tab_key); ?>">
            <?php WPEL_Plugin::wp_kses_wf($tab_values[ 'icon' ]); ?> <?php WPEL_Plugin::wp_kses_wf($tab_values[ 'title' ]); ?>
        </a>
    <?php endforeach; ?>
</h2>