from prod
This commit is contained in:
@ -18,6 +18,7 @@ use TheTempusProject\Houdini\Classes\Issues;
|
|||||||
use TheTempusProject\Houdini\Classes\Views;
|
use TheTempusProject\Houdini\Classes\Views;
|
||||||
use TheTempusProject\Models\User;
|
use TheTempusProject\Models\User;
|
||||||
use TheTempusProject\Models\Subscribe;
|
use TheTempusProject\Models\Subscribe;
|
||||||
|
use TheTempusProject\Plugins\Subscribe as Plugin;
|
||||||
|
|
||||||
class SendMail extends AdminController {
|
class SendMail extends AdminController {
|
||||||
public static $user;
|
public static $user;
|
||||||
@ -27,10 +28,24 @@ class SendMail extends AdminController {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
self::$title = 'Admin - Send Mail';
|
self::$title = 'Admin - Send Mail';
|
||||||
self::$user = new User;
|
self::$user = new User;
|
||||||
self::$subscribe = new Subscribe;
|
|
||||||
|
if ( class_exists( 'TheTempusProject\Plugins\Subscribe' ) ) {
|
||||||
|
$plugin = new Plugin;
|
||||||
|
if ( ! $plugin->checkEnabled() ) {
|
||||||
|
Issues::add( 'warn', 'Subscriptions are disabled so those feature will be unavailable.' );
|
||||||
|
} else {
|
||||||
|
self::$subscribe = new Subscribe;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Issues::add( 'warn', 'Subscriptions plugin is not installed so those feature will be unavailable.' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function emailSubscribers( $params ) {
|
private function emailSubscribers( $params ) {
|
||||||
|
if ( empty( self::$subscribe ) ) {
|
||||||
|
Issues::add( 'error', 'Subscriptions plugin is unavailable' );
|
||||||
|
return;
|
||||||
|
}
|
||||||
$list = self::$subscribe->list();
|
$list = self::$subscribe->list();
|
||||||
if ( empty( $list ) ) {
|
if ( empty( $list ) ) {
|
||||||
Issues::add( 'error', 'No subscribers found' );
|
Issues::add( 'error', 'No subscribers found' );
|
||||||
|
BIN
app/images/clean-simple.png
Normal file
BIN
app/images/clean-simple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
BIN
app/images/in-one-place.png
Normal file
BIN
app/images/in-one-place.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
app/images/keep-track.png
Normal file
BIN
app/images/keep-track.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 80 KiB |
BIN
app/plugins/bookmarks/images/opera/optiions.png
Normal file
BIN
app/plugins/bookmarks/images/opera/optiions.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
<!-- Call to Action -->
|
<!-- Call to Action -->
|
||||||
<div class="text-center mt-5">
|
<div class="text-center mt-5">
|
||||||
<a href="#" class="btn atb-green-bg btn-lg">
|
<a href="/opera" class="btn atb-green-bg btn-lg">
|
||||||
<i class="fas fa-download me-2"></i>Get the Addon for Opera
|
<i class="fas fa-download me-2"></i>Get the Addon for Opera
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user