
<!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: modal.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">/*
How to use the modal

wp_optimize.modal.open({
	className: &#039;a-class&#039;, // A class name, added to the main modal container
	events: {}, // An object containing the events added to the modal. See Backbonejs View events syntax.
	content: function() {
		return &#039;&#039;; // the Content method returns html or jQuery objects which will be added to the content area of the modal
	},
	... // Other methods used by the custom events
})
*/

var wp_optimize = window.wp_optimize || {};

// WordPress v4.9 uses Backbone v1.3.3, which does not support the preinitialize() hook.
// Therefore, we are adding a patch to enable support for the preinitialize() hook.
(function() {
	var OriginalView = Backbone.View;
	Backbone.View = function(options) {
		if (typeof this.preinitialize === &#039;function&#039;) {
		this.preinitialize.apply(this, arguments);
		}
		return OriginalView.apply(this, arguments);
	};
	Backbone.View.prototype = OriginalView.prototype;
	Backbone.View.extend = OriginalView.extend;
})();

(function($, wp) {
	&#039;use strict&#039;;
	var modal = {};
	modal.views = {};

	/**
	 * Main modal View
	 */
	modal.views.modal = Backbone.View.extend({
		tagName: &#039;div&#039;,
		template: wp.template(&#039;wpo-modal&#039;),
		/**
		 * Extend default values
		 */
		preinitialize: function() {
			this.events = _.extend(this.events || {}, {
				&#039;click .wpo-modal--close&#039;: &#039;close&#039;
			});
			this.className = this.className ? &#039;wpo-modal--container &#039; + this.className : &#039;wpo-modal--container &#039;;
		},
		render: function() {
			this.$el.append(this.template());
			this.trigger(&#039;rendered&#039;);
		},
		initialize: function() {
			this.trigger(&#039;initialize&#039;);
			this.render();
			this.$content = this.$el.find(&#039;.wpo-modal--content&#039;);
			// Append the content area with the content provided by the child object
			if (&#039;function&#039; === typeof this.content) {
				this.$content.append(this.content());
			}
		},
		close: function() {
			$(&#039;body&#039;).removeClass(&#039;wpo-modal-is-opened&#039;);
			this.remove();
		}
	});

	/**
	 * Public method to create and open the modal
	 */
	modal.open = function(options) {
		var view_options = _.extend(options || {}, {});
		var modalView = modal.views.modal.extend(view_options);
		var m = new modalView();
		m.$el.appendTo(&#039;body&#039;);
		m.$(&#039;.wpo-modal&#039;).focus();
		$(&#039;body&#039;).addClass(&#039;wpo-modal-is-opened&#039;);
		return m;
	}

	wp_optimize.modal = modal;
})(jQuery, window.wp);</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//astyleofshade.com.au/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://astyleofshade.com.au/post-sitemap.xml</loc>
		<lastmod>2026-09-12T02:12:46+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://astyleofshade.com.au/page-sitemap.xml</loc>
		<lastmod>2026-09-11T01:03:07+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->