( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
include("../includes/limittext.php");
include('../Connections/videoondemand.php');
require("../DbSql2.inc.php");
require("../NewsSql2.inc.php");
$db = new NewsSQL;
include("../protect.php");
session_start();
$userid=$_COOKIE['euserid'];
if (empty ($userid) )
{
header("Location: $siteaddress2/m/auth/login");
}
if(empty($_GET['themeid']))
{
header("Location: $siteaddress2/m/auth/login");
exit();
}
else
{
$themeid = $_GET['themeid'];
$themeid = $db->base64url_decode($themeid);
}
?>
<!DOCTYPE html>
<html xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en-gb" lang="en-gb">
<head>
<meta charset="utf-8" />
<?php /*?><title><?php if(!empty($mode)) { echo ucwords($mode); }?><?php if(!empty($splash)) { echo ucwords($splash); }?> | <?php if(!empty($slug)) {echo $catalognameX." | ". $front_indextitle; }else {echo $front_indextitle;} ?></title><?php */?>
<?php if(empty($websiteTitle)) { $websiteTitle = ucwords($mode); }?>
<title><?php echo $siteName ?> - Easy Edit</title>
<meta name="description" content="<?php if(!empty($slug)) { echo $descriptionX; } else {echo $description;}?>" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="<?php echo $siteaddress; ?>easyEdit/assets/css/stylesX.min.css">
<link href='<?php echo $siteaddress; ?>easyEdit/assets/css/css.css' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="<?php echo $siteaddress; ?>css/eziki.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $siteaddress; ?>css/icofont.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $siteaddress; ?>pages/splash/startags.css">
<style>
#dialog-background{
background: none repeat scroll 0 0 rgba(255, 255,255);
height: 100%;
left: 0;
margin: 0;
padding: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 999999999;
display:block;
/*background-color:#b92861;*/
}
#dialog-loading-wrapper {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
border: 0 none;
height: 116px;
left: 50%;
margin-left: -50px;
margin-top: -50px;
position: fixed;
top: 50%;
width: 116px;
z-index: 9999999;
}
#dialog-loading-icon {
/* background-color: #b92861 !important;*/
border-radius: 50px;
/* background-image:url(../loaders/gagnam.gif);*/
background-repeat:no-repeat;
display: block;
background-position:center;
height: 100px;
line-height:100px;
margin: 0;
padding: 0px;
text-align: center;
background-color:#00bff3;
color: #fff;
width: 100px;
}
body, html {
margin: 0;
width: 100%;
height: 100%;
margin-top: 25px;
font-family:"Poppins",sans-serif;
color: #252525;
}
toolbar {
background-color: aqua;
}
</style>
<?php /*?><script src="//cdn.jsdelivr.net/npm/sweetalert2@10/dist/sweetalert2.min.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/sweetalert2@10/dist/sweetalert2.min.css" id="theme-styles">
<script src="//cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script> <?php */?>
<?php include("../newdatasets/headerNew.php");?>
<style>
.float2{
position:fixed;
width:40px;
height: 40px;
right:55px;
bottom:165px;
background-color:#ffffff;
color:#00bff3;
border-radius:40px;
text-align:center;
box-shadow: 2px 2px 3px #999;
z-index: 999999;
line-height: 40px;
}
.float3{
position:fixed;
width:40px;
right:5px;
height:40px;
bottom:165px;
background-color:#00bff3;
color:#FFF;
border-radius:40px;
text-align:center;
box-shadow: 2px 2px 3px #999;
z-index: 999999;
line-height: 40px;
}
#loadingX{
position:fixed;
width:136px;
padding-left:5px;
left:5px;
height:40px;
bottom:130px;
background-color:#ffffff;
color:#00bff3;
border-radius:40px;
text-align:center;
box-shadow: 2px 2px 3px #999;
z-index: 999999;
line-height: 40px;
font-size:12px;
display:none;
}
</style>
<div id="loadingX"> </div>
<div id="dialog-background" >
<div id="dialog-loading-wrapper">
<div id="dialog-loading-icon" >Loading
</div>
</div>
</div>
<a class="float3" id="saveme">
<i class="icofont-save my-float" ></i>
</a>
<a class="float2" id="addphoto">
<i class="icofont-image my-float" ></i>
</a>
<brandeditor-editor>
<!--<button _ngcontent-eog-c74="" type="button" mat-button="" class="float3 mat-focus-indicator mat-button mat-button-base ng-star-inserted mat-icon-button"><span class="mat-button-wrapper"><mat-icon _ngcontent-eog-c74="" role="img" class="mat-icon notranslate mat-icon-no-color" aria-hidden="true" data-mat-icon-type="svg" data-mat-icon-name="file-download"><svg class="file-download" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fit="" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" focusable="false"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></svg></mat-icon> </span><span matripple="" class="mat-ripple mat-button-ripple"></span><span class="mat-button-focus-overlay"></span></button>-->
<!-- <div class="global-spinner">
<style>.global-spinner {display: none; align-items: center; justify-content: center; z-index: 999; background: #fff; position: fixed; top: 0; left: 0; width: 100%; height: 100%;}</style>
<style>.la-ball-spin-clockwise,.la-ball-spin-clockwise>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-ball-spin-clockwise{display:block;font-size:0;color:#1976d2}.la-ball-spin-clockwise.la-dark{color:#333}.la-ball-spin-clockwise>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}.la-ball-spin-clockwise{width:32px;height:32px}.la-ball-spin-clockwise>div{position:absolute;top:50%;left:50%;width:8px;height:8px;margin-top:-4px;margin-left:-4px;border-radius:100%;-webkit-animation:ball-spin-clockwise 1s infinite ease-in-out;-moz-animation:ball-spin-clockwise 1s infinite ease-in-out;-o-animation:ball-spin-clockwise 1s infinite ease-in-out;animation:ball-spin-clockwise 1s infinite ease-in-out}.la-ball-spin-clockwise>div:nth-child(1){top:5%;left:50%;-webkit-animation-delay:-.875s;-moz-animation-delay:-.875s;-o-animation-delay:-.875s;animation-delay:-.875s}.la-ball-spin-clockwise>div:nth-child(2){top:18.1801948466%;left:81.8198051534%;-webkit-animation-delay:-.75s;-moz-animation-delay:-.75s;-o-animation-delay:-.75s;animation-delay:-.75s}.la-ball-spin-clockwise>div:nth-child(3){top:50%;left:95%;-webkit-animation-delay:-.625s;-moz-animation-delay:-.625s;-o-animation-delay:-.625s;animation-delay:-.625s}.la-ball-spin-clockwise>div:nth-child(4){top:81.8198051534%;left:81.8198051534%;-webkit-animation-delay:-.5s;-moz-animation-delay:-.5s;-o-animation-delay:-.5s;animation-delay:-.5s}.la-ball-spin-clockwise>div:nth-child(5){top:94.9999999966%;left:50.0000000005%;-webkit-animation-delay:-.375s;-moz-animation-delay:-.375s;-o-animation-delay:-.375s;animation-delay:-.375s}.la-ball-spin-clockwise>div:nth-child(6){top:81.8198046966%;left:18.1801949248%;-webkit-animation-delay:-.25s;-moz-animation-delay:-.25s;-o-animation-delay:-.25s;animation-delay:-.25s}.la-ball-spin-clockwise>div:nth-child(7){top:49.9999750815%;left:5.0000051215%;-webkit-animation-delay:-.125s;-moz-animation-delay:-.125s;-o-animation-delay:-.125s;animation-delay:-.125s}.la-ball-spin-clockwise>div:nth-child(8){top:18.179464974%;left:18.1803700518%;-webkit-animation-delay:0s;-moz-animation-delay:0s;-o-animation-delay:0s;animation-delay:0s}.la-ball-spin-clockwise.la-sm{width:16px;height:16px}.la-ball-spin-clockwise.la-sm>div{width:4px;height:4px;margin-top:-2px;margin-left:-2px}.la-ball-spin-clockwise.la-2x{width:64px;height:64px}.la-ball-spin-clockwise.la-2x>div{width:16px;height:16px;margin-top:-8px;margin-left:-8px}.la-ball-spin-clockwise.la-3x{width:96px;height:96px}.la-ball-spin-clockwise.la-3x>div{width:24px;height:24px;margin-top:-12px;margin-left:-12px}@-webkit-keyframes ball-spin-clockwise{0%,100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}20%{opacity:1}80%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}}@-moz-keyframes ball-spin-clockwise{0%,100%{opacity:1;-moz-transform:scale(1);transform:scale(1)}20%{opacity:1}80%{opacity:0;-moz-transform:scale(0);transform:scale(0)}}@-o-keyframes ball-spin-clockwise{0%,100%{opacity:1;-o-transform:scale(1);transform:scale(1)}20%{opacity:1}80%{opacity:0;-o-transform:scale(0);transform:scale(0)}}@keyframes ball-spin-clockwise{0%,100%{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}20%{opacity:1}80%{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0)}}</style>
<div class="la-ball-spin-clockwise la-2x">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div> -->
<!-- <script>
setTimeout(function() {
var spinner = document.querySelector('.global-spinner');
if (spinner) spinner.style.display = 'flex';
}, 1000);</script> -->
</brandeditor-editor>
<script src="<?php echo $siteaddress; ?>easyEdit/assets/js/scriptsX.min.js"></script>
<script>
var brandeditor = new Brandeditor({
// ENTER CONFIGURATION HERE
watermarkText: '',
crossOrigin: true,
onLoad: function () {
window.postMessage('brandeditorLoaded', '*');
brandeditor.loadState('<?php echo $siteaddress; ?>easyEdit/myjson<?php echo $themeid; ?>.json').then(function() {
var spinner = document.querySelector('#dialog-background');
spinner.style.display = 'none';
spinner.style.visibility = 'hidden';
function activityWatcher(){
//The number of seconds that have passed
//since the user was active.
var secondsSinceLastActivity = 0;
//Five minutes. 60 x 5 = 300 seconds.
var maxInactivity = (1);
//Setup the setInterval method to run
//every second. 1000 milliseconds = 1 second.
setInterval(function(){
secondsSinceLastActivity++;
//console.log(secondsSinceLastActivity + ' seconds since the user was last active');
//if the user has been inactive or idle for longer
//then the seconds specified in maxInactivity
if(secondsSinceLastActivity > maxInactivity){
console.log('User has been inactive for more than ' + maxInactivity + ' seconds');
//start
// Swal.fire({
// position: 'top-end',
// icon: 'success',
// title: 'Your work has been saved',
// showConfirmButton: false,
// timer: 1500
// })
//end
}
else{
/*
var stateX = brandeditor.getState();
brandeditor.http().post('<?php echo $siteaddress; ?>TheBrandX/mode.php?mode=saveDesignNewInterface&themeid=<?php echo $themeid; ?>&nani=<?php echo $userid; ?>', {data: stateX}).subscribe(function(response) {
var loading = document.querySelector('#loadingX');
loading.style.display = 'block';
loading.style.visibility = 'visible';
document.getElementById("loadingX").innerHTML='Design saved...';
setTimeout(function(){
var loading = document.querySelector('#loadingX');
loading.style.display = 'none';
loading.style.visibility = 'hidden';
}, 3000);
});*/
}
}, 3000);
document.getElementById("saveme").addEventListener("click", myFunction);
function myFunction() {
var stateX = brandeditor.getState();
brandeditor.http().post('<?php echo $siteaddress; ?>TheBrandX/mode.php?mode=saveDesignNewInterface&themeid=<?php echo $themeid; ?>&nani=<?php echo $userid; ?>', {data: stateX}).subscribe(function(response) {
var loading = document.querySelector('#loadingX');
loading.style.display = 'block';
loading.style.visibility = 'visible';
document.getElementById("loadingX").innerHTML='Design saved...';
setTimeout(function(){
var loading = document.querySelector('#loadingX');
loading.style.display = 'none';
loading.style.visibility = 'hidden';
}, 3000);
});
}
document.getElementById("addphoto").addEventListener("click", myFunction2);
function myFunction2() {
brandeditor.getTool('import').openUploadDialog().then(function(obj) {
});
}
//The function that will be called whenever a user is active
function activity(){
//reset the secondsSinceLastActivity variable
//back to 0
secondsSinceLastActivity = 0;
}
//An array of DOM events that should be interpreted as
//user activity.
var activityEvents = [
'mousedown', 'keydown', 'touchstart'
];
//add these events to the document.
//register the activity function as the listener parameter.
activityEvents.forEach(function(eventName) {
document.addEventListener(eventName, activity, true);
});
}
activityWatcher();
});
},
// onSave: function(data) {
// var stateX = brandeditor.getState();
// brandeditor.http().post('http://localhost/thebrand/TheBrandX/mode.php?mode=saveDesignNewInterface&nani=152&themeid=<?php echo $themeid; ?>&userid=<?php echo $userid; ?>', {data: stateX}).subscribe(function(response) {
// }); },
ui: {
defaultTheme: 'blue',
mode: 'inline',
openImageDialog: false,
compact: true,
/* openImageDialog: { show: true, sampleImages: [ ] } ,*/
toolbar: {
replaceDefaultLeftItems: true,
replaceDefaultCenterItems: true,
replaceDefaultRightItems: true,
/* leftItems: [
{
type: "button",
icon: "photo-library",
text: "Add",
showInCompactMode: !0,
dropdownItems: [
{ action: "openBackgroundImage", label: "Background Image" },
{ action: "openOverlayImage", label: "Overlay Image" },
{ action: "openStateFile", label: "Open Template" },
],
},
],
*/
leftItems: [
{ type: "button", icon: "history", action: "toggleHistory", showInCompactMode: !0, },
],
centerItems: [{ type: "zoomWidget", showInCompactMode: !0, }, { type: "button", icon: "layers", action: "toggleObjects" , showInCompactMode: !0},],
rightItems: [
{
type: "button",
icon: "file-download",
text: "Download",
action: "exportImage",
showInCompactMode: !0,
},
],
},
},
});
</script>
<?php /*?>
“pixie.openEditorWithImage(‘https://image.png')"
brandeditor.getTool('text').add('my text', {fontStyle: 'Times New Roman'});
Instead of having two instances of pixie on the page, you should use “pixie.resetEditor({image: ‘new-image.jpg’})” to load new image.
onMainImageLoaded: function(file) {pixie.getTool(‘shapes’).addSticker(‘placeholders’, 0); var activeObject = pixie.get(‘activeObject’);var x=parseInt(mainImage.width-1000)/2; var y=parseInt(mainImage.height-1000)/2; setTimeout(function(){activeObject.setValues({ opacity: 1, width: 1000, height:1000, scaleX:1, scaleY:1, left:x, top:y, lockUniScaling: false, hasRotatingPoint: false, name:’placeholder’ })},1000);<?php */?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-102496375-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-102496375-1');
</script>