Current Path : /storage/v11800/sahityaonline/public_html/wp-content/plugins/metform/controls/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/sahityaonline/public_html/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 }
}