HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpmuhibbah/wp-content/plugins/give/src/Onboarding/Wizard/templates/form-preview.php
<?php

// same as default WP from wp-admin/admin-header.php.
$wp_version_class = 'branch-' . str_replace(['.', ','], '-', floatval(get_bloginfo('version')));

set_current_screen();
?>

<!DOCTYPE html>
<html <?php
language_attributes(); ?>>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php
        esc_html_e('GiveWP &rsaquo; Onboarding Wizard', 'give'); ?></title>
    <?php
    wp_print_styles(['give-styles']); ?>

    <style>
        body {
            margin: 0;
            padding: 0;
        }

        .iframe-loader {
            min-height: 776px !important;
        }
    </style>
</head>
<body class="<?php
echo esc_attr($wp_version_class); ?>">
<?php
echo give_form_shortcode(
    [
        'id' => $this->get_preview_form_id(),
    ]
);
?>
<?php
wp_print_scripts(['give']); ?>
<script>
    (function checkForBodySizeChange() {
        var last_body_size = {
            width: document.body.clientWidth,
            height: document.body.clientHeight,
        };

        function checkBodySizeChange() {
            var width_changed = last_body_size.width !== document.body.clientWidth,
                height_changed = last_body_size.height !== document.body.clientHeight;


            if (width_changed || height_changed) {
                handleBodySizeChange(document.body.clientWidth, document.body.clientHeight);
                last_body_size = {
                    width: document.body.clientWidth,
                    height: document.body.clientHeight,
                };
            }

            window.requestAnimationFrame(checkBodySizeChange);
        }

        function handleBodySizeChange(width, height) {
            window.parent.postMessage({
                action: 'resize',
                payload: {
                    height,
                    width,
                },
            });
        }

        window.requestAnimationFrame(checkBodySizeChange);
    })();
</script>
<script>
    (function listenForFormLoaded() {
        function handleFormLoaded(width, height) {
            window.parent.postMessage({
                action: 'loaded',
                payload: {},
            });
        }

        document.querySelector('iframe').addEventListener('load', handleFormLoaded);
    })();
</script>
</body>
</html>