
<!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: business-hours.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Build localized strings for use with the Business Hours Block.
 *
 * @package automattic/jetpack
 */

/**
 * Business Hours: Localized week
 *
 * @since 7.1
 */
class WPCOM_REST_API_V2_Endpoint_Business_Hours extends WP_REST_Controller {
	/**
	 * Constructor.
	 */
	public function __construct() {
		$this-&gt;namespace = &#039;wpcom/v2&#039;;
		$this-&gt;rest_base = &#039;business-hours&#039;;
		// This endpoint *does not* need to connect directly to Jetpack sites.
		add_action( &#039;rest_api_init&#039;, array( $this, &#039;register_routes&#039; ) );
	}

	/**
	 * Register endpoint route.
	 */
	public function register_routes() {
		// GET /sites/&lt;blog_id&gt;/business-hours/localized-week - Return the localized.
		register_rest_route(
			$this-&gt;namespace,
			&#039;/&#039; . $this-&gt;rest_base . &#039;/localized-week&#039;,
			array(
				array(
					&#039;methods&#039;             =&gt; WP_REST_Server::READABLE,
					&#039;callback&#039;            =&gt; array( $this, &#039;get_localized_week&#039; ),
					&#039;permission_callback&#039; =&gt; &#039;__return_true&#039;,
				),
			)
		);
	}

	/**
	 * Retreives localized business hours
	 *
	 * @return array data object containing information about business hours
	 */
	public function get_localized_week() {
		global $wp_locale;

		return array(
			&#039;days&#039;        =&gt; array(
				&#039;Sun&#039; =&gt; $wp_locale-&gt;get_weekday( 0 ),
				&#039;Mon&#039; =&gt; $wp_locale-&gt;get_weekday( 1 ),
				&#039;Tue&#039; =&gt; $wp_locale-&gt;get_weekday( 2 ),
				&#039;Wed&#039; =&gt; $wp_locale-&gt;get_weekday( 3 ),
				&#039;Thu&#039; =&gt; $wp_locale-&gt;get_weekday( 4 ),
				&#039;Fri&#039; =&gt; $wp_locale-&gt;get_weekday( 5 ),
				&#039;Sat&#039; =&gt; $wp_locale-&gt;get_weekday( 6 ),
			),
			&#039;startOfWeek&#039; =&gt; (int) get_option( &#039;start_of_week&#039;, 0 ),
		);
	}
}

wpcom_rest_api_v2_load_plugin( &#039;WPCOM_REST_API_V2_Endpoint_Business_Hours&#039; );
</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>
