MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/www/wp-content/plugins/imageseo/src/Models/AbstractNotice.php
<?php

namespace ImageSeoWP\Models;

if (!defined('ABSPATH')) {
    exit;
}

/**
 * Abstract class for manage admin notices.
 *
 * @abstract
 */
abstract class AbstractNotice
{
    /**
     * Get template file for admin notice.
     *
     * @static
     *
     * @return string
     */
    public static function get_template_file()
    {
        return '';
    }

    /**
     * Callback for admin_notice hook.
     *
     * @static
     *
     * @return string
     */
    public static function admin_notice()
    {
        $screen = get_current_screen();
        if ('toplevel_page_imageseo-settings' === $screen->id) {
            return;
        }
        $class_call = get_called_class();
        if (!file_exists($class_call::get_template_file())) {
            return;
        }

        include_once $class_call::get_template_file();
    }
}