PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / 6.4.1-beta7
Secure Custom Fields v6.4.1-beta7
6.9.5 6.9.4 6.9.3 6.9.2 6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / includes / admin / views / acf-field-group / locations.php
secure-custom-fields / includes / admin / views / acf-field-group Last commit date
conditional-logic.php 1 year ago field.php 1 year ago fields.php 1 year ago index.php 1 year ago list-empty.php 1 year ago location-group.php 1 year ago location-rule.php 1 year ago locations.php 1 year ago options.php 1 year ago
locations.php
52 lines
1 <?php
2
3 // global
4 global $field_group;
5
6 ?>
7 <div class="acf-field">
8 <div class="acf-label">
9 <label><?php esc_html_e( 'Rules', 'secure-custom-fields' ); ?></label>
10 <i tabindex="0" class="acf-icon acf-icon-help acf-js-tooltip" title="<?php esc_attr_e( 'Create a set of rules to determine which edit screens will use these custom fields', 'secure-custom-fields' ); ?>">?</i>
11 </div>
12 <div class="acf-input">
13 <div class="rule-groups">
14
15 <?php
16 foreach ( $field_group['location'] as $i => $group ) :
17
18 // bail early if no group
19 if ( empty( $group ) ) {
20 return;
21 }
22
23
24 // view
25 acf_get_view(
26 'acf-field-group/location-group',
27 array(
28 'group' => $group,
29 'group_id' => "group_{$i}",
30 )
31 );
32 endforeach;
33 ?>
34
35 <h4><?php esc_html_e( 'or', 'secure-custom-fields' ); ?></h4>
36
37 <a href="#" class="button add-location-group"><?php esc_html_e( 'Add rule group', 'secure-custom-fields' ); ?></a>
38
39 </div>
40 </div>
41 </div>
42 <script type="text/javascript">
43 if( typeof acf !== 'undefined' ) {
44
45 acf.newPostbox({
46 'id': 'acf-field-group-locations',
47 'label': 'left'
48 });
49
50 }
51 </script>
52