Advanced Custom Fields - Version 4.1.0

Version Description

  • [Added] Field group: location rules can now be grouped into AND / OR statements
  • [Added] Relationship field: Add option for filters (search / post_type)
  • [Added] Relationship field: Add option for elements (featured image / title / post_type)
  • [Added] Relationship field: Add post_id and field parameters to both ajax filter functions
  • [Added] Date Picker field: Add options for first_day
  • [Added] Date Picker field: Add text strings for translation
  • [Added] Select field: Add support for multiple default values
  • [Added] Checkbox field: Add support for multiple default values - http://support.advancedcustomfields.com/discussion/5635/checkbox-field-setting-multiple-defaults
  • [Updated] Minor JS + CSS improvements
  • [Added] Added free Add-ons to the admin page
  • [Fixed] Fixed minor bugs
Download this release

Release Info

Developer elliotcondon
Plugin Icon 128x128 Advanced Custom Fields
Version 4.1.0
Comparing to
See all releases

Code changes from version 4.0.3 to 4.1.0

acf.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced Custom Fields
4
  Plugin URI: http://www.advancedcustomfields.com/
5
  Description: Fully customise WordPress edit screens with powerful fields. Boasting a professional interface and a powerfull API, it’s a must have for any web developer working with WordPress. Field types include: Wysiwyg, text, textarea, image, file, select, checkbox, page link, post object, date picker, color picker, repeater, flexible content, gallery and more!
6
- Version: 4.0.3
7
  Author: Elliot Condon
8
  Author URI: http://www.elliotcondon.com/
9
  License: GPL
@@ -66,7 +66,7 @@ class Acf
66
  $this->settings = array(
67
  'path' => apply_filters('acf/helpers/get_path', __FILE__),
68
  'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
69
- 'version' => '4.0.3',
70
  'upgrade_version' => '3.4.1',
71
  );
72
 
3
  Plugin Name: Advanced Custom Fields
4
  Plugin URI: http://www.advancedcustomfields.com/
5
  Description: Fully customise WordPress edit screens with powerful fields. Boasting a professional interface and a powerfull API, it’s a must have for any web developer working with WordPress. Field types include: Wysiwyg, text, textarea, image, file, select, checkbox, page link, post object, date picker, color picker, repeater, flexible content, gallery and more!
6
+ Version: 4.1.0
7
  Author: Elliot Condon
8
  Author URI: http://www.elliotcondon.com/
9
  License: GPL
66
  $this->settings = array(
67
  'path' => apply_filters('acf/helpers/get_path', __FILE__),
68
  'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
69
+ 'version' => '4.1.0',
70
  'upgrade_version' => '3.4.1',
71
  );
72
 
core/actions/export.php CHANGED
@@ -11,13 +11,21 @@
11
 
12
  // vars
13
  $defaults = array(
14
- 'acf_posts' => array()
 
15
  );
16
  $my_options = array_merge( $defaults, $_POST );
17
 
18
 
 
 
 
 
 
 
 
19
  // check for posts
20
- if( !$my_options['acf_posts'] )
21
  {
22
  wp_die(__("No ACF groups selected",'acf'));
23
  }
@@ -183,9 +191,12 @@ echo '<?xml version="1.0" encoding="' . get_bloginfo('charset') . "\" ?>\n";
183
 
184
  global $wp_query, $wpdb;
185
  $wp_query->in_the_loop = true; // Fake being in the loop.
186
-
187
- $where = 'WHERE ID IN (' . join( ',', $my_options['acf_posts'] ) . ')';
188
- $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" );
 
 
 
189
 
190
  // Begin Loop
191
  foreach ( $posts as $post ) {
11
 
12
  // vars
13
  $defaults = array(
14
+ 'acf_posts' => array(),
15
+ 'nonce' => ''
16
  );
17
  $my_options = array_merge( $defaults, $_POST );
18
 
19
 
20
+ // validate nonce
21
+ if( !wp_verify_nonce($my_options['nonce'], 'export') )
22
+ {
23
+ wp_die(__("Error",'acf'));
24
+ }
25
+
26
+
27
  // check for posts
28
+ if( empty($my_options['acf_posts']) )
29
  {
30
  wp_die(__("No ACF groups selected",'acf'));
31
  }
191
 
192
  global $wp_query, $wpdb;
193
  $wp_query->in_the_loop = true; // Fake being in the loop.
194
+
195
+ // create SQL with %d placeholders
196
+ $where = 'WHERE ID IN (' . substr(str_repeat('%d,', count($my_options['acf_posts'])), 0, -1) . ')';
197
+
198
+ // now prepare the SQL based on the %d + $_POST data
199
+ $posts = $wpdb->get_results( $wpdb->prepare("SELECT * FROM {$wpdb->posts} $where", $my_options['acf_posts']));
200
 
201
  // Begin Loop
202
  foreach ( $posts as $post ) {
core/api.php CHANGED
@@ -341,8 +341,8 @@ function get_field_object( $field_key, $post_id = false, $options = array() )
341
  'key' => 'temp_key_for_' . $orig_field_key,
342
  );
343
  }
344
-
345
-
346
  // load value
347
  if( $options['load_value'] )
348
  {
@@ -737,7 +737,45 @@ function register_field_group( $array )
737
  unset( $array['options']['show_on_page'] );
738
  }
739
 
740
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
741
  $GLOBALS['acf_register_field_group'][] = $array;
742
  }
743
 
341
  'key' => 'temp_key_for_' . $orig_field_key,
342
  );
343
  }
344
+
345
+
346
  // load value
347
  if( $options['load_value'] )
348
  {
737
  unset( $array['options']['show_on_page'] );
738
  }
739
 
740
+
741
+ // 4.0.4 - changed location rules architecture
742
+ if( isset($array['location']['rules']) )
743
+ {
744
+ // vars
745
+ $groups = array();
746
+ $group_no = 0;
747
+
748
+
749
+ if( is_array($array['location']['rules']) )
750
+ {
751
+ foreach( $array['location']['rules'] as $rule )
752
+ {
753
+ $rule['group_no'] = $group_no;
754
+
755
+ // sperate groups?
756
+ if( $array['location']['allorany'] == 'any' )
757
+ {
758
+ $group_no++;
759
+ }
760
+
761
+
762
+ // add to group
763
+ $groups[ $rule['group_no'] ][ $rule['order_no'] ] = $rule;
764
+
765
+
766
+ // sort rules
767
+ ksort( $groups[ $rule['group_no'] ] );
768
+
769
+ }
770
+
771
+ // sort groups
772
+ ksort( $groups );
773
+ }
774
+
775
+ $array['location'] = $groups;
776
+ }
777
+
778
+
779
  $GLOBALS['acf_register_field_group'][] = $array;
780
  }
781
 
core/controllers/addons.php CHANGED
@@ -39,7 +39,7 @@ class acf_addons
39
  function admin_menu()
