about-us
1 day ago
partials
1 day ago
passkeys
1 day ago
policies
1 day ago
reports
1 day ago
support
1 day ago
customize-code-page.php
1 day ago
customize-setup-wizard.php
1 day ago
customize-user-profile.php
1 day ago
customize-user-prompts.php
1 day ago
email-settings.php
1 day ago
general-settings.php
1 day ago
generic-settings.php
1 day ago
import-export.php
1 day ago
index.php
1 day ago
plugins-integrations.php
1 day ago
providers-integrations.php
1 day ago
sidebar.php
1 day ago
white-labeling.php
1 day ago
sidebar.php
112 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Sidebar template — shared across all admin settings pages. |
| 4 | * |
| 5 | * Renders different content based on license status: |
| 6 | * - Premium: Setup & Guides, Support & Troubleshooting, Our Other Plugins |
| 7 | * - Free: Upgrade promotional banner |
| 8 | * |
| 9 | * @package wp2fa |
| 10 | * @subpackage admin |
| 11 | * @copyright 2026 Melapress |
| 12 | * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 |
| 13 | * @link https://wordpress.org/plugins/wp-2fa/ |
| 14 | * @since 2.10.0 |
| 15 | */ |
| 16 | |
| 17 | declare( strict_types=1 ); |
| 18 | |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; |
| 21 | } |
| 22 | |
| 23 | $wp2fa_is_premium = false; |
| 24 | if ( class_exists( '\WP2FA\Licensing\Licensing_Factory' ) ) { |
| 25 | $wp2fa_is_premium = \WP2FA\Licensing\Licensing_Factory::has_active_valid_license(); |
| 26 | } |
| 27 | ?> |
| 28 | <!-- Right: Sidebar --> |
| 29 | <div class="wrap mp-sidebar"> |
| 30 | |
| 31 | <?php if ( $wp2fa_is_premium ) { ?> |
| 32 | |
| 33 | <!-- Setup & Guides --> |
| 34 | <div class="mp-sidebar-card"> |
| 35 | <h3 class="mp-sidebar-card-title"><?php \esc_html_e( 'SETUP & GUIDES', 'wp-2fa' ); ?></h3> |
| 36 | <ul class="mp-sidebar-links"> |
| 37 | <li><a href="https://melapress.com/support/kb/wp-2fa-plugin-getting-started/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_1" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( 'Getting started', 'wp-2fa' ); ?></a></li> |
| 38 | <li><a href="https://melapress.com/support/kb/wp-2fa-set-up-passkeys/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_2" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( 'Using Passkeys', 'wp-2fa' ); ?></a></li> |
| 39 | <li><a href="https://melapress.com/support/kb/wp-2fa-configure-2fa-policies-enforce/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_3" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( 'Configuring 2FA policies', 'wp-2fa' ); ?></a></li> |
| 40 | <li><a href="https://melapress.com/support/kb/wp-2fa-how-to-enable-2fa-backup-methods/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_4" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( 'Using backup methods', 'wp-2fa' ); ?></a></li> |
| 41 | <li><a href="https://melapress.com/support/kb/wp-2fa-configure-2fa-front-end-page-wordpress/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_5" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( '2FA without dashboard access', 'wp-2fa' ); ?></a></li> |
| 42 | </ul> |
| 43 | </div> |
| 44 | |
| 45 | <!-- Support & Troubleshooting --> |
| 46 | <div class="mp-sidebar-card"> |
| 47 | <h3 class="mp-sidebar-card-title"><?php \esc_html_e( 'SUPPORT & TROUBLESHOOTING', 'wp-2fa' ); ?></h3> |
| 48 | <ul class="mp-sidebar-links"> |
| 49 | <li><a href="https://melapress.com/support/kb/troubleshoot-2fa-email-delivery/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_6" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( 'Troubleshoot 2FA email delivery', 'wp-2fa' ); ?></a></li> |
| 50 | <li><a href="https://melapress.com/support/kb/category/wp-2fa-plugin/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_7" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( 'WP 2FA Knowledge base', 'wp-2fa' ); ?></a></li> |
| 51 | <li><a href="https://melapress.com/support/submit-ticket/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_8" target="_blank" rel="noopener noreferrer"><?php \esc_html_e( 'Open support ticket (included in your license)', 'wp-2fa' ); ?></a></li> |
| 52 | </ul> |
| 53 | </div> |
| 54 | |
| 55 | <!-- Our Other Plugins --> |
| 56 | <div class="mp-sidebar-card"> |
| 57 | <h3 class="mp-sidebar-card-title"><?php \esc_html_e( 'OUR OTHER PLUGINS', 'wp-2fa' ); ?></h3> |
| 58 | |
| 59 | <p class="mp-sidebar-promo-text"><?php \esc_html_e( 'Get full visibility into everything happening on your WordPress website with real-time activity logs.', 'wp-2fa' ); ?></p> |
| 60 | <a href="https://melapress.com/wordpress-activity-log/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_wsal_promo" target="_blank" rel="noopener noreferrer" class="mp-sidebar-promo-link"><?php \esc_html_e( 'Explore WP Activity Log', 'wp-2fa' ); ?> →</a> |
| 61 | |
| 62 | <hr class="mp-sidebar-divider"> |
| 63 | |
| 64 | <p class="mp-sidebar-promo-text"><?php \esc_html_e( 'Give users and administrators better control over login security, access behavior, and account protection.', 'wp-2fa' ); ?></p> |
| 65 | <a href="https://melapress.com/wordpress-login-security/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=premium_sidebar_mls_promo" target="_blank" rel="noopener noreferrer" class="mp-sidebar-promo-link"><?php \esc_html_e( 'Explore Melapress Login Security', 'wp-2fa' ); ?> →</a> |
| 66 | </div> |
| 67 | |
| 68 | <!-- Footer --> |
| 69 | <div class="mp-sidebar-footer"> |
| 70 | <?php \esc_html_e( 'Made with love by', 'wp-2fa' ); ?> |
| 71 | <svg class="mp-sidebar-footer-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none"><path d="M17.7529 3.95312V14.1943L8.87598 18.1475L0 14.1943V3.95312L8.87598 0L17.7529 3.95312ZM4.54883 4.52441C4.19983 4.5138 2.97212 4.28596 2.875 4.84668L3.00488 13.25C3.05625 13.3223 3.61205 13.4266 3.73535 13.4268C3.94644 13.4268 4.72168 13.3678 4.90918 13.333C5.41306 13.2384 5.45432 12.4201 5.49805 12.0039C5.53894 11.6101 5.57077 11.0304 5.58789 10.627C5.62593 9.7139 5.52137 8.80373 5.58789 7.89453C6.03201 7.57598 6.39423 6.95829 7.03711 7.2334C7.47221 7.55758 7.52693 7.84655 7.61914 8.24023C7.64186 8.34097 7.62815 8.6533 7.6709 8.88184C7.88103 10.0074 7.44013 11.5868 7.57422 12.7441C7.5894 12.8772 7.58462 12.9805 7.71387 13.0605H10.0645C10.4379 13.0605 10.2015 12.2028 10.1973 12.0098C10.1706 10.7521 9.97649 8.65923 10.876 7.73633C11.2383 7.36471 11.6909 7.50409 12.0713 7.76758C12.8064 9.51863 12.2889 11.4894 12.501 13.3428C12.6107 13.5018 13.2459 13.4047 13.4902 13.4395C14.2253 13.5437 14.4868 14.0161 14.6865 12.9092C14.8558 11.9748 14.7669 10.6666 14.8145 9.71191C14.8858 8.28521 15.0266 6.86068 14.1289 5.63379C13.4936 4.76502 12.3096 4.76769 11.4395 5.2793C10.9156 5.58726 10.5844 6.14419 10.0205 6.3623C10.0243 6.14125 9.50074 5.45094 9.34668 5.34766C9.28285 5.30512 8.51627 4.87872 8.46777 4.86328C7.72408 4.62588 6.62732 5.09855 6.13281 5.67578C5.9674 5.8688 5.85528 6.14195 5.70508 6.33691C5.64708 6.41122 5.70707 6.50611 5.49805 6.45215L5.54688 4.52148C5.49267 4.43172 4.75052 4.53019 4.54883 4.52441Z" fill="#626262"/></svg> |
| 72 | <svg class="mp-sidebar-footer-text" xmlns="http://www.w3.org/2000/svg" width="72" height="14" viewBox="0 0 72 14" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.38973 2.60961C8.80365 2.60961 8.29368 2.7555 7.86268 3.0473C7.43168 3.33909 7.14149 3.72717 6.99306 4.21155H6.91029C6.80278 3.72328 6.5535 3.3352 6.1596 3.04535C5.76571 2.7555 5.29284 2.61058 4.74101 2.61058C4.18918 2.61058 3.72678 2.75356 3.33384 3.04049C2.93994 3.32644 2.66117 3.71745 2.49562 4.21252H2.40714V2.7166H0V10.8615H2.53177V6.04109C2.53177 5.77264 2.57934 5.53921 2.67449 5.34079C2.76963 5.14334 2.90093 4.98967 3.07029 4.88268C3.23964 4.77471 3.43469 4.72122 3.65542 4.72122C3.98367 4.72122 4.24722 4.83015 4.44797 5.04997C4.64777 5.26881 4.74767 5.56742 4.74767 5.94675V10.8625H7.1805V6.00024C7.1805 5.61119 7.27945 5.30091 7.4783 5.06942C7.67715 4.83793 7.95021 4.72219 8.29844 4.72219C8.62288 4.72219 8.88642 4.82918 9.09098 5.04316C9.29459 5.25617 9.39639 5.56742 9.39639 5.97301V10.8625H11.9282V5.3797C11.9282 4.52085 11.6941 3.84389 11.2241 3.35173C10.755 2.8586 10.1442 2.61155 9.39164 2.61155M15.3315 5.90784C15.3448 5.6462 15.4085 5.40888 15.5322 5.20073C15.662 4.98114 15.8456 4.80007 16.065 4.6755C16.2896 4.54614 16.5436 4.48195 16.8262 4.48195C17.1087 4.48195 17.3533 4.54322 17.5683 4.6648C17.7843 4.78638 17.9546 4.95562 18.0783 5.17155C18.2019 5.38748 18.2657 5.63258 18.2695 5.90881H15.3296L15.3315 5.90784ZM19.5444 3.68049C19.2029 3.32742 18.7966 3.05994 18.3275 2.87903C17.8585 2.69909 17.3409 2.60863 16.7748 2.60863C15.9746 2.60863 15.2782 2.78468 14.6883 3.13581C14.0984 3.4879 13.6417 3.97909 13.3163 4.61033C12.9919 5.24061 12.8301 5.97787 12.8301 6.81921C12.8301 7.66055 12.9909 8.43185 13.3135 9.05921C13.636 9.68657 14.0984 10.169 14.7007 10.5075C15.3029 10.845 16.0203 11.0133 16.8509 11.0133C17.5455 11.0133 18.1553 10.9043 18.6834 10.6874C19.2114 10.4695 19.6386 10.1641 19.964 9.77021C20.2903 9.37629 20.5016 8.91234 20.5986 8.37836L18.2743 8.3093C18.2086 8.48924 18.1106 8.64195 17.9793 8.76547C17.848 8.889 17.691 8.98334 17.5083 9.04657C17.3257 9.11076 17.1211 9.14188 16.8975 9.14188C16.5731 9.14188 16.2934 9.07283 16.0593 8.93568C15.8243 8.79757 15.6426 8.60401 15.516 8.35502C15.3885 8.10602 15.3248 7.8152 15.3248 7.48255V7.4135H20.6262V6.76669C20.6262 6.09848 20.5311 5.50614 20.3417 4.98772C20.1514 4.47027 19.886 4.03453 19.5444 3.68049ZM21.5605 10.8605H24.0923V0H21.5605V10.8605ZM29.8152 7.96498C29.8152 8.23052 29.7505 8.46298 29.6182 8.66237C29.4869 8.86176 29.3119 9.01836 29.0931 9.13119C28.8742 9.24401 28.6278 9.3014 28.3557 9.3014C28.0655 9.3014 27.8267 9.2304 27.6383 9.08936C27.4499 8.94833 27.3567 8.7431 27.3567 8.47368C27.3567 8.29666 27.4004 8.14395 27.488 8.01556C27.5755 7.8862 27.7039 7.78116 27.8714 7.69945C28.0379 7.61872 28.2415 7.55842 28.4794 7.51951L28.8466 7.46115C28.9741 7.43976 29.0988 7.41544 29.2196 7.38723C29.332 7.36145 29.4434 7.33127 29.5535 7.29678C29.6553 7.26468 29.7419 7.22967 29.8142 7.19076V7.96498H29.8152ZM31.3261 3.32255C31.0092 3.09106 30.6363 2.91404 30.2081 2.79246C29.78 2.66991 29.3128 2.60961 28.8057 2.60961C28.094 2.60961 27.4861 2.72243 26.9809 2.94614C26.4756 3.17082 26.0779 3.47818 25.7906 3.86918C25.5023 4.25921 25.3235 4.70274 25.2549 5.19684L27.5898 5.28243C27.645 5.02079 27.7744 4.81556 27.978 4.66675C28.1816 4.51793 28.4508 4.44401 28.7857 4.44401C29.0959 4.44401 29.3423 4.51793 29.526 4.66675C29.7086 4.81556 29.8 5.02565 29.8 5.29799V5.32425C29.8 5.49058 29.7372 5.61897 29.6106 5.70845C29.485 5.79891 29.2843 5.86796 29.0074 5.91562C28.7315 5.96328 28.3671 6.00802 27.9152 6.05082C27.5118 6.08584 27.1321 6.15392 26.7763 6.25508C26.4205 6.35623 26.1074 6.50407 25.8344 6.69763C25.5613 6.89216 25.3472 7.14505 25.1922 7.45629C25.0361 7.76754 24.9591 8.14979 24.9591 8.60207C24.9591 9.13994 25.0723 9.58541 25.2978 9.9414C25.5233 10.2964 25.8325 10.5619 26.2245 10.737C26.6155 10.9121 27.0655 10.9996 27.5726 10.9996C27.9418 10.9996 28.2739 10.952 28.5698 10.8567C28.8647 10.7613 29.1216 10.6184 29.3414 10.4277C29.5602 10.2371 29.741 10.0036 29.8818 9.72742H29.9436V10.8625H32.3251V5.3262C32.3251 4.89532 32.2375 4.51112 32.0634 4.17556C31.8893 3.84 31.6438 3.55599 31.3251 3.3245L31.3261 3.32255ZM38.7349 7.93289C38.6226 8.25775 38.458 8.50967 38.2402 8.68863C38.0232 8.86663 37.7587 8.95611 37.4476 8.95611C37.1365 8.95611 36.8777 8.86663 36.6579 8.68863C36.4381 8.50967 36.2716 8.25775 36.1556 7.93289C36.0395 7.60802 35.9824 7.22578 35.9824 6.78711C35.9824 6.34845 36.0395 5.95842 36.1556 5.63647C36.2716 5.31453 36.4381 5.06748 36.6551 4.89435C36.872 4.72122 37.1365 4.63465 37.4467 4.63465C37.7568 4.63465 38.0261 4.72316 38.2411 4.90018C38.4561 5.0772 38.6207 5.3262 38.733 5.64815C38.8453 5.97009 38.9014 6.3504 38.9014 6.78809C38.9014 7.22578 38.8453 7.60802 38.733 7.93386M39.889 3.05508C39.4076 2.75842 38.8909 2.60961 38.3391 2.60961C37.9224 2.60961 37.5637 2.68255 37.2649 2.82942C36.9662 2.97629 36.7217 3.16498 36.5295 3.39453C36.3382 3.62407 36.1908 3.86237 36.0871 4.1104H36.009V2.71562H33.5039V13.9146H36.0357V9.5397H36.088C36.1946 9.79064 36.3478 10.026 36.5466 10.2458C36.7445 10.4647 36.9909 10.6417 37.284 10.7759C37.577 10.9102 37.9243 10.9773 38.3248 10.9773C38.9109 10.9773 39.4456 10.8216 39.9271 10.5104C40.4085 10.1991 40.7919 9.73325 41.0764 9.11076C41.3609 8.48827 41.5036 7.71599 41.5036 6.79295C41.5036 5.86991 41.3552 5.04705 41.0583 4.42845C40.7615 3.80888 40.3723 3.35173 39.8909 3.05508M51.468 2.60961C52.0341 2.60961 52.5517 2.70006 53.0207 2.88C53.4898 3.06091 53.8961 3.32742 54.2376 3.68146C54.5792 4.03453 54.8446 4.47125 55.0349 4.98869C55.2243 5.50711 55.3194 6.09945 55.3194 6.76766V7.41447H50.018V7.48353C50.018 7.81617 50.0817 8.10699 50.2092 8.35599C50.3367 8.60499 50.5175 8.79854 50.7525 8.93666C50.9866 9.0738 51.2663 9.14286 51.5907 9.14286C51.8143 9.14286 52.0189 9.11076 52.2015 9.04754C52.3842 8.98432 52.5412 8.89094 52.6725 8.76644C52.8038 8.64292 52.9018 8.49021 52.9675 8.31027L55.2918 8.37933C55.1948 8.91331 54.9836 9.37629 54.6572 9.77119C54.3309 10.1651 53.9037 10.4715 53.3766 10.6884C52.8485 10.9063 52.2377 11.0142 51.5441 11.0142C50.7126 11.0142 49.9961 10.846 49.3939 10.5085C48.7916 10.1709 48.3292 9.68754 48.0067 9.06018C47.6841 8.43283 47.5233 7.68584 47.5233 6.82018C47.5233 5.95453 47.6851 5.24255 48.0095 4.61131C48.334 3.98006 48.7916 3.48888 49.3815 3.13678C49.9723 2.78565 50.6678 2.60961 51.468 2.60961ZM46.863 2.60377C46.9842 2.60403 47.1053 2.61183 47.2255 2.62711C47.3492 2.64267 47.4653 2.66699 47.5728 2.69909V4.9527C47.452 4.90991 47.294 4.87684 47.099 4.85155C46.904 4.82723 46.7298 4.81459 46.5786 4.81459C46.2779 4.81459 46.0086 4.88267 45.7679 5.01885C45.5323 5.15103 45.337 5.34729 45.2037 5.5859C45.0667 5.82809 44.9992 6.11112 44.9992 6.43696V10.8596H42.4674V2.71465H44.9259V4.19988H45.0087C45.1533 3.66201 45.3902 3.26225 45.7185 2.99866C46.0458 2.73508 46.4273 2.60377 46.8621 2.60377H46.863ZM51.5203 4.48097C51.2377 4.48097 50.9837 4.54517 50.7592 4.67453C50.5398 4.7991 50.3561 4.98017 50.2264 5.19976C50.1017 5.40888 50.038 5.6462 50.0256 5.90687H52.9656C52.9618 5.63064 52.898 5.38553 52.7743 5.16961C52.6525 4.95647 52.4762 4.78128 52.2644 4.66286C52.0484 4.5403 51.801 4.48 51.5222 4.48L51.5203 4.48097ZM61.0328 6.04596L59.5 5.74833C59.1661 5.67733 58.933 5.58395 58.8036 5.46723C58.6742 5.35052 58.6114 5.2124 58.6142 5.05386C58.6114 4.84863 58.7122 4.6862 58.9168 4.56559C59.1223 4.44498 59.3716 4.38565 59.6646 4.38565C59.8892 4.38565 60.0871 4.42359 60.2574 4.49945C60.4286 4.57532 60.5666 4.68037 60.6741 4.81167C60.7807 4.94395 60.8463 5.09568 60.8711 5.26492L63.1954 5.2017C63.1298 4.39538 62.7863 3.76219 62.166 3.30018C61.5447 2.83915 60.695 2.60863 59.619 2.60863C58.9006 2.60863 58.2784 2.71076 57.7503 2.91599C57.2223 3.12122 56.8151 3.4169 56.5287 3.80401C56.2423 4.19112 56.1005 4.65702 56.1043 5.2017C56.1005 5.82419 56.2937 6.33581 56.6838 6.73654C57.0739 7.13824 57.6676 7.41252 58.4649 7.56134L59.8521 7.83173C60.1832 7.89495 60.4267 7.98249 60.5818 8.09435C60.7378 8.2062 60.8168 8.35307 60.8206 8.5369C60.8168 8.74213 60.7141 8.9065 60.5095 9.03003C60.3059 9.15356 60.0414 9.21581 59.7179 9.21581C59.3583 9.21581 59.0633 9.13799 58.8321 8.98237C58.6009 8.82675 58.4582 8.60109 58.4021 8.30347L55.9017 8.36669C55.9949 9.17301 56.3679 9.81495 57.0225 10.2945C57.6771 10.774 58.5714 11.0133 59.7065 11.0133C60.4172 11.0133 61.049 10.8995 61.6008 10.6709C62.1526 10.4433 62.5884 10.1223 62.9081 9.70894C63.2268 9.29459 63.3886 8.80924 63.3924 8.24997C63.3886 7.65666 63.1926 7.17909 62.8053 6.81824C62.4162 6.45739 61.8263 6.19964 61.0318 6.04401M70.8221 6.82018C70.4339 6.45933 69.8431 6.20158 69.0487 6.04596L67.5159 5.7493C67.1819 5.6783 66.9498 5.58492 66.8194 5.46821C66.69 5.35149 66.6272 5.21337 66.6311 5.05483C66.6272 4.85058 66.7281 4.68717 66.9336 4.56657C67.1391 4.44693 67.3884 4.38663 67.6814 4.38663C67.906 4.38663 68.1029 4.42456 68.2742 4.50043C68.4445 4.57629 68.5834 4.68037 68.6909 4.81264C68.7975 4.94492 68.8641 5.09568 68.8879 5.2659L71.2122 5.20267C71.1466 4.39635 70.8031 3.76316 70.1828 3.30116C69.5615 2.84012 68.7118 2.60961 67.6358 2.60961C66.9184 2.60961 66.2952 2.71173 65.7671 2.91696C65.2391 3.12219 64.8319 3.41787 64.5455 3.80499C64.2591 4.1921 64.1174 4.65799 64.1212 5.2017C64.1174 5.82419 64.3105 6.33581 64.7015 6.73751C65.0916 7.13921 65.6853 7.4135 66.4817 7.56231L67.8689 7.83271C68.2 7.89593 68.4435 7.98347 68.5986 8.09532C68.7547 8.20717 68.8336 8.35404 68.8374 8.53787C68.8336 8.7431 68.7309 8.90748 68.5273 9.031C68.3237 9.15453 68.0592 9.21678 67.7357 9.21678C67.376 9.21678 67.0811 9.13897 66.8499 8.98334C66.6187 8.82772 66.476 8.60207 66.4198 8.30444L63.9195 8.36766C64.0127 9.17398 64.3857 9.81593 65.0402 10.2954C65.6939 10.775 66.5892 11.0142 67.7243 11.0142C68.4359 11.0142 69.0667 10.9004 69.6186 10.6719C70.1704 10.4443 70.6062 10.1233 70.9258 9.70991C71.2446 9.29654 71.4063 8.81021 71.4101 8.25191C71.4063 7.65763 71.2103 7.18006 70.8231 6.82018" fill="#626262"/></svg> |
| 73 | </div> |
| 74 | |
| 75 | <?php } else { ?> |
| 76 | |
| 77 | <!-- Free: Upgrade banner --> |
| 78 | <div class="mp-sidebar-card mp-sidebar-upgrade"> |
| 79 | <div class="mp-sidebar-upgrade-header"> |
| 80 | <img src="<?php echo \esc_url( WP_2FA_URL . 'dist/images/wp-2fa-color_opt.png' ); ?>" alt="WP 2FA" class="mp-sidebar-upgrade-logo"> |
| 81 | <span class="mp-sidebar-upgrade-title"><?php \esc_html_e( 'WP2FA Premium', 'wp-2fa' ); ?></span> |
| 82 | </div> |
| 83 | |
| 84 | <p class="mp-sidebar-upgrade-tagline"><strong><?php \esc_html_e( 'Stronger authentication. Smoother logins.', 'wp-2fa' ); ?></strong></p> |
| 85 | |
| 86 | <ul class="mp-sidebar-upgrade-features"> |
| 87 | <li><?php \esc_html_e( 'Passkeys, SMS, one-click login links, & more advanced authentication methods', 'wp-2fa' ); ?></li> |
| 88 | <li><?php \esc_html_e( 'Faster logins with trusted devices', 'wp-2fa' ); ?></li> |
| 89 | <li><?php \esc_html_e( 'Email-based 2FA with zero setup', 'wp-2fa' ); ?></li> |
| 90 | <li><?php \esc_html_e( 'WooCommerce integration', 'wp-2fa' ); ?></li> |
| 91 | <li><?php \esc_html_e( 'Fully branded and white-label 2FA', 'wp-2fa' ); ?></li> |
| 92 | <li><?php \esc_html_e( 'Flexible policies for different user roles', 'wp-2fa' ); ?></li> |
| 93 | <li><?php \esc_html_e( 'Backup methods to prevent lockouts', 'wp-2fa' ); ?></li> |
| 94 | </ul> |
| 95 | |
| 96 | <a href="https://melapress.com/wordpress-2fa/pricing/?utm_source=plugin&utm_medium=wp2fa&utm_campaign=sidebar_buy_now" target="_blank" rel="noopener noreferrer" class="mp-sidebar-upgrade-btn"><?php \esc_html_e( 'Buy now', 'wp-2fa' ); ?></a> |
| 97 | |
| 98 | <p class="mp-sidebar-upgrade-guarantee-title"><strong><?php \esc_html_e( "Stronger security that your users won't push back on", 'wp-2fa' ); ?></strong></p> |
| 99 | <p class="mp-sidebar-upgrade-guarantee"><?php \esc_html_e( '30-day money back guarantee', 'wp-2fa' ); ?></p> |
| 100 | </div> |
| 101 | |
| 102 | <!-- Footer --> |
| 103 | <div class="mp-sidebar-footer"> |
| 104 | <?php \esc_html_e( 'Made with love by', 'wp-2fa' ); ?> |
| 105 | <svg class="mp-sidebar-footer-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none"><path d="M17.7529 3.95312V14.1943L8.87598 18.1475L0 14.1943V3.95312L8.87598 0L17.7529 3.95312ZM4.54883 4.52441C4.19983 4.5138 2.97212 4.28596 2.875 4.84668L3.00488 13.25C3.05625 13.3223 3.61205 13.4266 3.73535 13.4268C3.94644 13.4268 4.72168 13.3678 4.90918 13.333C5.41306 13.2384 5.45432 12.4201 5.49805 12.0039C5.53894 11.6101 5.57077 11.0304 5.58789 10.627C5.62593 9.7139 5.52137 8.80373 5.58789 7.89453C6.03201 7.57598 6.39423 6.95829 7.03711 7.2334C7.47221 7.55758 7.52693 7.84655 7.61914 8.24023C7.64186 8.34097 7.62815 8.6533 7.6709 8.88184C7.88103 10.0074 7.44013 11.5868 7.57422 12.7441C7.5894 12.8772 7.58462 12.9805 7.71387 13.0605H10.0645C10.4379 13.0605 10.2015 12.2028 10.1973 12.0098C10.1706 10.7521 9.97649 8.65923 10.876 7.73633C11.2383 7.36471 11.6909 7.50409 12.0713 7.76758C12.8064 9.51863 12.2889 11.4894 12.501 13.3428C12.6107 13.5018 13.2459 13.4047 13.4902 13.4395C14.2253 13.5437 14.4868 14.0161 14.6865 12.9092C14.8558 11.9748 14.7669 10.6666 14.8145 9.71191C14.8858 8.28521 15.0266 6.86068 14.1289 5.63379C13.4936 4.76502 12.3096 4.76769 11.4395 5.2793C10.9156 5.58726 10.5844 6.14419 10.0205 6.3623C10.0243 6.14125 9.50074 5.45094 9.34668 5.34766C9.28285 5.30512 8.51627 4.87872 8.46777 4.86328C7.72408 4.62588 6.62732 5.09855 6.13281 5.67578C5.9674 5.8688 5.85528 6.14195 5.70508 6.33691C5.64708 6.41122 5.70707 6.50611 5.49805 6.45215L5.54688 4.52148C5.49267 4.43172 4.75052 4.53019 4.54883 4.52441Z" fill="#626262"/></svg> |
| 106 | <svg class="mp-sidebar-footer-text" xmlns="http://www.w3.org/2000/svg" width="72" height="14" viewBox="0 0 72 14" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.38973 2.60961C8.80365 2.60961 8.29368 2.7555 7.86268 3.0473C7.43168 3.33909 7.14149 3.72717 6.99306 4.21155H6.91029C6.80278 3.72328 6.5535 3.3352 6.1596 3.04535C5.76571 2.7555 5.29284 2.61058 4.74101 2.61058C4.18918 2.61058 3.72678 2.75356 3.33384 3.04049C2.93994 3.32644 2.66117 3.71745 2.49562 4.21252H2.40714V2.7166H0V10.8615H2.53177V6.04109C2.53177 5.77264 2.57934 5.53921 2.67449 5.34079C2.76963 5.14334 2.90093 4.98967 3.07029 4.88268C3.23964 4.77471 3.43469 4.72122 3.65542 4.72122C3.98367 4.72122 4.24722 4.83015 4.44797 5.04997C4.64777 5.26881 4.74767 5.56742 4.74767 5.94675V10.8625H7.1805V6.00024C7.1805 5.61119 7.27945 5.30091 7.4783 5.06942C7.67715 4.83793 7.95021 4.72219 8.29844 4.72219C8.62288 4.72219 8.88642 4.82918 9.09098 5.04316C9.29459 5.25617 9.39639 5.56742 9.39639 5.97301V10.8625H11.9282V5.3797C11.9282 4.52085 11.6941 3.84389 11.2241 3.35173C10.755 2.8586 10.1442 2.61155 9.39164 2.61155M15.3315 5.90784C15.3448 5.6462 15.4085 5.40888 15.5322 5.20073C15.662 4.98114 15.8456 4.80007 16.065 4.6755C16.2896 4.54614 16.5436 4.48195 16.8262 4.48195C17.1087 4.48195 17.3533 4.54322 17.5683 4.6648C17.7843 4.78638 17.9546 4.95562 18.0783 5.17155C18.2019 5.38748 18.2657 5.63258 18.2695 5.90881H15.3296L15.3315 5.90784ZM19.5444 3.68049C19.2029 3.32742 18.7966 3.05994 18.3275 2.87903C17.8585 2.69909 17.3409 2.60863 16.7748 2.60863C15.9746 2.60863 15.2782 2.78468 14.6883 3.13581C14.0984 3.4879 13.6417 3.97909 13.3163 4.61033C12.9919 5.24061 12.8301 5.97787 12.8301 6.81921C12.8301 7.66055 12.9909 8.43185 13.3135 9.05921C13.636 9.68657 14.0984 10.169 14.7007 10.5075C15.3029 10.845 16.0203 11.0133 16.8509 11.0133C17.5455 11.0133 18.1553 10.9043 18.6834 10.6874C19.2114 10.4695 19.6386 10.1641 19.964 9.77021C20.2903 9.37629 20.5016 8.91234 20.5986 8.37836L18.2743 8.3093C18.2086 8.48924 18.1106 8.64195 17.9793 8.76547C17.848 8.889 17.691 8.98334 17.5083 9.04657C17.3257 9.11076 17.1211 9.14188 16.8975 9.14188C16.5731 9.14188 16.2934 9.07283 16.0593 8.93568C15.8243 8.79757 15.6426 8.60401 15.516 8.35502C15.3885 8.10602 15.3248 7.8152 15.3248 7.48255V7.4135H20.6262V6.76669C20.6262 6.09848 20.5311 5.50614 20.3417 4.98772C20.1514 4.47027 19.886 4.03453 19.5444 3.68049ZM21.5605 10.8605H24.0923V0H21.5605V10.8605ZM29.8152 7.96498C29.8152 8.23052 29.7505 8.46298 29.6182 8.66237C29.4869 8.86176 29.3119 9.01836 29.0931 9.13119C28.8742 9.24401 28.6278 9.3014 28.3557 9.3014C28.0655 9.3014 27.8267 9.2304 27.6383 9.08936C27.4499 8.94833 27.3567 8.7431 27.3567 8.47368C27.3567 8.29666 27.4004 8.14395 27.488 8.01556C27.5755 7.8862 27.7039 7.78116 27.8714 7.69945C28.0379 7.61872 28.2415 7.55842 28.4794 7.51951L28.8466 7.46115C28.9741 7.43976 29.0988 7.41544 29.2196 7.38723C29.332 7.36145 29.4434 7.33127 29.5535 7.29678C29.6553 7.26468 29.7419 7.22967 29.8142 7.19076V7.96498H29.8152ZM31.3261 3.32255C31.0092 3.09106 30.6363 2.91404 30.2081 2.79246C29.78 2.66991 29.3128 2.60961 28.8057 2.60961C28.094 2.60961 27.4861 2.72243 26.9809 2.94614C26.4756 3.17082 26.0779 3.47818 25.7906 3.86918C25.5023 4.25921 25.3235 4.70274 25.2549 5.19684L27.5898 5.28243C27.645 5.02079 27.7744 4.81556 27.978 4.66675C28.1816 4.51793 28.4508 4.44401 28.7857 4.44401C29.0959 4.44401 29.3423 4.51793 29.526 4.66675C29.7086 4.81556 29.8 5.02565 29.8 5.29799V5.32425C29.8 5.49058 29.7372 5.61897 29.6106 5.70845C29.485 5.79891 29.2843 5.86796 29.0074 5.91562C28.7315 5.96328 28.3671 6.00802 27.9152 6.05082C27.5118 6.08584 27.1321 6.15392 26.7763 6.25508C26.4205 6.35623 26.1074 6.50407 25.8344 6.69763C25.5613 6.89216 25.3472 7.14505 25.1922 7.45629C25.0361 7.76754 24.9591 8.14979 24.9591 8.60207C24.9591 9.13994 25.0723 9.58541 25.2978 9.9414C25.5233 10.2964 25.8325 10.5619 26.2245 10.737C26.6155 10.9121 27.0655 10.9996 27.5726 10.9996C27.9418 10.9996 28.2739 10.952 28.5698 10.8567C28.8647 10.7613 29.1216 10.6184 29.3414 10.4277C29.5602 10.2371 29.741 10.0036 29.8818 9.72742H29.9436V10.8625H32.3251V5.3262C32.3251 4.89532 32.2375 4.51112 32.0634 4.17556C31.8893 3.84 31.6438 3.55599 31.3251 3.3245L31.3261 3.32255ZM38.7349 7.93289C38.6226 8.25775 38.458 8.50967 38.2402 8.68863C38.0232 8.86663 37.7587 8.95611 37.4476 8.95611C37.1365 8.95611 36.8777 8.86663 36.6579 8.68863C36.4381 8.50967 36.2716 8.25775 36.1556 7.93289C36.0395 7.60802 35.9824 7.22578 35.9824 6.78711C35.9824 6.34845 36.0395 5.95842 36.1556 5.63647C36.2716 5.31453 36.4381 5.06748 36.6551 4.89435C36.872 4.72122 37.1365 4.63465 37.4467 4.63465C37.7568 4.63465 38.0261 4.72316 38.2411 4.90018C38.4561 5.0772 38.6207 5.3262 38.733 5.64815C38.8453 5.97009 38.9014 6.3504 38.9014 6.78809C38.9014 7.22578 38.8453 7.60802 38.733 7.93386M39.889 3.05508C39.4076 2.75842 38.8909 2.60961 38.3391 2.60961C37.9224 2.60961 37.5637 2.68255 37.2649 2.82942C36.9662 2.97629 36.7217 3.16498 36.5295 3.39453C36.3382 3.62407 36.1908 3.86237 36.0871 4.1104H36.009V2.71562H33.5039V13.9146H36.0357V9.5397H36.088C36.1946 9.79064 36.3478 10.026 36.5466 10.2458C36.7445 10.4647 36.9909 10.6417 37.284 10.7759C37.577 10.9102 37.9243 10.9773 38.3248 10.9773C38.9109 10.9773 39.4456 10.8216 39.9271 10.5104C40.4085 10.1991 40.7919 9.73325 41.0764 9.11076C41.3609 8.48827 41.5036 7.71599 41.5036 6.79295C41.5036 5.86991 41.3552 5.04705 41.0583 4.42845C40.7615 3.80888 40.3723 3.35173 39.8909 3.05508M51.468 2.60961C52.0341 2.60961 52.5517 2.70006 53.0207 2.88C53.4898 3.06091 53.8961 3.32742 54.2376 3.68146C54.5792 4.03453 54.8446 4.47125 55.0349 4.98869C55.2243 5.50711 55.3194 6.09945 55.3194 6.76766V7.41447H50.018V7.48353C50.018 7.81617 50.0817 8.10699 50.2092 8.35599C50.3367 8.60499 50.5175 8.79854 50.7525 8.93666C50.9866 9.0738 51.2663 9.14286 51.5907 9.14286C51.8143 9.14286 52.0189 9.11076 52.2015 9.04754C52.3842 8.98432 52.5412 8.89094 52.6725 8.76644C52.8038 8.64292 52.9018 8.49021 52.9675 8.31027L55.2918 8.37933C55.1948 8.91331 54.9836 9.37629 54.6572 9.77119C54.3309 10.1651 53.9037 10.4715 53.3766 10.6884C52.8485 10.9063 52.2377 11.0142 51.5441 11.0142C50.7126 11.0142 49.9961 10.846 49.3939 10.5085C48.7916 10.1709 48.3292 9.68754 48.0067 9.06018C47.6841 8.43283 47.5233 7.68584 47.5233 6.82018C47.5233 5.95453 47.6851 5.24255 48.0095 4.61131C48.334 3.98006 48.7916 3.48888 49.3815 3.13678C49.9723 2.78565 50.6678 2.60961 51.468 2.60961ZM46.863 2.60377C46.9842 2.60403 47.1053 2.61183 47.2255 2.62711C47.3492 2.64267 47.4653 2.66699 47.5728 2.69909V4.9527C47.452 4.90991 47.294 4.87684 47.099 4.85155C46.904 4.82723 46.7298 4.81459 46.5786 4.81459C46.2779 4.81459 46.0086 4.88267 45.7679 5.01885C45.5323 5.15103 45.337 5.34729 45.2037 5.5859C45.0667 5.82809 44.9992 6.11112 44.9992 6.43696V10.8596H42.4674V2.71465H44.9259V4.19988H45.0087C45.1533 3.66201 45.3902 3.26225 45.7185 2.99866C46.0458 2.73508 46.4273 2.60377 46.8621 2.60377H46.863ZM51.5203 4.48097C51.2377 4.48097 50.9837 4.54517 50.7592 4.67453C50.5398 4.7991 50.3561 4.98017 50.2264 5.19976C50.1017 5.40888 50.038 5.6462 50.0256 5.90687H52.9656C52.9618 5.63064 52.898 5.38553 52.7743 5.16961C52.6525 4.95647 52.4762 4.78128 52.2644 4.66286C52.0484 4.5403 51.801 4.48 51.5222 4.48L51.5203 4.48097ZM61.0328 6.04596L59.5 5.74833C59.1661 5.67733 58.933 5.58395 58.8036 5.46723C58.6742 5.35052 58.6114 5.2124 58.6142 5.05386C58.6114 4.84863 58.7122 4.6862 58.9168 4.56559C59.1223 4.44498 59.3716 4.38565 59.6646 4.38565C59.8892 4.38565 60.0871 4.42359 60.2574 4.49945C60.4286 4.57532 60.5666 4.68037 60.6741 4.81167C60.7807 4.94395 60.8463 5.09568 60.8711 5.26492L63.1954 5.2017C63.1298 4.39538 62.7863 3.76219 62.166 3.30018C61.5447 2.83915 60.695 2.60863 59.619 2.60863C58.9006 2.60863 58.2784 2.71076 57.7503 2.91599C57.2223 3.12122 56.8151 3.4169 56.5287 3.80401C56.2423 4.19112 56.1005 4.65702 56.1043 5.2017C56.1005 5.82419 56.2937 6.33581 56.6838 6.73654C57.0739 7.13824 57.6676 7.41252 58.4649 7.56134L59.8521 7.83173C60.1832 7.89495 60.4267 7.98249 60.5818 8.09435C60.7378 8.2062 60.8168 8.35307 60.8206 8.5369C60.8168 8.74213 60.7141 8.9065 60.5095 9.03003C60.3059 9.15356 60.0414 9.21581 59.7179 9.21581C59.3583 9.21581 59.0633 9.13799 58.8321 8.98237C58.6009 8.82675 58.4582 8.60109 58.4021 8.30347L55.9017 8.36669C55.9949 9.17301 56.3679 9.81495 57.0225 10.2945C57.6771 10.774 58.5714 11.0133 59.7065 11.0133C60.4172 11.0133 61.049 10.8995 61.6008 10.6709C62.1526 10.4433 62.5884 10.1223 62.9081 9.70894C63.2268 9.29459 63.3886 8.80924 63.3924 8.24997C63.3886 7.65666 63.1926 7.17909 62.8053 6.81824C62.4162 6.45739 61.8263 6.19964 61.0318 6.04401M70.8221 6.82018C70.4339 6.45933 69.8431 6.20158 69.0487 6.04596L67.5159 5.7493C67.1819 5.6783 66.9498 5.58492 66.8194 5.46821C66.69 5.35149 66.6272 5.21337 66.6311 5.05483C66.6272 4.85058 66.7281 4.68717 66.9336 4.56657C67.1391 4.44693 67.3884 4.38663 67.6814 4.38663C67.906 4.38663 68.1029 4.42456 68.2742 4.50043C68.4445 4.57629 68.5834 4.68037 68.6909 4.81264C68.7975 4.94492 68.8641 5.09568 68.8879 5.2659L71.2122 5.20267C71.1466 4.39635 70.8031 3.76316 70.1828 3.30116C69.5615 2.84012 68.7118 2.60961 67.6358 2.60961C66.9184 2.60961 66.2952 2.71173 65.7671 2.91696C65.2391 3.12219 64.8319 3.41787 64.5455 3.80499C64.2591 4.1921 64.1174 4.65799 64.1212 5.2017C64.1174 5.82419 64.3105 6.33581 64.7015 6.73751C65.0916 7.13921 65.6853 7.4135 66.4817 7.56231L67.8689 7.83271C68.2 7.89593 68.4435 7.98347 68.5986 8.09532C68.7547 8.20717 68.8336 8.35404 68.8374 8.53787C68.8336 8.7431 68.7309 8.90748 68.5273 9.031C68.3237 9.15453 68.0592 9.21678 67.7357 9.21678C67.376 9.21678 67.0811 9.13897 66.8499 8.98334C66.6187 8.82772 66.476 8.60207 66.4198 8.30444L63.9195 8.36766C64.0127 9.17398 64.3857 9.81593 65.0402 10.2954C65.6939 10.775 66.5892 11.0142 67.7243 11.0142C68.4359 11.0142 69.0667 10.9004 69.6186 10.6719C70.1704 10.4443 70.6062 10.1233 70.9258 9.70991C71.2446 9.29654 71.4063 8.81021 71.4101 8.25191C71.4063 7.65763 71.2103 7.18006 70.8231 6.82018" fill="#626262"/></svg> |
| 107 | </div> |
| 108 | |
| 109 | <?php } ?> |
| 110 | |
| 111 | </div> |
| 112 |