HEX
Server: LiteSpeed
System: Linux premium283.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
User: citaqlmd (746)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/citaqlmd/website.lmskreators.com/wp-content/plugins/metform/controls/admin-add-new-form.php
<?php 
namespace MetForm\Controls;

defined( 'ABSPATH' ) || exit;

class Admin_Add_New_Form {

    public function init(){
        add_action( 'admin_footer', [$this, 'output_form_editor_contents'] );
    }

    public function output_form_editor_contents(){
        $screen = get_current_screen();
        
        if($screen->id == 'edit-metform-form' || $screen->id == 'metform_page_mt-form-settings'){
            // Include new modal for add new form
            ?>
            <div class="formpicker_iframe_modal">
                <?php include 'form-editor-modal.php'; ?>
            </div>
            <?php
        }
    ?>



    <?php }

}