40
  {
41
  // add page
42
- $page = add_submenu_page('edit.php?post_type=acf', __('Add-Ons','acf'), __('Add-Ons','acf'), 'manage_options', 'acf-addons', array($this,'html'));
43
 
44
 
45
  // actions
@@ -125,95 +125,128 @@ class acf_addons
125
  $dir = apply_filters('acf/get_info', 'dir');
126
 
127
 
128
- $active = array(
129
- 'repeater' => class_exists('acf_field_repeater'),
130
- 'gallery' => class_exists('acf_field_gallery'),
131
- 'options_page' => class_exists('acf_options_page_plugin'),
132
- 'flexible_content' => class_exists('acf_field_flexible_content')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  );
134
 
135
  ?>
136
- <div class="wrap">
137
 
138
  <div class="icon32" id="icon-acf"><br></div>
139
  <h2 style="margin: 4px 0 15px;"><?php _e("Advanced Custom Fields Add-Ons",'acf'); ?></h2>
140
 
141
- <p style="margin: 0 0 20px;"><?php _e("The following Add-ons are available to increase the functionality of the Advanced Custom Fields plugin.",'acf'); ?><br />
 
142
  <?php _e("Each Add-on can be installed as a separate plugin (receives updates) or included in your theme (does not receive updates).",'acf'); ?></p>
143
-
 
144
  <div class="acf-alert">
145
- <p><strong><?php _e("Just updated to version 4?",'acf'); ?></strong> <?php _e("Activation codes have changed to plugins! Download your purchased add-ons",'acf'); ?> <a href="http://www.advancedcustomfields.com/add-ons-download/" target="_blank"><?php _e("here",'acf'); ?></a></p>
146
- </div>
 
147
 
148
  <div id="add-ons" class="clearfix">
149
 
150
- <div class="add-on wp-box <?php if( $active['repeater'] ): ?>add-on-active<?php endif; ?>">
151
- <img src="<?php echo $dir; ?>images/add-ons/repeater-field-thumb.jpg" />
152
- <div class="inner">
153
- <h3><?php _e("Repeater Field",'acf'); ?></h3>
154
- <p><?php _e("Create infinite rows of repeatable data with this versatile interface!",'acf'); ?></p>
155
- </div>
156
- <div class="footer">
157
- <?php if( $active['repeater'] ): ?>
158
- <a class="button button-disabled"><span class="tick"></span><?php _e("Installed",'acf'); ?></a>
159
- <?php else: ?>
160
- <a target="_blank" href="http://www.advancedcustomfields.com/add-ons/repeater-field/" class="button"><?php _e("Purchase & Install",'acf'); ?></a>
161
- <?php endif; ?>
162
- </div>
163
- </div>
164
-
165
-
166
- <div class="add-on wp-box <?php if( $active['gallery'] ): ?>add-on-active<?php endif; ?>">
167
- <img src="<?php echo $dir; ?>images/add-ons/gallery-field-thumb.jpg" />
168
  <div class="inner">
169
- <h3><?php _e("Gallery Field",'acf'); ?></h3>
170
- <p><?php _e("Create image galleries in a simple and intuitive interface!",'acf'); ?></p>
171
  </div>
172
  <div class="footer">
173
- <?php if( $active['gallery'] ): ?>
174
  <a class="button button-disabled"><span class="tick"></span><?php _e("Installed",'acf'); ?></a>
175
  <?php else: ?>
176
- <a target="_blank" href="http://www.advancedcustomfields.com/add-ons/gallery-field/" class="button"><?php _e("Purchase & Install",'acf'); ?></a>
177
  <?php endif; ?>
178
  </div>
179
  </div>
 
180
 
 
181
 
182
- <div class="add-on wp-box <?php if( $active['options_page'] ): ?>add-on-active<?php endif; ?>">
183
- <img src="<?php echo $dir; ?>images/add-ons/options-page-thumb.jpg" />
 
 
 
184
  <div class="inner">
185
- <h3><?php _e("Options Page",'acf'); ?></h3>
186
- <p><?php _e("Create global data to use throughout your website!",'acf'); ?></p>
187
  </div>
188
  <div class="footer">
189
- <?php if( $active['options_page'] ): ?>
190
  <a class="button button-disabled"><span class="tick"></span><?php _e("Installed",'acf'); ?></a>
191
  <?php else: ?>
192
- <a target="_blank" href="http://www.advancedcustomfields.com/add-ons/options-page/" class="button"><?php _e("Purchase & Install",'acf'); ?></a>
193
  <?php endif; ?>
194
  </div>
195
  </div>
196
-
197
-
198
- <div class="add-on wp-box <?php if( $active['flexible_content'] ): ?>add-on-active<?php endif; ?>">
199
- <img src="<?php echo $dir; ?>images/add-ons/flexible-content-field-thumb.jpg" />
200
- <div class="inner">
201
- <h3><?php _e("Flexible Content Field",'acf'); ?></h3>
202
- <p><?php _e("Create unique designs with a flexible content layout manager!",'acf'); ?></p>
203
- </div>
204
- <div class="footer">
205
- <?php if( $active['flexible_content'] ): ?>
206
- <a class="button button-disabled"><span class="tick"></span><?php _e("Installed",'acf'); ?></a>
207
- <?php else: ?>
208
- <a target="_blank" href="http://www.advancedcustomfields.com/add-ons/flexible-content-field/" class="button"><?php _e("Purchase & Install",'acf'); ?></a>
209
- <?php endif; ?>
210
- </div>
211
- </div>
212
-
213
-
214
  </div>
215
 
216
-
217
  </div>
218
  <?php
219
 
39
  function admin_menu()
40
  {
41
  // add page
42
+ $page = add_submenu_page('edit.php?post_type=acf', __('Add-ons','acf'), __('Add-ons','acf'), 'manage_options', 'acf-addons', array($this,'html'));
43
 
44
 
45
  // actions
125
  $dir = apply_filters('acf/get_info', 'dir');
126
 
127
 
128
+ $premium = array();
129
+ $premium[] = array(
130
+ 'title' => __("Repeater Field",'acf'),
131
+ 'description' => __("Create infinite rows of repeatable data with this versatile interface!",'acf'),
132
+ 'thumbnail' => $dir . 'images/add-ons/repeater-field-thumb.jpg',
133
+ 'active' => class_exists('acf_field_repeater'),
134
+ 'url' => 'http://www.advancedcustomfields.com/add-ons/repeater-field/'
135
+ );
136
+ $premium[] = array(
137
+ 'title' => __("Gallery Field",'acf'),
138
+ 'description' => __("Create image galleries in a simple and intuitive interface!",'acf'),
139
+ 'thumbnail' => $dir . 'images/add-ons/gallery-field-thumb.jpg',
140
+ 'active' => class_exists('acf_field_gallery'),
141
+ 'url' => 'http://www.advancedcustomfields.com/add-ons/gallery-field/'
142
+ );
143
+ $premium[] = array(
144
+ 'title' => __("Options Page",'acf'),
145
+ 'description' => __("Create global data to use throughout your website!",'acf'),
146
+ 'thumbnail' => $dir . 'images/add-ons/options-page-thumb.jpg',
147
+ 'active' => class_exists('acf_options_page_plugin'),
148
+ 'url' => 'http://www.advancedcustomfields.com/add-ons/options-page/'
149
+ );
150
+ $premium[] = array(
151
+ 'title' => __("Flexible Content Field",'acf'),
152
+ 'description' => __("Create unique designs with a flexible content layout manager!",'acf'),
153
+ 'thumbnail' => $dir . 'images/add-ons/flexible-content-field-thumb.jpg',
154
+ 'active' => class_exists('acf_field_flexible_content'),
155
+ 'url' => 'http://www.advancedcustomfields.com/add-ons/flexible-content-field/'
156
+ );
157
+
158
+
159
+ $free = array();
160
+ $free[] = array(
161
+ 'title' => __("Gravity Forms Field",'acf'),
162
+ 'description' => __("Creates a select field populated with Gravity Forms!",'acf'),
163
+ 'thumbnail' => $dir . 'images/add-ons/gravity-forms-field-thumb.jpg',
164
+ 'active' => class_exists('gravity_forms_field'),
165
+ 'url' => 'https://github.com/stormuk/Gravity-Forms-ACF-Field/'
166
+ );
167
+ $free[] = array(
168
+ 'title' => __("Date & Time Picker",'acf'),
169
+ 'description' => __("jQuery date & time picker",'acf'),
170
+ 'thumbnail' => $dir . 'images/add-ons/date-time-field-thumb.jpg',
171
+ 'active' => class_exists('acf_field_date_time_picker'),
172
+ 'url' => 'http://wordpress.org/extend/plugins/acf-field-date-time-picker/'
173
+ );
174
+ $free[] = array(
175
+ 'title' => __("Location Field",'acf'),
176
+ 'description' => __("Find addresses and coordinates of a desired location",'acf'),
177
+ 'thumbnail' => $dir . 'images/add-ons/google-maps-field-thumb.jpg',
178
+ 'active' => class_exists('acf_field_location'),
179
+ 'url' => 'https://github.com/elliotcondon/acf-location-field/'
180
+ );
181
+ $free[] = array(
182
+ 'title' => __("Contact Form 7 Field",'acf'),
183
+ 'description' => __("Assign one or more contact form 7 forms to a post",'acf'),
184
+ 'thumbnail' => $dir . 'images/add-ons/cf7-field-thumb.jpg',
185
+ 'active' => class_exists('acf_field_cf7'),
186
+ 'url' => 'https://github.com/taylormsj/acf-cf7-field/'
187
  );
188
 
189
  ?>
190
+ <div class="wrap" style="max-width:970px;">
191
 
192
  <div class="icon32" id="icon-acf"><br></div>
193
  <h2 style="margin: 4px 0 15px;"><?php _e("Advanced Custom Fields Add-Ons",'acf'); ?></h2>
194
 
195
+ <div class="acf-alert">
196
+ <p style=""><?php _e("The following Add-ons are available to increase the functionality of the Advanced Custom Fields plugin.",'acf'); ?><br />
197
  <?php _e("Each Add-on can be installed as a separate plugin (receives updates) or included in your theme (does not receive updates).",'acf'); ?></p>
198
+ </div>
199
+ <?php /*
200
  <div class="acf-alert">
201
+ <p><strong><?php _e("Just updated to version 4?",'acf'); ?></strong> <?php _e("Activation codes have changed to plugins! Download your purchased add-ons",'acf'); ?> <a href="http://www.advancedcustomfields.com/add-ons-download/" target="_blank"><?php _e("here",'acf'); ?></a></p>
202
+ </div>
203
+ */ ?>
204
 
205
  <div id="add-ons" class="clearfix">
206
 
207
+ <?php foreach( $premium as $addon ): ?>
208
+ <div class="add-on wp-box <?php if( $addon['active'] ): ?>add-on-active<?php endif; ?>">
209
+ <a target="_blank" href="<?php echo $addon['url']; ?>">
210
+ <img src="<?php echo $addon['thumbnail']; ?>" />
211
+ </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  <div class="inner">
213
+ <h3><a target="_blank" href="<?php echo $addon['url']; ?>"><?php echo $addon['title']; ?></a></h3>
214
+ <p><?php echo $addon['description']; ?></p>
215
  </div>
216
  <div class="footer">
217
+ <?php if( $addon['active'] ): ?>
218
  <a class="button button-disabled"><span class="tick"></span><?php _e("Installed",'acf'); ?></a>
219
  <?php else: ?>
220
+ <a target="_blank" href="<?php echo $addon['url']; ?>" class="button"><?php _e("Purchase & Install",'acf'); ?></a>
221
  <?php endif; ?>
222
  </div>
223
  </div>
224
+ <?php endforeach; ?>
225
 
226
+ <div class="add-on-title"></div>
227
 
228
+ <?php foreach( $free as $addon ): ?>
229
+ <div class="add-on wp-box <?php if( $addon['active'] ): ?>add-on-active<?php endif; ?>">
230
+ <a target="_blank" href="<?php echo $addon['url']; ?>">
231
+ <img src="<?php echo $addon['thumbnail']; ?>" />
232
+ </a>
233
  <div class="inner">
234
+ <h3><a target="_blank" href="<?php echo $addon['url']; ?>"><?php echo $addon['title']; ?></a></h3>
235
+ <p><?php echo $addon['description']; ?></p>
236
  </div>
237
  <div class="footer">
238
+ <?php if( $addon['active'] ): ?>
239
  <a class="button button-disabled"><span class="tick"></span><?php _e("Installed",'acf'); ?></a>
240
  <?php else: ?>
241
+ <a target="_blank" href="<?php echo $addon['url']; ?>" class="button"><?php _e("Download",'acf'); ?></a>
242
  <?php endif; ?>
243
  </div>
244
  </div>
245
+ <?php endforeach; ?>
246
+
247
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  </div>
249
 
 
250
  </div>
251
  <?php
252
 
core/controllers/export.php CHANGED
@@ -74,7 +74,7 @@ class acf_export
74
 
75
 
76
  // verify nonce
77
- if( isset($_POST['nonce']) && wp_verify_nonce($_POST['nonce'], 'acf_nonce') )
78
  {
79
  if( isset($_POST['export_to_xml']) )
80
  {
@@ -210,7 +210,7 @@ class acf_export
210
 
211
  ?>
212
  <form method="post">
213
- <input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'acf_nonce' ); ?>" />
214
  <div class="wp-box">
215
  <div class="title">
216
  <h3><?php _e("Export Field Groups",'acf'); ?></h3>
74
 
75
 
76
  // verify nonce
77
+ if( isset($_POST['nonce']) && wp_verify_nonce($_POST['nonce'], 'export') )
78
  {
79
  if( isset($_POST['export_to_xml']) )
80
  {
210
 
211
  ?>
212
  <form method="post">
213
+ <input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'export' ); ?>" />
214
  <div class="wp-box">
215
  <div class="title">
216
  <h3><?php _e("Export Field Groups",'acf'); ?></h3>
core/controllers/field_group.php CHANGED
@@ -159,45 +159,53 @@ class acf_field_group
159
  }
160
 
161
 
162
- // defaults
163
- $location = array(
164
- 'rules' => array(),
165
- 'allorany' => 'all',
166
- );
167
-
168
-
169
  // vars
170
- $allorany = get_post_meta($post_id, 'allorany', true);
171
- if( $allorany )
172
- {
173
- $location['allorany'] = $allorany;
174
- }
175
 
176
 
177
- // get all fields
178
  $rules = get_post_meta($post_id, 'rule', false);
179
 
180
-
181
- if($rules)
182
  {
183
-
184
- foreach($rules as $rule)
185
  {
186
  // if field group was duplicated, it may now be a serialized string!
187
  $rule = maybe_unserialize($rule);
188
-
189
-
190
- $location['rules'][ $rule['order_no'] ] = $rule;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  }
 
 
 
192
  }
193
-
194
-
195
- // sort
196
- ksort($location['rules']);
197
-
198
 
199
  // return fields
200
- return $location;
201
  }
202
 
203
 
@@ -489,11 +497,12 @@ class acf_field_group
489
  * @created: 23/06/12
490
  */
491
 
492
- function ajax_render_location($options = array())
493
  {
494
  // defaults
495
  $defaults = array(
496
- 'key' => null,
 
497
  'value' => null,
498
  'param' => null,
499
  );
@@ -517,7 +526,6 @@ class acf_field_group
517
 
518
  // vars
519
  $choices = array();
520
- $optgroup = false;
521
 
522
 
523
  // some case's have the same outcome
@@ -539,7 +547,6 @@ class acf_field_group
539
 
540
  case "page":
541
 
542
- $optgroup = true;
543
  $post_types = get_post_types( array('capability_type' => 'page') );
544
  unset( $post_types['attachment'], $post_types['revision'] , $post_types['nav_menu_item'], $post_types['acf'] );
545
 
@@ -623,7 +630,6 @@ class acf_field_group
623
 
624
  case "post" :
625
 
626
- $optgroup = true;
627
  $post_types = get_post_types( array('capability_type' => 'post') );
628
  unset( $post_types['attachment'], $post_types['revision'] , $post_types['nav_menu_item'], $post_types['acf'] );
629
 
@@ -698,7 +704,6 @@ class acf_field_group
698
  $choices = array();
699
  $simple_value = true;
700
  $choices = apply_filters('acf/get_taxonomies_for_select', $choices, $simple_value);
701
- $optgroup = true;
702
 
703
  break;
704
 
@@ -746,10 +751,9 @@ class acf_field_group
746
  // create field
747
  do_action('acf/create_field', array(
748
  'type' => 'select',
749
- 'name' => 'location[rules][' . $options['key'] . '][value]',
750
  'value' => $options['value'],
751
  'choices' => $choices,
752
- 'optgroup' => $optgroup,
753
  ));
754
 
755
 
@@ -882,24 +886,32 @@ class acf_field_group
882
 
883
  if( isset($_POST['location']) && is_array($_POST['location']) )
884
  {
885
- update_post_meta($post_id, 'allorany', $_POST['location']['allorany']);
 
886
 
887
- delete_post_meta($post_id, 'rule');
888
- if( $_POST['location']['rules'] )
 
889
  {
890
- foreach($_POST['location']['rules'] as $k => $rule)
891
  {
892
- $rule['order_no'] = $k;
893
- add_post_meta($post_id, 'rule', $rule);
 
 
 
 
 
 
 
 
894
  }
895
  }
 
896
  unset( $_POST['location'] );
897
  }
898
 
899
 
900
-
901
-
902
-
903
  /*
904
  * save options
905
  */
159
  }
160
 
161
 
 
 
 
 
 
 
 
162
  // vars
163
+ $groups = array();
164
+ $group_no = 0;
 
 
 
165
 
166
 
167
+ // get all rules
168
  $rules = get_post_meta($post_id, 'rule', false);
169
 
170
+
171
+ if( is_array($rules) )
172
  {
173
+ foreach( $rules as $rule )
 
174
  {
175
  // if field group was duplicated, it may now be a serialized string!
176
  $rule = maybe_unserialize($rule);
177
+
178
+
179
+ // does this rule have a group?
180
+ // + groups were added in 4.0.4
181
+ if( !isset($rule['group_no']) )
182
+ {
183
+ $rule['group_no'] = $group_no;
184
+
185
+ // sperate groups?
186
+ if( get_post_meta($post_id, 'allorany', true) == 'any' )
187
+ {
188
+ $group_no++;
189
+ }
190
+ }
191
+
192
+
193
+ // add to group
194
+ $groups[ $rule['group_no'] ][ $rule['order_no'] ] = $rule;
195
+
196
+
197
+ // sort rules
198
+ ksort( $groups[ $rule['group_no'] ] );
199
+
200
  }
201
+
202
+ // sort groups
203
+ ksort( $groups );
204
  }
205
+
 
 
 
 
206
 
207
  // return fields
208
+ return $groups;
209
  }
210
 
211
 
497
  * @created: 23/06/12
498
  */
499
 
500
+ function ajax_render_location( $options = array() )
501
  {
502
  // defaults
503
  $defaults = array(
504
+ 'group_id' => 0,
505
+ 'rule_id' => 0,
506
  'value' => null,
507
  'param' => null,
508
  );
526
 
527
  // vars
528
  $choices = array();
 
529
 
530
 
531
  // some case's have the same outcome
547
 
548
  case "page":
549
 
 
550
  $post_types = get_post_types( array('capability_type' => 'page') );
551
  unset( $post_types['attachment'], $post_types['revision'] , $post_types['nav_menu_item'], $post_types['acf'] );
552
 
630
 
631
  case "post" :
632
 
 
633
  $post_types = get_post_types( array('capability_type' => 'post') );
634
  unset( $post_types['attachment'], $post_types['revision'] , $post_types['nav_menu_item'], $post_types['acf'] );
635
 
704
  $choices = array();
705
  $simple_value = true;
706
  $choices = apply_filters('acf/get_taxonomies_for_select', $choices, $simple_value);
 
707
 
708
  break;
709
 
751
  // create field
752
  do_action('acf/create_field', array(
753
  'type' => 'select',
754
+ 'name' => 'location[' . $options['group_id'] . '][' . $options['rule_id'] . '][value]',
755
  'value' => $options['value'],
756
  'choices' => $choices,
 
757
  ));
758
 
759
 
886
 
887
  if( isset($_POST['location']) && is_array($_POST['location']) )
888
  {
889
+ delete_post_meta( $post_id, 'rule' );
890
+
891
 
892
+ // clean array keys
893
+ $_POST['location'] = array_values( $_POST['location'] );
894
+ foreach( $_POST['location'] as $group_id => $group )
895
  {
896
+ if( is_array($group) )
897
  {
898
+ // clean array keys
899
+ $group = array_values( $group );
900
+ foreach( $group as $rule_id => $rule )
901
+ {
902
+ $rule['order_no'] = $rule_id;
903
+ $rule['group_no'] = $group_id;
904
+
905
+
906
+ add_post_meta( $post_id, 'rule', $rule );
907
+ }
908
  }
909
  }
910
+
911
  unset( $_POST['location'] );
912
  }
913
 
914
 
 
 
 
915
  /*
916
  * save options
917
  */
core/controllers/input.php CHANGED
@@ -596,7 +596,7 @@ endif;
596
  <body>
597
 
598
  </body>
599
- </html
600
  <?php
601
 
602
  die;
596
  <body>
597
 
598
  </body>
599
+ </html>
600
  <?php
601
 
602
  die;
core/controllers/location.php CHANGED
@@ -85,8 +85,7 @@ class acf_location
85
 
86
 
87
  // return array
88
- $return = array();
89
- $return = apply_filters( 'acf/location/match_field_groups', $return, $options );
90
 
91
 
92
  // echo json
@@ -164,48 +163,34 @@ class acf_location
164
  $add_box = false;
165
 
166
 
167
- // if all of the rules are required to match, start at true and let any !$match set $add_box to false
168
- if( $acf['location']['allorany'] == 'all' )
169
- {
170
- $add_box = true;
171
- }
172
-
173
-
174
- if( is_array($acf['location']['rules']) )
175
  {
176
- // defaults
177
- $rule_defaults = array(
178
- 'param' => '',
179
- 'operator' => '==',
180
- 'value' => ''
181
- );
182
 
183
- foreach($acf['location']['rules'] as $rule)
184
  {
185
- // make sure rule has all 3 keys
186
- $rule = array_merge( $rule_defaults, $rule );
187
-
188
-
189
- // $match = true / false
190
- $match = false;
191
- $match = apply_filters( 'acf/location/rule_match/' . $rule['param'] , $match, $rule, $options );
192
-
193
-
194
-
195
- if( $acf['location']['allorany'] == 'all' && !$match )
196
  {
197
- // if all of the rules are required to match and this rule did not, don't add this box!
198
- $add_box = false;
199
- }
200
- elseif($acf['location']['allorany'] == 'any' && $match )
201
- {
202
- // if any of the rules are required to match and this rule did, add this box!
203
- $add_box = true;
 
204
  }
205
-
206
  }
207
- }
208
 
 
 
 
 
 
 
 
 
209
 
210
 
211
  // add ID to array
85
 
86
 
87
  // return array
88
+ $return = apply_filters( 'acf/location/match_field_groups', array(), $options );
 
89
 
90
 
91
  // echo json
163
  $add_box = false;
164
 
165
 
166
+ foreach( $acf['location'] as $group_id => $group )
 
 
 
 
 
 
 
167
  {
168
+ // start of as true, this way, any rule that doesn't match will cause this varaible to false
169
+ $match_group = true;
 
 
 
 
170
 
171
+ if( is_array($group) )
172
  {
173
+ foreach( $group as $rule_id => $rule )
 
 
 
 
 
 
 
 
 
 
174
  {
175
+ // $match = true / false
176
+ $match = apply_filters( 'acf/location/rule_match/' . $rule['param'] , false, $rule, $options );
177
+
178
+ if( !$match )
179
+ {
180
+ $match_group = false;
181
+ }
182
+
183
  }
 
184
  }
 
185
 
186
+
187
+ // all rules must havematched!
188
+ if( $match_group )
189
+ {
190
+ $add_box = true;
191
+ }
192
+
193
+ }
194
 
195
 
196
  // add ID to array
core/controllers/upgrade.php CHANGED
@@ -59,16 +59,9 @@ class acf_upgrade
59
  {
60
  // do nothing, this is a fresh install
61
  }
62
- elseif( $new_version > $old_version )
63
  {
64
- // this is a newer version (update)
65
- $url = admin_url('edit.php?post_type=acf&info=changelog');
66
-
67
- if( $new_version == '4.0.0' )
68
- {
69
- $url = admin_url('edit.php?post_type=acf&info=whats-new');
70
- }
71
-
72
  wp_redirect( $url );
73
  exit;
74
 
59
  {
60
  // do nothing, this is a fresh install
61
  }
62
+ elseif( $old_version < '4.0.0' && $new_version >= '4.0.0')
63
  {
64
+ $url = admin_url('edit.php?post_type=acf&info=whats-new');
 
 
 
 
 
 
 
65
  wp_redirect( $url );
66
  exit;
67
 
core/fields/checkbox.php CHANGED
@@ -51,10 +51,23 @@ class acf_field_checkbox extends acf_field
51
  // value must be array
52
  if( !is_array($field['value']) )
53
  {
54
- $field['value'] = array( $field['value'] );
 
 
 
 
 
 
 
 
 
55
  }
56
 
57
 
 
 
 
 
58
  echo '<input type="hidden" name="' . $field['name'] . '" value="" />';
59
  echo '<ul class="checkbox_list ' . $field['class'] . '">';
60
 
@@ -71,6 +84,10 @@ class acf_field_checkbox extends acf_field
71
  {
72
  $selected = 'checked="yes"';
73
  }
 
 
 
 
74
 
75
 
76
  echo '<li><label><input id="' . $field['id'] . '-' . $key . '" type="checkbox" class="' . $field['class'] . '" name="' . $field['name'] . '" value="' . $key . '" ' . $selected . ' />' . $value . '</label></li>';
@@ -119,14 +136,9 @@ class acf_field_checkbox extends acf_field
119
  <tr class="field_option field_option_<?php echo $this->name; ?>">
120
  <td class="label">
121
  <label for=""><?php _e("Choices",'acf'); ?></label>
122
- <p class="description"><?php _e("Enter your choices one per line",'acf'); ?><br />
123
- <br />
124
- <?php _e("Red",'acf'); ?><br />
125
- <?php _e("Blue",'acf'); ?><br />
126
- <br />
127
- <?php _e("red : Red",'acf'); ?><br />
128
- <?php _e("blue : Blue",'acf'); ?><br />
129
- </p>
130
  </td>
131
  <td>
132
  <?php
@@ -144,12 +156,13 @@ class acf_field_checkbox extends acf_field
144
  <tr class="field_option field_option_<?php echo $this->name; ?>">
145
  <td class="label">
146
  <label><?php _e("Default Value",'acf'); ?></label>
 
147
  </td>
148
  <td>
149
  <?php
150
 
151
  do_action('acf/create_field', array(
152
- 'type' => 'text',
153
  'name' => 'fields['.$key.'][default_value]',
154
  'value' => $field['default_value'],
155
  ));
51
  // value must be array
52
  if( !is_array($field['value']) )
53
  {
54
+ // perhaps this is a default value with new lines in it?
55
+ if( strpos($field['value'], "\n") !== false )
56
+ {
57
+ // found multiple lines, explode it
58
+ $field['value'] = explode("\n", $field['value']);
59
+ }
60
+ else
61
+ {
62
+ $field['value'] = array( $field['value'] );
63
+ }
64
  }
65
 
66
 
67
+ // trim value
68
+ $field['value'] = array_map('trim', $field['value']);
69
+
70
+
71
  echo '<input type="hidden" name="' . $field['name'] . '" value="" />';
72
  echo '<ul class="checkbox_list ' . $field['class'] . '">';
73
 
84
  {
85
  $selected = 'checked="yes"';
86
  }
87
+ if( isset($field['disabled']) && in_array($key, $field['disabled']) )
88
+ {
89
+ $selected .= ' disabled="true"';
90
+ }
91
 
92
 
93
  echo '<li><label><input id="' . $field['id'] . '-' . $key . '" type="checkbox" class="' . $field['class'] . '" name="' . $field['name'] . '" value="' . $key . '" ' . $selected . ' />' . $value . '</label></li>';
136
  <tr class="field_option field_option_<?php echo $this->name; ?>">
137
  <td class="label">
138
  <label for=""><?php _e("Choices",'acf'); ?></label>
139
+ <p><?php _e("Enter each choice on a new line.",'acf'); ?></p>
140
+ <p><?php _e("For more control, you may specify both a value and label like this:",'acf'); ?></p>
141
+ <p><?php _e("red : Red",'acf'); ?><br /><?php _e("blue : Blue",'acf'); ?></p>
 
 
 
 
 
142
  </td>
143
  <td>
144
  <?php
156
  <tr class="field_option field_option_<?php echo $this->name; ?>">
157
  <td class="label">
158
  <label><?php _e("Default Value",'acf'); ?></label>
159
+ <p class="description"><?php _e("Enter each default value on a new line",'acf'); ?></p>
160
  </td>
161
  <td>
162
  <?php
163
 
164
  do_action('acf/create_field', array(
165
+ 'type' => 'textarea',
166
  'name' => 'fields['.$key.'][default_value]',
167
  'value' => $field['default_value'],
168
  ));
core/fields/date_picker/date_picker.php CHANGED
@@ -18,6 +18,11 @@ class acf_field_date_picker extends acf_field
18
  $this->name = 'date_picker';
19
  $this->label = __("Date Picker",'acf');
20
  $this->category = __("jQuery",'acf');
 
 
 
 
 
21
 
22
 
23
  // do not delete!
@@ -25,6 +30,44 @@ class acf_field_date_picker extends acf_field
25
  }
26
 
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  /*
29
  * create_field()
30
  *
@@ -40,12 +83,7 @@ class acf_field_date_picker extends acf_field
40
  function create_field( $field )
41
  {
42
  // defaults
43
- $defaults = array(
44
- 'date_format' => 'yymmdd',
45
- 'display_format' => 'dd/mm/yy',
46
- );
47
-
48
- $field = array_merge($defaults, $field);
49
 
50
 
51
  // make sure it's not blank
@@ -61,7 +99,7 @@ class acf_field_date_picker extends acf_field
61
 
62
  // html
63
  echo '<input type="hidden" value="' . $field['value'] . '" name="' . $field['name'] . '" class="acf-hidden-datepicker" />';
64
- echo '<input type="text" value="" class="acf_datepicker" data-save_format="' . $field['date_format'] . '" data-display_format="' . $field['display_format'] . '" />';
65
 
66
  }
67
 
@@ -82,15 +120,27 @@ class acf_field_date_picker extends acf_field
82
  function create_options( $field )
83
  {
84
  // vars
85
- $defaults = array(
86
- 'date_format' => 'yymmdd',
87
- 'display_format' => 'dd/mm/yy',
88
- );
89
-
90
- $field = array_merge($defaults, $field);
91
  $key = $field['name'];
92
 
93
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  <tr class="field_option field_option_<?php echo $this->name; ?>">
95
  <td class="label">
96
  <label><?php _e("Save format",'acf'); ?></label>
@@ -123,7 +173,26 @@ class acf_field_date_picker extends acf_field
123
  ?>
124
  </td>
125
  </tr>
126
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
 
128
  }
129
 
18
  $this->name = 'date_picker';
19
  $this->label = __("Date Picker",'acf');
20
  $this->category = __("jQuery",'acf');
21
+ $this->defaults = array(
22
+ 'date_format' => 'yymmdd',
23
+ 'display_format' => 'dd/mm/yy',
24
+ 'first_day' => 1, // monday
25
+ );
26
 
27
 
28
  // do not delete!
30
  }
31
 
32
 
33
+ /*
34
+ * input_admin_head()
35
+ *
36
+ * This action is called in the admin_head action on the edit screen where your field is created.
37
+ * Use this action to add css and javascript to assist your create_field() action.
38
+ *
39
+ * @info http://codex.wordpress.org/Plugin_API/Action_Reference/admin_head
40
+ * @type action
41
+ * @since 3.6
42
+ * @date 23/01/13
43
+ */
44
+
45
+ function input_admin_head()
46
+ {
47
+ global $wp_locale;
48
+
49
+
50
+ // localize strings
51
+ $l10n = array(
52
+ 'closeText' => __( 'Done', 'acf' ),
53
+ 'currentText' => __( 'Today', 'acf' ),
54
+ 'monthNames' => array_values( $wp_locale->month ),
55
+ 'monthNamesShort' => array_values( $wp_locale->month_abbrev ),
56
+ 'monthStatus' => __( 'Show a different month', 'acf' ),
57
+ 'dayNames' => array_values( $wp_locale->weekday ),
58
+ 'dayNamesShort' => array_values( $wp_locale->weekday_abbrev ),
59
+ 'dayNamesMin' => array_values( $wp_locale->weekday_initial ),
60
+ 'isRTL' => isset($wp_locale->is_rtl) ? $wp_locale->is_rtl : false,
61
+ );
62
+
63
+ ?>
64
+ <script type="text/javascript">
65
+ acf.fields.date_picker.text = <?php echo json_encode( $l10n ); ?>;
66
+ </script>
67
+ <?php
68
+ }
69
+
70
+
71
  /*
72
  * create_field()
73
  *
83
  function create_field( $field )
84
  {
85
  // defaults
86
+ $field = array_merge($this->defaults, $field);
 
 
 
 
 
87
 
88
 
89
  // make sure it's not blank
99
 
100
  // html
101
  echo '<input type="hidden" value="' . $field['value'] . '" name="' . $field['name'] . '" class="acf-hidden-datepicker" />';
102
+ echo '<input type="text" value="" class="acf_datepicker" data-save_format="' . $field['date_format'] . '" data-display_format="' . $field['display_format'] . '" data-first_day="' . $field['first_day'] . '" />';
103
 
104
  }
105
 
120
  function create_options( $field )
121
  {
122
  // vars
123
+ $field = array_merge($this->defaults, $field);
 
 
 
 
 
124
  $key = $field['name'];
125
 
126
+
127
+ global $wp_locale;
128
+
129
+
130
+ // localize strings
131
+ $l10n = array(
132
+ 'closeText' => __( 'Done', 'acf' ),
133
+ 'currentText' => __( 'Today', 'acf' ),
134
+ 'monthNames' => array_values( $wp_locale->month ),
135
+ 'monthNamesShort' => array_values( $wp_locale->month_abbrev ),
136
+ 'monthStatus' => __( 'Show a different month', 'acf' ),
137
+ 'dayNames' => array_values( $wp_locale->weekday ),
138
+ 'dayNamesShort' => array_values( $wp_locale->weekday_abbrev ),
139
+ 'dayNamesMin' => array_values( $wp_locale->weekday_initial ),
140
+ 'isRTL' => isset($wp_locale->is_rtl) ? $wp_locale->is_rtl : false,
141
+ );
142
+
143
+ ?>
144
  <tr class="field_option field_option_<?php echo $this->name; ?>">
145
  <td class="label">
146
  <label><?php _e("Save format",'acf'); ?></label>
173
  ?>
174
  </td>
175
  </tr>
176
+ <tr class="field_option field_option_<?php echo $this->name; ?>">
177
+ <td class="label">
178
+ <label for=""><?php _e("Week Starts On",'acf'); ?></label>
179
+ </td>
180
+ <td>
181
+ <?php
182
+
183
+ $choices = array_values( $wp_locale->weekday );
184
+
185
+ do_action('acf/create_field', array(
186
+ 'type' => 'select',
187
+ 'name' => 'fields['.$key.'][first_day]',
188
+ 'value' => $field['first_day'],
189
+ 'choices' => $choices,
190
+ ));
191
+
192
+ ?>
193
+ </td>
194
+ </tr>
195
+ <?php
196
 
197
  }
198
 
core/fields/post_object.php CHANGED
@@ -117,7 +117,6 @@ class acf_field_post_object extends acf_field
117
  // Change Field into a select
118
  $field['type'] = 'select';
119
  $field['choices'] = array();
120
- $field['optgroup'] = false;
121
 
122
 
123
  foreach( $field['post_type'] as $post_type )
@@ -181,7 +180,6 @@ class acf_field_post_object extends acf_field
181
  $post_type_name = $post_type_object->labels->name;
182
 
183
  $field['choices'][ $post_type_name ][ $post->ID ] = $title;
184
- $field['optgroup'] = true;
185
  }
186
 
187
 
@@ -268,7 +266,6 @@ class acf_field_post_object extends acf_field
268
  'name' => 'fields['.$key.'][taxonomy]',
269
  'value' => $field['taxonomy'],
270
  'choices' => $choices,
271
- 'optgroup' => true,
272
  'multiple' => 1,
273
  ));
274
 
117
  // Change Field into a select
118
  $field['type'] = 'select';
119
  $field['choices'] = array();
 
120
 
121
 
122
  foreach( $field['post_type'] as $post_type )
180
  $post_type_name = $post_type_object->labels->name;
181
 
182
  $field['choices'][ $post_type_name ][ $post->ID ] = $title;
 
183
  }
184
 
185
 
266
  'name' => 'fields['.$key.'][taxonomy]',
267
  'value' => $field['taxonomy'],
268
  'choices' => $choices,
 
269
  'multiple' => 1,
270
  ));
271
 
core/fields/relationship.php CHANGED
@@ -2,6 +2,9 @@
2
 
3
  class acf_field_relationship extends acf_field
4
  {
 
 
 
5
 
6
  /*
7
  * __construct
@@ -18,6 +21,13 @@ class acf_field_relationship extends acf_field
18
  $this->name = 'relationship';
19
  $this->label = __("Relationship",'acf');
20
  $this->category = __("Relational",'acf');
 
 
 
 
 
 
 
21
 
22
 
23
  // do not delete!
@@ -62,7 +72,7 @@ class acf_field_relationship extends acf_field
62
  {
63
  // vars
64
  $options = array(
65
- 'post_type' => '',
66
  'taxonomy' => 'all',
67
  'posts_per_page' => 10,
68
  'paged' => 0,
@@ -73,7 +83,6 @@ class acf_field_relationship extends acf_field
73
  's' => '',
74
  'lang' => false,
75
  'update_post_meta_cache' => false,
76
- 'field_name' => '',
77
  'field_key' => '',
78
  'nonce' => ''
79
  );
@@ -103,7 +112,7 @@ class acf_field_relationship extends acf_field
103
 
104
 
105
  // load all post types by default
106
- if( !$options['post_type'] || !is_array($options['post_type']) || $options['post_type'][0] == "" )
107
  {
108
  $options['post_type'] = apply_filters('acf/get_post_types', array());
109
  }
@@ -169,10 +178,17 @@ class acf_field_relationship extends acf_field
169
  unset( $options['s'] );
170
 
171
 
 
 
 
 
 
 
 
172
  // filters
173
- $options = apply_filters('acf/fields/relationship/query', $options);
174
- $options = apply_filters('acf/fields/relationship/query/name=' . $options['field_name'] , $options);
175
- $options = apply_filters('acf/fields/relationship/query/key=' . $options['field_key'], $options);
176
 
177
 
178
  $results = '';
@@ -187,8 +203,11 @@ class acf_field_relationship extends acf_field
187
  {
188
  // right aligned info
189
  $title = '<span class="relationship-item-info">';
190
-
191
- $title .= $post->post_type;
 
 
 
192
 
193
  // WPML
194
  if( $options['lang'] )
@@ -198,6 +217,16 @@ class acf_field_relationship extends acf_field
198
 
199
  $title .= '</span>';
200
 
 
 
 
 
 
 
 
 
 
 
201
  // find title. Could use get_the_title, but that uses get_post(), so I think this uses less Memory
202
  $title .= apply_filters( 'the_title', $post->post_title, $post->ID );
203
 
@@ -208,9 +237,9 @@ class acf_field_relationship extends acf_field
208
  }
209
 
210
  // filters
211
- $title = apply_filters('acf/fields/relationship/result', $title, $post);
212
- $title = apply_filters('acf/fields/relationship/result/name=' . $options['field_name'] , $title, $post);
213
- $title = apply_filters('acf/fields/relationship/result/key=' . $options['field_key'], $title, $post);
214
 
215
 
216
  $results .= '<li><a href="' . get_permalink($post->ID) . '" data-post_id="' . $post->ID . '">' . $title . '<span class="acf-button-add"></span></a></li>';
@@ -239,35 +268,42 @@ class acf_field_relationship extends acf_field
239
  function create_field( $field )
240
  {
241
  // vars
242
- $defaults = array(
243
- 'post_type' => '',
244
- 'max' => -1,
245
- 'taxonomy' => array('all'),
246
- );
247
-
248
- $field = array_merge($defaults, $field);
249
-
250
-
251
- // validate types
252
- $field['max'] = (int) $field['max'];
253
-
254
-
255
- // row limit <= 0?
256
- if( $field['max'] <= 0 )
257
  {
258
  $field['max'] = 9999;
259
  }
260
 
261
 
262
- // load all post types by default
263
- if( !$field['post_type'] || !is_array($field['post_type']) || $field['post_type'][0] == "" )
 
 
 
 
 
 
 
264
  {
265
- $field['post_type'] = apply_filters('acf/get_post_types', array());
266
  }
267
 
268
 
 
 
 
 
 
 
 
 
 
 
269
  ?>
270
- <div class="acf_relationship" data-max="<?php echo $field['max']; ?>" data-s="" data-paged="1" data-post_type="<?php echo implode(',', $field['post_type']); ?>" data-taxonomy="<?php echo implode(',', $field['taxonomy']); ?>" <?php if( defined('ICL_LANGUAGE_CODE') ){ echo 'data-lang="' . ICL_LANGUAGE_CODE . '"';} ?>>
271
 
272
  <!-- Hidden Blank default value -->
273
  <input type="hidden" name="<?php echo $field['name']; ?>" value="" />
@@ -285,13 +321,53 @@ class acf_field_relationship extends acf_field
285
  <div class="relationship_left">
286
  <table class="widefat">
287
  <thead>
 
288
  <tr>
289
  <th>
290
  <label class="relationship_label" for="relationship_<?php echo $field['name']; ?>"><?php _e("Search",'acf'); ?>...</label>
291
  <input class="relationship_search" type="text" id="relationship_<?php echo $field['name']; ?>" />
292
- <div class="clear_relationship_search"></div>
293
  </th>
294
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  </thead>
296
  </table>
297
  <ul class="bl relationship_list">
@@ -311,11 +387,13 @@ class acf_field_relationship extends acf_field
311
  {
312
  foreach( $field['value'] as $post )
313
  {
314
-
315
  // right aligned info
316
  $title = '<span class="relationship-item-info">';
317
-
318
- $title .= $post->post_type;
 
 
 
319
 
320
  // WPML
321
  if( defined('ICL_LANGUAGE_CODE') )
@@ -326,16 +404,24 @@ class acf_field_relationship extends acf_field
326
  $title .= '</span>';
327
 
328
 
 
 
 
 
 
 
 
 
 
329
  // find title. Could use get_the_title, but that uses get_post(), so I think this uses less Memory
330
  $title .= apply_filters( 'the_title', $post->post_title, $post->ID );
331
 
332
-
333
  // status
334
  if($post->post_status != "publish")
335
  {
336
  $title .= " ($post->post_status)";
337
  }
338
-
339
 
340
  // filters
341
  $title = apply_filters('acf/fields/relationship/result', $title, $post);
@@ -378,13 +464,7 @@ class acf_field_relationship extends acf_field
378
  function create_options( $field )
379
  {
380
  // vars
381
- $defaults = array(
382
- 'post_type' => '',
383
- 'max' => '',
384
- 'taxonomy' => array('all'),
385
- );
386
-
387
- $field = array_merge($defaults, $field);
388
  $key = $field['name'];
389
 
390
 
@@ -395,6 +475,13 @@ class acf_field_relationship extends acf_field
395
  }
396
 
397
 
 
 
 
 
 
 
 
398
  ?>
399
  <tr class="field_option field_option_<?php echo $this->name; ?>">
400
  <td class="label">
@@ -404,7 +491,7 @@ class acf_field_relationship extends acf_field
404
  <?php
405
 
406
  $choices = array(
407
- '' => __("All",'acf')
408
  );
409
  $choices = apply_filters('acf/get_post_types', $choices);
410
 
@@ -440,12 +527,52 @@ class acf_field_relationship extends acf_field
440
  'name' => 'fields['.$key.'][taxonomy]',
441
  'value' => $field['taxonomy'],
442
  'choices' => $choices,
443
- 'optgroup' => true,
444
  'multiple' => 1,
445
  ));
446
  ?>
447
  </td>
448
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
  <tr class="field_option field_option_<?php echo $this->name; ?>">
450
  <td class="label">
451
  <label><?php _e("Maximum posts",'acf'); ?></label>
2
 
3
  class acf_field_relationship extends acf_field
4
  {
5
+ // vars
6
+ var $defaults;
7
+
8
 
9
  /*
10
  * __construct
21
  $this->name = 'relationship';
22
  $this->label = __("Relationship",'acf');
23
  $this->category = __("Relational",'acf');
24
+ $this->defaults = array(
25
+ 'post_type' => array('all'),
26
+ 'max' => '',
27
+ 'taxonomy' => array('all'),
28
+ 'filters' => array('search'),
29
+ 'result_elements' => array('post_title', 'post_type')
30
+ );
31
 
32
 
33
  // do not delete!
72
  {
73
  // vars
74
  $options = array(
75
+ 'post_type' => 'all',
76
  'taxonomy' => 'all',
77
  'posts_per_page' => 10,
78
  'paged' => 0,
83
  's' => '',
84
  'lang' => false,
85
  'update_post_meta_cache' => false,
 
86
  'field_key' => '',
87
  'nonce' => ''
88
  );
112
 
113
 
114
  // load all post types by default
115
+ if( in_array('all', $options['post_type']) )
116
  {
117
  $options['post_type'] = apply_filters('acf/get_post_types', array());
118
  }
178
  unset( $options['s'] );
179
 
180
 
181
+ // load field
182
+ $field = apply_filters('acf/load_field', false, $options['field_key'] );
183
+ $field = array_merge( $this->defaults, $field );
184
+
185
+ $the_post = get_post( $options['post_id'] );
186
+
187
+
188
  // filters
189
+ $options = apply_filters('acf/fields/relationship/query', $options, $field, $the_post);
190
+ $options = apply_filters('acf/fields/relationship/query/name=' . $field['name'], $options, $field, $the_post );
191
+ $options = apply_filters('acf/fields/relationship/query/key=' . $field['key'], $options, $field, $the_post );
192
 
193
 
194
  $results = '';
203
  {
204
  // right aligned info
205
  $title = '<span class="relationship-item-info">';
206
+
207
+ if( in_array('post_type', $field['result_elements']) )
208
+ {
209
+ $title .= $post->post_type;
210
+ }
211
 
212
  // WPML
213
  if( $options['lang'] )
217
 
218
  $title .= '</span>';
219
 
220
+
221
+ // featured_image
222
+ if( in_array('featured_image', $field['result_elements']) )
223
+ {
224
+ $image = get_the_post_thumbnail( $post->ID, array(21, 21) );
225
+
226
+ $title .= '<div class="result-thumbnail">' . $image . '</div>';
227
+ }
228
+
229
+
230
  // find title. Could use get_the_title, but that uses get_post(), so I think this uses less Memory
231
  $title .= apply_filters( 'the_title', $post->post_title, $post->ID );
232
 
237
  }
238
 
239
  // filters
240
+ $title = apply_filters('acf/fields/relationship/result', $title, $post, $field, $the_post);
241
+ $title = apply_filters('acf/fields/relationship/result/name=' . $field['name'] , $title, $post, $field, $the_post);
242
+ $title = apply_filters('acf/fields/relationship/result/key=' . $field['key'], $title, $post, $field, $the_post);
243
 
244
 
245
  $results .= '<li><a href="' . get_permalink($post->ID) . '" data-post_id="' . $post->ID . '">' . $title . '<span class="acf-button-add"></span></a></li>';
268
  function create_field( $field )
269
  {
270
  // vars
271
+ $field = array_merge($this->defaults, $field);
272
+
273
+
274
+ // no row limit?
275
+ if( !$field['max'] || $field['max'] < 1 )
 
 
 
 
 
 
 
 
 
 
276
  {
277
  $field['max'] = 9999;
278
  }
279
 
280
 
281
+ // validate post_type
282
+ if( !$field['post_type'] || !is_array($field['post_type']) || in_array('', $field['post_type']) )
283
+ {
284
+ $field['post_type'] = array( 'all' );
285
+ }
286
+
287
+
288
+ // validate taxonomy
289
+ if( !$field['taxonomy'] || !is_array($field['taxonomy']) || in_array('', $field['taxonomy']) )
290
  {
291
+ $field['taxonomy'] = array( 'all' );
292
  }
293
 
294
 
295
+ // class
296
+ $class = '';
297
+ if( $field['filters'] )
298
+ {
299
+ foreach( $field['filters'] as $filter )
300
+ {
301
+ $class .= ' has-' . $filter;
302
+ }
303
+ }
304
+
305
  ?>
306
+ <div class="acf_relationship<?php echo $class; ?>" data-max="<?php echo $field['max']; ?>" data-s="" data-paged="1" data-post_type="<?php echo implode(',', $field['post_type']); ?>" data-taxonomy="<?php echo implode(',', $field['taxonomy']); ?>" <?php if( defined('ICL_LANGUAGE_CODE') ){ echo 'data-lang="' . ICL_LANGUAGE_CODE . '"';} ?> data-field_key="<?php echo $field['key']; ?>">
307
 
308
  <!-- Hidden Blank default value -->
309
  <input type="hidden" name="<?php echo $field['name']; ?>" value="" />
321
  <div class="relationship_left">
322
  <table class="widefat">
323
  <thead>
324
+ <?php if(in_array( 'search', $field['filters']) ): ?>
325
  <tr>
326
  <th>
327
  <label class="relationship_label" for="relationship_<?php echo $field['name']; ?>"><?php _e("Search",'acf'); ?>...</label>
328
  <input class="relationship_search" type="text" id="relationship_<?php echo $field['name']; ?>" />
329
+ <!-- <div class="clear_relationship_search"></div> -->
330
  </th>
331
  </tr>
332
+ <?php endif; ?>
333
+ <?php if(in_array( 'post_type', $field['filters']) ): ?>
334
+ <tr>
335
+ <th>
336
+ <?php
337
+
338
+ // vars
339
+ $choices = array(
340
+ 'all' => 'Filter by post type'
341
+ );
342
+
343
+
344
+ if( in_array('all', $field['post_type']) )
345
+ {
346
+ $post_types = apply_filters( 'acf/get_post_types', array() );
347
+ $choices = array_merge( $choices, $post_types);
348
+ }
349
+ else
350
+ {
351
+ foreach( $field['post_type'] as $post_type )
352
+ {
353
+ $choices[ $post_type ] = $post_type;
354
+ }
355
+ }
356
+
357
+
358
+ // create field
359
+ do_action('acf/create_field', array(
360
+ 'type' => 'select',
361
+ 'name' => '',
362
+ 'class' => 'select-post_type',
363
+ 'value' => '',
364
+ 'choices' => $choices,
365
+ ));
366
+
367
+ ?>
368
+ </th>
369
+ </tr>
370
+ <?php endif; ?>
371
  </thead>
372
  </table>
373
  <ul class="bl relationship_list">
387
  {
388
  foreach( $field['value'] as $post )
389
  {
 
390
  // right aligned info
391
  $title = '<span class="relationship-item-info">';
392
+
393
+ if( in_array('post_type', $field['result_elements']) )
394
+ {
395
+ $title .= $post->post_type;
396
+ }
397
 
398
  // WPML
399
  if( defined('ICL_LANGUAGE_CODE') )
404
  $title .= '</span>';
405
 
406
 
407
+ // featured_image
408
+ if( in_array('featured_image', $field['result_elements']) )
409
+ {
410
+ $image = get_the_post_thumbnail( $post->ID, array(21, 21) );
411
+
412
+ $title .= '<div class="result-thumbnail">' . $image . '</div>';
413
+ }
414
+
415
+
416
  // find title. Could use get_the_title, but that uses get_post(), so I think this uses less Memory
417
  $title .= apply_filters( 'the_title', $post->post_title, $post->ID );
418
 
 
419
  // status
420
  if($post->post_status != "publish")
421
  {
422
  $title .= " ($post->post_status)";
423
  }
424
+
425
 
426
  // filters
427
  $title = apply_filters('acf/fields/relationship/result', $title, $post);
464
  function create_options( $field )
465
  {
466
  // vars
467
+ $field = array_merge($this->defaults, $field);
 
 
 
 
 
 
468
  $key = $field['name'];
469
 
470
 
475
  }
476
 
477
 
478
+ // validate result_elements
479
+ if( !in_array('post_title', $field['result_elements']) )
480
+ {
481
+ $field['result_elements'][] = 'post_title';
482
+ }
483
+
484
+
485
  ?>
486
  <tr class="field_option field_option_<?php echo $this->name; ?>">
487
  <td class="label">
491
  <?php
492
 
493
  $choices = array(
494
+ 'all' => __("All",'acf')
495
  );
496
  $choices = apply_filters('acf/get_post_types', $choices);
497
 
527
  'name' => 'fields['.$key.'][taxonomy]',
528
  'value' => $field['taxonomy'],
529
  'choices' => $choices,
 
530
  'multiple' => 1,
531
  ));
532
  ?>
533
  </td>
534
  </tr>
535
+ <tr class="field_option field_option_<?php echo $this->name; ?>">
536
+ <td class="label">
537
+ <label><?php _e("Filters",'acf'); ?></label>
538
+ </td>
539
+ <td>
540
+ <?php
541
+ do_action('acf/create_field', array(
542
+ 'type' => 'checkbox',
543
+ 'name' => 'fields['.$key.'][filters]',
544
+ 'value' => $field['filters'],
545
+ 'choices' => array(
546
+ 'search' => __("Search",'acf'),
547
+ 'post_type' => __("Post Type Select",'acf'),
548
+ )
549
+ ));
550
+ ?>
551
+ </td>
552
+ </tr>
553
+ <tr class="field_option field_option_<?php echo $this->name; ?>">
554
+ <td class="label">
555
+ <label><?php _e("Elements",'acf'); ?></label>
556
+ <p><?php _e("Selected elements will be displayed in each result",'acf') ?></p>
557
+ </td>
558
+ <td>
559
+ <?php
560
+ do_action('acf/create_field', array(
561
+ 'type' => 'checkbox',
562
+ 'name' => 'fields['.$key.'][result_elements]',
563
+ 'value' => $field['result_elements'],
564
+ 'choices' => array(
565
+ 'featured_image' => 'Featured Image',
566
+ 'post_title' => __("Post Title",'acf'),
567
+ 'post_type' => __("Post Type",'acf'),
568
+ ),
569
+ 'disabled' => array(
570
+ 'post_title'
571
+ )
572
+ ));
573
+ ?>
574
+ </td>
575
+ </tr>
576
  <tr class="field_option field_option_<?php echo $this->name; ?>">
577
  <td class="label">
578
  <label><?php _e("Maximum posts",'acf'); ?></label>
core/fields/select.php CHANGED
@@ -2,6 +2,9 @@
2
 
3
  class acf_field_select extends acf_field
4
  {
 
 
 
5
 
6
  /*
7
  * __construct
@@ -18,6 +21,12 @@ class acf_field_select extends acf_field
18
  $this->name = 'select';
19
  $this->label = __("Select",'acf');
20
  $this->category = __("Choice",'acf');
 
 
 
 
 
 
21
 
22
 
23
  // do not delete!
@@ -46,15 +55,41 @@ class acf_field_select extends acf_field
46
  function create_field( $field )
47
  {
48
  // vars
49
- $defaults = array(
50
- 'value' => array(),
51
- 'multiple' => 0,
52
- 'allow_null' => 0,
53
- 'choices' => array(),
54
- 'optgroup' => 0,
55
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
- $field = array_merge($defaults, $field);
 
58
 
59
 
60
  // multiple select
@@ -80,33 +115,21 @@ class acf_field_select extends acf_field
80
  }
81
 
82
  // loop through values and add them as options
83
- if( $field['choices'] )
84
  {
85
- foreach($field['choices'] as $key => $value)
86
  {
87
- if($field['optgroup'])
88
  {
89
  // this select is grouped with optgroup
90
  if($key != '') echo '<optgroup label="'.$key.'">';
91
 
92
- if($value)
93
  {
94
  foreach($value as $id => $label)
95
  {
96
- $selected = '';
97
- if(is_array($field['value']) && in_array($id, $field['value']))
98
- {
99
- // 2. If the value is an array (multiple select), loop through values and check if it is selected
100
- $selected = 'selected="selected"';
101
- }
102
- else
103
- {
104
- // 3. this is not a multiple select, just check normaly
105
- if($id == $field['value'])
106
- {
107
- $selected = 'selected="selected"';
108
- }
109
- }
110
  echo '<option value="'.$id.'" '.$selected.'>'.$label.'</option>';
111
  }
112
  }
@@ -115,20 +138,7 @@ class acf_field_select extends acf_field
115
  }
116
  else
117
  {
118
- $selected = '';
119
- if(is_array($field['value']) && in_array($key, $field['value']))
120
- {
121
- // 2. If the value is an array (multiple select), loop through values and check if it is selected
122
- $selected = 'selected="selected"';
123
- }
124
- else
125
- {
126
- // 3. this is not a multiple select, just check normaly
127
- if($key == $field['value'])
128
- {
129
- $selected = 'selected="selected"';
130
- }
131
- }
132
  echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
133
  }
134
  }
@@ -153,18 +163,10 @@ class acf_field_select extends acf_field
153
 
154
  function create_options( $field )
155
  {
156
- // vars
157
- $defaults = array(
158
- 'multiple' => 0,
159
- 'allow_null' => 0,
160
- 'default_value' => '',
161
- 'choices' => '',
162
- );
163
-
164
- $field = array_merge($defaults, $field);
165
  $key = $field['name'];
166
-
167
-
168
  // implode choices so they work in a textarea
169
  if( is_array($field['choices']) )
170
  {
@@ -179,37 +181,37 @@ class acf_field_select extends acf_field
179
  <tr class="field_option field_option_<?php echo $this->name; ?>">
180
  <td class="label">
181
  <label for=""><?php _e("Choices",'acf'); ?></label>
182
- <p class="description"><?php _e("Enter your choices one per line",'acf'); ?><br />
183
- <br />
184
- <?php _e("Red",'acf'); ?><br />
185
- <?php _e("Blue",'acf'); ?><br />
186
- <br />
187
- <?php _e("red : Red",'acf'); ?><br />
188
- <?php _e("blue : Blue",'acf'); ?><br />
189
- </p>
190
  </td>
191
  <td>
192
- <?php
 
193
  do_action('acf/create_field', array(
194
  'type' => 'textarea',
195
  'class' => 'textarea field_option-choices',
196
  'name' => 'fields['.$key.'][choices]',
197
  'value' => $field['choices'],
198
  ));
 
199
  ?>
200
  </td>
201
  </tr>
202
  <tr class="field_option field_option_<?php echo $this->name; ?>">
203
  <td class="label">
204
  <label><?php _e("Default Value",'acf'); ?></label>
 
205
  </td>
206
  <td>
207
- <?php
 
208
  do_action('acf/create_field', array(
209
- 'type' => 'text',
210
  'name' => 'fields['.$key.'][default_value]',
211
  'value' => $field['default_value'],
212
  ));
 
213
  ?>
214
  </td>
215
  </tr>
@@ -302,11 +304,7 @@ class acf_field_select extends acf_field
302
  function update_field( $field, $post_id )
303
  {
304
  // vars
305
- $defaults = array(
306
- 'choices' => '',
307
- );
308
-
309
- $field = array_merge($defaults, $field);
310
 
311
 
312
  // check if is array. Normal back end edit posts a textarea, but a user might use update_field from the front end
2
 
3
  class acf_field_select extends acf_field
4
  {
5
+ // vars
6
+ var $defaults;
7
+
8
 
9
  /*
10
  * __construct
21
  $this->name = 'select';
22
  $this->label = __("Select",'acf');
23
  $this->category = __("Choice",'acf');
24
+ $this->defaults = array(
25
+ 'multiple' => 0,
26
+ 'allow_null' => 0,
27
+ 'choices' => array(),
28
+ 'default_value' => ''
29
+ );
30
 
31
 
32
  // do not delete!
55
  function create_field( $field )
56
  {
57
  // vars
58
+ $field = array_merge($this->defaults, $field);
59
+ $optgroup = false;
60
+
61
+
62
+ // determin if choices are grouped (2 levels of array)
63
+ if( is_array($field['choices']) )
64
+ {
65
+ foreach( $field['choices'] as $k => $v )
66
+ {
67
+ if( is_array($v) )
68
+ {
69
+ $optgroup = true;
70
+ }
71
+ }
72
+ }
73
+
74
+
75
+ // value must be array
76
+ if( !is_array($field['value']) )
77
+ {
78
+ // perhaps this is a default value with new lines in it?
79
+ if( strpos($field['value'], "\n") !== false )
80
+ {
81
+ // found multiple lines, explode it
82
+ $field['value'] = explode("\n", $field['value']);
83
+ }
84
+ else
85
+ {
86
+ $field['value'] = array( $field['value'] );
87
+ }
88
+ }
89
+
90
 
91
+ // trim value
92
+ $field['value'] = array_map('trim', $field['value']);
93
 
94
 
95
  // multiple select
115
  }
116
 
117
  // loop through values and add them as options
118
+ if( is_array($field['choices']) )
119
  {
120
+ foreach( $field['choices'] as $key => $value )
121
  {
122
+ if( $optgroup )
123
  {
124
  // this select is grouped with optgroup
125
  if($key != '') echo '<optgroup label="'.$key.'">';
126
 
127
+ if( is_array($value) )
128
  {
129
  foreach($value as $id => $label)
130
  {
131
+ $selected = in_array($id, $field['value']) ? 'selected="selected"' : '';
132
+
 
 
 
 
 
 
 
 
 
 
 
 
133
  echo '<option value="'.$id.'" '.$selected.'>'.$label.'</option>';
134
  }
135
  }
138
  }
139
  else
140
  {
141
+ $selected = in_array($key, $field['value']) ? 'selected="selected"' : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
143
  }
144
  }
163
 
164
  function create_options( $field )
165
  {
166
+ $field = array_merge($this->defaults, $field);
 
 
 
 
 
 
 
 
167
  $key = $field['name'];
168
+
169
+
170
  // implode choices so they work in a textarea
171
  if( is_array($field['choices']) )
172
  {
181
  <tr class="field_option field_option_<?php echo $this->name; ?>">
182
  <td class="label">
183
  <label for=""><?php _e("Choices",'acf'); ?></label>
184
+ <p><?php _e("Enter each choice on a new line.",'acf'); ?></p>
185
+ <p><?php _e("For more control, you may specify both a value and label like this:",'acf'); ?></p>
186
+ <p><?php _e("red : Red",'acf'); ?><br /><?php _e("blue : Blue",'acf'); ?></p>
 
 
 
 
 
187
  </td>
188
  <td>
189
+ <?php
190
+
191
  do_action('acf/create_field', array(
192
  'type' => 'textarea',
193
  'class' => 'textarea field_option-choices',
194
  'name' => 'fields['.$key.'][choices]',
195
  'value' => $field['choices'],
196
  ));
197
+
198
  ?>
199
  </td>
200
  </tr>
201
  <tr class="field_option field_option_<?php echo $this->name; ?>">
202
  <td class="label">
203
  <label><?php _e("Default Value",'acf'); ?></label>
204
+ <p class="description"><?php _e("Enter each default value on a new line",'acf'); ?></p>
205
  </td>
206
  <td>
207
+ <?php
208
+
209
  do_action('acf/create_field', array(
210
+ 'type' => 'textarea',
211
  'name' => 'fields['.$key.'][default_value]',
212
  'value' => $field['default_value'],
213
  ));
214
+
215
  ?>
216
  </td>
217
  </tr>
304
  function update_field( $field, $post_id )
305
  {
306
  // vars
307
+ $field = array_merge($this->defaults, $field);
 
 
 
 
308
 
309
 
310
  // check if is array. Normal back end edit posts a textarea, but a user might use update_field from the front end
core/fields/taxonomy.php CHANGED
@@ -29,6 +29,7 @@ class acf_field_taxonomy extends acf_field
29
  'field_type' => 'checkbox',
30
  'allow_null' => 0,
31
  'load_save_terms' => 0,
 
32
  'return_format' => 'id'
33
  );
34
 
@@ -422,11 +423,11 @@ class acf_taxonomy_field_walker extends Walker
422
 
423
  if( $this->field['field_type'] == 'checkbox' )
424
  {
425
- $output .= '<li><label class="selectit"><input type="checkbox" name="' . $this->field['name'] . '" value="' . $term->term_id . '" ' . ($selected ? 'checked="checked"' : '') . ' /> ' . $term->name . '</span>';
426
  }
427
  elseif( $this->field['field_type'] == 'radio' )
428
  {
429
- $output .= '<li><label class="selectit"><input type="radio" name="' . $this->field['name'] . '" value="' . $term->term_id . '" ' . ($selected ? 'checked="checkbox"' : '') . ' /> ' . $term->name . '</span>';
430
  }
431
  elseif( $this->field['field_type'] == 'select' )
432
  {
@@ -459,7 +460,7 @@ class acf_taxonomy_field_walker extends Walker
459
  // wrap element
460
  if( in_array($this->field['field_type'], array('checkbox', 'radio')) )
461
  {
462
- $output .= '<li><ul class="children">' . "\n";
463
  }
464
  }
465
 
@@ -474,7 +475,7 @@ class acf_taxonomy_field_walker extends Walker
474
  // wrap element
475
  if( in_array($this->field['field_type'], array('checkbox', 'radio')) )
476
  {
477
- $output .= '</ul></li>' . "\n";
478
  }
479
  }
480
 
29
  'field_type' => 'checkbox',
30
  'allow_null' => 0,
31
  'load_save_terms' => 0,
32
+ 'multiple' => 0,
33
  'return_format' => 'id'
34
  );
35
 
423
 
424
  if( $this->field['field_type'] == 'checkbox' )
425
  {
426
+ $output .= '<li><label class="selectit"><input type="checkbox" name="' . $this->field['name'] . '" value="' . $term->term_id . '" ' . ($selected ? 'checked="checked"' : '') . ' /> ' . $term->name . '</label>';
427
  }
428
  elseif( $this->field['field_type'] == 'radio' )
429
  {
430
+ $output .= '<li><label class="selectit"><input type="radio" name="' . $this->field['name'] . '" value="' . $term->term_id . '" ' . ($selected ? 'checked="checkbox"' : '') . ' /> ' . $term->name . '</label>';
431
  }
432
  elseif( $this->field['field_type'] == 'select' )
433
  {
460
  // wrap element
461
  if( in_array($this->field['field_type'], array('checkbox', 'radio')) )
462
  {
463
+ $output .= '<ul class="children">' . "\n";
464
  }
465
  }
466
 
475
  // wrap element
476
  if( in_array($this->field['field_type'], array('checkbox', 'radio')) )
477
  {
478
+ $output .= '</ul>' . "\n";
479
  }
480
  }
481
 
core/fields/user.php CHANGED
@@ -201,7 +201,6 @@ class acf_field_user extends acf_field
201
 
202
 
203
  $field['type'] = 'select';
204
- $field['optgroup'] = true;
205
 
206
 
207
  do_action('acf/create_field', $field);
@@ -266,7 +265,6 @@ class acf_field_user extends acf_field
266
  'type' => 'select',
267
  'name' => 'fields['.$key.'][field_type]',
268
  'value' => $field['field_type'],
269
- 'optgroup' => true,
270
  'choices' => array(
271
  __("Multiple Values",'acf') => array(
272
  //'checkbox' => __('Checkbox', 'acf'),
201
 
202
 
203
  $field['type'] = 'select';
 
204
 
205
 
206
  do_action('acf/create_field', $field);
265
  'type' => 'select',
266
  'name' => 'fields['.$key.'][field_type]',
267
  'value' => $field['field_type'],
 
268
  'choices' => array(
269
  __("Multiple Values",'acf') => array(
270
  //'checkbox' => __('Checkbox', 'acf'),
core/fields/wysiwyg.php CHANGED
@@ -119,7 +119,7 @@ class acf_field_wysiwyg extends acf_field
119
  );
120
  $field = array_merge($defaults, $field);
121
 
122
- $id = 'wysiwyg-' . $field['id'];
123
 
124
 
125
  ?>
119
  );
120
  $field = array_merge($defaults, $field);
121
 
122
+ $id = 'wysiwyg-' . $field['id'] . '-' . uniqid();
123
 
124
 
125
  ?>
core/views/meta_box_fields.php CHANGED
@@ -168,7 +168,6 @@ $error_field_type = '<b>' . __('Error', 'acf') . '</b> ' . __('Field type does n
168
  'name' => 'fields[' .$fake_name . '][type]',
169
  'value' => $field['type'],
170
  'choices' => $field_types,
171
- 'optgroup' => true
172
  ));
173
  ?>
174
  </td>
168
  'name' => 'fields[' .$fake_name . '][type]',
169
  'value' => $field['type'],
170
  'choices' => $field_types,
 
171
  ));
172
  ?>
173
  </td>
core/views/meta_box_location.php CHANGED
@@ -12,21 +12,31 @@ global $post;
12
 
13
 
14
  // vars
15
- $location = apply_filters('acf/field_group/get_location', array(), $post->ID);
16
 
17
 
18
  // at lease 1 location rule
19
- if( empty($location['rules']) )
20
  {
21
- $location['rules'] = array(
 
 
22
  array(
23
- 'param' => 'post_type',
24
- 'operator' => '',
25
- 'value' => '',
 
 
 
 
 
 
26
  )
 
27
  );
28
  }
29
 
 
30
  ?>
31
  <table class="acf_input widefat" id="acf_location">
32
  <tbody>
@@ -36,128 +46,128 @@ if( empty($location['rules']) )
36
  <p class="description"><?php _e("Create a set of rules to determine which edit screens will use these advanced custom fields",'acf'); ?></p>
37
  </td>
38
  <td>
39
- <div class="location_rules">
40
- <table class="acf_input widefat acf-rules <?php if( count($location['rules']) == 1) echo 'remove-disabled'; ?>" id="location_rules">
41
- <tbody>
42
- <?php foreach($location['rules'] as $k => $rule): ?>
43
- <tr data-i="<?php echo $k; ?>">
44
- <td class="param"><?php
45
-
46
- $choices = array(
47
- __("Basic",'acf') => array(
48
- 'post_type' => __("Post Type",'acf'),
49
- 'user_type' => __("Logged in User Type",'acf'),
50
- ),
51
- __("Page",'acf') => array(
52
- 'page' => __("Page",'acf'),
53
- 'page_type' => __("Type",'acf'),
54
- 'page_parent' => __("Parent",'acf'),
55
- 'page_template' => __("Template",'acf'),
56
- ),
57
- __("Post",'acf') => array(
58
- 'post' => __("Post",'acf'),
59
- 'post_category' => __("Category",'acf'),
60
- 'post_format' => __("Format",'acf'),
61
- 'taxonomy' => __("Taxonomy",'acf'),
62
- ),
63
- __("Other",'acf') => array(
64
- 'ef_taxonomy' => __("Taxonomy Term (Add / Edit)",'acf'),
65
- 'ef_user' => __("User (Add / Edit)",'acf'),
66
- 'ef_media' => __("Media Attachment (Edit)",'acf')
67
- )
68
- );
69
-
70
-
71
- // validate
72
- /*
73
- if($this->parent->is_field_unlocked('options_page'))
74
- {
75
- $choices[__("Options Page",'acf')]['options_page'] = __("Options Page",'acf');
76
- }
77
- */
78
-
79
-
80
- // allow custom location rules
81
- $choices = apply_filters( 'acf/location/rule_types', $choices );
82
-
83
-
84
- // create field
85
- $args = array(
86
- 'type' => 'select',
87
- 'name' => 'location[rules]['.$k.'][param]',
88
- 'value' => $rule['param'],
89
- 'choices' => $choices,
90
- 'optgroup' => true,
91
- );
92
-
93
- do_action('acf/create_field', $args);
94
-
95
- ?></td>
96
- <td class="operator"><?php
97
-
98
- $choices = array(
99
- '==' => __("is equal to",'acf'),
100
- '!=' => __("is not equal to",'acf'),
101
- );
102
-
103
-
104
- // allow custom location rules
105
- $choices = apply_filters( 'acf/location/rule_operators', $choices );
106
-
107
-
108
- // create field
109
- do_action('acf/create_field', array(
110
- 'type' => 'select',
111
- 'name' => 'location[rules]['.$k.'][operator]',
112
- 'value' => $rule['operator'],
113
- 'choices' => $choices
114
- ));
115
-
116
- ?></td>
117
- <td class="value"><?php
118
-
119
- $this->ajax_render_location(array(
120
- 'key' => $k,
121
- 'value' => $rule['value'],
122
- 'param' => $rule['param'],
123
- ));
124
-
125
- ?></td>
126
- <td class="buttons">
127
- <ul class="hl clearfix">
128
- <li><a href="javascript:;" class="acf-button-remove"></a></li>
129
- <li><a href="javascript:;" class="acf-button-add"></a></li>
130
- </ul>
131
- </td>
132
- </tr>
133
- <?php endforeach; ?>
134
- </tbody>
135
-
136
- </table>
137
- <ul class="hl clearfix">
138
- <li style="padding:4px 4px 0 0;"><?php _e("match",'acf'); ?></li>
139
- <li><?php do_action('acf/create_field', array(
140
- 'type' => 'select',
141
- 'name' => 'location[allorany]',
142
- 'value' => $location['allorany'],
143
- 'choices' => array(
144
- 'all' => __("all",'acf'),
145
- 'any' => __("any",'acf'),
146
- ),
147
- )); ?></li>
148
- <li style="padding:4px 0 0 4px;"><?php _e("of the above",'acf'); ?></li>
149
- </ul>
 
150
  </div>
151
-
152
-
153
  </td>
154
-
155
  </tr>
156
-
157
  </tbody>
158
  </table>
159
  <script type="text/html" id="acf_location_options_deactivated">
160
  <optgroup label="<?php _e("Options",'acf'); ?>" disabled="true">
161
  <option value="" disabled="true"><?php _e("Unlock options add-on with an activation code",'acf'); ?></option>
162
  </optgroup>
 
 
 
163
  </script>
12
 
13
 
14
  // vars
15
+ $groups = apply_filters('acf/field_group/get_location', array(), $post->ID);
16
 
17
 
18
  // at lease 1 location rule
19
+ if( empty($groups) )
20
  {
21
+ $groups = array(
22
+
23
+ // group_0
24
  array(
25
+
26
+ // rule_0
27
+ array(
28
+ 'param' => 'post_type',
29
+ 'operator' => '==',
30
+ 'value' => 'post',
31
+ 'order_no' => 0,
32
+ 'group_no' => 0
33
+ )
34
  )
35
+
36
  );
37
  }
38
 
39
+
40
  ?>
41
  <table class="acf_input widefat" id="acf_location">
42
  <tbody>
46
  <p class="description"><?php _e("Create a set of rules to determine which edit screens will use these advanced custom fields",'acf'); ?></p>
47
  </td>
48
  <td>
49
+ <div class="location-groups">
50
+
51
+ <?php if( is_array($groups) ): ?>
52
+ <?php foreach( $groups as $group_id => $group ):
53
+ $group_id = 'group_' . $group_id;
54
+ ?>
55
+ <div class="location-group" data-id="<?php echo $group_id; ?>">
56
+ <?php if( $group_id == 'group_0' ): ?>
57
+ <h4><?php _e("Show this field group if",'acf'); ?></h4>
58
+ <?php else: ?>
59
+ <h4><?php _e("or",'acf'); ?></h4>
60
+ <?php endif; ?>
61
+ <?php if( is_array($group) ): ?>
62
+ <table class="acf_input widefat">
63
+ <tbody>
64
+ <?php foreach( $group as $rule_id => $rule ):
65
+ $rule_id = 'rule_' . $rule_id;
66
+ ?>
67
+ <tr data-id="<?php echo $rule_id; ?>">
68
+ <td class="param"><?php
69
+
70
+ $choices = array(
71
+ __("Basic",'acf') => array(
72
+ 'post_type' => __("Post Type",'acf'),
73
+ 'user_type' => __("Logged in User Type",'acf'),
74
+ ),
75
+ __("Page",'acf') => array(
76
+ 'page' => __("Page",'acf'),
77
+ 'page_type' => __("Page Type",'acf'),
78
+ 'page_parent' => __("Page Parent",'acf'),
79
+ 'page_template' => __("Page Template",'acf'),
80
+ ),
81
+ __("Post",'acf') => array(
82
+ 'post' => __("Post",'acf'),
83
+ 'post_category' => __("Post Category",'acf'),
84
+ 'post_format' => __("Post Format",'acf'),
85
+ 'taxonomy' => __("Post Taxonomy",'acf'),
86
+ ),
87
+ __("Other",'acf') => array(
88
+ 'ef_taxonomy' => __("Taxonomy Term (Add / Edit)",'acf'),
89
+ 'ef_user' => __("User (Add / Edit)",'acf'),
90
+ 'ef_media' => __("Media Attachment (Edit)",'acf')
91
+ )
92
+ );
93
+
94
+
95
+ // allow custom location rules
96
+ $choices = apply_filters( 'acf/location/rule_types', $choices );
97
+
98
+
99
+ // create field
100
+ $args = array(
101
+ 'type' => 'select',
102
+ 'name' => 'location[' . $group_id . '][' . $rule_id . '][param]',
103
+ 'value' => $rule['param'],
104
+ 'choices' => $choices,
105
+ );
106
+
107
+ do_action('acf/create_field', $args);
108
+
109
+ ?></td>
110
+ <td class="operator"><?php
111
+
112
+ $choices = array(
113
+ '==' => __("is equal to",'acf'),
114
+ '!=' => __("is not equal to",'acf'),
115
+ );
116
+
117
+
118
+ // allow custom location rules
119
+ $choices = apply_filters( 'acf/location/rule_operators', $choices );
120
+
121
+
122
+ // create field
123
+ do_action('acf/create_field', array(
124
+ 'type' => 'select',
125
+ 'name' => 'location[' . $group_id . '][' . $rule_id . '][operator]',
126
+ 'value' => $rule['operator'],
127
+ 'choices' => $choices
128
+ ));
129
+
130
+ ?></td>
131
+ <td class="value"><?php
132
+
133
+ $this->ajax_render_location(array(
134
+ 'group_id' => $group_id,
135
+ 'rule_id' => $rule_id,
136
+ 'value' => $rule['value'],
137
+ 'param' => $rule['param'],
138
+ ));
139
+
140
+ ?></td>
141
+ <td class="add">
142
+ <a href="#" class="location-add-rule button"><?php _e("and",'acf'); ?></a>
143
+ </td>
144
+ <td class="remove">
145
+ <a href="#" class="location-remove-rule acf-button-remove"></a>
146
+ </td>
147
+ </tr>
148
+ <?php endforeach; ?>
149
+ </tbody>
150
+ </table>
151
+ <?php endif; ?>
152
+ </div>
153
+ <?php endforeach; ?>
154
+
155
+ <h4><?php _e("or",'acf'); ?></h4>
156
+
157
+ <a class="button location-add-group" href="#"><?php _e("Add rule group",'acf'); ?></a>
158
+
159
+ <?php endif; ?>
160
+
161
  </div>
 
 
162
  </td>
 
163
  </tr>
 
164
  </tbody>
165
  </table>
166
  <script type="text/html" id="acf_location_options_deactivated">
167
  <optgroup label="<?php _e("Options",'acf'); ?>" disabled="true">
168
  <option value="" disabled="true"><?php _e("Unlock options add-on with an activation code",'acf'); ?></option>
169
  </optgroup>
170
+ </script>
171
+ <script type="text/javascript">
172
+ acf.text.or = "<?php _e('or','acf'); ?>";
173
  </script>
css/acf.css CHANGED
@@ -128,7 +128,7 @@ body.custom-fields_page_acf-settings .wp-pointer-arrow {
128
  *-------------------------------------------------------------------------*/
129
 
130
  #add-ons {
131
-
132
  }
133
 
134
  #add-ons .add-on {
@@ -141,6 +141,15 @@ body.custom-fields_page_acf-settings .wp-pointer-arrow {
141
  margin-top: 0.5em;
142
  }
143
 
 
 
 
 
 
 
 
 
 
144
  #add-ons .add-on-active .button {
145
  padding-left: 4px;
146
  }
@@ -154,6 +163,13 @@ body.custom-fields_page_acf-settings .wp-pointer-arrow {
154
  background: url(../images/sprite.png) -18px -318px no-repeat;
155
  }
156
 
 
 
 
 
 
 
 
157
 
158
  /*--------------------------------------------------------------------------
159
  *
128
  *-------------------------------------------------------------------------*/
129
 
130
  #add-ons {
131
+ margin-bottom: 20px;
132
  }
133
 
134
  #add-ons .add-on {
141
  margin-top: 0.5em;
142
  }
