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/radio.class.php.tar
httpdocs/wp-content/plugins/so-widgets-bundle/widgets/contact/fields/radio.class.php000064400000001453151547142200033235 0ustar00var/www/vhosts/uyarreklam.com.tr<?php

class SiteOrigin_Widget_ContactForm_Field_Radio extends SiteOrigin_Widget_ContactForm_Field_Base {
	public function render_field( $options ) {
		if ( ! empty( $options['field']['options'] ) ) {
			?>
			<ul>
				<?php foreach ( $options['field']['options'] as $i => $option ) { ?>
					<li>
						<label>
							<input
								type="radio"
								value="<?php echo esc_attr( $option['value'] ); ?>"
								name="<?php echo esc_attr( $options['field_name'] ); ?>"
								id="<?php echo esc_attr( $options['field_id'] ) . '-' . $i; ?>"
								<?php echo checked( $option['value'], $options['value'], false ); ?>
								<?php self::add_custom_attrs( 'radio', $options ); ?>
							/>
							<?php echo esc_html( $option['value'] ); ?>
						</label>
					</li>
				<?php } ?>
			</ul>
		<?php
		}
	}
}
uyarreklam.com.tr/httpdocs/wp-content/plugins/so-widgets-bundle/base/inc/fields/radio.class.php000064400000002157151550625130031623 0ustar00var/www/vhosts<?php

/**
 * Class SiteOrigin_Widget_Field_Radio
 */
class SiteOrigin_Widget_Field_Radio extends SiteOrigin_Widget_Field_Base {
/**
	 * The list of options which may be selected.
	 *
	 * @var array
	 */
	protected $options;

	protected function render_field( $value, $instance ) {
		if ( ! isset( $this->options ) || empty( $this->options ) ) {
			return;
		}
		$i = 0;

		foreach ( $this->options as $k => $v ) {
			?>
			<label for="<?php echo esc_attr( $this->element_id . '-' . $i ); ?>">
				<input
					type="radio"
					name="<?php echo esc_attr( $this->element_name ); ?>"
					id="<?php echo esc_attr( $this->element_id . '-' . $i ); ?>"
					class="siteorigin-widget-input"
					value="<?php echo esc_attr( $k ); ?>"
					<?php checked( $k, $value ); ?>
				>
				<?php echo esc_html( $v ); ?>
			</label>
			<?php
			++$i;
		}
	}

	protected function sanitize_field_input( $value, $instance ) {
		$sanitized_value = $value;
		$keys = array_keys( $this->options );

		if ( ! in_array( $sanitized_value, $keys ) ) {
			$sanitized_value = isset( $this->default ) ? $this->default : false;
		}

		return $sanitized_value;
	}
}