| 1 |
<?php namespace EmailLog\Core\UI\Page; |
| 2 |
|
| 3 |
use EmailLog\Core\Loadie; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly. |
| 6 |
|
| 7 |
/** |
| 8 |
* Base class for all Email Log admin pages. |
| 9 |
* |
| 10 |
* @since 2.0.0 |
| 11 |
*/ |
| 12 |
abstract class BasePage implements Loadie { |
| 13 |
|
| 14 |
/** |
| 15 |
* Current page. |
| 16 |
* |
| 17 |
* @var string |
| 18 |
*/ |
| 19 |
protected $page; |
| 20 |
|
| 21 |
/** |
| 22 |
* Current screen. |
| 23 |
* |
| 24 |
* @var \WP_Screen |
| 25 |
*/ |
| 26 |
protected $screen; |
| 27 |
|
| 28 |
/** |
| 29 |
* Register page. |
| 30 |
* |
| 31 |
* @return void |
| 32 |
*/ |
| 33 |
abstract public function register_page(); |
| 34 |
|
| 35 |
/** |
| 36 |
* Setup hooks related to pages. |
| 37 |
* |
| 38 |
* @inheritdoc |
| 39 |
*/ |
| 40 |
public function load() { |
| 41 |
add_action( 'admin_menu', array( $this, 'register_page' ) ); |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* Render admin page footer. |
| 46 |
*/ |
| 47 |
protected function render_page_footer() { |
| 48 |
/** |
| 49 |
* Action to add additional content to email log admin footer. |
| 50 |
* |
| 51 |
* @since 1.8 |
| 52 |
*/ |
| 53 |
do_action( 'el_admin_footer' ); |
| 54 |
} |
| 55 |
|
| 56 |
/** |
| 57 |
* Return the WP_Screen object for the current page's handle. |
| 58 |
* |
| 59 |
* @return \WP_Screen Screen object. |
| 60 |
*/ |
| 61 |
public function get_screen() { |
| 62 |
if ( ! isset( $this->screen ) ) { |
| 63 |
$this->screen = \WP_Screen::get( $this->page ); |
| 64 |
} |
| 65 |
|
| 66 |
return $this->screen; |
| 67 |
} |
| 68 |
|
| 69 |
function sidebar(){ |
| 70 |
echo '<div class="sidebar-box pro-ad-box"> |
| 71 |
<p class="text-center"><a href="#" data-pro-feature="sidebar-box-logo" class="open-pro-dialog sidebar-box-logo"> |
| 72 |
<img src="' . esc_url(EMAIL_LOG_URL . 'assets/img/logo-64x64.png') . '" alt="Email Log PRO" title="Email Log PRO"> Email Log PRO</a><br><b>Get more done for only $9.99!</b></p> |
| 73 |
<ul class="plain-list"> |
| 74 |
<li>Detailed Email Log</li> |
| 75 |
<li>24/7 Monitoring from our SaaS</li> |
| 76 |
<li>Instant Notifications When Your Emails Stop Working</li> |
| 77 |
<li>Auto Forward</li> |
| 78 |
<li>Resend Emails</li> |
| 79 |
<li>Licenses & Sites Manager (remote SaaS dashboard)</li> |
| 80 |
<li>White-label Mode</li> |
| 81 |
<li>Complete Codeless Plugin Rebranding</li> |
| 82 |
<li>Email Support From Plugin Developers</li> |
| 83 |
</ul> |
| 84 |
|
| 85 |
<p class="text-center"><a href="#" class="open-pro-dialog button button-buy" data-pro-feature="sidebar-box-btn">Get PRO Now</a></p> |
| 86 |
</div>'; |
| 87 |
|
| 88 |
if (!defined('EPS_REDIRECT_VERSION') && !defined('WF301_PLUGIN_FILE')) { |
| 89 |
echo '<div class="sidebar-box pro-ad-box box-301"> |
| 90 |
<h3 class="textcenter"><b>Problems with redirects?<br>Moving content around or changing posts\' URL?<br>Old URLs giving you problems?<br><br><u>Improve your SEO & manage all redirects in one place!</u></b></h3> |
| 91 |
|
| 92 |
<p class="text-center"><a href="#" class="install-wp301"> |
| 93 |
<img src="' . esc_url(EMAIL_LOG_URL . 'assets/img/wp-301-logo.png') . '" alt="WP 301 Redirects" title="WP 301 Redirects"></a></p> |
| 94 |
|
| 95 |
<p class="text-center"><a href="#" class="button button-buy install-wp301">Install and activate the <u>free</u> WP 301 Redirects plugin</a></p> |
| 96 |
|
| 97 |
<p><a href="https://wordpress.org/plugins/eps-301-redirects/" target="_blank">WP 301 Redirects</a> is a free WP plugin maintained by the same team as this Email Log plugin. It has <b>+350,000 users, 5-star rating</b>, and is hosted on the official WP repository.</p> |
| 98 |
</div>'; |
| 99 |
} |
| 100 |
|
| 101 |
echo '<div class="sidebar-box" style="margin: 35px 0;"> |
| 102 |
<p>Please <a href="https://wordpress.org/support/plugin/email-log/reviews/#new-post" target="_blank">rate the plugin � |
| 103 |
� |
| 104 |
� |
| 105 |
� |
| 106 |
� |
| 107 |
</a> to <b>keep it up-to-date & maintained</b>. It only takes a second to rate. Thank you! 👋</p> |
| 108 |
</div>'; |
| 109 |
echo '</div>'; |
| 110 |
echo '</form>'; |
| 111 |
|
| 112 |
echo ' <div id="emaillog-pro-dialog" style="display: none;" title="Email Log PRO is here!"><span class="ui-helper-hidden-accessible"><input type="text"/></span> |
| 113 |
|
| 114 |
<div class="center logo"><a href="https://wpemaillog.com/?ref=emaillog-free-pricing-table" target="_blank" class="sidebar-box-logo"><img src="' . esc_url(EMAIL_LOG_URL . 'assets/img/logo-64x64.png') . '" alt="Email Log PRO" title="Email Log PRO"> Email Log</a><br> |
| 115 |
|
| 116 |
</div> |
| 117 |
|
| 118 |
<table id="emaillog-pro-table"> |
| 119 |
<tr> |
| 120 |
<td class="center">Personal License</td> |
| 121 |
<td class="center">Team License</td> |
| 122 |
<td class="center">Agency License</td> |
| 123 |
</tr> |
| 124 |
|
| 125 |
<tr class="prices"> |
| 126 |
<td class="center"><span>$59</span> <b>/year</b></td> |
| 127 |
<td class="center"><span>$99</span> <b>/year</b></td> |
| 128 |
<td class="center"><span>$119</span> <b>/year</b></td> |
| 129 |
</tr> |
| 130 |
|
| 131 |
<tr> |
| 132 |
<td><span class="dashicons dashicons-yes"></span><b>1 Site License</b> ($59 per site)</td> |
| 133 |
<td><span class="dashicons dashicons-yes"></span><b>5 Sites License</b> ($19 per site)</td> |
| 134 |
<td><span class="dashicons dashicons-yes"></span><b>100 Sites License</b> ($1 per site)</td> |
| 135 |
</tr> |
| 136 |
|
| 137 |
<tr> |
| 138 |
<td><span class="dashicons dashicons-yes"></span>All Plugin Features</td> |
| 139 |
<td><span class="dashicons dashicons-yes"></span>All Plugin Features</td> |
| 140 |
<td><span class="dashicons dashicons-yes"></span>All Plugin Features</td> |
| 141 |
</tr> |
| 142 |
|
| 143 |
<tr> |
| 144 |
<td><span class="dashicons dashicons-yes"></span>Detailed Email Log</td> |
| 145 |
<td><span class="dashicons dashicons-yes"></span>Detailed Email Log</td> |
| 146 |
<td><span class="dashicons dashicons-yes"></span>Detailed Email Log</td> |
| 147 |
</tr> |
| 148 |
|
| 149 |
<tr> |
| 150 |
<td><span class="dashicons dashicons-yes"></span>24/7 Monitoring</td> |
| 151 |
<td><span class="dashicons dashicons-yes"></span>24/7 Monitoring</td> |
| 152 |
<td><span class="dashicons dashicons-yes"></span>24/7 Monitoring</td> |
| 153 |
</tr> |
| 154 |
|
| 155 |
<tr> |
| 156 |
<td><span class="dashicons dashicons-yes"></span>Auto Forward & Resend Emails</td> |
| 157 |
<td><span class="dashicons dashicons-yes"></span>Auto Forward & Resend Emails</td> |
| 158 |
<td><span class="dashicons dashicons-yes"></span>Auto Forward & Resend Emails</td> |
| 159 |
</tr> |
| 160 |
|
| 161 |
<tr> |
| 162 |
<td><span class="dashicons dashicons-yes"></span>SaaS Dashboard</td> |
| 163 |
<td><span class="dashicons dashicons-yes"></span>SaaS Dashboard</td> |
| 164 |
<td><span class="dashicons dashicons-yes"></span>SaaS Dashboard</td> |
| 165 |
</tr> |
| 166 |
|
| 167 |
<tr> |
| 168 |
<td><span class="dashicons dashicons-yes"></span>1 Year of Updates & Support</td> |
| 169 |
<td><span class="dashicons dashicons-yes"></span>1 Year of Updates & Support</td> |
| 170 |
<td><span class="dashicons dashicons-yes"></span>1 Year of Updates & Support</td> |
| 171 |
</tr> |
| 172 |
|
| 173 |
<tr> |
| 174 |
<td><span class="dashicons dashicons-no"></span>White-label Mode</td> |
| 175 |
<td><span class="dashicons dashicons-yes"></span>White-label Mode</td> |
| 176 |
<td><span class="dashicons dashicons-yes"></span>White-label Mode</td> |
| 177 |
</tr> |
| 178 |
|
| 179 |
<tr> |
| 180 |
<td><span class="dashicons dashicons-no"></span>Full Plugin Rebranding</td> |
| 181 |
<td><span class="dashicons dashicons-no"></span>Full Plugin Rebranding</td> |
| 182 |
<td><span class="dashicons dashicons-yes"></span>Full Plugin Rebranding</td> |
| 183 |
</tr> |
| 184 |
|
| 185 |
<tr> |
| 186 |
<td><a class="button button-buy" data-href-org="https://wpemaillog.com/buy/?product=personal-yearly&ref=pricing-table" href="https://wpemaillog.com/buy/?product=personal-yearly&ref=pricing-table" target="_blank">BUY NOW</a><br>or <a target="_blank" class="button-buy" href="https://wpemaillog.com/buy/?product=personal-ltd-launch&ref=pricing-table" data-href-org="https://wpemaillog.com/buy/?product=personal-ltd-launch&ref=pricing-table">only <del>$159</del> $89 for a lifetime license</a></td> |
| 187 |
<td><a class="button button-buy" data-href-org="https://wpemaillog.com/buy/?product=team-yearly&ref=pricing-table" href="https://wpemaillog.com/buy/?product=team-yearly&ref=pricing-table" target="_blank">BUY NOW</a></td> |
| 188 |
<td><a class="button button-buy" data-href-org="https://wpemaillog.com/buy/?product=agency-yearly&ref=pricing-table" href="https://wpemaillog.com/buy/?product=agency-yearly&ref=pricing-table" target="_blank">BUY NOW</a></td> |
| 189 |
</tr> |
| 190 |
|
| 191 |
</table> |
| 192 |
|
| 193 |
<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://wpemaillog.com/buy/?product=personal-monthly&ref=pricing-table" href="https://wpemaillog.com/buy/?product=personal-monthly&ref=pricing-table"><b>Get it for ONLY $9.99</b><small> /month</small></a> & cancel any time!</div> |
| 194 |
|
| 195 |
<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>'; |
| 196 |
} |
| 197 |
} |
| 198 |
|