143
 
144
+ #add-ons .add-on h3 a {
145
+ color: inherit;
146
+ text-decoration: none;
147
+ }
148
+
149
+ #add-ons .add-on .inner {
150
+ min-height: 75px;
151
+ }
152
+
153
  #add-ons .add-on-active .button {
154
  padding-left: 4px;
155
  }
163
  background: url(../images/sprite.png) -18px -318px no-repeat;
164
  }
165
 
166
+ #add-ons .add-on-title {
167
+ float: left;
168
+ width: 100%;
169
+ margin: 25px 0 25px;
170
+ border-top: #F5F5F5 solid 1px;
171
+ }
172
+
173
 
174
  /*--------------------------------------------------------------------------
175
  *
css/field-group.css CHANGED
@@ -418,38 +418,70 @@ table.acf_input tr td .acf tr td {
418
  clear: both;
419
  }
420
 
 
421
  /*---------------------------------------------------------------------------------------------
422
- Location
423
- ---------------------------------------------------------------------------------------------*/
 
 
424
 
425
- .postbox#acf_location .inside {
426
  margin: 0;
427
  padding: 0;
428
  }
429
 
430
- .postbox#acf_location .widefat {
431
- border: 0 none;
 
 
 
 
432
  }
433
 
434
- .postbox#acf_location h3 span.description {
435
- font-size: 11px;
436
- color: #666;
437
- font-weight: normal;
438
- font-style: normal;
439
- padding-left: 4px;
440
  }
