File "flexlists.php"
Full path: /home5/hallettsvillepow/public_html/wp-content/themes/flexsqueeze151/includes/tinymce/flexlists.php
File
size: 0.01 KB (8.33 KB bytes)
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8
Download Open Edit Advanced Editor Back
<?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 insertListStyles() {
var listcode;
var button = document.getElementById('listchoices');
var listname = getCheckedValue(document.getElementsByName('flxlists'));
if (listname != 0){
listcode = '<ul class="' + listname + '"><li>List item 1</li><li>List item 2</li></ul><p>Continue your page here...</p>';
}
if ( listname == 0 ){
tinyMCEPopup.close();
}
if(window.tinyMCE) {
if (typeof tinyMCEPopup.editor.insertContent == 'function') { // tinymce 4.x
tinyMCEPopup.editor.insertContent(listcode);
} else { // tinymce 3.x
window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, listcode);
}
tinyMCEPopup.editor.execCommand('mceRepaint');
tinyMCEPopup.close();
}
return;
}
</script>
<title>FlexSqueeze List Styles</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;}
ul.greencheck, ul.redstop, ul.bluecheck, ul.greencheckbox, ul.bluecheckbox, ul.orangecheckbox, ul.greencheck2, ul.greencheck3, ul.plusgreen, ul.redstop2, ul.redstop3, ul.redstop4, ul.redstop5, ul.warning, ul.question {line-height: 18px;min-height:0px;}
.greencheck li, .redstop li, .bluecheck li, .greencheckbox li, .bluecheckbox li, .orangecheckbox li {list-style:none;padding: 4px 20px 10px 50px; margin-top:10px; background-repeat: no-repeat;background-position: 5px top;}
.greencheck2 li, .greencheck3 li, .plusgreen li, .redstop2 li, .redstop3 li, .redstop4 li, .redstop5 li, .warning li, .question li {list-style:none;padding: 4px 20px 10px 50px; margin-top:10px; background-repeat: no-repeat;background-position: left top;}
.greencheck li {background-image: url(<?php bloginfo('template_directory'); ?>/images/checkmark-green.png);}
.greencheck2 li {background-image: url(<?php bloginfo('template_directory'); ?>/images/checkmark-green2.png);}
.greencheck3 li {background-image: url(<?php bloginfo('template_directory'); ?>/images/checkmark-green3.png);}
.plusgreen li {background-image: url(<?php bloginfo('template_directory'); ?>/images/plus-green.png);}
.redstop li {background-image: url(<?php bloginfo('template_directory'); ?>/images/stop.png);}
.redstop2 li {background-image: url(<?php bloginfo('template_directory'); ?>/images/stop2.png);}
.redstop3 li {background-image: url(<?php bloginfo('template_directory'); ?>/images/stop3.png);}
.redstop4 li {background-image: url(<?php bloginfo('template_directory'); ?>/images/stop4.png);}
.redstop5 li {background-image: url(<?php bloginfo('template_directory'); ?>/images/stop5.png);}
.warning li {background-image: url(<?php bloginfo('template_directory'); ?>/images/warning.png);}
.bluecheck li {background-image: url(<?php bloginfo('template_directory'); ?>/images/checkmark-blue.png);}
.bluecheckbox li {background-image: url(<?php bloginfo('template_directory'); ?>/images/checkbox-blue.png);}
.greencheckbox li {background-image: url(<?php bloginfo('template_directory'); ?>/images/checkbox-green.png);}
.orangecheckbox li {background-image: url(<?php bloginfo('template_directory'); ?>/images/checkbox-orange.png);}
.question li {background-image: url(<?php bloginfo('template_directory'); ?>/images/blue-question.png);}
</style>
</head>
<body onLoad="tinyMCEPopup.executeOnLoad('init();');">
<form action="#" method="post" name="flexlists">
<table id="listchoices" width="664" cellpadding="8">
<tr>
<td style="text-align:center;"><label><ul class="greencheck" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="greencheck" />
</label></td>
<td style="text-align:center;"><label><ul class="greencheck2" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="greencheck2" />
</label></td>
<td style="text-align:center;"><label><ul class="greencheck3" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="greencheck3" />
</label></td>
</tr>
<tr>
<td style="text-align:center;"><label><ul class="bluecheck" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="bluecheck" />
</label></td>
<td style="text-align:center;"><label><ul class="orangecheckbox" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="orangecheckbox" />
</label></td>
<td style="text-align:center;"><label><ul class="greencheckbox" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="greencheckbox" />
</label></td>
</tr>
<tr>
<td style="text-align:center;"><label><ul class="bluecheckbox" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="bluecheckbox" />
</label></td>
<td style="text-align:center;"><label><ul class="redstop" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="redstop" />
</label></td>
<td style="text-align:center;"><label><ul class="redstop2" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="redstop2" />
</label></td>
</tr>
<tr>
<td style="text-align:center;"><label><ul class="redstop3" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="redstop3" />
</label></td>
<td style="text-align:center;"><label><ul class="redstop4" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="redstop4" />
</label></td>
<td style="text-align:center;"><label><ul class="redstop5" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="redstop5" />
</label></td>
</tr>
<tr>
<td style="text-align:center;"><label><ul class="warning" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="warning" />
</label></td>
<td style="text-align:center;"><label><ul class="plusgreen" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="plusgreen" />
</label></td>
<td style="text-align:center;"><label><ul class="question" style="font-size:12px;"><li>List item 1</li><li>List item 2</li></ul><br />
<input type="radio" name="flxlists" value="question" />
</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 List Style" onClick="insertListStyles();" />
</td>
</tr>
</table>
</form>
</body>
</html>