HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-rss-aggregator/v4/includes/black-friday-2021.php
<?php

add_action('admin_notices', function () {
    if (!wprss_is_wprss_page() || count(wprss_get_addons()) > 0) {
        return;
    }

    $year = (int) date('Y');
    $month = (int) date('n');
    $day = (int) date('j');

    if ($year !== 2021 || $month !== 11 || $day < 22 || $day > 29) {
        return;
    }

    printf(
        '<div class="notice notice-info">
            <p>
                %s
                <a href="https://www.wprssaggregator.com/upgrade/" target="_blank"><b>%s</b></a>
                %s
            </p>
        </div>',
        __('Black Friday/Cyber Monday:', 'wprss'),
        __('Get 30% off WP RSS Aggregator plans today!', 'wprss'),
        __('Offer ends on the 29th of November.', 'wprss')
    );
});