441
 
442
- table.acf_input > tbody > tr > td > select[multiple="multiple"] {
443
- height: auto !important;
 
444
  }
445
 
446
- td.param {
447
  width: 40%;
448
  }
449
- td.operator {
 
450
  width: 20%;
451
  }
452
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453
  /*---------------------------------------------------------------------------------------------
454
  Location Rules
455
  ---------------------------------------------------------------------------------------------*/
@@ -465,18 +497,6 @@ table.acf-rules tbody tr {
465
 
466
  }
467
 
468
- table.acf-rules tbody tr td {
469
- padding: 4px;
470
- border: 0 none;
471
- }
472
-
473
- table.acf-rules tbody tr td:first-child {
474
- padding-left: 0;
475
- }
476
-
477
- table.acf-rules tbody tr td:last-child {
478
- padding-right: 0;
479
- }
480
 
481
  table.acf-rules tbody tr td.buttons {
482
  width: 48px;
418
  clear: both;
419
  }
420
 
421
+
422
  /*---------------------------------------------------------------------------------------------
423
+ *
424
+ * Location
425
+ *
426
+ *---------------------------------------------------------------------------------------------*/
427
 
428
+ #acf_location .inside {
429
  margin: 0;
430
  padding: 0;
431
  }
432
 
433
+ #acf_location .location-groups {
434
+ padding: 5px 0;
435
+ }
436
+
437
+ #acf_location h4 {
438
+ margin: 15px 0 5px;
439
  }
440
 
441
+ #acf_location .location-group {
442
+ margin: 0 0 15px;
443
+ }
444
+
445
+ #acf_location .location-group h4 {
446
+ margin: 0 0 3px;;
447
  }
448
 
449
+ #acf_location .location-group table.acf_input tbody tr td {
450
+ padding: 4px;
451
+ border: 0 none;
452
  }
453
 
454
+ #acf_location .location-group td.param {
455
  width: 40%;
456
  }
457
+
458
+ #acf_location .location-group td.operator {
459
  width: 20%;
460
  }
461
 
462
+ #acf_location .location-group td.add {
463
+ width: 40px;
464
+ }
465
+
466
+ #acf_location .location-group td.remove {
467
+ width: 18px;
468
+ }
469
+
470
+ #acf_location .location-group tr .location-remove-rule {
471
+ display: none;
472
+ }
473
+
474
+ #acf_location .location-group tr:hover .location-remove-rule {
475
+ display: block;
476
+ }
477
+
478
+
479
+ /* Don't allow user to delete the first field group */
480
+ #acf_location .location-group:first-child tr:first-child:hover .location-remove-rule {
481
+ display: none;
482
+ }
483
+
484
+
485
  /*---------------------------------------------------------------------------------------------
486
  Location Rules
487
  ---------------------------------------------------------------------------------------------*/
497
 
498
  }
499
 
 
 
 
 
 
 
 
 
 
 
 
 
500
 
501
  table.acf-rules tbody tr td.buttons {
502
  width: 48px;
css/global.css CHANGED
@@ -265,14 +265,13 @@ table.acf_input td.label ul.hl li a.acf-button {
265
  font-weight: normal;
266
  }
267
 
268
- table.acf_input tbody tr td.label label{
269
  display: block;
270
  font-size: 12px;
271
  font-weight: bold;
272
  padding: 0;
273
- margin: 0;
274
  color: #333;
275
-
276
  }
277
 
278
  table.acf_input tbody tr td.label label span.required {
@@ -282,11 +281,11 @@ table.acf_input tbody tr td.label label span.required {
282
  }
283
 
284
 
285
- table.acf_input tbody tr td.label p{
286
  display: block;
287
  font-size: 12px;
288
- padding: 6px 0 !important;
289
- margin: 0 !important;
290
  font-style: normal;
291
  line-height: 16px;
292
  color: #666;
@@ -336,10 +335,10 @@ ul.checkbox_list {
336
  margin: 0;
337
  }
338
 
339
- ul.radio_list input,
340
- ul.checkbox_list input {
341
- margin-right: 5px;
342
- width: auto;
343
  }
344
 
345
 
265
  font-weight: normal;
266
  }
267
 
268
+ table.acf_input tbody tr td.label label {
269
  display: block;
270
  font-size: 12px;
271
  font-weight: bold;
272
  padding: 0;
273
+ margin: 0 0 6px;
274
  color: #333;
 
275
  }
276
 
277
  table.acf_input tbody tr td.label label span.required {
281
  }
282
 
283
 
284
+ table.acf_input tbody tr td.label p {
285
  display: block;
286
  font-size: 12px;
287
+ padding: 0 !important;
288
+ margin: 3px 0 0 !important;
289
  font-style: normal;
290
  line-height: 16px;
291
  color: #666;
335
  margin: 0;
336
  }
337
 
338
+ ul.radio_list li input,
339
+ ul.checkbox_list li input {
340
+ margin-right: 5px !important;
341
+ width: auto !important;
342
  }
343
 
344
 
css/input.css CHANGED
@@ -40,52 +40,52 @@
40
  *
41
  *---------------------------------------------------------------------------------------------*/
42
 
43
- #poststuff .acf_postbox .field {
44
  position: relative;
45
  padding: 15px 10px;
46
  border-bottom: #e8e8e8 solid 1px;
47
  }
48
 
49
- #poststuff .acf_postbox .field:last-child {
50
  border-bottom: none;
51
  }
52
 
53
- #poststuff .acf_postbox.no_box .field {
54
  border-top: 0 none;
55
  border-bottom: 0 none;
56
  padding-left: 0;
57
  padding-right: 0;
58
- }
59
 
60
 
61
  /* Field Error */
62
- #poststuff .acf_postbox .field.error {
63
  margin: 0;
64
  border: #CC0000 solid 1px !important;
65
  border-radius: 0;
66
  }
67
 
68
- #poststuff .acf_postbox.no_box .field.error {
69
  padding-left: 10px;
70
  padding-right: 10px;
71
  }
72
 
73
 
74
- #poststuff .acf_postbox .field.error + .error {
75
  border-top: 0 none !important;
76
  }
77
 
78
- #poststuff .acf_postbox .field.error:last-child {
79
  border-bottom: #CC0000 solid 1px;
80
  }
81
 
82
- #poststuff .acf_postbox .field.error label.field_label {
83
  color: #CC0000;
84
  }
85
 
86
 
87
  /* Field Label */
88
- #poststuff .acf_postbox p.label {
89
  font-size: 11px;
90
  line-height: 1.1em;
91
  margin: 0 0 1em;
@@ -94,7 +94,7 @@
94
  text-shadow: 0 1px 0 #FFFFFF;
95
  }
96
 
97
- #poststuff .acf_postbox p.label label {
98
  color: #333333;
99
  font-size: 13px;
100
  font-weight: bold;
@@ -104,15 +104,15 @@
104
  vertical-align: text-bottom;
105
  }
106
 
107
- .field.required label span.required {
108
  color: #CC0000;
109
  }
110
 
111
- #poststuff .acf_postbox label.field_label:first-child {
112
  padding-top: 0;
113
  }
114
 
115
- #poststuff .acf_postbox .field_type-message p.label {
116
  display: none !important;
117
  }
118
 
@@ -276,6 +276,153 @@
276
  }
277
 
278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  /*---------------------------------------------------------------------------------------------
280
  *
281
  * ACF Message Wrapper (used by image / file / gallery)
@@ -577,6 +724,29 @@ td.acf_input-wrap {
577
  }
578
 
579
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
580
  /*---------------------------------------------------------------------------------------------
581
  *
582
  * Field: Taxonomy
40
  *
41
  *---------------------------------------------------------------------------------------------*/
42
 
43
+ .acf_postbox .field {
44
  position: relative;
45
  padding: 15px 10px;
46
  border-bottom: #e8e8e8 solid 1px;
47
  }
48
 
49
+ .acf_postbox .field:last-child {
50
  border-bottom: none;
51
  }
52
 
53
+ .acf_postbox.no_box .field {
54
  border-top: 0 none;
55
  border-bottom: 0 none;
56
  padding-left: 0;
57
  padding-right: 0;
58
+ }
59
 
60
 
61
  /* Field Error */
62
+ .acf_postbox .field.error {
63
  margin: 0;
64
  border: #CC0000 solid 1px !important;
65
  border-radius: 0;
66
  }
67
 
68
+ .acf_postbox.no_box .field.error {
69
  padding-left: 10px;
70
  padding-right: 10px;
71
  }
72
 
73
 
74
+ .acf_postbox .field.error + .error {
75
  border-top: 0 none !important;
76
  }
77
 
78
+ .acf_postbox .field.error:last-child {
79
  border-bottom: #CC0000 solid 1px;
80
  }
81
 
82
+ .acf_postbox .field.error label.field_label {
83
  color: #CC0000;
84
  }
85
 
86
 
87
  /* Field Label */
88
+ .acf_postbox p.label {
89
  font-size: 11px;
90
  line-height: 1.1em;
91
  margin: 0 0 1em;
94
  text-shadow: 0 1px 0 #FFFFFF;
95
  }
96
 
97
+ .acf_postbox p.label label {
98
  color: #333333;
99
  font-size: 13px;
100
  font-weight: bold;
104
  vertical-align: text-bottom;
105
  }
106
 
107
+ .acf_postbox .field.required label span.required {
108
  color: #CC0000;
109
  }
110
 
111
+ .acf_postbox label.field_label:first-child {
112
  padding-top: 0;
113
  }
114
 
115
+ .acf_postbox .field_type-message p.label {
116
  display: none !important;
117
  }
118
 
276
  }
277
 
278
 
279
+ .media-modal.acf-media-modal {
280
+ left: 20%;
281
+ right: 20%;
282
+ top: 100px;
283
+ bottom: 100px;
284
+ }
285
+
286
+
287
+ .media-modal.acf-media-modal .media-frame-router,
288
+ .media-modal.acf-media-modal .attachments,
289
+ .media-modal.acf-media-modal .media-frame-content .media-toolbar {
290
+ display: none;
291
+ }
292
+
293
+ .media-modal.acf-media-modal .media-frame-content {
294
+ top: 45px;
295
+ }
296
+
297
+ .media-modal.acf-media-modal .media-frame-title {
298
+ border-bottom: 1px solid #DFDFDF;
299
+ box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1);
300
+ }
301
+
302
+ .media-modal.acf-media-modal .media-frame-content .media-sidebar {
303
+ width: auto;
304
+ left: 0px;
305
+ }
306
+
307
+
308
+ .media-modal.acf-media-modal .media-sidebar {
309
+ padding: 0 30px 24px;
310
+ }
311
+
312
+ .media-modal.acf-media-modal .media-sidebar .attachment-info .thumbnail {
313
+ width: 120px;
314
+ background: #EAEAEA;
315
+ }
316
+
317
+ .media-modal .acf_postbox .field {
318
+ padding: 0;
319
+ }
320
+
321
+ .media-modal.acf-media-modal .media-sidebar .setting,
322
+ .media-modal.acf-media-modal .compat-attachment-fields tr {
323
+ margin: 0;
324
+ padding: 2px 0;
325
+ clear: both;
326
+ float: none;
327
+ width: auto;
328
+ padding: 5px 0 5px 130px;
329
+ }
330
+
331
+ .media-modal.acf-media-modal .media-sidebar .setting span,
332
+ .media-modal.acf-media-modal .compat-attachment-fields tr th.label {
333
+ position: absolute;
334
+ left: 0;
335
+ width: 120px;
336
+ min-width: 0;
337
+ text-align: left;
338
+ margin: 0;
339
+ padding: 0;
340
+
341
+ color: #999999;
342
+ text-shadow: 0 1px 0 #FFFFFF;
343
+ font-weight: normal;
344
+ }
345
+
346
+ .media-modal.acf-media-modal .compat-attachment-fields tr th.label span {
347
+ text-align: left;
348
+ padding: 0;
349
+ }
350
+
351
+ .media-modal.acf-media-modal .media-sidebar input,
352
+ .media-modal.acf-media-modal .media-sidebar select,
353
+ .media-modal.acf-media-modal .media-sidebar textarea {
354
+ width: 100%;
355
+ margin: 0;
356
+ float: none;
357
+ }
358
+
359
+ /*
360
+ .media-modal.acf-media-modal .compat-item th.label {
361
+ float: none;
362
+ margin-right: 0;
363
+ width: 130px;
364
+ text-align: left;
365
+ min-width: 0;
366
+ display: table-cell;
367
+ }
368
+
369
+ .media-modal.acf-media-modal .compat-item th.label span {
370
+ text-align: left;
371
+
372
+ }
373
+
374
+ .media-modal.acf-media-modal .compat-item td.field {
375
+ width: auto;
376
+ float: none;
377
+ display: table-cell;
378
+ }
379
+ */
380
+
381
+
382
+ /*
383
+ * .media-modal
384
+ */
385
+
386
+ .media-modal.acf-media-modal .compat-item {
387
+ float: left;
388
+ overflow: none;
389
+ width: 100%;
390
+ }
391
+
392
+ .media-modal.acf-media-modal .compat-attachment-fields,
393
+ .media-modal.acf-media-modal .compat-attachment-fields tbody,
394
+ .media-modal.acf-media-modal .compat-attachment-fields tr,
395
+ .media-modal.acf-media-modal .compat-attachment-fields th,
396
+ .media-modal.acf-media-modal .compat-attachment-fields td {
397
+ display: block;
398
+ position: relative;
399
+ }
400
+
401
+ .media-modal.acf-media-modal .compat-attachment-fields td.field {
402
+ width: 100%;
403
+ float: none;
404
+ padding: 0;
405
+ }
406
+
407
+ .media-modal .compat-attachment-fields td.field table {
408
+ display: table;
409
+ }
410
+ .media-modal .compat-attachment-fields td.field table tbody {
411
+ display: table-row-group;
412
+ }
413
+ .media-modal .compat-attachment-fields td.field table tr {
414
+ display: table-row;
415
+ }
416
+ .media-modal .compat-attachment-fields td.field table td,
417
+ .media-modal .compat-attachment-fields td.field table th {
418
+ display: table-cell;
419
+ }
420
+
421
+ .media-modal .acf_postbox {
422
+ display: block !important;
423
+ }
424
+
425
+
426
  /*---------------------------------------------------------------------------------------------
427
  *
428
  * ACF Message Wrapper (used by image / file / gallery)
724
  }
725
 
726
 
727
+ .acf_relationship select {
728
+ font-family: sans-serif;
729
+ font-size: 12px;
730
+
731
+ }
732
+
733
+ .acf_relationship .widefat tr + tr th {
734
+ border-radius: 0;
735
+ border-top: #DFDFDF solid 1px;
736
+ background: #F3F3F3;
737
+
738
+ }
739
+
740
+ .acf_relationship .relationship_list .result-thumbnail {
741
+ width:21px;
742
+ height:21px;
743
+ background:#F9F9F9;
744
+ border:#E1E1E1 solid 1px;
745
+ float:left;
746
+ margin:-3px 5px 0 0;
747
+ }
748
+
749
+
750
  /*---------------------------------------------------------------------------------------------
751
  *
752
  * Field: Taxonomy
images/add-ons/cf7-field-thumb.jpg ADDED
Binary file
images/add-ons/date-time-field-thumb.jpg ADDED
Binary file
images/add-ons/google-maps-field-thumb.jpg ADDED
Binary file
images/add-ons/gravity-forms-field-thumb.jpg ADDED
Binary file
js/field-group.js CHANGED
@@ -6,7 +6,8 @@ var acf = {
6
  'checked' : 'checked',
7
  'conditional_no_fields' : 'No "toggle" fields available',
8
  'title' : 'Field group title is required',
9
- 'copy' : 'copy'
 
10
  },
11
  helpers : {
12
  uniqid : function(){},
@@ -16,6 +17,14 @@ var acf = {
16
  conditional_logic : {
17
  fields : [],
18
  setup : function(){}
 
 
 
 
 
 
 
 
19
  }
20
  };
21
 
@@ -179,7 +188,7 @@ var acf = {
179
 
180
 
181
  // tab - override field_name
182
- if( val == 'tab' )
183
  {
184
  tbody.find('tr.field_name input[type="text"]').val('').trigger('keyup');
185
  }
@@ -518,13 +527,25 @@ var acf = {
518
 
519
  $('#acf_fields tr.field_label input.label').live('blur', function()
520
  {
521
- var label = $(this),
522
- name = label.closest('tr').siblings('tr.field_name').find('input.name');
523
-
524
- if( name.val() == '' )
 
 
 
 
 
 
 
 
 
 
 
 
525
  {
526
  // thanks to https://gist.github.com/richardsweeney/5317392 for this code!
527
- var val = label.val(),
528
  replace = {
529
  'ä': 'a',
530
  'æ': 'a',
@@ -552,8 +573,8 @@ var acf = {
552
 
553
 
554
  val = val.toLowerCase();
555
- name.val(val);
556
- name.trigger('keyup');
557
  }
558
 
559
  });
@@ -613,141 +634,191 @@ var acf = {
613
 
614
  $(document).ready(function(){
615
 
616
- // vars
617
- var location_rules = $('#location_rules');
618
-
619
-
620
- // does it have options?
621
- if( !location_rules.find('td.param select option[value="options_page"]').exists() )
622
- {
623
- var html = $('#acf_location_options_deactivated').html();
624
- location_rules.find('td.param select').append( html );
625
-
626
- }
627
 
628
  });
629
 
630
 
631
  /*
632
- * Location Rules Change
633
  *
634
- * @description:
635
- * @since 3.5.1
636
- * @created: 15/10/12
637
- */
638
-
639
- $('#location_rules .param select').live('change', function(){
640
-
641
- // vars
642
- var tr = $(this).closest('tr'),
643
- i = tr.attr('data-i'),
644
- ajax_data = {
645
- 'action' : "acf/field_group/render_location",
646
- 'nonce' : acf.nonce,
647
- 'key' : i,
648
- 'value' : '',
649
- 'param' : $(this).val()
650
- };
651
-
652
-
653
- // add loading gif
654
- var div = $('<div class="acf-loading"></div>');
655
- tr.find('td.value').html(div);
656
-
657
-
658
- // load location html
659
- $.ajax({
660
- url: ajaxurl,
661
- data: ajax_data,
662
- type: 'post',
663
- dataType: 'html',
664
- success: function(html){
665
-
666
- div.replaceWith(html);
667
-
668
- }
669
- });
670
-
671
-
672
- });
673
-
674
-
675
- /*
676
- * Location Rules add
677
  *
678
- * @description:
679
- * @since 3.5.1
680
- * @created: 15/10/12
681
  */
682
 
683
- $('#location_rules a.acf-button-add').live('click',function(){
 
 
684
 
685
- // vars
686
- var old_tr = $(this).closest('tr'),
687
- new_tr = old_tr.clone(),
688
- old_i = parseFloat( new_tr.attr('data-i') ),
689
- new_i = old_i + 1;
690
-
691
-
692
- // update names
693
- new_tr.find('[name]').each(function(){
694
 
695
- $(this).attr('name', $(this).attr('name').replace('[' + old_i + ']', '[' + new_i + ']') );
696
- $(this).attr('id', $(this).attr('id').replace('[' + old_i + ']', '[' + new_i + ']') );
697
 
698
- });
 
699
 
700
 
701
- // update data-i
702
- new_tr.attr('data-i', new_i);
703
-
704
-
705
- // add tr
706
- old_tr.after( new_tr );
707
-
708
-
709
- // remove disabled
710
- old_tr.closest('table').removeClass('remove-disabled');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
711
 
 
 
 
 
 
 
 
712
 
713
- return false;
714
 
715
- });
716
-
717
-
718
- /*
719
- * Location Rules remove
720
- *
721
- * @description:
722
- * @since 3.5.1
723
- * @created: 15/10/12
724
- */
725
-
726
- $('#location_rules a.acf-button-remove').live('click',function(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
727
 
728
- var table = $(this).closest('table');
729
-
730
- // validate
731
- if( table.hasClass('remove-disabled') )
732
- {
733
  return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
734
  }
735
-
736
-
737
- // remove tr
738
- $(this).closest('tr').remove();
739
-
740
-
741
- // add clas to table
742
- if( table.find('tr').length <= 1 )
743
- {
744
- table.addClass('remove-disabled');
745
- }
746
-
747
-
748
- return false;
749
-
750
- });
751
 
752
 
753
  /*----------------------------------------------------------------------
@@ -1102,6 +1173,9 @@ var acf = {
1102
  return false;
1103
 
1104
  });
 
 
 
1105
 
1106
 
1107
 
6
  'checked' : 'checked',
7
  'conditional_no_fields' : 'No "toggle" fields available',
8
  'title' : 'Field group title is required',
9
+ 'copy' : 'copy',
10
+ 'or' : "or"
11
  },
12
  helpers : {
13
  uniqid : function(){},
17
  conditional_logic : {
18
  fields : [],
19
  setup : function(){}
20
+ },
21
+ location : {
22
+ $el : null,
23
+ init : function(){},
24
+ add_rule : function(){},
25
+ remove_rule : function(){},
26
+ add_group : function(){},
27
+ remove_group : function(){}
28
  }
29
  };
30
 
188
 
189
 
190
  // tab - override field_name
191
+ if( val == 'tab' || val == 'message' )
192
  {
193
  tbody.find('tr.field_name input[type="text"]').val('').trigger('keyup');
194
  }
527
 
528
  $('#acf_fields tr.field_label input.label').live('blur', function()
529
  {
530
+ // vars
531
+ var $label = $(this),
532
+ $field = $label.closest('.field'),
533
+ $name = $field.find('tr.field_name:first input[type="text"]'),
534
+ type = $field.attr('data-type');
535
+
536
+
537
+ // leave blank for tab or message field
538
+ if( type == 'tab' || type == 'message' )
539
+ {
540
+ $name.val('').trigger('keyup');
541
+ return;
542
+ }
543
+
544
+
545
+ if( $name.val() == '' )
546
  {
547
  // thanks to https://gist.github.com/richardsweeney/5317392 for this code!
548
+ var val = $label.val(),
549
  replace = {
550
  'ä': 'a',
551
  'æ': 'a',
573
 
574
 
575
  val = val.toLowerCase();
576
+ $name.val( val );
577
+ $name.trigger('keyup');
578
  }
579
 
580
  });
634
 
635
  $(document).ready(function(){
636
 
637
+ acf.location.init();
 
 
 
 
 
 
 
 
 
 
638
 
639
  });
640
 
641
 
642
  /*
643
+ * location
644
  *
645
+ * {description}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
646
  *
647
+ * @since: 4.0.3
648
+ * @created: 13/04/13
 
649
  */
650
 
