Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : button.php
<?php if ( ! defined( 'ABSPATH' ) ) {
	die( 'Direct access forbidden.' );
}

/**
 * @var int $id ;
 * @var Brizy_Editor_Post $post ;
 */

$state     = $is_using_brizy ? 'disable' : 'enable';
$className = $is_using_brizy ? 'brizy-button--default' : 'brizy-button--primary';
$edit_url  = esc_url( set_url_scheme( admin_url( 'admin-post.php?action=_brizy_admin_editor_' . $state . '&post=' . $post->ID . '&hash=' . wp_create_nonce( 'brizy-admin-nonce' ) ) ) );
?>
    <div class="brizy-buttons is-classic-editor">
        <?php
            if ( $is_using_brizy ) {
                ?>
                <a class="brizy-button brizy-button--primary enable-brizy-editor" href="<?php echo $edit_url; ?>">
                    <?php echo __( 'Back to WordPress Editor', 'brizy' ) ?>
                </a>
                <?php
            } else {
                ?>
                <a href="<?php echo $edit_url;?>" class="button button-primary button-large enable-brizy-editor">
		            <?php printf( esc_html__( 'Edit with %s', 'brizy' ), __bt( 'brizy', 'Brizy' ) ); ?>
                </a>
                <?php
            }
        ?>
    </div>
<?php
if ( $is_using_brizy ) {
	?>
    <style>
        #post-status-info {
            display: none;
        }
    </style>

    <div class="brizy-editor">
        <div class="brizy-buttons brizy-buttons-gutenberg">
            <a href="<?php echo $url;?>" class="">
                <div class="button button-primary button-large">
				    <?php printf( esc_html__( 'Edit with %s', 'brizy' ), __bt( 'brizy', 'Brizy' ) ); ?>
                </div>
            </a>
        </div>
    </div>
	<?php
}
?>
© 2025 XylotrechusZ