HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/_trash/wp-content/plugins/acf_pro/includes/admin/views/html-location-rule.php
<?php 

// vars
$prefix = 'acf_field_group[location]['.$rule['group'].']['.$rule['id'].']';

?>
<tr data-id="<?php echo $rule['id']; ?>">
	<td class="param">
		<?php 
		
		// vars
		$choices = acf_get_location_rule_types();
		
		
		// array
		if( is_array($choices) ) {
			
			acf_render_field(array(
				'type'		=> 'select',
				'name'		=> 'param',
				'prefix'	=> $prefix,
				'value'		=> $rule['param'],
				'choices'	=> $choices,
				'class'		=> 'refresh-location-rule'
			));
		
		}
		
		?>
	</td>
	<td class="operator">
		<?php 
		
		// vars
		$choices = acf_get_location_rule_operators( $rule );
		
		
		// array
		if( is_array($choices) ) {
			
			acf_render_field(array(
				'type'		=> 'select',
				'name'		=> 'operator',
				'prefix'	=> $prefix,
				'value'		=> $rule['operator'],
				'choices'	=> $choices
			));
		
		// custom	
		} else {
			
			echo $choices;
			
		}
	
		?>
	</td>
	<td class="value">
		<?php
		
		// vars
		$choices = acf_get_location_rule_values( $rule );
		
		
		// array
		if( is_array($choices) ) {
			
			acf_render_field(array(
				'type'		=> 'select',
				'name'		=> 'value',
				'prefix'	=> $prefix,
				'value'		=> $rule['value'],
				'choices'	=> $choices
			));
		
		// custom	
		} else {
			
			echo $choices;
			
		}
		
		?>
	</td>
	<td class="add">
		<a href="#" class="button add-location-rule"><?php _e("and",'acf'); ?></a>
	</td>
	<td class="remove">
		<a href="#" class="acf-icon -minus remove-location-rule"></a>
	</td>
</tr>