Controllers
3 years ago
Helpers
3 years ago
SettingsPages
3 years ago
Views
3 years ago
class-help-contact-us.php
3 years ago
class-premium-features.php
3 years ago
class-settings-page.php
3 years ago
class-settingspage.php
3 years ago
class-setup-wizard.php
3 years ago
class-user-listing.php
3 years ago
class-user-notices.php
3 years ago
class-user-profile.php
3 years ago
class-user-registered.php
3 years ago
class-user.php
3 years ago
index.php
5 years ago
class-premium-features.php
447 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Premium features rendering class. |
| 4 | * |
| 5 | * @package wp2fa |
| 6 | * @subpackage admin |
| 7 | * @copyright 2023 WP White Security |
| 8 | * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 |
| 9 | * @link https://wordpress.org/plugins/wp-2fa/ |
| 10 | * @since 2.0.0 |
| 11 | */ |
| 12 | |
| 13 | namespace WP2FA\Admin; |
| 14 | |
| 15 | use \WP2FA\Admin\Settings_Page; |
| 16 | /** |
| 17 | * Handles contact the features page and content. |
| 18 | */ |
| 19 | class Premium_Features { |
| 20 | |
| 21 | const TOP_MENU_SLUG = 'wp-2fa-premium-features'; |
| 22 | |
| 23 | /** |
| 24 | * Create admin menu entry and settings page |
| 25 | */ |
| 26 | public static function add_extra_menu_item() { |
| 27 | add_submenu_page( |
| 28 | Settings_Page::TOP_MENU_SLUG, |
| 29 | esc_html__( 'Premium Features', 'wp-2fa' ), |
| 30 | esc_html__( 'Premium Features ➤', 'wp-2fa' ), |
| 31 | 'manage_options', |
| 32 | self::TOP_MENU_SLUG, |
| 33 | array( __CLASS__, 'render' ), |
| 34 | 100 |
| 35 | ); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Adds an upgrade banner to settings pages. |
| 40 | * |
| 41 | * @return void |
| 42 | */ |
| 43 | public static function add_settings_banner() { |
| 44 | $banner = '<div id="wp-2fa-side-banner">'; |
| 45 | $banner .= '<img src="' . esc_url( WP_2FA_URL . 'dist/images/wizard-logo.png' ) . '">'; |
| 46 | $banner .= '<p>' . esc_html__( 'Upgrade to Premium to:', 'wp-2fa' ) . '</p>'; |
| 47 | $banner .= '<ul><li><span class="dashicons dashicons-yes-alt"></span>' . esc_html__( 'Login with 2FA via push notification, SMS, or with a simple mouse click', 'wp-2fa' ) . '</li>'; |
| 48 | $banner .= '<li><span class="dashicons dashicons-yes-alt"></span>' . esc_html__( 'Add trusted devices (\'Remember this device\' option)', 'wp-2fa' ) . '</li>'; |
| 49 | $banner .= '<li><span class="dashicons dashicons-yes-alt"></span> ' . esc_html__( 'Add secondary 2FA methods so no user is ever locked out', 'wp-2fa' ) . '</li>'; |
| 50 | $banner .= '<li><span class="dashicons dashicons-yes-alt"></span> ' . esc_html__( 'Configure different 2FA policies for different user roles', 'wp-2fa' ) . '</li>'; |
| 51 | $banner .= '<li><span class="dashicons dashicons-yes-alt"></span> ' . esc_html__( 'White labeling of 2FA code page', 'wp-2fa' ) . '</li>'; |
| 52 | $banner .= '<li><span class="dashicons dashicons-yes-alt"></span> ' . esc_html__( 'One-click 2FA login', 'wp-2fa' ) . '</li>'; |
| 53 | $banner .= '<li><span class="dashicons dashicons-yes-alt"></span> ' . esc_html__( 'Many other features', 'wp-2fa' ) . '</li>'; |
| 54 | $banner .= '<li><span class="dashicons dashicons-yes-alt"></span> ' . esc_html__( 'No Ads!', 'wp-2fa' ) . '</li></ul>'; |
| 55 | $banner .= '<a href="https://wp2fa.io/get-wp-2fa-premium-trial/?utm_source=plugin&utm_medium=sidebar+advert&utm_campaign=WP2FA&utm_content=get+trial" class="button button-primary" target="_blank">' . esc_html__( 'Get a Free 14-day trial', 'wp-2fa' ) . '</a> <a href="https://wp2fa.io/pricing/?utm_source=plugin&utm_medium=sidebar+advert&utm_campaign=WP2FA&utm_content=upgrade+now" class="link" target="_blank">' . esc_html__( 'Upgrade now', 'wp-2fa' ) . '</a>'; |
| 56 | $banner .= '</div>'; |
| 57 | |
| 58 | echo $banner; // phpcs:ignore |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Handles rendering the content. |
| 63 | * |
| 64 | * @return void |
| 65 | */ |
| 66 | public static function render() { |
| 67 | ?> |
| 68 | <style> |
| 69 | .features-wrap { |
| 70 | background: #fff; |
| 71 | padding: 25px 30px; |
| 72 | margin-top: 25px; |
| 73 | } |
| 74 | |
| 75 | .features-wrap h2 { |
| 76 | font-size: 28px; |
| 77 | margin-bottom: 30px; |
| 78 | } |
| 79 | |
| 80 | .features-wrap p { |
| 81 | font-size: 16px; |
| 82 | line-height: 28px; |
| 83 | } |
| 84 | |
| 85 | .feature-list { |
| 86 | margin-bottom: 20px; |
| 87 | } |
| 88 | |
| 89 | .feature-list li { |
| 90 | margin-bottom: 10px; |
| 91 | font-size: 15px; |
| 92 | } |
| 93 | |
| 94 | .feature-list li .dashicons { |
| 95 | color: #3E6BFF; |
| 96 | } |
| 97 | |
| 98 | .premium-cta { |
| 99 | margin: 25px 0 15px; |
| 100 | text-align: center; |
| 101 | } |
| 102 | |
| 103 | .premium-cta a:not(.inverse), .table-link { |
| 104 | background-color: #3E6BFF; |
| 105 | color: #fff; |
| 106 | padding: 15px 26px; |
| 107 | border-radius: 30px; |
| 108 | font-size: 16px; |
| 109 | white-space: nowrap; |
| 110 | text-decoration: none; |
| 111 | font-weight: 700; |
| 112 | display: inline-block; |
| 113 | margin-right: 15px; |
| 114 | border: 2px solid #3E6BFF; |
| 115 | } |
| 116 | |
| 117 | .premium-cta a:hover, .table-link:hover, .premium-cta a.inverse, .table-link.inverse { |
| 118 | color: #3E6BFF; |
| 119 | background-color: #fff; |
| 120 | } |
| 121 | |
| 122 | .premium-cta a.inverse { |
| 123 | font-weight: 700; |
| 124 | text-decoration: none; |
| 125 | font-size: 16px; |
| 126 | } |
| 127 | |
| 128 | .content-block { |
| 129 | margin-bottom: 26px; |
| 130 | border-bottom: 1px solid #eee; |
| 131 | padding-bottom: 15px; |
| 132 | } |
| 133 | |
| 134 | .feature-table tr td { |
| 135 | text-align: center; |
| 136 | min-width: 200px |
| 137 | } |
| 138 | .feature-table tr td:first-of-type { |
| 139 | text-align: left; |
| 140 | font-weight: 500; |
| 141 | } |
| 142 | .feature-table td p { |
| 143 | margin-top: 0; |
| 144 | } |
| 145 | .row-head span { |
| 146 | font-size: 17px; |
| 147 | font-weight: 700; |
| 148 | } |
| 149 | .feature-table .dashicons { |
| 150 | color: #3E6BFF; |
| 151 | } |
| 152 | .feature-table .dashicons-no { |
| 153 | color: red; |
| 154 | } |
| 155 | .table-link { |
| 156 | font-size: 14px; |
| 157 | padding: 9px; |
| 158 | width: 193px; |
| 159 | margin-top: 10px; |
| 160 | } |
| 161 | .pull-up { |
| 162 | position: relative; |
| 163 | top: -23px; |
| 164 | } |
| 165 | |
| 166 | .wp2fa-logo { |
| 167 | max-width: 130px; |
| 168 | } |
| 169 | |
| 170 | .logo-wrap { |
| 171 | float: left; |
| 172 | margin-right: 30px; |
| 173 | } |
| 174 | </style> |
| 175 | |
| 176 | <div class="wrap help-wrap features-wrap wp-2fa-settings-wrapper"> |
| 177 | <div class="page-head"> |
| 178 | <h2><?php esc_html_e( 'Upgrade to Premium to benefit more!', 'wp-2fa' ); ?></h2> |
| 179 | </div> |
| 180 | <div class="content-block"> |
| 181 | <div class="logo-wrap"> |
| 182 | <img class="wp2fa-logo" src="<?php echo WP_2FA_URL; // phpcs:ignore ?>dist/images/wp-2fa-color_opt.png" alt=""> |
| 183 | </div> |
| 184 | <div> |
| 185 | <p><?php esc_html_e( 'WP 2FA is your trusted gatekeeper, keeping your website, users, customers, team members, and you secure and better protected than ever before.', 'wp-2fa' ); ?></p> |
| 186 | <p><?php esc_html_e( 'Upgrade to WP 2FA Premium to add more secure authentication options and automate more, encouraging users to utilize 2FA to its fullest extent and give your users more flexibility by allowing them to work from anywhere without compromising on security.', 'wp-2fa' ); ?></p> |
| 187 | </div> |
| 188 | </div> |
| 189 | <div class="content-block"> |
| 190 | <p><?php esc_html_e( 'Upgrade to Premium to start benefiting from value-added features such as:', 'wp-2fa' ); ?></p> |
| 191 | <ul class="feature-list"> |
| 192 | <li><span class="dashicons dashicons-saved"></span> <?php esc_html_e( 'More 2FA methods, including push notification, WhatsApp, and incoming call', 'wp-2fa' ); ?></li> |
| 193 | <li><span class="dashicons dashicons-saved"></span> <?php esc_html_e( 'Trusted devices: Give users the option to add trusted devices so they do not have to enter the 2FA code each time they log in', 'wp-2fa' ); ?></li> |
| 194 | <li><span class="dashicons dashicons-saved"></span> <?php esc_html_e( 'White labelling features: Gain increased trust by extending your business\' branding and tone of voice to all 2FA pages', 'wp-2fa' ); ?></li> |
| 195 | <li><span class="dashicons dashicons-saved"></span> <?php esc_html_e( 'Configure different policies for different user roles: While requiring everyone to use 2FA is generally a good idea, stricter policies for more sensitive accounts can help you keep everyone happy', 'wp-2fa' ); ?></li> |
| 196 | </ul> |
| 197 | <div class="premium-cta"> |
| 198 | <a href="<?php echo esc_url( 'https://wp2fa.io/get-wp-2fa-premium-trial/?utm_source=plugin&utm_medium=referral&utm_campaign=WP2FA&utm_content=get+trial+upgrade+page' ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Get the Free 14-day trial', 'wp-2fa' ); ?></a> |
| 199 | <a class="inverse" href="<?php echo esc_url( 'https://wp2fa.io/pricing/?utm_source=plugin&utm_medium=referral&utm_campaign=WP2FA&utm_content=upgrade+page+upgrade' ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'UPGRADE NOW', 'wp-2fa' ); ?></a> |
| 200 | </div> |
| 201 | </div> |
| 202 | <div class="content-block"> |
| 203 | <p><?php esc_html_e( 'Take advantage of these benefits and many others, with prices starting from as little as $59 for 5 users per year. Below is the complete list of Premium features:', 'wp-2fa' ); ?></p> |
| 204 | <table class="c21 feature-table"> |
| 205 | <tbody> |
| 206 | <tr class="c2"> |
| 207 | <td class="c6" colspan="1" rowspan="1"> |
| 208 | <p class="c10 c4"><span class="c5"></span></p> |
| 209 | </td> |
| 210 | <td class="c8 row-head" colspan="1" rowspan="1"> |
| 211 | <p class="c7"><span class="c5"><?php esc_html_e( 'Premium', 'wp-2fa' ); ?></span></p> |
| 212 | </td> |
| 213 | <td class="c12 row-head" colspan="1" rowspan="1"> |
| 214 | <p class="c7"><span class="c5"><?php esc_html_e( 'Free', 'wp-2fa' ); ?></span></p> |
| 215 | </td> |
| 216 | </tr> |
| 217 | <tr class="c2"> |
| 218 | <td class="c6" colspan="1" rowspan="1"> |
| 219 | <p class="c10"><span class="c5"><?php esc_html_e( 'Support', 'wp-2fa' ); ?></span></p> |
| 220 | </td> |
| 221 | <td class="c8" colspan="1" rowspan="1"> |
| 222 | <p class="c7"><span class="c5"><?php esc_html_e( 'Email & forums', 'wp-2fa' ); ?></span></p> |
| 223 | </td> |
| 224 | <td class="c12" colspan="1" rowspan="1"> |
| 225 | <p class="c7"><span class="c5"><?php esc_html_e( 'Forums', 'wp-2fa' ); ?></span></p> |
| 226 | </td> |
| 227 | </tr> |
| 228 | <tr class="c2"> |
| 229 | <td class="c6" colspan="1" rowspan="1"> |
| 230 | <p class="c10"><span class="c5"><?php esc_html_e( 'Install on unlimited websites', 'wp-2fa' ); ?></span></p> |
| 231 | </td> |
| 232 | <td class="c8" colspan="1" rowspan="1"> |
| 233 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 234 | </td> |
| 235 | <td class="c12" colspan="1" rowspan="1"> |
| 236 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 237 | </td> |
| 238 | </tr> |
| 239 | <tr class="c2"> |
| 240 | <td class="c6" colspan="1" rowspan="1"> |
| 241 | <p class="c10"><span class="c5"><?php esc_html_e( 'E-commerce, membership & other third party plugins support', 'wp-2fa' ); ?></span></p> |
| 242 | </td> |
| 243 | <td class="c8" colspan="1" rowspan="1"> |
| 244 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 245 | </td> |
| 246 | <td class="c12" colspan="1" rowspan="1"> |
| 247 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 248 | </td> |
| 249 | </tr> |
| 250 | <tr class="c2"> |
| 251 | <td class="c6" colspan="1" rowspan="1"> |
| 252 | <p class="c10"><span class="c5"><?php esc_html_e( '2FA code via mobile app', 'wp-2fa' ); ?></span></p> |
| 253 | </td> |
| 254 | <td class="c8" colspan="1" rowspan="1"> |
| 255 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 256 | </td> |
| 257 | <td class="c12" colspan="1" rowspan="1"> |
| 258 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 259 | </td> |
| 260 | </tr> |
| 261 | <tr class="c2"> |
| 262 | <td class="c6" colspan="1" rowspan="1"> |
| 263 | <p class="c10"><span class="c5"><?php esc_html_e( '2FA code over email', 'wp-2fa' ); ?></span></p> |
| 264 | </td> |
| 265 | <td class="c8" colspan="1" rowspan="1"> |
| 266 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 267 | </td> |
| 268 | <td class="c12" colspan="1" rowspan="1"> |
| 269 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 270 | </td> |
| 271 | </tr> |
| 272 | <tr class="c2"> |
| 273 | <td class="c6" colspan="1" rowspan="1"> |
| 274 | <p class="c10"><span class="c5"><?php esc_html_e( 'Backup codes', 'wp-2fa' ); ?></span></p> |
| 275 | </td> |
| 276 | <td class="c8" colspan="1" rowspan="1"> |
| 277 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 278 | </td> |
| 279 | <td class="c12" colspan="1" rowspan="1"> |
| 280 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 281 | </td> |
| 282 | </tr> |
| 283 | <tr class="c2"> |
| 284 | <td class="c6" colspan="1" rowspan="1"> |
| 285 | <p class="c10"><span class="c5"><?php esc_html_e( '2FA login with push notification', 'wp-2fa' ); ?></span></p> |
| 286 | </td> |
| 287 | <td class="c8" colspan="1" rowspan="1"> |
| 288 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 289 | </td> |
| 290 | <td class="c12" colspan="1" rowspan="1"> |
| 291 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 292 | </td> |
| 293 | </tr> |
| 294 | <tr class="c2"> |
| 295 | <td class="c6" colspan="1" rowspan="1"> |
| 296 | <p class="c10"><span class="c5"><?php esc_html_e( '2FA Login with SMS (with Twilio)', 'wp-2fa' ); ?></span></p> |
| 297 | </td> |
| 298 | <td class="c8" colspan="1" rowspan="1"> |
| 299 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 300 | </td> |
| 301 | <td class="c12" colspan="1" rowspan="1"> |
| 302 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 303 | </td> |
| 304 | </tr> |
| 305 | |
| 306 | <tr class="c2"> |
| 307 | <td class="c6" colspan="1" rowspan="1"> |
| 308 | <p class="c10"><span class="c5"><?php esc_html_e( 'One-click 2FA login', 'wp-2fa' ); ?></span></p> |
| 309 | </td> |
| 310 | <td class="c8" colspan="1" rowspan="1"> |
| 311 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 312 | </td> |
| 313 | <td class="c12" colspan="1" rowspan="1"> |
| 314 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 315 | </td> |
| 316 | </tr> |
| 317 | <tr class="c2"> |
| 318 | <td class="c6" colspan="1" rowspan="1"> |
| 319 | <p class="c10"><span class="c5"><?php esc_html_e( 'Different 2FA policies per user role', 'wp-2fa' ); ?></span></p> |
| 320 | </td> |
| 321 | <td class="c8" colspan="1" rowspan="1"> |
| 322 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 323 | </td> |
| 324 | <td class="c12" colspan="1" rowspan="1"> |
| 325 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 326 | </td> |
| 327 | </tr> |
| 328 | <tr class="c2"> |
| 329 | <td class="c6" colspan="1" rowspan="1"> |
| 330 | <p class="c10"><span class="c5"><?php esc_html_e( 'Trusted devices (don\'t ask for 2FA code)', 'wp-2fa' ); ?></span></p> |
| 331 | </td> |
| 332 | <td class="c8" colspan="1" rowspan="1"> |
| 333 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 334 | </td> |
| 335 | <td class="c12" colspan="1" rowspan="1"> |
| 336 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 337 | </td> |
| 338 | </tr> |
| 339 | <tr class="c2"> |
| 340 | <td class="c6" colspan="1" rowspan="1"> |
| 341 | <p class="c10"><span class="c5"><?php esc_html_e( 'Secondary 2FA backup method', 'wp-2fa' ); ?></span></p> |
| 342 | </td> |
| 343 | <td class="c8" colspan="1" rowspan="1"> |
| 344 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 345 | </td> |
| 346 | <td class="c12" colspan="1" rowspan="1"> |
| 347 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 348 | </td> |
| 349 | </tr> |
| 350 | <tr class="c2"> |
| 351 | <td class="c6" colspan="1" rowspan="1"> |
| 352 | <p class="c10"><span class="c5"><?php esc_html_e( 'White labeling (logo, text, colors & fonts)', 'wp-2fa' ); ?></span></p> |
| 353 | </td> |
| 354 | <td class="c8" colspan="1" rowspan="1"> |
| 355 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 356 | </td> |
| 357 | <td class="c12" colspan="1" rowspan="1"> |
| 358 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 359 | </td> |
| 360 | </tr> |
| 361 | <tr class="c2"> |
| 362 | <td class="c6" colspan="1" rowspan="1"> |
| 363 | <p class="c10"><span class="c5"><?php esc_html_e( 'Reports & Statistics', 'wp-2fa' ); ?></span></p> |
| 364 | </td> |
| 365 | <td class="c8" colspan="1" rowspan="1"> |
| 366 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 367 | </td> |
| 368 | <td class="c12" colspan="1" rowspan="1"> |
| 369 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 370 | </td> |
| 371 | </tr> |
| 372 | <tr class="c2"> |
| 373 | <td class="c6" colspan="1" rowspan="1"> |
| 374 | <p class="c10"><span class="c5"><?php esc_html_e( 'Configurable 2FA code expiration time', 'wp-2fa' ); ?></span></p> |
| 375 | </td> |
| 376 | <td class="c8" colspan="1" rowspan="1"> |
| 377 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 378 | </td> |
| 379 | <td class="c12" colspan="1" rowspan="1"> |
| 380 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 381 | </td> |
| 382 | </tr> |
| 383 | <tr class="c2"> |
| 384 | <td class="c6" colspan="1" rowspan="1"> |
| 385 | <p class="c10"><span class="c5"><?php esc_html_e( 'Sortable users\' 2FA status', 'wp-2fa' ); ?></span></p> |
| 386 | </td> |
| 387 | <td class="c8" colspan="1" rowspan="1"> |
| 388 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 389 | </td> |
| 390 | <td class="c12" colspan="1" rowspan="1"> |
| 391 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 392 | </td> |
| 393 | </tr> |
| 394 | <tr class="c2"> |
| 395 | <td class="c6" colspan="1" rowspan="1"> |
| 396 | <p class="c10"><span class="c5"><?php esc_html_e( 'No Ads!', 'wp-2fa' ); ?></span></p> |
| 397 | </td> |
| 398 | <td class="c8" colspan="1" rowspan="1"> |
| 399 | <p class="c7"><span class="c5"><span class="dashicons dashicons-saved"></span></span></p> |
| 400 | </td> |
| 401 | <td class="c12" colspan="1" rowspan="1"> |
| 402 | <p class="c7"><span class="c5"><span class="dashicons dashicons-no"></span></span></p> |
| 403 | </td> |
| 404 | </tr> |
| 405 | </tbody> |
| 406 | </table> |
| 407 | |
| 408 | <div class="premium-cta"> |
| 409 | <a href="<?php echo esc_url( 'https://wp2fa.io/get-wp-2fa-premium-trial/?utm_source=plugin&utm_medium=referral&utm_campaign=WP2FA&utm_content=get+trial+upgrade+page' ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Get the Free 14-day trial', 'wp-2fa' ); ?></a> |
| 410 | <a class="inverse" href="<?php echo esc_url( 'https://wp2fa.io/pricing/?utm_source=plugin&utm_medium=referral&utm_campaign=WP2FA&utm_content=upgrade+page+upgrade' ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'UPGRADE NOW', 'wp-2fa' ); ?></a> |
| 411 | </div> |
| 412 | </div> |
| 413 | |
| 414 | <div> |
| 415 | <p> |
| 416 | <?php |
| 417 | $text = sprintf( |
| 418 | /* translators: 1: Link to our site 2: Link to our contact page */ |
| 419 | esc_html__( 'For more information about the WP 2FA plugin visit the %1$s. If you have any questions or would like to get in touch with us, please use %2$s. We look forward to hearing from you.', 'wp-2fa' ), |
| 420 | '<a target="_blank" href="' . esc_url( 'https://wp2fa.io' ) . '">' . esc_html__( 'plugin\'s website', 'wp-2fa' ) . '</a>', |
| 421 | '<a target="_blank" href="' . esc_url( 'https://wp2fa.io/contact/' ) . '">' . esc_html__( 'our contact form', 'wp-2fa' ) . '</a>' |
| 422 | ); |
| 423 | |
| 424 | echo $text; // phpcs:ignore |
| 425 | ?> |
| 426 | </p> |
| 427 | </div> |
| 428 | </div> |
| 429 | <?php |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * Add "_blank" attr to pricing link to ensure it opens in new tab. |
| 434 | * |
| 435 | * @return void |
| 436 | */ |
| 437 | public static function pricing_new_tab_js() { |
| 438 | ?> |
| 439 | <script type="text/javascript"> |
| 440 | jQuery( document ).ready( function() { |
| 441 | jQuery( '.wp-2fa.pricing' ).parent().attr( 'target', '_blank' ); |
| 442 | }); |
| 443 | </script> |
| 444 | <?php |
| 445 | } |
| 446 | } |
| 447 |