File: /home/pewnabryka.pl/public_html/wp-content/plugins/vehica-updater/views/updater.php
<?php
$vehicaUpdaterNotice = get_option('vehica_updater_notice');
update_option('vehica_updater_notice', '0');
?>
<style>
    body {
        background: #fff !important;
    }
    #wpfooter {
        display: none !important;
    }
    #wpbody-content {
        padding-bottom: 0 !important;
    }
    #wpcontent {
        padding-left: 0 !important;
    }
    .error,
    .notice,
    .updated,
    .update-nag {
        display: none !important;
    }
    .clearfix::after {
        display: block;
        content: "";
        clear: both;
    }
    h1 {
        font-size: 36px;
        margin-bottom: 20px;
        margin-top: 0;
        font-size: 36px;
        height: 36px;
        float: left;
        width: 100%;
    }
    .vehica-updater-container {
        padding: 60px
    }
    .vehica-updater__box {
        max-width: 770px;
        min-height: 92px;
        border: 1px solid #D9E2EC;
        padding: 40px;
        border-radius: 5px;
        font-size: 16px;
        line-height: 22px;
        background: #f3f3f3;
        color: #23282d;
    }
</style>
<div class="vehica-updater-container">
    <h1><?php esc_html_e('Vehica Updater', 'vehica-updater'); ?></h1>
    <div class="clearfix"></div>
    <div class="vehica-updater__box">
        <div>
            <form
                    action="<?php echo esc_url(admin_url('admin-post.php?action=vehica_updater_save_purchase_code')); ?>"
                    method="post"
            >
                <div style="margin:0 0 10px 0">
                    <strong><?php esc_html_e('Enter your purchase code', 'vehica-updater'); ?></strong>
                </div>
                <div>
                    <input
                            placeholder="e.g. 10101010-10aa-0101-01010-a1b010a01b10"
                            name="purchase_code"
                            style="padding: 2px 10px; width: 400px; font-size: 16px;"
                            type="text"
                            value="<?php echo esc_attr(vehica_get_purchase_code()); ?>"
                    >
                    <button class="vehica-button vehica-button--accent">
                        <?php esc_html_e('Save', 'vehica-updater'); ?>
                    </button>
                </div>
                <?php if (!empty(get_option('vehica_invalid_purchase_code'))) : ?>
                    <div>
                        <h3 style="color: #23282d; font-size: 2em; line-height: 2em; margin: 30px 0 30px 0; font-weight: 900;">Invalid purchase code</h3>
                    </div>
                <?php endif; ?>
                <ul style="margin:20px 0 0 0;">
                    <li style="margin-bottom:10px;">
                        <a
                                target="_blank"
                                href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-"
                        >
                            Where to find the purchase code?
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="https://1.envato.market/D50ka">
                            Where to buy a legal Vehica WordPress Theme?
                        </a>
                    </li>
                </ul>
                <div style="margin-top:30px;">
                    If you have any question or problem please email
                    us via <a style="font-weight:500; text-decoration:underline!important;"
                            target="_blank"
                              href="https://support.vehica.com/contact-submit-ticket/">Support Contact Form</a>
                </div>
            </form>
        </div>
    </div>
    <?php if (!empty(vehica_get_purchase_code()) && empty(get_option('vehica_invalid_purchase_code'))) : ?>
        <div class="vehica-updater__box" style="margin-top:30px">
            <div>
                <div class="vehica-updater-app">
                    <div>
                        <vehica-updater
                                :plugins="<?php echo htmlspecialchars(json_encode(vehica_updater_get_plugins())); ?>"
                                theme-status="<?php echo esc_attr(vehica_updater_get_theme_status()); ?>"
                                query-url="<?php echo esc_url(admin_url('admin-post.php?action=')); ?>"
                        >
                            <div slot-scope="updater">
                                <div>
                                    With each new Vehica update comes new features, options, code improvements and fixes.
                                </div>
                                <div style="margin-top:20px;">
                                    <a
                                            v-if="updater.showUpdateButton"
                                            href="<?php echo esc_url(admin_url('admin-post.php?action=vehica_check_updates')); ?>"
                                            class="vehica-button vehica-button--accent"
                                            style="float:left; margin-bottom:0;"
                                    >
                                        <?php esc_html_e('Check for new updates', 'vehica-updater'); ?>
                                    </a>
                                </div>
                                <div class="clearfix"></div>
                                <?php if (vehica_require_update()) : ?>
                                    <div>
                                        <template>
                                            <h2 v-if="updater.showFinished"
                                                style="margin: 30px 0px 30px; border-top: 2px solid white; padding-top: 30px;">
                                                Update was finished successfully!</h2>
                                            <div v-if="updater.showUpdateButton">
                                                <h2 style="margin: 30px 0px 30px; border-top: 2px solid white; padding-top: 30px;">
                                                    New update for Vehica Theme is available!</h2>
                                                <div>
                                                    The update will remove <strong>/wp-content/themes/vehica/</strong>
                                                     folder and install in this place a brand new version of a theme.
                                                    All added/modified pages, listings, theme settings will work correctly after the update. Please consider that if you
                                                    are a developer and you customized files in the <strong>/wp-content/themes/vehica/</strong> folder - the customizations will be lost.
                                                    Please make sure that customized files (e.g., PHP files) are stored in the <a target="_blank"
                                                                                          href="https://support.vehica.com/knowledgebase/how-to-use-child-theme-how-to-change-files-php-css-js-and-keep-theme-future-update-compatibility/">Child
                                                        Theme</a>.
                                                </div>
                                                <div style="margin-top:30px">
                                                    Are you ready to update the theme and all plugins to the newest version?
                                                </div>
                                                <div style="margin-top:30px;">
                                                    <button
                                                            @click="updater.onStart"
                                                            class="vehica-button"
                                                    >
                                                        <?php esc_html_e('Yes - Update Vehica Theme Now', 'vehica-updater'); ?>
                                                    </button>
                                                </div>
                                            </div>
                                            <div class="clearfix"></div>
                                            <h2 style="margin: 30px 0px 30px; border-top: 2px solid white; padding-top: 30px;"
                                                v-if="updater.updateInProgress"
                                                class="vehica-importer__progress"
                                            >
                                                <i class="fas fa-spinner fa-spin mr-3"></i>
                                                <?php esc_html_e('Update In Progress...', 'vehica-updater'); ?>
                                            </h2>
                                            <div class="clearfix"></div>
                                        </template>
                                    </div>
                                <?php elseif (!empty($vehicaUpdaterNotice)) : ?>
                                    <h2 style="margin: 30px 0px 30px; border-top: 2px solid white; padding-top: 30px;">
                                        You are using the latest version of Vehica Theme
                                        (<?php echo VEHICA_VERSION; ?>).</h2>
                                <?php endif; ?>
                            </div>
                        </vehica-updater>
                    </div>
                </div>
            </div>
        </div>
    <?php endif; ?>
</div>