Plugin Directory

Changeset 3190838


Ignore:
Timestamp:
11/18/2024 01:18:21 AM (16 months ago)
Author:
rsecurewp
Message:

Update - Request activation key page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rainbow-secure/trunk/templates/activation-key.php

    r3164550 r3190838  
    99    $activation_status = get_option('rainbow_secure_activation_status', 'NotRequested');
    1010
    11     if ($activation_status === 'Requested') {
     11    if ($activation_status === 'Requested' || $activation_status === 'Activated') {
    1212        echo '<div style="text-align: center; margin-top: 20px; background-color: #f4f4f4; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">';
    13         echo '<p>' . esc_html__('You have already requested an activation key. Please check your email for further instructions.', 'rainbow-secure') . '</p>';
     13        if ($activation_status === 'Requested') {
     14            echo '<p>' . esc_html__('You have already requested an activation key. Please check your email for further instructions.', 'rainbow-secure') . '</p>';
     15        } else {
     16            echo '<p>' . esc_html__('Your plugin has already been activated. No further action is required.', 'rainbow-secure') . '</p>';
     17        }
    1418        echo '</div>';
    1519    } else {
     
    5963            if (strpos($api_response, 'Requested|') !== false) {
    6064                update_option('rainbow_secure_activation_status', 'Requested');
     65            } elseif (strpos($api_response, 'Activated|') !== false) {
     66                update_option('rainbow_secure_activation_status', 'Activated');
    6167            }
    6268        }
     
    7581                case 'Activated|':
    7682                    $response_message = 'Your plugin has been activated successfully.';
     83                    update_option('rainbow_secure_activation_status', 'Activated');
    7784                    break;
    7885                default:
Note: See TracChangeset for help on using the changeset viewer.