Your IP : 216.73.217.53


Current Path : /home/bonneesp/www/administrator/components/com_templateck/views/template/tmpl/
Upload File :
Current File : /home/bonneesp/www/administrator/components/com_templateck/views/template/tmpl/edit_preview.php

<?php
/**
 * @name		Template Creator CK
 * @copyright	Copyright (C) since 2011. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
 */
// no direct access
defined('TCK_LOADED') or die;

use Templatecreatorck\CKFof;
use Templatecreatorck\CKUri;

include_once TEMPLATECREATORCK_PATH . '/helpers/ckfof.php';
include_once TEMPLATECREATORCK_PATH . '/helpers/defines.js.php';

?>
<link rel="stylesheet" href="<?php echo TEMPLATECREATORCK_MEDIA_URI ?>/assets/preview.css" type="text/css" />
<script src="<?php echo TEMPLATECREATORCK_MEDIA_URI ?>/assets/preview.js" type="text/javascript"></script>
<?php /*
<iframe id="ckiframepreview" title="Site Preview" name="customize-preview" src="<?php echo CKUri::root() ?>?template=test&tckedition=1&from=templatecreatorck&cksource=templatecreatorck" onload="ckAddIframeSuffix(this)"></iframe>
*/ ?>
<script>
// automatically add the source input on all links in the iframe
function ckAddIframeSuffix(frame) {
	var links = frame.contentDocument.querySelectorAll('a');
	links.forEach((link) => {
		var href = link.getAttribute('href');
		if (href) {
			href = href.indexOf('?') >= 0 ? href + '&cksource=templatecreatorck' : href + '?cksource=templatecreatorck';
			link.setAttribute('href', href);
		}
	});
}
</script>

<?php
// load left menu
include TEMPLATECREATORCK_PATH . '/views/template/tmpl/preview_menu.php';