| Server IP : 185.11.201.71 / Your IP : 192.168.7.18 Web Server : Apache/2.4.29 (Ubuntu) System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : tech ( 1000) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/enaireretos/wp-content/plugins/elementor-pro/modules/announcements/ |
Upload File : |
<?php
namespace ElementorPro\Modules\Announcements;
use Elementor\Core\Base\App as BaseApp;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends BaseApp {
/**
* @return bool
*/
public static function is_active(): bool {
return is_admin();
}
/**
* @return string
*/
public function get_name(): string {
return 'announcements';
}
public function __construct() {
parent::__construct();
add_filter( 'elementor/announcements/raw_announcements', function ( $raw_announcements ) {
$raw_announcement = [
'title' => __( 'Keep Your Website’s Shine On', 'elementor-pro' ),
'description' => __( '<p>Your Elementor Pro subscription has expired. Renew it now to regain access to the Pro features that elevate your website.</p>
<ul>
<li>Manage and edit every part of your website, including pages, templates, headers, footers, and more.</li>
<li>Increase engagement and conversion with Elementor’s marketing features including Forms, and Popups.</li>
<li>Update your website’s content and design using Elementor Pro’s professional widgets and features for any need.</li>
<li>Keep your website secure and compatible by updating your Elementor Pro website to the latest version.</li>
</ul>', 'elementor-pro' ),
'media' => [
'type' => 'image',
'src' => ELEMENTOR_PRO_ASSETS_URL . 'images/announcements/license-expired.png?' . ELEMENTOR_PRO_VERSION,
],
'cta' => [
[
'label' => __( 'Renew Now', 'elementor-pro' ),
'variant' => 'primary',
'target' => '_blank',
'url' => 'https://go.elementor.com/renew-license-editor-expired-modal/',
],
[
'label' => __( 'Learn More', 'elementor-pro' ),
'target' => '_blank',
'url' => 'https://go.elementor.com//learn-more-editor-expired-modal/',
],
],
'triggers' => [
[
'action' => 'isLicenseExpired',
],
],
];
array_unshift( $raw_announcements, $raw_announcement );
return $raw_announcements;
}, 400 );
add_filter( 'elementor/announcements/trigger_object', function( $object_trigger, $trigger ) {
if ( ! empty( $trigger['action'] ) && 'isLicenseExpired' === $trigger['action'] ) {
$object_trigger = new Triggers\IsLicenseExpired();
}
return $object_trigger;
}, 400, 2 );
}
}