651
+ acf.location = {
652
+ $el : null,
653
+ init : function(){
654
 
655
+ // vars
656
+ var _this = this;
 
 
 
 
 
 
 
657
 
 
 
658
 
659
+ // $el
660
+ _this.$el = $('#acf_location');
661
 
662
 
663
+ // add rule
664
+ _this.$el.find('.location-add-rule').live('click', function(){
665
+
666
+ _this.add_rule( $(this).closest('tr') );
667
+
668
+ return false;
669
+
670
+ });
671
+
672
+
673
+ // remove rule
674
+ _this.$el.find('.location-remove-rule').live('click', function(){
675
+
676
+ _this.remove_rule( $(this).closest('tr') );
677
+
678
+ return false;
679
+
680
+ });
681
+
682
+
683
+ // add rule
684
+ _this.$el.find('.location-add-group').live('click', function(){
685
+
686
+ _this.add_group();
687
+
688
+ return false;
689
+
690
+ });
691
+
692
+
693
+ // change rule
694
+ _this.$el.find('.param select').live('change', function(){
695
+
696
+ // vars
697
+ var $tr = $(this).closest('tr'),
698
+ rule_id = $tr.attr('data-id'),
699
+ $group = $tr.closest('.location-group'),
700
+ group_id = $group.attr('data-id'),
701
+ ajax_data = {
702
+ 'action' : "acf/field_group/render_location",
703
+ 'nonce' : acf.nonce,
704
+ 'rule_id' : rule_id,
705
+ 'group_id' : group_id,
706
+ 'value' : '',
707
+ 'param' : $(this).val()
708
+ };
709
+
710
+
711
+ // add loading gif
712
+ var div = $('<div class="acf-loading"></div>');
713
+ $tr.find('td.value').html( div );
714
+
715
 
716
+ // load location html
717
+ $.ajax({
718
+ url: ajaxurl,
719
+ data: ajax_data,
720
+ type: 'post',
721
+ dataType: 'html',
722
+ success: function(html){
723
 
724
+ div.replaceWith(html);
725
 
726
+ }
727
+ });
728
+
729
+
730
+ });
731
+
732
+ },
733
+ add_rule : function( $tr ){
734
+
735
+ // vars
736
+ var $tr2 = $tr.clone(),
737
+ old_id = $tr2.attr('data-id'),
738
+ new_id = acf.helpers.uniqid();
739
+
740
+
741
+ // update names
742
+ $tr2.find('[name]').each(function(){
743
+
744
+ $(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
745
+ $(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
746
+
747
+ });
748
+
749
+
750
+ // update data-i
751
+ $tr2.attr( 'data-id', new_id );
752
+
753
+
754
+ // add tr
755
+ $tr.after( $tr2 );
756
+
757
 
 
 
 
 
 
758
  return false;
759
+
760
+ },
761
+ remove_rule : function( $tr ){
762
+
763
+ // vars
764
+ var siblings = $tr.siblings('tr').length;
765
+
766
+
767
+ if( siblings == 0 )
768
+ {
769
+ // remove group
770
+ this.remove_group( $tr.closest('.location-group') );
771
+ }
772
+ else
773
+ {
774
+ // remove tr
775
+ $tr.remove();
776
+ }
777
+
778
+ },
779
+ add_group : function(){
780
+
781
+ // vars
782
+ var $group = this.$el.find('.location-group:last'),
783
+ $group2 = $group.clone(),
784
+ old_id = $group2.attr('data-id'),
785
+ new_id = acf.helpers.uniqid();
786
+
787
+
788
+ // update names
789
+ $group2.find('[name]').each(function(){
790
+
791
+ $(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
792
+ $(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
793
+
794
+ });
795
+
796
+
797
+ // update data-i
798
+ $group2.attr( 'data-id', new_id );
799
+
800
+
801
+ // update h4
802
+ $group2.find('h4').text( acf.text.or );
803
+
804
+
805
+ // remove all tr's except the first one
806
+ $group2.find('tr:not(:first)').remove();
807
+
808
+
809
+ // add tr
810
+ $group.after( $group2 );
811
+
812
+
813
+
814
+ },
815
+ remove_group : function( $group ){
816
+
817
+ $group.remove();
818
+
819
  }
820
+ }
821
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
822
 
823
 
824
  /*----------------------------------------------------------------------
1173
  return false;
1174
 
1175
  });
1176
+
1177
+
1178
+
1179
 
1180
 
1181
 
js/input/actions.js CHANGED
@@ -35,6 +35,9 @@ var acf = {
35
  type : function(){}
36
  },
37
  fields : {
 
 
 
38
  color_picker : {
39
  farbtastic : null
40
  },
@@ -58,8 +61,10 @@ var acf = {
58
  },
59
  wysiwyg : {
60
  toolbars : {},
 
 
61
  add_events : function(){},
62
- has_tinymce : function(){}
63
  },
64
  gallery : {
65
  add : function(){},
@@ -229,7 +234,7 @@ var acf = {
229
  */
230
 
231
  $(document).ready(function(){
232
-
233
  // add classes
234
  $('#poststuff .postbox[id*="acf_"]').addClass('acf_postbox');
235
  $('#adv-settings label[for*="acf_"]').addClass('acf_hide_label');
35
  type : function(){}
36
  },
37
  fields : {
38
+ date_picker : {
39
+ text : {}
40
+ },
41
  color_picker : {
42
  farbtastic : null
43
  },
61
  },
62
  wysiwyg : {
63
  toolbars : {},
64
+ has_tinymce : function(){},
65
+ add_tinymce : function(){},
66
  add_events : function(){},
67
+ remove_tinymce : function(){}
68
  },
69
  gallery : {
70
  add : function(){},
234
  */
235
 
236
  $(document).ready(function(){
237
+
238
  // add classes
239
  $('#poststuff .postbox[id*="acf_"]').addClass('acf_postbox');
240
  $('#adv-settings label[for*="acf_"]').addClass('acf_hide_label');
js/input/date-picker.js CHANGED
@@ -8,6 +8,8 @@
8
 
9
  (function($){
10
 
 
 
11
 
12
  /*
13
  * acf/setup_fields
@@ -25,7 +27,8 @@
25
  var input = $(this),
26
  alt_field = input.siblings('.acf-hidden-datepicker'),
27
  save_format = input.attr('data-save_format'),
28
- display_format = input.attr('data-display_format');
 
29
 
30
 
31
  // is clone field?
@@ -39,8 +42,8 @@
39
  input.val( alt_field.val() );
40
 
41
 
42
- // add date picker and refocus
43
- input.addClass('active').datepicker({
44
  dateFormat : save_format,
45
  altField : alt_field,
46
  altFormat : save_format,
@@ -48,10 +51,14 @@
48
  yearRange: "-100:+100",
49
  changeMonth: true,
50
  showButtonPanel : true,
51
- firstDay: 1
52
  });
53
 
54
 
 
 
 
 
55
  // now change the format back to how it should be.
56
  input.datepicker( "option", "dateFormat", display_format );
57
 
8
 
9
  (function($){
10
 
11
+ var _date_picker = acf.fields.date_picker;
12
+
13
 
14
  /*
15
  * acf/setup_fields
27
  var input = $(this),
28
  alt_field = input.siblings('.acf-hidden-datepicker'),
29
  save_format = input.attr('data-save_format'),
30
+ display_format = input.attr('data-display_format'),
31
+ first_day = input.attr('data-first_day');
32
 
33
 
34
  // is clone field?
42
  input.val( alt_field.val() );
43
 
44
 
45
+ // create options
46
+ var options = $.extend( {}, _date_picker.text, {
47
  dateFormat : save_format,
48
  altField : alt_field,
49
  altFormat : save_format,
51
  yearRange: "-100:+100",
52
  changeMonth: true,
53
  showButtonPanel : true,
54
+ firstDay: first_day
55
  });
56
 
57
 
58
+ // add date picker and refocus
59
+ input.addClass('active').datepicker(options);
60
+
61
+
62
  // now change the format back to how it should be.
63
  input.datepicker( "option", "dateFormat", display_format );
64
 
js/input/relationship.js CHANGED
@@ -30,6 +30,10 @@
30
  }
31
 
32
 
 
 
 
 
33
  $(this).find('.relationship_right .relationship_list').sortable({
34
  axis: "y", // limit the dragging to up/down only
35
  items: '> li',
@@ -37,6 +41,7 @@
37
  forcePlaceholderSize: true,
38
  scroll: true
39
  });
 
40
 
41
 
42
  // load more
@@ -119,12 +124,19 @@
119
 
120
 
121
  // add new li
122
- right.append( new_li );
 
 
 
 
 
123
 
124
 
125
  // validation
126
  div.closest('.field').removeClass('error');
127
 
 
 
128
  return false;
129
 
130
  });
@@ -153,7 +165,7 @@
153
  // show
154
  left.find('a[data-post_id="' + id + '"]').parent('li').removeClass('hide');
155
 
156
-
157
  return false;
158
 
159
  });
@@ -301,8 +313,7 @@
301
  dataType: 'html',
302
  data: $.extend( attributes, {
303
  action : 'acf/fields/relationship/query_posts',
304
- field_name : div.parent().attr('data-field_name'),
305
- field_key : div.parent().attr('data-field_key'),
306
  nonce : acf.nonce
307
  }),
308
  success: function( html ){
30
  }
31
 
32
 
33
+ // set height of right column
34
+ $(this).find('.relationship_right .relationship_list').height( $(this).find('.relationship_left').height() -2 );
35
+
36
+
37
  $(this).find('.relationship_right .relationship_list').sortable({
38
  axis: "y", // limit the dragging to up/down only
39
  items: '> li',
41
  forcePlaceholderSize: true,
42
  scroll: true
43
  });
44
+ //////////// on complete, trigger a change event so that the field is saved for an attachment!
45
 
46
 
47
  // load more
124
 
125
 
126
  // add new li
127
+ $el = $(new_li);
128
+ right.append( $el );
129
+
130
+
131
+ // trigger change on new_li
132
+ $el.find('input').trigger('change');
133
 
134
 
135
  // validation
136
  div.closest('.field').removeClass('error');
137
 
138
+
139
+ $(this).blur();
140
  return false;
141
 
142
  });
165
  // show
166
  left.find('a[data-post_id="' + id + '"]').parent('li').removeClass('hide');
167
 
168
+ $(this).blur();
169
  return false;
170
 
171
  });
313
  dataType: 'html',
314
  data: $.extend( attributes, {
315
  action : 'acf/fields/relationship/query_posts',
316
+ post_id : acf.post_id,
 
317
  nonce : acf.nonce
318
  }),
319
  success: function( html ){
js/input/wysiwyg.js CHANGED
@@ -30,17 +30,19 @@
30
 
31
  return r;
32
 
33
- }
 
34
 
35
  /*
36
- * acf/wysiwyg_activate
37
  *
38
- * @description:
39
- * @since: 3.5.8
40
- * @created: 17/01/13
 
41
  */
42
 
43
- $(document).live('acf/wysiwyg_activate', function(e, div){
44
 
45
 
46
  // validate tinymce
@@ -49,10 +51,11 @@
49
  return;
50
  }
51
 
52
-
53
  // activate
54
- $(div).find('.acf_wysiwyg textarea').each(function(){
55
-
 
56
  // vars
57
  var textarea = $(this),
58
  id = textarea.attr('id'),
@@ -95,8 +98,9 @@
95
 
96
 
97
  wpActiveEditor = null;
98
-
99
- });
 
100
 
101
 
102
  /*
@@ -143,14 +147,15 @@
143
 
144
 
145
  /*
146
- * acf/wysiwyg_deactivate
147
  *
148
- * @description:
149
- * @since: 3.5.8
150
- * @created: 17/01/13
 
151
  */
152
 
153
- $(document).live('acf/wysiwyg_deactivate', function(e, div){
154
 
155
  // validate tinymce
156
  if( ! _wysiwyg.has_tinymce() )
@@ -159,7 +164,7 @@
159
  }
160
 
161
 
162
- $(div).find('.acf_wysiwyg textarea').each(function(){
163
 
164
  // vars
165
  var textarea = $(this),
@@ -182,7 +187,7 @@
182
 
183
  wpActiveEditor = null;
184
 
185
- });
186
 
187
 
188
  /*
@@ -232,7 +237,16 @@
232
 
233
  // update the hidden textarea
234
  // - This fixes a but when adding a taxonomy term as the form is not posted and the hidden tetarea is never populated!
235
- tinyMCE.get( id ).save();
 
 
 
 
 
 
 
 
 
236
 
237
  });
238
 
@@ -247,7 +261,7 @@
247
 
248
  $(document).live('acf/setup_fields', function(e, div){
249
 
250
- $(document).trigger('acf/wysiwyg_activate', div);
251
 
252
  });
253
 
@@ -262,7 +276,7 @@
262
 
263
  $(document).live('acf/sortable_start', function(e, div) {
264
 
265
- $(document).trigger('acf/wysiwyg_deactivate', div);
266
 
267
  });
268
 
@@ -277,7 +291,7 @@
277
 
278
  $(document).live('acf/sortable_stop', function(e, div) {
279
 
280
- $(document).trigger('acf/wysiwyg_activate', div);
281
 
282
  });
283
 
30
 
31
  return r;
32
 
33
+ };
34
+
35
 
36
  /*
37
+ * add_tinymce
38
  *
39
+ * {description}
40
+ *
41
+ * @since: 4.0.4
42
+ * @created: 11/04/13
43
  */
44
 
45
+ _wysiwyg.add_tinymce = function( $el ){
46
 
47
 
48
  // validate tinymce
51
  return;
52
  }
53
 
54
+
55
  // activate
56
+ $el.find('.acf_wysiwyg textarea').each(function(){
57
+
58
+
59
  // vars
60
  var textarea = $(this),
61
  id = textarea.attr('id'),
98
 
99
 
100
  wpActiveEditor = null;
101
+
102
+
103
+ };
104
 
105
 
106
  /*
147
 
148
 
149
  /*
150
+ * remove_tinymce
151
  *
152
+ * {description}
153
+ *
154
+ * @since: 4.0.4
155
+ * @created: 11/04/13
156
  */
157
 
158
+ _wysiwyg.remove_tinymce = function( $el ){
159
 
160
  // validate tinymce
161
  if( ! _wysiwyg.has_tinymce() )
164
  }
165
 
166
 
167
+ $el.find('.acf_wysiwyg textarea').each(function(){
168
 
169
  // vars
170
  var textarea = $(this),
187
 
188
  wpActiveEditor = null;
189
 
190
+ };
191
 
192
 
193
  /*
237
 
238
  // update the hidden textarea
239
  // - This fixes a but when adding a taxonomy term as the form is not posted and the hidden tetarea is never populated!
240
+ var editor = tinyMCE.get( id ),
241
+ el = editor.getElement();
242
+
243
+
244
+ // save to textarea
245
+ editor.save();
246
+
247
+
248
+ // trigger change on textarea
249
+ $( el ).trigger('change');
250
 
251
  });
252
 
261
 
262
  $(document).live('acf/setup_fields', function(e, div){
263
 
264
+ _wysiwyg.add_tinymce( $(div) );
265
 
266
  });
267
 
276
 
277
  $(document).live('acf/sortable_start', function(e, div) {
278
 
279
+ _wysiwyg.remove_tinymce( $(div) );
280
 
281
  });
282
 
291
 
292
  $(document).live('acf/sortable_stop', function(e, div) {
293
 
294
+ _wysiwyg.add_tinymce( $(div) );
295
 
296
  });
297
 
lang/acf-ja.mo CHANGED
Binary file
lang/acf-ja.po CHANGED
@@ -2,284 +2,271 @@
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/advanced-custom-fields\n"
7
- "POT-Creation-Date: 2012-08-11 08:33:20+00:00\n"
8
- "PO-Revision-Date: 2012-08-17 11:10+0900\n"
9
- "Last-Translator: Fumito MIZUNO <ounziw@gmail.com>\n"
10
- "Language-Team: JAPANESE <mizuno@php-web.net>\n"
11
- "Language: \n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
 
 
15
 
16
- #: acf.php:281
17
- #: core/views/meta_box_options.php:94
18
- msgid "Custom Fields"
19
- msgstr "カスタムフィールド"
20
 
21
- #: acf.php:302
22
  msgid "Field&nbsp;Groups"
23
  msgstr "フィールドグループ"
24
 
25
- #: acf.php:303
26
- #: core/controllers/field_groups.php:283
27
  #: core/controllers/upgrade.php:70
28
  msgid "Advanced Custom Fields"
29
  msgstr "Advanced Custom Fields"
30
 
31
- #: acf.php:304
32
- #: core/fields/flexible_content.php:325
33
  msgid "Add New"
34
  msgstr "新規追加"
35
 
36
- #: acf.php:305
37
  msgid "Add New Field Group"
38
  msgstr "フィールドグループを新規追加"
39
 
40
- #: acf.php:306
41
  msgid "Edit Field Group"
42
  msgstr "フィールドグループを編集"
43
 
44
- #: acf.php:307
45
  msgid "New Field Group"
46
  msgstr "新規フィールドグループ"
47
 
48
- #: acf.php:308
49
  msgid "View Field Group"
50
  msgstr "フィールドグループを表示"
51
 
52
- #: acf.php:309
53
  msgid "Search Field Groups"
54
  msgstr "フィールドグループを検索"
55
 
56
- #: acf.php:310
57
  msgid "No Field Groups found"
58
  msgstr "フィールドグループが見つかりません"
59
 
60
- #: acf.php:311
61
  msgid "No Field Groups found in Trash"
62
  msgstr "ゴミ箱にフィールドグループが見つかりません"
63
 
64
- #: acf.php:346
65
- #: acf.php:349
 
 
 
66
  msgid "Field group updated."
67
  msgstr "フィールドグループを更新しました"
68
 
69
- #: acf.php:347
70
  msgid "Custom field updated."
71
  msgstr "カスタムフィールドを更新しました"
72
 
73
- #: acf.php:348
74
  msgid "Custom field deleted."
75
- msgstr "カスタムフィールドが削除されました"
76
 
77
  #. translators: %s: date and time of the revision
78
- #: acf.php:351
79
  msgid "Field group restored to revision from %s"
80
  msgstr "リビジョン %s からフィールドグループを復元しました"
81
 
82
- #: acf.php:352
83
  msgid "Field group published."
84
  msgstr "フィールドグループを公開しました"
85
 
86
- #: acf.php:353
87
  msgid "Field group saved."
88
  msgstr "フィールドグループを保存しました"
89
 
90
- #: acf.php:354
91
  msgid "Field group submitted."
92
  msgstr "フィールドグループを送信しました"
93
 
94
- #: acf.php:355
95
  msgid "Field group scheduled for."
96
- msgstr "フィールドグループを予約しました"
97
 
98
- #: acf.php:356
99
  msgid "Field group draft updated."
100
- msgstr "フィールドグループ下書きを更新しました"
101
-
102
- #: acf.php:375
103
- #: core/fields/gallery.php:66
104
- #: core/fields/gallery.php:229
105
- msgid "Title"
106
- msgstr "タイトル"
107
 
108
- #: acf.php:597
109
  msgid "Error: Field Type does not exist!"
110
  msgstr "エラー: フィールドタイプが存在しません"
111
 
112
- #: acf.php:1599
113
  msgid "Thumbnail"
114
  msgstr "サムネイル"
115
 
116
- #: acf.php:1600
117
  msgid "Medium"
118
  msgstr "中"
119
 
120
- #: acf.php:1601
121
  msgid "Large"
122
  msgstr "大"
123
 
124
- #: acf.php:1602
125
- #: core/fields/wysiwyg.php:85
126
  msgid "Full"
127
  msgstr "フルサイズ"
128
 
129
- #: core/actions/export.php:19
130
  msgid "No ACF groups selected"
131
  msgstr "ACF グループが選択されていません"
132
 
133
- #: core/controllers/field_group.php:148
134
- #: core/controllers/field_groups.php:190
135
  msgid "Fields"
136
  msgstr "フィールド"
137
 
138
- #: core/controllers/field_group.php:149
139
  msgid "Location"
140
  msgstr "位置"
141
 
142
- #: core/controllers/field_group.php:149
143
- msgid "Add Fields to Edit Screens"
144
- msgstr "編集画面にフィールドを追加する"
145
-
146
- #: core/controllers/field_group.php:150
147
- #: core/controllers/field_group.php:400
148
- #: core/controllers/options_page.php:62
149
- #: core/controllers/options_page.php:74
150
- #: core/views/meta_box_location.php:143
151
- msgid "Options"
152
- msgstr "オプション"
153
 
154
- #: core/controllers/field_group.php:150
155
- msgid "Customise the edit page"
156
- msgstr "編集ページをカスタマイズする"
157
 
158
- #: core/controllers/field_group.php:328
159
  msgid "Parent Page"
160
  msgstr "親ページ"
161
 
162
- #: core/controllers/field_group.php:329
163
  msgid "Child Page"
164
  msgstr "子ページ"
165
 
166
- #: core/controllers/field_group.php:337
167
  msgid "Default Template"
168
  msgstr "デフォルトテンプレート"
169
 
170
- #: core/controllers/field_group.php:424
171
- #: core/controllers/field_group.php:445
172
- #: core/controllers/field_group.php:452
173
- #: core/fields/page_link.php:76
174
- #: core/fields/post_object.php:222
175
- #: core/fields/post_object.php:250
176
- #: core/fields/relationship.php:320
177
- #: core/fields/relationship.php:349
178
  msgid "All"
179
  msgstr "全て"
180
 
181
- #: core/controllers/field_groups.php:243
182
- #: core/views/meta_box_options.php:50
 
 
 
 
183
  msgid "Normal"
184
  msgstr "Normal"
185
 
186
- #: core/controllers/field_groups.php:244
187
- #: core/views/meta_box_options.php:51
188
  msgid "Side"
189
  msgstr "Side"
190
 
191
- #: core/controllers/field_groups.php:254
192
- #: core/views/meta_box_options.php:70
193
  msgid "Standard Metabox"
194
  msgstr "標準メタボックス"
195
 
196
- #: core/controllers/field_groups.php:255
197
- #: core/views/meta_box_options.php:71
198
  msgid "No Metabox"
199
  msgstr "メタボックス無"
200
 
201
- #: core/controllers/field_groups.php:285
202
  msgid "Changelog"
203
  msgstr "更新履歴"
204
 
205
- #: core/controllers/field_groups.php:286
206
  msgid "See what's new in"
207
  msgstr "新着情報で見る"
208
 
209
- #: core/controllers/field_groups.php:288
210
  msgid "Resources"
211
  msgstr "リソース"
212
 
213
- #: core/controllers/field_groups.php:289
214
- msgid "Read documentation, learn the functions and find some tips &amp; tricks for your next web project."
215
- msgstr "次のプロジェクトのため、ドキュメントを読み、関数を学び、便利な使い方を探しましょう。"
 
 
 
 
216
 
217
- #: core/controllers/field_groups.php:290
218
  msgid "Visit the ACF website"
219
  msgstr "ACF ウェブサイトを見る"
220
 
221
- #: core/controllers/field_groups.php:295
222
  msgid "Created by"
223
  msgstr "作成"
224
 
225
- #: core/controllers/field_groups.php:298
226
  msgid "Vote"
227
  msgstr "投票"
228
 
229
- #: core/controllers/field_groups.php:299
230
  msgid "Follow"
231
  msgstr "フォロー"
232
 
233
- #: core/controllers/input.php:449
234
  msgid "Validation Failed. One or more fields below are required."
235
  msgstr "検証に失敗しました。下記のフィールドの少なくとも一つが必須です。"
236
 
237
- #: core/controllers/input.php:450
238
  msgid "Add File to Field"
239
  msgstr "ファイルをフィールドに追加する"
240
 
241
- #: core/controllers/input.php:451
242
  msgid "Edit File"
243
- msgstr "ファイルを追加する"
244
 
245
- #: core/controllers/input.php:452
246
  msgid "Add Image to Field"
247
  msgstr "画像をフィールドに追加する"
248
 
249
- #: core/controllers/input.php:453
250
- #: core/controllers/input.php:456
251
  msgid "Edit Image"
252
  msgstr "画像を編集する"
253
 
254
- #: core/controllers/input.php:454
255
  msgid "Maximum values reached ( {max} values )"
256
  msgstr "最大値( {max} ) に達しました"
257
 
258
- #: core/controllers/input.php:455
259
  msgid "Add Image to Gallery"
260
  msgstr "画像をギャラリーに追加する"
261
 
262
- #: core/controllers/input.php:546
263
  msgid "Attachment updated"
264
  msgstr "アタッチメントを更新しました"
265
 
266
- #: core/controllers/options_page.php:140
267
  msgid "Options Updated"
268
  msgstr "オプションを更新しました"
269
 
270
- #: core/controllers/options_page.php:249
271
  msgid "No Custom Field Group found for the options page"
272
  msgstr "オプションページにカスタムフィールドグループが見つかりませんでした"
273
 
274
- #: core/controllers/options_page.php:249
275
  msgid "Create a Custom Field Group"
276
  msgstr "カスタムフィールドグループを作成する"
277
 
278
- #: core/controllers/options_page.php:260
279
  msgid "Publish"
280
  msgstr "公開する"
281
 
282
- #: core/controllers/options_page.php:263
283
  msgid "Save Options"
284
  msgstr "オプションを保存する"
285
 
@@ -287,259 +274,284 @@ msgstr "オプションを保存する"
287
  msgid "Settings"
288
  msgstr "設定"
289
 
290
- #: core/controllers/settings.php:111
291
  msgid "Repeater field deactivated"
292
  msgstr "繰り返しフィールドを無効化しました"
293
 
294
- #: core/controllers/settings.php:115
295
  msgid "Options page deactivated"
296
  msgstr "オプションページを無効化しました"
297
 
298
- #: core/controllers/settings.php:119
299
  msgid "Flexible Content field deactivated"
300
  msgstr "柔軟コンテンツフィールドを無効化しました"
301
 
302
- #: core/controllers/settings.php:123
303
  msgid "Gallery field deactivated"
304
  msgstr "ギャラリーフィールドを無効化しました"
305
 
306
- #: core/controllers/settings.php:147
307
  msgid "Repeater field activated"
308
  msgstr "繰り返しフィールドを有効化しました"
309
 
310
- #: core/controllers/settings.php:151
311
  msgid "Options page activated"
312
  msgstr "オプションページを有効化しました"
313
 
314
- #: core/controllers/settings.php:155
315
  msgid "Flexible Content field activated"
316
  msgstr "柔軟コンテンツフィールドを有効化しました"
317
 
318
- #: core/controllers/settings.php:159
319
  msgid "Gallery field activated"
320
  msgstr "ギャラリーフィールドを有効化しました"
321
 
322
- #: core/controllers/settings.php:164
323
  msgid "License key unrecognised"
324
  msgstr "ライセンスキーが認識できません"
325
 
326
- #: core/controllers/settings.php:216
327
  msgid "Activate Add-ons."
328
  msgstr "アドオンを有効化する"
329
 
330
- #: core/controllers/settings.php:217
331
- msgid "Add-ons can be unlocked by purchasing a license key. Each key can be used on multiple sites."
332
- msgstr "アドオンは、ライセンスキーを購入することでロック解除できます。キーは、複数のサイトで使用できます。"
 
 
 
 
333
 
334
- #: core/controllers/settings.php:218
335
  msgid "Find Add-ons"
336
  msgstr "アドオンを探す"
337
 
338
- #: core/controllers/settings.php:225
339
- #: core/fields/flexible_content.php:380
340
- #: core/fields/flexible_content.php:456
341
- #: core/fields/repeater.php:288
342
- #: core/fields/repeater.php:364
343
- #: core/views/meta_box_fields.php:63
344
- #: core/views/meta_box_fields.php:136
345
  msgid "Field Type"
346
  msgstr "フィールドタイプ"
347
 
348
- #: core/controllers/settings.php:226
349
  msgid "Status"
350
  msgstr "ステータス"
351
 
352
- #: core/controllers/settings.php:227
353
  msgid "Activation Code"
354
  msgstr "アクティベーションコード"
355
 
356
- #: core/controllers/settings.php:232
357
  msgid "Repeater Field"
358
  msgstr "繰り返しフィールド"
359
 
360
- #: core/controllers/settings.php:233
361
- #: core/controllers/settings.php:252
362
- #: core/controllers/settings.php:271
363
- #: core/controllers/settings.php:290
364
  msgid "Active"
365
  msgstr "有効"
366
 
367
- #: core/controllers/settings.php:233
368
- #: core/controllers/settings.php:252
369
- #: core/controllers/settings.php:271
370
- #: core/controllers/settings.php:290
371
  msgid "Inactive"
372
  msgstr "無効"
373
 
374
- #: core/controllers/settings.php:239
375
- #: core/controllers/settings.php:258
376
- #: core/controllers/settings.php:277
377
- #: core/controllers/settings.php:296
378
  msgid "Deactivate"
379
  msgstr "無効化"
380
 
381
- #: core/controllers/settings.php:245
382
- #: core/controllers/settings.php:264
383
- #: core/controllers/settings.php:283
384
- #: core/controllers/settings.php:302
385
  msgid "Activate"
386
  msgstr "有効化"
387
 
388
- #: core/controllers/settings.php:251
389
  msgid "Flexible Content Field"
390
  msgstr "柔軟コンテンツフィールド"
391
 
392
- #: core/controllers/settings.php:270
393
  msgid "Gallery Field"
394
  msgstr "ギャラリーフィールド"
395
 
396
- #: core/controllers/settings.php:289
397
- #: core/views/meta_box_location.php:74
398
  msgid "Options Page"
399
  msgstr "オプションページ"
400
 
401
- #: core/controllers/settings.php:314
402
  msgid "Export Field Groups to XML"
403
  msgstr "フィールドグループを XML 形式でエクスポート"
404
 
405
- #: core/controllers/settings.php:315
406
- msgid "ACF will create a .xml export file which is compatible with the native WP import plugin."
407
- msgstr "ACF .xml 形式のエクスポートファイルを作成します。WP のインポートプラグインと互換性があります。"
 
 
 
 
408
 
409
- #: core/controllers/settings.php:316
410
- #: core/controllers/settings.php:354
411
  msgid "Instructions"
412
  msgstr "説明"
413
 
414
- #: core/controllers/settings.php:318
415
  msgid "Import Field Groups"
416
  msgstr "フィールドグループをインポートする"
417
 
418
- #: core/controllers/settings.php:319
419
- msgid "Imported field groups <b>will</b> appear in the list of editable field groups. This is useful for migrating fields groups between Wp websites."
420
- msgstr "インポートしたフィールドグループは、編集可能なフィールドグループの一覧に表示されます。WP ウェブサイト間でフィールドグループを移行するのに役立ちます。"
 
 
 
 
421
 
422
- #: core/controllers/settings.php:321
423
  msgid "Select field group(s) from the list and click \"Export XML\""
424
- msgstr "一覧からフィールドグループを選択し、\"XML をエクスポートする\" をクリックしてください"
 
 
425
 
426
- #: core/controllers/settings.php:322
427
  msgid "Save the .xml file when prompted"
428
  msgstr "指示に従って .xml ファイルを保存してください"
429
 
430
- #: core/controllers/settings.php:323
431
  msgid "Navigate to Tools &raquo; Import and select WordPress"
432
  msgstr "ツール &raquo; インポートと進み、WordPress を選択してください"
433
 
434
- #: core/controllers/settings.php:324
435
  msgid "Install WP import plugin if prompted"
436
- msgstr "(インストールを促された場合は) WP インポートプラグインをインストールしてください"
 
 
437
 
438
- #: core/controllers/settings.php:325
439
  msgid "Upload and import your exported .xml file"
440
  msgstr "エクスポートした .xml ファイルをアップロードし、インポートする"
441
 
442
- #: core/controllers/settings.php:326
443
  msgid "Select your user and ignore Import Attachments"
444
- msgstr "ユーザーを選択し、Import Attachments を無視する"
445
 
446
- #: core/controllers/settings.php:327
447
  msgid "That's it! Happy WordPressing"
448
  msgstr "これで OK です。WordPress をお楽しみください"
449
 
450
- #: core/controllers/settings.php:345
451
  msgid "Export XML"
452
  msgstr "XML をエクスポートする"
453
 
454
- #: core/controllers/settings.php:352
455
  msgid "Export Field Groups to PHP"
456
  msgstr "フィールドグループを PHP 形式でエクスポートする"
457
 
458
- #: core/controllers/settings.php:353
459
  msgid "ACF will create the PHP code to include in your theme."
460
  msgstr "ACF は、テーマに含める PHP コードを作成します"
461
 
462
- #: core/controllers/settings.php:356
463
- #: core/controllers/settings.php:473
464
  msgid "Register Field Groups"
465
  msgstr "フィールドグループを登録する"
466
 
467
- #: core/controllers/settings.php:357
468
- #: core/controllers/settings.php:474
469
- msgid "Registered field groups <b>will not</b> appear in the list of editable field groups. This is useful for including fields in themes."
470
- msgstr "登録したフィールドグループは、編集可能なフィールドグループの一覧に<b>表示されません</b>。テーマにフィールドを含めるときに役立ちます。"
 
 
 
471
 
472
- #: core/controllers/settings.php:358
473
- #: core/controllers/settings.php:475
474
- msgid "Please note that if you export and register field groups within the same WP, you will see duplicate fields on your edit screens. To fix this, please move the origional field group to the trash or remove the code from your functions.php file."
475
- msgstr "同一の WP でフィールドグループをエクスポートして登録する場合は、編集画面で重複フィールドになることに注意してください。これを修正するには、元のフィールドグループをゴミ箱へ移動するか、functions.php ファイルからこのコードを除去してください。"
 
 
 
 
 
 
 
476
 
477
- #: core/controllers/settings.php:360
478
  msgid "Select field group(s) from the list and click \"Create PHP\""
479
- msgstr "一覧からフィールドグループを選択し、\"PHP を作成する\" をクリックしてください。"
 
 
480
 
481
- #: core/controllers/settings.php:361
482
- #: core/controllers/settings.php:477
483
  msgid "Copy the PHP code generated"
484
  msgstr "生成された PHP コードをコピーし、"
485
 
486
- #: core/controllers/settings.php:362
487
- #: core/controllers/settings.php:478
488
  msgid "Paste into your functions.php file"
489
  msgstr "functions.php に貼り付けてください"
490
 
491
- #: core/controllers/settings.php:363
492
- #: core/controllers/settings.php:479
493
  msgid "To activate any Add-ons, edit and use the code in the first few lines."
494
- msgstr "アドオンを有効化するには、最初の何行かのコードを編集して使用してください"
 
495
 
496
- #: core/controllers/settings.php:382
497
  msgid "Create PHP"
498
- msgstr "PHP を作成する"
499
 
500
- #: core/controllers/settings.php:468
501
  msgid "Back to settings"
502
  msgstr "設定に戻る"
503
 
504
- #: core/controllers/settings.php:503
505
  msgid ""
506
  "/**\n"
507
  " * Activate Add-ons\n"
508
- " * Here you can enter your activation codes to unlock Add-ons to use in your theme. \n"
509
- " * Since all activation codes are multi-site licenses, you are allowed to include your key in premium themes. \n"
510
- " * Use the commented out code to update the database with your activation code. \n"
511
- " * You may place this code inside an IF statement that only runs on theme activation.\n"
 
 
 
 
512
  " */"
513
  msgstr ""
514
  "/**\n"
515
  " * アドオンを有効化する\n"
516
- " * アクティベーションコードを入力すると、アドオンをアンロックし、テーマで使用できます。\n"
517
- " * すべてのアクティベーションコードはマルチサイトライセンスのため、プレミアムテーマにキーを含めることができます。\n"
518
- " * コメントアウトされているコードを使用して、アクティベーションコードでデータベースを更新してください。\n"
519
- " * IF 文の中にコードを置くことで、テーマ有効化時にのみコードを実行するようにできます。\n"
 
 
 
 
520
  " */"
521
 
522
- #: core/controllers/settings.php:518
523
  msgid ""
524
  "/**\n"
525
  " * Register field groups\n"
526
- " * The register_field_group function accepts 1 array which holds the relevant data to register a field group\n"
527
- " * You may edit the array as you see fit. However, this may result in errors if the array is not compatible with ACF\n"
 
 
528
  " * This code must run every time the functions.php file is read\n"
529
  " */"
530
  msgstr ""
531
  "/**\n"
532
  " * フィールドグループを登録する\n"
533
- " * register_field_group 関数は、フィールドグループを登録するのに関係するデータを持っている一つの配列を受け付けます。\n"
534
- " * 配列を好きなように編集することができます。しかし、配列が ACF と互換性の無い場合、エラーになってしまいます。\n"
535
- " * このコードは、functions.php ファイルを読み込む度に実行する必要があります。\n"
 
 
 
536
  " */"
537
 
538
- #: core/controllers/settings.php:557
539
  msgid "No field groups were selected"
540
  msgstr "フィールドグループが選択されていません"
541
 
542
- #: core/controllers/settings.php:589
543
  msgid "Advanced Custom Fields Settings"
544
  msgstr "Advanced Custom Fields 設定"
545
 
@@ -561,7 +573,7 @@ msgstr "してください"
561
 
562
  #: core/controllers/upgrade.php:70
563
  msgid "backup your database"
564
- msgstr "データベースのバックアップ"
565
 
566
  #: core/controllers/upgrade.php:70
567
  msgid "then click"
@@ -571,57 +583,54 @@ msgstr "そしてクリックしてください"
571
  msgid "Upgrade Database"
572
  msgstr "データベースの更新"
573
 
574
- #: core/controllers/upgrade.php:598
575
  msgid "Modifying field group options 'show on page'"
576
  msgstr "フィールドグループオプション「ページで表示する」を変更"
577
 
578
- #: core/controllers/upgrade.php:651
579
  msgid "Modifying field option 'taxonomy'"
580
  msgstr "フィールドオプション「タクソノミー」を変更"
581
 
 
 
 
 
582
  #: core/fields/checkbox.php:21
583
  msgid "Checkbox"
584
  msgstr "チェックボックス"
585
 
586
- #: core/fields/checkbox.php:55
587
- #: core/fields/radio.php:45
588
- #: core/fields/select.php:50
589
  msgid "No choices to choose from"
590
  msgstr "選択肢がありません"
591
 
592
- #: core/fields/checkbox.php:113
593
- #: core/fields/radio.php:114
594
- #: core/fields/select.php:164
595
  msgid "Choices"
596
- msgstr "選択肢"
597
 
598
- #: core/fields/checkbox.php:114
599
- #: core/fields/radio.php:115
600
- #: core/fields/select.php:165
601
  msgid "Enter your choices one per line"
602
  msgstr "選択肢を一行ずつ入力してください"
603
 
604
- #: core/fields/checkbox.php:116
605
- #: core/fields/radio.php:117
606
- #: core/fields/select.php:167
607
  msgid "Red"
608
  msgstr "赤"
609
 
610
- #: core/fields/checkbox.php:117
611
- #: core/fields/radio.php:118
612
- #: core/fields/select.php:168
613
  msgid "Blue"
614
  msgstr "青"
615
 
616
- #: core/fields/checkbox.php:119
617
- #: core/fields/radio.php:120
618
- #: core/fields/select.php:170
619
  msgid "red : Red"
620
  msgstr "red : 赤"
621
 
622
- #: core/fields/checkbox.php:120
623
- #: core/fields/radio.php:121
624
- #: core/fields/select.php:171
625
  msgid "blue : Blue"
626
  msgstr "blue : 青"
627
 
@@ -629,82 +638,116 @@ msgstr "blue : 青"
629
  msgid "Color Picker"
630
  msgstr "カラーピッカー"
631
 
 
 
 
 
 
 
 
 
 
 
 
632
  #: core/fields/date_picker/date_picker.php:21
633
  msgid "Date Picker"
634
  msgstr "デイトピッカー"
635
 
636
- #: core/fields/date_picker/date_picker.php:82
637
- msgid "Date format"
638
- msgstr "日付フォーマット"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
639
 
640
- #: core/fields/date_picker/date_picker.php:83
641
- msgid "eg. dd/mm/yy. read more about"
642
- msgstr "例: dd/mm/yy 詳細は"
 
 
643
 
644
- #: core/fields/file.php:20
645
  msgid "File"
646
  msgstr "ファイル"
647
 
648
- #: core/fields/file.php:48
649
  msgid "File Updated."
650
  msgstr "ファイルを更新しました"
651
 
652
- #: core/fields/file.php:89
653
- #: core/fields/flexible_content.php:407
654
- #: core/fields/gallery.php:251
655
- #: core/fields/gallery.php:281
656
- #: core/fields/image.php:187
657
- #: core/fields/repeater.php:314
658
- #: core/views/meta_box_fields.php:87
659
  msgid "Edit"
660
  msgstr "編集"
661
 
662
- #: core/fields/file.php:90
663
- #: core/fields/gallery.php:250
664
- #: core/fields/gallery.php:280
665
- #: core/fields/image.php:186
666
  msgid "Remove"
667
  msgstr "取り除く"
668
 
669
- #: core/fields/file.php:195
670
  msgid "No File Selected"
671
  msgstr "ファイルが選択されていません"
672
 
673
- #: core/fields/file.php:195
674
  msgid "Add File"
675
  msgstr "ファイルを追加する"
676
 
677
- #: core/fields/file.php:224
678
- #: core/fields/image.php:223
679
  msgid "Return Value"
680
  msgstr "返り値"
681
 
682
- #: core/fields/file.php:234
 
 
 
 
683
  msgid "File URL"
684
  msgstr "ファイル URL"
685
 
686
- #: core/fields/file.php:235
687
- msgid "Attachment ID"
688
- msgstr "Attachment ID"
689
 
690
- #: core/fields/file.php:268
691
- #: core/fields/image.php:291
692
  msgid "Media attachment updated."
693
  msgstr "メディアアタッチメントを更新しました"
694
 
695
- #: core/fields/file.php:393
696
  msgid "No files selected"
697
  msgstr "ファイルが選択されていません"
698
 
699
- #: core/fields/file.php:488
700
  msgid "Add Selected Files"
701
  msgstr "選択されたファイルを追加する"
702
 
703
- #: core/fields/file.php:518
704
  msgid "Select File"
705
  msgstr "ファイルを選択する"
706
 
707
- #: core/fields/file.php:521
708
  msgid "Update File"
709
  msgstr "ファイルを更新する"
710
 
@@ -712,176 +755,176 @@ msgstr "ファイルを更新する"
712
  msgid "Flexible Content"
713
  msgstr "柔軟コンテンツ"
714
 
715
- #: core/fields/flexible_content.php:38
716
- #: core/fields/flexible_content.php:286
717
  msgid "+ Add Row"
718
  msgstr "+ 行を追加する"
719
 
720
- #: core/fields/flexible_content.php:313
721
- #: core/fields/repeater.php:261
722
- #: core/views/meta_box_fields.php:25
 
 
 
 
723
  msgid "New Field"
724
  msgstr "新規フィールド"
725
 
726
- #: core/fields/flexible_content.php:322
727
- #: core/fields/radio.php:144
728
- #: core/fields/repeater.php:440
 
 
 
 
729
  msgid "Layout"
730
  msgstr "レイアウト"
731
 
732
- #: core/fields/flexible_content.php:324
733
  msgid "Reorder Layout"
734
  msgstr "レイアウトの並べ替え"
735
 
736
- #: core/fields/flexible_content.php:324
737
  msgid "Reorder"
738
  msgstr "並べ替え"
739
 
740
- #: core/fields/flexible_content.php:325
741
- msgid "Add New Layout"
742
- msgstr "レイアウトを追加する"
743
-
744
- #: core/fields/flexible_content.php:326
745
  msgid "Delete Layout"
746
  msgstr "レイアウトを削除する"
747
 
748
- #: core/fields/flexible_content.php:326
749
- #: core/fields/flexible_content.php:410
750
- #: core/fields/repeater.php:317
751
- #: core/views/meta_box_fields.php:90
752
  msgid "Delete"
753
  msgstr "削除"
754
 
755
- #: core/fields/flexible_content.php:336
 
 
 
 
 
 
 
 
 
 
 
 
 
756
  msgid "Label"
757
  msgstr "ラベル"
758
 
759
- #: core/fields/flexible_content.php:346
760
  msgid "Name"
761
  msgstr "名前"
762
 
763
- #: core/fields/flexible_content.php:356
764
  msgid "Display"
765
  msgstr "表示"
766
 
767
- #: core/fields/flexible_content.php:363
768
- msgid "Table"
769
- msgstr "テーブル"
770
-
771
- #: core/fields/flexible_content.php:364
772
- #: core/fields/repeater.php:451
773
  msgid "Row"
774
  msgstr "行"
775
 
776
- #: core/fields/flexible_content.php:377
777
- #: core/fields/repeater.php:285
778
- #: core/views/meta_box_fields.php:60
 
 
 
779
  msgid "Field Order"
780
  msgstr "フィールド順序"
781
 
782
- #: core/fields/flexible_content.php:378
783
- #: core/fields/flexible_content.php:425
784
- #: core/fields/repeater.php:286
785
- #: core/fields/repeater.php:333
786
- #: core/views/meta_box_fields.php:61
787
- #: core/views/meta_box_fields.php:105
788
  msgid "Field Label"
789
  msgstr "フィールドラベル"
790
 
791
- #: core/fields/flexible_content.php:379
792
- #: core/fields/flexible_content.php:441
793
- #: core/fields/repeater.php:287
794
- #: core/fields/repeater.php:349
795
- #: core/views/meta_box_fields.php:62
796
- #: core/views/meta_box_fields.php:121
797
  msgid "Field Name"
798
  msgstr "フィールド名"
799
 
800
- #: core/fields/flexible_content.php:388
801
- #: core/fields/repeater.php:296
802
- msgid "No fields. Click the \"+ Add Sub Field button\" to create your first field."
803
- msgstr "フィールドがありません。\"+ サブフィールドを追加するボタン\" をクリックして最初のフィールドを作成してください"
 
 
804
 
805
- #: core/fields/flexible_content.php:404
806
- #: core/fields/flexible_content.php:407
807
- #: core/fields/repeater.php:311
808
- #: core/fields/repeater.php:314
809
- #: core/views/meta_box_fields.php:84
810
- #: core/views/meta_box_fields.php:87
811
  msgid "Edit this Field"
812
  msgstr "このフィールドを編集する"
813
 
814
- #: core/fields/flexible_content.php:408
815
- #: core/fields/repeater.php:315
816
- #: core/views/meta_box_fields.php:88
817
  msgid "Read documentation for this field"
818
  msgstr "このフィールドのドキュメントを読む"
819
 
820
- #: core/fields/flexible_content.php:408
821
- #: core/fields/repeater.php:315
822
- #: core/views/meta_box_fields.php:88
823
  msgid "Docs"
824
  msgstr "ドキュメント"
825
 
826
- #: core/fields/flexible_content.php:409
827
- #: core/fields/repeater.php:316
828
- #: core/views/meta_box_fields.php:89
829
  msgid "Duplicate this Field"
830
  msgstr "このフィールドを複製する"
831
 
832
- #: core/fields/flexible_content.php:409
833
- #: core/fields/repeater.php:316
834
- #: core/views/meta_box_fields.php:89
835
- msgid "Duplicate"
836
- msgstr "複製"
837
-
838
- #: core/fields/flexible_content.php:410
839
- #: core/fields/repeater.php:317
840
- #: core/views/meta_box_fields.php:90
841
  msgid "Delete this Field"
842
  msgstr "このフィールドを削除する"
843
 
844
- #: core/fields/flexible_content.php:426
845
- #: core/fields/repeater.php:334
846
- #: core/views/meta_box_fields.php:106
847
  msgid "This is the name which will appear on the EDIT page"
848
  msgstr "編集ページで表示される名前です"
849
 
850
- #: core/fields/flexible_content.php:442
851
- #: core/fields/repeater.php:350
852
- #: core/views/meta_box_fields.php:122
853
  msgid "Single word, no spaces. Underscores and dashes allowed"
854
  msgstr "単一語。スペース無し。アンダースコアとダッシュは使用可能。"
855
 
856
- #: core/fields/flexible_content.php:476
857
- #: core/fields/repeater.php:384
 
 
 
 
 
 
 
 
 
 
 
 
858
  msgid "Save Field"
859
  msgstr "フィールドを保存する"
860
 
861
- #: core/fields/flexible_content.php:481
862
- #: core/fields/repeater.php:389
863
- #: core/views/meta_box_fields.php:188
864
  msgid "Close Field"
865
  msgstr "フィールドを閉じる"
866
 
867
- #: core/fields/flexible_content.php:481
868
- #: core/fields/repeater.php:389
869
  msgid "Close Sub Field"
870
  msgstr "サブフィールドを閉じる"
871
 
872
- #: core/fields/flexible_content.php:495
873
- #: core/fields/repeater.php:404
874
- #: core/views/meta_box_fields.php:201
875
  msgid "Drag and drop to reorder"
876
- msgstr "ドラッグアンドドロップで順序変更する"
877
 
878
- #: core/fields/flexible_content.php:496
879
- #: core/fields/repeater.php:405
880
  msgid "+ Add Sub Field"
881
  msgstr "+ サブフィールドを追加する"
882
 
883
- #: core/fields/flexible_content.php:503
884
- #: core/fields/repeater.php:459
885
  msgid "Button Label"
886
  msgstr "ボタンラベル"
887
 
@@ -889,23 +932,19 @@ msgstr "ボタンラベル"
889
  msgid "Gallery"
890
  msgstr "ギャラリー"
891
 
892
- #: core/fields/gallery.php:70
893
- #: core/fields/gallery.php:233
894
  msgid "Alternate Text"
895
  msgstr "代替テキスト"
896
 
897
- #: core/fields/gallery.php:74
898
- #: core/fields/gallery.php:237
899
  msgid "Caption"
900
  msgstr "キャプション"
901
 
902
- #: core/fields/gallery.php:78
903
- #: core/fields/gallery.php:241
904
  msgid "Description"
905
  msgstr "説明"
906
 
907
- #: core/fields/gallery.php:117
908
- #: core/fields/image.php:243
909
  msgid "Preview Size"
910
  msgstr "プレビューサイズ"
911
 
@@ -913,47 +952,48 @@ msgstr "プレビューサイズ"
913
  msgid "Thumbnail is advised"
914
  msgstr "サムネイル推奨"
915
 
916
- #: core/fields/gallery.php:179
917
  msgid "Image Updated"
918
  msgstr "画像を更新しました"
919
 
920
- #: core/fields/gallery.php:262
921
- #: core/fields/gallery.php:642
922
- #: core/fields/image.php:193
923
  msgid "Add Image"
924
  msgstr "画像を追加する"
925
 
926
- #: core/fields/gallery.php:263
927
  msgid "Grid"
928
  msgstr "グリッド"
929
 
930
- #: core/fields/gallery.php:264
931
  msgid "List"
932
  msgstr "一覧"
933
 
934
- #: core/fields/gallery.php:266
935
- #: core/fields/image.php:428
936
  msgid "No images selected"
937
  msgstr "画像が選択されていません"
938
 
939
- #: core/fields/gallery.php:266
940
  msgid "1 image selected"
941
  msgstr "画像が 1 枚選択されています"
942
 
943
- #: core/fields/gallery.php:266
944
  msgid "{count} images selected"
945
  msgstr "画像が {count} 枚選択されています"
946
 
947
- #: core/fields/gallery.php:585
 
 
 
 
948
  msgid "Image already exists in gallery"
949
  msgstr "ギャラリーに画像が存在しています"
950
 
951
- #: core/fields/gallery.php:591
952
  msgid "Image Added"
953
  msgstr "画像を追加しました"
954
 
955
- #: core/fields/gallery.php:645
956
- #: core/fields/image.php:556
957
  msgid "Update Image"
958
  msgstr "画像を更新する"
959
 
@@ -965,72 +1005,66 @@ msgstr "画像"
965
  msgid "Image Updated."
966
  msgstr "画像を更新しました"
967
 
968
- #: core/fields/image.php:193
969
  msgid "No image selected"
970
  msgstr "画像が選択されていません"
971
 
972
- #: core/fields/image.php:233
973
  msgid "Image Object"
974
  msgstr "画像オブジェクト"
975
 
976
- #: core/fields/image.php:234
977
  msgid "Image URL"
978
  msgstr "画像 URL"
979
 
980
- #: core/fields/image.php:235
981
  msgid "Image ID"
982
  msgstr "画像 ID"
983
 
984
- #: core/fields/image.php:524
985
  msgid "Add selected Images"
986
  msgstr "選択した画像を追加する"
987
 
988
- #: core/fields/image.php:553
989
  msgid "Select Image"
990
  msgstr "画像を選択する"
991
 
 
 
 
 
992
  #: core/fields/page_link.php:21
993
  msgid "Page Link"
994
  msgstr "ページリンク"
995
 
996
- #: core/fields/page_link.php:70
997
- #: core/fields/post_object.php:216
998
- #: core/fields/relationship.php:314
999
- #: core/views/meta_box_location.php:48
1000
  msgid "Post Type"
1001
  msgstr "投稿タイプ"
1002
 
1003
- #: core/fields/page_link.php:98
1004
- #: core/fields/post_object.php:267
1005
- #: core/fields/select.php:194
1006
  msgid "Allow Null?"
1007
  msgstr "無を許可するか?"
1008
 
1009
- #: core/fields/page_link.php:107
1010
- #: core/fields/page_link.php:126
1011
- #: core/fields/post_object.php:276
1012
- #: core/fields/post_object.php:295
1013
- #: core/fields/select.php:203
1014
- #: core/fields/select.php:222
1015
- #: core/fields/wysiwyg.php:104
1016
- #: core/views/meta_box_fields.php:170
1017
  msgid "Yes"
1018
  msgstr "はい"
1019
 
1020
- #: core/fields/page_link.php:108
1021
- #: core/fields/page_link.php:127
1022
- #: core/fields/post_object.php:277
1023
- #: core/fields/post_object.php:296
1024
- #: core/fields/select.php:204
1025
- #: core/fields/select.php:223
1026
- #: core/fields/wysiwyg.php:105
1027
- #: core/views/meta_box_fields.php:171
1028
  msgid "No"
1029
  msgstr "いいえ"
1030
 
1031
- #: core/fields/page_link.php:117
1032
- #: core/fields/post_object.php:286
1033
- #: core/fields/select.php:213
1034
  msgid "Select multiple values?"
1035
  msgstr "複数の値を選択できるか?"
1036
 
@@ -1038,27 +1072,19 @@ msgstr "複数の値を選択できるか?"
1038
  msgid "Post Object"
1039
  msgstr "投稿オブジェクト"
1040
 
1041
- #: core/fields/post_object.php:244
1042
- #: core/fields/relationship.php:343
1043
  msgid "Filter from Taxonomy"
1044
- msgstr "分類でフィルタする"
1045
 
1046
  #: core/fields/radio.php:21
1047
  msgid "Radio Button"
1048
  msgstr "ラジオボタン"
1049
 
1050
- #: core/fields/radio.php:130
1051
- #: core/fields/select.php:180
1052
- #: core/fields/text.php:61
1053
- #: core/fields/textarea.php:62
1054
- msgid "Default Value"
1055
- msgstr "デフォルト値"
1056
-
1057
- #: core/fields/radio.php:154
1058
  msgid "Vertical"
1059
  msgstr "垂直"
1060
 
1061
- #: core/fields/radio.php:155
1062
  msgid "Horizontal"
1063
  msgstr "水平"
1064
 
@@ -1066,11 +1092,11 @@ msgstr "水平"
1066
  msgid "Relationship"
1067
  msgstr "関連"
1068
 
1069
- #: core/fields/relationship.php:236
1070
  msgid "Search"
1071
  msgstr "検索"
1072
 
1073
- #: core/fields/relationship.php:366
1074
  msgid "Maximum posts"
1075
  msgstr "最大投稿数"
1076
 
@@ -1078,24 +1104,19 @@ msgstr "最大投稿数"
1078
  msgid "Repeater"
1079
  msgstr "繰り返し"
1080
 
1081
- #: core/fields/repeater.php:66
1082
- #: core/fields/repeater.php:248
1083
- msgid "Add Row"
1084
- msgstr "行を追加する"
1085
-
1086
- #: core/fields/repeater.php:277
1087
  msgid "Repeater Fields"
1088
  msgstr "繰り返しフィールド"
1089
 
1090
- #: core/fields/repeater.php:412
1091
  msgid "Minimum Rows"
1092
  msgstr "最小行数"
1093
 
1094
- #: core/fields/repeater.php:426
1095
  msgid "Maximum Rows"
1096
  msgstr "最大行数"
1097
 
1098
- #: core/fields/repeater.php:450
1099
  msgid "Table (default)"
1100
  msgstr "テーブル (デフォルト)"
1101
 
@@ -1107,22 +1128,19 @@ msgstr "セレクトボックス"
1107
  msgid "Text"
1108
  msgstr "テキスト"
1109
 
1110
- #: core/fields/text.php:75
1111
- #: core/fields/textarea.php:76
1112
  msgid "Formatting"
1113
  msgstr "フォーマット"
1114
 
1115
- #: core/fields/text.php:76
1116
  msgid "Define how to render html tags"
1117
  msgstr "html タグの表示を決定する"
1118
 
1119
- #: core/fields/text.php:85
1120
- #: core/fields/textarea.php:86
1121
  msgid "None"
1122
  msgstr "無"
1123
 
1124
- #: core/fields/text.php:86
1125
- #: core/fields/textarea.php:88
1126
  msgid "HTML"
1127
  msgstr "HTML"
1128
 
@@ -1130,11 +1148,11 @@ msgstr "HTML"
1130
  msgid "Text Area"
1131
  msgstr "テキストエリア"
1132
 
1133
- #: core/fields/textarea.php:77
1134
  msgid "Define how to render html tags / new lines"
1135
  msgstr "html タグ/新しい行の表示を決定する"
1136
 
1137
- #: core/fields/textarea.php:87
1138
  msgid "auto &lt;br /&gt;"
1139
  msgstr "自動 &lt;br /&gt;"
1140
 
@@ -1154,98 +1172,144 @@ msgstr "例: 追加コンテンツを表示する"
1154
  msgid "Wysiwyg Editor"
1155
  msgstr "Wysiwyg エディタ"
1156
 
1157
- #: core/fields/wysiwyg.php:75
1158
  msgid "Toolbar"
1159
  msgstr "ツールバー"
1160
 
1161
- #: core/fields/wysiwyg.php:86
1162
- #: core/views/meta_box_location.php:47
1163
  msgid "Basic"
1164
  msgstr "基本"
1165
 
1166
- #: core/fields/wysiwyg.php:94
1167
  msgid "Show Media Upload Buttons?"
1168
  msgstr "メディアアップロードボタンを表示するか?"
1169
 
1170
- #: core/views/meta_box_fields.php:26
1171
- msgid "new_field"
1172
- msgstr "新規フィールド"
 
 
 
 
 
 
 
 
 
 
 
 
1173
 
1174
- #: core/views/meta_box_fields.php:47
1175
  msgid "Move to trash. Are you sure?"
1176
  msgstr "ゴミ箱に移動させようとしています。よろしいですか?"
1177
 
1178
- #: core/views/meta_box_fields.php:73
1179
- msgid "No fields. Click the <strong>+ Add Field</strong> button to create your first field."
1180
- msgstr "フィールドはありません。<strong>+ 新規追加</strong>ボタンをクリックして最初のフィールドを作成してください"
1181
 
1182
- #: core/views/meta_box_fields.php:149
1183
- msgid "Field Instructions"
1184
- msgstr "フィールドの説明"
 
 
 
 
1185
 
1186
- #: core/views/meta_box_fields.php:150
 
 
 
 
 
 
 
 
1187
  msgid "Instructions for authors. Shown when submitting data"
1188
- msgstr "作成者向けの説明。データ送信時に表示されます"
1189
 
1190
- #: core/views/meta_box_fields.php:162
1191
  msgid "Required?"
1192
  msgstr "必須か?"
1193
 
1194
- #: core/views/meta_box_fields.php:202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1195
  msgid "+ Add Field"
1196
- msgstr "+ 新規追加"
1197
 
1198
  #: core/views/meta_box_location.php:35
1199
  msgid "Rules"
1200
  msgstr "ルール"
1201
 
1202
  #: core/views/meta_box_location.php:36
1203
- msgid "Create a set of rules to determine which edit screens will use these advanced custom fields"
1204
- msgstr "どの編集画面でこれらの advanced custom fields を使用するかを決定するルールを作成する"
 
 
 
1205
 
1206
  #: core/views/meta_box_location.php:49
1207
  msgid "Logged in User Type"
1208
  msgstr "ログインしているユーザーのタイプ"
1209
 
1210
- #: core/views/meta_box_location.php:51
1211
- msgid "Page Specific"
1212
- msgstr "特定のページ"
1213
-
1214
- #: core/views/meta_box_location.php:52
1215
  msgid "Page"
1216
  msgstr "ページ"
1217
 
1218
  #: core/views/meta_box_location.php:53
1219
- msgid "Page Type"
1220
- msgstr "ページタイプ"
1221
 
1222
  #: core/views/meta_box_location.php:54
1223
- msgid "Page Parent"
1224
- msgstr "親ページ"
1225
 
1226
  #: core/views/meta_box_location.php:55
1227
- msgid "Page Template"
1228
- msgstr "ページテンプレート"
1229
-
1230
- #: core/views/meta_box_location.php:57
1231
- msgid "Post Specific"
1232
- msgstr "特定の投稿"
1233
 
1234
- #: core/views/meta_box_location.php:58
1235
  msgid "Post"
1236
  msgstr "投稿"
1237
 
1238
  #: core/views/meta_box_location.php:59
1239
- msgid "Post Category"
1240
- msgstr "投稿カテゴリー"
1241
 
1242
- #: core/views/meta_box_location.php:60
1243
- msgid "Post Format"
1244
- msgstr "投稿フォーマット"
1245
 
1246
  #: core/views/meta_box_location.php:61
1247
- msgid "Post Taxonomy"
1248
- msgstr "投稿分類"
1249
 
1250
  #: core/views/meta_box_location.php:63
1251
  msgid "Other"
@@ -1253,7 +1317,7 @@ msgstr "その他"
1253
 
1254
  #: core/views/meta_box_location.php:64
1255
  msgid "Taxonomy (Add / Edit)"
1256
- msgstr "分類(追加/編集)"
1257
 
1258
  #: core/views/meta_box_location.php:65
1259
  msgid "User (Add / Edit)"
@@ -1263,26 +1327,10 @@ msgstr "ユーザー(追加/編集)"
1263
  msgid "Media (Edit)"
1264
  msgstr "メディア(編集)"
1265
 
1266
- #: core/views/meta_box_location.php:96
1267
- msgid "is equal to"
1268
- msgstr "等しい"
1269
-
1270
- #: core/views/meta_box_location.php:97
1271
- msgid "is not equal to"
1272
- msgstr "等しくない"
1273
-
1274
  #: core/views/meta_box_location.php:121
1275
  msgid "match"
1276
  msgstr "一致する"
1277
 
1278
- #: core/views/meta_box_location.php:127
1279
- msgid "all"
1280
- msgstr "全て"
1281
-
1282
- #: core/views/meta_box_location.php:128
1283
- msgid "any"
1284
- msgstr "任意"
1285
-
1286
  #: core/views/meta_box_location.php:131
1287
  msgid "of the above"
1288
  msgstr "上述の"
@@ -1296,7 +1344,7 @@ msgid "Order No."
1296
  msgstr "順序番号"
1297
 
1298
  #: core/views/meta_box_options.php:24
1299
- msgid "Field groups are created in order <br />from lowest to highest."
1300
  msgstr "フィールドグループは、<br />低いほうから高いほうへ作成されます"
1301
 
1302
  #: core/views/meta_box_options.php:40
@@ -1316,8 +1364,12 @@ msgid "<b>Select</b> items to <b>hide</b> them from the edit screen"
1316
  msgstr "編集画面で<b>表示しない</b>アイテムを<b>選択する</b>"
1317
 
1318
  #: core/views/meta_box_options.php:82
1319
- msgid "If multiple field groups appear on an edit screen, the first field group's options will be used. (the one with the lowest order number)"
1320
- msgstr "編集画面に複数のフィールドグループが表示される場合、最初の(=順序番号の最も低い)フィールドグループのオプションが使用されます。"
 
 
 
 
1321
 
1322
  #: core/views/meta_box_options.php:92
1323
  msgid "Content Editor"
@@ -1336,46 +1388,29 @@ msgid "Comments"
1336
  msgstr "コメント"
1337
 
1338
  #: core/views/meta_box_options.php:97
 
 
 
 
1339
  msgid "Slug"
1340
  msgstr "スラッグ"
1341
 
1342
- #: core/views/meta_box_options.php:98
1343
  msgid "Author"
1344
  msgstr "作成者"
1345
 
1346
- #: core/views/meta_box_options.php:99
1347
- msgid "Format"
1348
- msgstr "フォーマット"
1349
-
1350
- #: core/views/meta_box_options.php:100
1351
  msgid "Featured Image"
1352
  msgstr "アイキャッチ画像"
1353
 
1354
- #~ msgid "Everything Fields deactivated"
1355
- #~ msgstr "全フィールドを無効化しました"
1356
-
1357
- #~ msgid "Everything Fields activated"
1358
- #~ msgstr "全フィールドを有効化しました"
1359
-
1360
- #~ msgid "Navigate to the"
1361
- #~ msgstr "に進む"
1362
-
1363
- #~ msgid "Import Tool"
1364
- #~ msgstr "インポートツール"
1365
-
1366
- #~ msgid "and select WordPress"
1367
- #~ msgstr "WordPress を選択する"
1368
-
1369
- #~ msgid ""
1370
- #~ "Filter posts by selecting a post type<br />\n"
1371
- #~ "\t\t\t\tTip: deselect all post types to show all post type's posts"
1372
- #~ msgstr ""
1373
- #~ "投稿タイプを選択して、投稿をフィルタする<br />\n"
1374
- #~ "\t\t\t\tヒント: 全ての投稿タイプの選択を外すと、全ての投稿タイプの投稿を表"
1375
- #~ "示します"
1376
 
1377
- #~ msgid "Set to -1 for infinite"
1378
- #~ msgstr "-1 にすると無制限"
 
1379
 
1380
- #~ msgid "Row Limit"
1381
- #~ msgstr "行制限"
 
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ACF\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/advanced-custom-fields\n"
7
+ "POT-Creation-Date: 2012-12-14 03:43:09+00:00\n"
 
 
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2013-04-10 13:05+0900\n"
12
+ "Last-Translator: Fumito MIZUNO <ounziw@gmail.com>\n"
13
+ "Language-Team: Fumito MIZUNO <ounziw@gmail.com>\n"
14
+ "X-Generator: Poedit 1.5.5\n"
15
+ "Language: Japanese\n"
16
 
17
+ #: acf.php:59 core/controllers/field_group.php:167
18
+ #: core/views/meta_box_location.php:143
19
+ msgid "Options"
20
+ msgstr "オプション"
21
 
22
+ #: acf.php:123
23
  msgid "Field&nbsp;Groups"
24
  msgstr "フィールドグループ"
25
 
26
+ #: acf.php:124 core/controllers/field_groups.php:232
 
27
  #: core/controllers/upgrade.php:70
28
  msgid "Advanced Custom Fields"
29
  msgstr "Advanced Custom Fields"
30
 
31
+ #: acf.php:125 core/fields/flexible_content.php:389
 
32
  msgid "Add New"
33
  msgstr "新規追加"
34
 
35
+ #: acf.php:126
36
  msgid "Add New Field Group"
37
  msgstr "フィールドグループを新規追加"
38
 
39
+ #: acf.php:127
40
  msgid "Edit Field Group"
41
  msgstr "フィールドグループを編集"
42
 
43
+ #: acf.php:128
44
  msgid "New Field Group"
45
  msgstr "新規フィールドグループ"
46
 
47
+ #: acf.php:129
48
  msgid "View Field Group"
49
  msgstr "フィールドグループを表示"
50
 
51
+ #: acf.php:130
52
  msgid "Search Field Groups"
53
  msgstr "フィールドグループを検索"
54
 
55
+ #: acf.php:131
56
  msgid "No Field Groups found"
57
  msgstr "フィールドグループが見つかりません"
58
 
59
+ #: acf.php:132
60
  msgid "No Field Groups found in Trash"
61
  msgstr "ゴミ箱にフィールドグループが見つかりません"
62
 
63
+ #: acf.php:387 core/views/meta_box_options.php:94
64
+ msgid "Custom Fields"
65
+ msgstr "カスタムフィールド"
66
+
67
+ #: acf.php:406 acf.php:409
68
  msgid "Field group updated."
69
  msgstr "フィールドグループを更新しました"
70
 
71
+ #: acf.php:407
72
  msgid "Custom field updated."
73
  msgstr "カスタムフィールドを更新しました"
74
 
75
+ #: acf.php:408
76
  msgid "Custom field deleted."
77
+ msgstr "カスタムフィールドを削除しました"
78
 
79
  #. translators: %s: date and time of the revision
80
+ #: acf.php:411
81
  msgid "Field group restored to revision from %s"
82
  msgstr "リビジョン %s からフィールドグループを復元しました"
83
 
84
+ #: acf.php:412
85
  msgid "Field group published."
86
  msgstr "フィールドグループを公開しました"
87
 
88
+ #: acf.php:413
89
  msgid "Field group saved."
90
  msgstr "フィールドグループを保存しました"
91
 
92
+ #: acf.php:414
93
  msgid "Field group submitted."
94
  msgstr "フィールドグループを送信しました"
95
 
96
+ #: acf.php:415
97
  msgid "Field group scheduled for."
98
+ msgstr "フィールドグループを公開予約しました"
99
 
100
+ #: acf.php:416
101
  msgid "Field group draft updated."
102
+ msgstr "フィールドグループ下書きを行進しました"
 
 
 
 
 
 
103
 
104
+ #: acf.php:724
105
  msgid "Error: Field Type does not exist!"
106
  msgstr "エラー: フィールドタイプが存在しません"
107
 
108
+ #: acf.php:1936
109
  msgid "Thumbnail"
110
  msgstr "サムネイル"
111
 
112
+ #: acf.php:1937
113
  msgid "Medium"
114
  msgstr "中"
115
 
116
+ #: acf.php:1938
117
  msgid "Large"
118
  msgstr "大"
119
 
120
+ #: acf.php:1939 core/fields/wysiwyg.php:105
 
121
  msgid "Full"
122
  msgstr "フルサイズ"
123
 
124
+ #: core/actions/export.php:21
125
  msgid "No ACF groups selected"
126
  msgstr "ACF グループが選択されていません"
127
 
128
+ #: core/controllers/field_group.php:165 core/controllers/field_group.php:184
129
+ #: core/controllers/field_groups.php:143
130
  msgid "Fields"
131
  msgstr "フィールド"
132
 
133
+ #: core/controllers/field_group.php:166
134
  msgid "Location"
135
  msgstr "位置"
136
 
137
+ #: core/controllers/field_group.php:391
138
+ msgid "Front Page"
139
+ msgstr "フロントページ"
 
 
 
 
 
 
 
 
140
 
141
+ #: core/controllers/field_group.php:392
142
+ msgid "Posts Page"
143
+ msgstr "投稿"
144
 
145
+ #: core/controllers/field_group.php:393
146
  msgid "Parent Page"
147
  msgstr "親ページ"
148
 
149
+ #: core/controllers/field_group.php:394
150
  msgid "Child Page"
151
  msgstr "子ページ"
152
 
153
+ #: core/controllers/field_group.php:402
154
  msgid "Default Template"
155
  msgstr "デフォルトテンプレート"
156
 
157
+ #: core/controllers/field_group.php:515 core/controllers/field_group.php:536
158
+ #: core/controllers/field_group.php:543 core/fields/page_link.php:76
159
+ #: core/fields/post_object.php:229 core/fields/post_object.php:257
160
+ #: core/fields/relationship.php:382 core/fields/relationship.php:411
 
 
 
 
161
  msgid "All"
162
  msgstr "全て"
163
 
164
+ #: core/controllers/field_groups.php:142 core/fields/gallery.php:66
165
+ #: core/fields/gallery.php:205
166
+ msgid "Title"
167
+ msgstr "タイトル"
168
+
169
+ #: core/controllers/field_groups.php:197 core/views/meta_box_options.php:50
170
  msgid "Normal"
171
  msgstr "Normal"
172
 
173
+ #: core/controllers/field_groups.php:198 core/views/meta_box_options.php:51
 
174
  msgid "Side"
175
  msgstr "Side"
176
 
177
+ #: core/controllers/field_groups.php:208 core/views/meta_box_options.php:71
 
178
  msgid "Standard Metabox"
179
  msgstr "標準メタボックス"
180
 
181
+ #: core/controllers/field_groups.php:209 core/views/meta_box_options.php:70
 
182
  msgid "No Metabox"
183
  msgstr "メタボックス無"
184
 
185
+ #: core/controllers/field_groups.php:234
186
  msgid "Changelog"
187
  msgstr "更新履歴"
188
 
189
+ #: core/controllers/field_groups.php:235
190
  msgid "See what's new in"
191
  msgstr "新着情報で見る"
192
 
193
+ #: core/controllers/field_groups.php:237
194
  msgid "Resources"
195
  msgstr "リソース"
196
 
197
+ #: core/controllers/field_groups.php:238
198
+ msgid ""
199
+ "Read documentation, learn the functions and find some tips &amp; tricks for "
200
+ "your next web project."
201
+ msgstr ""
202
+ "次のプロジェクトのため、ドキュメントを読み、関数を学び、便利な使い方を探しま"
203
+ "しょう"
204
 
205
+ #: core/controllers/field_groups.php:239
206
  msgid "Visit the ACF website"
207
  msgstr "ACF ウェブサイトを見る"
208
 
209
+ #: core/controllers/field_groups.php:244
210
  msgid "Created by"
211
  msgstr "作成"
212
 
213
+ #: core/controllers/field_groups.php:247
214
  msgid "Vote"
215
  msgstr "投票"
216
 
217
+ #: core/controllers/field_groups.php:248
218
  msgid "Follow"
219
  msgstr "フォロー"
220
 
221
+ #: core/controllers/input.php:545
222
  msgid "Validation Failed. One or more fields below are required."
223
  msgstr "検証に失敗しました。下記のフィールドの少なくとも一つが必須です。"
224
 
225
+ #: core/controllers/input.php:546
226
  msgid "Add File to Field"
227
  msgstr "ファイルをフィールドに追加する"
228
 
229
+ #: core/controllers/input.php:547
230
  msgid "Edit File"
231
+ msgstr "ファイルを編集する"
232
 
233
+ #: core/controllers/input.php:548
234
  msgid "Add Image to Field"
235
  msgstr "画像をフィールドに追加する"
236
 
237
+ #: core/controllers/input.php:549 core/controllers/input.php:552
 
238
  msgid "Edit Image"
239
  msgstr "画像を編集する"
240
 
241
+ #: core/controllers/input.php:550
242
  msgid "Maximum values reached ( {max} values )"
243
  msgstr "最大値( {max} ) に達しました"
244
 
245
+ #: core/controllers/input.php:551
246
  msgid "Add Image to Gallery"
247
  msgstr "画像をギャラリーに追加する"
248
 
249
+ #: core/controllers/input.php:663
250
  msgid "Attachment updated"
251
  msgstr "アタッチメントを更新しました"
252
 
253
+ #: core/controllers/options_page.php:130
254
  msgid "Options Updated"
255
  msgstr "オプションを更新しました"
256
 
257
+ #: core/controllers/options_page.php:264
258
  msgid "No Custom Field Group found for the options page"
259
  msgstr "オプションページにカスタムフィールドグループが見つかりませんでした"
260
 
261
+ #: core/controllers/options_page.php:264
262
  msgid "Create a Custom Field Group"
263
  msgstr "カスタムフィールドグループを作成する"
264
 
265
+ #: core/controllers/options_page.php:275
266
  msgid "Publish"
267
  msgstr "公開する"
268
 
269
+ #: core/controllers/options_page.php:279
270
  msgid "Save Options"
271
  msgstr "オプションを保存する"
272
 
274
  msgid "Settings"
275
  msgstr "設定"
276
 
277
+ #: core/controllers/settings.php:139
278
  msgid "Repeater field deactivated"
279
  msgstr "繰り返しフィールドを無効化しました"
280
 
281
+ #: core/controllers/settings.php:143
282
  msgid "Options page deactivated"
283
  msgstr "オプションページを無効化しました"
284
 
285
+ #: core/controllers/settings.php:147
286
  msgid "Flexible Content field deactivated"
287
  msgstr "柔軟コンテンツフィールドを無効化しました"
288
 
289
+ #: core/controllers/settings.php:151
290
  msgid "Gallery field deactivated"
291
  msgstr "ギャラリーフィールドを無効化しました"
292
 
293
+ #: core/controllers/settings.php:175
294
  msgid "Repeater field activated"
295
  msgstr "繰り返しフィールドを有効化しました"
296
 
297
+ #: core/controllers/settings.php:179
298
  msgid "Options page activated"
299
  msgstr "オプションページを有効化しました"
300
 
301
+ #: core/controllers/settings.php:183
302
  msgid "Flexible Content field activated"
303
  msgstr "柔軟コンテンツフィールドを有効化しました"
304
 
305
+ #: core/controllers/settings.php:187
306
  msgid "Gallery field activated"
307
  msgstr "ギャラリーフィールドを有効化しました"
308
 
309
+ #: core/controllers/settings.php:192
310
  msgid "License key unrecognised"
311
  msgstr "ライセンスキーが認識できません"
312
 
313
+ #: core/controllers/settings.php:244
314
  msgid "Activate Add-ons."
315
  msgstr "アドオンを有効化する"
316
 
317
+ #: core/controllers/settings.php:245
318
+ msgid ""
319
+ "Add-ons can be unlocked by purchasing a license key. Each key can be used on "
320
+ "multiple sites."
321
+ msgstr ""
322
+ "アドオンは、ライセンスキーを購入することでロック解除できます。キーは、複数の"
323
+ "サイトで使用できます。"
324
 
325
+ #: core/controllers/settings.php:246
326
  msgid "Find Add-ons"
327
  msgstr "アドオンを探す"
328
 
329
+ #: core/controllers/settings.php:253 core/fields/flexible_content.php:444
330
+ #: core/fields/flexible_content.php:515 core/fields/repeater.php:325
331
+ #: core/fields/repeater.php:397 core/views/meta_box_fields.php:71
332
+ #: core/views/meta_box_fields.php:149
 
 
 
333
  msgid "Field Type"
334
  msgstr "フィールドタイプ"
335
 
336
+ #: core/controllers/settings.php:254
337
  msgid "Status"
338
  msgstr "ステータス"
339
 
340
+ #: core/controllers/settings.php:255
341
  msgid "Activation Code"
342
  msgstr "アクティベーションコード"
343
 
344
+ #: core/controllers/settings.php:260
345
  msgid "Repeater Field"
346
  msgstr "繰り返しフィールド"
347
 
348
+ #: core/controllers/settings.php:261 core/controllers/settings.php:280
349
+ #: core/controllers/settings.php:299 core/controllers/settings.php:318
 
 
350
  msgid "Active"
351
  msgstr "有効"
352
 
353
+ #: core/controllers/settings.php:261 core/controllers/settings.php:280
354
+ #: core/controllers/settings.php:299 core/controllers/settings.php:318
 
 
355
  msgid "Inactive"
356
  msgstr "無効"
357
 
358
+ #: core/controllers/settings.php:267 core/controllers/settings.php:286
359
+ #: core/controllers/settings.php:305 core/controllers/settings.php:324
 
 
360
  msgid "Deactivate"
361
  msgstr "無効化"
362
 
363
+ #: core/controllers/settings.php:273 core/controllers/settings.php:292
364
+ #: core/controllers/settings.php:311 core/controllers/settings.php:330
 
 
365
  msgid "Activate"
366
  msgstr "有効化"
367
 
368
+ #: core/controllers/settings.php:279
369
  msgid "Flexible Content Field"
370
  msgstr "柔軟コンテンツフィールド"
371
 
372
+ #: core/controllers/settings.php:298
373
  msgid "Gallery Field"
374
  msgstr "ギャラリーフィールド"
375
 
376
+ #: core/controllers/settings.php:317 core/views/meta_box_location.php:74
 
377
  msgid "Options Page"
378
  msgstr "オプションページ"
379
 
380
+ #: core/controllers/settings.php:342
381
  msgid "Export Field Groups to XML"
382
  msgstr "フィールドグループを XML 形式でエクスポート"
383
 
384
+ #: core/controllers/settings.php:343
385
+ msgid ""
386
+ "ACF will create a .xml export file which is compatible with the native WP "
387
+ "import plugin."
388
+ msgstr ""
389
+ "ACF は .xml 形式のエクスポートファイルを作成します。WP のインポートプラグイン"
390
+ "と互換性があります。"
391
 
392
+ #: core/controllers/settings.php:344 core/controllers/settings.php:383
 
393
  msgid "Instructions"
394
  msgstr "説明"
395
 
396
+ #: core/controllers/settings.php:346
397
  msgid "Import Field Groups"
398
  msgstr "フィールドグループをインポートする"
399
 
400
+ #: core/controllers/settings.php:347
401
+ msgid ""
402
+ "Imported field groups <b>will</b> appear in the list of editable field "
403
+ "groups. This is useful for migrating fields groups between Wp websites."
404
+ msgstr ""
405
+ "インポートしたフィールドグループは、編集可能なフィールドグループの一覧に表示"
406
+ "されます。WP ウェブサイト間でフィールドグループを移行するのに役立ちます。"
407
 
408
+ #: core/controllers/settings.php:349
409
  msgid "Select field group(s) from the list and click \"Export XML\""
410
+ msgstr ""
411
+ "一覧からフィールドグループを選択し、\"XML をエクスポートする\" をクリックして"
412
+ "ください"
413
 
414
+ #: core/controllers/settings.php:350
415
  msgid "Save the .xml file when prompted"
416
  msgstr "指示に従って .xml ファイルを保存してください"
417
 
418
+ #: core/controllers/settings.php:351
419
  msgid "Navigate to Tools &raquo; Import and select WordPress"
420
  msgstr "ツール &raquo; インポートと進み、WordPress を選択してください"
421
 
422
+ #: core/controllers/settings.php:352
423
  msgid "Install WP import plugin if prompted"
424
+ msgstr ""
425
+ "(インストールを促された場合は) WP インポートプラグインをインストールしてくだ"
426
+ "さい"
427
 
428
+ #: core/controllers/settings.php:353
429
  msgid "Upload and import your exported .xml file"
430
  msgstr "エクスポートした .xml ファイルをアップロードし、インポートする"
431
 
432
+ #: core/controllers/settings.php:354
433
  msgid "Select your user and ignore Import Attachments"
434
+ msgstr "ユーザーを選択するが、Import Attachments を選択しない"
435
 
436
+ #: core/controllers/settings.php:355
437
  msgid "That's it! Happy WordPressing"
438
  msgstr "これで OK です。WordPress をお楽しみください"
439
 
440
+ #: core/controllers/settings.php:374
441
  msgid "Export XML"
442
  msgstr "XML をエクスポートする"
443
 
444
+ #: core/controllers/settings.php:381
445
  msgid "Export Field Groups to PHP"
446
  msgstr "フィールドグループを PHP 形式でエクスポートする"
447
 
448
+ #: core/controllers/settings.php:382
449
  msgid "ACF will create the PHP code to include in your theme."
450
  msgstr "ACF は、テーマに含める PHP コードを作成します"
451
 
452
+ #: core/controllers/settings.php:385 core/controllers/settings.php:502
 
453
  msgid "Register Field Groups"
454
  msgstr "フィールドグループを登録する"
455
 
456
+ #: core/controllers/settings.php:386 core/controllers/settings.php:503
457
+ msgid ""
458
+ "Registered field groups <b>will not</b> appear in the list of editable field "
459
+ "groups. This is useful for including fields in themes."
460
+ msgstr ""
461
+ "登録したフィールドグループは、編集可能なフィールドグループの一覧に<b>表示され"
462
+ "ません</b>。テーマにフィールドを含めるときに役立ちます。"
463
 
464
+ #: core/controllers/settings.php:387 core/controllers/settings.php:504
465
+ msgid ""
466
+ "Please note that if you export and register field groups within the same WP, "
467
+ "you will see duplicate fields on your edit screens. To fix this, please move "
468
+ "the origional field group to the trash or remove the code from your "
469
+ "functions.php file."
470
+ msgstr ""
471
+ "同一の WP でフィールドグループをエクスポートして登録する場合は、編集画面で重"
472
+ "複フィールドになることに注意してください。これを修正するには、元のフィールド"
473
+ "グループをゴミ箱へ移動するか、functions.php ファイルからこのコードを除去して"
474
+ "ください。"
475
 
476
+ #: core/controllers/settings.php:389
477
  msgid "Select field group(s) from the list and click \"Create PHP\""
478
+ msgstr ""
479
+ "一覧からフィールドグループを選択し、\"PHP 形式のデータを作成する\" をクリック"
480
+ "してください。"
481
 
482
+ #: core/controllers/settings.php:390 core/controllers/settings.php:506
 
483
  msgid "Copy the PHP code generated"
484
  msgstr "生成された PHP コードをコピーし、"
485
 
486
+ #: core/controllers/settings.php:391 core/controllers/settings.php:507
 
487
  msgid "Paste into your functions.php file"
488
  msgstr "functions.php に貼り付けてください"
489
 
490
+ #: core/controllers/settings.php:392 core/controllers/settings.php:508
 
491
  msgid "To activate any Add-ons, edit and use the code in the first few lines."
492
+ msgstr ""
493
+ "アドオンを有効化するには、最初の何行かのコードを編集して使用してください"
494
 
495
+ #: core/controllers/settings.php:411
496
  msgid "Create PHP"
497
+ msgstr "PHP 形式のデータを作成する"
498
 
499
+ #: core/controllers/settings.php:497
500
  msgid "Back to settings"
501
  msgstr "設定に戻る"
502
 
503
+ #: core/controllers/settings.php:532
504
  msgid ""
505
  "/**\n"
506
  " * Activate Add-ons\n"
507
+ " * Here you can enter your activation codes to unlock Add-ons to use in your "
508
+ "theme. \n"
509
+ " * Since all activation codes are multi-site licenses, you are allowed to "
510
+ "include your key in premium themes. \n"
511
+ " * Use the commented out code to update the database with your activation "
512
+ "code. \n"
513
+ " * You may place this code inside an IF statement that only runs on theme "
514
+ "activation.\n"
515
  " */"
516
  msgstr ""
517
  "/**\n"
518
  " * アドオンを有効化する\n"
519
+ " * アクティベーションコードを入力すると、アドオンをアンロックし、テーマで使用"
520
+ "できます。\n"
521
+ " * すべてのアクティベーションコードはマルチサイトライセンスのため、プレミアム"
522
+ "テーマにキーを含めることができます。\n"
523
+ " * コメントアウトされているコードを使用して、アクティベーションコードでデータ"
524
+ "ベースを更新してください。\n"
525
+ " * IF 文の中にコードを置くことで、テーマ有効化時にのみコードを実行するように"
526
+ "できます。\n"
527
  " */"
528
 
529
+ #: core/controllers/settings.php:547
530
  msgid ""
531
  "/**\n"
532
  " * Register field groups\n"
533
+ " * The register_field_group function accepts 1 array which holds the "
534
+ "relevant data to register a field group\n"
535
+ " * You may edit the array as you see fit. However, this may result in errors "
536
+ "if the array is not compatible with ACF\n"
537
  " * This code must run every time the functions.php file is read\n"
538
  " */"
539
  msgstr ""
540
  "/**\n"
541
  " * フィールドグループを登録する\n"
542
+ " * register_field_group 関数は、フィールドグループを登録するのに関係するデー"
543
+ "タを持っている一つの配列を受け付けます。\n"
544
+ " * 配列を好きなように編集することができます。しかし、配列が ACF と互換性の無"
545
+ "い場合、エラーになってしまいます。\n"
546
+ " * このコードは、functions.php ファイルを読み込む度に実行する必要がありま"
547
+ "す。\n"
548
  " */"
549
 
550
+ #: core/controllers/settings.php:586
551
  msgid "No field groups were selected"
552
  msgstr "フィールドグループが選択されていません"
553
 
554
+ #: core/controllers/settings.php:636
555
  msgid "Advanced Custom Fields Settings"
556
  msgstr "Advanced Custom Fields 設定"
557
 
573
 
574
  #: core/controllers/upgrade.php:70
575
  msgid "backup your database"
576
+ msgstr "データベースをバックアップし、"
577
 
578
  #: core/controllers/upgrade.php:70
579
  msgid "then click"
583
  msgid "Upgrade Database"
584
  msgstr "データベースの更新"
585
 
586
+ #: core/controllers/upgrade.php:604
587
  msgid "Modifying field group options 'show on page'"
588
  msgstr "フィールドグループオプション「ページで表示する」を変更"
589
 
590
+ #: core/controllers/upgrade.php:658
591
  msgid "Modifying field option 'taxonomy'"
592
  msgstr "フィールドオプション「タクソノミー」を変更"
593
 
594
+ #: core/controllers/upgrade.php:755
595
+ msgid "Moving user custom fields from wp_options to wp_usermeta'"
596
+ msgstr "ユーザーのカスタムフィールドを wp_options から wp_usermeta に変更する"
597
+
598
  #: core/fields/checkbox.php:21
599
  msgid "Checkbox"
600
  msgstr "チェックボックス"
601
 
602
+ #: core/fields/checkbox.php:55 core/fields/radio.php:45
603
+ #: core/fields/select.php:59
 
604
  msgid "No choices to choose from"
605
  msgstr "選択肢がありません"
606
 
607
+ #: core/fields/checkbox.php:113 core/fields/radio.php:114
608
+ #: core/fields/select.php:179
 
609
  msgid "Choices"
610
+ msgstr "選択し"
611
 
612
+ #: core/fields/checkbox.php:114 core/fields/radio.php:115
613
+ #: core/fields/select.php:180
 
614
  msgid "Enter your choices one per line"
615
  msgstr "選択肢を一行ずつ入力してください"
616
 
617
+ #: core/fields/checkbox.php:116 core/fields/radio.php:117
618
+ #: core/fields/select.php:182
 
619
  msgid "Red"
620
  msgstr "赤"
621
 
622
+ #: core/fields/checkbox.php:117 core/fields/radio.php:118
623
+ #: core/fields/select.php:183
 
624
  msgid "Blue"
625
  msgstr "青"
626
 
627
+ #: core/fields/checkbox.php:119 core/fields/radio.php:120
628
+ #: core/fields/select.php:185
 
629
  msgid "red : Red"
630
  msgstr "red : 赤"
631
 
632
+ #: core/fields/checkbox.php:120 core/fields/radio.php:121
633
+ #: core/fields/select.php:186
 
634
  msgid "blue : Blue"
635
  msgstr "blue : 青"
636
 
638
  msgid "Color Picker"
639
  msgstr "カラーピッカー"
640
 
641
+ #: core/fields/color_picker.php:67 core/fields/number.php:65
642
+ #: core/fields/radio.php:137 core/fields/select.php:202
643
+ #: core/fields/text.php:65 core/fields/textarea.php:64
644
+ #: core/fields/wysiwyg.php:81
645
+ msgid "Default Value"
646
+ msgstr "デフォルト値"
647
+
648
+ #: core/fields/color_picker.php:68
649
+ msgid "eg: #ffffff"
650
+ msgstr "例: #ffffff"
651
+
652
  #: core/fields/date_picker/date_picker.php:21
653
  msgid "Date Picker"
654
  msgstr "デイトピッカー"
655
 
656
+ #: core/fields/date_picker/date_picker.php:89
657
+ msgid "Save format"
658
+ msgstr "フォーマットを保存する"
659
+
660
+ #: core/fields/date_picker/date_picker.php:90
661
+ msgid ""
662
+ "This format will determin the value saved to the database and returned via "
663
+ "the API"
664
+ msgstr ""
665
+ "このフォーマットは、値をデータベースに保存し、API で返す形式を決定します"
666
+
667
+ #: core/fields/date_picker/date_picker.php:91
668
+ msgid "\"yymmdd\" is the most versatile save format. Read more about"
669
+ msgstr "最も良く用いられるフォーマットは \"yymmdd\" です。詳細は"
670
+
671
+ #: core/fields/date_picker/date_picker.php:91
672
+ #: core/fields/date_picker/date_picker.php:101
673
+ msgid "jQuery date formats"
674
+ msgstr "jQuery 日付フォーマット"
675
+
676
+ #: core/fields/date_picker/date_picker.php:99
677
+ msgid "Display format"
678
+ msgstr "表示フォーマット"
679
+
680
+ #: core/fields/date_picker/date_picker.php:100
681
+ msgid "This format will be seen by the user when entering a value"
682
+ msgstr "ユーザーが値を入力するときのフォーマット"
683
 
684
+ #: core/fields/date_picker/date_picker.php:101
685
+ msgid ""
686
+ "\"dd/mm/yy\" or \"mm/dd/yy\" are the most used display formats. Read more "
687
+ "about"
688
+ msgstr "よく使用されるのは、\"dd/mm/yy\" や \"mm/dd/yy\" です。詳細は"
689
 
690
+ #: core/fields/file.php:21
691
  msgid "File"
692
  msgstr "ファイル"
693
 
694
+ #: core/fields/file.php:49
695
  msgid "File Updated."
696
  msgstr "ファイルを更新しました"
697
 
698
+ #: core/fields/file.php:90 core/fields/flexible_content.php:466
699
+ #: core/fields/gallery.php:227 core/fields/gallery.php:257
700
+ #: core/fields/image.php:158 core/fields/repeater.php:347
701
+ #: core/views/meta_box_fields.php:99
 
 
 
702
  msgid "Edit"
703
  msgstr "編集"
704
 
705
+ #: core/fields/file.php:91 core/fields/gallery.php:226
706
+ #: core/fields/gallery.php:256 core/fields/image.php:157
 
 
707
  msgid "Remove"
708
  msgstr "取り除く"
709
 
710
+ #: core/fields/file.php:167
711
  msgid "No File Selected"
712
  msgstr "ファイルが選択されていません"
713
 
714
+ #: core/fields/file.php:167
715
  msgid "Add File"
716
  msgstr "ファイルを追加する"
717
 
718
+ #: core/fields/file.php:200 core/fields/image.php:194
 
719
  msgid "Return Value"
720
  msgstr "返り値"
721
 
722
+ #: core/fields/file.php:210
723
+ msgid "File Object"
724
+ msgstr "ファイルオブジェクト"
725
+
726
+ #: core/fields/file.php:211
727
  msgid "File URL"
728
  msgstr "ファイル URL"
729
 
730
+ #: core/fields/file.php:212
731
+ msgid "File ID"
732
+ msgstr "ファイル ID"
733
 
734
+ #: core/fields/file.php:244 core/fields/image.php:262
 
735
  msgid "Media attachment updated."
736
  msgstr "メディアアタッチメントを更新しました"
737
 
738
+ #: core/fields/file.php:378
739
  msgid "No files selected"
740
  msgstr "ファイルが選択されていません"
741
 
742
+ #: core/fields/file.php:473
743
  msgid "Add Selected Files"
744
  msgstr "選択されたファイルを追加する"
745
 
746
+ #: core/fields/file.php:503
747
  msgid "Select File"
748
  msgstr "ファイルを選択する"
749
 
750
+ #: core/fields/file.php:506
751
  msgid "Update File"
752
  msgstr "ファイルを更新する"
753
 
755
  msgid "Flexible Content"
756
  msgstr "柔軟コンテンツ"
757
 
758
+ #: core/fields/flexible_content.php:41
 
759
  msgid "+ Add Row"
760
  msgstr "+ 行を追加する"
761
 
762
+ #: core/fields/flexible_content.php:337 core/fields/repeater.php:48
763
+ #: core/fields/repeater.php:280
764
+ msgid "Add Row"
765
+ msgstr "行を追加する"
766
+
767
+ #: core/fields/flexible_content.php:372 core/fields/repeater.php:294
768
+ #: core/views/meta_box_fields.php:26
769
  msgid "New Field"
770
  msgstr "新規フィールド"
771
 
772
+ #: core/fields/flexible_content.php:373 core/fields/repeater.php:295
773
+ #: core/views/meta_box_fields.php:27
774
+ msgid "new_field"
775
+ msgstr "new_field"
776
+
777
+ #: core/fields/flexible_content.php:382 core/fields/radio.php:151
778
+ #: core/fields/repeater.php:514
779
  msgid "Layout"
780
  msgstr "レイアウト"
781
 
782
+ #: core/fields/flexible_content.php:384
783
  msgid "Reorder Layout"
784
  msgstr "レイアウトの並べ替え"
785
 
786
+ #: core/fields/flexible_content.php:384
787
  msgid "Reorder"
788
  msgstr "並べ替え"
789
 
790
+ #: core/fields/flexible_content.php:385
 
 
 
 
791
  msgid "Delete Layout"
792
  msgstr "レイアウトを削除する"
793
 
794
+ #: core/fields/flexible_content.php:385 core/fields/flexible_content.php:469
795
+ #: core/fields/repeater.php:350 core/views/meta_box_fields.php:102
 
 
796
  msgid "Delete"
797
  msgstr "削除"
798
 
799
+ #: core/fields/flexible_content.php:389
800
+ msgid "Add New Layout"
801
+ msgstr "レイアウトを追加する"
802
+
803
+ #: core/fields/flexible_content.php:390
804
+ msgid "Duplicate Layout"
805
+ msgstr "レイアウトを複製する"
806
+
807
+ #: core/fields/flexible_content.php:390 core/fields/flexible_content.php:468
808
+ #: core/fields/repeater.php:349 core/views/meta_box_fields.php:101
809
+ msgid "Duplicate"
810
+ msgstr "複製"
811
+
812
+ #: core/fields/flexible_content.php:400
813
  msgid "Label"
814
  msgstr "ラベル"
815
 
816
+ #: core/fields/flexible_content.php:410
817
  msgid "Name"
818
  msgstr "名前"
819
 
820
+ #: core/fields/flexible_content.php:420
821
  msgid "Display"
822
  msgstr "表示"
823
 
824
+ #: core/fields/flexible_content.php:427 core/fields/repeater.php:525
 
 
 
 
 
825
  msgid "Row"
826
  msgstr "行"
827
 
828
+ #: core/fields/flexible_content.php:428
829
+ msgid "Table"
830
+ msgstr "テーブル"
831
+
832
+ #: core/fields/flexible_content.php:441 core/fields/repeater.php:322
833
+ #: core/views/meta_box_fields.php:68
834
  msgid "Field Order"
835
  msgstr "フィールド順序"
836
 
837
+ #: core/fields/flexible_content.php:442 core/fields/flexible_content.php:484
838
+ #: core/fields/repeater.php:323 core/fields/repeater.php:366
839
+ #: core/views/meta_box_fields.php:69 core/views/meta_box_fields.php:118
 
 
 
840
  msgid "Field Label"
841
  msgstr "フィールドラベル"
842
 
843
+ #: core/fields/flexible_content.php:443 core/fields/flexible_content.php:500
844
+ #: core/fields/repeater.php:324 core/fields/repeater.php:382
845
+ #: core/views/meta_box_fields.php:70 core/views/meta_box_fields.php:134
 
 
 
846
  msgid "Field Name"
847
  msgstr "フィールド名"
848
 
849
+ #: core/fields/flexible_content.php:452 core/fields/repeater.php:333
850
+ msgid ""
851
+ "No fields. Click the \"+ Add Sub Field button\" to create your first field."
852
+ msgstr ""
853
+ "フィールドがありません。\"+ サブフィールドを追加する\" をクリックして最初の"
854
+ "フィールドを作成してください"
855
 
856
+ #: core/fields/flexible_content.php:463 core/fields/flexible_content.php:466
857
+ #: core/fields/repeater.php:344 core/fields/repeater.php:347
858
+ #: core/views/meta_box_fields.php:96 core/views/meta_box_fields.php:99
 
 
 
859
  msgid "Edit this Field"
860
  msgstr "このフィールドを編集する"
861
 
862
+ #: core/fields/flexible_content.php:467 core/fields/repeater.php:348
863
+ #: core/views/meta_box_fields.php:100
 
864
  msgid "Read documentation for this field"
865
  msgstr "このフィールドのドキュメントを読む"
866
 
867
+ #: core/fields/flexible_content.php:467 core/fields/repeater.php:348
868
+ #: core/views/meta_box_fields.php:100
 
869
  msgid "Docs"
870
  msgstr "ドキュメント"
871
 
872
+ #: core/fields/flexible_content.php:468 core/fields/repeater.php:349
873
+ #: core/views/meta_box_fields.php:101
 
874
  msgid "Duplicate this Field"
875
  msgstr "このフィールドを複製する"
876
 
877
+ #: core/fields/flexible_content.php:469 core/fields/repeater.php:350
878
+ #: core/views/meta_box_fields.php:102
 
 
 
 
 
 
 
879
  msgid "Delete this Field"
880
  msgstr "このフィールドを削除する"
881
 
882
+ #: core/fields/flexible_content.php:485 core/fields/repeater.php:367
883
+ #: core/views/meta_box_fields.php:119
 
884
  msgid "This is the name which will appear on the EDIT page"
885
  msgstr "編集ページで表示される名前です"
886
 
887
+ #: core/fields/flexible_content.php:501 core/fields/repeater.php:383
888
+ #: core/views/meta_box_fields.php:135
 
889
  msgid "Single word, no spaces. Underscores and dashes allowed"
890
  msgstr "単一語。スペース無し。アンダースコアとダッシュは使用可能。"
891
 
892
+ #: core/fields/flexible_content.php:529 core/fields/repeater.php:411
893
+ #: core/views/meta_box_fields.php:162
894
+ msgid "Field Instructions"
895
+ msgstr "フィールド記入のヒント"
896
+
897
+ #: core/fields/flexible_content.php:549 core/fields/repeater.php:431
898
+ msgid "Column Width"
899
+ msgstr "カラム幅"
900
+
901
+ #: core/fields/flexible_content.php:550 core/fields/repeater.php:432
902
+ msgid "Leave blank for auto"
903
+ msgstr "自動調整にする場合は空白にする"
904
+
905
+ #: core/fields/flexible_content.php:576 core/fields/repeater.php:458
906
  msgid "Save Field"
907
  msgstr "フィールドを保存する"
908
 
909
+ #: core/fields/flexible_content.php:581 core/fields/repeater.php:463
910
+ #: core/views/meta_box_fields.php:283
 
911
  msgid "Close Field"
912
  msgstr "フィールドを閉じる"
913
 
914
+ #: core/fields/flexible_content.php:581 core/fields/repeater.php:463
 
915
  msgid "Close Sub Field"
916
  msgstr "サブフィールドを閉じる"
917
 
918
+ #: core/fields/flexible_content.php:595 core/fields/repeater.php:478
919
+ #: core/views/meta_box_fields.php:296
 
920
  msgid "Drag and drop to reorder"
921
+ msgstr "ドラッグアンドドロップで並べ替える"
922
 
923
+ #: core/fields/flexible_content.php:596 core/fields/repeater.php:479
 
924
  msgid "+ Add Sub Field"
925
  msgstr "+ サブフィールドを追加する"
926
 
927
+ #: core/fields/flexible_content.php:603 core/fields/repeater.php:533
 
928
  msgid "Button Label"
929
  msgstr "ボタンラベル"
930
 
932
  msgid "Gallery"
933
  msgstr "ギャラリー"
934
 
935
+ #: core/fields/gallery.php:70 core/fields/gallery.php:209
 
936
  msgid "Alternate Text"
937
  msgstr "代替テキスト"
938
 
939
+ #: core/fields/gallery.php:74 core/fields/gallery.php:213
 
940
  msgid "Caption"
941
  msgstr "キャプション"
942
 
943
+ #: core/fields/gallery.php:78 core/fields/gallery.php:217
 
944
  msgid "Description"
945
  msgstr "説明"
946
 
947
+ #: core/fields/gallery.php:117 core/fields/image.php:214
 
948
  msgid "Preview Size"
949
  msgstr "プレビューサイズ"
950
 
952
  msgid "Thumbnail is advised"
953
  msgstr "サムネイル推奨"
954
 
955
+ #: core/fields/gallery.php:155
956
  msgid "Image Updated"
957
  msgstr "画像を更新しました"
958
 
959
+ #: core/fields/gallery.php:238 core/fields/gallery.php:649
960
+ #: core/fields/image.php:164
 
961
  msgid "Add Image"
962
  msgstr "画像を追加する"
963
 
964
+ #: core/fields/gallery.php:239
965
  msgid "Grid"
966
  msgstr "グリッド"
967
 
968
+ #: core/fields/gallery.php:240
969
  msgid "List"
970
  msgstr "一覧"
971
 
972
+ #: core/fields/gallery.php:242 core/fields/image.php:400
 
973
  msgid "No images selected"
974
  msgstr "画像が選択されていません"
975
 
976
+ #: core/fields/gallery.php:242
977
  msgid "1 image selected"
978
  msgstr "画像が 1 枚選択されています"
979
 
980
+ #: core/fields/gallery.php:242
981
  msgid "{count} images selected"
982
  msgstr "画像が {count} 枚選択されています"
983
 
984
+ #: core/fields/gallery.php:571
985
+ msgid "Added"
986
+ msgstr "追加しました"
987
+
988
+ #: core/fields/gallery.php:591
989
  msgid "Image already exists in gallery"
990
  msgstr "ギャラリーに画像が存在しています"
991
 
992
+ #: core/fields/gallery.php:597
993
  msgid "Image Added"
994
  msgstr "画像を追加しました"
995
 
996
+ #: core/fields/gallery.php:652 core/fields/image.php:528
 
997
  msgid "Update Image"
998
  msgstr "画像を更新する"
999
 
1005
  msgid "Image Updated."
1006
  msgstr "画像を更新しました"
1007
 
1008
+ #: core/fields/image.php:164
1009
  msgid "No image selected"
1010
  msgstr "画像が選択されていません"
1011
 
1012
+ #: core/fields/image.php:204
1013
  msgid "Image Object"
1014
  msgstr "画像オブジェクト"
1015
 
1016
+ #: core/fields/image.php:205
1017
  msgid "Image URL"
1018
  msgstr "画像 URL"
1019
 
1020
+ #: core/fields/image.php:206
1021
  msgid "Image ID"
1022
  msgstr "画像 ID"
1023
 
1024
+ #: core/fields/image.php:496
1025
  msgid "Add selected Images"
1026
  msgstr "選択した画像を追加する"
1027
 
1028
+ #: core/fields/image.php:525
1029
  msgid "Select Image"
1030
  msgstr "画像を選択する"
1031
 
1032
+ #: core/fields/number.php:21
1033
+ msgid "Number"
1034
+ msgstr "数値"
1035
+
1036
  #: core/fields/page_link.php:21
1037
  msgid "Page Link"
1038
  msgstr "ページリンク"
1039
 
1040
+ #: core/fields/page_link.php:70 core/fields/post_object.php:223
1041
+ #: core/fields/relationship.php:376 core/views/meta_box_location.php:48
 
 
1042
  msgid "Post Type"
1043
  msgstr "投稿タイプ"
1044
 
1045
+ #: core/fields/page_link.php:98 core/fields/post_object.php:274
1046
+ #: core/fields/select.php:216
 
1047
  msgid "Allow Null?"
1048
  msgstr "無を許可するか?"
1049
 
1050
+ #: core/fields/page_link.php:107 core/fields/page_link.php:126
1051
+ #: core/fields/post_object.php:283 core/fields/post_object.php:302
1052
+ #: core/fields/select.php:225 core/fields/select.php:244
1053
+ #: core/fields/wysiwyg.php:124 core/fields/wysiwyg.php:145
1054
+ #: core/views/meta_box_fields.php:183 core/views/meta_box_fields.php:205
 
 
 
1055
  msgid "Yes"
1056
  msgstr "はい"
1057
 
1058
+ #: core/fields/page_link.php:108 core/fields/page_link.php:127
1059
+ #: core/fields/post_object.php:284 core/fields/post_object.php:303
1060
+ #: core/fields/select.php:226 core/fields/select.php:245
1061
+ #: core/fields/wysiwyg.php:125 core/fields/wysiwyg.php:146
1062
+ #: core/views/meta_box_fields.php:184 core/views/meta_box_fields.php:206
 
 
 
1063
  msgid "No"
1064
  msgstr "いいえ"
1065
 
1066
+ #: core/fields/page_link.php:117 core/fields/post_object.php:293
1067
+ #: core/fields/select.php:235
 
1068
  msgid "Select multiple values?"
1069
  msgstr "複数の値を選択できるか?"
1070
 
1072
  msgid "Post Object"
1073
  msgstr "投稿オブジェクト"
1074
 
1075
+ #: core/fields/post_object.php:251 core/fields/relationship.php:405
 
1076
  msgid "Filter from Taxonomy"
1077
+ msgstr "タクソノミーでフィルタする"
1078
 
1079
  #: core/fields/radio.php:21
1080
  msgid "Radio Button"
1081
  msgstr "ラジオボタン"
1082
 
1083
+ #: core/fields/radio.php:161
 
 
 
 
 
 
 
1084
  msgid "Vertical"
1085
  msgstr "垂直"
1086
 
1087
+ #: core/fields/radio.php:162
1088
  msgid "Horizontal"
1089
  msgstr "水平"
1090
 
1092
  msgid "Relationship"
1093
  msgstr "関連"
1094
 
1095
+ #: core/fields/relationship.php:270
1096
  msgid "Search"
1097
  msgstr "検索"
1098
 
1099
+ #: core/fields/relationship.php:428
1100
  msgid "Maximum posts"
1101
  msgstr "最大投稿数"
1102
 
1104
  msgid "Repeater"
1105
  msgstr "繰り返し"
1106
 
1107
+ #: core/fields/repeater.php:314
 
 
 
 
 
1108
  msgid "Repeater Fields"
1109
  msgstr "繰り返しフィールド"
1110
 
1111
+ #: core/fields/repeater.php:486
1112
  msgid "Minimum Rows"
1113
  msgstr "最小行数"
1114
 
1115
+ #: core/fields/repeater.php:500
1116
  msgid "Maximum Rows"
1117
  msgstr "最大行数"
1118
 
1119
+ #: core/fields/repeater.php:524
1120
  msgid "Table (default)"
1121
  msgstr "テーブル (デフォルト)"
1122
 
1128
  msgid "Text"
1129
  msgstr "テキスト"
1130
 
1131
+ #: core/fields/text.php:79 core/fields/textarea.php:78
 
1132
  msgid "Formatting"
1133
  msgstr "フォーマット"
1134
 
1135
+ #: core/fields/text.php:80
1136
  msgid "Define how to render html tags"
1137
  msgstr "html タグの表示を決定する"
1138
 
1139
+ #: core/fields/text.php:89 core/fields/textarea.php:88
 
1140
  msgid "None"
1141
  msgstr "無"
1142
 
1143
+ #: core/fields/text.php:90 core/fields/textarea.php:90
 
1144
  msgid "HTML"
1145
  msgstr "HTML"
1146
 
1148
  msgid "Text Area"
1149
  msgstr "テキストエリア"
1150
 
1151
+ #: core/fields/textarea.php:79
1152
  msgid "Define how to render html tags / new lines"
1153
  msgstr "html タグ/新しい行の表示を決定する"
1154
 
1155
+ #: core/fields/textarea.php:89
1156
  msgid "auto &lt;br /&gt;"
1157
  msgstr "自動 &lt;br /&gt;"
1158
 
1172
  msgid "Wysiwyg Editor"
1173
  msgstr "Wysiwyg エディタ"
1174
 
1175
+ #: core/fields/wysiwyg.php:95
1176
  msgid "Toolbar"
1177
  msgstr "ツールバー"
1178
 
1179
+ #: core/fields/wysiwyg.php:106 core/views/meta_box_location.php:47
 
1180
  msgid "Basic"
1181
  msgstr "基本"
1182
 
1183
+ #: core/fields/wysiwyg.php:114
1184
  msgid "Show Media Upload Buttons?"
1185
  msgstr "メディアアップロードボタンを表示するか?"
1186
 
1187
+ #: core/fields/wysiwyg.php:133
1188
+ msgid "Run filter \"the_content\"?"
1189
+ msgstr "\"the_content\" フィルターを実行するか?"
1190
+
1191
+ #: core/fields/wysiwyg.php:134
1192
+ msgid "Enable this filter to use shortcodes within the WYSIWYG field"
1193
+ msgstr ""
1194
+ "WYSIWYG フィールドでショートコードを使用する場合は、このフィルターを有効にす"
1195
+ "る"
1196
+
1197
+ #: core/fields/wysiwyg.php:135
1198
+ msgid ""
1199
+ "Disable this filter if you encounter recursive template problems with "
1200
+ "plugins / themes"
1201
+ msgstr "プラグイン/テーマで問題が発生する場合は、このフィルターを無効にする"
1202
 
1203
+ #: core/views/meta_box_fields.php:54
1204
  msgid "Move to trash. Are you sure?"
1205
  msgstr "ゴミ箱に移動させようとしています。よろしいですか?"
1206
 
1207
+ #: core/views/meta_box_fields.php:55
1208
+ msgid "checked"
1209
+ msgstr "チェックされています"
1210
 
1211
+ #: core/views/meta_box_fields.php:56
1212
+ msgid "No toggle fields available"
1213
+ msgstr "利用できるトグルフィールドがありません"
1214
+
1215
+ #: core/views/meta_box_fields.php:72
1216
+ msgid "Field Key"
1217
+ msgstr "フィールドキー"
1218
 
1219
+ #: core/views/meta_box_fields.php:84
1220
+ msgid ""
1221
+ "No fields. Click the <strong>+ Add Field</strong> button to create your "
1222
+ "first field."
1223
+ msgstr ""
1224
+ "フィールドはありません。<strong>+ 新規追加</strong>ボタンをクリックして最初の"
1225
+ "フィールドを作成してください"
1226
+
1227
+ #: core/views/meta_box_fields.php:163
1228
  msgid "Instructions for authors. Shown when submitting data"
1229
+ msgstr "作成者向けヒント。編集時に表示されます"
1230
 
1231
+ #: core/views/meta_box_fields.php:175
1232
  msgid "Required?"
1233
  msgstr "必須か?"
1234
 
1235
+ #: core/views/meta_box_fields.php:197
1236
+ msgid "Conditional Logic"
1237
+ msgstr "条件判定"
1238
+
1239
+ #: core/views/meta_box_fields.php:242 core/views/meta_box_location.php:96
1240
+ msgid "is equal to"
1241
+ msgstr "等しい"
1242
+
1243
+ #: core/views/meta_box_fields.php:243 core/views/meta_box_location.php:97
1244
+ msgid "is not equal to"
1245
+ msgstr "等しくない"
1246
+
1247
+ #: core/views/meta_box_fields.php:259
1248
+ msgid "Show this field when"
1249
+ msgstr "表示する条件"
1250
+
1251
+ #: core/views/meta_box_fields.php:265 core/views/meta_box_location.php:127
1252
+ msgid "all"
1253
+ msgstr "全て"
1254
+
1255
+ #: core/views/meta_box_fields.php:266 core/views/meta_box_location.php:128
1256
+ msgid "any"
1257
+ msgstr "任意"
1258
+
1259
+ #: core/views/meta_box_fields.php:269
1260
+ msgid "these rules are met"
1261
+ msgstr "これらの条件を満たす"
1262
+
1263
+ #: core/views/meta_box_fields.php:297
1264
  msgid "+ Add Field"
1265
+ msgstr "+ フィールドを追加"
1266
 
1267
  #: core/views/meta_box_location.php:35
1268
  msgid "Rules"
1269
  msgstr "ルール"
1270
 
1271
  #: core/views/meta_box_location.php:36
1272
+ msgid ""
1273
+ "Create a set of rules to determine which edit screens will use these "
1274
+ "advanced custom fields"
1275
+ msgstr ""
1276
+ "どの編集画面でカスタムフィールドを表示するかを決定するルールを作成します。"
1277
 
1278
  #: core/views/meta_box_location.php:49
1279
  msgid "Logged in User Type"
1280
  msgstr "ログインしているユーザーのタイプ"
1281
 
1282
+ #: core/views/meta_box_location.php:51 core/views/meta_box_location.php:52
 
 
 
 
1283
  msgid "Page"
1284
  msgstr "ページ"
1285
 
1286
  #: core/views/meta_box_location.php:53
1287
+ msgid "Type"
1288
+ msgstr "タイプ"
1289
 
1290
  #: core/views/meta_box_location.php:54
1291
+ msgid "Parent"
1292
+ msgstr ""
1293
 
1294
  #: core/views/meta_box_location.php:55
1295
+ msgid "Template"
1296
+ msgstr "テンプレート"
 
 
 
 
1297
 
1298
+ #: core/views/meta_box_location.php:57 core/views/meta_box_location.php:58
1299
  msgid "Post"
1300
  msgstr "投稿"
1301
 
1302
  #: core/views/meta_box_location.php:59
1303
+ msgid "Category"
1304
+ msgstr "カテゴリー"
1305
 
1306
+ #: core/views/meta_box_location.php:60 core/views/meta_box_options.php:100
1307
+ msgid "Format"
1308
+ msgstr "フォーマット"
1309
 
1310
  #: core/views/meta_box_location.php:61
1311
+ msgid "Taxonomy"
1312
+ msgstr "タクソノミー"
1313
 
1314
  #: core/views/meta_box_location.php:63
1315
  msgid "Other"
1317
 
1318
  #: core/views/meta_box_location.php:64
1319
  msgid "Taxonomy (Add / Edit)"
1320
+ msgstr "タクソノミー(追加/編集)"
1321
 
1322
  #: core/views/meta_box_location.php:65
1323
  msgid "User (Add / Edit)"
1327
  msgid "Media (Edit)"
1328
  msgstr "メディア(編集)"
1329
 
 
 
 
 
 
 
 
 
1330
  #: core/views/meta_box_location.php:121
1331
  msgid "match"
1332
  msgstr "一致する"
1333
 
 
 
 
 
 
 
 
 
1334
  #: core/views/meta_box_location.php:131
1335
  msgid "of the above"
1336
  msgstr "上述の"
1344
  msgstr "順序番号"
1345
 
1346
  #: core/views/meta_box_options.php:24
1347
+ msgid "Field groups are created in order <br />from lowest to highest"
1348
  msgstr "フィールドグループは、<br />低いほうから高いほうへ作成されます"
1349
 
1350
  #: core/views/meta_box_options.php:40
1364
  msgstr "編集画面で<b>表示しない</b>アイテムを<b>選択する</b>"
1365
 
1366
  #: core/views/meta_box_options.php:82
1367
+ msgid ""
1368
+ "If multiple field groups appear on an edit screen, the first field group's "
1369
+ "options will be used. (the one with the lowest order number)"
1370
+ msgstr ""
1371
+ "編集画面に複数のフィールドグループが表示される場合、最初の(=順序番号の最も低"
1372
+ "い)フィールドグループのオプションが使用されます。"
1373
 
1374
  #: core/views/meta_box_options.php:92
1375
  msgid "Content Editor"
1388
  msgstr "コメント"
1389
 
1390
  #: core/views/meta_box_options.php:97
1391
+ msgid "Revisions"
1392
+ msgstr "リビジョン"
1393
+
1394
+ #: core/views/meta_box_options.php:98
1395
  msgid "Slug"
1396
  msgstr "スラッグ"
1397
 
1398
+ #: core/views/meta_box_options.php:99
1399
  msgid "Author"
1400
  msgstr "作成者"
1401
 
1402
+ #: core/views/meta_box_options.php:101
 
 
 
 
1403
  msgid "Featured Image"
1404
  msgstr "アイキャッチ画像"
1405
 
1406
+ #: core/views/meta_box_options.php:102
1407
+ msgid "Categories"
1408
+ msgstr "カテゴリー"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1409
 
1410
+ #: core/views/meta_box_options.php:103
1411
+ msgid "Tags"
1412
+ msgstr "タグ"
1413
 
1414
+ #: core/views/meta_box_options.php:104
1415
+ msgid "Send Trackbacks"
1416
+ msgstr "トラックバック"
readme.txt CHANGED
@@ -101,6 +101,19 @@ http://support.advancedcustomfields.com/
101
 
102
  == Changelog ==
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  = 4.0.3 =
105
  * [Fixed] Fix bug when appending taxonomy terms - http://support.advancedcustomfields.com/discussion/5522/append-taxonomies
106
  * [Fixed] Fix embed shortcode for WYSIWYG field - http://support.advancedcustomfields.com/discussion/5503/embed-video-wysiwyg-field-doesn039t-work-since-update
101
 
102
  == Changelog ==
103
 
104
+ = 4.1.0 =
105
+ * [Added] Field group: location rules can now be grouped into AND / OR statements
106
+ * [Added] Relationship field: Add option for filters (search / post_type)
107
+ * [Added] Relationship field: Add option for elements (featured image / title / post_type)
108
+ * [Added] Relationship field: Add post_id and field parameters to both ajax filter functions
109
+ * [Added] Date Picker field: Add options for first_day
110
+ * [Added] Date Picker field: Add text strings for translation
111
+ * [Added] Select field: Add support for multiple default values
112
+ * [Added] Checkbox field: Add support for multiple default values - http://support.advancedcustomfields.com/discussion/5635/checkbox-field-setting-multiple-defaults
113
+ * [Updated] Minor JS + CSS improvements
114
+ * [Added] Added free Add-ons to the admin page
115
+ * [Fixed] Fixed minor bugs
116
+
117
  = 4.0.3 =
118
  * [Fixed] Fix bug when appending taxonomy terms - http://support.advancedcustomfields.com/discussion/5522/append-taxonomies
119
  * [Fixed] Fix embed shortcode for WYSIWYG field - http://support.advancedcustomfields.com/discussion/5503/embed-video-wysiwyg-field-doesn039t-work-since-update