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/inputs.tar
checkbox.php000064400000000650151545574610007061 0ustar00<?php
declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $input
 */
$input = $this->input;

$input['value'] = $input['value'] ?? false;
$input['value'] = wc_bool_to_string( $input['value'] );

$input['wrapper_class'] = sprintf( '%s %s', $input['wrapper_class'] ?? '', 'options' );

woocommerce_wp_checkbox( $input );
datetime.php000064400000003357151545574610007076 0ustar00<?php
/**
 * Datetime input template
 *
 * @since 1.5.0
 */

declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $input
 */
$input = $this->input;

$input['class']         = $input['class'] ?? '';
$input['wrapper_class'] = $input['wrapper_class'] ?? '';
$input['name']          = $input['name'] ?? $input['id'];
$input['desc_tip']      = $input['desc_tip'] ?? false;
$input['date']          = $input['date'] ?? '';
$input['time']          = $input['time'] ?? '';

echo '<p class="form-field ' . esc_attr( $input['id'] ) . '_field gla-input-datetime ' . esc_attr( $input['wrapper_class'] ) . '">
		<label for="' . esc_attr( $input['id'] ) . '_date">' . wp_kses_post( $input['label'] ) . '</label>';

// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
echo '<input type="date" pattern="\d{4}-\d{2}-\d{2}" class="' . esc_attr( $input['class'] ) . '" name="' . esc_attr( $input['name'] ) . '[date]" id="' . esc_attr( $input['id'] ) . '_date" value="' . esc_attr( $input['date'] ) . '" /> ';
echo '<input type="time" pattern="[0-9]{2}:[0-9]{2}" class="' . esc_attr( $input['class'] ) . '" name="' . esc_attr( $input['name'] ) . '[time]" id="' . esc_attr( $input['id'] ) . '_time" value="' . esc_attr( $input['time'] ) . '" /> ';
// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped

if ( ! empty( $input['description'] ) && false !== $input['desc_tip'] ) {
	echo wc_help_tip( $input['description'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}

if ( ! empty( $input['description'] ) && false === $input['desc_tip'] ) {
	echo '<span class="description">' . wp_kses_post( $input['description'] ) . '</span>';
}

echo '</p>';
decimal.php000064400000000454151545574610006673 0ustar00<?php
declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $input
 */
$input = $this->input;

$input['type']      = 'text';
$input['data_type'] = 'decimal';

woocommerce_wp_text_input( $input );
form.php000064400000001332151545574610006234 0ustar00<?php
declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $form
 */
$form = $this->form;
?>

<div class="gla-input <?php echo esc_attr( $form['gla_wrapper_class'] ?? '' ); ?>">
	<?php
	if ( ! empty( $form['type'] ) ) {
		// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
		echo $this->render_partial( path_join( 'inputs/', $form['type'] ), [ 'input' => $form ] );
	}

	if ( ! empty( $form['children'] ) ) {
		foreach ( $form['children'] as $form ) {
			// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
			echo $this->render_partial( 'inputs/form', [ 'form' => $form ] );
		}
	}
	?>
</div>


integer.php000064400000000575151545574610006736 0ustar00<?php
declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $input
 */
$input = $this->input;

$input['type'] = 'number';
// Not so "custom" but standard `<input type="number">` attribute.
$input['custom_attributes'] = [
	'min' => '0',
];

woocommerce_wp_text_input( $input );
select-with-text-input.php000064400000000306151545574610011640 0ustar00<?php
declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $input
 */
$input = $this->input;
select.php000064400000000350151545574620006550 0ustar00<?php
declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $input
 */
$input = $this->input;

woocommerce_wp_select( $input );
text.php000064400000000354151545574620006261 0ustar00<?php
declare( strict_types=1 );

defined( 'ABSPATH' ) || exit;

/**
 * @var \Automattic\WooCommerce\GoogleListingsAndAds\View\PHPView $this
 */

/**
 * @var array $input
 */
$input = $this->input;

woocommerce_wp_text_input( $input );