HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/date.class.php.tar
www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/themes/vadimarketv4/inc/form-fields/date.class.php000064400000002146151550340230030333 0ustar00var<?php

/**
 * Class Temavadisi_Custom_Field_Date
 */
class Temavadisi_Custom_Field_Date extends SiteOrigin_Widget_Field_Base {

	protected $prompt;

	protected function render_field( $value, $instance ) {
		?>
			<input type="datetime-local" id="<?php echo $this->element_id ?>" name="<?php echo $this->element_name ?>" min="<?php echo date("Y-m-d\TH:i"); ?>" value="<?php echo $value; ?>">
		<?php
	}

	protected function sanitize_field_input($value, $instance) {
		$sanitized_value = sanitize_text_field( $value );
		return $sanitized_value;
	}

	protected function get_label_classes( $value, $instance ) {
		$label_classes = parent::get_label_classes( $value, $instance );
		$label_classes[] = 'wd_title';
		return $label_classes;
	}

	protected function render_field_label($value, $instance) {
		
		parent::render_field_label( $value, $instance );

	}

	protected function render_before_field( $value, $instance ) {
		
		parent::render_before_field( $value, $instance );

	}

	protected function render_after_field( $value, $instance ) {
		$this->render_field_description();
	}
}