Пример #1
0
?>
<html>
    <head>
        <title><?php 
langCsp::_e($title);
?>
</title>
    </head>
    <body>
<div style="position: fixed; margin-left: 40%; margin-right: auto; text-align: center; background-color: #fdf5ce; padding: 10px; margin-top: 10%;">
    <div><?php 
langCsp::_e($title);
?>
</div>
    <?php 
echo htmlCsp::formStart('deactivatePlugin', array('action' => $this->REQUEST_URI, 'method' => $this->REQUEST_METHOD));
?>
    <?php 
$formData = array();
switch ($this->REQUEST_METHOD) {
    case 'GET':
        $formData = $this->GET;
        break;
    case 'POST':
        $formData = $this->POST;
        break;
}
foreach ($formData as $key => $val) {
    if (is_array($val)) {
        foreach ($val as $subKey => $subVal) {
            echo htmlCsp::hidden($key . '[' . $subKey . ']', array('value' => $subVal));
        newContent = str_replace(newContent, '%content%', selectedContent);
        jQuery(attsHtmlBox).find('.toeInsertShortcodeAtts:first').html('');
        if(jQuery(codeData.atts).size()) {
            var attsStr = ' ';
            for(var attId in codeData.atts) {
                attsStr += attId+ '="" ';
                jQuery(attsHtmlBox).find('.toeInsertShortcodeAtts:first').append('<div>'+ codeData.atts[ attId ].label+ ': '+ codeData.atts[ attId ].html+ '</div>');
            }
        }
        jQuery('#toeInsertShortcodeForm input[name=newContent]').val( newContent );
    }
}
// -->
</script>
<?php 
echo htmlCsp::formStart('toeInsertShortcodeForm', array('attrs' => 'id="toeInsertShortcodeForm"'));
?>
    <div id="toeInsertShortcodeSelectBox">
        <h3><a href="#"><?php 
langCsp::_e('Shortcode');
?>
</a></h3>
        <div id="toeInsertShortcodeContentDefault">
            <div><?php 
langCsp::_e('Type');
?>
: <?php 
echo htmlCsp::selectbox('shortcodeType', array('optionsCsp' => $this->shortcodesSelectOptions));
?>
</div>
            <div class="toeInsertShortcodeAtts"></div>