main.php
180 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Admin Settings |
| 5 | * |
| 6 | * @package WPEL |
| 7 | * @category WordPress Plugin |
| 8 | * @version 2.3 |
| 9 | * @link https://www.webfactoryltd.com/ |
| 10 | * @license Dual licensed under the MIT and GPLv2+ licenses |
| 11 | * |
| 12 | * @var array $vars |
| 13 | * @option array "tabs" |
| 14 | * @option string "current_tab" |
| 15 | * @option string "page_url" |
| 16 | * @option string "menu_url" |
| 17 | * @option string "own_admin_menu" |
| 18 | */ |
| 19 | ?> |
| 20 | <div class="wrap wpel-settings-page wpel-settings-page-<?php echo esc_html($vars['current_tab']); ?>"> |
| 21 | <h1 class="wpel-logo-wrapper"> |
| 22 | <span class="wpel-logo"><img src="<?php echo esc_url(plugins_url('/public/images/logo.png', WPEL_Plugin::get_plugin_file())); ?>" /></span> |
| 23 | </h1> |
| 24 | |
| 25 | <div class="wpel-body-wrap"> |
| 26 | <?php |
| 27 | if ($vars['own_admin_menu']) : |
| 28 | settings_errors(); |
| 29 | endif; |
| 30 | |
| 31 | // nav tabs |
| 32 | $nav_tabs_template = WPEL_Plugin::get_plugin_dir('/templates/partials/nav-tabs.php'); |
| 33 | WPEL_Plugin::show_template($nav_tabs_template, $vars); |
| 34 | ?> |
| 35 | |
| 36 | <form method="post" action="options.php" class="wpel-hidden"> |
| 37 | <?php |
| 38 | $content_tab_template = __DIR__ . '/tab-contents/' . $vars['current_tab'] . '.php'; |
| 39 | $default_tab_template = WPEL_Plugin::get_plugin_dir('/templates/partials/tab-contents/' . $vars['current_tab'] . '.php'); |
| 40 | |
| 41 | if (is_readable($content_tab_template)) : |
| 42 | WPEL_Plugin::show_template($content_tab_template, $vars); |
| 43 | elseif (is_readable($default_tab_template)) : |
| 44 | WPEL_Plugin::show_template($default_tab_template, $vars); |
| 45 | else : |
| 46 | $content_tab_template = WPEL_Plugin::get_plugin_dir('/templates/partials/tab-contents/fields-default.php'); |
| 47 | |
| 48 | if (is_readable($content_tab_template)) : |
| 49 | WPEL_Plugin::show_template($content_tab_template, $vars); |
| 50 | endif; |
| 51 | endif; |
| 52 | ?> |
| 53 | </form> |
| 54 | </div> |
| 55 | <div class="wpel-container-right"> |
| 56 | <div class="sidebar-box pro-ad-box"> |
| 57 | <p class="text-center"><a href="#" data-pro-feature="sidebar-box-logo" class="open-pro-dialog"> |
| 58 | <img src="<?php echo esc_url(plugins_url('/public/images/logo.png', WPEL_Plugin::get_plugin_file())); ?>" alt="WP Links PRO" title="WP Links PRO"></a><br><b>Get PRO for ONLY $9.99!</b></p> |
| 59 | <ul class="plain-list"> |
| 60 | <li>Complete control over all links</li> |
| 61 | <li>Exit Confirmation for traffic & links protection</li> |
| 62 | <li>Scan & test all links with one click using our SaaS</li> |
| 63 | <li>Unlimited custom link rules for any group of links</li> |
| 64 | <li>Licenses & Sites Manager (remote SaaS dashboard)</li> |
| 65 | <li>White-label Mode</li> |
| 66 | <li>Complete Codeless Plugin Rebranding</li> |
| 67 | <li>Email support from plugin developers</li> |
| 68 | </ul> |
| 69 | |
| 70 | <p class="text-center"><a href="#" class="open-pro-dialog button button-buy" data-pro-feature="sidebar-box">Get PRO Now</a></p> |
| 71 | </div> |
| 72 | |
| 73 | <?php |
| 74 | if (!defined('WPCAPTCHA_PLUGIN_FILE')) { |
| 75 | echo '<div id="wpcaptcha-ad" class="sidebar-box">'; |
| 76 | echo '<h3 class="textcenter"><b>Having problems with spam or bots? AI scapers giving you troubles?<br><br><u>Fix all your spam problems with one plugin!</u></b></h3>'; |
| 77 | echo '<p class="textcenter"><a href="#" class="textcenter install-wpcaptcha"><img style="max-width: 90%;" src="' . esc_url(plugins_url('/public/images/wp-captcha-logo.png', WPEL_Plugin::get_plugin_file())) . '" alt="Advanced Google ReCaptcha" title="Advanced Google ReCaptcha"></a></p>'; |
| 78 | echo '<p class="textcenter"><br><a href="#" class="install-wpcaptcha button button-primary">Install & activate the free Google ReCaptcha plugin</a></p><p><a href="https://wordpress.org/plugins/advanced-google-recaptcha/" target="_blank">Advanced Google ReCaptcha</a> is a free WP plugin maintained by the same team as WP External Links. It has <b>+200,000 users, 5-star rating</b>, and is hosted on the official WP repository.</p>'; |
| 79 | echo '</div>'; |
| 80 | } |
| 81 | ?> |
| 82 | |
| 83 | <div class="sidebar-box"> |
| 84 | <p>Please <a href="https://wordpress.org/support/plugin/wp-external-links/reviews/#new-post" target="_blank">rate the plugin � |
| 85 | � |
| 86 | � |
| 87 | � |
| 88 | � |
| 89 | </a> to <b>keep it up-to-date & maintained</b>. It only takes a second to rate. Thank you! 👋</p> |
| 90 | </div> |
| 91 | </div> |
| 92 | </div> |
| 93 | |
| 94 | <div id="wpel-pro-dialog" style="display: none;" title="WP Links PRO is here!"><span class="ui-helper-hidden-accessible"><input type="text"/></span> |
| 95 | |
| 96 | <div class="center logo"><a href="https://getwplinks.com/?ref=wpel-free-pricing-table" target="_blank"><img src="<?php echo esc_url(plugins_url('/public/images/logo.png', WPEL_Plugin::get_plugin_file())); ?>" alt="WP Links PRO" title="WP Links PRO"></a><br> |
| 97 | |
| 98 | <span>Limited PRO Discount - <b>get PRO for ONLY $9.99!</b></span> |
| 99 | </div> |
| 100 | |
| 101 | <table id="wpel-pro-table"> |
| 102 | <tr> |
| 103 | <td class="center">Lifetime Personal License</td> |
| 104 | <td class="center">Lifetime Team License</td> |
| 105 | <td class="center">Lifetime Agency License</td> |
| 106 | </tr> |
| 107 | |
| 108 | <tr class="prices"> |
| 109 | <td class="center"><del>$79 /year</del><br><span>$59</span> <b>/lifetime</b></td> |
| 110 | <td class="center"><del>$159 /year</del><br><span>$69</span> <b>/lifetime</b></td> |
| 111 | <td class="center"><del>$299 /year</del><br><span>$119</span> <b>/lifetime</b></td> |
| 112 | </tr> |
| 113 | |
| 114 | <tr> |
| 115 | <td><span class="dashicons dashicons-yes"></span><b>1 Site License</b></td> |
| 116 | <td><span class="dashicons dashicons-yes"></span><b>5 Sites License</b></td> |
| 117 | <td><span class="dashicons dashicons-yes"></span><b>100 Sites License</b></td> |
| 118 | </tr> |
| 119 | |
| 120 | <tr> |
| 121 | <td><span class="dashicons dashicons-yes"></span>All Plugin Features</td> |
| 122 | <td><span class="dashicons dashicons-yes"></span>All Plugin Features</td> |
| 123 | <td><span class="dashicons dashicons-yes"></span>All Plugin Features</td> |
| 124 | </tr> |
| 125 | |
| 126 | <tr> |
| 127 | <td><span class="dashicons dashicons-yes"></span>Lifetime Updates & Support</td> |
| 128 | <td><span class="dashicons dashicons-yes"></span>Lifetime Updates & Support</td> |
| 129 | <td><span class="dashicons dashicons-yes"></span>Lifetime Updates & Support</td> |
| 130 | </tr> |
| 131 | |
| 132 | <tr> |
| 133 | <td><span class="dashicons dashicons-yes"></span>Link Scanner (300 scan credits)</td> |
| 134 | <td><span class="dashicons dashicons-yes"></span>Link Scanner (2,000 scan credits)</td> |
| 135 | <td><span class="dashicons dashicons-yes"></span>Link Scanner (6,000 scan credits)</td> |
| 136 | </tr> |
| 137 | |
| 138 | <tr> |
| 139 | <td><span class="dashicons dashicons-yes"></span>Custom Link Rules</td> |
| 140 | <td><span class="dashicons dashicons-yes"></span>Custom Link Rules</td> |
| 141 | <td><span class="dashicons dashicons-yes"></span>Custom Link Rules</td> |
| 142 | </tr> |
| 143 | |
| 144 | <tr> |
| 145 | <td><span class="dashicons dashicons-yes"></span>Exit Confirmation Links Protection</td> |
| 146 | <td><span class="dashicons dashicons-yes"></span>Exit Confirmation Links Protection</td> |
| 147 | <td><span class="dashicons dashicons-yes"></span>Exit Confirmation Links Protection</td> |
| 148 | </tr> |
| 149 | |
| 150 | <tr> |
| 151 | <td><span class="dashicons dashicons-no"></span>Licenses & Sites Manager</td> |
| 152 | <td><span class="dashicons dashicons-yes"></span>Licenses & Sites Manager</td> |
| 153 | <td><span class="dashicons dashicons-yes"></span>Licenses & Sites Manager</td> |
| 154 | </tr> |
| 155 | |
| 156 | <tr> |
| 157 | <td><span class="dashicons dashicons-no"></span>White-label Mode</td> |
| 158 | <td><span class="dashicons dashicons-yes"></span>White-label Mode</td> |
| 159 | <td><span class="dashicons dashicons-yes"></span>White-label Mode</td> |
| 160 | </tr> |
| 161 | |
| 162 | <tr> |
| 163 | <td><span class="dashicons dashicons-no"></span>Full Plugin Rebranding</td> |
| 164 | <td><span class="dashicons dashicons-no"></span>Full Plugin Rebranding</td> |
| 165 | <td><span class="dashicons dashicons-yes"></span>Full Plugin Rebranding</td> |
| 166 | </tr> |
| 167 | |
| 168 | <tr> |
| 169 | <td><a class="button button-buy" data-href-org="https://getwplinks.com/buy/?product=personal-launch&ref=pricing-table" href="https://getwplinks.com/buy/?product=personal-launch&ref=pricing-table" target="_blank">Lifetime License<br>$59 -> BUY NOW</a></td> |
| 170 | <td><a class="button button-buy" data-href-org="https://getwplinks.com/buy/?product=team-launch&ref=pricing-table" href="https://getwplinks.com/buy/?product=team-launch&ref=pricing-table" target="_blank">Lifetime License<br>$69 -> BUY NOW</a></td> |
| 171 | <td><a class="button button-buy" data-href-org="https://getwplinks.com/buy/?product=agency-launch&ref=pricing-table" href="https://getwplinks.com/buy/?product=agency-launch&ref=pricing-table" target="_blank">Lifetime License<br>$119 -> BUY NOW</a></td> |
| 172 | </tr> |
| 173 | |
| 174 | </table> |
| 175 | |
| 176 | <div class="upsell-footer-2 center">Need the plugin only for a <b>short period of time</b>? <a class="button-buy" target="_blank" data-href-org="https://getwplinks.com/buy/?product=personal-monthly&ref=pricing-table" href="https://getwplinks.com/buy/?product=personal-monthly&ref=pricing-table"><b>Get it for ONLY $9.99</b><small> /month</small></a> & cancel any time!</div> |
| 177 | |
| 178 | <div class="center footer"><b>100% No-Risk Money Back Guarantee!</b> If you don\'t like the plugin over the next 7 days, we will happily refund 100% of your money. No questions asked! Payments are processed by our merchant of records - <a href="https://paddle.com/" target="_blank">Paddle</a>.</div> |
| 179 | </div> |
| 180 |