GRAYBYTE WORDPRESS FILE MANAGER2696

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/metform/controls/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/metform/controls//form-picker.php
<?php 
namespace MetForm\Controls;

defined( 'ABSPATH' ) || exit;

class Form_Picker extends \Elementor\Base_Data_Control {
	/**
	 * Get choose control type.
	 *
	 * Retrieve the control type, in this case `choose`.
	 *
	 * @since 1.0.0
	 * @access public
	 *
	 * @return string Control type.
	 */
	public function get_type() {
		return 'formpicker';
	}

	/**
	 * Enqueue ontrol scripts and styles.
	 *
	 * @since 1.0.0
	 * @access public
	 */
	public function enqueue() {
		// Styles
		wp_register_style( 'metform-css-formpicker-control-inspactor',  Base::get_url() . 'assets/css/form-picker-inspactor.css', [], '1.0.0' );
		wp_enqueue_style( 'metform-css-formpicker-control-inspactor' );

		// Script
		wp_register_script( 'metform-js-formpicker-control-inspactor',  Base::get_url() . 'assets/js/form-picker-inspactor.js' );
		wp_enqueue_script( 'metform-js-formpicker-control-inspactor' );
	}


	/**
	 * Render choose control output in the editor.
	 *
	 * Used to generate the control HTML in the editor using Underscore JS
	 * template. The variables for the class are available using `data` JS
	 * object.
	 *
	 * @since 1.0.0
	 * @access public
	 */
	public function content_template() {
		$control_uid = $this->get_control_uid();
		?>
		<div style="display:none" class="elementor-control-field">
			<label for="<?php echo esc_attr($control_uid); ?>" class="elementor-control-title">{{{ data.label }}}</label>
			<div class="elementor-control-input-wrapper">
				<textarea id="<?php echo esc_attr($control_uid); ?>"  data-setting="{{ data.name }}"></textarea>
			</div>
		</div>
		<!-- <button id="metform-inspactor-edit-button">Edit Form Content</button> -->
		<# if ( data.description ) { #>
		<div class="elementor-control-field-description">{{{ data.description }}}</div>
		<# } #>
		<?php
	}

	/**
	 * Get choose control default settings.
	 *
	 * Retrieve the default settings of the choose control. Used to return the
	 * default settings while initializing the choose control.
	 *
	 * @since 1.0.0
	 * @access protected
	 *
	 * @return array Control default settings.
	 */
	protected function get_default_settings() {
		return [
			'label_block' => true,
		];
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:24
inteuuod / inteuuod
0755
assets
--
July 10 2025 04:32:24
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:24
inteuuod / inteuuod
0644
admin-add-new-form.php
0.635 KB
October 26 2022 15:25:22
inteuuod / inteuuod
0644
base.php
2.391 KB
May 27 2025 12:46:16
inteuuod / inteuuod
0644
control-manager.php
0.397 KB
July 13 2021 10:59:22
inteuuod / inteuuod
0644
form-editor-modal.php
2.637 KB
July 13 2021 10:59:22
inteuuod / inteuuod
0644
form-picker-modal.php
4.898 KB
January 08 2023 15:19:54
inteuuod / inteuuod
0644
form-picker-utils.php
1.77 KB
February 18 2025 11:07:26
inteuuod / inteuuod
0644
form-picker.php
2.126 KB
January 08 2023 15:19:54
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF