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

namespace Elementor\Modules\GlobalClasses;

use Elementor\Core\Files\CSS\Post as Post_CSS;
use Elementor\Modules\AtomicWidgets\Styles\Styles_Renderer;
use Elementor\Plugin;

class Global_Classes_CSS_File extends Post_CSS {

	const FILE_PREFIX = &#039;global-classes-&#039;;

	const META_KEY = &#039;_elementor_css__global_classes&#039;;

	public function __construct( $kit_id = null ) {
		$kit_id = $kit_id ?? Plugin::$instance-&gt;kits_manager-&gt;get_active_id();

		parent::__construct( $kit_id );
	}

	public function get_name() {
		return &#039;global-classes&#039;;
	}

	protected function get_file_handle_id() {
		return &#039;elementor-global-classes-&#039; . $this-&gt;get_post_id();
	}

	protected function get_enqueue_dependencies() {
		return [];
	}

	protected function get_inline_dependency() {
		return &#039;&#039;;
	}

	protected function render( $context ) {
		$global_classes = Global_Classes_Repository::make()
			-&gt;context( $context )
			-&gt;all();

		if ( $global_classes-&gt;get_items()-&gt;is_empty() ) {
			return;
		}

		$sorted_items = $global_classes
			-&gt;get_order()
			-&gt;reverse()
			-&gt;map(
				fn( $id ) =&gt; $global_classes-&gt;get_items()-&gt;get( $id )
			);

		$css = Styles_Renderer::make(
			Plugin::$instance-&gt;breakpoints-&gt;get_breakpoints_config()
		)-&gt;on_prop_transform( function( $key, $value ) {
			if ( &#039;font-family&#039; !== $key ) {
				return;
			}

			$this-&gt;add_font( $value );
		} )-&gt;render(
			$sorted_items-&gt;map( function( $item ) {
				$item[&#039;cssName&#039;] = $item[&#039;label&#039;];

				return $item;
			} )-&gt;all()
		);

		$this-&gt;get_stylesheet()-&gt;add_raw_css( $css );
	}

	protected function render_css() {
		$this-&gt;render( Global_Classes_Repository::CONTEXT_FRONTEND );
	}
}
</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>
