<?php $d = 0; // search depth; while (!file_exists(str_repeat('../', $d) . 'wp-config.php')) if (++$d > 99) exit; $wp_config = str_repeat('../', $d) . 'wp-config.php'; require_once($wp_config); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script language="javascript" type="text/javascript" src="<?php bloginfo('wpurl'); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script> <script type="text/javascript"> function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ""; } function insertMisc() { var miscElement = getCheckedValue(document.getElementsByName('flxmisc')); if (miscElement != 0){ if (miscElement == 'bonusorange') { misccode = '<table border="0" cellspacing="0" cellpadding="0" width="650" style="margin:0 auto;"><tbody><tr><td style="padding: 0px 40px 0; color: #fff; font-weight: bold; line-height:56px; font-size: 32px; font-family: Arial, Helvetica, sans-serif; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_orange_top.png) no-repeat center top;" height="76" valign="top">Bonus Offer</td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_fill.png) repeat-y center top; padding: 0 60px;"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus gravida turpis non massa sodales ut pharetra ipsum ornare. Curabitur sed justo magna. Maecenas sit amet augue sed eros tempus placerat. Sed eget eros et nisl sodales tincidunt.</p></td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_bottom.png) no-repeat center top;" height="51"><span style="display: none;">.</span></td></tr></tbody></table><p>Continue your page here...</p>'; } if (miscElement == 'bonusred') { misccode = '<table border="0" cellspacing="0" cellpadding="0" width="650" style="margin:0 auto;"><tbody><tr><td style="padding: 0px 40px 0; color: #fff; font-weight: bold; line-height:56px; font-size: 32px; font-family: Arial, Helvetica, sans-serif; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_red_top.png) no-repeat center top;" height="76" valign="top">Bonus Offer</td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_fill.png) repeat-y center top; padding: 0 60px;"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus gravida turpis non massa sodales ut pharetra ipsum ornare. Curabitur sed justo magna. Maecenas sit amet augue sed eros tempus placerat. Sed eget eros et nisl sodales tincidunt.</p></td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_bottom.png) no-repeat center top;" height="51"><span style="display: none;">.</span></td></tr></tbody></table><p>Continue your page here...</p>'; } if (miscElement == 'bonusblue') { misccode = '<table border="0" cellspacing="0" cellpadding="0" width="650" style="margin:0 auto;"><tbody><tr><td style="padding: 0px 40px 0; color: #fff; font-weight: bold; line-height:56px; font-size: 32px; font-family: Arial, Helvetica, sans-serif; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_blue_top.png) no-repeat center top;" height="76" valign="top">Bonus Offer</td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_fill.png) repeat-y center top; padding: 0 60px;"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus gravida turpis non massa sodales ut pharetra ipsum ornare. Curabitur sed justo magna. Maecenas sit amet augue sed eros tempus placerat. Sed eget eros et nisl sodales tincidunt.</p></td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_bottom.png) no-repeat center top;" height="51"><span style="display: none;">.</span></td></tr></tbody></table><p>Continue your page here...</p>'; } if (miscElement == 'bonusgreen') { misccode = '<table border="0" cellspacing="0" cellpadding="0" width="650" style="margin:0 auto;"><tbody><tr><td style="padding: 0px 40px 0; color: #fff; font-weight: bold; line-height:56px; font-size: 32px; font-family: Arial, Helvetica, sans-serif; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_green_top.png) no-repeat center top;" height="76" valign="top">Bonus Offer</td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_fill.png) repeat-y center top; padding: 0 60px;"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus gravida turpis non massa sodales ut pharetra ipsum ornare. Curabitur sed justo magna. Maecenas sit amet augue sed eros tempus placerat. Sed eget eros et nisl sodales tincidunt.</p></td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_bottom.png) no-repeat center top;" height="51"><span style="display: none;">.</span></td></tr></tbody></table><p>Continue your page here...</p>'; } if (miscElement == 'bonusgrey') { misccode = '<table border="0" cellspacing="0" cellpadding="0" width="650" style="margin:0 auto;"><tbody><tr><td style="padding: 0px 40px 0; color: #fff; font-weight: bold; line-height:56px; font-size: 32px; font-family: Arial, Helvetica, sans-serif; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_grey_top.png) no-repeat center top;" height="76" valign="top">Bonus Offer</td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_fill.png) repeat-y center top; padding: 0 60px;"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus gravida turpis non massa sodales ut pharetra ipsum ornare. Curabitur sed justo magna. Maecenas sit amet augue sed eros tempus placerat. Sed eget eros et nisl sodales tincidunt.</p></td></tr><tr><td style="background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/bonus_bottom.png) no-repeat center top;" height="51"><span style="display: none;">.</span></td></tr></tbody></table><p>Continue your page here...</p>'; } if (miscElement == 'bannerred') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-red.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/shadows/sp-round-800.png) no-repeat top center;height:37px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'bannerorange') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-orange.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/shadows/sp-round-800.png) no-repeat top center;height:37px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'bannerblue') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-blue.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/shadows/sp-round-800.png) no-repeat top center;height:37px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'bannerdarkblue') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-dark-blue.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/shadows/sp-round-800.png) no-repeat top center;height:37px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'bannergreen') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-green.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/shadows/sp-round-800.png) no-repeat top center;height:37px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'bannergrey') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-grey.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/shadows/sp-round-800.png) no-repeat top center;height:37px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'redbannerwitharrow') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-red.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/da_gold2.png) no-repeat top center;height:120px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'bluebannerwitharrow') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-blue.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/da_gold2.png) no-repeat top center;height:120px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'darkbluewitharrow') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-dark-blue.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/da_gold2.png) no-repeat top center;height:120px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } if (miscElement == 'greybannerwitharrow') { misccode = '<div style="margin: 15px -95px 0px -95px; padding:20px 30px; color:#fff; font-family: tahoma,arial,helvetica,sans-serif; font-size: 32px; text-align: center; letter-spacing: -1px; line-height: 110%; font-weight: bold; background: transparent url(<?php bloginfo('template_directory'); ?>/images/page-elements/banner-grey.png) no-repeat top center; width:780px;">Insert your content here. To make a line break, use Shift + Enter. Banner supports up to three lines of text.</div><div style="margin: 0px -95px 15px -95px; background: transparent url(<?php bloginfo('template_directory'); ?>/images/da_gold2.png) no-repeat top center;height:120px;"><span style="display: none;">.</span></div><p>Continue your page here...</p>'; } } if ( miscElement == 0 ){ tinyMCEPopup.close(); } if(window.tinyMCE) { if (typeof tinyMCEPopup.editor.insertContent == 'function') { // tinymce 4.x tinyMCEPopup.editor.insertContent(misccode); } else { // tinymce 3.x window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, misccode); } tinyMCEPopup.editor.execCommand('mceRepaint'); tinyMCEPopup.close(); } return; } </script> <title>FlexSqueeze Banners</title> <style type="text/css"> td img:hover, input:hover {cursor:pointer;} td {border:1px solid #fff;} .cancelbtn, .submitbtn {padding:5px;} .cancelbtn:hover, .submitbtn:hover {background-color:#555;color:#fff;} </style> </head> <body onLoad="tinyMCEPopup.executeOnLoad('init();');"> <form action="#" method="post" name="flexmisc"> <table id="boxchoices" width="664" cellpadding="8"> <tr> <td style="text-align:center;"><label> <img src="bonusred.png" /> <br /> Bonus Box Red Header<br /> <input type="radio" name="flxmisc" value="bonusred" /> </label></td> <td style="text-align:center;"><label> <img src="bonusblue.png" /> <br /> Bonus Box Blue Header<br /> <input type="radio" name="flxmisc" value="bonusblue" /> </label></td> <td style="text-align:center;"><label> <img src="bonusgreen.png" /> <br /> Bonus Box Green Header<br /> <input type="radio" name="flxmisc" value="bonusgreen" /> </label></td> </tr> <tr> <td style="text-align:center;"><label> <img src="bonusgrey.png" /> <br /> Bonus Box Grey Header<br /> <input type="radio" name="flxmisc" value="bonusgrey" /> </label></td> <td style="text-align:center;"><label> <img src="bonusorange.png" /> <br /> Bonus Box Orange Header<br /> <input type="radio" name="flxmisc" value="bonusorange" /> </label></td> <td style="text-align:center;"><label> <img src="banner-red.gif" /> <br /> Red Banner<br /> <input type="radio" name="flxmisc" value="bannerred" /> </label></td> </tr> <tr> <td style="text-align:center;"><label> <img src="banner-orange.gif" /> <br /> Orange Banner<br /> <input type="radio" name="flxmisc" value="bannerorange" /> </label></td> <td style="text-align:center;"><label> <img src="banner-blue.gif" /> <br /> Blue Banner<br /> <input type="radio" name="flxmisc" value="bannerblue" /> </label></td> <td style="text-align:center;"><label> <img src="banner-dark-blue.gif" /> <br /> Dark Blue Banner<br /> <input type="radio" name="flxmisc" value="bannerdarkblue" /> </label></td> </tr> <tr> <td style="text-align:center;"><label> <img src="banner-green.gif" /> <br /> Green Banner<br /> <input type="radio" name="flxmisc" value="bannergreen" /> </label></td> <td style="text-align:center;"><label> <img src="banner-grey.gif" /> <br /> Grey Banner<br /> <input type="radio" name="flxmisc" value="bannergrey" /> </label></td> <td style="text-align:center;"><label> <img src="banner-arrow-red.gif" /> <br /> Red Banner with Arrow<br /> <input type="radio" name="flxmisc" value="redbannerwitharrow" /> </label></td> </tr> <tr> <td style="text-align:center;"><label> <img src="banner-arrow-blue.gif" /> <br /> Blue Banner with Arrow<br /> <input type="radio" name="flxmisc" value="bluebannerwitharrow" /> </label></td> <td style="text-align:center;"><label> <img src="banner-arrow-dark-blue.gif" /> <br /> Dark Blue with Arrow<br /> <input type="radio" name="flxmisc" value="darkbluewitharrow" /> </label></td> <td style="text-align:center;"><label> <img src="banner-arrow-grey.gif" /> <br /> Grey Banner with Arrow<br /> <input type="radio" name="flxmisc" value="greybannerwitharrow" /> </label></td> </tr> <tr> <td colspan="3"> <input name="cancel" class="cancelbtn" type="button" value="Cancel" onClick="tinyMCEPopup.close();" /> <input name="submit" class="submitbtn" type="button" value="Insert Element" onClick="insertMisc();" /> </td> </tr> </table> </form> </body> </html>