File "class-admin-notification.php"

Full Path: /home/tekvhqgl/public_html/dev2024_old_skip/wp-content/plugins/mobile-menu/includes/plugin-settings/lib/class-admin-notification.php
File size: 706 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly
}
class MobileMenuAdminNotification {

	function __construct() {
		add_filter( 'admin_notices', array( $this, 'displayNotifications' ) );
	}

	public function createNotification( $message, $type = 'updated', $location = 'top' ) {

	}

	public function displayNotifications() {
	}

	public static function formNotification( $message, $type = 'updated', $location = 'top' ) {
		if ( $location != 'top' ) {
			$location = 'below-h2';
		}

		if ( $type == 'saved' || $type == 'reset' ) {
			$message = '<strong>' . $message . '</strong>';
			$type = 'updated';
		}

		return "<div class='$type $location'><p>{$message}</p></div>";
	}
}