<?php
/**
 * The Template for displaying the Zakeke designer
 *
 * This template can be overridden by copying it to yourtheme/zakeke.php.
 *
 * HOWEVER, on occasion Zakeke will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 */

if (!defined('ABSPATH')) {
	exit; // Exit if accessed directly
}

if ( ! isset( $final_atts ) ) {
	return;
}

?>

<div id="zakeke-container">
	<iframe src="about:blank" id="zakeke-frame" data-hj-allow-iframe="" allow="clipboard-read; clipboard-write; fullscreen"></iframe>
	<div id="zakeke-designer-config" data-config="<?php echo _wp_specialchars( zakeke_customizer_config($final_atts['product'], $final_atts['template'], true), ENT_QUOTES, 'UTF-8', true ) ?>"></div>
</div>

<form id="zakeke-addtocart" method="post" enctype="multipart/form-data"></form>
