| Server IP : 108.167.142.43 / Your IP : 216.73.217.58 Web Server : Apache System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : delarice ( 2406) PHP Version : 8.3.36 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home2/delarice/www/wp-content/plugins/image-optimization/modules/core/components/ |
Upload File : |
<?php
namespace ImageOptimization\Modules\Core\Components;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use Elementor\WPNotificationsPackage\V120\Notifications as Notifications_SDK;
class Notificator {
private ?Notifications_SDK $notificator = null;
public function get_notifications_by_conditions( bool $force_request = false ): array {
return $this->notificator->get_notifications_by_conditions( $force_request );
}
public function __construct() {
require_once IMAGE_OPTIMIZATION_PATH . '/vendor/autoload.php';
$this->notificator = new Notifications_SDK( [
'app_name' => 'image-optimizer',
'app_version' => IMAGE_OPTIMIZATION_VERSION,
'short_app_name' => 'eio',
'app_data' => [
'plugin_basename' => IMAGE_OPTIMIZATION_PLUGIN_FILE,
],
] );
}
}