[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: form-basic.php
<?php namespace Elementor; defined( 'ABSPATH' ) || exit; class Widget_Met_Form_Basic extends Widget_Base { public function get_name() { return 'metform-basic'; } public function get_title() { return esc_html__( 'MetForm Basic', 'metform' ); } public function show_in_panel() { return 'metform-form' != get_post_type(); } public function get_categories() { return [ 'metform' ]; } public function get_keywords() { return ['metform', 'form']; } public function get_all_forms(){ $form_list = []; $args = array( 'posts_per_page' => -1, 'post_type' => 'metform-form', 'post_status' => 'publish', ); $forms = get_posts( $args ); foreach($forms as $form){ $form_list[$form->ID] = $form->post_title; } return $form_list; } protected function register_controls() { $this->start_controls_section( 'content_section', [ 'label' => esc_html__( 'Content', 'metform' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'mf_form_id', [ 'label' => esc_html__( 'Select Form : ', 'metform' ), 'type' => Controls_Manager::SELECT, 'default' => '', 'options' => $this->get_all_forms(), ] ); $this->end_controls_section(); } protected function render( $instance = [] ) { $settings = $this->get_settings_for_display(); \MetForm\Utils\Util::metform_content_renderer(\MetForm\Utils\Util::render_form_content($settings['mf_form_id'], $this->get_id())); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium166.web-hosting.com
Server IP: 162.0.209.40
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium166.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
HDD Total: 97.87 GB
HDD Free: 75.25 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kataubyb
User ID (UID): 624
Group ID (GID): 625
Script Owner UID: 624
Current Dir Owner: 624