Changeset 3439349
- Timestamp:
- 01/14/2026 09:41:30 AM (3 months ago)
- Location:
- rank-authority
- Files:
-
- 6 added
- 3 edited
-
tags/1.0.3/rank-authority.php (modified) (6 diffs)
-
tags/1.0.4 (added)
-
tags/1.0.4/assets (added)
-
tags/1.0.4/assets/icon.svg (added)
-
tags/1.0.4/rank-authority.php (added)
-
tags/1.0.4/readme.txt (added)
-
tags/1.0.4/uninstall.php (added)
-
trunk/rank-authority.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rank-authority/tags/1.0.3/rank-authority.php
r3439340 r3439349 194 194 } 195 195 196 .rank-authority-status-banner:hover {196 .rank-authority-status-banner:hover:not(.active) { 197 197 background: #f8fafc; 198 198 } … … 200 200 .rank-authority-status-banner.active { 201 201 background: linear-gradient(135deg, #10b981 0%, #34d399 100%); 202 } 203 204 .rank-authority-status-banner.active:hover { 205 background: linear-gradient(135deg, #059669 0%, #10b981 100%); 202 206 } 203 207 … … 236 240 transition: background 0.3s; 237 241 flex-shrink: 0; 242 pointer-events: auto; 238 243 } 239 244 … … 500 505 margin-right: 8px; 501 506 animation: rank-authority-pulse 2s infinite; 507 display: inline-block; 502 508 } 503 509 … … 644 650 <p id="rank-authority-status-desc"><?php echo $script_enabled === '1' ? 'Your site is being monitored' : 'Click to enable tracking scripts'; ?></p> 645 651 </div> 646 < div class="rank-authority-big-toggle">652 <label class="rank-authority-big-toggle" for="ra_script_enabled" style="cursor: pointer;"> 647 653 <div class="rank-authority-toggle-knob" style="<?php echo $script_enabled === '1' ? 'transform: translateX(36px);' : ''; ?>"></div> 648 </ div>654 </label> 649 655 <input 650 656 type="checkbox" … … 784 790 const checkbox = document.getElementById('ra_script_enabled'); 785 791 const form = document.getElementById('rank-authority-settings-form'); 792 const toggleLabel = statusBanner ? statusBanner.querySelector('.rank-authority-big-toggle') : null; 786 793 787 if (statusBanner && checkbox) { 794 if (statusBanner && checkbox && form) { 795 // Handle click on banner (but not on toggle label itself) 788 796 statusBanner.addEventListener('click', function(e) { 789 // Don't submit if clicking the toggle itself797 // If clicking the toggle label, let it handle the click 790 798 if (e.target.closest('.rank-authority-big-toggle')) { 791 799 return; 792 800 } 793 801 802 e.preventDefault(); 803 e.stopPropagation(); 804 805 // Toggle checkbox 794 806 checkbox.checked = !checkbox.checked; 795 807 796 // Auto-submit form when toggling 797 if (form) { 808 // Submit form 809 form.submit(); 810 }); 811 812 // Handle click on toggle label 813 if (toggleLabel) { 814 toggleLabel.addEventListener('click', function(e) { 815 e.preventDefault(); 816 e.stopPropagation(); 817 818 // Toggle checkbox 819 checkbox.checked = !checkbox.checked; 820 821 // Submit form 798 822 form.submit(); 799 } 800 } );823 }); 824 } 801 825 } 802 826 })(); -
rank-authority/trunk/rank-authority.php
r3439340 r3439349 4 4 * Plugin URI: https://rankauthority.com/plugins/rankauthority 5 5 * Description: Secure API connector to publish posts / overwrite posts from the RA Dashboard to WordPress. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Author: Rank Authority 8 8 * Author URI: https://rankauthority.com … … 194 194 } 195 195 196 .rank-authority-status-banner:hover {196 .rank-authority-status-banner:hover:not(.active) { 197 197 background: #f8fafc; 198 198 } … … 200 200 .rank-authority-status-banner.active { 201 201 background: linear-gradient(135deg, #10b981 0%, #34d399 100%); 202 } 203 204 .rank-authority-status-banner.active:hover { 205 background: linear-gradient(135deg, #059669 0%, #10b981 100%); 202 206 } 203 207 … … 236 240 transition: background 0.3s; 237 241 flex-shrink: 0; 242 pointer-events: auto; 238 243 } 239 244 … … 500 505 margin-right: 8px; 501 506 animation: rank-authority-pulse 2s infinite; 507 display: inline-block; 502 508 } 503 509 … … 620 626 $website_id = get_option($this->option_website_id); 621 627 $token = get_option($this->option_token); 622 $plugin_version = get_file_data(__FILE__, array('Version' => 'Version'), false)['Version'] ?? '1.0. 3';628 $plugin_version = get_file_data(__FILE__, array('Version' => 'Version'), false)['Version'] ?? '1.0.4'; 623 629 624 630 ?> … … 644 650 <p id="rank-authority-status-desc"><?php echo $script_enabled === '1' ? 'Your site is being monitored' : 'Click to enable tracking scripts'; ?></p> 645 651 </div> 646 < div class="rank-authority-big-toggle">652 <label class="rank-authority-big-toggle" for="ra_script_enabled" style="cursor: pointer;"> 647 653 <div class="rank-authority-toggle-knob" style="<?php echo $script_enabled === '1' ? 'transform: translateX(36px);' : ''; ?>"></div> 648 </ div>654 </label> 649 655 <input 650 656 type="checkbox" … … 784 790 const checkbox = document.getElementById('ra_script_enabled'); 785 791 const form = document.getElementById('rank-authority-settings-form'); 792 const toggleLabel = statusBanner ? statusBanner.querySelector('.rank-authority-big-toggle') : null; 786 793 787 if (statusBanner && checkbox) { 794 if (statusBanner && checkbox && form) { 795 // Handle click on banner (but not on toggle label itself) 788 796 statusBanner.addEventListener('click', function(e) { 789 // Don't submit if clicking the toggle itself797 // If clicking the toggle label, let it handle the click 790 798 if (e.target.closest('.rank-authority-big-toggle')) { 791 799 return; 792 800 } 793 801 802 e.preventDefault(); 803 e.stopPropagation(); 804 805 // Toggle checkbox 794 806 checkbox.checked = !checkbox.checked; 795 807 796 // Auto-submit form when toggling 797 if (form) { 808 // Submit form 809 form.submit(); 810 }); 811 812 // Handle click on toggle label 813 if (toggleLabel) { 814 toggleLabel.addEventListener('click', function(e) { 815 e.preventDefault(); 816 e.stopPropagation(); 817 818 // Toggle checkbox 819 checkbox.checked = !checkbox.checked; 820 821 // Submit form 798 822 form.submit(); 799 } 800 } );823 }); 824 } 801 825 } 802 826 })(); -
rank-authority/trunk/readme.txt
r3439340 r3439349 8 8 Tested up to: 6.9 9 9 Requires PHP: 7.4 10 Stable tag: 1.0. 310 Stable tag: 1.0.4 11 11 License: GPLv2 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 139 139 == Changelog == 140 140 141 = 1.0.4 = 142 * Fixed AI SEO Tracking toggle functionality - now works correctly when clicking toggle button 143 * Improved toggle button interaction - both banner and toggle button clicks now work properly 144 * Enhanced visual feedback for active/inactive states 145 * Fixed toggle button label implementation for better accessibility 146 * Improved form submission handling for status changes 147 141 148 = 1.0.3 = 142 149 * Complete UI redesign with modern, beautiful interface … … 167 174 == Upgrade Notice == 168 175 176 = 1.0.4 = 177 Fixed toggle functionality bug. The AI SEO Tracking toggle now works correctly when clicking the toggle button. 178 169 179 = 1.0.3 = 170 180 Major UI update with modern design. All functionality remains the same - only visual improvements.
Note: See TracChangeset
for help on using the changeset viewer.