
<!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: redirect.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
namespace ElementorPro\Modules\Forms\Actions;

use Elementor\Controls_Manager;
use Elementor\Modules\DynamicTags\Module as TagsModule;
use ElementorPro\Modules\Forms\Classes\Action_Base;


if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit; // Exit if accessed directly
}

class Redirect extends Action_Base {

	public function get_name() {
		return &#039;redirect&#039;;
	}

	public function get_label() {
		return esc_html__( &#039;Redirect&#039;, &#039;elementor-pro&#039; );
	}

	public function register_settings_section( $widget ) {
		$widget-&gt;start_controls_section(
			&#039;section_redirect&#039;,
			[
				&#039;label&#039; =&gt; esc_html__( &#039;Redirect&#039;, &#039;elementor-pro&#039; ),
				&#039;condition&#039; =&gt; [
					&#039;submit_actions&#039; =&gt; $this-&gt;get_name(),
				],
			]
		);

		$widget-&gt;add_control(
			&#039;redirect_to&#039;,
			[
				&#039;label&#039; =&gt; esc_html__( &#039;Redirect To&#039;, &#039;elementor-pro&#039; ),
				&#039;type&#039; =&gt; Controls_Manager::TEXT,
				&#039;placeholder&#039; =&gt; esc_html__( &#039;https://your-link.com&#039;, &#039;elementor-pro&#039; ),
				&#039;dynamic&#039; =&gt; [
					&#039;active&#039; =&gt; true,
					&#039;categories&#039; =&gt; [
						TagsModule::POST_META_CATEGORY,
						TagsModule::TEXT_CATEGORY,
						TagsModule::URL_CATEGORY,
					],
				],
				&#039;label_block&#039; =&gt; true,
				&#039;render_type&#039; =&gt; &#039;none&#039;,
				&#039;classes&#039; =&gt; &#039;elementor-control-direction-ltr&#039;,
			]
		);

		$widget-&gt;end_controls_section();
	}

	public function on_export( $element ) {
		unset(
			$element[&#039;settings&#039;][&#039;redirect_to&#039;]
		);

		return $element;
	}

	public function run( $record, $ajax_handler ) {
		$redirect_to = $record-&gt;get_form_settings( &#039;redirect_to&#039; );

		$redirect_to = $record-&gt;replace_setting_shortcodes( $redirect_to, true );

		if ( ! empty( $redirect_to ) &amp;&amp; filter_var( $redirect_to, FILTER_VALIDATE_URL ) ) {
			$ajax_handler-&gt;add_response_data( &#039;redirect_url&#039;, $redirect_to );
		}
	}
}
</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>
