File "html-location-rule.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/advanced-custom-fields/includes/admin/views/html-location-rule.php
File
size: 1.17 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
$prefix = 'acf_field_group[location][' . $rule['group'] . '][' . $rule['id'] . ']';
?>
<tr data-id="<?php
echo $rule['id'];
?>">
<td class="param">
<?php
$choices = acf_get_location_rule_types();
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
$choices = acf_get_location_rule_operators($rule);
if (is_array($choices)) {
acf_render_field(array('type' => 'select', 'name' => 'operator', 'prefix' => $prefix, 'value' => $rule['operator'], 'choices' => $choices));
} else {
echo $choices;
}
?>
</td>
<td class="value">
<?php
$choices = acf_get_location_rule_values($rule);
if (is_array($choices)) {
acf_render_field(array('type' => 'select', 'name' => 'value', 'prefix' => $prefix, 'value' => $rule['value'], 'choices' => $choices));
} 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>