403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/bike/wp-content/plugins/colibri-page-builder/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/bike/wp-content/plugins/colibri-page-builder/utils/editor-overlay.php
<?php

global $post;

?>
<style>
    div#wp-content-editor-container {
        position: relative;
    }

    div#wp-content-editor-container textarea {
        max-height: 500px;
        height: 500px;
    }

    div#wp-content-editor-tools {
        display: none;
    }

    table#post-status-info {
        display: none;
    }

    .cp_customizer-editor-overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ececec;
        border: 1px solid #cacaca;
    }

    div#wp-content-wrap {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .cp_customizer-editor-overlay .middle-align {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
    }

    .cp_customizer-editor-overlay i.dashicons.dashicons-edit {
        font-size: 1.8em;
        width: auto;
        margin-right: 2px;
        vertical-align: middle;
        height: 30px;
    }

    .cp_customizer-editor-overlay .button.button-link,
    .cp_customizer-editor-overlay .button.button-link:hover,
    .cp_customizer-editor-overlay .button.button-link:focus {
        background: transparent;
        outline: none;
        box-shadow: none;
    }

</style>

<script>
    window.cp_open_page_in_default_editor = function (event,page) {
        event.preventDefault();
        event.stopPropagation();
        var response = confirm("<?php _e('This post was previously edited in Customizer. You can continue in the Default Editor, but you may lose data and formatting.', 'colibri-page-builder') //phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction ?>");
        if (response) {
            var data = {
                action: 'cp_open_in_default_editor',
                page: page,
                _wpnonce: '<?php echo wp_create_nonce('cp_open_in_default_editor_nonce'); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped?>'
            };

            jQuery.post(ajaxurl, data).done(function (response) {
                setTimeout(function () {
                    console.log('refresh', window.location.toString() + "&cp_default_editor=" + Date.now());
                    window.location = window.location.toString() + "&cp_default_editor=" + Date.now();
                }, 500);
            });
        }

        return false;
    }
</script>

<div class="cp_customizer-editor-overlay">
    <div class="middle-align">
        <div>
            <button onclick="cp_open_page_in_customizer(<?php echo esc_attr($post->ID); ?>)" class="button button-hero button-primary">
                <i class="dashicons dashicons-edit"></i>
				<?php _e('Edit in Colibri', 'colibri-page-builder') //phpcs:ignore  WordPress.Security.EscapeOutput.UnsafePrintingFunction ?>
            </button>
        </div>
        <div style="padding-top: 1em;">
            <button onclick="cp_open_page_in_default_editor(event,'<?php echo esc_attr($post->ID); ?>')" class="button button-link"><?php _e('Edit In Default Editor', 'colibri-page-builder') //phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction ?></button>
        </div>
    </div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit