{"id":147,"date":"2016-05-25T13:47:31","date_gmt":"2016-05-25T13:47:31","guid":{"rendered":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/?page_id=147"},"modified":"2016-05-25T13:47:52","modified_gmt":"2016-05-25T13:47:52","slug":"floral-response","status":"publish","type":"page","link":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/floral-response\/","title":{"rendered":"Floral Response"},"content":{"rendered":"\t\t\t\t<div id=\"fancy-product-designer-147\" class=\"fpd-container fpd-shadow-1\" style=\"float: none; margin-top:20px;margin-right:px;margin-bottom:px;margin-left:20px;\">\n\t\t\t\t\t<div class='fpd-product' title='Design RSVP' title='Design RSVP' data-thumbnail='https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/uploads\/2016\/05\/RSVP-graphic-rasterized.png' data-options='{\"width\":1650,\"stageHeight\":1238,\"customAdds\": {}}'><img data-src='https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/uploads\/2016\/05\/RSVP-graphic-rasterized-1.png' title='Background' data-parameters='{\"x\":825,\"y\":619,\"scale\":1.00,\"degree\":0,\"originX\":\"center\"}' \/><span title='KINDLY REPLY' data-parameters='{\"editable\":1,\"x\":835,\"y\":295,\"scale\":6.95,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1,\"font\":\"Unna\",\"textAlign\":\"center\",\"lineHeight\":1.00}'>KINDLY REPLY<\/span><span title='THE FAVOUR OF YOUR RESPONSE IS REQUESTED BY' data-parameters='{\"editable\":1,\"x\":828,\"y\":405,\"scale\":2.59,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1,\"font\":\"Unna\",\"textAlign\":\"center\",\"lineHeight\":1.00}'>THE FAVOUR OF YOUR RESPONSE IS REQUESTED BY<\/span><span title='July 8th, 2016' data-parameters='{\"editable\":1,\"x\":846,\"y\":524,\"scale\":8.61,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1,\"font\":\"Rouge Script\",\"textAlign\":\"center\",\"lineHeight\":1.00}'>July 8th, 2016<\/span><span title='M' data-parameters='{\"editable\":1,\"x\":314,\"y\":705,\"scale\":7.45,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1,\"font\":\"Rouge Script\",\"textAlign\":\"left\",\"lineHeight\":1.00}'>M<\/span><span title=' ACCEPTS WITH PLEASURE' data-parameters='{\"editable\":1,\"x\":588,\"y\":851,\"scale\":2.30,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1,\"font\":\"Unna\",\"textAlign\":\"left\",\"lineHeight\":1.00}'> ACCEPTS WITH PLEASURE<\/span><span title='DECLINES WITH REGRET' data-parameters='{\"editable\":1,\"x\":1184,\"y\":849,\"scale\":2.33,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1,\"font\":\"Unna\",\"textAlign\":\"left\",\"lineHeight\":1.00}'>DECLINES WITH REGRET<\/span><span title='NUMBER OF GUESTS ATTENDING' data-parameters='{\"editable\":1,\"x\":877,\"y\":957,\"scale\":2.21,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1,\"font\":\"Unna\",\"textAlign\":\"left\",\"lineHeight\":1.00}'>NUMBER OF GUESTS ATTENDING<\/span><img data-src='https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/uploads\/2016\/04\/thin-line.png' title='lines' data-parameters='{\"x\":898,\"y\":745,\"scale\":0.79,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1}' \/><img data-src='https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/uploads\/2016\/04\/se-rsvp-line2.png' title='rsvp-lines' data-parameters='{\"x\":285,\"y\":863,\"scale\":0.81,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1}' \/><img data-src='https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/uploads\/2016\/04\/se-rsvp-line2.png' title='rsvp lines 2' data-parameters='{\"x\":517,\"y\":970,\"scale\":0.91,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1}' \/><img data-src='https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/uploads\/2016\/04\/se-rsvp-line2.png' title='rsvp lines 3' data-parameters='{\"x\":893,\"y\":860,\"scale\":0.86,\"degree\":0,\"colors\":\"#ffffff,#f0eef3,#fbf7ec,#efe8de,#ebdfcf,#fcf4a1,#fff200,#fadc49,#bdb354,#bf9b5b,#eccd78,#f6a057,#e68d5b,#f3893f,#98643d,#d26a51,#f39a85,#fbc2aa,#fae0d0,#f7c7cb,#f9bdbe,#f9c2c6,#c39095,#f0a9ca,#eb519d,#c6598a,#b53c53,#b63348,#8f2334,#8e314a,#8e3450,#c3e4d3,#dfeecb,#9fd5b8,#beded3,#a9da99,#a5ce71,#acd375,#82b16a,#679f68,#71884c,#2b7048,#265533,#286e6f,#b9dbd7,#aadcdb,#a5cbec,#8ad3d6,#4bc4d3,#5ac2c4,#2e8aa1,#009ac7,#6c9bcc,#237aaa,#375675,#434254,#475175,#7f6936,#2a5e88,#aea687,#b2aca3,#d2be96,#a99c80,#af8f78,#564646,#2c1b00,#382a1c,#42372d,#211911,#d3cee3,#cbbedd,#b5b1d8,#978ec1,#7e7bba,#5451a3,#4d3c7c,#392950,#8f6390,#66344d,#65455b,#a1abab,#a4b3b6,#6e6e73,#59616d,#231f20\",\"currentColor\":\"#000000\",\"originX\":\"center\",\"draggable\":1,\"resizable\":1}' \/><\/div>\t\t\t<div class=\"fpd-design\">\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/div>\n\t\t\t\t<p class=\"fpd-not-supported-device-info\">\n\t\t\t\t\t<strong>Sorry! But the product designer has not been optimised for your device. Please use a device with a larger screen!<\/strong>\n\t\t\t\t<\/p>\n\n\t\t\t\t<link rel=\"stylesheet\" href=\"\/fpd\/wp-content\/plugins\/fancy-product-designer\/jquery.fancybox.css\" type=\"text\/css\" media=\"screen\" \/>\n\n\t\t\t\t<script type=\"application\/javascript\" src=\"\/fpd\/wp-content\/plugins\/fancy-product-designer\/js\/jquery.fancybox.js\"><\/script>\n\n\t\t\t\t<script type=\"application\/javascript\">\n\t\t\t\t\tfunction saveToServ(me) {\n\t\t\t\t\t\t\/\/\n\t\t\t\t\t\tvar data = {\n\t\t\t\t\t\t\timg:(me.getAttribute('href')),\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar boundary = String(Math.random()).slice(2);\n\t\t\t\t\t\tvar boundaryMiddle = '--' + boundary + '\\r\\n';\n\t\t\t\t\t\tvar boundaryLast = '--' + boundary + '--\\r\\n'\n\n\t\t\t\t\t\tvar body = ['\\r\\n'];\n\t\t\t\t\t\tfor (var key in data) {\n\t\t\t\t\t\t\tbody.push('Content-Disposition: form-data; name=\"' + key + '\"\\r\\n\\r\\n' + data[key] + '\\r\\n');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbody = body.join(boundaryMiddle) + boundaryLast;\n\n\t\t\t\t\t\tconsole.log('uploading bytes: ' + body.length );\n\t\t\t\t\t\tvar xhr = new XMLHttpRequest();\n\n\t\t\t\t\t\txhr.open('POST', '..\/wp-content\/plugins\/fancy-product-designer\/imgsave.php', true);\n\t\t\t\t\t\txhr.setRequestHeader('Content-Type', 'multipart\/form-data; boundary=' + boundary);\n\n\n\t\t\t\t\t\tvar xdiv = document.createElement('div');\n\t\t\t\t\t\txdiv.style.position = 'fixed';\n\t\t\t\t\t\txdiv.style.left = '0';\n\t\t\t\t\t\txdiv.style.top = '0';\n\t\t\t\t\t\txdiv.style.width = '100%';\n\t\t\t\t\t\txdiv.style.height = '100%';\n\t\t\t\t\t\txdiv.style.zIndex = '65535';\n\t\t\t\t\t\txdiv.style.backgroundColor = 'black';\n\t\t\t\t\t\txdiv.innerHTML = 'uploading...';\n\t\t\t\t\t\txdiv.style.color = '#FFFFFF';\n\t\t\t\t\t\txdiv.style.textAlign = 'center';\n\t\t\t\t\t\txdiv.style.padding = '100px';\n\t\t\t\t\t\txdiv.style.fontSize = '40px';\n\n\t\t\t\t\t\tdocument.body.appendChild(xdiv);\n\t\t\t\t\t\t$(xdiv).css('opacity', '0.6');\n\t\t\t\t\t\txhr.onreadystatechange = function() {\n\t\t\t\t\t\t\tif (this.readyState != 4) return;\n\t\t\t\t\t\t\tdocument.body.removeChild(xdiv);\n\t\t\t\t\t\t\tvar res = JSON.parse( this.responseText );\n\n\t\t\t\t\t\t\tif(res && res.status) {\n\n\t\t\t\t\t\t\t\tvar xel = document.getElementById('Field1');\n\t\t\t\t\t\t\t\tif(xel) {\n\t\t\t\t\t\t\t\t\txel.value = res.url;\n\t\t\t\t\t\t\t\t\txel.focus();\n\t\t\t\t\t\t\t\t\tif(res.message)  {\n\t\t\t\t\t\t\t\t\t\t$.fancybox.open([\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\thref : '#wufoo-form'\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]);\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else alert('image upload error');\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\txhr.send(body);\n\n\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t<\/script>\n\t\t\t\t<script type=\"text\/javascript\">\n\n\t\t\t\t\tvar fancyProductDesigner,\n\t\t\t\t\t\t$selector,\n\t\t\t\t\t\t$productWrapper,\n\t\t\t\t\t\t$cartForm,\n\t\t\t\t\t\tproductCreated = false,\n\t\t\t\t\t\tfpdPrice = 0,\n\t\t\t\t\t\tisReady = false,\n\t\t\t\t\t\t$modalWrapper = null;\n\n\t\t\t\t\t\t\t\t\t\tjQuery(document).ready(function() {\n\n\t\t\t\t\t\t\/\/return;\n\n\t\t\t\t\t\t$selector = jQuery('#fancy-product-designer-147');\n\t\t\t\t\t\t$productWrapper = jQuery('.post-147');\n\t\t\t\t\t\t$cartForm = jQuery('[name=\"fpd_product\"]:first').parents('form:first');\n\n\t\t\t\t\t\tvar buttonClass = \"fpd-blue-btn\",\n\t\t\t\t\t\t\tproductDesignerWidth = 800,\n\t\t\t\t\t\t\tcustomizeBtn = jQuery('#fpd-start-customizing-button');\n\n\t\t\t\t\t\tif(jQuery('.fpd-lightbox-enabled').size() > 0) {\n\n\t\t\t\t\t\t\t$modalWrapper = jQuery('body').append('<div class=\"fpd-product-lightbox fpd-modal-overlay\"><div class=\"fpd-modal-wrapper\"><div class=\"fpd-modal-buttons\"><a href=\"#\" id=\"fpd-modal-done\" class=\"'+buttonClass+'\">Done<\/a><a href=\"#\" id=\"fpd-modal-cancel\" class=\"'+buttonClass+'\">Cancel<\/a><\/div><\/div><\/div>').find('.fpd-modal-wrapper');\n\n\t\t\t\t\t\t\t$selector.clone().prependTo($modalWrapper);\n\t\t\t\t\t\t\t$selector.remove();\n\t\t\t\t\t\t\t$selector = jQuery('#fancy-product-designer-147');\n\n\t\t\t\t\t\t\tjQuery(window).resize(function() {\n\t\t\t\t\t\t\t\t$modalWrapper.css('margin-left', -($modalWrapper.outerWidth() \/ 2)+'px');\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tcustomizeBtn.click(function(evt) {\n\n\t\t\t\t\t\t\t\tif(!isReady) { return false; }\n\n\t\t\t\t\t\t\t\tjQuery('html,body').addClass('fpd-modal-open');\n\t\t\t\t\t\t\t\t$modalWrapper.parent('.fpd-modal-overlay').fadeIn(300, function() {\n\t\t\t\t\t\t\t\t\tjQuery('.fpd-context-dialog').removeClass('fpd-modal-hidden');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tjQuery(window).resize();\n\n\t\t\t\t\t\t\t\tevt.preventDefault();\n\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t$modalWrapper.on('click', '#fpd-modal-done', function(evt) {\n\n\t\t\t\t\t\t\t\tjQuery('#fpd-modal-cancel').click();\n\n\t\t\t\t\t\t\t\tif(0) {\n\t\t\t\t\t\t\t\t\t$cartForm.find(':submit').click();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tevt.preventDefault();\n\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.on('click', '#fpd-modal-cancel', function(evt) {\n\n\t\t\t\t\t\t\t\tfancyProductDesigner.closeDialog();\n\t\t\t\t\t\t\t\tjQuery('html,body').removeClass('fpd-modal-open');\n\t\t\t\t\t\t\t\t$modalWrapper.parent('.fpd-modal-overlay').fadeOut(200);\n\t\t\t\t\t\t\t\tevt.preventDefault();\n\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(jQuery('.fpd-share-design').size() > 0) {\n\n\t\t\t\t\t\t\tjQuery('#fpd-share-button').click(function(evt) {\n\n\t\t\t\t\t\t\t\tevt.preventDefault();\n\n\t\t\t\t\t\t\t\tvar scale = $selector.width() > 800 ? Number(800 \/ $selector.width()).toFixed(2) : 1;\n\t\t\t\t\t\t\t\tvar data = {\n\t\t\t\t\t\t\t\t\taction: 'fpd_createshareurl',\n\t\t\t\t\t\t\t\t\timage: fancyProductDesigner.getProductDataURL('png', 'transparent', scale),\n\t\t\t\t\t\t\t\t\tproduct: JSON.stringify(fancyProductDesigner.getProduct()),\n\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\tjQuery(\".fpd-share-widget, .fpd-share-url\").addClass('fpd-hidden');\n\t\t\t\t\t\t\t\tjQuery('.fpd-share-process').removeClass('fpd-hidden');\n\n\t\t\t\t\t\t\t\tjQuery.post(\"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-admin\/admin-ajax.php\", data, function(response) {\n\n\t\t\t\t\t\t\t\t\tif(response.share_id !== undefined) {\n\n\t\t\t\t\t\t\t\t\t\tvar pattern = new RegExp('(share_id=).*?(&|$)'),\n\t\t\t\t\t\t\t\t\t\t\tshareUrl = window.location.href;\n\n\t\t\t\t\t\t\t\t\t\tif(shareUrl.search(pattern) >= 0){\n\t\t\t\t\t\t\t\t\t\t\tshareUrl = shareUrl.replace(pattern,'$1' + response.share_id + '$2');\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tshareUrl = shareUrl + (shareUrl.indexOf('?')>0 ? '&' : '?') + 'share_id=' + response.share_id;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\".fpd-share-widget\").empty().jsSocials({\n\t\t\t\t\t\t\t\t\t\t\turl: shareUrl,\n\t\t\t\t\t\t\t\t\t\t\tshares: [\"facebook\",\"twitter\",\"googleplus\",\"email\"],\n\t\t\t\t\t\t\t\t\t\t    showLabel: false,\n\t\t\t\t\t\t\t\t\t\t    text: \"Check out my design!\"\n\t\t\t\t\t\t\t\t\t\t}).removeClass('fpd-hidden');\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tjQuery('.fpd-share-process').addClass('fpd-hidden');\n\t\t\t\t\t\t\t\t\tjQuery('.fpd-share-url').attr('href', shareUrl).text(shareUrl).removeClass('fpd-hidden');\n\n\t\t\t\t\t\t\t\t}, 'json');\n\n\n\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar customImagesParams = jQuery.extend({\"x\":0,\"y\":0,\"z\":-1,\"colors\":\"\\\"#ffffff, #F0EEF3, #FBF7EC, #EFE8DE, #EBDFCF, #fcf4a1, #fff200, #FADC49, #BDB354, #BF9B5B, #eccd78, #F6A057, #e68d5b, #f3893f, #98643d, #D26A51, #F39A85, #FBC2AA, #fae0d0, #f7c7cb, #F9BDBE, #f9c2c6, #C39095, #F0A9CA, #eb519d, #c6598a, #b53c53, #B63348, #8f2334, #8e314a, #8e3450, #C3E4D3, #dfeecb, #9FD5B8, #BEDED3, #A9DA99, #a5ce71, #ACD375, #82B16A, #679f68, #71884C, #2b7048, #265533, #286e6f, #b9dbd7, #AADCDB, #a5cbec, #8AD3D6, #4bc4d3, #5ac2c4, #2E8AA1, #009ac7, #6c9bcc, #237AAA, #375675, #434254, #475175, #7f6936, #2a5e88, #aea687, #b2aca3, #D2BE96, #a99c80, #AF8F78, #564646, #2c1b00, #382a1c, #42372D, #211911, #d3cee3, #CBBEDD, #b5b1d8, #978ec1, #7E7BBA, #5451a3, #4d3c7c, #392950, #8f6390, #66344d, #65455b, #A1ABAB, #a4b3b6, #6E6E73, #59616d, #231f20, #231f20,\\\"\",\"price\":0,\"autoCenter\":1,\"draggable\":1,\"rotatable\":1,\"resizable\":1,\"zChangeable\":1,\"autoSelect\":0,\"topped\":0,\"boundingBoxClipping\":0,\"removable\":1}, {\"minW\":100,\"minH\":100,\"maxW\":1000,\"maxH\":1000,\"resizeToW\":300,\"resizeToH\":300} );\n\n\t\t\t\t\t\tvar socialPhotoAjaxSettingsOpt = {\n\t\t\t\t\t\t\turl: \"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/plugins\/fancy-product-designer\/inc\/get_image_data_url.php\"\n\t\t\t\t\t\t};\n\t\t\t\t\t\tif(\"filereader\" == 'php') {\n\t\t\t\t\t\t\tsocialPhotoAjaxSettingsOpt = {\n\t\t\t\t\t\t\t\turl: \"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-admin\/admin-ajax.php\",\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\taction: 'fpd_uploadsocialphoto'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\/\/call fancy product designer plugin\n\t\t\t\t\t\tfancyProductDesigner = $selector.fancyProductDesigner({\n\t\t\t\t\t\t\twidth: productDesignerWidth,\n\t\t\t\t\t\t\tstageHeight: 1100,\n\t\t\t\t\t\t\timageDownloadable: 1,\n\t\t\t\t\t\t\tsaveAsPdf: 1,\n\t\t\t\t\t\t\tprintable: 0,\n\t\t\t\t\t\t\tallowProductSaving: 0,\n\t\t\t\t\t\t\tfonts: [\"Abril Fatface\", \"Alegreya Sans SC\", \"Amatic SC\", \"Arial\", \"Great Vibes\", \"GreatVibes-Regular\", \"Julius Sans One\", \"Kristi\", \"Marcellus\", \"Marcellus SC\", \"Mate SC\", \"Meddon\", \"Monsieur La Doulaise\", \"Mr Bedfort\", \"Neuton\", \"OpenSans-Regular\", \"Parisienne\", \"Playfair Display\", \"Poiret One\", \"Rouge Script\", \"Seaweed Script\", \"Slabo27px-Regular\", \"Syncopate\", \"Unna\", \"Varela Round\", \"madina script\"],\n\t\t\t\t\t\t\ttemplatesDirectory: \"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/plugins\/fancy-product-designer\/templates\/\",\n\t\t\t\t\t\t\tphpDirectory: \"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/plugins\/fancy-product-designer\/inc\/\",\n\t\t\t\t\t\t\tfacebookAppId: \"\",\n\t\t\t\t\t\t\tinstagramClientId: \"\",\n\t\t\t\t\t\t\tinstagramRedirectUri: \"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-content\/plugins\/fancy-product-designer\/inc\/inc\/instagram_auth.php\",\n\t\t\t\t\t\t\tpatterns: [],\n\t\t\t\t\t\t\tviewSelectionPosition: \"tr\",\n\t\t\t\t\t\t\tviewSelectionFloated: 0,\n\t\t\t\t\t\t\tzoomStep: 0.2,\n\t\t\t\t\t\t\tmaxZoom: 3,\n\t\t\t\t\t\t\ttooltips: 1,\n\t\t\t\t\t\t\thexNames: {\"ffffff\":\"Snow-White\",\"F0EEF3\":\"Limba\",\"FBF7EC\":\"Cream-Puff\",\"EFE8DE\":\"Quartz\",\"EBDFCF\":\"Opal\",\"fcf4a1\":\"Sorbet-Yellow\",\"fff200\":\"Factory-Yellow\",\"FADC49\":\"Lemon-Drop\",\"BDB354\":\"Fuse-Green\",\"BF9B5B\":\"Safety-Orange\",\"eccd78\":\"Gold\",\"F6A057\":\"Orange-Fizz\",\"e68d5b\":\"Flame\",\"f3893f\":\"Mandarin\",\"98643d\":\"Copper\",\"D26A51\":\"Tangy-Orange\",\"F39A85\":\"Coral\",\"FBC2AA\":\"Peach\",\"fae0d0\":\"Soft-Coral\",\"f7c7cb\":\"Candy-Pink\",\"F9BDBE\":\"Bubble-Gum\",\"f9c2c6\":\"Rose-Quartz\",\"C39095\":\"Dusty-Rose\",\"F0A9CA\":\"Cotton-Candy\",\"eb519d\":\"Watermelon\",\"c6598a\":\"Azalea\",\"b53c53\":\"Jupiter\",\"B63348\":\"Wild-Cherry\",\"8f2334\":\"Red\",\"8e314a\":\"Scarlet\",\"8e3450\":\"Mars\",\"C3E4D3\":\"Powder-Green\",\"dfeecb\":\"Pistachio\",\"9FD5B8\":\"Spearmint\",\"BEDED3\":\"Park-Green\",\"A9DA99\":\"Limeade\",\"a5ce71\":\"Lime\",\"ACD375\":\"Sour-Apple\",\"82B16A\":\"Gumdrop-Green\",\"71884C\":\"Jelly-Bean-Green\",\"2b7048\":\"Botanic\",\"265533\":\"Forest\",\"286e6f\":\"Jade\",\"b9dbd7\":\"Aquamarine\",\"AADCDB\":\"Snow-Cone\",\"a5cbec\":\"Azure-Blue\",\"8AD3D6\":\"Berrylicious\",\"4bc4d3\":\"Turquoise\",\"5ac2c4\":\"Lagoon\",\"2E8AA1\":\"Peacock-Teal\",\"009ac7\":\"Tabriz-Blue\",\"6c9bcc\":\"Vista\",\"237AAA\":\"Adriatic\",\"375675\":\"Cobalt\",\"434254\":\"Imperial-Blue\",\"475175\":\"Sapphire\",\"7f6936\":\"Antique-Gold\",\"2a5e88\":\"Sparkling-Sapphire\",\"aea687\":\"Gold-Leaf\",\"b2aca3\":\"Sand\",\"D2BE96\":\"Straw-Kraft\",\"a99c80\":\"Harvest\",\"AF8F78\":\"Tindalo\",\"564646\":\"Bubinga\",\"2c1b00\":\"Bronze\",\"382a1c\":\"Brown\",\"42372D\":\"Hot-Fudge\",\"211911\":\"Bitter-Chocolate\",\"d3cee3\":\"Kunzite\",\"CBBEDD\":\"Grapesicle\",\"b5b1d8\":\"Lavender\",\"978ec1\":\"Light-Amethyst\",\"7E7BBA\":\"Grape-Jelly\",\"5451a3\":\"Purple\",\"4d3c7c\":\"Violette\",\"392950\":\"Amethyst\",\"8f6390\":\"Punch\",\"66344d\":\"Burgundy\",\"65455b\":\"Sparkling-Merlot\",\"A1ABAB\":\"Real-Grey\",\"a4b3b6\":\"Silver\",\"6E6E73\":\"Shadow\",\"59616d\":\"Dark-Grey\",\"231f20\":\"Ebony-Black\"},\n\t\t\t\t\t\t\tselectedColor:  \"#3f51b5\",\n\t\t\t\t\t\t\tboundingBoxColor:  \"#2196f3\",\n\t\t\t\t\t\t\toutOfBoundaryColor:  \"#f44336\",\n\t\t\t\t\t\t\tpaddingControl:  10,\n\t\t\t\t\t\t\treplaceInitialElements: 0,\n\t\t\t\t\t\t\tlazyLoad: 1,\n\t\t\t\t\t\t\tdialogBoxPositioning: \"dynamic\",\n\t\t\t\t\t\t\tsocialPhotoAjaxSettings: socialPhotoAjaxSettingsOpt,\n\t\t\t\t\t\t\telementParameters: {\n\t\t\t\t\t\t\t\toriginX: \"center\",\n\t\t\t\t\t\t\t\toriginY: \"center\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\timageParameters: {\n\t\t\t\t\t\t\t\tcolorPrices: {}\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttextParameters: {\n\t\t\t\t\t\t\t\tfont: \"\",\n\t\t\t\t\t\t\t\tcolorPrices: {}\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tcustomImageParameters: customImagesParams,\n\t\t\t\t\t\t\tcustomTextParameters: {\"x\":0,\"y\":0,\"z\":-1,\"colors\":\"#000000\",\"price\":0,\"autoCenter\":1,\"draggable\":1,\"rotatable\":1,\"resizable\":1,\"zChangeable\":1,\"autoSelect\":0,\"topped\":0,\"patternable\":0,\"curvable\":1,\"curveSpacing\":10,\"curveRadius\":80,\"curveReverse\":0,\"boundingBoxClipping\":0,\"textSize\":18,\"maxLength\":0,\"textAlign\":\"left\",\"removable\":1},\n\t\t\t\t\t\t\tlabels: {layersButton:\"Manage Layers\",addsButton:\"Add\",productsButton:\"Choose a Template Design\",moreButton:\"Actions\",downLoadPDF:\"Download PDF\",downloadImage:\"Download File\",print:\"Print\",saveProduct:\"Save\",loadProduct:\"Load\",undoButton:\"Undo\",redoButton:\"Redo\",resetProductButton:\"Reset Product\",zoomButton:\"Zoom\",panButton:\"Pan\",addImageButton:\" Add your own Image\",addTextButton:\"Add your own text\",enterText:\"Enter your text\",addFBButton:\"Add photo from facebook\",addInstaButton:\"Add photo from instagram\",addDesignButton:\"Choose from Designs\",editElement:\"Edit Element\",fillOptions:\"Fill Options\",color:\"Color\",patterns:\"Patterns\",opacity:\"Opacity\",filter:\"Filter\",textOptions:\"Text Options\",changeText:\"Change Text\",typeface:\"Typeface\",lineHeight:\"Line Height\",textAlign:\"Alignment\",textAlignLeft:\"Align Left\",textAlignCenter:\"Align Center\",textAlignRight:\"Align Right\",textStyling:\"Styling\",bold:\"Bold\",italic:\"Italic\",underline:\"Underline\",curvedText:\"Curved Text\",curvedTextSpacing:\"Spacing\",curvedTextRadius:\"Radius\",curvedTextReverse:\"Reverse\",transform:\"Transform\",angle:\"Angle\",scale:\"Scale\",moveUp:\"Move Up\",moveDown:\"Move Down\",centerH:\"Center Horizontal\",centerV:\"Center Vertical\",flipHorizontal:\"Flip Horizontal\",flipVertical:\"Flip Vertical\",resetElement:\"Reset Element\",fbSelectAlbum:\"Select an album\",instaFeedButton:\"My Feed\",instaRecentImagesButton:\"My Recent Images\",productSaved:\"Product Saved!\",lock:\"Lock\",unlock:\"Unlock\",remove:\"Remove\",outOfContainmentAlert:\"Move it in his containment!\",initText:\"Initializing product designer\",myUploadedImgCat:\"Your uploaded images\",uploadedDesignSizeAlert:\"Sorry! The image you have uploaded does not meet the size requirements.\\n<br \/>Minimum Width: 100 pixels\\n<br \/>Minimum Height: 100 pixels\\n<br \/>Maximum Width: 1000 pixels\\n<br \/>Maximum Height: 1000 pixels\",modalSubmit:\"OK, got it!\"},\n\t\t\t\t\t\t\tcustomAdds: {\n\t\t\t\t\t\t\t\tuploads: 1,\n\t\t\t\t\t\t\t\ttexts: 1,\n\t\t\t\t\t\t\t\tfacebook: 1,\n\t\t\t\t\t\t\t\tinstagram: 1\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).data('fancy-product-designer');\n\n\t\t\t\t\t\t\/\/when load from cart or order, use loadProduct\n\t\t\t\t\t\t$selector.on('ready', function() {\n\n\t\t\t\t\t\t\tif(jQuery('.fpd-lightbox-enabled').size() > 0) {\n\t\t\t\t\t\t\t\tjQuery('.fpd-context-dialog').addClass('fpd-modal-hidden');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(0) {\n\t\t\t\t\t\t\t\tvar views = 0;\n\t\t\t\t\t\t\t\tfancyProductDesigner.loadProduct(views);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\/\/replace filereader uploader with php uploader\n\t\t\t\t\t\t\tif(\"filereader\" == 'php') {\n\n\t\t\t\t\t\t\t\tvar $imageInput = jQuery('body').find('.fpd-input-image');\n\n\t\t\t\t\t\t\t\tjQuery('body').find('.fpd-upload-form').off('change').change(function() {\n\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif ( 0 ) {\n\t\t\t\t\t\t\t\t\t\tfancyProductDesigner.showModal(\"You need to be logged in to upload images!\");\n\t\t\t\t\t\t\t\t\t\t$imageInput.val('');\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tjQuery('body').find('.fpd-upload-form').ajaxSubmit({\n\t\t\t\t\t\t\t\t\t\turl: \"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-admin\/admin-ajax.php\",\n\t\t\t\t\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\t\t\taction: 'fpduploadimage',\n\t\t\t\t\t\t\t\t\t\t\tproduct_id: 147\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\ttype: 'post',\n\t\t\t\t\t\t\t\t\t\tbeforeSubmit: function(arr, $form, options) {\n\n\t\t\t\t\t\t\t\t\t\t\t$phpUploaderInfo.addClass('fpd-show-up')\n\t\t\t\t\t\t\t\t\t\t\t.children('p:first').text('Uploading'+': '+arr[0].value.name);\n\t\t\t\t\t\t\t\t\t\t\t$progressBar.children('.fpd-progress-bar-move').css('width', 0);\n\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tsuccess: function(responseText, statusText) {\n\n\t\t\t\t\t\t\t\t\t\t\tif(responseText.code == 200) {\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/successfully uploaded\n\t\t\t\t\t\t\t\t\t\t\t\tfancyProductDesigner.addCustomImage(responseText.url, responseText.filename);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/failed\n\t\t\t\t\t\t\t\t\t\t\t\tfancyProductDesigner.showModal(responseText.message);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$imageInput.val('');\n\t\t\t\t\t\t\t\t\t\t\t$phpUploaderInfo.removeClass('fpd-show-up');\n\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\terror: function() {\n\n\t\t\t\t\t\t\t\t\t\t\t$imageInput.val('');\n\t\t\t\t\t\t\t\t\t\t\t$phpUploaderInfo.removeClass('fpd-show-up');\n\t\t\t\t\t\t\t\t\t\t\tfancyProductDesigner.showModal(\"Server error: Image could not be uploaded, please try again!\");\n\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tuploadProgress: function(evt, pos, total, percentComplete) {\n\t\t\t\t\t\t\t\t\t\t\t$progressBar.children('.fpd-progress-bar-move').css('width', percentComplete+'%');\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t})\n\n\t\t\t\t\t\t\t\tjQuery('body').append('<div class=\"fpd-php-uploader-info fpd-snackbar fpd-shadow-1\"><p><\/p><div class=\"fpd-upload-progess-bar\"><div class=\"fpd-progress-bar-bg\"><\/div><div class=\"fpd-progress-bar-move\"><\/div><\/div><\/div>');\n\n\t\t\t\t\t\t\t\t$phpUploaderInfo = jQuery('body').children('.fpd-php-uploader-info');\n\t\t\t\t\t\t\t\t$progressBar = $phpUploaderInfo.children('.fpd-upload-progess-bar');\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\/\/hide loading icon in customize btn\n\t\t\t\t\t\t\tcustomizeBtn.removeClass('fpd-disabled')\n\t\t\t\t\t\t\t.text(customizeBtn.attr('title')).removeAttr('title');\n\n\t\t\t\t\t\t\tisReady = true;\n\n\t\t\t\t\t\t});\n\n\t\t\t\t\t});\n\n\t\t\t\t<\/script>\n\n\t\t\t\t\t\t\t<script type=\"text\/javascript\">\n\n\t\t\t\tjQuery(document).ready(function() {\n\n\t\t\t\t\t\/\/calculate initial price\n\t\t\t\t\t$selector.on('productCreate', function() {\n\n\t\t\t\t\t\tproductCreated = true;\n\t\t\t\t\t\t$cartForm.find(':submit').removeClass('fpd-disabled');\n\t\t\t\t\t\tfpdPrice = fancyProductDesigner.getPrice();\n\t\t\t\t\t\t_setTotalPrice();\n\n\n\t\t\t\t\t});\n\n\t\t\t\t\t\/\/listen when price changes\n\t\t\t\t\t$selector.on('priceChange', function(evt, sp, tp) {\n\n\t\t\t\t\t\tfpdPrice = tp;\n\t\t\t\t\t\t_setTotalPrice();\n\n\t\t\t\t\t});\n\n\t\t\t\t\tjQuery('[name=\"fpd_shortcode_form\"]').on('click', ':submit', function(evt) {\n\n\t\t\t\t\t\tevt.preventDefault();\n\n\t\t\t\t\t\tif(!productCreated) { return false; }\n\n\t\t\t\t\t\tvar product = fancyProductDesigner.getProduct(),\n\t\t\t\t\t\t\t$submitBtn = $(this),\n\t\t\t\t\t\t\tdata = {\n\t\t\t\t\t\t\t\taction: 'fpd_newshortcodeorder'\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif(product != false) {\n\n\t\t\t\t\t\t\tvar $nameInput = $cartForm.find('[name=\"fpd_shortcode_form_name\"]').removeClass('fpd-error'),\n\t\t\t\t\t\t\t\t$emailInput = $cartForm.find('[name=\"fpd_shortcode_form_email\"]').removeClass('fpd-error'),\n\t\t\t\t\t\t\t\temailRegex = \/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$\/;\n\n\n\t\t\t\t\t\t\tif( $nameInput.val() === '' ) {\n\t\t\t\t\t\t\t\t$nameInput.focus().addClass('fpd-error');\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tdata.name = $nameInput.val();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif( !emailRegex.test($emailInput.val()) ) {\n\t\t\t\t\t\t\t\t$emailInput.focus().addClass('fpd-error');\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tdata.email = $emailInput.val();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tdata.product = JSON.stringify(product);\n\t\t\t\t\t\t\t$submitBtn.addClass('fpd-disabled');\n\t\t\t\t\t\t\t$selector.find('.fpd-full-loader').show();\n\n\t\t\t\t\t\t\tjQuery.post(\"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-admin\/admin-ajax.php\", data, function(response) {\n\n\t\t\t\t\t\t\t\tfancyProductDesigner.showMessage(response.id ? response.message : response.error);\n\t\t\t\t\t\t\t\t$submitBtn.removeClass('fpd-disabled');\n\t\t\t\t\t\t\t\t$selector.find('.fpd-full-loader').hide();\n\n\t\t\t\t\t\t\t}, 'json');\n\n\t\t\t\t\t\t\t$nameInput.val('');\n\t\t\t\t\t\t\t$emailInput.val('');\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t\t\/\/set total price depending from wc and fpd price\n\t\t\t\t\tfunction _setTotalPrice() {\n\n\t\t\t\t\t\t$cartForm.find('.fpd-shortcode-price').text(parseFloat(fpdPrice).toFixed(2))\n\t\t\t\t\t\t.parent().addClass('fpd-show-up');\n\n\t\t\t\t\t};\n\n\t\t\t\t});\n\n\t\t\t<\/script>\n\t\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-147","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/pages\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":2,"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/pages\/147\/revisions"}],"predecessor-version":[{"id":150,"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/pages\/147\/revisions\/150"}],"wp:attachment":[{"href":"https:\/\/cardsandpockets.dreamhosters.com\/fpd\/wp-json\/wp\/v2\/media?parent=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}