
<!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-form-amp.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

/**
 * Class MC4WP_Form_AMP
 */
class MC4WP_Form_AMP {

	/**
	 * Hook!
	 */
	public function add_hooks() {
		add_filter( &#039;mc4wp_form_content&#039;, array( $this, &#039;add_response_templates&#039; ), 10, 2 );
		add_filter( &#039;mc4wp_form_element_attributes&#039;, array( $this, &#039;add_amp_request&#039; ) );
		add_filter( &#039;mc4wp_load_form_scripts&#039;, array( $this, &#039;suppress_scripts&#039; ) );
	}

	/**
	 * Add AMP templates for submit/success/error.
	 *
	 * @param string     $content The form content.
	 * @param MC4WP_Form $form The form object.
	 * @return string    Modified $content.
	 */
	public function add_response_templates( $content, $form ) {
		if ( ! function_exists( &#039;amp_is_request&#039; ) || ! amp_is_request() ) {
			return $content;
		}

		ob_start();
		?&gt;
		&lt;div submitting&gt;
			&lt;template type=&quot;amp-mustache&quot;&gt;
				&lt;?php echo esc_html__( &#039;Submitting...&#039;, &#039;mailchimp-for-wp&#039; ); ?&gt;
			&lt;/template&gt;
		&lt;/div&gt;
		&lt;div submit-success&gt;
			&lt;template type=&quot;amp-mustache&quot;&gt;
				&lt;?php
				echo wp_kses(
					$form-&gt;get_message( &#039;subscribed&#039; ),
					array(
					&#039;a&#039; =&gt; array(),
					&#039;strong&#039; =&gt; array(),
					&#039;em&#039; =&gt; array(),
					)
				);
				?&gt;
			&lt;/template&gt;
		&lt;/div&gt;
		&lt;div submit-error&gt;
			&lt;template type=&quot;amp-mustache&quot;&gt;
				{{message}}
			&lt;/template&gt;
		&lt;/div&gt;
		&lt;?php
		$content .= ob_get_clean();

		return $content;
	}

	/**
	 * Add &#039;action-xhr&#039; to AMP forms.
	 *
	 * @param array $attributes Key-Value pairs of attributes output on form.
	 * @return array Modified $attributes.
	 */
	public function add_amp_request( $attributes ) {
		if ( function_exists( &#039;amp_is_request&#039; ) &amp;&amp; amp_is_request() ) {
			$attributes[&#039;action-xhr&#039;] = get_rest_url( null, &#039;mc4wp/v1/form&#039; );
		}

		return $attributes;
	}

	/**
	 * Suppress form scripts on AMP pages.
	 *
	 * @param bool $load_scripts Whether scripts should be loaded.
	 * @return bool Modified $load_scripts.
	 */
	public function suppress_scripts( $load_scripts ) {
		if ( function_exists( &#039;amp_is_request&#039; ) &amp;&amp; amp_is_request() ) {
			return false;
		}

		return $load_scripts;
	}
}
</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>
