Changeset 3190838
- Timestamp:
- 11/18/2024 01:18:21 AM (16 months ago)
- File:
-
- 1 edited
-
rainbow-secure/trunk/templates/activation-key.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rainbow-secure/trunk/templates/activation-key.php
r3164550 r3190838 9 9 $activation_status = get_option('rainbow_secure_activation_status', 'NotRequested'); 10 10 11 if ($activation_status === 'Requested' ) {11 if ($activation_status === 'Requested' || $activation_status === 'Activated') { 12 12 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 } 14 18 echo '</div>'; 15 19 } else { … … 59 63 if (strpos($api_response, 'Requested|') !== false) { 60 64 update_option('rainbow_secure_activation_status', 'Requested'); 65 } elseif (strpos($api_response, 'Activated|') !== false) { 66 update_option('rainbow_secure_activation_status', 'Activated'); 61 67 } 62 68 } … … 75 81 case 'Activated|': 76 82 $response_message = 'Your plugin has been activated successfully.'; 83 update_option('rainbow_secure_activation_status', 'Activated'); 77 84 break; 78 85 default:
Note: See TracChangeset
for help on using the changeset viewer.