Advanced Custom Fields - Version 4.2.2

Version Description

  • Field group: Added 'High (after title)' position for a metabox - http://support.advancedcustomfields.com/forums/topic/position-after-title-solution-inside/
  • Relationship field: Fixed bug with 'exclude_from_search' post types
  • Image / File field: Improved edit popup efficiency and fixed bug when 'upload' is last active mode - http://support.advancedcustomfields.com/forums/topic/edit-image-only-shows-add-new-screen/
  • JS: Added un compressed input.js file
  • JS: Fixed but with options page / taxonomy field - http://support.advancedcustomfields.com/forums/topic/checkbox-issues/
  • Language: Updated Persian Translation - thanks to Ghaem Omidi
Download this release

Release Info

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

Code changes from version 4.2.1 to 4.2.2

acf.php CHANGED
File without changes
core/controllers/input.php CHANGED
@@ -195,6 +195,37 @@ class acf_input
195
  // foreach($acfs as $acf)
196
  }
197
  // if($acfs)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  }
199
 
200
 
195
  // foreach($acfs as $acf)
196
  }
197
  // if($acfs)
198
+
199
+
200
+ // Allow 'acf_after_title' metabox position
201
+ add_action('edit_form_after_title', array($this, 'edit_form_after_title'));
202
+ }
203
+
204
+
205
+ /*
206
+ * edit_form_after_title
207
+ *
208
+ * This action will allow ACF to render metaboxes after the title
209
+ *
210
+ * @type action
211
+ * @date 17/08/13
212
+ *
213
+ * @param N/A
214
+ * @return N/A
215
+ */
216
+
217
+ function edit_form_after_title()
218
+ {
219
+ // globals
220
+ global $post, $wp_meta_boxes;
221
+
222
+
223
+ // render
224
+ do_meta_boxes( get_current_screen(), 'acf_after_title', $post);
225
+
226
+
227
+ // clean up
228
+ unset( $wp_meta_boxes['post']['acf_after_title'] );
229
  }
230
 
231
 
core/fields/relationship.php CHANGED
@@ -830,7 +830,7 @@ class acf_field_relationship extends acf_field
830
  $posts = get_posts(array(
831
  'numberposts' => -1,
832
  'post__in' => $post_ids,
833
- 'post_type' => 'any',
834
  'post_status' => 'any',
835
  ));
836
 
830
  $posts = get_posts(array(
831
  'numberposts' => -1,
832
  'post__in' => $post_ids,
833
+ 'post_type' => apply_filters('acf/get_post_types', array()),
834
  'post_status' => 'any',
835
  ));
836
 
core/fields/tab.php CHANGED
@@ -65,8 +65,9 @@ class acf_field_tab extends acf_field
65
  <label><?php _e("Instructions",'acf'); ?></label>
66
  </td>
67
  <td>
68
- <p><?php _e("All fields proceeding this \"tab field\" (or until another \"tab field\" is defined) will appear grouped on the edit screen.",'acf'); ?></p>
69
- <p><?php _e("You can use multiple tabs to break up your fields into sections.",'acf'); ?></p>
 
70
  </td>
71
  </tr>
72
  <?php
65
  <label><?php _e("Instructions",'acf'); ?></label>
66
  </td>
67
  <td>
68
+ <p><?php _e("Use \"Tab Fields\" to better organize your edit screen by grouping your fields together under separate tab headings.",'acf'); ?></p>
69
+ <p><?php _e("All the fields following this \"tab field\" (or until another \"tab field\" is defined) will be grouped together.",'acf'); ?></p>
70
+ <p><?php _e("Use multiple tabs to divide your fields into sections.",'acf'); ?></p>
71
  </td>
72
  </tr>
73
  <?php
core/views/meta_box_options.php CHANGED
@@ -49,9 +49,11 @@ $options = apply_filters('acf/field_group/get_options', array(), $post->ID);
49
  'name' => 'options[position]',
50
  'value' => $options['position'],
51
  'choices' => array(
52
- 'normal' => __("Normal",'acf'),
53
- 'side' => __("Side",'acf'),
54
- )
 
 
55
  ));
56
 
57
  ?>
49
  'name' => 'options[position]',
50
  'value' => $options['position'],
51
  'choices' => array(
52
+ 'acf_after_title' => __("High (after title)",'acf'),
53
+ 'normal' => __("Normal (after content)",'acf'),
54
+ 'side' => __("Side",'acf'),
55
+ ),
56
+ 'default_value' => 'normal'
57
  ));
58
 
59
  ?>
js/field-group.js ADDED
@@ -0,0 +1,1216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var acf = {
2
+ post_id : 0,
3
+ nonce : '',
4
+ admin_url : '',
5
+ ajaxurl : '',
6
+ text : {},
7
+ l10n : {},
8
+ helpers : {
9
+ uniqid : function(){},
10
+ sortable : function(){},
11
+ create_field : function(){}
12
+ },
13
+ conditional_logic : {
14
+ fields : [],
15
+ setup : function(){}
16
+ },
17
+ location : {
18
+ $el : null,
19
+ init : function(){},
20
+ add_rule : function(){},
21
+ remove_rule : function(){},
22
+ add_group : function(){},
23
+ remove_group : function(){}
24
+ }
25
+ };
26
+
27
+ (function($){
28
+
29
+
30
+ /*
31
+ * Exists
32
+ *
33
+ * @since 3.1.6
34
+ * @description returns true or false on a element's existance
35
+ */
36
+
37
+ $.fn.exists = function()
38
+ {
39
+ return $(this).length>0;
40
+ };
41
+
42
+
43
+ /*
44
+ * Sortable Helper
45
+ *
46
+ * @description: keeps widths of td's inside a tr
47
+ * @since 3.5.1
48
+ * @created: 10/11/12
49
+ */
50
+
51
+ acf.helpers.sortable = function(e, ui)
52
+ {
53
+ ui.children().each(function(){
54
+ $(this).width($(this).width());
55
+ });
56
+ return ui;
57
+ };
58
+
59
+
60
+ /*
61
+ * acf.helpers.uniqid
62
+ *
63
+ * @description: JS equivelant of PHP uniqid
64
+ * @since: 3.6
65
+ * @created: 7/03/13
66
+ */
67
+
68
+ acf.helpers.uniqid = function(prefix, more_entropy)
69
+ {
70
+ // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
71
+ // + revised by: Kankrelune (http://www.webfaktory.info/)
72
+ // % note 1: Uses an internal counter (in php_js global) to avoid collision
73
+ // * example 1: uniqid();
74
+ // * returns 1: 'a30285b160c14'
75
+ // * example 2: uniqid('foo');
76
+ // * returns 2: 'fooa30285b1cd361'
77
+ // * example 3: uniqid('bar', true);
78
+ // * returns 3: 'bara20285b23dfd1.31879087'
79
+ if (typeof prefix == 'undefined') {
80
+ prefix = "";
81
+ }
82
+
83
+ var retId;
84
+ var formatSeed = function (seed, reqWidth) {
85
+ seed = parseInt(seed, 10).toString(16); // to hex str
86
+ if (reqWidth < seed.length) { // so long we split
87
+ return seed.slice(seed.length - reqWidth);
88
+ }
89
+ if (reqWidth > seed.length) { // so short we pad
90
+ return Array(1 + (reqWidth - seed.length)).join('0') + seed;
91
+ }
92
+ return seed;
93
+ };
94
+
95
+ // BEGIN REDUNDANT
96
+ if (!this.php_js) {
97
+ this.php_js = {};
98
+ }
99
+ // END REDUNDANT
100
+ if (!this.php_js.uniqidSeed) { // init seed with big random int
101
+ this.php_js.uniqidSeed = Math.floor(Math.random() * 0x75bcd15);
102
+ }
103
+ this.php_js.uniqidSeed++;
104
+
105
+ retId = prefix; // start with prefix, add current milliseconds hex string
106
+ retId += formatSeed(parseInt(new Date().getTime() / 1000, 10), 8);
107
+ retId += formatSeed(this.php_js.uniqidSeed, 5); // add seed hex string
108
+ if (more_entropy) {
109
+ // for more entropy we add a float lower to 10
110
+ retId += (Math.random() * 10).toFixed(8).toString();
111
+ }
112
+
113
+ return retId;
114
+
115
+ };
116
+
117
+
118
+ /*
119
+ * Submit Post
120
+ *
121
+ * Run validation and return true|false accordingly
122
+ *
123
+ * @type function
124
+ * @date 1/03/2011
125
+ *
126
+ * @param N/A
127
+ * @return N/A
128
+ */
129
+
130
+ $(document).on('submit', '#post', function(){
131
+
132
+ // validate post title
133
+ var title = $('#titlewrap #title');
134
+
135
+ if( !title.val() )
136
+ {
137
+ alert( acf.l10n.title );
138
+
139
+ title.focus();
140
+
141
+ return false;
142
+ }
143
+
144
+
145
+ });
146
+
147
+
148
+ /*
149
+ * Place Confirm message on Publish trash button
150
+ *
151
+ * @since 3.1.6
152
+ * @description
153
+ */
154
+
155
+ $(document).on('click', '#submit-delete', function(){
156
+
157
+ var response = confirm( acf.l10n.move_to_trash );
158
+ if( !response )
159
+ {
160
+ return false;
161
+ }
162
+
163
+ });
164
+
165
+
166
+ /*
167
+ * acf/update_field_options
168
+ *
169
+ * @since 3.1.6
170
+ * @description Load in the opions html
171
+ */
172
+
173
+ $(document).on('change', '#acf_fields tr.field_type select', function(){
174
+
175
+ // vars
176
+ var select = $(this),
177
+ tbody = select.closest('tbody'),
178
+ field = tbody.closest('.field'),
179
+ field_type = field.attr('data-type'),
180
+ field_key = field.attr('data-id'),
181
+ val = select.val();
182
+
183
+
184
+
185
+ // update data atts
186
+ field.removeClass('field_type-' + field_type).addClass('field_type-' + val);
187
+ field.attr('data-type', val);
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
+ }
195
+
196
+
197
+ // show field options if they already exist
198
+ if( tbody.children( 'tr.field_option_' + val ).exists() )
199
+ {
200
+ // hide + disable options
201
+ tbody.children('tr.field_option').hide().find('[name]').attr('disabled', 'true');
202
+
203
+ // show and enable options
204
+ tbody.children( 'tr.field_option_' + val ).show().find('[name]').removeAttr('disabled');
205
+ }
206
+ else
207
+ {
208
+ // add loading gif
209
+ var tr = $('<tr"><td class="label"></td><td><div class="acf-loading"></div></td></tr>');
210
+
211
+ // hide current options
212
+ tbody.children('tr.field_option').hide().find('[name]').attr('disabled', 'true');
213
+
214
+
215
+ // append tr
216
+ if( tbody.children('tr.conditional-logic').exists() )
217
+ {
218
+ tbody.children('tr.conditional-logic').before(tr);
219
+ }
220
+ else
221
+ {
222
+ tbody.children('tr.field_save').before(tr);
223
+ }
224
+
225
+
226
+ var ajax_data = {
227
+ 'action' : 'acf/field_group/render_options',
228
+ 'post_id' : acf.post_id,
229
+ 'field_key' : select.attr('name'),
230
+ 'field_type' : val,
231
+ 'nonce' : acf.nonce
232
+ };
233
+
234
+ $.ajax({
235
+ url: ajaxurl,
236
+ data: ajax_data,
237
+ type: 'post',
238
+ dataType: 'html',
239
+ success: function(html){
240
+
241
+ if( ! html )
242
+ {
243
+ tr.remove();
244
+ return;
245
+ }
246
+
247
+ tr.replaceWith(html);
248
+
249
+ }
250
+ });
251
+ }
252
+
253
+ });
254
+
255
+
256
+ /*
257
+ * Update Names
258
+ *
259
+ * @description:
260
+ * @since 3.5.1
261
+ * @created: 15/10/12
262
+ */
263
+
264
+ $.fn.update_names = function()
265
+ {
266
+ var field = $(this),
267
+ old_id = field.attr('data-id'),
268
+ new_id = 'field_' + acf.helpers.uniqid();
269
+
270
+
271
+ // give field a new id
272
+ field.attr('data-id', new_id);
273
+
274
+
275
+ // update class
276
+ field.attr('class', field.attr('class').replace(old_id, new_id) );
277
+
278
+
279
+ // update field key column
280
+ field.find('.field_meta td.field_key').text( new_id );
281
+
282
+
283
+ // update attributes
284
+ field.find('[id*="' + old_id + '"]').each(function()
285
+ {
286
+ $(this).attr('id', $(this).attr('id').replace(old_id, new_id) );
287
+ });
288
+
289
+ field.find('[name*="' + old_id + '"]').each(function()
290
+ {
291
+ $(this).attr('name', $(this).attr('name').replace(old_id, new_id) );
292
+ });
293
+
294
+ };
295
+
296
+
297
+ /*
298
+ * update_order_numbers
299
+ *
300
+ * @description:
301
+ * @since 3.5.1
302
+ * @created: 15/10/12
303
+ */
304
+
305
+ function update_order_numbers(){
306
+
307
+ $('#acf_fields .fields').each(function(){
308
+ $(this).children('.field').each(function(i){
309
+ $(this).find('td.field_order .circle').first().html(i+1);
310
+ });
311
+ });
312
+
313
+ }
314
+
315
+
316
+ /*
317
+ * Edit Field
318
+ *
319
+ * @description:
320
+ * @since 3.5.1
321
+ * @created: 13/10/12
322
+ */
323
+
324
+ $(document).on('click', '#acf_fields a.acf_edit_field', function(){
325
+
326
+ var field = $(this).closest('.field');
327
+
328
+ if( field.hasClass('form_open') )
329
+ {
330
+ field.removeClass('form_open');
331
+ $(document).trigger('acf/field_form-close', field);
332
+ }
333
+ else
334
+ {
335
+ field.addClass('form_open');
336
+ $(document).trigger('acf/field_form-open', field);
337
+ }
338
+
339
+ field.children('.field_form_mask').animate({'height':'toggle'}, 250);
340
+
341
+ });
342
+
343
+
344
+ /*
345
+ * Delete Field
346
+ *
347
+ * @description:
348
+ * @since 3.5.1
349
+ * @created: 13/10/12
350
+ */
351
+
352
+ $(document).on('click', '#acf_fields a.acf_delete_field', function(){
353
+
354
+ // vars
355
+ var a = $(this),
356
+ field = a.closest('.field'),
357
+ fields = field.closest('.fields'),
358
+ temp = $('<div style="height:' + field.height() + 'px"></div>');
359
+
360
+
361
+ // fade away
362
+ field.animate({'left' : '50px', 'opacity' : 0}, 250, function(){
363
+
364
+ field.before(temp);
365
+ field.remove();
366
+
367
+
368
+ // no more fields, show the message
369
+ if( fields.children('.field').length <= 1 )
370
+ {
371
+ temp.remove();
372
+ fields.children('.no_fields_message').show();
373
+ }
374
+ else
375
+ {
376
+ temp.animate({'height' : 0 }, 250, function(){
377
+ temp.remove();
378
+ });
379
+ }
380
+
381
+ update_order_numbers();
382
+
383
+ });
384
+
385
+
386
+ });
387
+
388
+
389
+ /*
390
+ * Duplicate Field
391
+ *
392
+ * @description:
393
+ * @since 3.5.1
394
+ * @created: 13/10/12
395
+ */
396
+
397
+ $(document).on('click', '#acf_fields a.acf_duplicate_field', function(){
398
+
399
+ // vars
400
+ var a = $(this),
401
+ field = a.closest('.field'),
402
+ new_field = null;
403
+
404
+
405
+ // save select values
406
+ field.find('select').each(function(){
407
+ $(this).attr( 'data-val', $(this).val() );
408
+ });
409
+
410
+
411
+ // clone field
412
+ new_field = field.clone();
413
+
414
+
415
+ // update names
416
+ new_field.update_names();
417
+ new_field.find('.field:not(.field_key-field_clone)').each(function(){
418
+ $(this).update_names();
419
+ });
420
+
421
+
422
+ // add new field
423
+ field.after( new_field );
424
+
425
+
426
+ // open up form
427
+ if( field.hasClass('form_open') )
428
+ {
429
+ field.find('.acf_edit_field').first().trigger('click');
430
+ }
431
+ else
432
+ {
433
+ new_field.find('.acf_edit_field').first().trigger('click');
434
+ }
435
+
436
+
437
+ // update new_field label / name
438
+ var label = new_field.find('tr.field_label:first input[type="text"]'),
439
+ name = new_field.find('tr.field_name:first input[type="text"]');
440
+
441
+
442
+ // set select values
443
+ new_field.find('select').each(function(){
444
+ $(this).val( $(this).attr('data-val') ).trigger('change');
445
+ });
446
+
447
+
448
+ name.val('');
449
+ label.val( label.val() + ' (' + acf.l10n.copy + ')' );
450
+ label.trigger('blur').trigger('keyup');
451
+
452
+
453
+ // update order numbers
454
+ update_order_numbers();
455
+
456
+ });
457
+
458
+
459
+ /*
460
+ * Add Field
461
+ *
462
+ * @description:
463
+ * @since 3.5.1
464
+ * @created: 13/10/12
465
+ */
466
+
467
+ $(document).on('click', '#acf_fields #add_field', function(){
468
+
469
+ var fields = $(this).closest('.table_footer').siblings('.fields');
470
+
471
+
472
+ // clone last tr
473
+ var new_field = fields.children('.field_key-field_clone').clone();
474
+
475
+
476
+ // update names
477
+ new_field.update_names();
478
+
479
+
480
+ // show
481
+ new_field.show();
482
+
483
+
484
+ // append to table
485
+ fields.children('.field_key-field_clone').before(new_field);
486
+
487
+
488
+ // remove no fields message
489
+ if(fields.children('.no_fields_message').exists())
490
+ {
491
+ fields.children('.no_fields_message').hide();
492
+ }
493
+
494
+
495
+ // clear name
496
+ new_field.find('tr.field_type select').trigger('change');
497
+ new_field.find('.field_form input[type="text"]').val('');
498
+
499
+
500
+ // focus after form has dropped down
501
+ // - this prevents a strange rendering bug in Firefox
502
+ setTimeout(function(){
503
+ new_field.find('.field_form input[type="text"]').first().focus();
504
+ }, 500);
505
+
506
+
507
+ // open up form
508
+ new_field.find('a.acf_edit_field').first().trigger('click');
509
+
510
+
511
+ // update order numbers
512
+ update_order_numbers();
513
+
514
+ return false;
515
+
516
+
517
+ });
518
+
519
+
520
+ /*
521
+ * Auto Complete Field Name
522
+ *
523
+ * @description:
524
+ * @since 3.5.1
525
+ * @created: 15/10/12
526
+ */
527
+
528
+ $(document).on('blur', '#acf_fields tr.field_label input.label', 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',
552
+ 'å': 'a',
553
+ 'ö': 'o',
554
+ 'ø': 'o',
555
+ 'é': 'e',
556
+ 'ë': 'e',
557
+ 'ü': 'u',
558
+ 'ó': 'o',
559
+ 'ő': 'o',
560
+ 'ú': 'u',
561
+ 'é': 'e',
562
+ 'á': 'a',
563
+ 'ű': 'u',
564
+ 'í': 'i',
565
+ ' ' : '_',
566
+ '\'' : ''
567
+ };
568
+
569
+ $.each( replace, function(k, v){
570
+ var regex = new RegExp( k, 'g' );
571
+ val = val.replace( regex, v );
572
+ });
573
+
574
+
575
+ val = val.toLowerCase();
576
+ $name.val( val );
577
+ $name.trigger('keyup');
578
+ }
579
+
580
+ });
581
+
582
+
583
+ /*
584
+ * Update field meta
585
+ *
586
+ * @description:
587
+ * @since 3.5.1
588
+ * @created: 15/10/12
589
+ */
590
+
591
+ $(document).on('keyup', '#acf_fields .field_form tr.field_label input.label', function(){
592
+
593
+ var val = $(this).val();
594
+ var name = $(this).closest('.field').find('td.field_label strong a').first().html(val);
595
+
596
+ });
597
+
598
+ $(document).on('keyup', '#acf_fields .field_form tr.field_name input.name', function(){
599
+
600
+ var val = $(this).val();
601
+ var name = $(this).closest('.field').find('td.field_name').first().html(val);
602
+
603
+ });
604
+
605
+ $(document).on('change', '#acf_fields .field_form tr.field_type select', function(){
606
+
607
+ var val = $(this).val();
608
+ var label = $(this).find('option[value="' + val + '"]').html();
609
+
610
+ $(this).closest('.field').find('td.field_type').first().html(label);
611
+
612
+ });
613
+
614
+
615
+ // sortable
616
+ $(document).on('mouseover', '#acf_fields td.field_order', function(){
617
+
618
+ // vars
619
+ var fields = $(this).closest('.fields');
620
+
621
+
622
+ if( fields.hasClass('sortable') )
623
+ {
624
+ return false;
625
+ }
626
+
627
+
628
+ fields.addClass('sortable').sortable({
629
+ update: function(event, ui){
630
+ update_order_numbers();
631
+ },
632
+ handle: 'td.field_order'
633
+ });
634
+ });
635
+
636
+
637
+ /*
638
+ * Setup Location Rules
639
+ *
640
+ * @description:
641
+ * @since 3.5.1
642
+ * @created: 15/10/12
643
+ */
644
+
645
+ $(document).ready(function(){
646
+
647
+ acf.location.init();
648
+
649
+ });
650
+
651
+
652
+ /*
653
+ * location
654
+ *
655
+ * {description}
656
+ *
657
+ * @since: 4.0.3
658
+ * @created: 13/04/13
659
+ */
660
+
661
+ acf.location = {
662
+ $el : null,
663
+ init : function(){
664
+
665
+ // vars
666
+ var _this = this;
667
+
668
+
669
+ // $el
670
+ _this.$el = $('#acf_location');
671
+
672
+
673
+ // add rule
674
+ _this.$el.on('click', '.location-add-rule', function(){
675
+
676
+ _this.add_rule( $(this).closest('tr') );
677
+
678
+ return false;
679
+
680
+ });
681
+
682
+
683
+ // remove rule
684
+ _this.$el.on('click', '.location-remove-rule', function(){
685
+
686
+ _this.remove_rule( $(this).closest('tr') );
687
+
688
+ return false;
689
+
690
+ });
691
+
692
+
693
+ // add rule
694
+ _this.$el.on('click', '.location-add-group', function(){
695
+
696
+ _this.add_group();
697
+
698
+ return false;
699
+
700
+ });
701
+
702
+
703
+ // change rule
704
+ _this.$el.on('change', '.param select', function(){
705
+
706
+ // vars
707
+ var $tr = $(this).closest('tr'),
708
+ rule_id = $tr.attr('data-id'),
709
+ $group = $tr.closest('.location-group'),
710
+ group_id = $group.attr('data-id'),
711
+ ajax_data = {
712
+ 'action' : "acf/field_group/render_location",
713
+ 'nonce' : acf.nonce,
714
+ 'rule_id' : rule_id,
715
+ 'group_id' : group_id,
716
+ 'value' : '',
717
+ 'param' : $(this).val()
718
+ };
719
+
720
+
721
+ // add loading gif
722
+ var div = $('<div class="acf-loading"></div>');
723
+ $tr.find('td.value').html( div );
724
+
725
+
726
+ // load location html
727
+ $.ajax({
728
+ url: acf.ajaxurl,
729
+ data: ajax_data,
730
+ type: 'post',
731
+ dataType: 'html',
732
+ success: function(html){
733
+
734
+ div.replaceWith(html);
735
+
736
+ }
737
+ });
738
+
739
+
740
+ });
741
+
742
+ },
743
+ add_rule : function( $tr ){
744
+
745
+ // vars
746
+ var $tr2 = $tr.clone(),
747
+ old_id = $tr2.attr('data-id'),
748
+ new_id = acf.helpers.uniqid();
749
+
750
+
751
+ // update names
752
+ $tr2.find('[name]').each(function(){
753
+
754
+ $(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
755
+ $(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
756
+
757
+ });
758
+
759
+
760
+ // update data-i
761
+ $tr2.attr( 'data-id', new_id );
762
+
763
+
764
+ // add tr
765
+ $tr.after( $tr2 );
766
+
767
+
768
+ return false;
769
+
770
+ },
771
+ remove_rule : function( $tr ){
772
+
773
+ // vars
774
+ var siblings = $tr.siblings('tr').length;
775
+
776
+
777
+ if( siblings == 0 )
778
+ {
779
+ // remove group
780
+ this.remove_group( $tr.closest('.location-group') );
781
+ }
782
+ else
783
+ {
784
+ // remove tr
785
+ $tr.remove();
786
+ }
787
+
788
+ },
789
+ add_group : function(){
790
+
791
+ // vars
792
+ var $group = this.$el.find('.location-group:last'),
793
+ $group2 = $group.clone(),
794
+ old_id = $group2.attr('data-id'),
795
+ new_id = acf.helpers.uniqid();
796
+
797
+
798
+ // update names
799
+ $group2.find('[name]').each(function(){
800
+
801
+ $(this).attr('name', $(this).attr('name').replace( old_id, new_id ));
802
+ $(this).attr('id', $(this).attr('id').replace( old_id, new_id ));
803
+
804
+ });
805
+
806
+
807
+ // update data-i
808
+ $group2.attr( 'data-id', new_id );
809
+
810
+
811
+ // update h4
812
+ $group2.find('h4').text( acf.l10n.or );
813
+
814
+
815
+ // remove all tr's except the first one
816
+ $group2.find('tr:not(:first)').remove();
817
+
818
+
819
+ // add tr
820
+ $group.after( $group2 );
821
+
822
+
823
+
824
+ },
825
+ remove_group : function( $group ){
826
+
827
+ $group.remove();
828
+
829
+ }
830
+ };
831
+
832
+
833
+
834
+ /*----------------------------------------------------------------------
835
+ *
836
+ * Document Ready
837
+ *
838
+ *---------------------------------------------------------------------*/
839
+
840
+ $(document).ready(function(){
841
+
842
+ // custom Publish metabox
843
+ $('#submitdiv #publish').attr('class', 'acf-button');
844
+ $('#submitdiv a.submitdelete').attr('class', 'delete-field-group').attr('id', 'submit-delete');
845
+
846
+ });
847
+
848
+
849
+
850
+ /*
851
+ * Screen Options
852
+ *
853
+ * @description:
854
+ * @created: 4/09/12
855
+ */
856
+
857
+ $(document).on('change', '#adv-settings input[name="show-field_key"]', function(){
858
+
859
+ if( $(this).val() == "1" )
860
+ {
861
+ $('#acf_fields table.acf').addClass('show-field_key');
862
+ }
863
+ else
864
+ {
865
+ $('#acf_fields table.acf').removeClass('show-field_key');
866
+ }
867
+
868
+ });
869
+
870
+
871
+ /*
872
+ * Conditional Logic
873
+ *
874
+ * @description:
875
+ * @since 3.5.1
876
+ * @created: 11/10/12
877
+ */
878
+
879
+ acf.helpers.create_field = function( options ){
880
+
881
+ // dafaults
882
+ var defaults = {
883
+ 'type' : 'text',
884
+ 'classname' : '',
885
+ 'name' : '',
886
+ 'value' : ''
887
+ };
888
+ options = $.extend(true, defaults, options);
889
+
890
+
891
+ // vars
892
+ var html = "";
893
+
894
+ if( options.type == "text" )
895
+ {
896
+ html += '<input class="text ' + options.classname + '" type="text" id="' + options.name + '" name="' + options.name + '" value="' + options.value + '" />';
897
+ }
898
+ else if( options.type == "select" )
899
+ {
900
+ html += '<select class="select ' + options.classname + '" id="' + options.name + '" name="' + options.name + '">';
901
+ if( options.choices )
902
+ {
903
+ for( var i = 0; i < options.choices.length; i++ )
904
+ {
905
+ var attr = '';
906
+ if( options.choices[i].value == options.value )
907
+ {
908
+ attr = 'selected="selected"';
909
+ }
910
+ html += '<option ' + attr + ' value="' + options.choices[i].value + '">' + options.choices[i].label + '</option>';
911
+ }
912
+ }
913
+ html += '</select>';
914
+ }
915
+
916
+ html = $(html);
917
+
918
+ return html;
919
+
920
+ };
921
+
922
+ $(document).on('acf/field_form-open', function(e, field){
923
+
924
+ // populate fields
925
+ acf.conditional_logic.setup();
926
+
927
+
928
+ $(field).find('.conditional-logic-field').each(function(){
929
+
930
+ var val = $(this).val(),
931
+ name = $(this).attr('name'),
932
+ choices = [];
933
+
934
+
935
+ // populate choices
936
+ if( acf.conditional_logic.fields )
937
+ {
938
+ for( var i = 0; i < acf.conditional_logic.fields.length; i++ )
939
+ {
940
+ choices.push({
941
+ value : acf.conditional_logic.fields[i].id,
942
+ label : acf.conditional_logic.fields[i].label
943
+ });
944
+ }
945
+ }
946
+
947
+
948
+ // empty?
949
+ if( choices.length == 0 )
950
+ {
951
+ choices.push({
952
+ 'value' : 'null',
953
+ 'label' : acf.l10n.conditional_no_fields
954
+ });
955
+ }
956
+
957
+
958
+ // create select
959
+ var select = acf.helpers.create_field({
960
+ 'type' : 'select',
961
+ 'classname' : 'conditional-logic-field',
962
+ 'name' : name,
963
+ 'value' : val,
964
+ 'choices' : choices
965
+ });
966
+
967
+
968
+ $(this).replaceWith( select );
969
+
970
+ select.trigger('change');
971
+
972
+ });
973
+
974
+ });
975
+
976
+
977
+
978
+ /*
979
+ * Toggle Conditional Logic
980
+ *
981
+ * @description:
982
+ * @since 3.5.1
983
+ * @created: 14/10/12
984
+ */
985
+
986
+ $(document).on('change', 'tr.conditional-logic input[type="radio"]', function(){
987
+
988
+ if( $(this).val() == "1" )
989
+ {
990
+ $(this).closest('tr.conditional-logic').find('.contional-logic-rules-wrapper').show();
991
+ }
992
+ else
993
+ {
994
+ $(this).closest('tr.conditional-logic').find('.contional-logic-rules-wrapper').hide();
995
+ }
996
+
997
+ });
998
+
999
+
1000
+ /*
1001
+ * Conditional logic: Change field
1002
+ *
1003
+ * @description:
1004
+ * @since 3.5.1
1005
+ * @created: 14/10/12
1006
+ */
1007
+
1008
+ $(document).on('change', 'select.conditional-logic-field', function(){
1009
+
1010
+ // vars
1011
+ var id = $(this).val(),
1012
+ field = $('#acf_fields .field_key-' + id),
1013
+ type = field.attr('data-type'),
1014
+ conditional_function = $(this).closest('tr').find('.conditional-logic-value'),
1015
+ choices = [];
1016
+
1017
+
1018
+ // populate choices
1019
+ if( type == "true_false" )
1020
+ {
1021
+ choices = [
1022
+ { value : 1, label : acf.l10n.checked }
1023
+ ];
1024
+
1025
+ }
1026
+ else if( type == "select" || type == "checkbox" || type == "radio" )
1027
+ {
1028
+ var field_choices = field.find('.field_option-choices').val().split("\n");
1029
+
1030
+ if( field_choices )
1031
+ {
1032
+ for( var i = 0; i < field_choices.length; i++ )
1033
+ {
1034
+ var choice = field_choices[i].split(':');
1035
+
1036
+ var label = choice[0];
1037
+ if( choice[1] )
1038
+ {
1039
+ label = choice[1];
1040
+ }
1041
+
1042
+ choices.push({
1043
+ 'value' : $.trim( choice[0] ),
1044
+ 'label' : $.trim( label )
1045
+ });
1046
+
1047
+ }
1048
+ }
1049
+
1050
+ }
1051
+
1052
+
1053
+ // create select
1054
+ var select = acf.helpers.create_field({
1055
+ 'type' : 'select',
1056
+ 'classname' : 'conditional-logic-value',
1057
+ 'name' : conditional_function.attr('name'),
1058
+ 'value' : conditional_function.val(),
1059
+ 'choices' : choices
1060
+ });
1061
+
1062
+ conditional_function.replaceWith( select );
1063
+
1064
+
1065
+ });
1066
+
1067
+
1068
+
1069
+ /*
1070
+ * setup_conditional_fields
1071
+ *
1072
+ * @description: populates the acf object with all available fields
1073
+ * @since 3.5.1
1074
+ * @created: 15/10/12
1075
+ */
1076
+
1077
+ acf.conditional_logic.setup = function()
1078
+ {
1079
+ // reset
1080
+ acf.conditional_logic.fields = [];
1081
+
1082
+
1083
+ // loop through fields
1084
+ $('#acf_fields > .inside > .fields > .field:not(.field_key-field_clone)').each(function(){
1085
+
1086
+ var field = $(this),
1087
+ id = field.attr('data-id'),
1088
+ //key = field.children('.input-field_key').val(),
1089
+ type = field.attr('data-type'),
1090
+ label = field.find('tr.field_label input').val();
1091
+
1092
+
1093
+ if( type == 'select' || type == 'checkbox' || type == 'true_false' || type == 'radio' )
1094
+ {
1095
+ acf.conditional_logic.fields.push({
1096
+ id : id,
1097
+ type : type,
1098
+ label : label
1099
+ });
1100
+ }
1101
+
1102
+
1103
+ });
1104
+
1105
+ };
1106
+
1107
+
1108
+ /*
1109
+ * Add conditional rule
1110
+ *
1111
+ * @description:
1112
+ * @since 3.5.1
1113
+ * @created: 15/10/12
1114
+ */
1115
+
1116
+ $(document).on('click', 'tr.conditional-logic .acf-button-add', function(){
1117
+
1118
+ // vars
1119
+ var old_tr = $(this).closest('tr'),
1120
+ new_tr = old_tr.clone(),
1121
+ old_i = parseFloat( new_tr.attr('data-i') ),
1122
+ new_i = old_i + 1;
1123
+
1124
+
1125
+ // update names
1126
+ new_tr.find('[name]').each(function(){
1127
+
1128
+ $(this).attr('name', $(this).attr('name').replace('[' + old_i + ']', '[' + new_i + ']') );
1129
+ $(this).attr('id', $(this).attr('id').replace('[' + old_i + ']', '[' + new_i + ']') );
1130
+
1131
+ });
1132
+
1133
+
1134
+ // update data-i
1135
+ new_tr.attr('data-i', new_i);
1136
+
1137
+
1138
+ // add tr
1139
+ old_tr.after( new_tr );
1140
+
1141
+
1142
+ // remove disabled
1143
+ old_tr.closest('table').removeClass('remove-disabled');
1144
+
1145
+
1146
+ return false;
1147
+
1148
+ });
1149
+
1150
+
1151
+ /*
1152
+ * Remove conditional rule
1153
+ *
1154
+ * @description:
1155
+ * @since 3.5.1
1156
+ * @created: 15/10/12
1157
+ */
1158
+
1159
+ $(document).on('click', 'tr.conditional-logic .acf-button-remove', function(){
1160
+
1161
+ var table = $(this).closest('table');
1162
+
1163
+ // validate
1164
+ if( table.hasClass('remove-disabled') )
1165
+ {
1166
+ return false;
1167
+ }
1168
+
1169
+
1170
+ // remove tr
1171
+ $(this).closest('tr').remove();
1172
+
1173
+
1174
+ // add clas to table
1175
+ if( table.find('tr').length <= 1 )
1176
+ {
1177
+ table.addClass('remove-disabled');
1178
+ }
1179
+
1180
+
1181
+ return false;
1182
+
1183
+ });
1184
+
1185
+
1186
+ /*
1187
+ * Field: Radio
1188
+ *
1189
+ * Simple toggle for the radio 'other_choice' option
1190
+ *
1191
+ * @type function
1192
+ * @date 1/07/13
1193
+ */
1194
+
1195
+ $(document).on('change', '.radio-option-other_choice input', function(){
1196
+
1197
+ // vars
1198
+ var $el = $(this),
1199
+ $td = $el.closest('td');
1200
+
1201
+
1202
+ if( $el.is(':checked') )
1203
+ {
1204
+ $td.find('.radio-option-save_other_choice').show();
1205
+ }
1206
+ else
1207
+ {
1208
+ $td.find('.radio-option-save_other_choice').hide();
1209
+ $td.find('.radio-option-save_other_choice input').removeAttr('checked');
1210
+ }
1211
+
1212
+ });
1213
+
1214
+
1215
+
1216
+ })(jQuery);
js/input.js ADDED
@@ -0,0 +1,3388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ /* **********************************************
4
+ Begin acf.js
5
+ ********************************************** */
6
+
7
+ /*
8
+ * input.js
9
+ *
10
+ * All javascript needed for ACF to work
11
+ *
12
+ * @type awesome
13
+ * @date 1/08/13
14
+ *
15
+ * @param N/A
16
+ * @return N/A
17
+ */
18
+
19
+ var acf = {
20
+
21
+ // vars
22
+ ajaxurl : '',
23
+ admin_url : '',
24
+ wp_version : '',
25
+ post_id : 0,
26
+ nonce : '',
27
+ l10n : null,
28
+ o : null,
29
+
30
+ // helper functions
31
+ helpers : {
32
+ get_atts : null,
33
+ version_compare : null,
34
+ uniqid : null,
35
+ sortable : null,
36
+ add_message : null,
37
+ is_clone_field : null,
38
+ url_to_object : null
39
+ },
40
+
41
+
42
+ // modules
43
+ validation : null,
44
+ conditional_logic : null,
45
+ media : null,
46
+
47
+
48
+ // fields
49
+ fields : {
50
+ date_picker : null,
51
+ color_picker : null,
52
+ Image : null,
53
+ file : null,
54
+ wysiwyg : null,
55
+ gallery : null,
56
+ relationship : null
57
+ }
58
+ };
59
+
60
+ (function($){
61
+
62
+
63
+ /*
64
+ * acf.helpers.isset
65
+ *
66
+ * http://phpjs.org/functions/isset
67
+ *
68
+ * @type function
69
+ * @date 20/07/13
70
+ *
71
+ * @param {mixed} arguments
72
+ * @return {boolean}
73
+ */
74
+
75
+ acf.helpers.isset = function(){
76
+
77
+ var a = arguments,
78
+ l = a.length,
79
+ i = 0,
80
+ undef;
81
+
82
+ if (l === 0) {
83
+ throw new Error('Empty isset');
84
+ }
85
+
86
+ while (i !== l) {
87
+ if (a[i] === undef || a[i] === null) {
88
+ return false;
89
+ }
90
+ i++;
91
+ }
92
+ return true;
93
+
94
+ };
95
+
96
+
97
+ /*
98
+ * acf.helpers.get_atts
99
+ *
100
+ * description
101
+ *
102
+ * @type function
103
+ * @date 1/06/13
104
+ *
105
+ * @param {el} $el
106
+ * @return {object} atts
107
+ */
108
+
109
+ acf.helpers.get_atts = function( $el ){
110
+
111
+ var atts = {};
112
+
113
+ $.each( $el[0].attributes, function( index, attr ) {
114
+
115
+ if( attr.name.substr(0, 5) == 'data-' )
116
+ {
117
+ atts[ attr.name.replace('data-', '') ] = attr.value;
118
+ }
119
+ });
120
+
121
+ return atts;
122
+
123
+ };
124
+
125
+
126
+ /**
127
+ * Simply compares two string version values.
128
+ *
129
+ * Example:
130
+ * versionCompare('1.1', '1.2') => -1
131
+ * versionCompare('1.1', '1.1') => 0
132
+ * versionCompare('1.2', '1.1') => 1
133
+ * versionCompare('2.23.3', '2.22.3') => 1
134
+ *
135
+ * Returns:
136
+ * -1 = left is LOWER than right
137
+ * 0 = they are equal
138
+ * 1 = left is GREATER = right is LOWER
139
+ * And FALSE if one of input versions are not valid
140
+ *
141
+ * @function
142
+ * @param {String} left Version #1
143
+ * @param {String} right Version #2
144
+ * @return {Integer|Boolean}
145
+ * @author Alexey Bass (albass)
146
+ * @since 2011-07-14
147
+ */
148
+
149
+ acf.helpers.version_compare = function(left, right)
150
+ {
151
+ if (typeof left + typeof right != 'stringstring')
152
+ return false;
153
+
154
+ var a = left.split('.')
155
+ , b = right.split('.')
156
+ , i = 0, len = Math.max(a.length, b.length);
157
+
158
+ for (; i < len; i++) {
159
+ if ((a[i] && !b[i] && parseInt(a[i]) > 0) || (parseInt(a[i]) > parseInt(b[i]))) {
160
+ return 1;
161
+ } else if ((b[i] && !a[i] && parseInt(b[i]) > 0) || (parseInt(a[i]) < parseInt(b[i]))) {
162
+ return -1;
163
+ }
164
+ }
165
+
166
+ return 0;
167
+ };
168
+
169
+
170
+ /*
171
+ * Helper: uniqid
172
+ *
173
+ * @description:
174
+ * @since: 3.5.8
175
+ * @created: 17/01/13
176
+ */
177
+
178
+ acf.helpers.uniqid = function()
179
+ {
180
+ var newDate = new Date;
181
+ return newDate.getTime();
182
+ };
183
+
184
+
185
+ /*
186
+ * Helper: url_to_object
187
+ *
188
+ * @description:
189
+ * @since: 4.0.0
190
+ * @created: 17/01/13
191
+ */
192
+
193
+ acf.helpers.url_to_object = function( url ){
194
+
195
+ // vars
196
+ var obj = {},
197
+ pairs = url.split('&');
198
+
199
+
200
+ for( i in pairs )
201
+ {
202
+ var split = pairs[i].split('=');
203
+ obj[decodeURIComponent(split[0])] = decodeURIComponent(split[1]);
204
+ }
205
+
206
+ return obj;
207
+
208
+ };
209
+
210
+
211
+ /*
212
+ * Sortable Helper
213
+ *
214
+ * @description: keeps widths of td's inside a tr
215
+ * @since 3.5.1
216
+ * @created: 10/11/12
217
+ */
218
+
219
+ acf.helpers.sortable = function(e, ui)
220
+ {
221
+ ui.children().each(function(){
222
+ $(this).width($(this).width());
223
+ });
224
+ return ui;
225
+ };
226
+
227
+
228
+ /*
229
+ * is_clone_field
230
+ *
231
+ * @description:
232
+ * @since: 3.5.8
233
+ * @created: 17/01/13
234
+ */
235
+
236
+ acf.helpers.is_clone_field = function( input )
237
+ {
238
+ if( input.attr('name') && input.attr('name').indexOf('[acfcloneindex]') != -1 )
239
+ {
240
+ return true;
241
+ }
242
+
243
+ return false;
244
+ };
245
+
246
+
247
+ /*
248
+ * acf.helpers.add_message
249
+ *
250
+ * @description:
251
+ * @since: 3.2.7
252
+ * @created: 10/07/2012
253
+ */
254
+
255
+ acf.helpers.add_message = function( message, div ){
256
+
257
+ var message = $('<div class="acf-message-wrapper"><div class="message updated"><p>' + message + '</p></div></div>');
258
+
259
+ div.prepend( message );
260
+
261
+ setTimeout(function(){
262
+
263
+ message.animate({
264
+ opacity : 0
265
+ }, 250, function(){
266
+ message.remove();
267
+ });
268
+
269
+ }, 1500);
270
+
271
+ };
272
+
273
+
274
+ /*
275
+ * Exists
276
+ *
277
+ * @description: returns true / false
278
+ * @created: 1/03/2011
279
+ */
280
+
281
+ $.fn.exists = function()
282
+ {
283
+ return $(this).length>0;
284
+ };
285
+
286
+
287
+ /*
288
+ * 3.5 Media
289
+ *
290
+ * @description:
291
+ * @since: 3.5.7
292
+ * @created: 16/01/13
293
+ */
294
+
295
+ acf.media = {
296
+
297
+ div : null,
298
+ frame : null,
299
+ render_timout : null,
300
+
301
+ clear_frame : function(){
302
+
303
+ // validate
304
+ if( !this.frame )
305
+ {
306
+ return;
307
+ }
308
+
309
+
310
+ // detach
311
+ this.frame.detach();
312
+ this.frame.dispose();
313
+
314
+
315
+ // reset var
316
+ this.frame = null;
317
+
318
+ },
319
+ type : function(){
320
+
321
+ // default
322
+ var type = 'thickbox';
323
+
324
+
325
+ // if wp exists
326
+ if( typeof(wp) == "object" )
327
+ {
328
+ type = 'backbone';
329
+ }
330
+
331
+
332
+ // return
333
+ return type;
334
+
335
+ },
336
+ init : function(){
337
+
338
+ // vars
339
+ var _prototype = wp.media.view.AttachmentCompat.prototype;
340
+
341
+
342
+ // orig
343
+ _prototype.orig_render = _prototype.render;
344
+ _prototype.orig_dispose = _prototype.dispose;
345
+
346
+
347
+ // update class
348
+ _prototype.className = 'compat-item acf_postbox no_box';
349
+
350
+
351
+ // modify render
352
+ _prototype.render = function() {
353
+
354
+ // reference
355
+ var _this = this;
356
+
357
+
358
+ // validate
359
+ if( _this.ignore_render )
360
+ {
361
+ return this;
362
+ }
363
+
364
+
365
+ // run the old render function
366
+ this.orig_render();
367
+
368
+
369
+ // add button
370
+ setTimeout(function(){
371
+
372
+ // vars
373
+ var $media_model = _this.$el.closest('.media-modal');
374
+
375
+
376
+ // is this an edit only modal?
377
+ if( $media_model.hasClass('acf-media-modal') )
378
+ {
379
+ return;
380
+ }
381
+
382
+
383
+ // does button already exist?
384
+ if( $media_model.find('.media-frame-router .acf-expand-details').exists() )
385
+ {
386
+ return;
387
+ }
388
+
389
+
390
+ // create button
391
+ var button = $([
392
+ '<a href="#" class="acf-expand-details">',
393
+ '<span class="icon"></span>',
394
+ '<span class="is-closed">' + acf.l10n.core.expand_details + '</span>',
395
+ '<span class="is-open">' + acf.l10n.core.collapse_details + '</span>',
396
+ '</a>'
397
+ ].join(''));
398
+
399
+
400
+ // add events
401
+ button.on('click', function( e ){
402
+
403
+ e.preventDefault();
404
+
405
+ if( $media_model.hasClass('acf-expanded') )
406
+ {
407
+ $media_model.removeClass('acf-expanded');
408
+ }
409
+ else
410
+ {
411
+ $media_model.addClass('acf-expanded');
412
+ }
413
+
414
+ });
415
+
416
+
417
+ // append
418
+ $media_model.find('.media-frame-router').append( button );
419
+
420
+
421
+ }, 0);
422
+
423
+
424
+ // setup fields
425
+ // The clearTimout is needed to prevent many setup functions from running at the same time
426
+ clearTimeout( acf.media.render_timout );
427
+ acf.media.render_timout = setTimeout(function(){
428
+
429
+ $(document).trigger( 'acf/setup_fields', _this.$el );
430
+
431
+ }, 50);
432
+
433
+
434
+ // return based on the origional render function
435
+ return this;
436
+ };
437
+
438
+
439
+ // modify dispose
440
+ _prototype.dispose = function() {
441
+
442
+ // remove
443
+ $(document).trigger('acf/remove_fields', [ this.$el ]);
444
+
445
+
446
+ // run the old render function
447
+ this.orig_dispose();
448
+
449
+ };
450
+
451
+
452
+ // override save
453
+ _prototype.save = function( event ) {
454
+
455
+ var data = {},
456
+ names = {};
457
+
458
+ if ( event )
459
+ event.preventDefault();
460
+
461
+
462
+ _.each( this.$el.serializeArray(), function( pair ) {
463
+
464
+ // initiate name
465
+ if( pair.name.slice(-2) === '[]' )
466
+ {
467
+ // remove []
468
+ pair.name = pair.name.replace('[]', '');
469
+
470
+
471
+ // initiate counter
472
+ if( typeof names[ pair.name ] === 'undefined'){
473
+
474
+ names[ pair.name ] = -1;
475
+ //console.log( names[ pair.name ] );
476
+
477
+ }
478
+
479
+
480
+ names[ pair.name ]++
481
+
482
+ pair.name += '[' + names[ pair.name ] +']';
483
+
484
+
485
+ }
486
+
487
+ data[ pair.name ] = pair.value;
488
+ });
489
+
490
+ this.ignore_render = true;
491
+ this.model.saveCompat( data );
492
+
493
+ };
494
+ }
495
+ };
496
+
497
+
498
+ /*
499
+ * Conditional Logic Calculate
500
+ *
501
+ * @description:
502
+ * @since 3.5.1
503
+ * @created: 15/10/12
504
+ */
505
+
506
+ acf.conditional_logic = {
507
+
508
+ items : [],
509
+
510
+ init : function(){
511
+
512
+ // reference
513
+ var _this = this;
514
+
515
+
516
+ // events
517
+ $(document).on('change', '.field input, .field textarea, .field select', function(){
518
+
519
+ _this.change();
520
+
521
+ });
522
+
523
+
524
+ _this.change();
525
+
526
+ },
527
+ change : function(){
528
+
529
+ // reference
530
+ var _this = this;
531
+
532
+
533
+ // vars
534
+ //var $el = $( e.target ),
535
+ // $field = $el.closest('.field');
536
+
537
+
538
+ // loop through items
539
+ $.each(this.items, function( k, item ){
540
+
541
+ // vars
542
+ var show = true,
543
+ $field = $('.field_key-' + item.field);
544
+
545
+
546
+ // if 'any' was selected, start of as false and any match will result in show = true
547
+ if( item.allorany == 'any' )
548
+ {
549
+ show = false;
550
+ }
551
+
552
+
553
+ // loop through rules
554
+ $.each(item.rules, function( k2, rule ){
555
+
556
+ var calculate = _this.calculate( rule );
557
+
558
+ if( item.allorany == 'all' )
559
+ {
560
+ if( calculate == false )
561
+ {
562
+ show = false;
563
+
564
+ // end loop
565
+ return false;
566
+ }
567
+ }
568
+ else
569
+ {
570
+ if( calculate == true )
571
+ {
572
+ show = true;
573
+
574
+ // end loop
575
+ return false;
576
+ }
577
+ }
578
+
579
+ });
580
+
581
+
582
+ // hide / show field
583
+ if( show )
584
+ {
585
+ // remove "disabled"
586
+ $field.find('input, textarea, select').removeAttr('disabled');
587
+
588
+
589
+ $field.removeClass('acf-conditional_logic-hide').addClass('acf-conditional_logic-show');
590
+ }
591
+ else
592
+ {
593
+ // add "disabled"
594
+ $field.find('input, textarea, select').attr('disabled', 'disabled');
595
+
596
+
597
+ $field.removeClass('acf-conditional_logic-show').addClass('acf-conditional_logic-hide');
598
+ }
599
+
600
+
601
+ });
602
+
603
+ },
604
+ calculate : function( rule ){
605
+
606
+ // vars
607
+ var $field = $('.field_key-' + rule.field),
608
+ r = false;
609
+
610
+
611
+ // compare values
612
+ if( $field.hasClass('field_type-true_false') || $field.hasClass('field_type-checkbox') || $field.hasClass('field_type-radio') )
613
+ {
614
+ var exists = $field.find('input[value="' + rule.value + '"]:checked').exists();
615
+
616
+
617
+ if( rule.operator == "==" )
618
+ {
619
+ if( exists )
620
+ {
621
+ r = true;
622
+ }
623
+ }
624
+ else
625
+ {
626
+ if( ! exists )
627
+ {
628
+ r = true;
629
+ }
630
+ }
631
+
632
+ }
633
+ else
634
+ {
635
+ // get val and make sure it is an array
636
+ var val = $field.find('input, textarea, select').last().val();
637
+
638
+ if( ! $.isArray(val) )
639
+ {
640
+ val = [ val ];
641
+ }
642
+
643
+
644
+ if( rule.operator == "==" )
645
+ {
646
+ if( $.inArray(rule.value, val) > -1 )
647
+ {
648
+ r = true;
649
+ }
650
+ }
651
+ else
652
+ {
653
+ if( $.inArray(rule.value, val) < 0 )
654
+ {
655
+ r = true;
656
+ }
657
+ }
658
+
659
+ }
660
+
661
+
662
+ // return
663
+ return r;
664
+
665
+ }
666
+
667
+ };
668
+
669
+
670
+
671
+
672
+
673
+ /*
674
+ * Document Ready
675
+ *
676
+ * @description:
677
+ * @since: 3.5.8
678
+ * @created: 17/01/13
679
+ */
680
+
681
+ $(document).ready(function(){
682
+
683
+
684
+ // conditional logic
685
+ acf.conditional_logic.init();
686
+
687
+
688
+ // fix for older options page add-on
689
+ $('.acf_postbox > .inside > .options').each(function(){
690
+
691
+ $(this).closest('.acf_postbox').addClass( $(this).attr('data-layout') );
692
+
693
+ });
694
+
695
+
696
+ });
697
+
698
+
699
+ /*
700
+ * window load
701
+ *
702
+ * @description:
703
+ * @since: 3.5.5
704
+ * @created: 22/12/12
705
+ */
706
+
707
+ $(window).load(function(){
708
+
709
+ // init
710
+ acf.media.init();
711
+
712
+
713
+ setTimeout(function(){
714
+
715
+ // Hack for CPT without a content editor
716
+ try
717
+ {
718
+ wp.media.view.settings.post.id = acf.post_id;
719
+ }
720
+ catch(e)
721
+ {
722
+ // one of the objects was 'undefined'...
723
+ }
724
+
725
+
726
+ // setup fields
727
+ $(document).trigger('acf/setup_fields', [ $('#poststuff') ]);
728
+
729
+ }, 10);
730
+
731
+ });
732
+
733
+
734
+ /*
735
+ * Gallery field Add-on Fix
736
+ *
737
+ * Gallery field v1.0.0 required some data in the acf object.
738
+ * Now not required, but older versions of gallery field need this.
739
+ *
740
+ * @type object
741
+ * @date 1/08/13
742
+ *
743
+ * @param N/A
744
+ * @return N/A
745
+ */
746
+
747
+ acf.fields.gallery = {
748
+ add : function(){},
749
+ edit : function(){},
750
+ update_count : function(){},
751
+ hide_selected_items : function(){},
752
+ text : {
753
+ title_add : "Select Images"
754
+ }
755
+ };
756
+
757
+
758
+ })(jQuery);
759
+
760
+ /* **********************************************
761
+ Begin ajax.js
762
+ ********************************************** */
763
+
764
+ (function($){
765
+
766
+
767
+ /*
768
+ * acf.screen
769
+ *
770
+ * Data used by AJAX to hide / show field groups
771
+ *
772
+ * @type object
773
+ * @date 1/03/2011
774
+ *
775
+ * @param N/A
776
+ * @return N/A
777
+ */
778
+
779
+ acf.screen = {
780
+ action : 'acf/location/match_field_groups_ajax',
781
+ post_id : 0,
782
+ page_template : 0,
783
+ page_parent : 0,
784
+ page_type : 0,
785
+ post_category : 0,
786
+ post_format : 0,
787
+ taxonomy : 0,
788
+ lang : 0,
789
+ nonce : 0
790
+ };
791
+
792
+
793
+ /*
794
+ * Document Ready
795
+ *
796
+ * Updates acf.screen with more data
797
+ *
798
+ * @type function
799
+ * @date 1/03/2011
800
+ *
801
+ * @param N/A
802
+ * @return N/A
803
+ */
804
+
805
+ $(document).ready(function(){
806
+
807
+
808
+ // update post_id
809
+ acf.screen.post_id = acf.o.post_id;
810
+ acf.screen.nonce = acf.o.nonce;
811
+
812
+
813
+ // MPML
814
+ if( $('#icl-als-first').length > 0 )
815
+ {
816
+ var href = $('#icl-als-first').children('a').attr('href'),
817
+ regex = new RegExp( "lang=([^&#]*)" ),
818
+ results = regex.exec( href );
819
+
820
+ // lang
821
+ acf.screen.lang = results[1];
822
+
823
+ }
824
+
825
+ });
826
+
827
+
828
+ /*
829
+ * acf/update_field_groups
830
+ *
831
+ * finds the new id's for metaboxes and show's hides metaboxes
832
+ *
833
+ * @type event
834
+ * @date 1/03/2011
835
+ *
836
+ * @param N/A
837
+ * @return N/A
838
+ */
839
+
840
+ $(document).on('acf/update_field_groups', function(){
841
+
842
+
843
+ // Only for a post.
844
+ // This is an attempt to stop the action running on the options page add-on.
845
+ if( ! acf.o.post_id )
846
+ {
847
+ return false;
848
+ }
849
+
850
+
851
+ $.ajax({
852
+ url: ajaxurl,
853
+ data: acf.screen,
854
+ type: 'post',
855
+ dataType: 'json',
856
+ success: function(result){
857
+
858
+ // validate
859
+ if( !result )
860
+ {
861
+ return false;
862
+ }
863
+
864
+
865
+ // hide all metaboxes
866
+ $('.acf_postbox').addClass('acf-hidden');
867
+ $('.acf_postbox-toggle').addClass('acf-hidden');
868
+
869
+
870
+ // dont bother loading style or html for inputs
871
+ if( result.length == 0 )
872
+ {
873
+ return false;
874
+ }
875
+
876
+
877
+ // show the new postboxes
878
+ $.each(result, function(k, v) {
879
+
880
+
881
+ // vars
882
+ var $el = $('#acf_' + v),
883
+ $toggle = $('#adv-settings .acf_postbox-toggle[for="acf_' + v + '-hide"]');
884
+
885
+
886
+ // classes
887
+ $el.removeClass('acf-hidden hide-if-js');
888
+ $toggle.removeClass('acf-hidden');
889
+ $toggle.find('input[type="checkbox"]').attr('checked', 'checked');
890
+
891
+
892
+ // load fields if needed
893
+ $el.find('.acf-replace-with-fields').each(function(){
894
+
895
+ var $replace = $(this);
896
+
897
+ $.ajax({
898
+ url : ajaxurl,
899
+ data : {
900
+ action : 'acf/input/render_fields',
901
+ acf_id : v,
902
+ post_id : acf.o.post_id,
903
+ nonce : acf.o.nonce
904
+ },
905
+ type : 'post',
906
+ dataType : 'html',
907
+ success : function( html ){
908
+
909
+ $replace.replaceWith( html );
910
+
911
+ $(document).trigger('acf/setup_fields', $el);
912
+
913
+ }
914
+ });
915
+
916
+ });
917
+ });
918
+
919
+
920
+ // load style
921
+ $.ajax({
922
+ url : ajaxurl,
923
+ data : {
924
+ action : 'acf/input/get_style',
925
+ acf_id : result[0],
926
+ nonce : acf.o.nonce
927
+ },
928
+ type : 'post',
929
+ dataType : 'html',
930
+ success : function( result ){
931
+
932
+ $('#acf_style').html( result );
933
+
934
+ }
935
+ });
936
+
937
+
938
+
939
+ }
940
+ });
941
+ });
942
+
943
+
944
+ /*
945
+ * Events
946
+ *
947
+ * Updates acf.screen with more data and triggers the update event
948
+ *
949
+ * @type function
950
+ * @date 1/03/2011
951
+ *
952
+ * @param N/A
953
+ * @return N/A
954
+ */
955
+
956
+ $(document).on('change', '#page_template', function(){
957
+
958
+ acf.screen.page_template = $(this).val();
959
+
960
+ $(document).trigger('acf/update_field_groups');
961
+
962
+ });
963
+
964
+
965
+ $(document).on('change', '#parent_id', function(){
966
+
967
+ var val = $(this).val();
968
+
969
+
970
+ // set page_type / page_parent
971
+ if( val != "" )
972
+ {
973
+ acf.screen.page_type = 'child';
974
+ acf.screen.page_parent = val;
975
+ }
976
+ else
977
+ {
978
+ acf.screen.page_type = 'parent';
979
+ acf.screen.page_parent = 0;
980
+ }
981
+
982
+
983
+ $(document).trigger('acf/update_field_groups');
984
+
985
+ });
986
+
987
+
988
+ $(document).on('change', '#post-formats-select input[type="radio"]', function(){
989
+
990
+ var val = $(this).val();
991
+
992
+ if( val == '0' )
993
+ {
994
+ val = 'standard';
995
+ }
996
+
997
+ acf.screen.post_format = val;
998
+
999
+ $(document).trigger('acf/update_field_groups');
1000
+
1001
+ });
1002
+
1003
+
1004
+ $(document).on('change', '.categorychecklist input[type="checkbox"]', function(){
1005
+
1006
+ // set timeout to fix issue with chrome which does not register the change has yet happened
1007
+ setTimeout(function(){
1008
+
1009
+ // vars
1010
+ var values = [];
1011
+
1012
+
1013
+ $('.categorychecklist input[type="checkbox"]:checked').each(function(){
1014
+
1015
+ if( $(this).is(':hidden') || $(this).is(':disabled') )
1016
+ {
1017
+ return;
1018
+ }
1019
+
1020
+ values.push( $(this).val() );
1021
+ });
1022
+
1023
+
1024
+ acf.screen.post_category = values;
1025
+ acf.screen.taxonomy = values;
1026
+
1027
+
1028
+ $(document).trigger('acf/update_field_groups');
1029
+
1030
+ }, 1);
1031
+
1032
+
1033
+ });
1034
+
1035
+
1036
+
1037
+ })(jQuery);
1038
+
1039
+ /* **********************************************
1040
+ Begin color-picker.js
1041
+ ********************************************** */
1042
+
1043
+ (function($){
1044
+
1045
+ /*
1046
+ * Color Picker
1047
+ *
1048
+ * jQuery functionality for this field type
1049
+ *
1050
+ * @type object
1051
+ * @date 20/07/13
1052
+ *
1053
+ * @param N/A
1054
+ * @return N/A
1055
+ */
1056
+
1057
+ var _cp = acf.fields.color_picker = {
1058
+
1059
+ $el : null,
1060
+ $input : null,
1061
+
1062
+ set : function( o ){
1063
+
1064
+ // merge in new option
1065
+ $.extend( this, o );
1066
+
1067
+
1068
+ // find input
1069
+ this.$input = this.$el.find('input[type="text"]');
1070
+
1071
+
1072
+ // return this for chaining
1073
+ return this;
1074
+
1075
+ },
1076
+ init : function(){
1077
+
1078
+ // is clone field?
1079
+ if( acf.helpers.is_clone_field(this.$input) )
1080
+ {
1081
+ return;
1082
+ }
1083
+
1084
+
1085
+ this.$input.wpColorPicker();
1086
+
1087
+
1088
+
1089
+ }
1090
+ };
1091
+
1092
+
1093
+ /*
1094
+ * acf/setup_fields
1095
+ *
1096
+ * run init function on all elements for this field
1097
+ *
1098
+ * @type event
1099
+ * @date 20/07/13
1100
+ *
1101
+ * @param {object} e event object
1102
+ * @param {object} el DOM object which may contain new ACF elements
1103
+ * @return N/A
1104
+ */
1105
+
1106
+ $(document).on('acf/setup_fields', function(e, el){
1107
+
1108
+ $(el).find('.acf-color_picker').each(function(){
1109
+
1110
+ _cp.set({ $el : $(this) }).init();
1111
+
1112
+ });
1113
+
1114
+ });
1115
+
1116
+
1117
+ })(jQuery);
1118
+
1119
+ /* **********************************************
1120
+ Begin date-picker.js
1121
+ ********************************************** */
1122
+
1123
+ (function($){
1124
+
1125
+ /*
1126
+ * Date Picker
1127
+ *
1128
+ * static model for this field
1129
+ *
1130
+ * @type event
1131
+ * @date 1/06/13
1132
+ *
1133
+ */
1134
+
1135
+ acf.fields.date_picker = {
1136
+
1137
+ $el : null,
1138
+ $input : null,
1139
+ $hidden : null,
1140
+
1141
+ o : {},
1142
+
1143
+ set : function( o ){
1144
+
1145
+ // merge in new option
1146
+ $.extend( this, o );
1147
+
1148
+
1149
+ // find input
1150
+ this.$input = this.$el.find('input[type="text"]');
1151
+ this.$hidden = this.$el.find('input[type="hidden"]');
1152
+
1153
+
1154
+ // get options
1155
+ this.o = acf.helpers.get_atts( this.$el );
1156
+
1157
+
1158
+ // return this for chaining
1159
+ return this;
1160
+
1161
+ },
1162
+ init : function(){
1163
+
1164
+ // is clone field?
1165
+ if( acf.helpers.is_clone_field(this.$hidden) )
1166
+ {
1167
+ return;
1168
+ }
1169
+
1170
+
1171
+ // get and set value from alt field
1172
+ this.$input.val( this.$hidden.val() );
1173
+
1174
+
1175
+ // create options
1176
+ var options = $.extend( {}, acf.l10n.date_picker, {
1177
+ dateFormat : this.o.save_format,
1178
+ altField : this.$hidden,
1179
+ altFormat : this.o.save_format,
1180
+ changeYear : true,
1181
+ yearRange : "-100:+100",
1182
+ changeMonth : true,
1183
+ showButtonPanel : true,
1184
+ firstDay : this.o.first_day
1185
+ });
1186
+
1187
+
1188
+ // add date picker
1189
+ this.$input.addClass('active').datepicker( options );
1190
+
1191
+
1192
+ // now change the format back to how it should be.
1193
+ this.$input.datepicker( "option", "dateFormat", this.o.display_format );
1194
+
1195
+
1196
+ // wrap the datepicker (only if it hasn't already been wrapped)
1197
+ if( $('body > #ui-datepicker-div').length > 0 )
1198
+ {
1199
+ $('#ui-datepicker-div').wrap('<div class="ui-acf" />');
1200
+ }
1201
+
1202
+ },
1203
+ blur : function(){
1204
+
1205
+ if( !this.$input.val() )
1206
+ {
1207
+ this.$hidden.val('');
1208
+ }
1209
+
1210
+ }
1211
+
1212
+ };
1213
+
1214
+
1215
+ /*
1216
+ * acf/setup_fields
1217
+ *
1218
+ * run init function on all elements for this field
1219
+ *
1220
+ * @type event
1221
+ * @date 20/07/13
1222
+ *
1223
+ * @param {object} e event object
1224
+ * @param {object} el DOM object which may contain new ACF elements
1225
+ * @return N/A
1226
+ */
1227
+
1228
+ $(document).on('acf/setup_fields', function(e, el){
1229
+
1230
+ $(el).find('.acf-date_picker').each(function(){
1231
+
1232
+ acf.fields.date_picker.set({ $el : $(this) }).init();
1233
+
1234
+ });
1235
+
1236
+ });
1237
+
1238
+
1239
+ /*
1240
+ * Events
1241
+ *
1242
+ * jQuery events for this field
1243
+ *
1244
+ * @type event
1245
+ * @date 1/06/13
1246
+ *
1247
+ */
1248
+
1249
+ $(document).on('blur', '.acf-date_picker input[type="text"]', function( e ){
1250
+
1251
+ acf.fields.date_picker.set({ $el : $(this).parent() }).blur();
1252
+
1253
+ });
1254
+
1255
+
1256
+ })(jQuery);
1257
+
1258
+ /* **********************************************
1259
+ Begin file.js
1260
+ ********************************************** */
1261
+
1262
+ (function($){
1263
+
1264
+ /*
1265
+ * File
1266
+ *
1267
+ * static model for this field
1268
+ *
1269
+ * @type event
1270
+ * @date 1/06/13
1271
+ *
1272
+ */
1273
+
1274
+
1275
+ // reference
1276
+ var _media = acf.media;
1277
+
1278
+
1279
+ acf.fields.file = {
1280
+
1281
+ $el : null,
1282
+ $input : null,
1283
+
1284
+ o : {},
1285
+
1286
+ set : function( o ){
1287
+
1288
+ // merge in new option
1289
+ $.extend( this, o );
1290
+
1291
+
1292
+ // find input
1293
+ this.$input = this.$el.find('input[type="hidden"]');
1294
+
1295
+
1296
+ // get options
1297
+ this.o = acf.helpers.get_atts( this.$el );
1298
+
1299
+
1300
+ // multiple?
1301
+ this.o.multiple = this.$el.closest('.repeater').exists() ? true : false;
1302
+
1303
+
1304
+ // wp library query
1305
+ this.o.query = {};
1306
+
1307
+
1308
+ // library
1309
+ if( this.o.library == 'uploadedTo' )
1310
+ {
1311
+ this.o.query.uploadedTo = acf.o.post_id;
1312
+ }
1313
+
1314
+
1315
+ // return this for chaining
1316
+ return this;
1317
+
1318
+ },
1319
+ init : function(){
1320
+
1321
+ // is clone field?
1322
+ if( acf.helpers.is_clone_field(this.$input) )
1323
+ {
1324
+ return;
1325
+ }
1326
+
1327
+ },
1328
+ add : function( file ){
1329
+
1330
+ // this function must reference a global div variable due to the pre WP 3.5 uploader
1331
+ // vars
1332
+ var div = _media.div;
1333
+
1334
+
1335
+ // set atts
1336
+ div.find('.acf-file-icon').attr( 'src', file.icon );
1337
+ div.find('.acf-file-title').text( file.title );
1338
+ div.find('.acf-file-name').text( file.name ).attr( 'href', file.url );
1339
+ div.find('.acf-file-size').text( file.size );
1340
+ div.find('.acf-file-value').val( file.id ).trigger('change');
1341
+
1342
+
1343
+ // set div class
1344
+ div.addClass('active');
1345
+
1346
+
1347
+ // validation
1348
+ div.closest('.field').removeClass('error');
1349
+
1350
+ },
1351
+ edit : function(){
1352
+
1353
+ // vars
1354
+ var id = this.$input.val();
1355
+
1356
+
1357
+ // set global var
1358
+ _media.div = this.$el;
1359
+
1360
+
1361
+ // clear the frame
1362
+ _media.clear_frame();
1363
+
1364
+
1365
+ // create the media frame
1366
+ _media.frame = wp.media({
1367
+ title : acf.l10n.file.edit,
1368
+ multiple : false,
1369
+ button : { text : acf.l10n.file.update }
1370
+ });
1371
+
1372
+
1373
+ // log events
1374
+ /*
1375
+ acf.media.frame.on('all', function(e){
1376
+
1377
+ console.log( e );
1378
+
1379
+ });
1380
+ */
1381
+
1382
+
1383
+ // open
1384
+ _media.frame.on('open',function() {
1385
+
1386
+ // set to browse
1387
+ if( _media.frame.content._mode != 'browse' )
1388
+ {
1389
+ _media.frame.content.mode('browse');
1390
+ }
1391
+
1392
+
1393
+ // add class
1394
+ _media.frame.$el.closest('.media-modal').addClass('acf-media-modal acf-expanded');
1395
+
1396
+
1397
+ // set selection
1398
+ var selection = _media.frame.state().get('selection'),
1399
+ attachment = wp.media.attachment( id );
1400
+
1401
+
1402
+ // to fetch or not to fetch
1403
+ if( $.isEmptyObject(attachment.changed) )
1404
+ {
1405
+ attachment.fetch();
1406
+ }
1407
+
1408
+
1409
+ selection.add( attachment );
1410
+
1411
+ });
1412
+
1413
+
1414
+ // close
1415
+ _media.frame.on('close',function(){
1416
+
1417
+ // remove class
1418
+ _media.frame.$el.closest('.media-modal').removeClass('acf-media-modal');
1419
+
1420
+ });
1421
+
1422
+
1423
+ // Finally, open the modal
1424
+ acf.media.frame.open();
1425
+
1426
+ },
1427
+ remove : function()
1428
+ {
1429
+
1430
+ // set atts
1431
+ this.$el.find('.acf-file-icon').attr( 'src', '' );
1432
+ this.$el.find('.acf-file-title').text( '' );
1433
+ this.$el.find('.acf-file-name').text( '' ).attr( 'href', '' );
1434
+ this.$el.find('.acf-file-size').text( '' );
1435
+ this.$el.find('.acf-file-value').val( '' ).trigger('change');
1436
+
1437
+
1438
+ // remove class
1439
+ this.$el.removeClass('active');
1440
+
1441
+ },
1442
+ popup : function()
1443
+ {
1444
+ // reference
1445
+ var t = this;
1446
+
1447
+
1448
+ // set global var
1449
+ _media.div = this.$el;
1450
+
1451
+
1452
+ // clear the frame
1453
+ _media.clear_frame();
1454
+
1455
+
1456
+ // Create the media frame
1457
+ _media.frame = wp.media({
1458
+ states : [
1459
+ new wp.media.controller.Library({
1460
+ library : wp.media.query( t.o.query ),
1461
+ multiple : t.o.multiple,
1462
+ title : acf.l10n.file.select,
1463
+ priority : 20,
1464
+ filterable : 'all'
1465
+ })
1466
+ ]
1467
+ });
1468
+
1469
+
1470
+ // customize model / view
1471
+ acf.media.frame.on('content:activate', function(){
1472
+
1473
+ // vars
1474
+ var toolbar = null,
1475
+ filters = null;
1476
+
1477
+
1478
+ // populate above vars making sure to allow for failure
1479
+ try
1480
+ {
1481
+ toolbar = acf.media.frame.content.get().toolbar;
1482
+ filters = toolbar.get('filters');
1483
+ }
1484
+ catch(e)
1485
+ {
1486
+ // one of the objects was 'undefined'... perhaps the frame open is Upload Files
1487
+ //console.log( e );
1488
+ }
1489
+
1490
+
1491
+ // validate
1492
+ if( !filters )
1493
+ {
1494
+ return false;
1495
+ }
1496
+
1497
+
1498
+ // no need for 'uploaded' filter
1499
+ if( t.o.library == 'uploadedTo' )
1500
+ {
1501
+ filters.$el.find('option[value="uploaded"]').remove();
1502
+ filters.$el.after('<span>' + acf.l10n.file.uploadedTo + '</span>')
1503
+
1504
+ $.each( filters.filters, function( k, v ){
1505
+
1506
+ v.props.uploadedTo = acf.o.post_id;
1507
+
1508
+ });
1509
+ }
1510
+
1511
+ });
1512
+
1513
+
1514
+ // When an image is selected, run a callback.
1515
+ acf.media.frame.on( 'select', function() {
1516
+
1517
+ // get selected images
1518
+ selection = _media.frame.state().get('selection');
1519
+
1520
+ if( selection )
1521
+ {
1522
+ var i = 0;
1523
+
1524
+ selection.each(function(attachment){
1525
+
1526
+ // counter
1527
+ i++;
1528
+
1529
+
1530
+ // select / add another file field?
1531
+ if( i > 1 )
1532
+ {
1533
+ // vars
1534
+ var $td = _media.div.closest('td'),
1535
+ $tr = $td.closest('.row'),
1536
+ $repeater = $tr.closest('.repeater'),
1537
+ key = $td.attr('data-field_key'),
1538
+ selector = 'td .acf-file-uploader:first';
1539
+
1540
+
1541
+ // key only exists for repeater v1.0.1 +
1542
+ if( key )
1543
+ {
1544
+ selector = 'td[data-field_key="' + key + '"] .acf-file-uploader';
1545
+ }
1546
+
1547
+
1548
+ // add row?
1549
+ if( ! $tr.next('.row').exists() )
1550
+ {
1551
+ $repeater.find('.add-row-end').trigger('click');
1552
+
1553
+ }
1554
+
1555
+
1556
+ // update current div
1557
+ _media.div = $tr.next('.row').find( selector );
1558
+
1559
+ }
1560
+
1561
+
1562
+ // vars
1563
+ var file = {
1564
+ id : attachment.id,
1565
+ title : attachment.attributes.title,
1566
+ name : attachment.attributes.filename,
1567
+ url : attachment.attributes.url,
1568
+ icon : attachment.attributes.icon,
1569
+ size : attachment.attributes.filesize
1570
+ };
1571
+
1572
+
1573
+ // add file to field
1574
+ acf.fields.file.add( file );
1575
+
1576
+
1577
+ });
1578
+ // selection.each(function(attachment){
1579
+ }
1580
+ // if( selection )
1581
+
1582
+ });
1583
+ // acf.media.frame.on( 'select', function() {
1584
+
1585
+
1586
+ // Finally, open the modal
1587
+ acf.media.frame.open();
1588
+
1589
+
1590
+ return false;
1591
+ }
1592
+
1593
+ };
1594
+
1595
+
1596
+ /*
1597
+ * Events
1598
+ *
1599
+ * jQuery events for this field
1600
+ *
1601
+ * @type function
1602
+ * @date 1/03/2011
1603
+ *
1604
+ * @param N/A
1605
+ * @return N/A
1606
+ */
1607
+
1608
+ $(document).on('click', '.acf-file-uploader .acf-button-edit', function( e ){
1609
+
1610
+ e.preventDefault();
1611
+
1612
+ acf.fields.file.set({ $el : $(this).closest('.acf-file-uploader') }).edit();
1613
+
1614
+ });
1615
+
1616
+ $(document).on('click', '.acf-file-uploader .acf-button-delete', function( e ){
1617
+
1618
+ e.preventDefault();
1619
+
1620
+ acf.fields.file.set({ $el : $(this).closest('.acf-file-uploader') }).remove();
1621
+
1622
+ });
1623
+
1624
+
1625
+ $(document).on('click', '.acf-file-uploader .add-file', function( e ){
1626
+
1627
+ e.preventDefault();
1628
+
1629
+ acf.fields.file.set({ $el : $(this).closest('.acf-file-uploader') }).popup();
1630
+
1631
+ });
1632
+
1633
+
1634
+ })(jQuery);
1635
+
1636
+ /* **********************************************
1637
+ Begin image.js
1638
+ ********************************************** */
1639
+
1640
+ (function($){
1641
+
1642
+ /*
1643
+ * Image
1644
+ *
1645
+ * static model for this field
1646
+ *
1647
+ * @type event
1648
+ * @date 1/06/13
1649
+ *
1650
+ */
1651
+
1652
+
1653
+ // reference
1654
+ var _media = acf.media;
1655
+
1656
+
1657
+ acf.fields.image = {
1658
+
1659
+ $el : null,
1660
+ $input : null,
1661
+
1662
+ o : {},
1663
+
1664
+ set : function( o ){
1665
+
1666
+ // merge in new option
1667
+ $.extend( this, o );
1668
+
1669
+
1670
+ // find input
1671
+ this.$input = this.$el.find('input[type="hidden"]');
1672
+
1673
+
1674
+ // get options
1675
+ this.o = acf.helpers.get_atts( this.$el );
1676
+
1677
+
1678
+ // multiple?
1679
+ this.o.multiple = this.$el.closest('.repeater').exists() ? true : false;
1680
+
1681
+
1682
+ // wp library query
1683
+ this.o.query = {
1684
+ type : 'image'
1685
+ };
1686
+
1687
+
1688
+ // library
1689
+ if( this.o.library == 'uploadedTo' )
1690
+ {
1691
+ this.o.query.uploadedTo = acf.o.post_id;
1692
+ }
1693
+
1694
+
1695
+ // return this for chaining
1696
+ return this;
1697
+
1698
+ },
1699
+ init : function(){
1700
+
1701
+ // is clone field?
1702
+ if( acf.helpers.is_clone_field(this.$input) )
1703
+ {
1704
+ return;
1705
+ }
1706
+
1707
+ },
1708
+ add : function( image ){
1709
+
1710
+ // this function must reference a global div variable due to the pre WP 3.5 uploader
1711
+ // vars
1712
+ var div = _media.div;
1713
+
1714
+
1715
+ // set atts
1716
+ div.find('.acf-image-image').attr( 'src', image.url );
1717
+ div.find('.acf-image-value').val( image.id ).trigger('change');
1718
+
1719
+
1720
+ // set div class
1721
+ div.addClass('active');
1722
+
1723
+
1724
+ // validation
1725
+ div.closest('.field').removeClass('error');
1726
+
1727
+ },
1728
+ edit : function(){
1729
+
1730
+ // vars
1731
+ var id = this.$input.val();
1732
+
1733
+
1734
+ // set global var
1735
+ _media.div = this.$el;
1736
+
1737
+
1738
+ // clear the frame
1739
+ _media.clear_frame();
1740
+
1741
+
1742
+ // create the media frame
1743
+ _media.frame = wp.media({
1744
+ title : acf.l10n.image.edit,
1745
+ multiple : false,
1746
+ button : { text : acf.l10n.image.update }
1747
+ });
1748
+
1749
+
1750
+ // log events
1751
+ /*
1752
+ acf.media.frame.on('all', function(e){
1753
+
1754
+ console.log( e );
1755
+
1756
+ });
1757
+ */
1758
+
1759
+
1760
+ // open
1761
+ _media.frame.on('open',function() {
1762
+
1763
+ // set to browse
1764
+ if( _media.frame.content._mode != 'browse' )
1765
+ {
1766
+ _media.frame.content.mode('browse');
1767
+ }
1768
+
1769
+
1770
+ // add class
1771
+ _media.frame.$el.closest('.media-modal').addClass('acf-media-modal acf-expanded');
1772
+
1773
+
1774
+ // set selection
1775
+ var selection = _media.frame.state().get('selection'),
1776
+ attachment = wp.media.attachment( id );
1777
+
1778
+
1779
+ // to fetch or not to fetch
1780
+ if( $.isEmptyObject(attachment.changed) )
1781
+ {
1782
+ attachment.fetch();
1783
+ }
1784
+
1785
+
1786
+ selection.add( attachment );
1787
+
1788
+ });
1789
+
1790
+
1791
+ // close
1792
+ _media.frame.on('close',function(){
1793
+
1794
+ // remove class
1795
+ _media.frame.$el.closest('.media-modal').removeClass('acf-media-modal');
1796
+
1797
+ });
1798
+
1799
+
1800
+ // Finally, open the modal
1801
+ acf.media.frame.open();
1802
+
1803
+ },
1804
+ remove : function()
1805
+ {
1806
+
1807
+ // set atts
1808
+ this.$el.find('.acf-image-image').attr( 'src', '' );
1809
+ this.$el.find('.acf-image-value').val( '' ).trigger('change');
1810
+
1811
+
1812
+ // remove class
1813
+ this.$el.removeClass('active');
1814
+
1815
+ },
1816
+ popup : function()
1817
+ {
1818
+ // reference
1819
+ var t = this;
1820
+
1821
+
1822
+ // set global var
1823
+ _media.div = this.$el;
1824
+
1825
+
1826
+ // clear the frame
1827
+ _media.clear_frame();
1828
+
1829
+
1830
+ // Create the media frame
1831
+ _media.frame = wp.media({
1832
+ states : [
1833
+ new wp.media.controller.Library({
1834
+ library : wp.media.query( t.o.query ),
1835
+ multiple : t.o.multiple,
1836
+ title : acf.l10n.image.select,
1837
+ priority : 20,
1838
+ filterable : 'all'
1839
+ })
1840
+ ]
1841
+ });
1842
+
1843
+
1844
+ /*acf.media.frame.on('all', function(e){
1845
+
1846
+ console.log( e );
1847
+
1848
+ });*/
1849
+
1850
+
1851
+ // customize model / view
1852
+ acf.media.frame.on('content:activate', function(){
1853
+
1854
+ // vars
1855
+ var toolbar = null,
1856
+ filters = null;
1857
+
1858
+
1859
+ // populate above vars making sure to allow for failure
1860
+ try
1861
+ {
1862
+ toolbar = acf.media.frame.content.get().toolbar;
1863
+ filters = toolbar.get('filters');
1864
+ }
1865
+ catch(e)
1866
+ {
1867
+ // one of the objects was 'undefined'... perhaps the frame open is Upload Files
1868
+ //console.log( e );
1869
+ }
1870
+
1871
+
1872
+ // validate
1873
+ if( !filters )
1874
+ {
1875
+ return false;
1876
+ }
1877
+
1878
+
1879
+ // filter only images
1880
+ $.each( filters.filters, function( k, v ){
1881
+
1882
+ v.props.type = 'image';
1883
+
1884
+ });
1885
+
1886
+
1887
+ // no need for 'uploaded' filter
1888
+ if( t.o.library == 'uploadedTo' )
1889
+ {
1890
+ filters.$el.find('option[value="uploaded"]').remove();
1891
+ filters.$el.after('<span>' + acf.l10n.image.uploadedTo + '</span>')
1892
+
1893
+ $.each( filters.filters, function( k, v ){
1894
+
1895
+ v.props.uploadedTo = acf.o.post_id;
1896
+
1897
+ });
1898
+ }
1899
+
1900
+
1901
+ // remove non image options from filter list
1902
+ filters.$el.find('option').each(function(){
1903
+
1904
+ // vars
1905
+ var v = $(this).attr('value');
1906
+
1907
+
1908
+ // don't remove the 'uploadedTo' if the library option is 'all'
1909
+ if( v == 'uploaded' && t.o.library == 'all' )
1910
+ {
1911
+ return;
1912
+ }
1913
+
1914
+ if( v.indexOf('image') === -1 )
1915
+ {
1916
+ $(this).remove();
1917
+ }
1918
+
1919
+ });
1920
+
1921
+
1922
+ // set default filter
1923
+ filters.$el.val('image').trigger('change');
1924
+
1925
+ });
1926
+
1927
+
1928
+ // When an image is selected, run a callback.
1929
+ acf.media.frame.on( 'select', function() {
1930
+
1931
+ // get selected images
1932
+ selection = _media.frame.state().get('selection');
1933
+
1934
+ if( selection )
1935
+ {
1936
+ var i = 0;
1937
+
1938
+ selection.each(function(attachment){
1939
+
1940
+ // counter
1941
+ i++;
1942
+
1943
+
1944
+ // select / add another image field?
1945
+ if( i > 1 )
1946
+ {
1947
+ // vars
1948
+ var $td = _media.div.closest('td'),
1949
+ $tr = $td.closest('.row'),
1950
+ $repeater = $tr.closest('.repeater'),
1951
+ key = $td.attr('data-field_key'),
1952
+ selector = 'td .acf-image-uploader:first';
1953
+
1954
+
1955
+ // key only exists for repeater v1.0.1 +
1956
+ if( key )
1957
+ {
1958
+ selector = 'td[data-field_key="' + key + '"] .acf-image-uploader';
1959
+ }
1960
+
1961
+
1962
+ // add row?
1963
+ if( ! $tr.next('.row').exists() )
1964
+ {
1965
+ $repeater.find('.add-row-end').trigger('click');
1966
+
1967
+ }
1968
+
1969
+
1970
+ // update current div
1971
+ _media.div = $tr.next('.row').find( selector );
1972
+
1973
+ }
1974
+
1975
+
1976
+ // vars
1977
+ var image = {
1978
+ id : attachment.id,
1979
+ url : attachment.attributes.url
1980
+ };
1981
+
1982
+ // is preview size available?
1983
+ if( attachment.attributes.sizes && attachment.attributes.sizes[ t.o.preview_size ] )
1984
+ {
1985
+ image.url = attachment.attributes.sizes[ t.o.preview_size ].url;
1986
+ }
1987
+
1988
+ // add image to field
1989
+ acf.fields.image.add( image );
1990
+
1991
+
1992
+ });
1993
+ // selection.each(function(attachment){
1994
+ }
1995
+ // if( selection )
1996
+
1997
+ });
1998
+ // acf.media.frame.on( 'select', function() {
1999
+
2000
+
2001
+ // Finally, open the modal
2002
+ acf.media.frame.open();
2003
+
2004
+
2005
+ return false;
2006
+ },
2007
+
2008
+ // temporary gallery fix
2009
+ text : {
2010
+ title_add : "Select Image",
2011
+ title_edit : "Edit Image"
2012
+ }
2013
+
2014
+ };
2015
+
2016
+
2017
+ /*
2018
+ * Events
2019
+ *
2020
+ * jQuery events for this field
2021
+ *
2022
+ * @type function
2023
+ * @date 1/03/2011
2024
+ *
2025
+ * @param N/A
2026
+ * @return N/A
2027
+ */
2028
+
2029
+ $(document).on('click', '.acf-image-uploader .acf-button-edit', function( e ){
2030
+
2031
+ e.preventDefault();
2032
+
2033
+ acf.fields.image.set({ $el : $(this).closest('.acf-image-uploader') }).edit();
2034
+
2035
+ });
2036
+
2037
+ $(document).on('click', '.acf-image-uploader .acf-button-delete', function( e ){
2038
+
2039
+ e.preventDefault();
2040
+
2041
+ acf.fields.image.set({ $el : $(this).closest('.acf-image-uploader') }).remove();
2042
+
2043
+ });
2044
+
2045
+
2046
+ $(document).on('click', '.acf-image-uploader .add-image', function( e ){
2047
+
2048
+ e.preventDefault();
2049
+
2050
+ acf.fields.image.set({ $el : $(this).closest('.acf-image-uploader') }).popup();
2051
+
2052
+ });
2053
+
2054
+
2055
+ })(jQuery);
2056
+
2057
+ /* **********************************************
2058
+ Begin radio.js
2059
+ ********************************************** */
2060
+
2061
+ (function($){
2062
+
2063
+ /*
2064
+ * Radio
2065
+ *
2066
+ * static model and events for this field
2067
+ *
2068
+ * @type event
2069
+ * @date 1/06/13
2070
+ *
2071
+ */
2072
+
2073
+ acf.fields.radio = {
2074
+
2075
+ $el : null,
2076
+ $input : null,
2077
+ $other : null,
2078
+ farbtastic : null,
2079
+
2080
+ set : function( o ){
2081
+
2082
+ // merge in new option
2083
+ $.extend( this, o );
2084
+
2085
+
2086
+ // find input
2087
+ this.$input = this.$el.find('input[type="radio"]:checked');
2088
+ this.$other = this.$el.find('input[type="text"]');
2089
+
2090
+
2091
+ // return this for chaining
2092
+ return this;
2093
+
2094
+ },
2095
+ change : function(){
2096
+
2097
+ if( this.$input.val() == 'other' )
2098
+ {
2099
+ this.$other.attr('name', this.$input.attr('name'));
2100
+ this.$other.show();
2101
+ }
2102
+ else
2103
+ {
2104
+ this.$other.attr('name', '');
2105
+ this.$other.hide();
2106
+ }
2107
+ }
2108
+ };
2109
+
2110
+
2111
+ /*
2112
+ * Events
2113
+ *
2114
+ * jQuery events for this field
2115
+ *
2116
+ * @type function
2117
+ * @date 1/03/2011
2118
+ *
2119
+ * @param N/A
2120
+ * @return N/A
2121
+ */
2122
+
2123
+ $(document).on('change', '.acf-radio-list input[type="radio"]', function( e ){
2124
+
2125
+ acf.fields.radio.set({ $el : $(this).closest('.acf-radio-list') }).change();
2126
+
2127
+ });
2128
+
2129
+
2130
+ })(jQuery);
2131
+
2132
+ /* **********************************************
2133
+ Begin relationship.js
2134
+ ********************************************** */
2135
+
2136
+ (function($){
2137
+
2138
+ /*
2139
+ * Relationship
2140
+ *
2141
+ * static model for this field
2142
+ *
2143
+ * @type event
2144
+ * @date 1/06/13
2145
+ *
2146
+ */
2147
+
2148
+ acf.fields.relationship = {
2149
+
2150
+ $el : null,
2151
+ $input : null,
2152
+ $left : null,
2153
+ $right : null,
2154
+
2155
+ o : {},
2156
+
2157
+ timeout : null,
2158
+
2159
+ set : function( o ){
2160
+
2161
+ // merge in new option
2162
+ $.extend( this, o );
2163
+
2164
+
2165
+ // find elements
2166
+ this.$input = this.$el.children('input[type="hidden"]');
2167
+ this.$left = this.$el.find('.relationship_left'),
2168
+ this.$right = this.$el.find('.relationship_right');
2169
+
2170
+
2171
+ // get options
2172
+ this.o = acf.helpers.get_atts( this.$el );
2173
+
2174
+
2175
+ // return this for chaining
2176
+ return this;
2177
+
2178
+ },
2179
+ init : function(){
2180
+
2181
+ // reference
2182
+ var _this = this;
2183
+
2184
+
2185
+ // is clone field?
2186
+ if( acf.helpers.is_clone_field(this.$input) )
2187
+ {
2188
+ return;
2189
+ }
2190
+
2191
+
2192
+ // set height of right column
2193
+ this.$right.find('.relationship_list').height( this.$left.height() -2 );
2194
+
2195
+
2196
+ // right sortable
2197
+ this.$right.find('.relationship_list').sortable({
2198
+ axis : 'y',
2199
+ items : '> li',
2200
+ forceHelperSize : true,
2201
+ forcePlaceholderSize : true,
2202
+ scroll : true,
2203
+ update : function(){
2204
+
2205
+ _this.$input.trigger('change');
2206
+
2207
+ }
2208
+ });
2209
+
2210
+
2211
+ // load more
2212
+ var $el = this.$el;
2213
+
2214
+ this.$left.find('.relationship_list').scrollTop( 0 ).on('scroll', function(e){
2215
+
2216
+ // validate
2217
+ if( $el.hasClass('loading') || $el.hasClass('no-results') )
2218
+ {
2219
+ return;
2220
+ }
2221
+
2222
+
2223
+ // Scrolled to bottom
2224
+ if( $(this).scrollTop() + $(this).innerHeight() >= $(this).get(0).scrollHeight )
2225
+ {
2226
+ var paged = parseInt( $el.attr('data-paged') );
2227
+
2228
+ // update paged
2229
+ $el.attr('data-paged', (paged + 1) );
2230
+
2231
+ // fetch
2232
+ _this.set({ $el : $el }).fetch();
2233
+ }
2234
+
2235
+ });
2236
+
2237
+
2238
+ // ajax fetch values for left side
2239
+ this.fetch();
2240
+
2241
+ },
2242
+ fetch : function(){
2243
+
2244
+ // reference
2245
+ var _this = this,
2246
+ $el = this.$el;
2247
+
2248
+
2249
+ // add loading class, stops scroll loading
2250
+ $el.addClass('loading');
2251
+
2252
+
2253
+ // get results
2254
+ $.ajax({
2255
+ url : acf.o.ajaxurl,
2256
+ type : 'post',
2257
+ dataType : 'json',
2258
+ data : $.extend({
2259
+ action : 'acf/fields/relationship/query_posts',
2260
+ post_id : acf.o.post_id,
2261
+ nonce : acf.o.nonce
2262
+ }, this.o ),
2263
+ success : function( json ){
2264
+
2265
+
2266
+ // render
2267
+ _this.set({ $el : $el }).render( json );
2268
+
2269
+ }
2270
+ });
2271
+
2272
+ },
2273
+ render : function( json ){
2274
+
2275
+ // reference
2276
+ var _this = this;
2277
+
2278
+
2279
+ // update classes
2280
+ this.$el.removeClass('no-results').removeClass('loading');
2281
+
2282
+
2283
+ // new search?
2284
+ if( this.o.paged == 1 )
2285
+ {
2286
+ this.$el.find('.relationship_left li:not(.load-more)').remove();
2287
+ }
2288
+
2289
+
2290
+ // no results?
2291
+ if( ! json || ! json.html )
2292
+ {
2293
+ this.$el.addClass('no-results');
2294
+ return;
2295
+ }
2296
+
2297
+
2298
+ // append new results
2299
+ this.$el.find('.relationship_left .load-more').before( json.html );
2300
+
2301
+
2302
+ // next page?
2303
+ if( ! json.next_page_exists )
2304
+ {
2305
+ this.$el.addClass('no-results');
2306
+ }
2307
+
2308
+
2309
+ // apply .hide to left li's
2310
+ this.$left.find('a').each(function(){
2311
+
2312
+ var id = $(this).attr('data-post_id');
2313
+
2314
+ if( _this.$right.find('a[data-post_id="' + id + '"]').exists() )
2315
+ {
2316
+ $(this).parent().addClass('hide');
2317
+ }
2318
+
2319
+ });
2320
+
2321
+ },
2322
+ add : function( $a ){
2323
+
2324
+ // vars
2325
+ var id = $a.attr('data-post_id'),
2326
+ title = $a.html();
2327
+
2328
+
2329
+ // max posts
2330
+ if( this.$right.find('a').length >= this.o.max )
2331
+ {
2332
+ alert( acf.l10n.relationship.max.replace('{max}', this.o.max) );
2333
+ return false;
2334
+ }
2335
+
2336
+
2337
+ // can be added?
2338
+ if( $a.parent().hasClass('hide') )
2339
+ {
2340
+ return false;
2341
+ }
2342
+
2343
+
2344
+ // hide
2345
+ $a.parent().addClass('hide');
2346
+
2347
+
2348
+ // template
2349
+ var data = {
2350
+ post_id : $a.attr('data-post_id'),
2351
+ title : $a.html(),
2352
+ name : this.$input.attr('name')
2353
+ },
2354
+ tmpl = _.template(acf.l10n.relationship.tmpl_li, data);
2355
+
2356
+
2357
+
2358
+ // add new li
2359
+ this.$right.find('.relationship_list').append( tmpl )
2360
+
2361
+
2362
+ // trigger change on new_li
2363
+ this.$input.trigger('change');
2364
+
2365
+
2366
+ // validation
2367
+ this.$el.closest('.field').removeClass('error');
2368
+
2369
+
2370
+ },
2371
+ remove : function( $a ){
2372
+
2373
+ // remove
2374
+ $a.parent().remove();
2375
+
2376
+
2377
+ // show
2378
+ this.$left.find('a[data-post_id="' + $a.attr('data-post_id') + '"]').parent('li').removeClass('hide');
2379
+
2380
+
2381
+ // trigger change on new_li
2382
+ this.$input.trigger('change');
2383
+
2384
+ }
2385
+
2386
+ };
2387
+
2388
+
2389
+ /*
2390
+ * acf/setup_fields
2391
+ *
2392
+ * run init function on all elements for this field
2393
+ *
2394
+ * @type event
2395
+ * @date 20/07/13
2396
+ *
2397
+ * @param {object} e event object
2398
+ * @param {object} el DOM object which may contain new ACF elements
2399
+ * @return N/A
2400
+ */
2401
+
2402
+ $(document).on('acf/setup_fields', function(e, el){
2403
+
2404
+ $(el).find('.acf_relationship').each(function(){
2405
+
2406
+ acf.fields.relationship.set({ $el : $(this) }).init();
2407
+
2408
+ });
2409
+
2410
+ });
2411
+
2412
+
2413
+ /*
2414
+ * Events
2415
+ *
2416
+ * jQuery events for this field
2417
+ *
2418
+ * @type function
2419
+ * @date 1/03/2011
2420
+ *
2421
+ * @param N/A
2422
+ * @return N/A
2423
+ */
2424
+
2425
+ $(document).on('change', '.acf_relationship .select-post_type', function(e){
2426
+
2427
+ // vars
2428
+ var val = $(this).val(),
2429
+ $el = $(this).closest('.acf_relationship');
2430
+
2431
+
2432
+ // update attr
2433
+ $el.attr('data-post_type', val);
2434
+ $el.attr('data-paged', 1);
2435
+
2436
+
2437
+ // fetch
2438
+ acf.fields.relationship.set({ $el : $el }).fetch();
2439
+
2440
+ });
2441
+
2442
+
2443
+ $(document).on('click', '.acf_relationship .relationship_left .relationship_list a', function( e ){
2444
+
2445
+ e.preventDefault();
2446
+
2447
+ acf.fields.relationship.set({ $el : $(this).closest('.acf_relationship') }).add( $(this) );
2448
+
2449
+ $(this).blur();
2450
+
2451
+ });
2452
+
2453
+ $(document).on('click', '.acf_relationship .relationship_right .relationship_list a', function( e ){
2454
+
2455
+ e.preventDefault();
2456
+
2457
+ acf.fields.relationship.set({ $el : $(this).closest('.acf_relationship') }).remove( $(this) );
2458
+
2459
+ $(this).blur();
2460
+
2461
+ });
2462
+
2463
+ $(document).on('keyup', '.acf_relationship input.relationship_search', function( e ){
2464
+
2465
+ // vars
2466
+ var val = $(this).val(),
2467
+ $el = $(this).closest('.acf_relationship');
2468
+
2469
+
2470
+ // update attr
2471
+ $el.attr('data-s', val);
2472
+ $el.attr('data-paged', 1);
2473
+
2474
+
2475
+ // fetch
2476
+ clearTimeout( acf.fields.relationship.timeout );
2477
+ acf.fields.relationship.timeout = setTimeout(function(){
2478
+
2479
+ acf.fields.relationship.set({ $el : $el }).fetch();
2480
+
2481
+ }, 500);
2482
+
2483
+ });
2484
+
2485
+ $(document).on('keypress', '.acf_relationship input.relationship_search', function( e ){
2486
+
2487
+ // don't submit form
2488
+ if( e.which == 13 )
2489
+ {
2490
+ e.preventDefault();
2491
+ }
2492
+
2493
+ });
2494
+
2495
+
2496
+ })(jQuery);
2497
+
2498
+ /* **********************************************
2499
+ Begin tab.js
2500
+ ********************************************** */
2501
+
2502
+ (function($){
2503
+
2504
+
2505
+ /*
2506
+ * acf/setup_fields
2507
+ *
2508
+ * run init function on all elements for this field
2509
+ *
2510
+ * @type event
2511
+ * @date 20/07/13
2512
+ *
2513
+ * @param {object} e event object
2514
+ * @param {object} el DOM object which may contain new ACF elements
2515
+ * @return N/A
2516
+ */
2517
+
2518
+ $(document).on('acf/setup_fields', function(e, el){
2519
+
2520
+ $(el).find('.acf-tab').each(function(){
2521
+
2522
+ // vars
2523
+ var $el = $(this),
2524
+ $field = $el.parent(),
2525
+ $wrap = $field.parent(),
2526
+
2527
+ id = $el.attr('data-id'),
2528
+ label = $el.html();
2529
+
2530
+
2531
+
2532
+ // only run once for each tab
2533
+ if( $el.hasClass('acf-tab-added') )
2534
+ {
2535
+ return;
2536
+ }
2537
+
2538
+ $el.addClass('acf-tab-added');
2539
+
2540
+
2541
+ // create tab group if it doesnt exist
2542
+ if( ! $wrap.children('.acf-tab-group').exists() )
2543
+ {
2544
+ $wrap.children('.field_type-tab:first').before('<ul class="hl clearfix acf-tab-group"></ul>');
2545
+ }
2546
+
2547
+
2548
+ // add tab
2549
+ $wrap.children('.acf-tab-group').append('<li class="field_key-' + id + '" data-field_key="' + id + '"><a class="acf-tab-button" href="#" data-id="' + id + '">' + label + '</a></li>');
2550
+
2551
+
2552
+ });
2553
+
2554
+
2555
+ // trigger
2556
+ $(el).find('.acf-tab-group').each(function(){
2557
+
2558
+ $(this).find('li:first a').trigger('click');
2559
+
2560
+ });
2561
+
2562
+
2563
+ });
2564
+
2565
+
2566
+ /*
2567
+ * Events
2568
+ *
2569
+ * jQuery events for this field
2570
+ *
2571
+ * @type function
2572
+ * @date 1/03/2011
2573
+ *
2574
+ * @param N/A
2575
+ * @return N/A
2576
+ */
2577
+
2578
+ $(document).on('click', '.acf-tab-button', function( e ){
2579
+
2580
+
2581
+ e.preventDefault();
2582
+
2583
+
2584
+ // vars
2585
+ var $a = $(this),
2586
+ $ul = $a.closest('ul'),
2587
+ $wrap = $ul.parent(),
2588
+ id = $a.attr('data-id');
2589
+
2590
+
2591
+ // classes
2592
+ $ul.find('li').removeClass('active');
2593
+ $a.parent('li').addClass('active');
2594
+
2595
+
2596
+ // hide / show
2597
+ $wrap.children('.field_type-tab').each(function(){
2598
+
2599
+ var $tab = $(this);
2600
+
2601
+ if( $tab.hasClass('field_key-' + id) )
2602
+ {
2603
+ $tab.nextUntil('.field_type-tab').removeClass('acf-tab_group-hide').addClass('acf-tab_group-show');
2604
+ }
2605
+ else
2606
+ {
2607
+ $tab.nextUntil('.field_type-tab').removeClass('acf-tab_group-show').addClass('acf-tab_group-hide');
2608
+ }
2609
+
2610
+ });
2611
+
2612
+
2613
+ // blur to remove dotted lines around button
2614
+ $a.trigger('blur');
2615
+
2616
+
2617
+ });
2618
+
2619
+
2620
+ })(jQuery);
2621
+
2622
+ /* **********************************************
2623
+ Begin validation.js
2624
+ ********************************************** */
2625
+
2626
+ (function($){
2627
+
2628
+
2629
+ /*
2630
+ * Validation
2631
+ *
2632
+ * JS model
2633
+ *
2634
+ * @type object
2635
+ * @date 1/06/13
2636
+ *
2637
+ */
2638
+
2639
+ acf.validation = {
2640
+
2641
+ status : true,
2642
+ disabled : false,
2643
+
2644
+ run : function(){
2645
+
2646
+ // reference
2647
+ var _this = this;
2648
+
2649
+
2650
+ // reset
2651
+ _this.status = true;
2652
+
2653
+
2654
+ // loop through all fields
2655
+ $('.postbox:not(.acf-hidden) .field.required, .form-field.required').each(function(){
2656
+
2657
+ // vars
2658
+ var div = $(this);
2659
+
2660
+
2661
+ // set validation data
2662
+ div.data('validation', true);
2663
+
2664
+
2665
+ // if is hidden by conditional logic, ignore
2666
+ if( div.hasClass('acf-conditional_logic-hide') )
2667
+ {
2668
+ return;
2669
+ }
2670
+
2671
+
2672
+ // if is hidden by conditional logic on a parent tab, ignore
2673
+ if( div.hasClass('acf-tab_group-hide') )
2674
+ {
2675
+ if( div.prevAll('.field_type-tab:first').hasClass('acf-conditional_logic-hide') )
2676
+ {
2677
+ return;
2678
+ }
2679
+ }
2680
+
2681
+
2682
+ // text / textarea
2683
+ if( div.find('input[type="text"], input[type="email"], input[type="number"], input[type="hidden"], textarea').val() == "" )
2684
+ {
2685
+ div.data('validation', false);
2686
+ }
2687
+
2688
+
2689
+ // wysiwyg
2690
+ if( div.find('.acf_wysiwyg').exists() && typeof(tinyMCE) == "object")
2691
+ {
2692
+ div.data('validation', true);
2693
+
2694
+ var id = div.find('.wp-editor-area').attr('id'),
2695
+ editor = tinyMCE.get( id );
2696
+
2697
+
2698
+ if( editor && !editor.getContent() )
2699
+ {
2700
+ div.data('validation', false);
2701
+ }
2702
+ }
2703
+
2704
+
2705
+ // select
2706
+ if( div.find('select').exists() )
2707
+ {
2708
+ div.data('validation', true);
2709
+
2710
+ if( div.find('select').val() == "null" || ! div.find('select').val() )
2711
+ {
2712
+ div.data('validation', false);
2713
+ }
2714
+ }
2715
+
2716
+
2717
+ // radio
2718
+ if( div.find('input[type="radio"]').exists() )
2719
+ {
2720
+ div.data('validation', false);
2721
+
2722
+ if( div.find('input[type="radio"]:checked').exists() )
2723
+ {
2724
+ div.data('validation', true);
2725
+ }
2726
+ }
2727
+
2728
+
2729
+ // checkbox
2730
+ if( div.find('input[type="checkbox"]').exists() )
2731
+ {
2732
+ div.data('validation', false);
2733
+
2734
+ if( div.find('input[type="checkbox"]:checked').exists() )
2735
+ {
2736
+ div.data('validation', true);
2737
+ }
2738
+ }
2739
+
2740
+
2741
+ // relationship
2742
+ if( div.find('.acf_relationship').exists() )
2743
+ {
2744
+ div.data('validation', false);
2745
+
2746
+ if( div.find('.acf_relationship .relationship_right input').exists() )
2747
+ {
2748
+ div.data('validation', true);
2749
+ }
2750
+ }
2751
+
2752
+
2753
+ // repeater
2754
+ if( div.find('.repeater').exists() )
2755
+ {
2756
+ div.data('validation', false);
2757
+
2758
+ if( div.find('.repeater tr.row').exists() )
2759
+ {
2760
+ div.data('validation', true);
2761
+ }
2762
+ }
2763
+
2764
+
2765
+ // flexible content
2766
+ if( div.find('.acf_flexible_content').exists() )
2767
+ {
2768
+ div.data('validation', false);
2769
+ if( div.find('.acf_flexible_content .values table').exists() )
2770
+ {
2771
+ div.data('validation', true);
2772
+ }
2773
+ }
2774
+
2775
+
2776
+ // gallery
2777
+ if( div.find('.acf-gallery').exists() )
2778
+ {
2779
+ div.data('validation', false);
2780
+
2781
+ if( div.find('.acf-gallery .thumbnail').exists())
2782
+ {
2783
+ div.data('validation', true);
2784
+ }
2785
+ }
2786
+
2787
+
2788
+ // hook for custom validation
2789
+ $(document).trigger('acf/validate_field', div );
2790
+
2791
+
2792
+ // set validation
2793
+ if( ! div.data('validation') )
2794
+ {
2795
+ _this.status = false;
2796
+ div.closest('.field').addClass('error');
2797
+ }
2798
+
2799
+
2800
+ });
2801
+ // end loop through all fields
2802
+ }
2803
+
2804
+ };
2805
+
2806
+
2807
+ /*
2808
+ * Events
2809
+ *
2810
+ * Remove error class on focus
2811
+ *
2812
+ * @type function
2813
+ * @date 1/03/2011
2814
+ *
2815
+ * @param N/A
2816
+ * @return N/A
2817
+ */
2818
+
2819
+ $(document).on('focus click', '.field.required input, .field.required textarea, .field.required select', function( e ){
2820
+
2821
+ $(this).closest('.field').removeClass('error');
2822
+
2823
+ });
2824
+
2825
+
2826
+ /*
2827
+ * Save Post
2828
+ *
2829
+ * If user is saving a draft, allow them to bypass the validation
2830
+ *
2831
+ * @type function
2832
+ * @date 1/03/2011
2833
+ *
2834
+ * @param N/A
2835
+ * @return N/A
2836
+ */
2837
+
2838
+ $(document).on('click', '#save-post', function(){
2839
+
2840
+ acf.validation.disabled = true;
2841
+
2842
+ });
2843
+
2844
+
2845
+ /*
2846
+ * Submit Post
2847
+ *
2848
+ * Run validation and return true|false accordingly
2849
+ *
2850
+ * @type function
2851
+ * @date 1/03/2011
2852
+ *
2853
+ * @param N/A
2854
+ * @return N/A
2855
+ */
2856
+
2857
+ $(document).on('submit', '#post', function(){
2858
+
2859
+ // If disabled, bail early on the validation check
2860
+ if( acf.validation.disabled )
2861
+ {
2862
+ return true;
2863
+ }
2864
+
2865
+
2866
+ // do validation
2867
+ acf.validation.run();
2868
+
2869
+
2870
+ if( ! acf.validation.status )
2871
+ {
2872
+ // vars
2873
+ var $form = $(this);
2874
+
2875
+
2876
+ // show message
2877
+ $form.siblings('#message').remove();
2878
+ $form.before('<div id="message" class="error"><p>' + acf.l10n.validation.error + '</p></div>');
2879
+
2880
+
2881
+ // hide ajax stuff on submit button
2882
+ $('#publish').removeClass('button-primary-disabled');
2883
+ $('#ajax-loading').attr('style','');
2884
+ $('#publishing-action .spinner').hide();
2885
+
2886
+ return false;
2887
+ }
2888
+
2889
+
2890
+ // remove hidden postboxes
2891
+ // + this will stop them from being posted to save
2892
+ $('.acf_postbox.acf-hidden').remove();
2893
+
2894
+
2895
+ // submit the form
2896
+ return true;
2897
+
2898
+ });
2899
+
2900
+
2901
+ })(jQuery);
2902
+
2903
+ /* **********************************************
2904
+ Begin wysiwyg.js
2905
+ ********************************************** */
2906
+
2907
+ (function($){
2908
+
2909
+ /*
2910
+ * WYSIWYG
2911
+ *
2912
+ * jQuery functionality for this field type
2913
+ *
2914
+ * @type object
2915
+ * @date 20/07/13
2916
+ *
2917
+ * @param N/A
2918
+ * @return N/A
2919
+ */
2920
+
2921
+ var _wysiwyg = acf.fields.wysiwyg = {
2922
+
2923
+ $el : null,
2924
+ $textarea : null,
2925
+
2926
+ o : {},
2927
+
2928
+ set : function( o ){
2929
+
2930
+ // merge in new option
2931
+ $.extend( this, o );
2932
+
2933
+
2934
+ // find textarea
2935
+ this.$textarea = this.$el.find('textarea');
2936
+
2937
+
2938
+ // get options
2939
+ this.o = acf.helpers.get_atts( this.$el );
2940
+
2941
+
2942
+ // add ID
2943
+ this.o.id = this.$textarea.attr('id');
2944
+
2945
+
2946
+ // return this for chaining
2947
+ return this;
2948
+
2949
+ },
2950
+ has_tinymce : function(){
2951
+
2952
+ var r = false;
2953
+
2954
+ if( typeof(tinyMCE) == "object" )
2955
+ {
2956
+ r = true;
2957
+ }
2958
+
2959
+ return r;
2960
+
2961
+ },
2962
+ init : function(){
2963
+
2964
+ // is clone field?
2965
+ if( acf.helpers.is_clone_field( this.$textarea ) )
2966
+ {
2967
+ return;
2968
+ }
2969
+
2970
+
2971
+ // temp store tinyMCE.settings
2972
+ var tinyMCE_settings = $.extend( {}, tinyMCE.settings );
2973
+
2974
+
2975
+ // reset tinyMCE settings
2976
+ tinyMCE.settings.theme_advanced_buttons1 = '';
2977
+ tinyMCE.settings.theme_advanced_buttons2 = '';
2978
+ tinyMCE.settings.theme_advanced_buttons3 = '';
2979
+ tinyMCE.settings.theme_advanced_buttons4 = '';
2980
+
2981
+ if( acf.helpers.isset( this.toolbars[ this.o.toolbar ] ) )
2982
+ {
2983
+ $.each( this.toolbars[ this.o.toolbar ], function( k, v ){
2984
+ tinyMCE.settings[ k ] = v;
2985
+ })
2986
+ }
2987
+
2988
+
2989
+ // add functionality back in
2990
+ tinyMCE.execCommand("mceAddControl", false, this.o.id);
2991
+
2992
+
2993
+ // events - load
2994
+ $(document).trigger('acf/wysiwyg/load', this.o.id);
2995
+
2996
+
2997
+ // add events (click, focus, blur) for inserting image into correct editor
2998
+ this.add_events();
2999
+
3000
+
3001
+ // restore tinyMCE.settings
3002
+ tinyMCE.settings = tinyMCE_settings;
3003
+
3004
+
3005
+ // set active editor to null
3006
+ wpActiveEditor = null;
3007
+
3008
+ },
3009
+ add_events : function(){
3010
+
3011
+ // vars
3012
+ var id = this.o.id,
3013
+ editor = tinyMCE.get( id );
3014
+
3015
+
3016
+ // validate
3017
+ if( !editor )
3018
+ {
3019
+ return;
3020
+ }
3021
+
3022
+
3023
+ // vars
3024
+ var $container = $('#wp-' + id + '-wrap'),
3025
+ $body = $( editor.getBody() );
3026
+
3027
+
3028
+ // events
3029
+ $container.on('click', function(){
3030
+
3031
+ $(document).trigger('acf/wysiwyg/click', id);
3032
+
3033
+ });
3034
+
3035
+ $body.on('focus', function(){
3036
+
3037
+ $(document).trigger('acf/wysiwyg/focus', id);
3038
+
3039
+ });
3040
+
3041
+ $body.on('blur', function(){
3042
+
3043
+ $(document).trigger('acf/wysiwyg/blur', id);
3044
+
3045
+ });
3046
+
3047
+
3048
+ },
3049
+ destroy : function(){
3050
+
3051
+ // vars
3052
+ var id = this.o.id,
3053
+ editor = tinyMCE.get( id );
3054
+
3055
+
3056
+ // Remove tinymcy functionality.
3057
+ // Due to the media popup destroying and creating the field within such a short amount of time,
3058
+ // a JS error will be thrown when launching the edit window twice in a row.
3059
+ try
3060
+ {
3061
+ tinyMCE.execCommand("mceRemoveControl", false, id);
3062
+ }
3063
+ catch(e)
3064
+ {
3065
+ console.log( e );
3066
+ }
3067
+
3068
+
3069
+ // set active editor to null
3070
+ wpActiveEditor = null;
3071
+
3072
+ }
3073
+
3074
+ };
3075
+
3076
+
3077
+ /*
3078
+ * acf/setup_fields
3079
+ *
3080
+ * run init function on all elements for this field
3081
+ *
3082
+ * @type event
3083
+ * @date 20/07/13
3084
+ *
3085
+ * @param {object} e event object
3086
+ * @param {object} el DOM object which may contain new ACF elements
3087
+ * @return N/A
3088
+ */
3089
+
3090
+ $(document).on('acf/setup_fields', function(e, el){
3091
+
3092
+ // validate
3093
+ if( ! _wysiwyg.has_tinymce() )
3094
+ {
3095
+ return;
3096
+ }
3097
+
3098
+
3099
+ // Destory all WYSIWYG fields
3100
+ // This hack will fix a problem when the WP popup is created and hidden, then the ACF popup (image/file field) is opened
3101
+ $(el).find('.acf_wysiwyg').each(function(){
3102
+
3103
+ _wysiwyg.set({ $el : $(this) }).destroy();
3104
+
3105
+ });
3106
+
3107
+
3108
+ // Add WYSIWYG fields
3109
+ setTimeout(function(){
3110
+
3111
+ $(el).find('.acf_wysiwyg').each(function(){
3112
+
3113
+ _wysiwyg.set({ $el : $(this) }).init();
3114
+
3115
+ });
3116
+
3117
+ }, 0);
3118
+
3119
+ });
3120
+
3121
+
3122
+ /*
3123
+ * acf/remove_fields
3124
+ *
3125
+ * This action is called when the $el is being removed from the DOM
3126
+ *
3127
+ * @type event
3128
+ * @date 20/07/13
3129
+ *
3130
+ * @param {object} e event object
3131
+ * @param {object} $el jQuery element being removed
3132
+ * @return N/A
3133
+ */
3134
+
3135
+ $(document).on('acf/remove_fields', function(e, $el){
3136
+
3137
+ // validate
3138
+ if( ! _wysiwyg.has_tinymce() )
3139
+ {
3140
+ return;
3141
+ }
3142
+
3143
+
3144
+ $el.find('.acf_wysiwyg').each(function(){
3145
+
3146
+ _wysiwyg.set({ $el : $(this) }).destroy();
3147
+
3148
+ });
3149
+
3150
+ });
3151
+
3152
+
3153
+ /*
3154
+ * acf/wysiwyg/click
3155
+ *
3156
+ * this event is run when a user clicks on a WYSIWYG field
3157
+ *
3158
+ * @type event
3159
+ * @date 17/01/13
3160
+ *
3161
+ * @param {object} e event object
3162
+ * @param {int} id WYSIWYG ID
3163
+ * @return N/A
3164
+ */
3165
+
3166
+ $(document).on('acf/wysiwyg/click', function(e, id){
3167
+
3168
+ wpActiveEditor = id;
3169
+
3170
+ container = $('#wp-' + id + '-wrap').closest('.field').removeClass('error');
3171
+
3172
+ });
3173
+
3174
+
3175
+ /*
3176
+ * acf/wysiwyg/focus
3177
+ *
3178
+ * this event is run when a user focuses on a WYSIWYG field body
3179
+ *
3180
+ * @type event
3181
+ * @date 17/01/13
3182
+ *
3183
+ * @param {object} e event object
3184
+ * @param {int} id WYSIWYG ID
3185
+ * @return N/A
3186
+ */
3187
+
3188
+ $(document).on('acf/wysiwyg/focus', function(e, id){
3189
+
3190
+ wpActiveEditor = id;
3191
+
3192
+ container = $('#wp-' + id + '-wrap').closest('.field').removeClass('error');
3193
+
3194
+ });
3195
+
3196
+
3197
+ /*
3198
+ * acf/wysiwyg/blur
3199
+ *
3200
+ * this event is run when a user loses focus on a WYSIWYG field body
3201
+ *
3202
+ * @type event
3203
+ * @date 17/01/13
3204
+ *
3205
+ * @param {object} e event object
3206
+ * @param {int} id WYSIWYG ID
3207
+ * @return N/A
3208
+ */
3209
+
3210
+ $(document).on('acf/wysiwyg/blur', function(e, id){
3211
+
3212
+ wpActiveEditor = null;
3213
+
3214
+ // update the hidden textarea
3215
+ // - This fixes a but when adding a taxonomy term as the form is not posted and the hidden tetarea is never populated!
3216
+ var editor = tinyMCE.get( id );
3217
+
3218
+
3219
+ // validate
3220
+ if( !editor )
3221
+ {
3222
+ return;
3223
+ }
3224
+
3225
+
3226
+ var el = editor.getElement();
3227
+
3228
+
3229
+ // save to textarea
3230
+ editor.save();
3231
+
3232
+
3233
+ // trigger change on textarea
3234
+ $( el ).trigger('change');
3235
+
3236
+ });
3237
+
3238
+
3239
+ /*
3240
+ * acf/sortable_start
3241
+ *
3242
+ * this event is run when a element is being drag / dropped
3243
+ *
3244
+ * @type event
3245
+ * @date 10/11/12
3246
+ *
3247
+ * @param {object} e event object
3248
+ * @param {object} el DOM object which may contain new ACF elements
3249
+ * @return N/A
3250
+ */
3251
+
3252
+ $(document).on('acf/sortable_start', function(e, el) {
3253
+
3254
+ // validate
3255
+ if( ! _wysiwyg.has_tinymce() )
3256
+ {
3257
+ return;
3258
+ }
3259
+
3260
+
3261
+ $(el).find('.acf_wysiwyg').each(function(){
3262
+
3263
+ _wysiwyg.set({ $el : $(this) }).destroy();
3264
+
3265
+ });
3266
+
3267
+ });
3268
+
3269
+
3270
+ /*
3271
+ * acf/sortable_stop
3272
+ *
3273
+ * this event is run when a element has finnished being drag / dropped
3274
+ *
3275
+ * @type event
3276
+ * @date 10/11/12
3277
+ *
3278
+ * @param {object} e event object
3279
+ * @param {object} el DOM object which may contain new ACF elements
3280
+ * @return N/A
3281
+ */
3282
+
3283
+ $(document).on('acf/sortable_stop', function(e, el) {
3284
+
3285
+ // validate
3286
+ if( ! _wysiwyg.has_tinymce() )
3287
+ {
3288
+ return;
3289
+ }
3290
+
3291
+
3292
+ $(el).find('.acf_wysiwyg').each(function(){
3293
+
3294
+ _wysiwyg.set({ $el : $(this) }).init();
3295
+
3296
+ });
3297
+
3298
+ });
3299
+
3300
+
3301
+ /*
3302
+ * window load
3303
+ *
3304
+ * @description:
3305
+ * @since: 3.5.5
3306
+ * @created: 22/12/12
3307
+ */
3308
+
3309
+ $(window).load(function(){
3310
+
3311
+ // validate
3312
+ if( ! _wysiwyg.has_tinymce() )
3313
+ {
3314
+ return;
3315
+ }
3316
+
3317
+
3318
+ // vars
3319
+ var wp_content = $('#wp-content-wrap').exists(),
3320
+ wp_acf_settings = $('#wp-acf_settings-wrap').exists()
3321
+ mode = 'tmce';
3322
+
3323
+
3324
+ // has_editor
3325
+ if( wp_acf_settings )
3326
+ {
3327
+ // html_mode
3328
+ if( $('#wp-acf_settings-wrap').hasClass('html-active') )
3329
+ {
3330
+ mode = 'html';
3331
+ }
3332
+ }
3333
+
3334
+
3335
+ setTimeout(function(){
3336
+
3337
+ // trigger click on hidden wysiwyg (to get in HTML mode)
3338
+ if( wp_acf_settings && mode == 'html' )
3339
+ {
3340
+ $('#acf_settings-tmce').trigger('click');
3341
+ }
3342
+
3343
+ }, 1);
3344
+
3345
+
3346
+ setTimeout(function(){
3347
+
3348
+ // trigger html mode for people who want to stay in HTML mode
3349
+ if( wp_acf_settings && mode == 'html' )
3350
+ {
3351
+ $('#acf_settings-html').trigger('click');
3352
+ }
3353
+
3354
+ // Add events to content editor
3355
+ if( wp_content )
3356
+ {
3357
+ _wysiwyg.set({ $el : $('#wp-content-wrap') }).add_events();
3358
+ }
3359
+
3360
+
3361
+ }, 11);
3362
+
3363
+ });
3364
+
3365
+
3366
+ /*
3367
+ * Full screen
3368
+ *
3369
+ * @description: this hack will hide the 'image upload' button in the wysiwyg full screen mode if the field has disabled image uploads!
3370
+ * @since: 3.6
3371
+ * @created: 26/02/13
3372
+ */
3373
+
3374
+ $(document).on('click', '.acf_wysiwyg a.mce_fullscreen', function(){
3375
+
3376
+ // vars
3377
+ var wysiwyg = $(this).closest('.acf_wysiwyg'),
3378
+ upload = wysiwyg.attr('data-upload');
3379
+
3380
+ if( upload == 'no' )
3381
+ {
3382
+ $('#mce_fullscreen_container td.mceToolbar .mce_add_media').remove();
3383
+ }
3384
+
3385
+ });
3386
+
3387
+
3388
+ })(jQuery);
js/input.min.js CHANGED
@@ -1,4 +1,6 @@
1
- /*
 
 
2
  * input.js
3
  *
4
  * All javascript needed for ACF to work
@@ -8,4 +10,4 @@
8
  *
9
  * @param N/A
10
  * @return N/A
11
- */var acf={ajaxurl:"",admin_url:"",wp_version:"",post_id:0,nonce:"",l10n:null,o:null,helpers:{get_atts:null,version_compare:null,uniqid:null,sortable:null,add_message:null,is_clone_field:null,url_to_object:null},validation:null,conditional_logic:null,media:null,fields:{date_picker:null,color_picker:null,Image:null,file:null,wysiwyg:null,gallery:null,relationship:null}};(function(e){acf.helpers.isset=function(){var e=arguments,t=e.length,n=0,r;if(t===0)throw new Error("Empty isset");while(n!==t){if(e[n]===r||e[n]===null)return!1;n++}return!0};acf.helpers.get_atts=function(t){var n={};e.each(t[0].attributes,function(e,t){t.name.substr(0,5)=="data-"&&(n[t.name.replace("data-","")]=t.value)});return n};acf.helpers.version_compare=function(e,t){if(typeof e+typeof t!="stringstring")return!1;var n=e.split("."),r=t.split("."),i=0,s=Math.max(n.length,r.length);for(;i<s;i++){if(n[i]&&!r[i]&&parseInt(n[i])>0||parseInt(n[i])>parseInt(r[i]))return 1;if(r[i]&&!n[i]&&parseInt(r[i])>0||parseInt(n[i])<parseInt(r[i]))return-1}return 0};acf.helpers.uniqid=function(){var e=new Date;return e.getTime()};acf.helpers.url_to_object=function(e){var t={},n=e.split("&");for(i in n){var r=n[i].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t};acf.helpers.sortable=function(t,n){n.children().each(function(){e(this).width(e(this).width())});return n};acf.helpers.is_clone_field=function(e){return e.attr("name")&&e.attr("name").indexOf("[acfcloneindex]")!=-1?!0:!1};acf.helpers.add_message=function(t,n){var t=e('<div class="acf-message-wrapper"><div class="message updated"><p>'+t+"</p></div></div>");n.prepend(t);setTimeout(function(){t.animate({opacity:0},250,function(){t.remove()})},1500)};e.fn.exists=function(){return e(this).length>0};acf.media={div:null,frame:null,clear_frame:function(){if(!this.frame)return;this.frame.detach();this.frame.dispose();this.frame=null},type:function(){var e="thickbox";typeof wp=="object"&&(e="backbone");return e},init:function(){var t=wp.media.view.AttachmentCompat.prototype;t.orig_render=t.render;t.orig_dispose=t.dispose;t.className="compat-item acf_postbox no_box";t.render=function(){var t=this;if(t.ignore_render)return this;this.orig_render();setTimeout(function(){var n=t.$el.closest(".media-modal");if(n.hasClass("acf-media-modal"))return;if(n.find(".media-frame-router .acf-expand-details").exists())return;var r=e(['<a href="#" class="acf-expand-details">','<span class="icon"></span>','<span class="is-closed">'+acf.l10n.core.expand_details+"</span>",'<span class="is-open">'+acf.l10n.core.collapse_details+"</span>","</a>"].join(""));r.on("click",function(e){e.preventDefault();n.hasClass("acf-expanded")?n.removeClass("acf-expanded"):n.addClass("acf-expanded")});n.find(".media-frame-router").append(r)},0);setTimeout(function(){e(document).trigger("acf/setup_fields",t.$el)},50);return this};t.dispose=function(){e(document).trigger("acf/remove_fields",[this.$el]);this.orig_dispose()};t.save=function(e){var t={},n={};e&&e.preventDefault();_.each(this.$el.serializeArray(),function(e){if(e.name.slice(-2)==="[]"){e.name=e.name.replace("[]","");typeof n[e.name]=="undefined"&&(n[e.name]=-1);n[e.name]++;e.name+="["+n[e.name]+"]"}t[e.name]=e.value});this.ignore_render=!0;this.model.saveCompat(t)}}};acf.conditional_logic={items:[],init:function(){var t=this;e(document).on("change",".field input, .field textarea, .field select",function(){t.change()});t.change()},change:function(){var t=this;e.each(this.items,function(n,r){var i=!0,s=e(".field_key-"+r.field);r.allorany=="any"&&(i=!1);e.each(r.rules,function(e,n){var s=t.calculate(n);if(r.allorany=="all"){if(s==0){i=!1;return!1}}else if(s==1){i=!0;return!1}});if(i){s.find("input, textarea, select").removeAttr("disabled");s.removeClass("acf-conditional_logic-hide").addClass("acf-conditional_logic-show")}else{s.find("input, textarea, select").attr("disabled","disabled");s.removeClass("acf-conditional_logic-show").addClass("acf-conditional_logic-hide")}})},calculate:function(t){var n=e(".field_key-"+t.field),r=!1;if(n.hasClass("field_type-true_false")||n.hasClass("field_type-checkbox")||n.hasClass("field_type-radio")){var i=n.find('input[value="'+t.value+'"]:checked').exists();t.operator=="=="?i&&(r=!0):i||(r=!0)}else{var s=n.find("input, textarea, select").last().val();e.isArray(s)||(s=[s]);t.operator=="=="?e.inArray(t.value,s)>-1&&(r=!0):e.inArray(t.value,s)<0&&(r=!0)}return r}};e(document).ready(function(){acf.conditional_logic.init();e(".acf_postbox > .inside > .options").each(function(){e(this).closest(".acf_postbox").addClass(e(this).attr("data-layout"))})});e(window).load(function(){acf.media.init();setTimeout(function(){try{wp.media.view.settings.post.id=acf.post_id}catch(t){}e(document).trigger("acf/setup_fields",[e("#poststuff")])},10)});acf.fields.gallery={add:function(){},edit:function(){},update_count:function(){},hide_selected_items:function(){},text:{title_add:"Select Images"}}})(jQuery);(function(e){acf.screen={action:"acf/location/match_field_groups_ajax",post_id:0,page_template:0,page_parent:0,page_type:0,post_category:0,post_format:0,taxonomy:0,lang:0,nonce:0};e(document).ready(function(){acf.screen.post_id=acf.o.post_id;acf.screen.nonce=acf.o.nonce;if(e("#icl-als-first").length>0){var t=e("#icl-als-first").children("a").attr("href"),n=new RegExp("lang=([^&#]*)"),r=n.exec(t);acf.screen.lang=r[1]}});e(document).on("acf/update_field_groups",function(){e.ajax({url:ajaxurl,data:acf.screen,type:"post",dataType:"json",success:function(t){if(!t)return!1;e(".acf_postbox").addClass("acf-hidden");e(".acf_postbox-toggle").addClass("acf-hidden");if(t.length==0)return!1;e.each(t,function(t,n){var r=e("#acf_"+n),i=e('#adv-settings .acf_postbox-toggle[for="acf_'+n+'-hide"]');r.removeClass("acf-hidden hide-if-js");i.removeClass("acf-hidden");i.find('input[type="checkbox"]').attr("checked","checked");r.find(".acf-replace-with-fields").each(function(){var t=e(this);e.ajax({url:ajaxurl,data:{action:"acf/input/render_fields",acf_id:n,post_id:acf.o.post_id,nonce:acf.o.nonce},type:"post",dataType:"html",success:function(n){t.replaceWith(n);e(document).trigger("acf/setup_fields",r)}})})});e.ajax({url:ajaxurl,data:{action:"acf/input/get_style",acf_id:t[0],nonce:acf.o.nonce},type:"post",dataType:"html",success:function(t){e("#acf_style").html(t)}})}})});e(document).on("change","#page_template",function(){acf.screen.page_template=e(this).val();e(document).trigger("acf/update_field_groups")});e(document).on("change","#parent_id",function(){var t=e(this).val();if(t!=""){acf.screen.page_type="child";acf.screen.page_parent=t}else{acf.screen.page_type="parent";acf.screen.page_parent=0}e(document).trigger("acf/update_field_groups")});e(document).on("change",'#post-formats-select input[type="radio"]',function(){var t=e(this).val();t=="0"&&(t="standard");acf.screen.post_format=t;e(document).trigger("acf/update_field_groups")});e(document).on("change",'.categorychecklist input[type="checkbox"]',function(){setTimeout(function(){var t=[];e('.categorychecklist input[type="checkbox"]:checked').each(function(){if(e(this).is(":hidden")||e(this).is(":disabled"))return;t.push(e(this).val())});acf.screen.post_category=t;acf.screen.taxonomy=t;e(document).trigger("acf/update_field_groups")},1)})})(jQuery);(function(e){var t=acf.fields.color_picker={$el:null,$input:null,set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="text"]');return this},init:function(){if(acf.helpers.is_clone_field(this.$input))return;this.$input.wpColorPicker()}};e(document).on("acf/setup_fields",function(n,r){e(r).find(".acf-color_picker").each(function(){t.set({$el:e(this)}).init()})})})(jQuery);(function(e){acf.fields.date_picker={$el:null,$input:null,$hidden:null,o:{},set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="text"]');this.$hidden=this.$el.find('input[type="hidden"]');this.o=acf.helpers.get_atts(this.$el);return this},init:function(){if(acf.helpers.is_clone_field(this.$hidden))return;this.$input.val(this.$hidden.val());var t=e.extend({},acf.l10n.date_picker,{dateFormat:this.o.save_format,altField:this.$hidden,altFormat:this.o.save_format,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.o.first_day});this.$input.addClass("active").datepicker(t);this.$input.datepicker("option","dateFormat",this.o.display_format);e("body > #ui-datepicker-div").length>0&&e("#ui-datepicker-div").wrap('<div class="ui-acf" />')},blur:function(){this.$input.val()||this.$hidden.val("")}};e(document).on("acf/setup_fields",function(t,n){e(n).find(".acf-date_picker").each(function(){acf.fields.date_picker.set({$el:e(this)}).init()})});e(document).on("blur",'.acf-date_picker input[type="text"]',function(t){acf.fields.date_picker.set({$el:e(this).parent()}).blur()})})(jQuery);(function(e){var t=acf.media;acf.fields.file={$el:null,$input:null,o:{},set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="hidden"]');this.o=acf.helpers.get_atts(this.$el);this.o.multiple=this.$el.closest(".repeater").exists()?!0:!1;this.o.query={};this.o.library=="uploadedTo"&&(this.o.query.uploadedTo=acf.o.post_id);return this},init:function(){if(acf.helpers.is_clone_field(this.$input))return},add:function(e){var n=t.div;n.find(".acf-file-icon").attr("src",e.icon);n.find(".acf-file-title").text(e.title);n.find(".acf-file-name").text(e.name).attr("href",e.url);n.find(".acf-file-size").text(e.size);n.find(".acf-file-value").val(e.id).trigger("change");n.addClass("active");n.closest(".field").removeClass("error")},edit:function(){var e=this.$input.val();t.div=this.$el;t.clear_frame();t.frame=wp.media({title:acf.l10n.file.edit,multiple:!1,button:{text:acf.l10n.file.update}});t.frame.on("open",function(){t.frame.$el.closest(".media-modal").addClass("acf-media-modal acf-expanded");var n=t.frame.state().get("selection"),r=wp.media.attachment(e);r.fetch();n.add(r)});t.frame.on("close",function(){t.frame.$el.closest(".media-modal").removeClass("acf-media-modal")});acf.media.frame.open()},remove:function(){this.$el.find(".acf-file-icon").attr("src","");this.$el.find(".acf-file-title").text("");this.$el.find(".acf-file-name").text("").attr("href","");this.$el.find(".acf-file-size").text("");this.$el.find(".acf-file-value").val("").trigger("change");this.$el.removeClass("active")},popup:function(){var n=this;t.div=this.$el;t.clear_frame();t.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query(n.o.query),multiple:n.o.multiple,title:acf.l10n.file.select,priority:20,filterable:"all"})]});acf.media.frame.on("content:activate",function(){var t=null,r=null;try{t=acf.media.frame.content.get().toolbar;r=t.get("filters")}catch(i){}if(!r)return!1;if(n.o.library=="uploadedTo"){r.$el.find('option[value="uploaded"]').remove();r.$el.after("<span>"+acf.l10n.file.uploadedTo+"</span>");e.each(r.filters,function(e,t){t.props.uploadedTo=acf.o.post_id})}});acf.media.frame.on("select",function(){selection=t.frame.state().get("selection");if(selection){var e=0;selection.each(function(n){e++;if(e>1){var r=t.div.closest("td"),s=r.closest(".row"),o=s.closest(".repeater"),u=r.attr("data-field_key"),a="td .acf-file-uploader:first";u&&(a='td[data-field_key="'+u+'"] .acf-file-uploader');s.next(".row").exists()||o.find(".add-row-end").trigger("click");t.div=s.next(".row").find(a)}var f={id:n.id,title:n.attributes.title,name:n.attributes.filename,url:n.attributes.url,icon:n.attributes.icon,size:n.attributes.filesize};acf.fields.file.add(f)})}});acf.media.frame.open();return!1}};e(document).on("click",".acf-file-uploader .acf-button-edit",function(t){t.preventDefault();acf.fields.file.set({$el:e(this).closest(".acf-file-uploader")}).edit()});e(document).on("click",".acf-file-uploader .acf-button-delete",function(t){t.preventDefault();acf.fields.file.set({$el:e(this).closest(".acf-file-uploader")}).remove()});e(document).on("click",".acf-file-uploader .add-file",function(t){t.preventDefault();acf.fields.file.set({$el:e(this).closest(".acf-file-uploader")}).popup()})})(jQuery);(function(e){var t=acf.media;acf.fields.image={$el:null,$input:null,o:{},set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="hidden"]');this.o=acf.helpers.get_atts(this.$el);this.o.multiple=this.$el.closest(".repeater").exists()?!0:!1;this.o.query={type:"image"};this.o.library=="uploadedTo"&&(this.o.query.uploadedTo=acf.o.post_id);return this},init:function(){if(acf.helpers.is_clone_field(this.$input))return},add:function(e){var n=t.div;n.find(".acf-image-image").attr("src",e.url);n.find(".acf-image-value").val(e.id).trigger("change");n.addClass("active");n.closest(".field").removeClass("error")},edit:function(){var e=this.$input.val();t.div=this.$el;t.clear_frame();t.frame=wp.media({title:acf.l10n.image.edit,multiple:!1,button:{text:acf.l10n.image.update}});t.frame.on("open",function(){t.frame.$el.closest(".media-modal").addClass("acf-media-modal acf-expanded");var n=t.frame.state().get("selection"),r=wp.media.attachment(e);r.fetch();n.add(r)});t.frame.on("close",function(){t.frame.$el.closest(".media-modal").removeClass("acf-media-modal")});acf.media.frame.open()},remove:function(){this.$el.find(".acf-image-image").attr("src","");this.$el.find(".acf-image-value").val("").trigger("change");this.$el.removeClass("active")},popup:function(){var n=this;t.div=this.$el;t.clear_frame();t.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query(n.o.query),multiple:n.o.multiple,title:acf.l10n.image.select,priority:20,filterable:"all"})]});acf.media.frame.on("content:activate",function(){var t=null,r=null;try{t=acf.media.frame.content.get().toolbar;r=t.get("filters")}catch(i){}if(!r)return!1;e.each(r.filters,function(e,t){t.props.type="image"});if(n.o.library=="uploadedTo"){r.$el.find('option[value="uploaded"]').remove();r.$el.after("<span>"+acf.l10n.image.uploadedTo+"</span>");e.each(r.filters,function(e,t){t.props.uploadedTo=acf.o.post_id})}r.$el.find("option").each(function(){var t=e(this).attr("value");if(t=="uploaded"&&n.o.library=="all")return;t.indexOf("image")===-1&&e(this).remove()});r.$el.val("image").trigger("change")});acf.media.frame.on("select",function(){selection=t.frame.state().get("selection");if(selection){var e=0;selection.each(function(r){e++;if(e>1){var s=t.div.closest("td"),o=s.closest(".row"),u=o.closest(".repeater"),a=s.attr("data-field_key"),f="td .acf-image-uploader:first";a&&(f='td[data-field_key="'+a+'"] .acf-image-uploader');o.next(".row").exists()||u.find(".add-row-end").trigger("click");t.div=o.next(".row").find(f)}var l={id:r.id,url:r.attributes.url};r.attributes.sizes&&r.attributes.sizes[n.o.preview_size]&&(l.url=r.attributes.sizes[n.o.preview_size].url);acf.fields.image.add(l)})}});acf.media.frame.open();return!1},text:{title_add:"Select Image",title_edit:"Edit Image"}};e(document).on("click",".acf-image-uploader .acf-button-edit",function(t){t.preventDefault();acf.fields.image.set({$el:e(this).closest(".acf-image-uploader")}).edit()});e(document).on("click",".acf-image-uploader .acf-button-delete",function(t){t.preventDefault();acf.fields.image.set({$el:e(this).closest(".acf-image-uploader")}).remove()});e(document).on("click",".acf-image-uploader .add-image",function(t){t.preventDefault();acf.fields.image.set({$el:e(this).closest(".acf-image-uploader")}).popup()})})(jQuery);(function(e){acf.fields.radio={$el:null,$input:null,$other:null,farbtastic:null,set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="radio"]:checked');this.$other=this.$el.find('input[type="text"]');return this},change:function(){if(this.$input.val()=="other"){this.$other.attr("name",this.$input.attr("name"));this.$other.show()}else{this.$other.attr("name","");this.$other.hide()}}};e(document).on("change",'.acf-radio-list input[type="radio"]',function(t){acf.fields.radio.set({$el:e(this).closest(".acf-radio-list")}).change()})})(jQuery);(function(e){acf.fields.relationship={$el:null,$input:null,$left:null,$right:null,o:{},timeout:null,set:function(t){e.extend(this,t);this.$input=this.$el.children('input[type="hidden"]');this.$left=this.$el.find(".relationship_left"),this.$right=this.$el.find(".relationship_right");this.o=acf.helpers.get_atts(this.$el);return this},init:function(){var t=this;if(acf.helpers.is_clone_field(this.$input))return;this.$right.find(".relationship_list").height(this.$left.height()-2);this.$right.find(".relationship_list").sortable({axis:"y",items:"> li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input.trigger("change")}});var n=this.$el;this.$left.find(".relationship_list").scrollTop(0).on("scroll",function(r){if(n.hasClass("loading")||n.hasClass("no-results"))return;if(e(this).scrollTop()+e(this).innerHeight()>=e(this).get(0).scrollHeight){var i=parseInt(n.attr("data-paged"));n.attr("data-paged",i+1);t.set({$el:n}).fetch()}});this.fetch()},fetch:function(){var t=this,n=this.$el;n.addClass("loading");e.ajax({url:acf.o.ajaxurl,type:"post",dataType:"json",data:e.extend({action:"acf/fields/relationship/query_posts",post_id:acf.o.post_id,nonce:acf.o.nonce},this.o),success:function(e){t.set({$el:n}).render(e)}})},render:function(t){var n=this;this.$el.removeClass("no-results").removeClass("loading");this.o.paged==1&&this.$el.find(".relationship_left li:not(.load-more)").remove();if(!t||!t.html){this.$el.addClass("no-results");return}this.$el.find(".relationship_left .load-more").before(t.html);t.next_page_exists||this.$el.addClass("no-results");this.$left.find("a").each(function(){var t=e(this).attr("data-post_id");n.$right.find('a[data-post_id="'+t+'"]').exists()&&e(this).parent().addClass("hide")})},add:function(e){var t=e.attr("data-post_id"),n=e.html();if(this.$right.find("a").length>=this.o.max){alert(acf.l10n.relationship.max.replace("{max}",this.o.max));return!1}if(e.parent().hasClass("hide"))return!1;e.parent().addClass("hide");var r={post_id:e.attr("data-post_id"),title:e.html(),name:this.$input.attr("name")},i=_.template(acf.l10n.relationship.tmpl_li,r);this.$right.find(".relationship_list").append(i);this.$input.trigger("change");this.$el.closest(".field").removeClass("error")},remove:function(e){e.parent().remove();this.$left.find('a[data-post_id="'+e.attr("data-post_id")+'"]').parent("li").removeClass("hide");this.$input.trigger("change")}};e(document).on("acf/setup_fields",function(t,n){e(n).find(".acf_relationship").each(function(){acf.fields.relationship.set({$el:e(this)}).init()})});e(document).on("change",".acf_relationship .select-post_type",function(t){var n=e(this).val(),r=e(this).closest(".acf_relationship");r.attr("data-post_type",n);r.attr("data-paged",1);acf.fields.relationship.set({$el:r}).fetch()});e(document).on("click",".acf_relationship .relationship_left .relationship_list a",function(t){t.preventDefault();acf.fields.relationship.set({$el:e(this).closest(".acf_relationship")}).add(e(this));e(this).blur()});e(document).on("click",".acf_relationship .relationship_right .relationship_list a",function(t){t.preventDefault();acf.fields.relationship.set({$el:e(this).closest(".acf_relationship")}).remove(e(this));e(this).blur()});e(document).on("keyup",".acf_relationship input.relationship_search",function(t){var n=e(this).val(),r=e(this).closest(".acf_relationship");r.attr("data-s",n);r.attr("data-paged",1);clearTimeout(acf.fields.relationship.timeout);acf.fields.relationship.timeout=setTimeout(function(){acf.fields.relationship.set({$el:r}).fetch()},500)});e(document).on("keypress",".acf_relationship input.relationship_search",function(e){e.which==13&&e.preventDefault()})})(jQuery);(function(e){e(document).on("acf/setup_fields",function(t,n){e(n).find(".acf-tab").each(function(){var t=e(this),n=t.parent(),r=n.parent(),i=t.attr("data-id"),s=t.html();if(t.hasClass("acf-tab-added"))return;t.addClass("acf-tab-added");r.children(".acf-tab-group").exists()||r.children(".field_type-tab:first").before('<ul class="hl clearfix acf-tab-group"></ul>');r.children(".acf-tab-group").append('<li class="field_key-'+i+'" data-field_key="'+i+'"><a class="acf-tab-button" href="#" data-id="'+i+'">'+s+"</a></li>")});e(n).find(".acf-tab-group").each(function(){e(this).find("li:first a").trigger("click")})});e(document).on("click",".acf-tab-button",function(t){t.preventDefault();var n=e(this),r=n.closest("ul"),i=r.parent(),s=n.attr("data-id");r.find("li").removeClass("active");n.parent("li").addClass("active");i.children(".field_type-tab").each(function(){var t=e(this);t.hasClass("field_key-"+s)?t.nextUntil(".field_type-tab").removeClass("acf-tab_group-hide").addClass("acf-tab_group-show"):t.nextUntil(".field_type-tab").removeClass("acf-tab_group-show").addClass("acf-tab_group-hide")});n.trigger("blur")})})(jQuery);(function(e){acf.validation={status:!0,disabled:!1,run:function(){var t=this;t.status=!0;e(".postbox:not(.acf-hidden) .field.required, .form-field.required").each(function(){var n=e(this);n.data("validation",!0);if(n.hasClass("acf-conditional_logic-hide"))return;if(n.hasClass("acf-tab_group-hide")&&n.prevAll(".field_type-tab:first").hasClass("acf-conditional_logic-hide"))return;n.find('input[type="text"], input[type="email"], input[type="number"], input[type="hidden"], textarea').val()==""&&n.data("validation",!1);if(n.find(".acf_wysiwyg").exists()&&typeof tinyMCE=="object"){n.data("validation",!0);var r=n.find(".wp-editor-area").attr("id"),i=tinyMCE.get(r);i&&!i.getContent()&&n.data("validation",!1)}if(n.find("select").exists()){n.data("validation",!0);(n.find("select").val()=="null"||!n.find("select").val())&&n.data("validation",!1)}if(n.find('input[type="radio"]').exists()){n.data("validation",!1);n.find('input[type="radio"]:checked').exists()&&n.data("validation",!0)}if(n.find('input[type="checkbox"]').exists()){n.data("validation",!1);n.find('input[type="checkbox"]:checked').exists()&&n.data("validation",!0)}if(n.find(".acf_relationship").exists()){n.data("validation",!1);n.find(".acf_relationship .relationship_right input").exists()&&n.data("validation",!0)}if(n.find(".repeater").exists()){n.data("validation",!1);n.find(".repeater tr.row").exists()&&n.data("validation",!0)}if(n.find(".acf_flexible_content").exists()){n.data("validation",!1);n.find(".acf_flexible_content .values table").exists()&&n.data("validation",!0)}if(n.find(".acf-gallery").exists()){n.data("validation",!1);n.find(".acf-gallery .thumbnail").exists()&&n.data("validation",!0)}e(document).trigger("acf/validate_field",n);if(!n.data("validation")){t.status=!1;n.closest(".field").addClass("error")}})}};e(document).on("focus click",".field.required input, .field.required textarea, .field.required select",function(t){e(this).closest(".field").removeClass("error")});e(document).on("click","#save-post",function(){acf.validation.disabled=!0});e(document).on("submit","#post",function(){if(acf.validation.disabled)return!0;acf.validation.run();if(!acf.validation.status){var t=e(this);t.siblings("#message").remove();t.before('<div id="message" class="error"><p>'+acf.l10n.validation.error+"</p></div>");e("#publish").removeClass("button-primary-disabled");e("#ajax-loading").attr("style","");e("#publishing-action .spinner").hide();return!1}e(".acf_postbox.acf-hidden").remove();return!0})})(jQuery);(function(e){var t=acf.fields.wysiwyg={$el:null,$textarea:null,o:{},set:function(t){e.extend(this,t);this.$textarea=this.$el.find("textarea");this.o=acf.helpers.get_atts(this.$el);this.o.id=this.$textarea.attr("id");return this},has_tinymce:function(){var e=!1;typeof tinyMCE=="object"&&(e=!0);return e},init:function(){if(acf.helpers.is_clone_field(this.$textarea))return;var t=e.extend({},tinyMCE.settings);tinyMCE.settings.theme_advanced_buttons1="";tinyMCE.settings.theme_advanced_buttons2="";tinyMCE.settings.theme_advanced_buttons3="";tinyMCE.settings.theme_advanced_buttons4="";acf.helpers.isset(this.toolbars[this.o.toolbar])&&e.each(this.toolbars[this.o.toolbar],function(e,t){tinyMCE.settings[e]=t});tinyMCE.execCommand("mceAddControl",!1,this.o.id);e(document).trigger("acf/wysiwyg/load",this.o.id);this.add_events();tinyMCE.settings=t;wpActiveEditor=null},add_events:function(){var t=this.o.id,n=tinyMCE.get(t);if(!n)return;var r=e("#wp-"+t+"-wrap"),i=e(n.getBody());r.on("click",function(){e(document).trigger("acf/wysiwyg/click",t)});i.on("focus",function(){e(document).trigger("acf/wysiwyg/focus",t)});i.on("blur",function(){e(document).trigger("acf/wysiwyg/blur",t)})},destroy:function(){var e=this.o.id,t=tinyMCE.get(e);if(t){var n=t.getContent();tinyMCE.execCommand("mceRemoveControl",!1,e);this.$textarea.val(n)}wpActiveEditor=null}};e(document).on("acf/setup_fields",function(n,r){if(!t.has_tinymce())return;e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).destroy()});setTimeout(function(){e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).init()})},0)});e(document).on("acf/remove_fields",function(n,r){if(!t.has_tinymce())return;r.find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).destroy()})});e(document).on("acf/wysiwyg/click",function(t,n){wpActiveEditor=n;container=e("#wp-"+n+"-wrap").closest(".field").removeClass("error")});e(document).on("acf/wysiwyg/focus",function(t,n){wpActiveEditor=n;container=e("#wp-"+n+"-wrap").closest(".field").removeClass("error")});e(document).on("acf/wysiwyg/blur",function(t,n){wpActiveEditor=null;var r=tinyMCE.get(n);if(!r)return;var i=r.getElement();r.save();e(i).trigger("change")});e(document).on("acf/sortable_start",function(n,r){if(!t.has_tinymce())return;e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).destroy()})});e(document).on("acf/sortable_stop",function(n,r){if(!t.has_tinymce())return;e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).init()})});e(window).load(function(){if(!t.has_tinymce())return;var n=e("#wp-content-wrap").exists(),r=e("#wp-acf_settings-wrap").exists();mode="tmce";r&&e("#wp-acf_settings-wrap").hasClass("html-active")&&(mode="html");setTimeout(function(){r&&mode=="html"&&e("#acf_settings-tmce").trigger("click")},1);setTimeout(function(){r&&mode=="html"&&e("#acf_settings-html").trigger("click");n&&t.set({$el:e("#wp-content-wrap")}).add_events()},11)});e(document).on("click",".acf_wysiwyg a.mce_fullscreen",function(){var t=e(this).closest(".acf_wysiwyg"),n=t.attr("data-upload");n=="no"&&e("#mce_fullscreen_container td.mceToolbar .mce_add_media").remove()})})(jQuery);
1
+ /* **********************************************
2
+ Begin acf.js
3
+ ********************************************** *//*
4
  * input.js
5
  *
6
  * All javascript needed for ACF to work
10
  *
11
  * @param N/A
12
  * @return N/A
13
+ */var acf={ajaxurl:"",admin_url:"",wp_version:"",post_id:0,nonce:"",l10n:null,o:null,helpers:{get_atts:null,version_compare:null,uniqid:null,sortable:null,add_message:null,is_clone_field:null,url_to_object:null},validation:null,conditional_logic:null,media:null,fields:{date_picker:null,color_picker:null,Image:null,file:null,wysiwyg:null,gallery:null,relationship:null}};(function(e){acf.helpers.isset=function(){var e=arguments,t=e.length,n=0,r;if(t===0)throw new Error("Empty isset");while(n!==t){if(e[n]===r||e[n]===null)return!1;n++}return!0};acf.helpers.get_atts=function(t){var n={};e.each(t[0].attributes,function(e,t){t.name.substr(0,5)=="data-"&&(n[t.name.replace("data-","")]=t.value)});return n};acf.helpers.version_compare=function(e,t){if(typeof e+typeof t!="stringstring")return!1;var n=e.split("."),r=t.split("."),i=0,s=Math.max(n.length,r.length);for(;i<s;i++){if(n[i]&&!r[i]&&parseInt(n[i])>0||parseInt(n[i])>parseInt(r[i]))return 1;if(r[i]&&!n[i]&&parseInt(r[i])>0||parseInt(n[i])<parseInt(r[i]))return-1}return 0};acf.helpers.uniqid=function(){var e=new Date;return e.getTime()};acf.helpers.url_to_object=function(e){var t={},n=e.split("&");for(i in n){var r=n[i].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t};acf.helpers.sortable=function(t,n){n.children().each(function(){e(this).width(e(this).width())});return n};acf.helpers.is_clone_field=function(e){return e.attr("name")&&e.attr("name").indexOf("[acfcloneindex]")!=-1?!0:!1};acf.helpers.add_message=function(t,n){var t=e('<div class="acf-message-wrapper"><div class="message updated"><p>'+t+"</p></div></div>");n.prepend(t);setTimeout(function(){t.animate({opacity:0},250,function(){t.remove()})},1500)};e.fn.exists=function(){return e(this).length>0};acf.media={div:null,frame:null,render_timout:null,clear_frame:function(){if(!this.frame)return;this.frame.detach();this.frame.dispose();this.frame=null},type:function(){var e="thickbox";typeof wp=="object"&&(e="backbone");return e},init:function(){var t=wp.media.view.AttachmentCompat.prototype;t.orig_render=t.render;t.orig_dispose=t.dispose;t.className="compat-item acf_postbox no_box";t.render=function(){var t=this;if(t.ignore_render)return this;this.orig_render();setTimeout(function(){var n=t.$el.closest(".media-modal");if(n.hasClass("acf-media-modal"))return;if(n.find(".media-frame-router .acf-expand-details").exists())return;var r=e(['<a href="#" class="acf-expand-details">','<span class="icon"></span>','<span class="is-closed">'+acf.l10n.core.expand_details+"</span>",'<span class="is-open">'+acf.l10n.core.collapse_details+"</span>","</a>"].join(""));r.on("click",function(e){e.preventDefault();n.hasClass("acf-expanded")?n.removeClass("acf-expanded"):n.addClass("acf-expanded")});n.find(".media-frame-router").append(r)},0);clearTimeout(acf.media.render_timout);acf.media.render_timout=setTimeout(function(){e(document).trigger("acf/setup_fields",t.$el)},50);return this};t.dispose=function(){e(document).trigger("acf/remove_fields",[this.$el]);this.orig_dispose()};t.save=function(e){var t={},n={};e&&e.preventDefault();_.each(this.$el.serializeArray(),function(e){if(e.name.slice(-2)==="[]"){e.name=e.name.replace("[]","");typeof n[e.name]=="undefined"&&(n[e.name]=-1);n[e.name]++;e.name+="["+n[e.name]+"]"}t[e.name]=e.value});this.ignore_render=!0;this.model.saveCompat(t)}}};acf.conditional_logic={items:[],init:function(){var t=this;e(document).on("change",".field input, .field textarea, .field select",function(){t.change()});t.change()},change:function(){var t=this;e.each(this.items,function(n,r){var i=!0,s=e(".field_key-"+r.field);r.allorany=="any"&&(i=!1);e.each(r.rules,function(e,n){var s=t.calculate(n);if(r.allorany=="all"){if(s==0){i=!1;return!1}}else if(s==1){i=!0;return!1}});if(i){s.find("input, textarea, select").removeAttr("disabled");s.removeClass("acf-conditional_logic-hide").addClass("acf-conditional_logic-show")}else{s.find("input, textarea, select").attr("disabled","disabled");s.removeClass("acf-conditional_logic-show").addClass("acf-conditional_logic-hide")}})},calculate:function(t){var n=e(".field_key-"+t.field),r=!1;if(n.hasClass("field_type-true_false")||n.hasClass("field_type-checkbox")||n.hasClass("field_type-radio")){var i=n.find('input[value="'+t.value+'"]:checked').exists();t.operator=="=="?i&&(r=!0):i||(r=!0)}else{var s=n.find("input, textarea, select").last().val();e.isArray(s)||(s=[s]);t.operator=="=="?e.inArray(t.value,s)>-1&&(r=!0):e.inArray(t.value,s)<0&&(r=!0)}return r}};e(document).ready(function(){acf.conditional_logic.init();e(".acf_postbox > .inside > .options").each(function(){e(this).closest(".acf_postbox").addClass(e(this).attr("data-layout"))})});e(window).load(function(){acf.media.init();setTimeout(function(){try{wp.media.view.settings.post.id=acf.post_id}catch(t){}e(document).trigger("acf/setup_fields",[e("#poststuff")])},10)});acf.fields.gallery={add:function(){},edit:function(){},update_count:function(){},hide_selected_items:function(){},text:{title_add:"Select Images"}}})(jQuery);(function(e){acf.screen={action:"acf/location/match_field_groups_ajax",post_id:0,page_template:0,page_parent:0,page_type:0,post_category:0,post_format:0,taxonomy:0,lang:0,nonce:0};e(document).ready(function(){acf.screen.post_id=acf.o.post_id;acf.screen.nonce=acf.o.nonce;if(e("#icl-als-first").length>0){var t=e("#icl-als-first").children("a").attr("href"),n=new RegExp("lang=([^&#]*)"),r=n.exec(t);acf.screen.lang=r[1]}});e(document).on("acf/update_field_groups",function(){if(!acf.o.post_id)return!1;e.ajax({url:ajaxurl,data:acf.screen,type:"post",dataType:"json",success:function(t){if(!t)return!1;e(".acf_postbox").addClass("acf-hidden");e(".acf_postbox-toggle").addClass("acf-hidden");if(t.length==0)return!1;e.each(t,function(t,n){var r=e("#acf_"+n),i=e('#adv-settings .acf_postbox-toggle[for="acf_'+n+'-hide"]');r.removeClass("acf-hidden hide-if-js");i.removeClass("acf-hidden");i.find('input[type="checkbox"]').attr("checked","checked");r.find(".acf-replace-with-fields").each(function(){var t=e(this);e.ajax({url:ajaxurl,data:{action:"acf/input/render_fields",acf_id:n,post_id:acf.o.post_id,nonce:acf.o.nonce},type:"post",dataType:"html",success:function(n){t.replaceWith(n);e(document).trigger("acf/setup_fields",r)}})})});e.ajax({url:ajaxurl,data:{action:"acf/input/get_style",acf_id:t[0],nonce:acf.o.nonce},type:"post",dataType:"html",success:function(t){e("#acf_style").html(t)}})}})});e(document).on("change","#page_template",function(){acf.screen.page_template=e(this).val();e(document).trigger("acf/update_field_groups")});e(document).on("change","#parent_id",function(){var t=e(this).val();if(t!=""){acf.screen.page_type="child";acf.screen.page_parent=t}else{acf.screen.page_type="parent";acf.screen.page_parent=0}e(document).trigger("acf/update_field_groups")});e(document).on("change",'#post-formats-select input[type="radio"]',function(){var t=e(this).val();t=="0"&&(t="standard");acf.screen.post_format=t;e(document).trigger("acf/update_field_groups")});e(document).on("change",'.categorychecklist input[type="checkbox"]',function(){setTimeout(function(){var t=[];e('.categorychecklist input[type="checkbox"]:checked').each(function(){if(e(this).is(":hidden")||e(this).is(":disabled"))return;t.push(e(this).val())});acf.screen.post_category=t;acf.screen.taxonomy=t;e(document).trigger("acf/update_field_groups")},1)})})(jQuery);(function(e){var t=acf.fields.color_picker={$el:null,$input:null,set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="text"]');return this},init:function(){if(acf.helpers.is_clone_field(this.$input))return;this.$input.wpColorPicker()}};e(document).on("acf/setup_fields",function(n,r){e(r).find(".acf-color_picker").each(function(){t.set({$el:e(this)}).init()})})})(jQuery);(function(e){acf.fields.date_picker={$el:null,$input:null,$hidden:null,o:{},set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="text"]');this.$hidden=this.$el.find('input[type="hidden"]');this.o=acf.helpers.get_atts(this.$el);return this},init:function(){if(acf.helpers.is_clone_field(this.$hidden))return;this.$input.val(this.$hidden.val());var t=e.extend({},acf.l10n.date_picker,{dateFormat:this.o.save_format,altField:this.$hidden,altFormat:this.o.save_format,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.o.first_day});this.$input.addClass("active").datepicker(t);this.$input.datepicker("option","dateFormat",this.o.display_format);e("body > #ui-datepicker-div").length>0&&e("#ui-datepicker-div").wrap('<div class="ui-acf" />')},blur:function(){this.$input.val()||this.$hidden.val("")}};e(document).on("acf/setup_fields",function(t,n){e(n).find(".acf-date_picker").each(function(){acf.fields.date_picker.set({$el:e(this)}).init()})});e(document).on("blur",'.acf-date_picker input[type="text"]',function(t){acf.fields.date_picker.set({$el:e(this).parent()}).blur()})})(jQuery);(function(e){var t=acf.media;acf.fields.file={$el:null,$input:null,o:{},set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="hidden"]');this.o=acf.helpers.get_atts(this.$el);this.o.multiple=this.$el.closest(".repeater").exists()?!0:!1;this.o.query={};this.o.library=="uploadedTo"&&(this.o.query.uploadedTo=acf.o.post_id);return this},init:function(){if(acf.helpers.is_clone_field(this.$input))return},add:function(e){var n=t.div;n.find(".acf-file-icon").attr("src",e.icon);n.find(".acf-file-title").text(e.title);n.find(".acf-file-name").text(e.name).attr("href",e.url);n.find(".acf-file-size").text(e.size);n.find(".acf-file-value").val(e.id).trigger("change");n.addClass("active");n.closest(".field").removeClass("error")},edit:function(){var n=this.$input.val();t.div=this.$el;t.clear_frame();t.frame=wp.media({title:acf.l10n.file.edit,multiple:!1,button:{text:acf.l10n.file.update}});t.frame.on("open",function(){t.frame.content._mode!="browse"&&t.frame.content.mode("browse");t.frame.$el.closest(".media-modal").addClass("acf-media-modal acf-expanded");var r=t.frame.state().get("selection"),i=wp.media.attachment(n);e.isEmptyObject(i.changed)&&i.fetch();r.add(i)});t.frame.on("close",function(){t.frame.$el.closest(".media-modal").removeClass("acf-media-modal")});acf.media.frame.open()},remove:function(){this.$el.find(".acf-file-icon").attr("src","");this.$el.find(".acf-file-title").text("");this.$el.find(".acf-file-name").text("").attr("href","");this.$el.find(".acf-file-size").text("");this.$el.find(".acf-file-value").val("").trigger("change");this.$el.removeClass("active")},popup:function(){var n=this;t.div=this.$el;t.clear_frame();t.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query(n.o.query),multiple:n.o.multiple,title:acf.l10n.file.select,priority:20,filterable:"all"})]});acf.media.frame.on("content:activate",function(){var t=null,r=null;try{t=acf.media.frame.content.get().toolbar;r=t.get("filters")}catch(i){}if(!r)return!1;if(n.o.library=="uploadedTo"){r.$el.find('option[value="uploaded"]').remove();r.$el.after("<span>"+acf.l10n.file.uploadedTo+"</span>");e.each(r.filters,function(e,t){t.props.uploadedTo=acf.o.post_id})}});acf.media.frame.on("select",function(){selection=t.frame.state().get("selection");if(selection){var e=0;selection.each(function(n){e++;if(e>1){var r=t.div.closest("td"),s=r.closest(".row"),o=s.closest(".repeater"),u=r.attr("data-field_key"),a="td .acf-file-uploader:first";u&&(a='td[data-field_key="'+u+'"] .acf-file-uploader');s.next(".row").exists()||o.find(".add-row-end").trigger("click");t.div=s.next(".row").find(a)}var f={id:n.id,title:n.attributes.title,name:n.attributes.filename,url:n.attributes.url,icon:n.attributes.icon,size:n.attributes.filesize};acf.fields.file.add(f)})}});acf.media.frame.open();return!1}};e(document).on("click",".acf-file-uploader .acf-button-edit",function(t){t.preventDefault();acf.fields.file.set({$el:e(this).closest(".acf-file-uploader")}).edit()});e(document).on("click",".acf-file-uploader .acf-button-delete",function(t){t.preventDefault();acf.fields.file.set({$el:e(this).closest(".acf-file-uploader")}).remove()});e(document).on("click",".acf-file-uploader .add-file",function(t){t.preventDefault();acf.fields.file.set({$el:e(this).closest(".acf-file-uploader")}).popup()})})(jQuery);(function(e){var t=acf.media;acf.fields.image={$el:null,$input:null,o:{},set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="hidden"]');this.o=acf.helpers.get_atts(this.$el);this.o.multiple=this.$el.closest(".repeater").exists()?!0:!1;this.o.query={type:"image"};this.o.library=="uploadedTo"&&(this.o.query.uploadedTo=acf.o.post_id);return this},init:function(){if(acf.helpers.is_clone_field(this.$input))return},add:function(e){var n=t.div;n.find(".acf-image-image").attr("src",e.url);n.find(".acf-image-value").val(e.id).trigger("change");n.addClass("active");n.closest(".field").removeClass("error")},edit:function(){var n=this.$input.val();t.div=this.$el;t.clear_frame();t.frame=wp.media({title:acf.l10n.image.edit,multiple:!1,button:{text:acf.l10n.image.update}});t.frame.on("open",function(){t.frame.content._mode!="browse"&&t.frame.content.mode("browse");t.frame.$el.closest(".media-modal").addClass("acf-media-modal acf-expanded");var r=t.frame.state().get("selection"),i=wp.media.attachment(n);e.isEmptyObject(i.changed)&&i.fetch();r.add(i)});t.frame.on("close",function(){t.frame.$el.closest(".media-modal").removeClass("acf-media-modal")});acf.media.frame.open()},remove:function(){this.$el.find(".acf-image-image").attr("src","");this.$el.find(".acf-image-value").val("").trigger("change");this.$el.removeClass("active")},popup:function(){var n=this;t.div=this.$el;t.clear_frame();t.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query(n.o.query),multiple:n.o.multiple,title:acf.l10n.image.select,priority:20,filterable:"all"})]});acf.media.frame.on("content:activate",function(){var t=null,r=null;try{t=acf.media.frame.content.get().toolbar;r=t.get("filters")}catch(i){}if(!r)return!1;e.each(r.filters,function(e,t){t.props.type="image"});if(n.o.library=="uploadedTo"){r.$el.find('option[value="uploaded"]').remove();r.$el.after("<span>"+acf.l10n.image.uploadedTo+"</span>");e.each(r.filters,function(e,t){t.props.uploadedTo=acf.o.post_id})}r.$el.find("option").each(function(){var t=e(this).attr("value");if(t=="uploaded"&&n.o.library=="all")return;t.indexOf("image")===-1&&e(this).remove()});r.$el.val("image").trigger("change")});acf.media.frame.on("select",function(){selection=t.frame.state().get("selection");if(selection){var e=0;selection.each(function(r){e++;if(e>1){var s=t.div.closest("td"),o=s.closest(".row"),u=o.closest(".repeater"),a=s.attr("data-field_key"),f="td .acf-image-uploader:first";a&&(f='td[data-field_key="'+a+'"] .acf-image-uploader');o.next(".row").exists()||u.find(".add-row-end").trigger("click");t.div=o.next(".row").find(f)}var l={id:r.id,url:r.attributes.url};r.attributes.sizes&&r.attributes.sizes[n.o.preview_size]&&(l.url=r.attributes.sizes[n.o.preview_size].url);acf.fields.image.add(l)})}});acf.media.frame.open();return!1},text:{title_add:"Select Image",title_edit:"Edit Image"}};e(document).on("click",".acf-image-uploader .acf-button-edit",function(t){t.preventDefault();acf.fields.image.set({$el:e(this).closest(".acf-image-uploader")}).edit()});e(document).on("click",".acf-image-uploader .acf-button-delete",function(t){t.preventDefault();acf.fields.image.set({$el:e(this).closest(".acf-image-uploader")}).remove()});e(document).on("click",".acf-image-uploader .add-image",function(t){t.preventDefault();acf.fields.image.set({$el:e(this).closest(".acf-image-uploader")}).popup()})})(jQuery);(function(e){acf.fields.radio={$el:null,$input:null,$other:null,farbtastic:null,set:function(t){e.extend(this,t);this.$input=this.$el.find('input[type="radio"]:checked');this.$other=this.$el.find('input[type="text"]');return this},change:function(){if(this.$input.val()=="other"){this.$other.attr("name",this.$input.attr("name"));this.$other.show()}else{this.$other.attr("name","");this.$other.hide()}}};e(document).on("change",'.acf-radio-list input[type="radio"]',function(t){acf.fields.radio.set({$el:e(this).closest(".acf-radio-list")}).change()})})(jQuery);(function(e){acf.fields.relationship={$el:null,$input:null,$left:null,$right:null,o:{},timeout:null,set:function(t){e.extend(this,t);this.$input=this.$el.children('input[type="hidden"]');this.$left=this.$el.find(".relationship_left"),this.$right=this.$el.find(".relationship_right");this.o=acf.helpers.get_atts(this.$el);return this},init:function(){var t=this;if(acf.helpers.is_clone_field(this.$input))return;this.$right.find(".relationship_list").height(this.$left.height()-2);this.$right.find(".relationship_list").sortable({axis:"y",items:"> li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input.trigger("change")}});var n=this.$el;this.$left.find(".relationship_list").scrollTop(0).on("scroll",function(r){if(n.hasClass("loading")||n.hasClass("no-results"))return;if(e(this).scrollTop()+e(this).innerHeight()>=e(this).get(0).scrollHeight){var i=parseInt(n.attr("data-paged"));n.attr("data-paged",i+1);t.set({$el:n}).fetch()}});this.fetch()},fetch:function(){var t=this,n=this.$el;n.addClass("loading");e.ajax({url:acf.o.ajaxurl,type:"post",dataType:"json",data:e.extend({action:"acf/fields/relationship/query_posts",post_id:acf.o.post_id,nonce:acf.o.nonce},this.o),success:function(e){t.set({$el:n}).render(e)}})},render:function(t){var n=this;this.$el.removeClass("no-results").removeClass("loading");this.o.paged==1&&this.$el.find(".relationship_left li:not(.load-more)").remove();if(!t||!t.html){this.$el.addClass("no-results");return}this.$el.find(".relationship_left .load-more").before(t.html);t.next_page_exists||this.$el.addClass("no-results");this.$left.find("a").each(function(){var t=e(this).attr("data-post_id");n.$right.find('a[data-post_id="'+t+'"]').exists()&&e(this).parent().addClass("hide")})},add:function(e){var t=e.attr("data-post_id"),n=e.html();if(this.$right.find("a").length>=this.o.max){alert(acf.l10n.relationship.max.replace("{max}",this.o.max));return!1}if(e.parent().hasClass("hide"))return!1;e.parent().addClass("hide");var r={post_id:e.attr("data-post_id"),title:e.html(),name:this.$input.attr("name")},i=_.template(acf.l10n.relationship.tmpl_li,r);this.$right.find(".relationship_list").append(i);this.$input.trigger("change");this.$el.closest(".field").removeClass("error")},remove:function(e){e.parent().remove();this.$left.find('a[data-post_id="'+e.attr("data-post_id")+'"]').parent("li").removeClass("hide");this.$input.trigger("change")}};e(document).on("acf/setup_fields",function(t,n){e(n).find(".acf_relationship").each(function(){acf.fields.relationship.set({$el:e(this)}).init()})});e(document).on("change",".acf_relationship .select-post_type",function(t){var n=e(this).val(),r=e(this).closest(".acf_relationship");r.attr("data-post_type",n);r.attr("data-paged",1);acf.fields.relationship.set({$el:r}).fetch()});e(document).on("click",".acf_relationship .relationship_left .relationship_list a",function(t){t.preventDefault();acf.fields.relationship.set({$el:e(this).closest(".acf_relationship")}).add(e(this));e(this).blur()});e(document).on("click",".acf_relationship .relationship_right .relationship_list a",function(t){t.preventDefault();acf.fields.relationship.set({$el:e(this).closest(".acf_relationship")}).remove(e(this));e(this).blur()});e(document).on("keyup",".acf_relationship input.relationship_search",function(t){var n=e(this).val(),r=e(this).closest(".acf_relationship");r.attr("data-s",n);r.attr("data-paged",1);clearTimeout(acf.fields.relationship.timeout);acf.fields.relationship.timeout=setTimeout(function(){acf.fields.relationship.set({$el:r}).fetch()},500)});e(document).on("keypress",".acf_relationship input.relationship_search",function(e){e.which==13&&e.preventDefault()})})(jQuery);(function(e){e(document).on("acf/setup_fields",function(t,n){e(n).find(".acf-tab").each(function(){var t=e(this),n=t.parent(),r=n.parent(),i=t.attr("data-id"),s=t.html();if(t.hasClass("acf-tab-added"))return;t.addClass("acf-tab-added");r.children(".acf-tab-group").exists()||r.children(".field_type-tab:first").before('<ul class="hl clearfix acf-tab-group"></ul>');r.children(".acf-tab-group").append('<li class="field_key-'+i+'" data-field_key="'+i+'"><a class="acf-tab-button" href="#" data-id="'+i+'">'+s+"</a></li>")});e(n).find(".acf-tab-group").each(function(){e(this).find("li:first a").trigger("click")})});e(document).on("click",".acf-tab-button",function(t){t.preventDefault();var n=e(this),r=n.closest("ul"),i=r.parent(),s=n.attr("data-id");r.find("li").removeClass("active");n.parent("li").addClass("active");i.children(".field_type-tab").each(function(){var t=e(this);t.hasClass("field_key-"+s)?t.nextUntil(".field_type-tab").removeClass("acf-tab_group-hide").addClass("acf-tab_group-show"):t.nextUntil(".field_type-tab").removeClass("acf-tab_group-show").addClass("acf-tab_group-hide")});n.trigger("blur")})})(jQuery);(function(e){acf.validation={status:!0,disabled:!1,run:function(){var t=this;t.status=!0;e(".postbox:not(.acf-hidden) .field.required, .form-field.required").each(function(){var n=e(this);n.data("validation",!0);if(n.hasClass("acf-conditional_logic-hide"))return;if(n.hasClass("acf-tab_group-hide")&&n.prevAll(".field_type-tab:first").hasClass("acf-conditional_logic-hide"))return;n.find('input[type="text"], input[type="email"], input[type="number"], input[type="hidden"], textarea').val()==""&&n.data("validation",!1);if(n.find(".acf_wysiwyg").exists()&&typeof tinyMCE=="object"){n.data("validation",!0);var r=n.find(".wp-editor-area").attr("id"),i=tinyMCE.get(r);i&&!i.getContent()&&n.data("validation",!1)}if(n.find("select").exists()){n.data("validation",!0);(n.find("select").val()=="null"||!n.find("select").val())&&n.data("validation",!1)}if(n.find('input[type="radio"]').exists()){n.data("validation",!1);n.find('input[type="radio"]:checked').exists()&&n.data("validation",!0)}if(n.find('input[type="checkbox"]').exists()){n.data("validation",!1);n.find('input[type="checkbox"]:checked').exists()&&n.data("validation",!0)}if(n.find(".acf_relationship").exists()){n.data("validation",!1);n.find(".acf_relationship .relationship_right input").exists()&&n.data("validation",!0)}if(n.find(".repeater").exists()){n.data("validation",!1);n.find(".repeater tr.row").exists()&&n.data("validation",!0)}if(n.find(".acf_flexible_content").exists()){n.data("validation",!1);n.find(".acf_flexible_content .values table").exists()&&n.data("validation",!0)}if(n.find(".acf-gallery").exists()){n.data("validation",!1);n.find(".acf-gallery .thumbnail").exists()&&n.data("validation",!0)}e(document).trigger("acf/validate_field",n);if(!n.data("validation")){t.status=!1;n.closest(".field").addClass("error")}})}};e(document).on("focus click",".field.required input, .field.required textarea, .field.required select",function(t){e(this).closest(".field").removeClass("error")});e(document).on("click","#save-post",function(){acf.validation.disabled=!0});e(document).on("submit","#post",function(){if(acf.validation.disabled)return!0;acf.validation.run();if(!acf.validation.status){var t=e(this);t.siblings("#message").remove();t.before('<div id="message" class="error"><p>'+acf.l10n.validation.error+"</p></div>");e("#publish").removeClass("button-primary-disabled");e("#ajax-loading").attr("style","");e("#publishing-action .spinner").hide();return!1}e(".acf_postbox.acf-hidden").remove();return!0})})(jQuery);(function(e){var t=acf.fields.wysiwyg={$el:null,$textarea:null,o:{},set:function(t){e.extend(this,t);this.$textarea=this.$el.find("textarea");this.o=acf.helpers.get_atts(this.$el);this.o.id=this.$textarea.attr("id");return this},has_tinymce:function(){var e=!1;typeof tinyMCE=="object"&&(e=!0);return e},init:function(){if(acf.helpers.is_clone_field(this.$textarea))return;var t=e.extend({},tinyMCE.settings);tinyMCE.settings.theme_advanced_buttons1="";tinyMCE.settings.theme_advanced_buttons2="";tinyMCE.settings.theme_advanced_buttons3="";tinyMCE.settings.theme_advanced_buttons4="";acf.helpers.isset(this.toolbars[this.o.toolbar])&&e.each(this.toolbars[this.o.toolbar],function(e,t){tinyMCE.settings[e]=t});tinyMCE.execCommand("mceAddControl",!1,this.o.id);e(document).trigger("acf/wysiwyg/load",this.o.id);this.add_events();tinyMCE.settings=t;wpActiveEditor=null},add_events:function(){var t=this.o.id,n=tinyMCE.get(t);if(!n)return;var r=e("#wp-"+t+"-wrap"),i=e(n.getBody());r.on("click",function(){e(document).trigger("acf/wysiwyg/click",t)});i.on("focus",function(){e(document).trigger("acf/wysiwyg/focus",t)});i.on("blur",function(){e(document).trigger("acf/wysiwyg/blur",t)})},destroy:function(){var e=this.o.id,t=tinyMCE.get(e);try{tinyMCE.execCommand("mceRemoveControl",!1,e)}catch(n){console.log(n)}wpActiveEditor=null}};e(document).on("acf/setup_fields",function(n,r){if(!t.has_tinymce())return;e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).destroy()});setTimeout(function(){e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).init()})},0)});e(document).on("acf/remove_fields",function(n,r){if(!t.has_tinymce())return;r.find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).destroy()})});e(document).on("acf/wysiwyg/click",function(t,n){wpActiveEditor=n;container=e("#wp-"+n+"-wrap").closest(".field").removeClass("error")});e(document).on("acf/wysiwyg/focus",function(t,n){wpActiveEditor=n;container=e("#wp-"+n+"-wrap").closest(".field").removeClass("error")});e(document).on("acf/wysiwyg/blur",function(t,n){wpActiveEditor=null;var r=tinyMCE.get(n);if(!r)return;var i=r.getElement();r.save();e(i).trigger("change")});e(document).on("acf/sortable_start",function(n,r){if(!t.has_tinymce())return;e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).destroy()})});e(document).on("acf/sortable_stop",function(n,r){if(!t.has_tinymce())return;e(r).find(".acf_wysiwyg").each(function(){t.set({$el:e(this)}).init()})});e(window).load(function(){if(!t.has_tinymce())return;var n=e("#wp-content-wrap").exists(),r=e("#wp-acf_settings-wrap").exists();mode="tmce";r&&e("#wp-acf_settings-wrap").hasClass("html-active")&&(mode="html");setTimeout(function(){r&&mode=="html"&&e("#acf_settings-tmce").trigger("click")},1);setTimeout(function(){r&&mode=="html"&&e("#acf_settings-html").trigger("click");n&&t.set({$el:e("#wp-content-wrap")}).add_events()},11)});e(document).on("click",".acf_wysiwyg a.mce_fullscreen",function(){var t=e(this).closest(".acf_wysiwyg"),n=t.attr("data-upload");n=="no"&&e("#mce_fullscreen_container td.mceToolbar .mce_add_media").remove()})})(jQuery);
lang/acf-fa_IR.mo CHANGED
Binary file
lang/acf-fa_IR.po CHANGED
@@ -1,385 +1,267 @@
1
- # Copyright (C) 2012
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-10-04 22:38:59+00:00\n"
8
- "PO-Revision-Date: 2013-07-29 02:55+0430\n"
9
- "Last-Translator: قائم <ghaemomidi@yahoo.com>\n"
10
- "Language-Team: UA WordPress <skinik@wordpress.co.ua>\n"
11
- "Language: Ukrainian\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
16
- "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
17
- "X-Poedit-SourceCharset: UTF-8\n"
18
- "X-Poedit-KeywordsList: __;_e\n"
19
- "X-Poedit-Basepath: ..\n"
20
  "X-Generator: Poedit 1.5.7\n"
21
- "X-Poedit-SearchPath-0: .\n"
22
-
23
- #: acf.php:286 core/views/meta_box_options.php:94
24
- msgid "Custom Fields"
25
- msgstr "زمینه سفارشی"
26
-
27
- #: acf.php:307
 
28
  msgid "Field&nbsp;Groups"
29
  msgstr "گروه زمینه"
30
 
31
- #: acf.php:308 core/controllers/field_groups.php:234
32
- #: core/controllers/upgrade.php:70
33
  msgid "Advanced Custom Fields"
34
  msgstr "زمینه سفارشی پیشرفته"
35
 
36
- #: acf.php:309 core/fields/flexible_content.php:325
37
  msgid "Add New"
38
  msgstr "افزودن"
39
 
40
- #: acf.php:310
41
  msgid "Add New Field Group"
42
  msgstr "افزودن گروه زمینه جدید"
43
 
44
- #: acf.php:311
45
  msgid "Edit Field Group"
46
  msgstr "ویرایش گروه زمینه"
47
 
48
- #: acf.php:312
49
  msgid "New Field Group"
50
  msgstr "گروه زمینه جدید"
51
 
52
- #: acf.php:313
53
  msgid "View Field Group"
54
  msgstr "مشاهده گروه زمینه"
55
 
56
- #: acf.php:314
57
  msgid "Search Field Groups"
58
  msgstr "جستجوی گروه زمینه"
59
 
60
- #: acf.php:315
61
  msgid "No Field Groups found"
62
  msgstr "گروه زمینه ای یافت نشد"
63
 
64
- #: acf.php:316
65
  msgid "No Field Groups found in Trash"
66
  msgstr "گروه زمینه ای در زباله دان یافت نشد"
67
 
68
- #: acf.php:351 acf.php:354
 
 
 
 
69
  msgid "Field group updated."
70
  msgstr "گروه زمینه بروز شد."
71
 
72
- #: acf.php:352
73
  msgid "Custom field updated."
74
  msgstr "زمینه سفارشی بروز شد."
75
 
76
- #: acf.php:353
77
  msgid "Custom field deleted."
78
  msgstr "زمینه سفارشی حذف شد."
79
 
80
  #. translators: %s: date and time of the revision
81
- #: acf.php:356
82
  msgid "Field group restored to revision from %s"
83
  msgstr "گروه زمینه ترمیم به تجدید نظر از %s"
84
 
85
- #: acf.php:357
86
  msgid "Field group published."
87
  msgstr "گروه زمینه منتشر شد"
88
 
89
- #: acf.php:358
90
  msgid "Field group saved."
91
  msgstr "گروه زمینه ذخیره شد."
92
 
93
- #: acf.php:359
94
  msgid "Field group submitted."
95
- msgstr "گروه فیلد را مشاهده کنید."
96
 
97
- #: acf.php:360
98
  msgid "Field group scheduled for."
99
- msgstr "گروه فیلد برنامه ریزی شده است برای"
100
 
101
- #: acf.php:361
102
  msgid "Field group draft updated."
103
  msgstr "پیش نویس زمینه گروهی به روز رسانی شده است."
104
 
105
- #: acf.php:380 core/fields/gallery.php:66 core/fields/gallery.php:229
106
- msgid "Title"
107
- msgstr "عنوان"
108
-
109
- #: acf.php:623
110
- msgid "Error: Field Type does not exist!"
111
- msgstr "خطا: نوع رشته وجود ندارد!"
112
-
113
- #: acf.php:1709
114
  msgid "Thumbnail"
115
  msgstr "بند انگشتی"
116
 
117
- #: acf.php:1710
118
  msgid "Medium"
119
  msgstr "متوسط"
120
 
121
- #: acf.php:1711
122
  msgid "Large"
123
  msgstr "بزرگ"
124
 
125
- #: acf.php:1712 core/fields/wysiwyg.php:105
126
  msgid "Full"
127
  msgstr "کامل"
128
 
129
- #: core/actions/export.php:26
 
 
 
 
130
  msgid "No ACF groups selected"
131
  msgstr "هیچ گروه زمینه سفارشی پیشرفته انتخاب نشده است."
132
 
133
- #: core/controllers/field_group.php:148 core/controllers/field_group.php:167
134
- #: core/controllers/field_groups.php:144
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:150 core/controllers/field_group.php:427
143
- #: core/controllers/options_page.php:62 core/controllers/options_page.php:74
144
- #: core/views/meta_box_location.php:143
145
- msgid "Options"
146
- msgstr "تنظیمات"
147
-
148
- #: core/controllers/field_group.php:355
149
- msgid "Parent Page"
150
- msgstr "صفحه مادر"
151
-
152
- #: core/controllers/field_group.php:356
153
- msgid "Child Page"
154
- msgstr "صفحه کودک"
155
-
156
- #: core/controllers/field_group.php:364
157
- msgid "Default Template"
158
- msgstr "قالب پیش فرض"
159
-
160
- #: core/controllers/field_group.php:451 core/controllers/field_group.php:472
161
- #: core/controllers/field_group.php:479 core/fields/page_link.php:76
162
- #: core/fields/post_object.php:223 core/fields/post_object.php:251
163
- #: core/fields/relationship.php:392 core/fields/relationship.php:421
164
- msgid "All"
165
- msgstr "همه"
166
-
167
- #: core/controllers/field_groups.php:197 core/views/meta_box_options.php:50
168
- msgid "Normal"
169
- msgstr "عادی"
170
-
171
- #: core/controllers/field_groups.php:198 core/views/meta_box_options.php:51
172
- msgid "Side"
173
- msgstr "کنار"
174
-
175
- #: core/controllers/field_groups.php:208 core/views/meta_box_options.php:71
176
- msgid "Standard Metabox"
177
- msgstr "متاباکس استاندارد"
178
-
179
- #: core/controllers/field_groups.php:209 core/views/meta_box_options.php:70
180
- msgid "No Metabox"
181
- msgstr "بدون متاباکس"
182
 
183
- #: core/controllers/field_groups.php:236
184
- msgid "Changelog"
185
- msgstr "تغییرات"
186
 
187
- #: core/controllers/field_groups.php:237
188
- msgid "See what's new in"
189
- msgstr "چه چیز جدیدی در"
190
 
191
- #: core/controllers/field_groups.php:239
192
- msgid "Resources"
193
- msgstr "منبع"
194
 
195
- #: core/controllers/field_groups.php:240
196
- msgid ""
197
- "Read documentation, learn the functions and find some tips &amp; tricks for "
198
- "your next web project."
199
  msgstr ""
200
- "مستندات خوانده شده، یادگیری توابع و پیدا کردن بعضی از راهنمایی و ترفندها "
201
- "برای پروژه وب بعدی شما."
202
-
203
- #: core/controllers/field_groups.php:241
204
- msgid "Visit the ACF website"
205
- msgstr "دیدن سایت زمینه سفارشی پیشرفته"
206
-
207
- #: core/controllers/field_groups.php:246
208
- msgid "Created by"
209
- msgstr "ایجاد شده توسط"
210
-
211
- #: core/controllers/field_groups.php:249
212
- msgid "Vote"
213
- msgstr "رای"
214
-
215
- #: core/controllers/field_groups.php:250
216
- msgid "Follow"
217
- msgstr "دنبال کردن"
218
-
219
- #: core/controllers/input.php:528
220
- msgid "Validation Failed. One or more fields below are required."
221
- msgstr "اعتبار سنجی شکست خورد. یک یا چند زمینه های زیر مورد نیاز است."
222
 
223
- #: core/controllers/input.php:529
224
- msgid "Add File to Field"
225
- msgstr "افزودن پرونده به زمینه"
226
-
227
- #: core/controllers/input.php:530
228
- msgid "Edit File"
229
- msgstr "ویرایش پرونده"
230
-
231
- #: core/controllers/input.php:531
232
- msgid "Add Image to Field"
233
- msgstr "افزودن تصویر به زمینه"
234
-
235
- #: core/controllers/input.php:532 core/controllers/input.php:535
236
- msgid "Edit Image"
237
- msgstr "ویرایش تصویر"
238
-
239
- #: core/controllers/input.php:533
240
- msgid "Maximum values reached ( {max} values )"
241
- msgstr "حداکثر مقدار ها رسیده است ( (حداکثر) ارزش ها )"
242
-
243
- #: core/controllers/input.php:534
244
- msgid "Add Image to Gallery"
245
- msgstr "افزودن تصویر به گالری"
246
-
247
- #: core/controllers/input.php:625
248
- msgid "Attachment updated"
249
- msgstr "ضمیمه بروزرسانی شد."
250
-
251
- #: core/controllers/options_page.php:121
252
- msgid "Options Updated"
253
- msgstr "تنظیمات بروز شد."
254
-
255
- #: core/controllers/options_page.php:251
256
- msgid "No Custom Field Group found for the options page"
257
- msgstr "گروه زمینه سفارشی برای صفحه گزینه ها پیدا نشد."
258
 
259
- #: core/controllers/options_page.php:251
260
- msgid "Create a Custom Field Group"
261
- msgstr "ایجاد یک گروه زمینه سفارشی"
262
 
263
- #: core/controllers/options_page.php:262
264
- msgid "Publish"
265
- msgstr "منتشر کردن"
 
266
 
267
- #: core/controllers/options_page.php:265
268
- msgid "Save Options"
269
- msgstr "ذخیره تنظیمات"
270
 
271
- #: core/controllers/settings.php:49
272
- msgid "Settings"
273
- msgstr "تنظیمات"
274
 
275
- #: core/controllers/settings.php:111
276
- msgid "Repeater field deactivated"
277
- msgstr "زمینه تکرار کننده غیر فعال شد."
278
 
279
- #: core/controllers/settings.php:115
280
- msgid "Options page deactivated"
281
- msgstr "صفحه گزینه ها غیر فعال شد."
282
 
283
- #: core/controllers/settings.php:119
284
- msgid "Flexible Content field deactivated"
285
- msgstr "زمینه محتوای انعطاف پذیر غیر فعال شد."
286
 
287
- #: core/controllers/settings.php:123
288
- msgid "Gallery field deactivated"
289
- msgstr "زمینه گالری غیر فعال شد."
290
 
291
- #: core/controllers/settings.php:147
292
- msgid "Repeater field activated"
293
- msgstr "زمینه تکرار کننده غیرفعال شد."
294
 
295
- #: core/controllers/settings.php:151
296
- msgid "Options page activated"
297
- msgstr "صفحه گزینه ها فعال شد."
298
 
299
- #: core/controllers/settings.php:155
300
- msgid "Flexible Content field activated"
301
- msgstr "زمینه محتوای انعطاف پذیر فعال شد."
302
 
303
- #: core/controllers/settings.php:159
304
- msgid "Gallery field activated"
305
- msgstr "زمینه گالری فعال شد."
306
 
307
- #: core/controllers/settings.php:164
308
- msgid "License key unrecognised"
309
- msgstr "مجوز کلید ناشناخته است."
310
 
311
- #: core/controllers/settings.php:216
312
- msgid "Activate Add-ons."
313
- msgstr "فعال سازی افزودنی ها."
314
 
315
- #: core/controllers/settings.php:217
316
  msgid ""
317
- "Add-ons can be unlocked by purchasing a license key. Each key can be used on "
318
- "multiple sites."
319
  msgstr ""
320
- "افزودنی ها متوانند با خرید یک مجوز باز شوند. هر کلید می تواند در سایت های "
321
- "مختلف استفاده شود."
322
-
323
- #: core/controllers/settings.php:218
324
- msgid "Find Add-ons"
325
- msgstr "پیداکردن افزودنی"
326
-
327
- #: core/controllers/settings.php:225 core/fields/flexible_content.php:380
328
- #: core/fields/flexible_content.php:456 core/fields/repeater.php:330
329
- #: core/fields/repeater.php:406 core/views/meta_box_fields.php:63
330
- #: core/views/meta_box_fields.php:138
331
- msgid "Field Type"
332
- msgstr "نوع زمینه"
333
-
334
- #: core/controllers/settings.php:226
335
- msgid "Status"
336
- msgstr "وضعیت"
337
 
338
- #: core/controllers/settings.php:227
339
- msgid "Activation Code"
340
- msgstr "کد فعال سازی"
 
 
 
 
341
 
342
- #: core/controllers/settings.php:232
343
- msgid "Repeater Field"
344
- msgstr "زمینه تکرارکننده"
345
 
346
- #: core/controllers/settings.php:233 core/controllers/settings.php:252
347
- #: core/controllers/settings.php:271 core/controllers/settings.php:290
348
- msgid "Active"
349
- msgstr "فعال"
350
 
351
- #: core/controllers/settings.php:233 core/controllers/settings.php:252
352
- #: core/controllers/settings.php:271 core/controllers/settings.php:290
353
- msgid "Inactive"
354
- msgstr "غیر فعال"
 
355
 
356
- #: core/controllers/settings.php:239 core/controllers/settings.php:258
357
- #: core/controllers/settings.php:277 core/controllers/settings.php:296
358
- msgid "Deactivate"
359
- msgstr "بی اثر کردن"
360
 
361
- #: core/controllers/settings.php:245 core/controllers/settings.php:264
362
- #: core/controllers/settings.php:283 core/controllers/settings.php:302
363
- msgid "Activate"
364
- msgstr "فعال کردن"
365
 
366
- #: core/controllers/settings.php:251
367
- msgid "Flexible Content Field"
368
- msgstr "زمینه محتوای انعطاف پذیر"
369
 
370
- #: core/controllers/settings.php:270
371
- msgid "Gallery Field"
372
- msgstr "گالری زمینه"
373
 
374
- #: core/controllers/settings.php:289 core/views/meta_box_location.php:74
375
- msgid "Options Page"
376
- msgstr "صغحه تنظیمات"
377
 
378
- #: core/controllers/settings.php:314
379
- msgid "Export Field Groups to XML"
380
- msgstr "صادرکردن گروه های زمینه به فرمت XML"
381
 
382
- #: core/controllers/settings.php:315
383
  msgid ""
384
  "ACF will create a .xml export file which is compatible with the native WP "
385
  "import plugin."
@@ -387,15 +269,7 @@ msgstr ""
387
  "زمینه سفارشی پیشرفته ایجاد خواهد کرد یک پرونده XML صادر شده که سازگار است با "
388
  "پلاگین وردپرس واردات."
389
 
390
- #: core/controllers/settings.php:316 core/controllers/settings.php:355
391
- msgid "Instructions"
392
- msgstr "راهنمایی"
393
-
394
- #: core/controllers/settings.php:318
395
- msgid "Import Field Groups"
396
- msgstr "وارد کردن گروه های زمینه"
397
-
398
- #: core/controllers/settings.php:319
399
  msgid ""
400
  "Imported field groups <b>will</b> appear in the list of editable field "
401
  "groups. This is useful for migrating fields groups between Wp websites."
@@ -403,55 +277,43 @@ msgstr ""
403
  "گروه های زمینه وارد شده <b> <b/> به نظر می رسد در فهرست گروه های زمینه قابل "
404
  "ویرایش باشد. این برای مهاجرت گروه های زمینه بین وبسایت های وردپرسی مفید است."
405
 
406
- #: core/controllers/settings.php:321
407
  msgid "Select field group(s) from the list and click \"Export XML\""
408
  msgstr ""
409
  "گروه های زمینه را از لیست انتخاب کنید روی دکمه ( صادرکردن به فرمت XML ) کلیک "
410
  "کنید"
411
 
412
- #: core/controllers/settings.php:322
413
  msgid "Save the .xml file when prompted"
414
  msgstr "ذخیره پرونده XML زمانی که درخواست داده می شود"
415
 
416
- #: core/controllers/settings.php:323
417
  msgid "Navigate to Tools &raquo; Import and select WordPress"
418
  msgstr "حرکت به ابزار >> وارد کنید و وردپرس را انتخاب کنید"
419
 
420
- #: core/controllers/settings.php:324
421
  msgid "Install WP import plugin if prompted"
422
  msgstr "نصب پلاگین WP-Import در صورت درخواست"
423
 
424
- #: core/controllers/settings.php:325
425
  msgid "Upload and import your exported .xml file"
426
  msgstr "آپلود و وارد کردن پرونده XML صادر شده شما"
427
 
428
- #: core/controllers/settings.php:326
429
  msgid "Select your user and ignore Import Attachments"
430
  msgstr "کاربر خود را انتخاب کنید و پرونده های پیوست واردات را رد کنید."
431
 
432
- #: core/controllers/settings.php:327
433
  msgid "That's it! Happy WordPressing"
434
  msgstr "با خوشحالی با وردپرس کار کنید"
435
 
436
- #: core/controllers/settings.php:346
437
- msgid "Export XML"
438
- msgstr "صادر کردن به فرمت XML"
439
-
440
- #: core/controllers/settings.php:353
441
- msgid "Export Field Groups to PHP"
442
- msgstr "صادر کردن گروه های زمینه به فرمت پی اچ پی"
443
-
444
- #: core/controllers/settings.php:354
445
  msgid "ACF will create the PHP code to include in your theme."
446
  msgstr ""
447
  "زمینه سفارشی پیشرفته کد پی اچ پی را ایجاد خواهد کرد تا آن را در قالبتان قرار "
448
  "دهد."
449
 
450
- #: core/controllers/settings.php:357 core/controllers/settings.php:474
451
- msgid "Register Field Groups"
452
- msgstr "ثبت نام گروه های زمینه"
453
-
454
- #: core/controllers/settings.php:358 core/controllers/settings.php:475
455
  msgid ""
456
  "Registered field groups <b>will not</b> appear in the list of editable field "
457
  "groups. This is useful for including fields in themes."
@@ -459,7 +321,7 @@ msgstr ""
459
  "گروه های زمینه ثبت نام شده <b>نخواهد شد</b> به نظر می رسد در لیست گروه های "
460
  "زمینه قابل ویرایش است. این برای زمینه های راهنمایی در قالب ها مفید است."
461
 
462
- #: core/controllers/settings.php:359 core/controllers/settings.php:476
463
  msgid ""
464
  "Please note that if you export and register field groups within the same WP, "
465
  "you will see duplicate fields on your edit screens. To fix this, please move "
@@ -471,728 +333,1187 @@ msgstr ""
471
  "تعمیر کردن این، لطفا حرکت دهید گروه زمینه اورجینال را به زباله دان یا کد را "
472
  "از پرونده functions.php بردارید."
473
 
474
- #: core/controllers/settings.php:361
475
  msgid "Select field group(s) from the list and click \"Create PHP\""
476
  msgstr ""
477
  "گروه های زمینه را از لیست انتخاب کنید و روی دکمه /*ایجاد پی اچ پی/* کلیک "
478
  "کنید."
479
 
480
- #: core/controllers/settings.php:362 core/controllers/settings.php:478
481
  msgid "Copy the PHP code generated"
482
  msgstr "کپی کردن کد پی اچ پی ساخته شده"
483
 
484
- #: core/controllers/settings.php:363 core/controllers/settings.php:479
485
  msgid "Paste into your functions.php file"
486
  msgstr "کپی کردن در فایل functions.php شما"
487
 
488
- #: core/controllers/settings.php:364 core/controllers/settings.php:480
489
  msgid "To activate any Add-ons, edit and use the code in the first few lines."
490
  msgstr ""
491
  "ویرایش و استفاده از کد در تعداد کمی از اولین خطوط برای فعال سازی افزودنی ها."
492
 
493
- #: core/controllers/settings.php:383
494
- msgid "Create PHP"
495
- msgstr "ایجاد فایل پی اچ پی"
 
 
 
 
 
 
 
 
 
 
 
 
496
 
497
- #: core/controllers/settings.php:469
498
- msgid "Back to settings"
499
- msgstr "بازگشت به تنظیمات"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
500
 
501
- #: core/controllers/settings.php:504
502
  msgid ""
503
  "/**\n"
504
- " * Activate Add-ons\n"
505
- " * Here you can enter your activation codes to unlock Add-ons to use in your "
506
- "theme. \n"
507
- " * Since all activation codes are multi-site licenses, you are allowed to "
508
- "include your key in premium themes. \n"
509
- " * Use the commented out code to update the database with your activation "
510
- "code. \n"
511
- " * You may place this code inside an IF statement that only runs on theme "
512
- "activation.\n"
 
 
 
 
 
 
 
 
 
 
513
  " */"
514
  msgstr ""
515
- "/**/n*فعال سازی افزودنی ها/n*اینجا شما می توانید کد های فعال سازی خود را "
516
- "برای بازکردن افزودنی ها در قالبتان وارد کنید. /n*از آنجا که تمام کدهای فعال "
517
- "سازی مجوز چند سایت هستند، شماباید بپذیرید کلید فعال سازی شمال قالب پریمیوم "
518
- "شما می شود. /n*استفاده از توضیحات بیرون برای بروزرسانی پایگاه داده با کد "
519
- "فعال سازی شما. /n"
 
 
 
 
 
 
 
 
 
 
520
 
521
- #: core/controllers/settings.php:519
 
 
 
 
 
522
  msgid ""
523
  "/**\n"
524
- " * Register field groups\n"
525
- " * The register_field_group function accepts 1 array which holds the "
 
526
  "relevant data to register a field group\n"
527
- " * You may edit the array as you see fit. However, this may result in errors "
528
- "if the array is not compatible with ACF\n"
529
- " * This code must run every time the functions.php file is read\n"
530
  " */"
531
  msgstr ""
532
- "/**/n*ثبت نام گروه های زمینه/n*تابع ثبت نام گروه زمینه در یک آرایه که دارای "
533
- "اطلاعات مربوط به ثبت نام گروه زمینه می باشد را می پذیرد/n*شما ممکن است آرایه "
534
- "را به صورت چیزی که مناسب می بینید ویرایش کنید. اما، ممکن است در نتیجه اخلال "
535
- "به وجود آورد زیرا آرایه با زمینه سفارشی پیشرفته سازگار نست/n*این کد باید "
536
- "اجرا شود در هر زمان که فایل functions.php در حال خواندن است/n"
 
537
 
538
- #: core/controllers/settings.php:558
539
  msgid "No field groups were selected"
540
  msgstr "گروه زمینه انتخاب نشده است"
541
 
542
- #: core/controllers/settings.php:608
543
- msgid "Advanced Custom Fields Settings"
544
- msgstr "تنظیمات زمینه های سفارشی پیشرفته"
545
 
546
- #: core/controllers/upgrade.php:51
547
- msgid "Upgrade"
548
- msgstr "به روز رسانی"
549
 
550
- #: core/controllers/upgrade.php:70
551
- msgid "requires a database upgrade"
552
- msgstr "نیاز به ارتقاء پایگاه داده"
553
 
554
- #: core/controllers/upgrade.php:70
555
- msgid "why?"
556
- msgstr "چرا؟"
 
 
 
 
 
557
 
558
- #: core/controllers/upgrade.php:70
559
- msgid "Please"
560
- 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"
568
- msgstr "سپس کلیک کنید"
569
 
570
- #: core/controllers/upgrade.php:70
571
- msgid "Upgrade Database"
572
- msgstr "بروزرسانی پایگاه داده"
573
 
574
- #: core/controllers/upgrade.php:604
575
- msgid "Modifying field group options 'show on page'"
576
- msgstr "گزینه های اصلاح گروه های زمینه ( نشان دادن در صفحه )"
577
 
578
- #: core/controllers/upgrade.php:658
579
- msgid "Modifying field option 'taxonomy'"
580
- msgstr "گزینه اصلاح زمینه ( طبقه بندی )"
581
 
582
- #: core/controllers/upgrade.php:755
583
- msgid "Moving user custom fields from wp_options to wp_usermeta'"
584
- msgstr "حرکت زمینه های سفارشی کاربر از wp_options به wp_usermeta '"
585
 
586
- #: core/fields/checkbox.php:21
587
- msgid "Checkbox"
588
- msgstr "جعبه چک"
 
 
 
 
 
589
 
590
- #: core/fields/checkbox.php:55 core/fields/radio.php:45
591
- #: core/fields/select.php:54
592
- msgid "No choices to choose from"
593
- msgstr "گزینه ای برای انتخاب وجود ندارد"
594
 
595
- #: core/fields/checkbox.php:113 core/fields/radio.php:114
596
- #: core/fields/select.php:174
597
- msgid "Choices"
598
- msgstr "گزینه ها"
599
 
600
- #: core/fields/checkbox.php:114 core/fields/radio.php:115
601
- #: core/fields/select.php:175
602
- msgid "Enter your choices one per line"
603
- msgstr "انتخاب های خود را در هر خط وارد کنید"
604
 
605
- #: core/fields/checkbox.php:116 core/fields/radio.php:117
606
- #: core/fields/select.php:177
607
- msgid "Red"
608
- msgstr "قرمز"
609
 
610
- #: core/fields/checkbox.php:117 core/fields/radio.php:118
611
- #: core/fields/select.php:178
612
- msgid "Blue"
613
- msgstr "آبی"
614
 
615
- #: core/fields/checkbox.php:119 core/fields/radio.php:120
616
- #: core/fields/select.php:180
617
- msgid "red : Red"
618
- msgstr "قرمز: قرمز"
619
 
620
- #: core/fields/checkbox.php:120 core/fields/radio.php:121
621
- #: core/fields/select.php:181
622
- msgid "blue : Blue"
623
- msgstr "آبی : آبی"
624
 
625
- #: core/fields/color_picker.php:21
626
- msgid "Color Picker"
627
- msgstr "جمع کننده رنگ"
628
 
629
- #: core/fields/color_picker.php:92 core/fields/number.php:65
630
- #: core/fields/radio.php:130 core/fields/select.php:190
631
- #: core/fields/text.php:65 core/fields/textarea.php:62
632
- #: core/fields/wysiwyg.php:81
633
- msgid "Default Value"
634
- msgstr "مقدار پیش فرض"
635
 
636
- #: core/fields/color_picker.php:93
637
- msgid "eg: #ffffff"
638
- msgstr "به عنوان مثال : #ffffff"
639
 
640
- #: core/fields/date_picker/date_picker.php:21
641
- msgid "Date Picker"
642
- msgstr "چیننده تاریخ"
643
 
644
- #: core/fields/date_picker/date_picker.php:106
645
- msgid "Save format"
646
- msgstr "فرمت ذخیره"
647
 
648
- #: core/fields/date_picker/date_picker.php:107
649
- msgid ""
650
- "This format will determin the value saved to the database and returned via "
651
- "the API"
652
- msgstr ""
653
- "این فرمت ارزش پایگاه داده ذخیره شده را تعیین می کند و از طریق ) API ( برگشت "
654
- "داده می شود."
655
 
656
- #: core/fields/date_picker/date_picker.php:108
657
- msgid "\"yymmdd\" is the most versatile save format. Read more about"
658
- msgstr "( روز/ماه/سال ) بهترین فرمت ذخیره است. خواندن اطلاعات بیشتر"
659
 
660
- #: core/fields/date_picker/date_picker.php:108
661
- #: core/fields/date_picker/date_picker.php:118
662
- msgid "jQuery date formats"
663
- msgstr "فرمت های تاریخ از JQuery"
664
 
665
- #: core/fields/date_picker/date_picker.php:116
666
- msgid "Display format"
667
- msgstr "فرمت نمایش"
668
 
669
- #: core/fields/date_picker/date_picker.php:117
670
- msgid "This format will be seen by the user when entering a value"
671
- msgstr "این قالب توسط کاربر هنگام ورود به یک ارزش ( مقدار ) دیده خواهد شد."
672
 
673
- #: core/fields/date_picker/date_picker.php:118
674
- msgid ""
675
- "\"dd/mm/yy\" or \"mm/dd/yy\" are the most used display formats. Read more "
676
- "about"
677
  msgstr ""
678
- "( روز/ماه/سال ) یا ( ماه/روز/سال ) پر استفاده ترین فرمت های نمایش تاریخ "
679
- "هستند خواندن اطلاعات بیشتر"
680
 
681
- #: core/fields/file.php:21
682
- msgid "File"
683
- msgstr "پرونده"
684
 
685
- #: core/fields/file.php:49
686
- msgid "File Updated."
687
- msgstr "پرونده بروزرسانی شد."
688
 
689
- #: core/fields/file.php:90 core/fields/flexible_content.php:407
690
- #: core/fields/gallery.php:251 core/fields/gallery.php:281
691
- #: core/fields/image.php:187 core/fields/repeater.php:356
692
- #: core/views/meta_box_fields.php:88
693
- msgid "Edit"
694
- msgstr "ویرایش"
695
 
696
- #: core/fields/file.php:91 core/fields/gallery.php:250
697
- #: core/fields/gallery.php:280 core/fields/image.php:186
698
- msgid "Remove"
699
- msgstr "برداشتن"
 
 
 
 
 
700
 
701
- #: core/fields/file.php:196
702
- msgid "No File Selected"
703
- msgstr "پرونده ای انتخاب نشده است"
704
 
705
- #: core/fields/file.php:196
706
- msgid "Add File"
707
- msgstr "افزودن پرونده"
708
 
709
- #: core/fields/file.php:229 core/fields/image.php:223
710
- msgid "Return Value"
711
- msgstr "مقدار برگشتی"
712
 
713
- #: core/fields/file.php:239
714
- msgid "File Object"
715
- msgstr "موضوع پرونده"
 
 
 
 
716
 
717
- #: core/fields/file.php:240
718
- msgid "File URL"
719
- msgstr "آدرس پرونده"
720
 
721
- #: core/fields/file.php:241
722
- msgid "File ID"
723
- msgstr "شناسه پرونده"
724
 
725
- #: core/fields/file.php:273 core/fields/image.php:291
726
- msgid "Media attachment updated."
727
- msgstr "پیوست رسانه بروز شد."
728
 
729
- #: core/fields/file.php:407
730
- msgid "No files selected"
731
- msgstr "پرونده ای انتخاب نشده است."
732
 
733
- #: core/fields/file.php:502
734
- msgid "Add Selected Files"
735
- msgstr "افزودن پرونده های انتخاب شده"
736
 
737
- #: core/fields/file.php:532
738
- msgid "Select File"
739
- msgstr "انتخاب پرونده"
740
 
741
- #: core/fields/file.php:535
742
- msgid "Update File"
743
- msgstr "بروزرسانی پرونده"
744
 
745
- #: core/fields/flexible_content.php:21
746
- msgid "Flexible Content"
747
- msgstr "محتوا انعطاف پذیر"
 
 
 
 
748
 
749
- #: core/fields/flexible_content.php:38 core/fields/flexible_content.php:286
750
- msgid "+ Add Row"
751
- msgstr "افزودن ردیف +"
752
 
753
- #: core/fields/flexible_content.php:313 core/fields/repeater.php:302
754
- #: core/views/meta_box_fields.php:25
755
- msgid "New Field"
756
- msgstr "زمینه جدید"
757
 
758
- #: core/fields/flexible_content.php:322 core/fields/radio.php:144
759
- #: core/fields/repeater.php:523
760
- msgid "Layout"
761
- msgstr "چیدمان"
762
 
763
- #: core/fields/flexible_content.php:324
764
- msgid "Reorder Layout"
765
- msgstr "تغییر مجدد چیدمان"
766
 
767
- #: core/fields/flexible_content.php:324
768
- msgid "Reorder"
769
- msgstr "دوباره مرتب کردن"
 
 
 
 
770
 
771
- #: core/fields/flexible_content.php:325
772
- msgid "Add New Layout"
773
- msgstr "افزودن چیدمان جدید"
774
 
775
- #: core/fields/flexible_content.php:326
776
- msgid "Delete Layout"
777
- msgstr "حذف چیدمان"
778
 
779
- #: core/fields/flexible_content.php:326 core/fields/flexible_content.php:410
780
- #: core/fields/repeater.php:359 core/views/meta_box_fields.php:91
781
- msgid "Delete"
782
- msgstr "حذف کردن"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
783
 
784
- #: core/fields/flexible_content.php:336
785
- msgid "Label"
786
- msgstr "برچسب"
787
 
788
- #: core/fields/flexible_content.php:346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
789
  msgid "Name"
790
  msgstr "نام"
791
 
792
- #: core/fields/flexible_content.php:356
793
- msgid "Display"
794
- msgstr "صفحه نمایش"
795
 
796
- #: core/fields/flexible_content.php:363
797
- msgid "Table"
798
- msgstr "جدول"
799
 
800
- #: core/fields/flexible_content.php:364 core/fields/repeater.php:534
801
- msgid "Row"
802
- msgstr "ردیف"
803
 
804
- #: core/fields/flexible_content.php:377 core/fields/repeater.php:327
805
- #: core/views/meta_box_fields.php:60
806
- msgid "Field Order"
807
- msgstr "رتبه زمینه"
808
 
809
- #: core/fields/flexible_content.php:378 core/fields/flexible_content.php:425
810
- #: core/fields/repeater.php:328 core/fields/repeater.php:375
811
- #: core/views/meta_box_fields.php:61 core/views/meta_box_fields.php:107
812
- msgid "Field Label"
813
- msgstr "برچسب زمینه"
814
 
815
- #: core/fields/flexible_content.php:379 core/fields/flexible_content.php:441
816
- #: core/fields/repeater.php:329 core/fields/repeater.php:391
817
- #: core/views/meta_box_fields.php:62 core/views/meta_box_fields.php:123
818
- msgid "Field Name"
819
- msgstr "نام زمینه"
 
 
820
 
821
- #: core/fields/flexible_content.php:388 core/fields/repeater.php:338
 
 
 
 
 
822
  msgid ""
823
- "No fields. Click the \"+ Add Sub Field button\" to create your first field."
 
824
  msgstr ""
825
- "زمینه وجود ندارد. روی دکمه ( اضافه کردن زیر فیلد ) کلیک کنید تا اولین زمینه "
826
- "شما ساخته شود."
827
 
828
- #: core/fields/flexible_content.php:404 core/fields/flexible_content.php:407
829
- #: core/fields/repeater.php:353 core/fields/repeater.php:356
830
- #: core/views/meta_box_fields.php:85 core/views/meta_box_fields.php:88
831
- msgid "Edit this Field"
832
- msgstr "ویرایش این زمینه"
833
 
834
- #: core/fields/flexible_content.php:408 core/fields/repeater.php:357
835
- #: core/views/meta_box_fields.php:89
836
- msgid "Read documentation for this field"
837
- msgstr "خواندن مستندات برای این زمینه"
838
 
839
- #: core/fields/flexible_content.php:408 core/fields/repeater.php:357
840
- #: core/views/meta_box_fields.php:89
841
- msgid "Docs"
842
- msgstr "اسناد"
843
 
844
- #: core/fields/flexible_content.php:409 core/fields/repeater.php:358
845
- #: core/views/meta_box_fields.php:90
846
- msgid "Duplicate this Field"
847
- msgstr "تکثیر این زمینه"
848
 
849
- #: core/fields/flexible_content.php:409 core/fields/repeater.php:358
850
- #: core/views/meta_box_fields.php:90
851
- msgid "Duplicate"
852
- msgstr "تکثیر"
853
 
854
- #: core/fields/flexible_content.php:410 core/fields/repeater.php:359
855
- #: core/views/meta_box_fields.php:91
856
- msgid "Delete this Field"
857
- msgstr "حذف این زمینه"
858
 
859
- #: core/fields/flexible_content.php:426 core/fields/repeater.php:376
860
- #: core/views/meta_box_fields.php:108
861
- msgid "This is the name which will appear on the EDIT page"
862
- msgstr "این "
863
 
864
- #: core/fields/flexible_content.php:442 core/fields/repeater.php:392
865
- #: core/views/meta_box_fields.php:124
866
- msgid "Single word, no spaces. Underscores and dashes allowed"
867
- msgstr "تک کلمه، بدون فاصله و خط تیره مجاز است."
868
 
869
- #: core/fields/flexible_content.php:476 core/fields/repeater.php:467
870
- msgid "Save Field"
871
- msgstr "ذخیره زمینه"
872
 
873
- #: core/fields/flexible_content.php:481 core/fields/repeater.php:472
874
- #: core/views/meta_box_fields.php:190
875
- msgid "Close Field"
876
- msgstr "بستن زمینه"
877
 
878
- #: core/fields/flexible_content.php:481 core/fields/repeater.php:472
879
- msgid "Close Sub Field"
880
- msgstr "بستن زیر زمینه"
881
 
882
- #: core/fields/flexible_content.php:495 core/fields/repeater.php:487
883
- #: core/views/meta_box_fields.php:203
884
- msgid "Drag and drop to reorder"
885
- msgstr "بالا و پایین کشاندن برای دوباره مرتب کردن"
886
 
887
- #: core/fields/flexible_content.php:496 core/fields/repeater.php:488
888
- msgid "+ Add Sub Field"
889
- msgstr "اضافه کردن زیر زمینه +"
 
890
 
891
- #: core/fields/flexible_content.php:503 core/fields/repeater.php:542
892
- msgid "Button Label"
893
- msgstr "برچسب دکمه"
894
 
895
- #: core/fields/gallery.php:25
896
- msgid "Gallery"
897
- msgstr "گالری"
 
 
898
 
899
- #: core/fields/gallery.php:70 core/fields/gallery.php:233
900
- msgid "Alternate Text"
901
- msgstr "متن جایگزین"
 
902
 
903
- #: core/fields/gallery.php:74 core/fields/gallery.php:237
904
- msgid "Caption"
905
- msgstr "عنوان"
 
906
 
907
- #: core/fields/gallery.php:78 core/fields/gallery.php:241
908
- msgid "Description"
909
- msgstr "توضیحات"
 
 
 
 
910
 
911
- #: core/fields/gallery.php:117 core/fields/image.php:243
912
- msgid "Preview Size"
913
- msgstr "اندازه قبلی"
914
 
915
- #: core/fields/gallery.php:118
916
- msgid "Thumbnail is advised"
917
- msgstr "تصویر بندانگشتی توصیه شده است."
 
918
 
919
- #: core/fields/gallery.php:179
920
- msgid "Image Updated"
921
- msgstr "تصویر بروزرسانی شده"
922
 
923
- #: core/fields/gallery.php:262 core/fields/gallery.php:669
924
- #: core/fields/image.php:193
925
- msgid "Add Image"
926
- msgstr "افزودن تصویر"
927
 
928
- #: core/fields/gallery.php:263
929
- msgid "Grid"
930
- msgstr "توری"
931
 
932
- #: core/fields/gallery.php:264
933
- msgid "List"
934
- msgstr "فهرست"
935
 
936
- #: core/fields/gallery.php:266 core/fields/image.php:429
937
- msgid "No images selected"
938
- msgstr "تصویری انتخاب نشده است."
939
 
940
- #: core/fields/gallery.php:266
941
- msgid "1 image selected"
942
- msgstr "یک تصویر انتخاب شده است"
943
 
944
- #: core/fields/gallery.php:266
945
- msgid "{count} images selected"
946
- msgstr "(تعداد) تصاویر انتخاب شده"
947
 
948
- #: core/fields/gallery.php:591
949
- msgid "Added"
950
- msgstr "اضافه شد"
951
 
952
- #: core/fields/gallery.php:611
953
- msgid "Image already exists in gallery"
954
- msgstr "تصویر در حال حاضر در گالری وجود دارد"
955
 
956
- #: core/fields/gallery.php:617
957
- msgid "Image Added"
958
- msgstr "تصویر اضافه شد"
959
 
960
- #: core/fields/gallery.php:672 core/fields/image.php:557
961
- msgid "Update Image"
962
- msgstr "بروز رسانی تصویر"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
963
 
964
- #: core/fields/image.php:21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
965
  msgid "Image"
966
  msgstr "تصویر"
967
 
968
- #: core/fields/image.php:49
969
- msgid "Image Updated."
970
- msgstr "تصویر بروزرسانی شد."
 
 
 
 
 
 
 
 
971
 
972
- #: core/fields/image.php:193
 
 
 
 
973
  msgid "No image selected"
974
  msgstr "تصویری انتخاب نشده است"
975
 
976
- #: core/fields/image.php:233
 
 
 
 
977
  msgid "Image Object"
978
  msgstr "موضوع تصویر"
979
 
980
- #: core/fields/image.php:234
981
  msgid "Image URL"
982
  msgstr "آدرس تصویر"
983
 
984
- #: core/fields/image.php:235
985
  msgid "Image ID"
986
  msgstr "شناسه تصویر"
987
 
988
- #: core/fields/image.php:525
989
- msgid "Add selected Images"
 
 
 
 
 
 
 
 
 
 
 
 
990
  msgstr "افزودن تصاویر انتخاب شده"
991
 
992
- #: core/fields/image.php:554
993
- msgid "Select Image"
994
- msgstr "انتخاب تصویر"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
995
 
996
- #: core/fields/number.php:21
997
  msgid "Number"
998
  msgstr "شماره"
999
 
1000
- #: core/fields/page_link.php:21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1001
  msgid "Page Link"
1002
- msgstr "لینک صفحه"
 
 
 
 
 
 
1003
 
1004
- #: core/fields/page_link.php:70 core/fields/post_object.php:217
1005
- #: core/fields/relationship.php:386 core/views/meta_box_location.php:48
 
1006
  msgid "Post Type"
1007
- msgstr "نوع پست"
1008
 
1009
- #: core/fields/page_link.php:98 core/fields/post_object.php:268
1010
- #: core/fields/select.php:204
 
1011
  msgid "Allow Null?"
1012
  msgstr "نول اجازه می دهد؟"
1013
 
1014
- #: core/fields/page_link.php:107 core/fields/page_link.php:126
1015
- #: core/fields/post_object.php:277 core/fields/post_object.php:296
1016
- #: core/fields/select.php:213 core/fields/select.php:232
1017
- #: core/fields/wysiwyg.php:124 core/fields/wysiwyg.php:145
1018
- #: core/views/meta_box_fields.php:172
1019
- msgid "Yes"
1020
- msgstr "بله"
1021
-
1022
- #: core/fields/page_link.php:108 core/fields/page_link.php:127
1023
- #: core/fields/post_object.php:278 core/fields/post_object.php:297
1024
- #: core/fields/select.php:214 core/fields/select.php:233
1025
- #: core/fields/wysiwyg.php:125 core/fields/wysiwyg.php:146
1026
- #: core/views/meta_box_fields.php:173
1027
- msgid "No"
1028
- msgstr "خیر"
1029
-
1030
- #: core/fields/page_link.php:117 core/fields/post_object.php:287
1031
- #: core/fields/select.php:223
1032
  msgid "Select multiple values?"
1033
  msgstr "آیا چندین مقدار انتخاب شود؟"
1034
 
1035
- #: core/fields/post_object.php:21
 
 
 
 
1036
  msgid "Post Object"
1037
- msgstr "موضوع پست"
1038
 
1039
- #: core/fields/post_object.php:245 core/fields/relationship.php:415
1040
  msgid "Filter from Taxonomy"
1041
  msgstr "فیلتر از طبقه بندی"
1042
 
1043
- #: core/fields/radio.php:21
1044
  msgid "Radio Button"
1045
- msgstr "دکمه های رادیویی"
1046
 
1047
- #: core/fields/radio.php:154
1048
- msgid "Vertical"
1049
- msgstr "عمودی"
1050
 
1051
- #: core/fields/radio.php:155
1052
- msgid "Horizontal"
1053
- msgstr "افقی"
 
 
 
 
1054
 
1055
- #: core/fields/relationship.php:21
 
 
 
 
 
 
 
 
 
 
 
 
1056
  msgid "Relationship"
1057
  msgstr "ارتباط"
1058
 
1059
- #: core/fields/relationship.php:288
 
 
 
 
 
 
 
 
 
 
 
 
1060
  msgid "Search"
1061
- msgstr "جست و جو"
 
 
 
 
 
 
 
 
 
 
 
 
1062
 
1063
- #: core/fields/relationship.php:438
 
 
 
 
 
 
 
 
1064
  msgid "Maximum posts"
1065
  msgstr "حداکثر ارسال ها"
1066
 
1067
- #: core/fields/repeater.php:21
1068
- msgid "Repeater"
1069
- msgstr "تکرار کننده"
 
1070
 
1071
- #: core/fields/repeater.php:66 core/fields/repeater.php:289
1072
- msgid "Add Row"
1073
- msgstr "افزودن ردیف"
1074
 
1075
- #: core/fields/repeater.php:319
1076
- msgid "Repeater Fields"
1077
- msgstr "زمینه های تکرار کننده"
 
 
 
 
1078
 
1079
- #: core/fields/repeater.php:420 core/views/meta_box_fields.php:151
1080
- msgid "Field Instructions"
1081
- msgstr "راهمای زمینه"
 
1082
 
1083
- #: core/fields/repeater.php:440
1084
- msgid "Column Width"
1085
- msgstr "عرض ستون"
1086
 
1087
- #: core/fields/repeater.php:441
1088
- msgid "Leave blank for auto"
1089
- msgstr "اگر فیلد را خالی بگذارید برنامه یک رمزعبور برای شما"
 
1090
 
1091
- #: core/fields/repeater.php:495
1092
- msgid "Minimum Rows"
1093
- msgstr "حداقل ردیف ها"
 
1094
 
1095
- #: core/fields/repeater.php:509
1096
- msgid "Maximum Rows"
1097
- msgstr "حداکثر ردیف ها"
1098
 
1099
- #: core/fields/repeater.php:533
1100
- msgid "Table (default)"
1101
- msgstr "جدول ( پیش فرض )"
1102
 
1103
- #: core/fields/select.php:21
1104
- msgid "Select"
1105
- msgstr "انتخاب"
 
 
 
 
 
 
 
 
 
 
 
 
 
1106
 
1107
- #: core/fields/text.php:21
 
 
 
 
 
 
 
 
1108
  msgid "Text"
1109
  msgstr "متن"
1110
 
1111
- #: core/fields/text.php:79 core/fields/textarea.php:76
1112
  msgid "Formatting"
1113
- msgstr "قالب بندی"
1114
 
1115
- #: core/fields/text.php:80
1116
  msgid "Define how to render html tags"
1117
  msgstr "تعریف چگونگی ترجمه به تگ های اچ تی ام ال"
1118
 
1119
- #: core/fields/text.php:89 core/fields/textarea.php:86
1120
- msgid "None"
1121
- msgstr "هیچ کدام"
1122
-
1123
- #: core/fields/text.php:90 core/fields/textarea.php:88
1124
  msgid "HTML"
1125
  msgstr "اچ تی ام ال"
1126
 
1127
- #: core/fields/textarea.php:21
1128
  msgid "Text Area"
1129
  msgstr "محل متن"
1130
 
1131
- #: core/fields/textarea.php:77
1132
  msgid "Define how to render html tags / new lines"
1133
  msgstr "تعریف چگونگی ترجمه به تگ های اچ تی ام ال / خطوط جدید"
1134
 
1135
- #: core/fields/textarea.php:87
1136
  msgid "auto &lt;br /&gt;"
1137
  msgstr "<br>خودکار<br/>"
1138
 
1139
- #: core/fields/true_false.php:21
1140
  msgid "True / False"
1141
  msgstr "درست / نادرست"
1142
 
1143
- #: core/fields/true_false.php:68
1144
- msgid "Message"
1145
- msgstr "پیام"
1146
-
1147
- #: core/fields/true_false.php:69
1148
  msgid "eg. Show extra content"
1149
  msgstr "به عنوان مثال : نمایش محتوای اضافی"
1150
 
1151
- #: core/fields/wysiwyg.php:21
 
 
 
 
 
 
 
 
1152
  msgid "Wysiwyg Editor"
1153
  msgstr "ویرایشگر بصری"
1154
 
1155
- #: core/fields/wysiwyg.php:95
1156
  msgid "Toolbar"
1157
  msgstr "نوار ابزار"
1158
 
1159
- #: core/fields/wysiwyg.php:106 core/views/meta_box_location.php:47
1160
- msgid "Basic"
1161
- msgstr "پایه ( عمومی )"
1162
-
1163
- #: core/fields/wysiwyg.php:114
1164
  msgid "Show Media Upload Buttons?"
1165
  msgstr "آیا دکمه های آپلود رسانه ای نمایش داده شوند؟"
1166
 
1167
- #: core/fields/wysiwyg.php:133
1168
- msgid "Run filter \"the_content\"?"
1169
- msgstr "آیا فیلتر محتوا اجرا شود؟"
1170
-
1171
- #: core/fields/wysiwyg.php:134
1172
- msgid "Enable this filter to use shortcodes within the WYSIWYG field"
1173
- msgstr "فعال کردن این فیلتر به استفاده از کد کوتاه در زمینه بصری"
1174
-
1175
- #: core/fields/wysiwyg.php:135
1176
- msgid ""
1177
- "Disable this filter if you encounter recursive template problems with "
1178
- "plugins / themes"
1179
- msgstr ""
1180
- "غیر فعال کردن این فیلتر اگر شما با مشکلات قالب بازگشتی با تم ها ( قالب ها ) "
1181
- "و پلاگین ها مواجهه شدید."
1182
-
1183
- #: core/views/meta_box_fields.php:26
1184
- msgid "new_field"
1185
  msgstr "زمینه جدید"
1186
 
1187
- #: core/views/meta_box_fields.php:47
 
 
 
 
1188
  msgid "Move to trash. Are you sure?"
1189
  msgstr "انتقال به زباله دان، مطمئنید؟"
1190
 
1191
  #: core/views/meta_box_fields.php:64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1192
  msgid "Field Key"
1193
  msgstr "کلید زمینه"
1194
 
1195
- #: core/views/meta_box_fields.php:74
1196
  msgid ""
1197
  "No fields. Click the <strong>+ Add Field</strong> button to create your "
1198
  "first field."
@@ -1200,23 +1521,99 @@ msgstr ""
1200
  "زمینه وجود ندارد. روی دکمه ( اضافه کردن زمینه + ) کلیک کنید تا اولین زمینه "
1201
  "شما ساخته شود."
1202
 
1203
- #: core/views/meta_box_fields.php:152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1204
  msgid "Instructions for authors. Shown when submitting data"
1205
  msgstr "راهنمای نویسندگان. هنگام ارسال داده ها نشان داده شده است."
1206
 
1207
- #: core/views/meta_box_fields.php:164
1208
  msgid "Required?"
1209
  msgstr "آیا لازم است؟"
1210
 
1211
- #: core/views/meta_box_fields.php:204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1212
  msgid "+ Add Field"
1213
  msgstr "اضفه کردن زمینه +"
1214
 
1215
- #: core/views/meta_box_location.php:35
1216
  msgid "Rules"
1217
  msgstr "قوانین"
1218
 
1219
- #: core/views/meta_box_location.php:36
1220
  msgid ""
1221
  "Create a set of rules to determine which edit screens will use these "
1222
  "advanced custom fields"
@@ -1224,120 +1621,108 @@ msgstr ""
1224
  "ایجاد یک مجموعه ای از قوانین برای تعیین این که از زمینه های سفارشی پیشرفته "
1225
  "استفاده خواهد شد."
1226
 
1227
- #: core/views/meta_box_location.php:49
 
 
 
 
1228
  msgid "Logged in User Type"
1229
  msgstr "خارج شده به عنوان کاربر"
1230
 
1231
- #: core/views/meta_box_location.php:51
1232
- msgid "Page Specific"
1233
- msgstr "صفحه ویژه"
1234
-
1235
- #: core/views/meta_box_location.php:52
1236
  msgid "Page"
1237
- msgstr "صفحه"
1238
 
1239
- #: core/views/meta_box_location.php:53
1240
  msgid "Page Type"
1241
- msgstr "نوع صفحه"
1242
 
1243
- #: core/views/meta_box_location.php:54
1244
  msgid "Page Parent"
1245
- msgstr "صفحه مادر"
1246
 
1247
- #: core/views/meta_box_location.php:55
1248
  msgid "Page Template"
1249
- msgstr "صفحه الگو"
1250
-
1251
- #: core/views/meta_box_location.php:57
1252
- msgid "Post Specific"
1253
- msgstr "پست ویژه"
1254
 
1255
- #: core/views/meta_box_location.php:58
1256
  msgid "Post"
1257
- msgstr "پست"
1258
 
1259
- #: core/views/meta_box_location.php:59
1260
  msgid "Post Category"
1261
- msgstr "دسته بندی پست"
1262
 
1263
- #: core/views/meta_box_location.php:60
1264
  msgid "Post Format"
1265
- msgstr "نوع پست"
1266
 
1267
- #: core/views/meta_box_location.php:61
1268
  msgid "Post Taxonomy"
1269
- msgstr "طبقه بندی پست"
1270
-
1271
- #: core/views/meta_box_location.php:63
1272
- msgid "Other"
1273
- msgstr "دیگر"
1274
 
1275
- #: core/views/meta_box_location.php:64
1276
- msgid "Taxonomy (Add / Edit)"
1277
- msgstr "طبقه بندی (افزودن / ویرایش)"
1278
 
1279
- #: core/views/meta_box_location.php:65
1280
  msgid "User (Add / Edit)"
1281
  msgstr "کاربر (افزودن / ویرایش)"
1282
 
1283
- #: core/views/meta_box_location.php:66
1284
- msgid "Media (Edit)"
1285
- msgstr "رسانه ( ویرایش )"
1286
 
1287
- #: core/views/meta_box_location.php:96
1288
- msgid "is equal to"
1289
- msgstr "برابر است با"
1290
 
1291
- #: core/views/meta_box_location.php:97
1292
- msgid "is not equal to"
1293
- msgstr "برابر نیست با"
1294
-
1295
- #: core/views/meta_box_location.php:121
1296
- msgid "match"
1297
- msgstr "تطابق پیدا کردن"
1298
 
1299
- #: core/views/meta_box_location.php:127
1300
- msgid "all"
1301
- msgstr "همه"
1302
-
1303
- #: core/views/meta_box_location.php:128
1304
- msgid "any"
1305
- msgstr "هیچ"
1306
-
1307
- #: core/views/meta_box_location.php:131
1308
- msgid "of the above"
1309
- msgstr "از بالا"
1310
-
1311
- #: core/views/meta_box_location.php:144
1312
- msgid "Unlock options add-on with an activation code"
1313
- msgstr "باز کردن گزینه های افزودنی با یک کد فعال سازی"
1314
-
1315
- #: core/views/meta_box_options.php:23
1316
  msgid "Order No."
1317
  msgstr "شماره سفارش"
1318
 
1319
- #: core/views/meta_box_options.php:24
1320
  msgid "Field groups are created in order <br />from lowest to highest"
1321
  msgstr ""
1322
  "گروه های فیلد در حال ایجاد دستور <br/> از پایین ترین تا بالاترین نقطه هستند."
1323
 
1324
- #: core/views/meta_box_options.php:40
1325
  msgid "Position"
1326
  msgstr "موقعیت"
1327
 
1328
- #: core/views/meta_box_options.php:60
 
 
 
 
 
 
 
 
1329
  msgid "Style"
1330
  msgstr "شیوه"
1331
 
1332
- #: core/views/meta_box_options.php:80
 
 
 
 
 
 
 
 
1333
  msgid "Hide on screen"
1334
  msgstr "مخفی نگه داشتن روی صفحه"
1335
 
1336
- #: core/views/meta_box_options.php:81
1337
  msgid "<b>Select</b> items to <b>hide</b> them from the edit screen"
1338
  msgstr "<b>انتخاب کردن<b/> آیتم ها به <b>مخفی کردن<b/> آن ها از ویرایش صفحه"
1339
 
1340
- #: core/views/meta_box_options.php:82
1341
  msgid ""
1342
  "If multiple field groups appear on an edit screen, the first field group's "
1343
  "options will be used. (the one with the lowest order number)"
@@ -1345,48 +1730,46 @@ msgstr ""
1345
  "اگر چندین گروه زمینه در یک صفحه ویرایش ظاهر شوند، تنظیمات اولین گروه زمینه "
1346
  "استفاده خواهد شد ( یکی با کمترین تعداد سفارش )"
1347
 
1348
- #: core/views/meta_box_options.php:92
1349
  msgid "Content Editor"
1350
  msgstr "ویرایشگر محتوا"
1351
 
1352
- #: core/views/meta_box_options.php:93
1353
  msgid "Excerpt"
1354
  msgstr "انتخاب کردن و جداکردن"
1355
 
1356
- #: core/views/meta_box_options.php:95
1357
  msgid "Discussion"
1358
  msgstr "گفتگو"
1359
 
1360
- #: core/views/meta_box_options.php:96
1361
  msgid "Comments"
1362
- msgstr "توضیحات"
1363
 
1364
- #: core/views/meta_box_options.php:97
1365
  msgid "Revisions"
1366
  msgstr "تجدید نظر"
1367
 
1368
- #: core/views/meta_box_options.php:98
1369
  msgid "Slug"
1370
- msgstr "مثل حلزون حرکت کردن"
1371
 
1372
- #: core/views/meta_box_options.php:99
1373
  msgid "Author"
1374
  msgstr "نویسنده"
1375
 
1376
- #: core/views/meta_box_options.php:100
1377
  msgid "Format"
1378
  msgstr "قالب"
1379
 
1380
- #: core/views/meta_box_options.php:101
1381
- msgid "Featured Image"
1382
- msgstr "ویژگی های تصویر"
1383
-
1384
- #~ msgid "Add Fields to Edit Screens"
1385
- #~ msgstr "Додайте поля на сторінку редагування вмісту"
1386
 
1387
- #~ msgid "Customise the edit page"
1388
- #~ msgstr "Налаштуйте сторінку створення вмісту"
 
1389
 
1390
- #, fuzzy
1391
- #~ msgid "eg. dd/mm/yy. read more about"
1392
- #~ msgstr "Напр. dd/mm/yy. read more about"
1
+ # Copyright (C) 2013
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Advanced Custom Fields 4.2 Persian\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/advanced-custom-fields\n"
7
+ "POT-Creation-Date: 2013-07-09 03:49:07+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-08-14 08:36+0330\n"
12
+ "Last-Translator: Ghaem Omidi <ghaemomidi@yahoo.com>\n"
13
+ "Language-Team: Shahrakdownload.ir <ghaemomidi@yahoo.com>\n"
 
 
14
  "X-Generator: Poedit 1.5.7\n"
15
+ "Language: fa_IR\n"
16
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
17
+ "X-Poedit-Basepath: C:\\Users\\taninafzar\\Desktop\\Advanced Custom Fields "
18
+ "4.2 Persian ( Shahrakdownload.ir )\\lang\n"
19
+ "X-Poedit-SearchPath-0: C:\\Users\\taninafzar\\Desktop\\Advanced Custom "
20
+ "Fields 4.2 Persian ( Shahrakdownload.ir )\\lang\n"
21
+
22
+ #: acf.php:325
23
  msgid "Field&nbsp;Groups"
24
  msgstr "گروه زمینه"
25
 
26
+ #: acf.php:326 core/controllers/field_groups.php:214
 
27
  msgid "Advanced Custom Fields"
28
  msgstr "زمینه سفارشی پیشرفته"
29
 
30
+ #: acf.php:327
31
  msgid "Add New"
32
  msgstr "افزودن"
33
 
34
+ #: acf.php:328
35
  msgid "Add New Field Group"
36
  msgstr "افزودن گروه زمینه جدید"
37
 
38
+ #: acf.php:329
39
  msgid "Edit Field Group"
40
  msgstr "ویرایش گروه زمینه"
41
 
42
+ #: acf.php:330
43
  msgid "New Field Group"
44
  msgstr "گروه زمینه جدید"
45
 
46
+ #: acf.php:331
47
  msgid "View Field Group"
48
  msgstr "مشاهده گروه زمینه"
49
 
50
+ #: acf.php:332
51
  msgid "Search Field Groups"
52
  msgstr "جستجوی گروه زمینه"
53
 
54
+ #: acf.php:333
55
  msgid "No Field Groups found"
56
  msgstr "گروه زمینه ای یافت نشد"
57
 
58
+ #: acf.php:334
59
  msgid "No Field Groups found in Trash"
60
  msgstr "گروه زمینه ای در زباله دان یافت نشد"
61
 
62
+ #: acf.php:447 core/views/meta_box_options.php:96
63
+ msgid "Custom Fields"
64
+ msgstr "زمینه سفارشی"
65
+
66
+ #: acf.php:465 acf.php:468
67
  msgid "Field group updated."
68
  msgstr "گروه زمینه بروز شد."
69
 
70
+ #: acf.php:466
71
  msgid "Custom field updated."
72
  msgstr "زمینه سفارشی بروز شد."
73
 
74
+ #: acf.php:467
75
  msgid "Custom field deleted."
76
  msgstr "زمینه سفارشی حذف شد."
77
 
78
  #. translators: %s: date and time of the revision
79
+ #: acf.php:470
80
  msgid "Field group restored to revision from %s"
81
  msgstr "گروه زمینه ترمیم به تجدید نظر از %s"
82
 
83
+ #: acf.php:471
84
  msgid "Field group published."
85
  msgstr "گروه زمینه منتشر شد"
86
 
87
+ #: acf.php:472
88
  msgid "Field group saved."
89
  msgstr "گروه زمینه ذخیره شد."
90
 
91
+ #: acf.php:473
92
  msgid "Field group submitted."
93
+ msgstr "گروه زمینه را مشاهده کنید."
94
 
95
+ #: acf.php:474
96
  msgid "Field group scheduled for."
97
+ msgstr "گروه زمینه برنامه ریزی شده است برای."
98
 
99
+ #: acf.php:475
100
  msgid "Field group draft updated."
101
  msgstr "پیش نویس زمینه گروهی به روز رسانی شده است."
102
 
103
+ #: acf.php:610
 
 
 
 
 
 
 
 
104
  msgid "Thumbnail"
105
  msgstr "بند انگشتی"
106
 
107
+ #: acf.php:611
108
  msgid "Medium"
109
  msgstr "متوسط"
110
 
111
+ #: acf.php:612
112
  msgid "Large"
113
  msgstr "بزرگ"
114
 
115
+ #: acf.php:613
116
  msgid "Full"
117
  msgstr "کامل"
118
 
119
+ #: core/actions/export.php:23 core/views/meta_box_fields.php:58
120
+ msgid "Error"
121
+ msgstr "خطا"
122
+
123
+ #: core/actions/export.php:30
124
  msgid "No ACF groups selected"
125
  msgstr "هیچ گروه زمینه سفارشی پیشرفته انتخاب نشده است."
126
 
127
+ #: core/api.php:1093
128
+ msgid "Update"
129
+ msgstr "بروزرسانی"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
+ #: core/api.php:1094
132
+ msgid "Post updated"
133
+ msgstr "نوشته بروزرسانی شد"
134
 
135
+ #: core/controllers/addons.php:42 core/controllers/field_groups.php:311
136
+ msgid "Add-ons"
137
+ msgstr "افزودنی ها"
138
 
139
+ #: core/controllers/addons.php:130 core/controllers/field_groups.php:432
140
+ msgid "Repeater Field"
141
+ msgstr "زمینه تکرارکننده"
142
 
143
+ #: core/controllers/addons.php:131
144
+ msgid "Create infinite rows of repeatable data with this versatile interface!"
 
 
145
  msgstr ""
146
+ "ایجاد ردیف های بی نهایت از داده های تکرار شونده با این رابط کاربری چند "
147
+ "منظوره!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
+ #: core/controllers/addons.php:137 core/controllers/field_groups.php:440
150
+ msgid "Gallery Field"
151
+ msgstr "گالری زمینه"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
 
153
+ #: core/controllers/addons.php:138
154
+ msgid "Create image galleries in a simple and intuitive interface!"
155
+ msgstr "ایجاد گالری های عکس در یک رابط کاربری ساده و بصری!"
156
 
157
+ #: core/controllers/addons.php:144 core/controllers/export.php:380
158
+ #: core/controllers/field_groups.php:448
159
+ msgid "Options Page"
160
+ msgstr "صغحه تنظیمات"
161
 
162
+ #: core/controllers/addons.php:145
163
+ msgid "Create global data to use throughout your website!"
164
+ msgstr "ایجاد داده های جهانی برای استفاده در سراسر وبسایت شما!"
165
 
166
+ #: core/controllers/addons.php:151
167
+ msgid "Flexible Content Field"
168
+ msgstr "زمینه محتوای انعطاف پذیر"
169
 
170
+ #: core/controllers/addons.php:152
171
+ msgid "Create unique designs with a flexible content layout manager!"
172
+ msgstr "ایجاد طرح های منحصر به فرد با یک مدیریت چیدمان محتوای انعطاف پذیر!"
173
 
174
+ #: core/controllers/addons.php:161
175
+ msgid "Gravity Forms Field"
176
+ msgstr "زمینه فرم های جذب"
177
 
178
+ #: core/controllers/addons.php:162
179
+ msgid "Creates a select field populated with Gravity Forms!"
180
+ msgstr "ایجاد یک زمینه انتخاب جمعیت با فرم های جذب!"
181
 
182
+ #: core/controllers/addons.php:168
183
+ msgid "Date & Time Picker"
184
+ msgstr "چیننده تاریخ و زمان"
185
 
186
+ #: core/controllers/addons.php:169
187
+ msgid "jQuery date & time picker"
188
+ msgstr "چیننده تاریخ و زمان jQuery"
189
 
190
+ #: core/controllers/addons.php:175
191
+ msgid "Location Field"
192
+ msgstr "مکان زمینه"
193
 
194
+ #: core/controllers/addons.php:176
195
+ msgid "Find addresses and coordinates of a desired location"
196
+ msgstr "یافتن آدرس و مختصات مکان مورد نظر"
197
 
198
+ #: core/controllers/addons.php:182
199
+ msgid "Contact Form 7 Field"
200
+ msgstr "زمینه فرم تماس 7"
201
 
202
+ #: core/controllers/addons.php:183
203
+ msgid "Assign one or more contact form 7 forms to a post"
204
+ msgstr "اختصاص یک یا چند فرم تماس 7 شکل به یک نوشته"
205
 
206
+ #: core/controllers/addons.php:193
207
+ msgid "Advanced Custom Fields Add-Ons"
208
+ msgstr "افزودنی های زمینه های سفارشی پیشرفته"
209
 
210
+ #: core/controllers/addons.php:196
211
  msgid ""
212
+ "The following Add-ons are available to increase the functionality of the "
213
+ "Advanced Custom Fields plugin."
214
  msgstr ""
215
+ "افزودنی های زیر برای افزایش قابلیت های افزونه زمینه های سفارشی پیشرفته در "
216
+ "دسترس هستند."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
 
218
+ #: core/controllers/addons.php:197
219
+ msgid ""
220
+ "Each Add-on can be installed as a separate plugin (receives updates) or "
221
+ "included in your theme (does not receive updates)."
222
+ msgstr ""
223
+ "هر افزودنی را می توان به عنوان یک افزونه مجزا ( قابل بروزرسانی ) ویا موجود "
224
+ "در قالب شما ( غیر قابل بروزرسانی ) نصب کرد."
225
 
226
+ #: core/controllers/addons.php:219 core/controllers/addons.php:240
227
+ msgid "Installed"
228
+ msgstr "نصب شده"
229
 
230
+ #: core/controllers/addons.php:221
231
+ msgid "Purchase & Install"
232
+ msgstr "خرید و نصب"
 
233
 
234
+ #: core/controllers/addons.php:242 core/controllers/field_groups.php:425
235
+ #: core/controllers/field_groups.php:434 core/controllers/field_groups.php:442
236
+ #: core/controllers/field_groups.php:450 core/controllers/field_groups.php:458
237
+ msgid "Download"
238
+ msgstr "دانلود"
239
 
240
+ #: core/controllers/export.php:50 core/controllers/export.php:159
241
+ msgid "Export"
242
+ msgstr "صادرکردن"
 
243
 
244
+ #: core/controllers/export.php:216
245
+ msgid "Export Field Groups"
246
+ msgstr "صادر کردن گروه های زمینه"
 
247
 
248
+ #: core/controllers/export.php:221
249
+ msgid "Field Groups"
250
+ msgstr "گروه های زمینه"
251
 
252
+ #: core/controllers/export.php:222
253
+ msgid "Select the field groups to be exported"
254
+ msgstr "انتخاب گروه های زمینه برای صادر شدن"
255
 
256
+ #: core/controllers/export.php:239 core/controllers/export.php:252
257
+ msgid "Export to XML"
258
+ msgstr "صادر کردن به فرمت XML"
259
 
260
+ #: core/controllers/export.php:242 core/controllers/export.php:267
261
+ msgid "Export to PHP"
262
+ msgstr "صادر کردن به فرمت PHP"
263
 
264
+ #: core/controllers/export.php:253
265
  msgid ""
266
  "ACF will create a .xml export file which is compatible with the native WP "
267
  "import plugin."
269
  "زمینه سفارشی پیشرفته ایجاد خواهد کرد یک پرونده XML صادر شده که سازگار است با "
270
  "پلاگین وردپرس واردات."
271
 
272
+ #: core/controllers/export.php:254
 
 
 
 
 
 
 
 
273
  msgid ""
274
  "Imported field groups <b>will</b> appear in the list of editable field "
275
  "groups. This is useful for migrating fields groups between Wp websites."
277
  "گروه های زمینه وارد شده <b> <b/> به نظر می رسد در فهرست گروه های زمینه قابل "
278
  "ویرایش باشد. این برای مهاجرت گروه های زمینه بین وبسایت های وردپرسی مفید است."
279
 
280
+ #: core/controllers/export.php:256
281
  msgid "Select field group(s) from the list and click \"Export XML\""
282
  msgstr ""
283
  "گروه های زمینه را از لیست انتخاب کنید روی دکمه ( صادرکردن به فرمت XML ) کلیک "
284
  "کنید"
285
 
286
+ #: core/controllers/export.php:257
287
  msgid "Save the .xml file when prompted"
288
  msgstr "ذخیره پرونده XML زمانی که درخواست داده می شود"
289
 
290
+ #: core/controllers/export.php:258
291
  msgid "Navigate to Tools &raquo; Import and select WordPress"
292
  msgstr "حرکت به ابزار >> وارد کنید و وردپرس را انتخاب کنید"
293
 
294
+ #: core/controllers/export.php:259
295
  msgid "Install WP import plugin if prompted"
296
  msgstr "نصب پلاگین WP-Import در صورت درخواست"
297
 
298
+ #: core/controllers/export.php:260
299
  msgid "Upload and import your exported .xml file"
300
  msgstr "آپلود و وارد کردن پرونده XML صادر شده شما"
301
 
302
+ #: core/controllers/export.php:261
303
  msgid "Select your user and ignore Import Attachments"
304
  msgstr "کاربر خود را انتخاب کنید و پرونده های پیوست واردات را رد کنید."
305
 
306
+ #: core/controllers/export.php:262
307
  msgid "That's it! Happy WordPressing"
308
  msgstr "با خوشحالی با وردپرس کار کنید"
309
 
310
+ #: core/controllers/export.php:268
 
 
 
 
 
 
 
 
311
  msgid "ACF will create the PHP code to include in your theme."
312
  msgstr ""
313
  "زمینه سفارشی پیشرفته کد پی اچ پی را ایجاد خواهد کرد تا آن را در قالبتان قرار "
314
  "دهد."
315
 
316
+ #: core/controllers/export.php:269 core/controllers/export.php:310
 
 
 
 
317
  msgid ""
318
  "Registered field groups <b>will not</b> appear in the list of editable field "
319
  "groups. This is useful for including fields in themes."
321
  "گروه های زمینه ثبت نام شده <b>نخواهد شد</b> به نظر می رسد در لیست گروه های "
322
  "زمینه قابل ویرایش است. این برای زمینه های راهنمایی در قالب ها مفید است."
323
 
324
+ #: core/controllers/export.php:270 core/controllers/export.php:311
325
  msgid ""
326
  "Please note that if you export and register field groups within the same WP, "
327
  "you will see duplicate fields on your edit screens. To fix this, please move "
333
  "تعمیر کردن این، لطفا حرکت دهید گروه زمینه اورجینال را به زباله دان یا کد را "
334
  "از پرونده functions.php بردارید."
335
 
336
+ #: core/controllers/export.php:272
337
  msgid "Select field group(s) from the list and click \"Create PHP\""
338
  msgstr ""
339
  "گروه های زمینه را از لیست انتخاب کنید و روی دکمه /*ایجاد پی اچ پی/* کلیک "
340
  "کنید."
341
 
342
+ #: core/controllers/export.php:273 core/controllers/export.php:302
343
  msgid "Copy the PHP code generated"
344
  msgstr "کپی کردن کد پی اچ پی ساخته شده"
345
 
346
+ #: core/controllers/export.php:274 core/controllers/export.php:303
347
  msgid "Paste into your functions.php file"
348
  msgstr "کپی کردن در فایل functions.php شما"
349
 
350
+ #: core/controllers/export.php:275 core/controllers/export.php:304
351
  msgid "To activate any Add-ons, edit and use the code in the first few lines."
352
  msgstr ""
353
  "ویرایش و استفاده از کد در تعداد کمی از اولین خطوط برای فعال سازی افزودنی ها."
354
 
355
+ #: core/controllers/export.php:295
356
+ msgid "Export Field Groups to PHP"
357
+ msgstr "صادر کردن گروه های زمینه به فرمت پی اچ پی"
358
+
359
+ #: core/controllers/export.php:300 core/fields/tab.php:65
360
+ msgid "Instructions"
361
+ msgstr "راهنمایی"
362
+
363
+ #: core/controllers/export.php:309
364
+ msgid "Notes"
365
+ msgstr "یادداشت ها"
366
+
367
+ #: core/controllers/export.php:316
368
+ msgid "Include in theme"
369
+ msgstr "شامل در قالب"
370
 
371
+ #: core/controllers/export.php:317
372
+ msgid ""
373
+ "The Advanced Custom Fields plugin can be included within a theme. To do so, "
374
+ "move the ACF plugin inside your theme and add the following code to your "
375
+ "functions.php file:"
376
+ msgstr ""
377
+ "افزونه زمینه های سفارشی پیشرفته می تواند در داخل یک قالب شامل شود. برای "
378
+ "انجام این کار، افزونه زمینه های سفارشی پیشرفته را در داخل قالبتان قرار دهید "
379
+ "و کد زیر را به فایل functions.php تان اضافه کنید :"
380
+
381
+ #: core/controllers/export.php:323
382
+ msgid ""
383
+ "To remove all visual interfaces from the ACF plugin, you can use a constant "
384
+ "to enable lite mode. Add the following code to your functions.php file "
385
+ "<b>before</b> the include_once code:"
386
+ msgstr ""
387
+ "برای حذف همه ی رابط های بصری از افزونه زمینه های سفارشی پیشرفته، شما می "
388
+ "توانید به طور ثابت برای فعال کردن حالت مطلب استفاده کنید. کد زیر را به فایل "
389
+ "functions.php خود قبل از کد include_once اضافه کنید:"
390
+
391
+ #: core/controllers/export.php:331
392
+ msgid "Back to export"
393
+ msgstr "بازگشت به صادرات"
394
 
395
+ #: core/controllers/export.php:352
396
  msgid ""
397
  "/**\n"
398
+ " * Install Add-ons\n"
399
+ " * \n"
400
+ " * The following code will include all 4 premium Add-Ons in your theme.\n"
401
+ " * Please do not attempt to include a file which does not exist. This will "
402
+ "produce an error.\n"
403
+ " * \n"
404
+ " * All fields must be included during the 'acf/register_fields' action.\n"
405
+ " * Other types of Add-ons (like the options page) can be included outside "
406
+ "of this action.\n"
407
+ " * \n"
408
+ " * The following code assumes you have a folder 'add-ons' inside your "
409
+ "theme.\n"
410
+ " *\n"
411
+ " * IMPORTANT\n"
412
+ " * Add-ons may be included in a premium theme as outlined in the terms and "
413
+ "conditions.\n"
414
+ " * However, they are NOT to be included in a premium / free plugin.\n"
415
+ " * For more information, please read http://www.advancedcustomfields.com/"
416
+ "terms-conditions/\n"
417
  " */"
418
  msgstr ""
419
+ "/**\n"
420
+ "* نصب افزودنی ها /n * \n"
421
+ "* کد زیر را که شامل همه 4 افزودنی پریمیوم خواهد بود را در قالب خود قرار "
422
+ "دهید. /n* لطفا سعی نکنید که یک فایل را که وجود ندارد قرار دهید. این خطا است. "
423
+ "* \n"
424
+ "* همه زمینه ها باید در طول عمل 'acf/register_fields' action شامل شده باشند.* "
425
+ "انواع دیگر افزودنی ها ( مانند برگه گزینه ها ) می توانند در خارج از این عمل "
426
+ "گنجتنده شوند./n * \n"
427
+ "* کد زیر تظاهر می کند که شما یک پوشه به نام ( افزودنی ها ) در کنار قالبتان "
428
+ "دارید./n *\n"
429
+ "* مهم\n"
430
+ "* * با این حال آن ها نه در افزونه ویژه شامل می شوند نه در افزونه رایگان./n* "
431
+ "برای کسب اطلاعات بیشتر، لطفا به این آدرس بروید : http://www."
432
+ "advancedcustomfields.com/terms-conditions/\n"
433
+ " */"
434
 
435
+ #: core/controllers/export.php:370 core/controllers/field_group.php:366
436
+ #: core/controllers/field_group.php:428 core/controllers/field_groups.php:148
437
+ msgid "Fields"
438
+ msgstr "زمینه ها"
439
+
440
+ #: core/controllers/export.php:384
441
  msgid ""
442
  "/**\n"
443
+ " * Register Field Groups\n"
444
+ " *\n"
445
+ " * The register_field_group function accepts 1 array which holds the "
446
  "relevant data to register a field group\n"
447
+ " * You may edit the array as you see fit. However, this may result in "
448
+ "errors if the array is not compatible with ACF\n"
 
449
  " */"
450
  msgstr ""
451
+ "/**\n"
452
+ "* ثبت نام گروه های زمینه /n * تابع ثبت نام گروه زمینه یک آرایه را که دیتاهای "
453
+ "مربوط را برای ثبت نام گروه زمینه نگه می دارد، می پذیرد. /n* شما ممکن است "
454
+ "آرایه را طوری که خودتان مناسب می بینید ویرایش کنید. هرچند، این ممکن است در "
455
+ "خطاها نتیجه بدهد اگر آرایه با زمینه های سفارشی پیشرفنه ( ACF ) سازگار "
456
+ "نباشد. /n */"
457
 
458
+ #: core/controllers/export.php:435
459
  msgid "No field groups were selected"
460
  msgstr "گروه زمینه انتخاب نشده است"
461
 
462
+ #: core/controllers/field_group.php:367
463
+ msgid "Location"
464
+ msgstr "مکان"
465
 
466
+ #: core/controllers/field_group.php:368
467
+ msgid "Options"
468
+ msgstr "تنظیمات"
469
 
470
+ #: core/controllers/field_group.php:430
471
+ msgid "Show Field Key:"
472
+ msgstr "نمایش کلید زمینه :"
473
 
474
+ #: core/controllers/field_group.php:431 core/fields/page_link.php:138
475
+ #: core/fields/page_link.php:159 core/fields/post_object.php:328
476
+ #: core/fields/post_object.php:349 core/fields/select.php:224
477
+ #: core/fields/select.php:243 core/fields/taxonomy.php:341
478
+ #: core/fields/user.php:285 core/fields/wysiwyg.php:228
479
+ #: core/views/meta_box_fields.php:207 core/views/meta_box_fields.php:230
480
+ msgid "No"
481
+ msgstr "خیر"
482
 
483
+ #: core/controllers/field_group.php:432 core/fields/page_link.php:137
484
+ #: core/fields/page_link.php:158 core/fields/post_object.php:327
485
+ #: core/fields/post_object.php:348 core/fields/select.php:223
486
+ #: core/fields/select.php:242 core/fields/taxonomy.php:340
487
+ #: core/fields/user.php:284 core/fields/wysiwyg.php:227
488
+ #: core/views/meta_box_fields.php:206 core/views/meta_box_fields.php:229
489
+ msgid "Yes"
490
+ msgstr "بله"
491
 
492
+ #: core/controllers/field_group.php:609
493
+ msgid "Front Page"
494
+ msgstr "سر برگه"
495
 
496
+ #: core/controllers/field_group.php:610
497
+ msgid "Posts Page"
498
+ msgstr "برگه نوشته ها"
499
 
500
+ #: core/controllers/field_group.php:611
501
+ msgid "Top Level Page (parent of 0)"
502
+ msgstr "برگه سطح بالا ( مادر از 0 )"
503
 
504
+ #: core/controllers/field_group.php:612
505
+ msgid "Parent Page (has children)"
506
+ msgstr "مادر برگه ( دارای فرزند )"
507
 
508
+ #: core/controllers/field_group.php:613
509
+ msgid "Child Page (has parent)"
510
+ msgstr "برگه ی کودک ( دارای مادر )"
511
 
512
+ #: core/controllers/field_group.php:621
513
+ msgid "Default Template"
514
+ msgstr "قالب پیش فرض"
515
 
516
+ #: core/controllers/field_group.php:713 core/controllers/field_group.php:734
517
+ #: core/controllers/field_group.php:741 core/fields/file.php:181
518
+ #: core/fields/image.php:166 core/fields/page_link.php:109
519
+ #: core/fields/post_object.php:274 core/fields/post_object.php:298
520
+ #: core/fields/relationship.php:553 core/fields/relationship.php:577
521
+ #: core/fields/user.php:229
522
+ msgid "All"
523
+ msgstr "همه"
524
 
525
+ #: core/controllers/field_groups.php:147
526
+ msgid "Title"
527
+ msgstr "عنوان"
 
528
 
529
+ #: core/controllers/field_groups.php:216 core/controllers/field_groups.php:257
530
+ msgid "Changelog"
531
+ msgstr "تغییرات"
 
532
 
533
+ #: core/controllers/field_groups.php:217
534
+ msgid "See what's new in"
535
+ msgstr "چه چیز جدیدی در"
 
536
 
537
+ #: core/controllers/field_groups.php:217
538
+ msgid "version"
539
+ msgstr "نسخه"
 
540
 
541
+ #: core/controllers/field_groups.php:219
542
+ msgid "Resources"
543
+ msgstr "منبع"
 
544
 
545
+ #: core/controllers/field_groups.php:221
546
+ msgid "Getting Started"
547
+ msgstr "شروع"
 
548
 
549
+ #: core/controllers/field_groups.php:222
550
+ msgid "Field Types"
551
+ msgstr "انواع زمینه"
 
552
 
553
+ #: core/controllers/field_groups.php:223
554
+ msgid "Functions"
555
+ msgstr "توابع"
556
 
557
+ #: core/controllers/field_groups.php:224
558
+ msgid "Actions"
559
+ msgstr "اَعمال"
 
 
 
560
 
561
+ #: core/controllers/field_groups.php:225 core/fields/relationship.php:596
562
+ msgid "Filters"
563
+ msgstr "فیلترها"
564
 
565
+ #: core/controllers/field_groups.php:226
566
+ msgid "'How to' guides"
567
+ msgstr "راهنماهای ' چگونه '"
568
 
569
+ #: core/controllers/field_groups.php:227
570
+ msgid "Tutorials"
571
+ msgstr "آموزش"
572
 
573
+ #: core/controllers/field_groups.php:232
574
+ msgid "Created by"
575
+ msgstr "ایجاد شده توسط"
 
 
 
 
576
 
577
+ #: core/controllers/field_groups.php:235
578
+ msgid "Vote"
579
+ msgstr "رای"
580
 
581
+ #: core/controllers/field_groups.php:236
582
+ msgid "Follow"
583
+ msgstr "دنبال کردن"
 
584
 
585
+ #: core/controllers/field_groups.php:248
586
+ msgid "Welcome to Advanced Custom Fields"
587
+ msgstr "به زمینه های سفارشی پیشرفته خوش آمدید."
588
 
589
+ #: core/controllers/field_groups.php:249
590
+ msgid "Thank you for updating to the latest version!"
591
+ msgstr "از شما برای بروزرسانی به آخرین نسخه سپاسگزاریم!"
592
 
593
+ #: core/controllers/field_groups.php:249
594
+ msgid "is more polished and enjoyable than ever before. We hope you like it."
 
 
595
  msgstr ""
596
+ "بهتر و لذت بخش تر از هر زمان دیگری است. ما امیدواریم که شما آن را دوست "
597
+ "بدارید."
598
 
599
+ #: core/controllers/field_groups.php:256
600
+ msgid "What’s New"
601
+ msgstr "چه چیزی جدید است"
602
 
603
+ #: core/controllers/field_groups.php:259
604
+ msgid "Download Add-ons"
605
+ msgstr "دانلود افزودنی"
606
 
607
+ #: core/controllers/field_groups.php:313
608
+ msgid "Activation codes have grown into plugins!"
609
+ msgstr "کد های فعال سازی در افزونه ها افزایش یافته اند!"
 
 
 
610
 
611
+ #: core/controllers/field_groups.php:314
612
+ msgid ""
613
+ "Add-ons are now activated by downloading and installing individual plugins. "
614
+ "Although these plugins will not be hosted on the wordpress.org repository, "
615
+ "each Add-on will continue to receive updates in the usual way."
616
+ msgstr ""
617
+ "افزودنی ها الآن با دانلود و نصب افزونه های فردی فعال سازی می شوند. اگر چه "
618
+ "این افزونه ها در مخزن wordpress.org میزبانی خواهد شد, هر افزودنی برای دریافت "
619
+ "به روز رسانی ها در راه معمول ادامه خواهد داد."
620
 
621
+ #: core/controllers/field_groups.php:320
622
+ msgid "All previous Add-ons have been successfully installed"
623
+ msgstr "تمامی افزودنی های قبلی با موفقیت نصب شده اند"
624
 
625
+ #: core/controllers/field_groups.php:324
626
+ msgid "This website uses premium Add-ons which need to be downloaded"
627
+ msgstr "این وبسایت از افزودنی های ویژه استفاده می کند که به دانلود نیاز دارند."
628
 
629
+ #: core/controllers/field_groups.php:324
630
+ msgid "Download your activated Add-ons"
631
+ msgstr "دانلود افزودنی های فعال سازی شده شما"
632
 
633
+ #: core/controllers/field_groups.php:329
634
+ msgid ""
635
+ "This website does not use premium Add-ons and will not be affected by this "
636
+ "change."
637
+ msgstr ""
638
+ "این وبسایت از افزودنی های ویژه استفاده نمی کند و با این تغییرات تحت تأثیر "
639
+ "قرار نخواهد گرفت."
640
 
641
+ #: core/controllers/field_groups.php:339
642
+ msgid "Easier Development"
643
+ msgstr "توسعه آسان"
644
 
645
+ #: core/controllers/field_groups.php:341
646
+ msgid "New Field Types"
647
+ msgstr "انواع زمینه های جدید"
648
 
649
+ #: core/controllers/field_groups.php:343
650
+ msgid "Taxonomy Field"
651
+ msgstr "زمینه طبقه بندی"
652
 
653
+ #: core/controllers/field_groups.php:344
654
+ msgid "User Field"
655
+ msgstr "زمینه کاربر"
656
 
657
+ #: core/controllers/field_groups.php:345
658
+ msgid "Email Field"
659
+ msgstr "زمینه ایمیل"
660
 
661
+ #: core/controllers/field_groups.php:346
662
+ msgid "Password Field"
663
+ msgstr "رمز زمینه"
664
 
665
+ #: core/controllers/field_groups.php:348
666
+ msgid "Custom Field Types"
667
+ msgstr "انواع زمینه سفارشی"
668
 
669
+ #: core/controllers/field_groups.php:349
670
+ msgid ""
671
+ "Creating your own field type has never been easier! Unfortunately, version 3 "
672
+ "field types are not compatible with version 4."
673
+ msgstr ""
674
+ "ایجاد نوع زمینه خود ساده تر شده است! متأسفانه انواع زمینه نسخه 3 با نسخه 4 "
675
+ "سازگار نیست."
676
 
677
+ #: core/controllers/field_groups.php:350
678
+ msgid "Migrating your field types is easy, please"
679
+ msgstr "مهاجرت انواع زمینه شما آسان است، لطفا"
680
 
681
+ #: core/controllers/field_groups.php:350
682
+ msgid "follow this tutorial"
683
+ msgstr "دنبال کردن این آموزش"
 
684
 
685
+ #: core/controllers/field_groups.php:350
686
+ msgid "to learn more."
687
+ msgstr "برای کسب اطلاعات بیشتر."
 
688
 
689
+ #: core/controllers/field_groups.php:352
690
+ msgid "Actions &amp; Filters"
691
+ msgstr "اَعمال و فیلترها"
692
 
693
+ #: core/controllers/field_groups.php:353
694
+ msgid ""
695
+ "All actions & filters have received a major facelift to make customizing ACF "
696
+ "even easier! Please"
697
+ msgstr ""
698
+ "همه ی اعمال و فیلتر ها مورد قبول یک جراح پلاستیک ( تعمیرکار ) بزرگ که سفارش "
699
+ "های افزونه زمینه های سفارشی پیشرفته را به آسانی درست می کند است! لطفا"
700
 
701
+ #: core/controllers/field_groups.php:353
702
+ msgid "read this guide"
703
+ msgstr "خواندن این راهنمایی"
704
 
705
+ #: core/controllers/field_groups.php:353
706
+ msgid "to find the updated naming convention."
707
+ msgstr "پیداکردن بروزرسانی نامگذاری قرارداد."
708
 
709
+ #: core/controllers/field_groups.php:355
710
+ msgid "Preview draft is now working!"
711
+ msgstr "پیش پیش نویس در حال حاضر در حال کار است!"
712
+
713
+ #: core/controllers/field_groups.php:356
714
+ msgid "This bug has been squashed along with many other little critters!"
715
+ msgstr "این اشکال همراه با بسیاری از اشکالات دیگر از بین رفته اند."
716
+
717
+ #: core/controllers/field_groups.php:356
718
+ msgid "See the full changelog"
719
+ msgstr "دیدن تغییرات کامل"
720
+
721
+ #: core/controllers/field_groups.php:360
722
+ msgid "Important"
723
+ msgstr "مهم"
724
+
725
+ #: core/controllers/field_groups.php:362
726
+ msgid "Database Changes"
727
+ msgstr "تغییرات پایگاه داده"
728
+
729
+ #: core/controllers/field_groups.php:363
730
+ msgid ""
731
+ "Absolutely <strong>no</strong> changes have been made to the database "
732
+ "between versions 3 and 4. This means you can roll back to version 3 without "
733
+ "any issues."
734
+ msgstr ""
735
+ "کاملا <strong>بدون</strong> تغییرات به پایگاه داده بین نسخه های 3 و 4 ساخته "
736
+ "شده اند. این به این معنی است که شما بدون هیچ گونه مسئله ای می توانید به نسخه "
737
+ "3 برگردید."
738
+
739
+ #: core/controllers/field_groups.php:365
740
+ msgid "Potential Issues"
741
+ msgstr "مسائل بالقوه"
742
+
743
+ #: core/controllers/field_groups.php:366
744
+ msgid ""
745
+ "Do to the sizable changes surounding Add-ons, field types and action/"
746
+ "filters, your website may not operate correctly. It is important that you "
747
+ "read the full"
748
+ msgstr ""
749
+ "با ملاحظه تغییرات افزودنی های اطراف، انواع زمینه و عمل/ فیلترها، سایت شما "
750
+ "ممکن است به درستی عمل نکند. این مهم است که شما راهنمای کامل را بخوانید."
751
+
752
+ #: core/controllers/field_groups.php:366
753
+ msgid "Migrating from v3 to v4"
754
+ msgstr "مهاجرت از نسخه 3 به نسخه 4"
755
+
756
+ #: core/controllers/field_groups.php:366
757
+ msgid "guide to view the full list of changes."
758
+ msgstr "راهنما برای دیدن لیست کاملی از تغییرات."
759
+
760
+ #: core/controllers/field_groups.php:369
761
+ msgid "Really Important!"
762
+ msgstr "واقعا مهم!"
763
+
764
+ #: core/controllers/field_groups.php:369
765
+ msgid ""
766
+ "If you updated the ACF plugin without prior knowledge of such changes, "
767
+ "please roll back to the latest"
768
+ msgstr ""
769
+ "اگر شما افزونه زمینه های سفارشی پیشرفته را بدون اگاهی از آخرین تغییرات "
770
+ "بروزرسانی کردید لطفا به آخرین نسخه برگردید."
771
+
772
+ #: core/controllers/field_groups.php:369
773
+ msgid "version 3"
774
+ msgstr "نسخه 3"
775
+
776
+ #: core/controllers/field_groups.php:369
777
+ msgid "of this plugin."
778
+ msgstr "از این افزونه."
779
+
780
+ #: core/controllers/field_groups.php:374
781
+ msgid "Thank You"
782
+ msgstr "از شما متشکرم"
783
+
784
+ #: core/controllers/field_groups.php:375
785
+ msgid ""
786
+ "A <strong>BIG</strong> thank you to everyone who has helped test the version "
787
+ "4 beta and for all the support I have received."
788
+ msgstr ""
789
+ "یک<strong>تشکر بزرگ</strong> از همه کسانی که برای آزمایش نسخه 4 بتا کمک "
790
+ "کردند و من به همه ی درخواست های پشتیبانی پاسخ خواهم داد."
791
 
792
+ #: core/controllers/field_groups.php:376
793
+ msgid "Without you all, this release would not have been possible!"
794
+ msgstr "بدون همه ی شما، انتشار این نسخه امکان پذیر نبود."
795
 
796
+ #: core/controllers/field_groups.php:380
797
+ msgid "Changelog for"
798
+ msgstr "تغییرات برای"
799
+
800
+ #: core/controllers/field_groups.php:396
801
+ msgid "Learn more"
802
+ msgstr "یادگیری بیشتر"
803
+
804
+ #: core/controllers/field_groups.php:402
805
+ msgid "Overview"
806
+ msgstr "بازنگری"
807
+
808
+ #: core/controllers/field_groups.php:404
809
+ msgid ""
810
+ "Previously, all Add-ons were unlocked via an activation code (purchased from "
811
+ "the ACF Add-ons store). New to v4, all Add-ons act as separate plugins which "
812
+ "need to be individually downloaded, installed and updated."
813
+ msgstr ""
814
+ "پیش از این، همه ی افزودنی ها با یک کد فعال سازی ( خریداری شده از طریق "
815
+ "فروشگاه افزودنی های افزونه زمینه های سفارشی پیشرفته ) باز شده اند. چیز جدید "
816
+ "در نسخه 4 این است که همه اعمال افزودنی ها جداگانه است و باید به طور جداگانه "
817
+ "دریافت، نصب و بروزرسانی شوند."
818
+
819
+ #: core/controllers/field_groups.php:406
820
+ msgid ""
821
+ "This page will assist you in downloading and installing each available Add-"
822
+ "on."
823
+ msgstr "این برگه به شما در دانلود و نصب هر افزودنی موجود کمک خواهد کرد."
824
+
825
+ #: core/controllers/field_groups.php:408
826
+ msgid "Available Add-ons"
827
+ msgstr "افزودنی های موجود"
828
+
829
+ #: core/controllers/field_groups.php:410
830
+ msgid "The following Add-ons have been detected as activated on this website."
831
+ msgstr "افزودنی های زیر شناسایی شده اند تا در این وبسایت فعال شوند."
832
+
833
+ #: core/controllers/field_groups.php:423
834
  msgid "Name"
835
  msgstr "نام"
836
 
837
+ #: core/controllers/field_groups.php:424
838
+ msgid "Activation Code"
839
+ msgstr "کد فعال سازی"
840
 
841
+ #: core/controllers/field_groups.php:456
842
+ msgid "Flexible Content"
843
+ msgstr "محتوا انعطاف پذیر"
844
 
845
+ #: core/controllers/field_groups.php:466
846
+ msgid "Installation"
847
+ msgstr "نصب"
848
 
849
+ #: core/controllers/field_groups.php:468
850
+ msgid "For each Add-on available, please perform the following:"
851
+ msgstr "برای هر افزودنی موجود لطفا کارهای زیر را انجام دهید :"
 
852
 
853
+ #: core/controllers/field_groups.php:470
854
+ msgid "Download the Add-on plugin (.zip file) to your desktop"
855
+ msgstr "دانلود پلاگین افزودنی ( فایل زیپ ) در دسکتاپ شما"
 
 
856
 
857
+ #: core/controllers/field_groups.php:471
858
+ msgid "Navigate to"
859
+ msgstr "حرکت به"
860
+
861
+ #: core/controllers/field_groups.php:471
862
+ msgid "Plugins > Add New > Upload"
863
+ msgstr "افزونه ها >> افزودن >> آپلود"
864
 
865
+ #: core/controllers/field_groups.php:472
866
+ msgid "Use the uploader to browse, select and install your Add-on (.zip file)"
867
+ msgstr ""
868
+ "استفاده از آپلود کننده برای مرور، انتخاب و نصب افزودنی شما ( فایل زیپ )"
869
+
870
+ #: core/controllers/field_groups.php:473
871
  msgid ""
872
+ "Once the plugin has been uploaded and installed, click the 'Activate Plugin' "
873
+ "link"
874
  msgstr ""
875
+ "هنگامی که یک افزونه آپلود و نصب شده است، بر روی لینک \"فعال کردن افزونه\" "
876
+ "کلیک کنید"
877
 
878
+ #: core/controllers/field_groups.php:474
879
+ msgid "The Add-on is now installed and activated!"
880
+ msgstr "افزودنی الآن نصب و فعال سازی شده است!"
 
 
881
 
882
+ #: core/controllers/field_groups.php:488
883
+ msgid "Awesome. Let's get to work"
884
+ msgstr "حیرت آور است نه؟ پس بیا شروع به کارکنیم."
 
885
 
886
+ #: core/controllers/input.php:510
887
+ msgid "Validation Failed. One or more fields below are required."
888
+ msgstr "اعتبار سنجی شکست خورد. یک یا چند زمینه های زیر مورد نیاز است."
 
889
 
890
+ #: core/controllers/upgrade.php:86
891
+ msgid "Upgrade"
892
+ msgstr "بروز رسانی"
 
893
 
894
+ #: core/controllers/upgrade.php:139
895
+ msgid "What's new"
896
+ msgstr "چه چیزی جدید است"
 
897
 
898
+ #: core/controllers/upgrade.php:150
899
+ msgid "credits"
900
+ msgstr "اعتبارات"
 
901
 
902
+ #: core/controllers/upgrade.php:684
903
+ msgid "Modifying field group options 'show on page'"
904
+ msgstr "گزینه های اصلاح گروه های زمینه ( نشان دادن در صفحه )"
 
905
 
906
+ #: core/controllers/upgrade.php:738
907
+ msgid "Modifying field option 'taxonomy'"
908
+ msgstr "گزینه اصلاح زمینه ( طبقه بندی )"
 
909
 
910
+ #: core/controllers/upgrade.php:835
911
+ msgid "Moving user custom fields from wp_options to wp_usermeta'"
912
+ msgstr "حرکت زمینه های سفارشی کاربر از wp_options به wp_usermeta '"
913
 
914
+ #: core/fields/_base.php:124 core/views/meta_box_location.php:74
915
+ msgid "Basic"
916
+ msgstr "پایه ( عمومی )"
 
917
 
918
+ #: core/fields/checkbox.php:19 core/fields/taxonomy.php:317
919
+ msgid "Checkbox"
920
+ msgstr "جعبه چک"
921
 
922
+ #: core/fields/checkbox.php:20 core/fields/radio.php:19
923
+ #: core/fields/select.php:19 core/fields/true_false.php:20
924
+ msgid "Choice"
925
+ msgstr "گزینه"
926
 
927
+ #: core/fields/checkbox.php:137 core/fields/radio.php:144
928
+ #: core/fields/select.php:177
929
+ msgid "Choices"
930
+ msgstr "گزینه ها"
931
 
932
+ #: core/fields/checkbox.php:138 core/fields/select.php:178
933
+ msgid "Enter each choice on a new line."
934
+ msgstr "هر انتخاب را در خط جدید وارد کنید."
935
 
936
+ #: core/fields/checkbox.php:139 core/fields/select.php:179
937
+ msgid "For more control, you may specify both a value and label like this:"
938
+ msgstr ""
939
+ "برای کنترل بیشتر، شما ممکن است هر دو یک مقدار و برچسب شبیه به این را مشخص "
940
+ "کنید:"
941
 
942
+ #: core/fields/checkbox.php:140 core/fields/radio.php:150
943
+ #: core/fields/select.php:180
944
+ msgid "red : Red"
945
+ msgstr "قرمز : قرمز"
946
 
947
+ #: core/fields/checkbox.php:140 core/fields/radio.php:151
948
+ #: core/fields/select.php:180
949
+ msgid "blue : Blue"
950
+ msgstr "آبی : آبی"
951
 
952
+ #: core/fields/checkbox.php:157 core/fields/color_picker.php:73
953
+ #: core/fields/email.php:69 core/fields/number.php:94
954
+ #: core/fields/radio.php:193 core/fields/select.php:197
955
+ #: core/fields/text.php:71 core/fields/textarea.php:71
956
+ #: core/fields/true_false.php:94 core/fields/wysiwyg.php:171
957
+ msgid "Default Value"
958
+ msgstr "مقدار پیش فرض"
959
 
960
+ #: core/fields/checkbox.php:158 core/fields/select.php:198
961
+ msgid "Enter each default value on a new line"
962
+ msgstr "هر مقدار پیش فرض را در خط جدید وارد کنید"
963
 
964
+ #: core/fields/checkbox.php:174 core/fields/message.php:20
965
+ #: core/fields/radio.php:209 core/fields/tab.php:20
966
+ msgid "Layout"
967
+ msgstr "چیدمان"
968
 
969
+ #: core/fields/checkbox.php:185 core/fields/radio.php:220
970
+ msgid "Vertical"
971
+ msgstr "عمودی"
972
 
973
+ #: core/fields/checkbox.php:186 core/fields/radio.php:221
974
+ msgid "Horizontal"
975
+ msgstr "افقی"
 
976
 
977
+ #: core/fields/color_picker.php:19
978
+ msgid "Color Picker"
979
+ msgstr "جمع کننده رنگ"
980
 
981
+ #: core/fields/color_picker.php:20 core/fields/date_picker/date_picker.php:23
982
+ msgid "jQuery"
983
+ msgstr "jQuery"
984
 
985
+ #: core/fields/color_picker.php:74
986
+ msgid "eg: #ffffff"
987
+ msgstr "به عنوان مثال : #ffffff"
988
 
989
+ #: core/fields/date_picker/date_picker.php:22
990
+ msgid "Date Picker"
991
+ msgstr "چیننده تاریخ"
992
 
993
+ #: core/fields/date_picker/date_picker.php:30
994
+ msgid "Done"
995
+ msgstr "انجام شده"
996
 
997
+ #: core/fields/date_picker/date_picker.php:31
998
+ msgid "Today"
999
+ msgstr "امروز"
1000
 
1001
+ #: core/fields/date_picker/date_picker.php:34
1002
+ msgid "Show a different month"
1003
+ msgstr "نمایش یک ماه مختلف"
1004
 
1005
+ #: core/fields/date_picker/date_picker.php:105
1006
+ msgid "Save format"
1007
+ msgstr "فرمت ذخیره"
1008
 
1009
+ #: core/fields/date_picker/date_picker.php:106
1010
+ msgid ""
1011
+ "This format will determin the value saved to the database and returned via "
1012
+ "the API"
1013
+ msgstr ""
1014
+ "این فرمت تعیین خواهد کرد مقدار ذخیره شده دیتابیس را و از طریق API بازگشت "
1015
+ "داده می شود."
1016
+
1017
+ #: core/fields/date_picker/date_picker.php:107
1018
+ msgid "\"yymmdd\" is the most versatile save format. Read more about"
1019
+ msgstr "( روز/ماه/سال ) بهترین فرمت ذخیره است. خواندن اطلاعات بیشتر"
1020
+
1021
+ #: core/fields/date_picker/date_picker.php:107
1022
+ #: core/fields/date_picker/date_picker.php:123
1023
+ msgid "jQuery date formats"
1024
+ msgstr "فرمت های تاریخ از JQuery"
1025
+
1026
+ #: core/fields/date_picker/date_picker.php:121
1027
+ msgid "Display format"
1028
+ msgstr "فرمت نمایش"
1029
+
1030
+ #: core/fields/date_picker/date_picker.php:122
1031
+ msgid "This format will be seen by the user when entering a value"
1032
+ msgstr "این قالب توسط کاربر هنگام ورود به یک ارزش ( مقدار ) دیده خواهد شد."
1033
+
1034
+ #: core/fields/date_picker/date_picker.php:123
1035
+ msgid ""
1036
+ "\"dd/mm/yy\" or \"mm/dd/yy\" are the most used display formats. Read more "
1037
+ "about"
1038
+ msgstr ""
1039
+ "( روز/ماه/سال ) یا ( ماه/روز/سال ) پر استفاده ترین فرمت های نمایش تاریخ "
1040
+ "هستند خواندن اطلاعات بیشتر"
1041
+
1042
+ #: core/fields/date_picker/date_picker.php:137
1043
+ msgid "Week Starts On"
1044
+ msgstr "هفته شروع می شود در"
1045
+
1046
+ #: core/fields/dummy.php:19
1047
+ msgid "Dummy"
1048
+ msgstr "ساختگی"
1049
+
1050
+ #: core/fields/email.php:19
1051
+ msgid "Email"
1052
+ msgstr "ایمیل"
1053
+
1054
+ #: core/fields/file.php:19
1055
+ msgid "File"
1056
+ msgstr "پرونده"
1057
+
1058
+ #: core/fields/file.php:20 core/fields/image.php:20 core/fields/wysiwyg.php:20
1059
+ msgid "Content"
1060
+ msgstr "محتوا"
1061
+
1062
+ #: core/fields/file.php:26 core/fields/file.php:711
1063
+ msgid "Select File"
1064
+ msgstr "انتخاب پرونده"
1065
+
1066
+ #: core/fields/file.php:27
1067
+ msgid "Edit File"
1068
+ msgstr "ویرایش پرونده"
1069
+
1070
+ #: core/fields/file.php:28 core/fields/image.php:29
1071
+ msgid "uploaded to this post"
1072
+ msgstr "آپلود شده در این پست"
1073
+
1074
+ #: core/fields/file.php:118
1075
+ msgid "No File Selected"
1076
+ msgstr "پرونده ای انتخاب نشده است"
1077
 
1078
+ #: core/fields/file.php:118
1079
+ msgid "Add File"
1080
+ msgstr "افزودن پرونده"
1081
+
1082
+ #: core/fields/file.php:148 core/fields/image.php:117
1083
+ #: core/fields/taxonomy.php:365
1084
+ msgid "Return Value"
1085
+ msgstr "مقدار برگشتی"
1086
+
1087
+ #: core/fields/file.php:159
1088
+ msgid "File Object"
1089
+ msgstr "موضوع پرونده"
1090
+
1091
+ #: core/fields/file.php:160
1092
+ msgid "File URL"
1093
+ msgstr "آدرس پرونده"
1094
+
1095
+ #: core/fields/file.php:161
1096
+ msgid "File ID"
1097
+ msgstr "شناسه پرونده"
1098
+
1099
+ #: core/fields/file.php:170 core/fields/image.php:155
1100
+ msgid "Library"
1101
+ msgstr "کتابخانه"
1102
+
1103
+ #: core/fields/file.php:182 core/fields/image.php:167
1104
+ msgid "Uploaded to post"
1105
+ msgstr "آپلود شده در پست"
1106
+
1107
+ #: core/fields/file.php:286
1108
+ msgid "File Updated."
1109
+ msgstr "پرونده بروزرسانی شد."
1110
+
1111
+ #: core/fields/file.php:379 core/fields/image.php:396
1112
+ msgid "Media attachment updated."
1113
+ msgstr "پیوست رسانه بروز شد."
1114
+
1115
+ #: core/fields/file.php:537
1116
+ msgid "No files selected"
1117
+ msgstr "پرونده ای انتخاب نشده است."
1118
+
1119
+ #: core/fields/file.php:678
1120
+ msgid "Add Selected Files"
1121
+ msgstr "افزودن پرونده های انتخاب شده"
1122
+
1123
+ #: core/fields/file.php:714
1124
+ msgid "Update File"
1125
+ msgstr "بروزرسانی پرونده"
1126
+
1127
+ #: core/fields/image.php:19
1128
  msgid "Image"
1129
  msgstr "تصویر"
1130
 
1131
+ #: core/fields/image.php:27 core/fields/image.php:718
1132
+ msgid "Select Image"
1133
+ msgstr "انتخاب تصویر"
1134
+
1135
+ #: core/fields/image.php:28
1136
+ msgid "Edit Image"
1137
+ msgstr "ویرایش تصویر"
1138
+
1139
+ #: core/fields/image.php:82
1140
+ msgid "Remove"
1141
+ msgstr "برداشتن"
1142
 
1143
+ #: core/fields/image.php:83 core/views/meta_box_fields.php:122
1144
+ msgid "Edit"
1145
+ msgstr "ویرایش"
1146
+
1147
+ #: core/fields/image.php:89
1148
  msgid "No image selected"
1149
  msgstr "تصویری انتخاب نشده است"
1150
 
1151
+ #: core/fields/image.php:89
1152
+ msgid "Add Image"
1153
+ msgstr "افزودن تصویر"
1154
+
1155
+ #: core/fields/image.php:127
1156
  msgid "Image Object"
1157
  msgstr "موضوع تصویر"
1158
 
1159
+ #: core/fields/image.php:128
1160
  msgid "Image URL"
1161
  msgstr "آدرس تصویر"
1162
 
1163
+ #: core/fields/image.php:129
1164
  msgid "Image ID"
1165
  msgstr "شناسه تصویر"
1166
 
1167
+ #: core/fields/image.php:137
1168
+ msgid "Preview Size"
1169
+ msgstr "اندازه قبلی"
1170
+
1171
+ #: core/fields/image.php:305
1172
+ msgid "Image Updated."
1173
+ msgstr "تصویر بروزرسانی شد."
1174
+
1175
+ #: core/fields/image.php:547
1176
+ msgid "No images selected"
1177
+ msgstr "تصویری انتخاب نشده است"
1178
+
1179
+ #: core/fields/image.php:689
1180
+ msgid "Add Selected Images"
1181
  msgstr "افزودن تصاویر انتخاب شده"
1182
 
1183
+ #: core/fields/image.php:721
1184
+ msgid "Update Image"
1185
+ msgstr "بروزرسانی تصویر"
1186
+
1187
+ #: core/fields/message.php:19 core/fields/message.php:70
1188
+ #: core/fields/true_false.php:79
1189
+ msgid "Message"
1190
+ msgstr "پیام"
1191
+
1192
+ #: core/fields/message.php:71
1193
+ msgid "Text &amp; HTML entered here will appear inline with the fields"
1194
+ msgstr ""
1195
+ "متن و اچ تی ام ال وارد شده در این جا در خط و با زمینه ها ظاهر خواهد شد."
1196
+
1197
+ #: core/fields/message.php:72
1198
+ msgid "Please note that all text will first be passed through the wp function "
1199
+ msgstr ""
1200
+ "لطفا توجه داشته باشید که تمام متن را برای اولین بار از طریق تابع وردپرس "
1201
+ "انتقال دهید."
1202
 
1203
+ #: core/fields/number.php:19
1204
  msgid "Number"
1205
  msgstr "شماره"
1206
 
1207
+ #: core/fields/number.php:110
1208
+ msgid "Min"
1209
+ msgstr "حداقل"
1210
+
1211
+ #: core/fields/number.php:111
1212
+ msgid "Specifies the minimum value allowed"
1213
+ msgstr "مشخص کردن کمترین مقدار مجاز"
1214
+
1215
+ #: core/fields/number.php:127
1216
+ msgid "Max"
1217
+ msgstr "حداکثر"
1218
+
1219
+ #: core/fields/number.php:128
1220
+ msgid "Specifies the maximim value allowed"
1221
+ msgstr "مشخص کردن بیشترین مقدار مجاز"
1222
+
1223
+ #: core/fields/number.php:144
1224
+ msgid "Step"
1225
+ msgstr "قدم زدن"
1226
+
1227
+ #: core/fields/number.php:145
1228
+ msgid "Specifies the legal number intervals"
1229
+ msgstr "مشخص کردن تعداد فواصل حقوقی"
1230
+
1231
+ #: core/fields/page_link.php:18
1232
  msgid "Page Link"
1233
+ msgstr "لینک برگه"
1234
+
1235
+ #: core/fields/page_link.php:19 core/fields/post_object.php:19
1236
+ #: core/fields/relationship.php:19 core/fields/taxonomy.php:19
1237
+ #: core/fields/user.php:19
1238
+ msgid "Relational"
1239
+ msgstr "وابستگی"
1240
 
1241
+ #: core/fields/page_link.php:103 core/fields/post_object.php:268
1242
+ #: core/fields/relationship.php:547 core/fields/relationship.php:626
1243
+ #: core/views/meta_box_location.php:75
1244
  msgid "Post Type"
1245
+ msgstr "نوع نوشته"
1246
 
1247
+ #: core/fields/page_link.php:127 core/fields/post_object.php:317
1248
+ #: core/fields/select.php:214 core/fields/taxonomy.php:331
1249
+ #: core/fields/user.php:275
1250
  msgid "Allow Null?"
1251
  msgstr "نول اجازه می دهد؟"
1252
 
1253
+ #: core/fields/page_link.php:148 core/fields/post_object.php:338
1254
+ #: core/fields/select.php:233
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1255
  msgid "Select multiple values?"
1256
  msgstr "آیا چندین مقدار انتخاب شود؟"
1257
 
1258
+ #: core/fields/password.php:19
1259
+ msgid "Password"
1260
+ msgstr "رمز"
1261
+
1262
+ #: core/fields/post_object.php:18
1263
  msgid "Post Object"
1264
+ msgstr "موضوع نوشته"
1265
 
1266
+ #: core/fields/post_object.php:292 core/fields/relationship.php:571
1267
  msgid "Filter from Taxonomy"
1268
  msgstr "فیلتر از طبقه بندی"
1269
 
1270
+ #: core/fields/radio.php:18
1271
  msgid "Radio Button"
1272
+ msgstr "دکمه رادیویی"
1273
 
1274
+ #: core/fields/radio.php:102 core/views/meta_box_location.php:90
1275
+ msgid "Other"
1276
+ msgstr "دیگر"
1277
 
1278
+ #: core/fields/radio.php:145
1279
+ msgid "Enter your choices one per line"
1280
+ msgstr "انتخاب های خود را در هر خط وارد کنید"
1281
+
1282
+ #: core/fields/radio.php:147
1283
+ msgid "Red"
1284
+ msgstr "قرمز"
1285
 
1286
+ #: core/fields/radio.php:148
1287
+ msgid "Blue"
1288
+ msgstr "آبی"
1289
+
1290
+ #: core/fields/radio.php:172
1291
+ msgid "Add 'other' choice to allow for custom values"
1292
+ msgstr "افزودن انتخاب دیگر اجازه می دهد برای ارزش های سفارشی"
1293
+
1294
+ #: core/fields/radio.php:184
1295
+ msgid "Save 'other' values to the field's choices"
1296
+ msgstr "ذخیره مقادیر دیگر برای انتخاب های زمینه"
1297
+
1298
+ #: core/fields/relationship.php:18
1299
  msgid "Relationship"
1300
  msgstr "ارتباط"
1301
 
1302
+ #: core/fields/relationship.php:28
1303
+ msgid "Maximum values reached ( {max} values )"
1304
+ msgstr "حداکثر مقدار ها رسیده است ( (حداکثر) ارزش ها )"
1305
+
1306
+ #: core/fields/relationship.php:401
1307
+ msgid "Search..."
1308
+ msgstr "جستجو . . ."
1309
+
1310
+ #: core/fields/relationship.php:414
1311
+ msgid "Filter by post type"
1312
+ msgstr "فیلتر شده توسط نوع پست"
1313
+
1314
+ #: core/fields/relationship.php:605
1315
  msgid "Search"
1316
+ msgstr "جستجو"
1317
+
1318
+ #: core/fields/relationship.php:606
1319
+ msgid "Post Type Select"
1320
+ msgstr "انتخاب نوع نوشته"
1321
+
1322
+ #: core/fields/relationship.php:614
1323
+ msgid "Elements"
1324
+ msgstr "عناصر"
1325
+
1326
+ #: core/fields/relationship.php:615
1327
+ msgid "Selected elements will be displayed in each result"
1328
+ msgstr "عناصر انتخاب شده در هر نتیجه نمایش داده خواهد شد"
1329
 
1330
+ #: core/fields/relationship.php:624 core/views/meta_box_options.php:103
1331
+ msgid "Featured Image"
1332
+ msgstr "ویژگی های تصویر"
1333
+
1334
+ #: core/fields/relationship.php:625
1335
+ msgid "Post Title"
1336
+ msgstr "عنوان نوشته"
1337
+
1338
+ #: core/fields/relationship.php:637
1339
  msgid "Maximum posts"
1340
  msgstr "حداکثر ارسال ها"
1341
 
1342
+ #: core/fields/select.php:18 core/fields/taxonomy.php:322
1343
+ #: core/fields/user.php:266
1344
+ msgid "Select"
1345
+ msgstr "انتخاب"
1346
 
1347
+ #: core/fields/tab.php:19
1348
+ msgid "Tab"
1349
+ msgstr "بند ( باریکه، برگه )"
1350
 
1351
+ #: core/fields/tab.php:68
1352
+ msgid ""
1353
+ "All fields proceeding this \"tab field\" (or until another \"tab field\" is "
1354
+ "defined) will appear grouped on the edit screen."
1355
+ msgstr ""
1356
+ "همه ی زمینه های اقدام این \"tab field\" ( یا زمانی دیگر \"tab field\" تعریف "
1357
+ "شده است. ) در صفحه ویرایش گروه بندی ظاهر خواهد شد."
1358
 
1359
+ #: core/fields/tab.php:69
1360
+ msgid "You can use multiple tabs to break up your fields into sections."
1361
+ msgstr ""
1362
+ "شما می توانید از چندین تب برای تفکیک زمینه های خود به بخش استفاده کنید."
1363
 
1364
+ #: core/fields/taxonomy.php:18 core/fields/taxonomy.php:276
1365
+ msgid "Taxonomy"
1366
+ msgstr "طبقه بندی"
1367
 
1368
+ #: core/fields/taxonomy.php:211 core/fields/taxonomy.php:220
1369
+ #: core/fields/text.php:95 core/fields/textarea.php:95
1370
+ msgid "None"
1371
+ msgstr "هیچ کدام"
1372
 
1373
+ #: core/fields/taxonomy.php:306 core/fields/user.php:251
1374
+ #: core/views/meta_box_fields.php:91 core/views/meta_box_fields.php:172
1375
+ msgid "Field Type"
1376
+ msgstr "نوع زمینه"
1377
 
1378
+ #: core/fields/taxonomy.php:316 core/fields/user.php:260
1379
+ msgid "Multiple Values"
1380
+ msgstr "چندین ارزش"
1381
 
1382
+ #: core/fields/taxonomy.php:318 core/fields/user.php:262
1383
+ msgid "Multi Select"
1384
+ msgstr "چند انتخاب"
1385
 
1386
+ #: core/fields/taxonomy.php:320 core/fields/user.php:264
1387
+ msgid "Single Value"
1388
+ msgstr "تکارزش"
1389
+
1390
+ #: core/fields/taxonomy.php:321
1391
+ msgid "Radio Buttons"
1392
+ msgstr "دکمه های رادیویی"
1393
+
1394
+ #: core/fields/taxonomy.php:350
1395
+ msgid "Load & Save Terms to Post"
1396
+ msgstr "بارگذاری و ذخیره شرایط پست"
1397
+
1398
+ #: core/fields/taxonomy.php:358
1399
+ msgid ""
1400
+ "Load value based on the post's terms and update the post's terms on save"
1401
+ msgstr "بارگذاری ارزش براساس شرایط پست و بروزرسانی شرایط پست در ذخیره کردن"
1402
 
1403
+ #: core/fields/taxonomy.php:375
1404
+ msgid "Term Object"
1405
+ msgstr "موضوع دوره"
1406
+
1407
+ #: core/fields/taxonomy.php:376
1408
+ msgid "Term ID"
1409
+ msgstr "شناسه دوره"
1410
+
1411
+ #: core/fields/text.php:19
1412
  msgid "Text"
1413
  msgstr "متن"
1414
 
1415
+ #: core/fields/text.php:85 core/fields/textarea.php:85
1416
  msgid "Formatting"
1417
+ msgstr "قال بندی"
1418
 
1419
+ #: core/fields/text.php:86
1420
  msgid "Define how to render html tags"
1421
  msgstr "تعریف چگونگی ترجمه به تگ های اچ تی ام ال"
1422
 
1423
+ #: core/fields/text.php:96 core/fields/textarea.php:97
 
 
 
 
1424
  msgid "HTML"
1425
  msgstr "اچ تی ام ال"
1426
 
1427
+ #: core/fields/textarea.php:19
1428
  msgid "Text Area"
1429
  msgstr "محل متن"
1430
 
1431
+ #: core/fields/textarea.php:86
1432
  msgid "Define how to render html tags / new lines"
1433
  msgstr "تعریف چگونگی ترجمه به تگ های اچ تی ام ال / خطوط جدید"
1434
 
1435
+ #: core/fields/textarea.php:96
1436
  msgid "auto &lt;br /&gt;"
1437
  msgstr "<br>خودکار<br/>"
1438
 
1439
+ #: core/fields/true_false.php:19
1440
  msgid "True / False"
1441
  msgstr "درست / نادرست"
1442
 
1443
+ #: core/fields/true_false.php:80
 
 
 
 
1444
  msgid "eg. Show extra content"
1445
  msgstr "به عنوان مثال : نمایش محتوای اضافی"
1446
 
1447
+ #: core/fields/user.php:18
1448
+ msgid "User"
1449
+ msgstr "کاربر"
1450
+
1451
+ #: core/fields/user.php:224
1452
+ msgid "Filter by role"
1453
+ msgstr "فیلتر توسط نقش"
1454
+
1455
+ #: core/fields/wysiwyg.php:19
1456
  msgid "Wysiwyg Editor"
1457
  msgstr "ویرایشگر بصری"
1458
 
1459
+ #: core/fields/wysiwyg.php:185
1460
  msgid "Toolbar"
1461
  msgstr "نوار ابزار"
1462
 
1463
+ #: core/fields/wysiwyg.php:217
 
 
 
 
1464
  msgid "Show Media Upload Buttons?"
1465
  msgstr "آیا دکمه های آپلود رسانه ای نمایش داده شوند؟"
1466
 
1467
+ #: core/views/meta_box_fields.php:24
1468
+ msgid "New Field"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1469
  msgstr "زمینه جدید"
1470
 
1471
+ #: core/views/meta_box_fields.php:58
1472
+ msgid "Field type does not exist"
1473
+ msgstr "نوع زمینه وجود ندارد"
1474
+
1475
+ #: core/views/meta_box_fields.php:63
1476
  msgid "Move to trash. Are you sure?"
1477
  msgstr "انتقال به زباله دان، مطمئنید؟"
1478
 
1479
  #: core/views/meta_box_fields.php:64
1480
+ msgid "checked"
1481
+ msgstr "بررسی"
1482
+
1483
+ #: core/views/meta_box_fields.php:65
1484
+ msgid "No toggle fields available"
1485
+ msgstr "بدون زمینه های آمار بازدید در دسترس"
1486
+
1487
+ #: core/views/meta_box_fields.php:66
1488
+ msgid "Field group title is required"
1489
+ msgstr "عنوان گروه زمینه مورد نیاز است"
1490
+
1491
+ #: core/views/meta_box_fields.php:67
1492
+ msgid "copy"
1493
+ msgstr "کپی"
1494
+
1495
+ #: core/views/meta_box_fields.php:68 core/views/meta_box_location.php:62
1496
+ #: core/views/meta_box_location.php:158
1497
+ msgid "or"
1498
+ msgstr "یا"
1499
+
1500
+ #: core/views/meta_box_fields.php:88
1501
+ msgid "Field Order"
1502
+ msgstr "رتبه زمینه"
1503
+
1504
+ #: core/views/meta_box_fields.php:89 core/views/meta_box_fields.php:141
1505
+ msgid "Field Label"
1506
+ msgstr "برچسب زمینه"
1507
+
1508
+ #: core/views/meta_box_fields.php:90 core/views/meta_box_fields.php:157
1509
+ msgid "Field Name"
1510
+ msgstr "نام زمینه"
1511
+
1512
+ #: core/views/meta_box_fields.php:92
1513
  msgid "Field Key"
1514
  msgstr "کلید زمینه"
1515
 
1516
+ #: core/views/meta_box_fields.php:104
1517
  msgid ""
1518
  "No fields. Click the <strong>+ Add Field</strong> button to create your "
1519
  "first field."
1521
  "زمینه وجود ندارد. روی دکمه ( اضافه کردن زمینه + ) کلیک کنید تا اولین زمینه "
1522
  "شما ساخته شود."
1523
 
1524
+ #: core/views/meta_box_fields.php:119 core/views/meta_box_fields.php:122
1525
+ msgid "Edit this Field"
1526
+ msgstr "ویرایش این زمینه"
1527
+
1528
+ #: core/views/meta_box_fields.php:123
1529
+ msgid "Read documentation for this field"
1530
+ msgstr "خواندن مستندات برای این زمینه"
1531
+
1532
+ #: core/views/meta_box_fields.php:123
1533
+ msgid "Docs"
1534
+ msgstr "اسناد"
1535
+
1536
+ #: core/views/meta_box_fields.php:124
1537
+ msgid "Duplicate this Field"
1538
+ msgstr "تکثیر این زمینه"
1539
+
1540
+ #: core/views/meta_box_fields.php:124
1541
+ msgid "Duplicate"
1542
+ msgstr "تکثیر"
1543
+
1544
+ #: core/views/meta_box_fields.php:125
1545
+ msgid "Delete this Field"
1546
+ msgstr "حذف این زمینه"
1547
+
1548
+ #: core/views/meta_box_fields.php:125
1549
+ msgid "Delete"
1550
+ msgstr "حذف کردن"
1551
+
1552
+ #: core/views/meta_box_fields.php:142
1553
+ msgid "This is the name which will appear on the EDIT page"
1554
+ msgstr "This is the name which will appear on the EDIT page"
1555
+
1556
+ #: core/views/meta_box_fields.php:158
1557
+ msgid "Single word, no spaces. Underscores and dashes allowed"
1558
+ msgstr "تک کلمه، بدون فاصله و خط تیره مجاز است."
1559
+
1560
+ #: core/views/meta_box_fields.php:185
1561
+ msgid "Field Instructions"
1562
+ msgstr "راهنمای زمینه"
1563
+
1564
+ #: core/views/meta_box_fields.php:186
1565
  msgid "Instructions for authors. Shown when submitting data"
1566
  msgstr "راهنمای نویسندگان. هنگام ارسال داده ها نشان داده شده است."
1567
 
1568
+ #: core/views/meta_box_fields.php:198
1569
  msgid "Required?"
1570
  msgstr "آیا لازم است؟"
1571
 
1572
+ #: core/views/meta_box_fields.php:221
1573
+ msgid "Conditional Logic"
1574
+ msgstr "منطق نامعلوم"
1575
+
1576
+ #: core/views/meta_box_fields.php:272 core/views/meta_box_location.php:116
1577
+ msgid "is equal to"
1578
+ msgstr "برابر است با"
1579
+
1580
+ #: core/views/meta_box_fields.php:273 core/views/meta_box_location.php:117
1581
+ msgid "is not equal to"
1582
+ msgstr "برابر نیست با"
1583
+
1584
+ #: core/views/meta_box_fields.php:291
1585
+ msgid "Show this field when"
1586
+ msgstr "نمایش این زمینه موقعی که"
1587
+
1588
+ #: core/views/meta_box_fields.php:297
1589
+ msgid "all"
1590
+ msgstr "همه"
1591
+
1592
+ #: core/views/meta_box_fields.php:298
1593
+ msgid "any"
1594
+ msgstr "هیچ"
1595
+
1596
+ #: core/views/meta_box_fields.php:301
1597
+ msgid "these rules are met"
1598
+ msgstr "این قانون ها گذشته هستند."
1599
+
1600
+ #: core/views/meta_box_fields.php:315
1601
+ msgid "Close Field"
1602
+ msgstr "بستن زمینه"
1603
+
1604
+ #: core/views/meta_box_fields.php:328
1605
+ msgid "Drag and drop to reorder"
1606
+ msgstr "بالا و پایین کشاندن برای دوباره مرتب کردن"
1607
+
1608
+ #: core/views/meta_box_fields.php:329
1609
  msgid "+ Add Field"
1610
  msgstr "اضفه کردن زمینه +"
1611
 
1612
+ #: core/views/meta_box_location.php:48
1613
  msgid "Rules"
1614
  msgstr "قوانین"
1615
 
1616
+ #: core/views/meta_box_location.php:49
1617
  msgid ""
1618
  "Create a set of rules to determine which edit screens will use these "
1619
  "advanced custom fields"
1621
  "ایجاد یک مجموعه ای از قوانین برای تعیین این که از زمینه های سفارشی پیشرفته "
1622
  "استفاده خواهد شد."
1623
 
1624
+ #: core/views/meta_box_location.php:60
1625
+ msgid "Show this field group if"
1626
+ msgstr "نمایش این گروه زمینه اگر"
1627
+
1628
+ #: core/views/meta_box_location.php:76
1629
  msgid "Logged in User Type"
1630
  msgstr "خارج شده به عنوان کاربر"
1631
 
1632
+ #: core/views/meta_box_location.php:78 core/views/meta_box_location.php:79
 
 
 
 
1633
  msgid "Page"
1634
+ msgstr "برگه"
1635
 
1636
+ #: core/views/meta_box_location.php:80
1637
  msgid "Page Type"
1638
+ msgstr "نوع برگه"
1639
 
1640
+ #: core/views/meta_box_location.php:81
1641
  msgid "Page Parent"
1642
+ msgstr "برگه مادر"
1643
 
1644
+ #: core/views/meta_box_location.php:82
1645
  msgid "Page Template"
1646
+ msgstr "برگه الگو"
 
 
 
 
1647
 
1648
+ #: core/views/meta_box_location.php:84 core/views/meta_box_location.php:85
1649
  msgid "Post"
1650
+ msgstr "نوشته"
1651
 
1652
+ #: core/views/meta_box_location.php:86
1653
  msgid "Post Category"
1654
+ msgstr "دسته بندی نوشته"
1655
 
1656
+ #: core/views/meta_box_location.php:87
1657
  msgid "Post Format"
1658
+ msgstr "نوع نوشته"
1659
 
1660
+ #: core/views/meta_box_location.php:88
1661
  msgid "Post Taxonomy"
1662
+ msgstr "طبقه بندی نوشته"
 
 
 
 
1663
 
1664
+ #: core/views/meta_box_location.php:91
1665
+ msgid "Taxonomy Term (Add / Edit)"
1666
+ msgstr "طبقه بندی دوره ( افزودن / ویرایش )"
1667
 
1668
+ #: core/views/meta_box_location.php:92
1669
  msgid "User (Add / Edit)"
1670
  msgstr "کاربر (افزودن / ویرایش)"
1671
 
1672
+ #: core/views/meta_box_location.php:93
1673
+ msgid "Media Attachment (Edit)"
1674
+ msgstr "پیوست رسانه ( ویرایش )"
1675
 
1676
+ #: core/views/meta_box_location.php:145
1677
+ msgid "and"
1678
+ msgstr "و"
1679
 
1680
+ #: core/views/meta_box_location.php:160
1681
+ msgid "Add rule group"
1682
+ msgstr "افزودن گروه قانون"
 
 
 
 
1683
 
1684
+ #: core/views/meta_box_options.php:25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1685
  msgid "Order No."
1686
  msgstr "شماره سفارش"
1687
 
1688
+ #: core/views/meta_box_options.php:26
1689
  msgid "Field groups are created in order <br />from lowest to highest"
1690
  msgstr ""
1691
  "گروه های فیلد در حال ایجاد دستور <br/> از پایین ترین تا بالاترین نقطه هستند."
1692
 
1693
+ #: core/views/meta_box_options.php:42
1694
  msgid "Position"
1695
  msgstr "موقعیت"
1696
 
1697
+ #: core/views/meta_box_options.php:52
1698
+ msgid "Normal"
1699
+ msgstr "عادی"
1700
+
1701
+ #: core/views/meta_box_options.php:53
1702
+ msgid "Side"
1703
+ msgstr "کنار"
1704
+
1705
+ #: core/views/meta_box_options.php:62
1706
  msgid "Style"
1707
  msgstr "شیوه"
1708
 
1709
+ #: core/views/meta_box_options.php:72
1710
+ msgid "No Metabox"
1711
+ msgstr "بدون متاباکس"
1712
+
1713
+ #: core/views/meta_box_options.php:73
1714
+ msgid "Standard Metabox"
1715
+ msgstr "متاباکس استاندارد"
1716
+
1717
+ #: core/views/meta_box_options.php:82
1718
  msgid "Hide on screen"
1719
  msgstr "مخفی نگه داشتن روی صفحه"
1720
 
1721
+ #: core/views/meta_box_options.php:83
1722
  msgid "<b>Select</b> items to <b>hide</b> them from the edit screen"
1723
  msgstr "<b>انتخاب کردن<b/> آیتم ها به <b>مخفی کردن<b/> آن ها از ویرایش صفحه"
1724
 
1725
+ #: core/views/meta_box_options.php:84
1726
  msgid ""
1727
  "If multiple field groups appear on an edit screen, the first field group's "
1728
  "options will be used. (the one with the lowest order number)"
1730
  "اگر چندین گروه زمینه در یک صفحه ویرایش ظاهر شوند، تنظیمات اولین گروه زمینه "
1731
  "استفاده خواهد شد ( یکی با کمترین تعداد سفارش )"
1732
 
1733
+ #: core/views/meta_box_options.php:94
1734
  msgid "Content Editor"
1735
  msgstr "ویرایشگر محتوا"
1736
 
1737
+ #: core/views/meta_box_options.php:95
1738
  msgid "Excerpt"
1739
  msgstr "انتخاب کردن و جداکردن"
1740
 
1741
+ #: core/views/meta_box_options.php:97
1742
  msgid "Discussion"
1743
  msgstr "گفتگو"
1744
 
1745
+ #: core/views/meta_box_options.php:98
1746
  msgid "Comments"
1747
+ msgstr "دیدگاه ها"
1748
 
1749
+ #: core/views/meta_box_options.php:99
1750
  msgid "Revisions"
1751
  msgstr "تجدید نظر"
1752
 
1753
+ #: core/views/meta_box_options.php:100
1754
  msgid "Slug"
1755
+ msgstr "آهسته حرکت کردن ( مثل حلزون حرکت کردن )"
1756
 
1757
+ #: core/views/meta_box_options.php:101
1758
  msgid "Author"
1759
  msgstr "نویسنده"
1760
 
1761
+ #: core/views/meta_box_options.php:102
1762
  msgid "Format"
1763
  msgstr "قالب"
1764
 
1765
+ #: core/views/meta_box_options.php:104
1766
+ msgid "Categories"
1767
+ msgstr "دسته ها"
 
 
 
1768
 
1769
+ #: core/views/meta_box_options.php:105
1770
+ msgid "Tags"
1771
+ msgstr "تگ ها"
1772
 
1773
+ #: core/views/meta_box_options.php:106
1774
+ msgid "Send Trackbacks"
1775
+ msgstr "ارسال بازتاب ها"
lang/acf.pot CHANGED
@@ -4,7 +4,7 @@ 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: 2013-07-09 03:49:07+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,100 +12,100 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: acf.php:325
16
  msgid "Field&nbsp;Groups"
17
  msgstr ""
18
 
19
- #: acf.php:326 core/controllers/field_groups.php:214
20
  msgid "Advanced Custom Fields"
21
  msgstr ""
22
 
23
- #: acf.php:327
24
  msgid "Add New"
25
  msgstr ""
26
 
27
- #: acf.php:328
28
  msgid "Add New Field Group"
29
  msgstr ""
30
 
31
- #: acf.php:329
32
  msgid "Edit Field Group"
33
  msgstr ""
34
 
35
- #: acf.php:330
36
  msgid "New Field Group"
37
  msgstr ""
38
 
39
- #: acf.php:331
40
  msgid "View Field Group"
41
  msgstr ""
42
 
43
- #: acf.php:332
44
  msgid "Search Field Groups"
45
  msgstr ""
46
 
47
- #: acf.php:333
48
  msgid "No Field Groups found"
49
  msgstr ""
50
 
51
- #: acf.php:334
52
  msgid "No Field Groups found in Trash"
53
  msgstr ""
54
 
55
- #: acf.php:447 core/views/meta_box_options.php:96
56
  msgid "Custom Fields"
57
  msgstr ""
58
 
59
- #: acf.php:465 acf.php:468
60
  msgid "Field group updated."
61
  msgstr ""
62
 
63
- #: acf.php:466
64
  msgid "Custom field updated."
65
  msgstr ""
66
 
67
- #: acf.php:467
68
  msgid "Custom field deleted."
69
  msgstr ""
70
 
71
  #. translators: %s: date and time of the revision
72
- #: acf.php:470
73
  msgid "Field group restored to revision from %s"
74
  msgstr ""
75
 
76
- #: acf.php:471
77
  msgid "Field group published."
78
  msgstr ""
79
 
80
- #: acf.php:472
81
  msgid "Field group saved."
82
  msgstr ""
83
 
84
- #: acf.php:473
85
  msgid "Field group submitted."
86
  msgstr ""
87
 
88
- #: acf.php:474
89
  msgid "Field group scheduled for."
90
  msgstr ""
91
 
92
- #: acf.php:475
93
  msgid "Field group draft updated."
94
  msgstr ""
95
 
96
- #: acf.php:610
97
  msgid "Thumbnail"
98
  msgstr ""
99
 
100
- #: acf.php:611
101
  msgid "Medium"
102
  msgstr ""
103
 
104
- #: acf.php:612
105
  msgid "Large"
106
  msgstr ""
107
 
108
- #: acf.php:613
109
  msgid "Full"
110
  msgstr ""
111
 
@@ -117,15 +117,16 @@ msgstr ""
117
  msgid "No ACF groups selected"
118
  msgstr ""
119
 
120
- #: core/api.php:1093
121
  msgid "Update"
122
  msgstr ""
123
 
124
- #: core/api.php:1094
125
  msgid "Post updated"
126
  msgstr ""
127
 
128
- #: core/controllers/addons.php:42 core/controllers/field_groups.php:311
 
129
  msgid "Add-ons"
130
  msgstr ""
131
 
@@ -145,8 +146,7 @@ msgstr ""
145
  msgid "Create image galleries in a simple and intuitive interface!"
146
  msgstr ""
147
 
148
- #: core/controllers/addons.php:144 core/controllers/export.php:380
149
- #: core/controllers/field_groups.php:448
150
  msgid "Options Page"
151
  msgstr ""
152
 
@@ -365,28 +365,20 @@ msgid ""
365
  " * Please do not attempt to include a file which does not exist. This will "
366
  "produce an error.\n"
367
  " * \n"
368
- " * All fields must be included during the 'acf/register_fields' action.\n"
369
- " * Other types of Add-ons (like the options page) can be included outside "
370
- "of this action.\n"
371
- " * \n"
372
  " * The following code assumes you have a folder 'add-ons' inside your "
373
  "theme.\n"
374
  " *\n"
375
  " * IMPORTANT\n"
376
- " * Add-ons may be included in a premium theme as outlined in the terms and "
377
- "conditions.\n"
378
- " * However, they are NOT to be included in a premium / free plugin.\n"
379
- " * For more information, please read http://www.advancedcustomfields.com/"
380
- "terms-conditions/\n"
 
381
  " */"
382
  msgstr ""
383
 
384
- #: core/controllers/export.php:370 core/controllers/field_group.php:366
385
- #: core/controllers/field_group.php:428 core/controllers/field_groups.php:148
386
- msgid "Fields"
387
- msgstr ""
388
-
389
- #: core/controllers/export.php:384
390
  msgid ""
391
  "/**\n"
392
  " * Register Field Groups\n"
@@ -398,69 +390,106 @@ msgid ""
398
  " */"
399
  msgstr ""
400
 
401
- #: core/controllers/export.php:435
402
  msgid "No field groups were selected"
403
  msgstr ""
404
 
405
- #: core/controllers/field_group.php:367
 
 
 
 
 
406
  msgid "Location"
407
  msgstr ""
408
 
409
- #: core/controllers/field_group.php:368
410
  msgid "Options"
411
  msgstr ""
412
 
413
- #: core/controllers/field_group.php:430
414
  msgid "Show Field Key:"
415
  msgstr ""
416
 
417
- #: core/controllers/field_group.php:431 core/fields/page_link.php:138
418
  #: core/fields/page_link.php:159 core/fields/post_object.php:328
419
  #: core/fields/post_object.php:349 core/fields/select.php:224
420
  #: core/fields/select.php:243 core/fields/taxonomy.php:341
421
- #: core/fields/user.php:285 core/fields/wysiwyg.php:228
422
- #: core/views/meta_box_fields.php:207 core/views/meta_box_fields.php:230
423
  msgid "No"
424
  msgstr ""
425
 
426
- #: core/controllers/field_group.php:432 core/fields/page_link.php:137
427
  #: core/fields/page_link.php:158 core/fields/post_object.php:327
428
  #: core/fields/post_object.php:348 core/fields/select.php:223
429
  #: core/fields/select.php:242 core/fields/taxonomy.php:340
430
- #: core/fields/user.php:284 core/fields/wysiwyg.php:227
431
- #: core/views/meta_box_fields.php:206 core/views/meta_box_fields.php:229
432
  msgid "Yes"
433
  msgstr ""
434
 
435
- #: core/controllers/field_group.php:609
436
  msgid "Front Page"
437
  msgstr ""
438
 
439
- #: core/controllers/field_group.php:610
440
  msgid "Posts Page"
441
  msgstr ""
442
 
443
- #: core/controllers/field_group.php:611
444
  msgid "Top Level Page (parent of 0)"
445
  msgstr ""
446
 
447
- #: core/controllers/field_group.php:612
448
  msgid "Parent Page (has children)"
449
  msgstr ""
450
 
451
- #: core/controllers/field_group.php:613
452
  msgid "Child Page (has parent)"
453
  msgstr ""
454
 
455
- #: core/controllers/field_group.php:621
456
  msgid "Default Template"
457
  msgstr ""
458
 
459
- #: core/controllers/field_group.php:713 core/controllers/field_group.php:734
460
- #: core/controllers/field_group.php:741 core/fields/file.php:181
461
- #: core/fields/image.php:166 core/fields/page_link.php:109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  #: core/fields/post_object.php:274 core/fields/post_object.php:298
463
- #: core/fields/relationship.php:553 core/fields/relationship.php:577
464
  #: core/fields/user.php:229
465
  msgid "All"
466
  msgstr ""
@@ -501,7 +530,7 @@ msgstr ""
501
  msgid "Actions"
502
  msgstr ""
503
 
504
- #: core/controllers/field_groups.php:225 core/fields/relationship.php:596
505
  msgid "Filters"
506
  msgstr ""
507
 
@@ -799,7 +828,15 @@ msgstr ""
799
  msgid "Awesome. Let's get to work"
800
  msgstr ""
801
 
802
- #: core/controllers/input.php:510
 
 
 
 
 
 
 
 
803
  msgid "Validation Failed. One or more fields below are required."
804
  msgstr ""
805
 
@@ -863,10 +900,10 @@ msgstr ""
863
  msgid "blue : Blue"
864
  msgstr ""
865
 
866
- #: core/fields/checkbox.php:157 core/fields/color_picker.php:73
867
- #: core/fields/email.php:69 core/fields/number.php:94
868
  #: core/fields/radio.php:193 core/fields/select.php:197
869
- #: core/fields/text.php:71 core/fields/textarea.php:71
870
  #: core/fields/true_false.php:94 core/fields/wysiwyg.php:171
871
  msgid "Default Value"
872
  msgstr ""
@@ -896,10 +933,6 @@ msgstr ""
896
  msgid "jQuery"
897
  msgstr ""
898
 
899
- #: core/fields/color_picker.php:74
900
- msgid "eg: #ffffff"
901
- msgstr ""
902
-
903
  #: core/fields/date_picker/date_picker.php:22
904
  msgid "Date Picker"
905
  msgstr ""
@@ -961,6 +994,44 @@ msgstr ""
961
  msgid "Email"
962
  msgstr ""
963
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
964
  #: core/fields/file.php:19
965
  msgid "File"
966
  msgstr ""
@@ -969,7 +1040,7 @@ msgstr ""
969
  msgid "Content"
970
  msgstr ""
971
 
972
- #: core/fields/file.php:26 core/fields/file.php:711
973
  msgid "Select File"
974
  msgstr ""
975
 
@@ -977,68 +1048,52 @@ msgstr ""
977
  msgid "Edit File"
978
  msgstr ""
979
 
980
- #: core/fields/file.php:28 core/fields/image.php:29
 
 
 
 
981
  msgid "uploaded to this post"
982
  msgstr ""
983
 
984
- #: core/fields/file.php:118
985
  msgid "No File Selected"
986
  msgstr ""
987
 
988
- #: core/fields/file.php:118
989
  msgid "Add File"
990
  msgstr ""
991
 
992
- #: core/fields/file.php:148 core/fields/image.php:117
993
  #: core/fields/taxonomy.php:365
994
  msgid "Return Value"
995
  msgstr ""
996
 
997
- #: core/fields/file.php:159
998
  msgid "File Object"
999
  msgstr ""
1000
 
1001
- #: core/fields/file.php:160
1002
  msgid "File URL"
1003
  msgstr ""
1004
 
1005
- #: core/fields/file.php:161
1006
  msgid "File ID"
1007
  msgstr ""
1008
 
1009
- #: core/fields/file.php:170 core/fields/image.php:155
1010
  msgid "Library"
1011
  msgstr ""
1012
 
1013
- #: core/fields/file.php:182 core/fields/image.php:167
1014
  msgid "Uploaded to post"
1015
  msgstr ""
1016
 
1017
- #: core/fields/file.php:286
1018
- msgid "File Updated."
1019
- msgstr ""
1020
-
1021
- #: core/fields/file.php:379 core/fields/image.php:396
1022
- msgid "Media attachment updated."
1023
- msgstr ""
1024
-
1025
- #: core/fields/file.php:537
1026
- msgid "No files selected"
1027
- msgstr ""
1028
-
1029
- #: core/fields/file.php:678
1030
- msgid "Add Selected Files"
1031
- msgstr ""
1032
-
1033
- #: core/fields/file.php:714
1034
- msgid "Update File"
1035
- msgstr ""
1036
-
1037
  #: core/fields/image.php:19
1038
  msgid "Image"
1039
  msgstr ""
1040
 
1041
- #: core/fields/image.php:27 core/fields/image.php:718
1042
  msgid "Select Image"
1043
  msgstr ""
1044
 
@@ -1046,52 +1101,52 @@ msgstr ""
1046
  msgid "Edit Image"
1047
  msgstr ""
1048
 
1049
- #: core/fields/image.php:82
 
 
 
 
1050
  msgid "Remove"
1051
  msgstr ""
1052
 
1053
- #: core/fields/image.php:83 core/views/meta_box_fields.php:122
1054
  msgid "Edit"
1055
  msgstr ""
1056
 
1057
- #: core/fields/image.php:89
1058
  msgid "No image selected"
1059
  msgstr ""
1060
 
1061
- #: core/fields/image.php:89
1062
  msgid "Add Image"
1063
  msgstr ""
1064
 
1065
- #: core/fields/image.php:127
 
 
 
 
1066
  msgid "Image Object"
1067
  msgstr ""
1068
 
1069
- #: core/fields/image.php:128
1070
  msgid "Image URL"
1071
  msgstr ""
1072
 
1073
- #: core/fields/image.php:129
1074
  msgid "Image ID"
1075
  msgstr ""
1076
 
1077
- #: core/fields/image.php:137
1078
  msgid "Preview Size"
1079
  msgstr ""
1080
 
1081
- #: core/fields/image.php:305
1082
- msgid "Image Updated."
1083
- msgstr ""
1084
-
1085
- #: core/fields/image.php:547
1086
- msgid "No images selected"
1087
  msgstr ""
1088
 
1089
- #: core/fields/image.php:689
1090
- msgid "Add Selected Images"
1091
- msgstr ""
1092
-
1093
- #: core/fields/image.php:721
1094
- msgid "Update Image"
1095
  msgstr ""
1096
 
1097
  #: core/fields/message.php:19 core/fields/message.php:70
@@ -1111,28 +1166,16 @@ msgstr ""
1111
  msgid "Number"
1112
  msgstr ""
1113
 
1114
- #: core/fields/number.php:110
1115
- msgid "Min"
1116
  msgstr ""
1117
 
1118
- #: core/fields/number.php:111
1119
- msgid "Specifies the minimum value allowed"
1120
  msgstr ""
1121
 
1122
- #: core/fields/number.php:127
1123
- msgid "Max"
1124
- msgstr ""
1125
-
1126
- #: core/fields/number.php:128
1127
- msgid "Specifies the maximim value allowed"
1128
- msgstr ""
1129
-
1130
- #: core/fields/number.php:144
1131
- msgid "Step"
1132
- msgstr ""
1133
-
1134
- #: core/fields/number.php:145
1135
- msgid "Specifies the legal number intervals"
1136
  msgstr ""
1137
 
1138
  #: core/fields/page_link.php:18
@@ -1146,7 +1189,7 @@ msgid "Relational"
1146
  msgstr ""
1147
 
1148
  #: core/fields/page_link.php:103 core/fields/post_object.php:268
1149
- #: core/fields/relationship.php:547 core/fields/relationship.php:626
1150
  #: core/views/meta_box_location.php:75
1151
  msgid "Post Type"
1152
  msgstr ""
@@ -1170,7 +1213,7 @@ msgstr ""
1170
  msgid "Post Object"
1171
  msgstr ""
1172
 
1173
- #: core/fields/post_object.php:292 core/fields/relationship.php:571
1174
  msgid "Filter from Taxonomy"
1175
  msgstr ""
1176
 
@@ -1178,7 +1221,7 @@ msgstr ""
1178
  msgid "Radio Button"
1179
  msgstr ""
1180
 
1181
- #: core/fields/radio.php:102 core/views/meta_box_location.php:90
1182
  msgid "Other"
1183
  msgstr ""
1184
 
@@ -1206,48 +1249,60 @@ msgstr ""
1206
  msgid "Relationship"
1207
  msgstr ""
1208
 
1209
- #: core/fields/relationship.php:28
1210
  msgid "Maximum values reached ( {max} values )"
1211
  msgstr ""
1212
 
1213
- #: core/fields/relationship.php:401
1214
  msgid "Search..."
1215
  msgstr ""
1216
 
1217
- #: core/fields/relationship.php:414
1218
  msgid "Filter by post type"
1219
  msgstr ""
1220
 
1221
- #: core/fields/relationship.php:605
 
 
 
 
 
 
 
 
 
 
 
 
1222
  msgid "Search"
1223
  msgstr ""
1224
 
1225
- #: core/fields/relationship.php:606
1226
  msgid "Post Type Select"
1227
  msgstr ""
1228
 
1229
- #: core/fields/relationship.php:614
1230
  msgid "Elements"
1231
  msgstr ""
1232
 
1233
- #: core/fields/relationship.php:615
1234
  msgid "Selected elements will be displayed in each result"
1235
  msgstr ""
1236
 
1237
- #: core/fields/relationship.php:624 core/views/meta_box_options.php:103
1238
  msgid "Featured Image"
1239
  msgstr ""
1240
 
1241
- #: core/fields/relationship.php:625
1242
  msgid "Post Title"
1243
  msgstr ""
1244
 
1245
- #: core/fields/relationship.php:637
1246
  msgid "Maximum posts"
1247
  msgstr ""
1248
 
1249
- #: core/fields/select.php:18 core/fields/taxonomy.php:322
1250
- #: core/fields/user.php:266
1251
  msgid "Select"
1252
  msgstr ""
1253
 
@@ -1257,12 +1312,18 @@ msgstr ""
1257
 
1258
  #: core/fields/tab.php:68
1259
  msgid ""
1260
- "All fields proceeding this \"tab field\" (or until another \"tab field\" is "
1261
- "defined) will appear grouped on the edit screen."
1262
  msgstr ""
1263
 
1264
  #: core/fields/tab.php:69
1265
- msgid "You can use multiple tabs to break up your fields into sections."
 
 
 
 
 
 
1266
  msgstr ""
1267
 
1268
  #: core/fields/taxonomy.php:18 core/fields/taxonomy.php:276
@@ -1270,12 +1331,11 @@ msgid "Taxonomy"
1270
  msgstr ""
1271
 
1272
  #: core/fields/taxonomy.php:211 core/fields/taxonomy.php:220
1273
- #: core/fields/text.php:95 core/fields/textarea.php:95
1274
  msgid "None"
1275
  msgstr ""
1276
 
1277
  #: core/fields/taxonomy.php:306 core/fields/user.php:251
1278
- #: core/views/meta_box_fields.php:91 core/views/meta_box_fields.php:172
1279
  msgid "Field Type"
1280
  msgstr ""
1281
 
@@ -1316,28 +1376,36 @@ msgstr ""
1316
  msgid "Text"
1317
  msgstr ""
1318
 
1319
- #: core/fields/text.php:85 core/fields/textarea.php:85
1320
  msgid "Formatting"
1321
  msgstr ""
1322
 
1323
- #: core/fields/text.php:86
1324
- msgid "Define how to render html tags"
1325
  msgstr ""
1326
 
1327
- #: core/fields/text.php:96 core/fields/textarea.php:97
1328
- msgid "HTML"
1329
  msgstr ""
1330
 
1331
- #: core/fields/textarea.php:19
1332
- msgid "Text Area"
 
 
 
 
1333
  msgstr ""
1334
 
1335
- #: core/fields/textarea.php:86
1336
- msgid "Define how to render html tags / new lines"
1337
  msgstr ""
1338
 
1339
- #: core/fields/textarea.php:96
1340
- msgid "auto &lt;br /&gt;"
 
 
 
 
1341
  msgstr ""
1342
 
1343
  #: core/fields/true_false.php:19
@@ -1348,7 +1416,7 @@ msgstr ""
1348
  msgid "eg. Show extra content"
1349
  msgstr ""
1350
 
1351
- #: core/fields/user.php:18
1352
  msgid "User"
1353
  msgstr ""
1354
 
@@ -1360,11 +1428,11 @@ msgstr ""
1360
  msgid "Wysiwyg Editor"
1361
  msgstr ""
1362
 
1363
- #: core/fields/wysiwyg.php:185
1364
  msgid "Toolbar"
1365
  msgstr ""
1366
 
1367
- #: core/fields/wysiwyg.php:217
1368
  msgid "Show Media Upload Buttons?"
1369
  msgstr ""
1370
 
@@ -1397,7 +1465,7 @@ msgid "copy"
1397
  msgstr ""
1398
 
1399
  #: core/views/meta_box_fields.php:68 core/views/meta_box_location.php:62
1400
- #: core/views/meta_box_location.php:158
1401
  msgid "or"
1402
  msgstr ""
1403
 
@@ -1459,55 +1527,55 @@ msgstr ""
1459
  msgid "Single word, no spaces. Underscores and dashes allowed"
1460
  msgstr ""
1461
 
1462
- #: core/views/meta_box_fields.php:185
1463
  msgid "Field Instructions"
1464
  msgstr ""
1465
 
1466
- #: core/views/meta_box_fields.php:186
1467
  msgid "Instructions for authors. Shown when submitting data"
1468
  msgstr ""
1469
 
1470
- #: core/views/meta_box_fields.php:198
1471
  msgid "Required?"
1472
  msgstr ""
1473
 
1474
- #: core/views/meta_box_fields.php:221
1475
  msgid "Conditional Logic"
1476
  msgstr ""
1477
 
1478
- #: core/views/meta_box_fields.php:272 core/views/meta_box_location.php:116
1479
  msgid "is equal to"
1480
  msgstr ""
1481
 
1482
- #: core/views/meta_box_fields.php:273 core/views/meta_box_location.php:117
1483
  msgid "is not equal to"
1484
  msgstr ""
1485
 
1486
- #: core/views/meta_box_fields.php:291
1487
  msgid "Show this field when"
1488
  msgstr ""
1489
 
1490
- #: core/views/meta_box_fields.php:297
1491
  msgid "all"
1492
  msgstr ""
1493
 
1494
- #: core/views/meta_box_fields.php:298
1495
  msgid "any"
1496
  msgstr ""
1497
 
1498
- #: core/views/meta_box_fields.php:301
1499
  msgid "these rules are met"
1500
  msgstr ""
1501
 
1502
- #: core/views/meta_box_fields.php:315
1503
  msgid "Close Field"
1504
  msgstr ""
1505
 
1506
- #: core/views/meta_box_fields.php:328
1507
  msgid "Drag and drop to reorder"
1508
  msgstr ""
1509
 
1510
- #: core/views/meta_box_fields.php:329
1511
  msgid "+ Add Field"
1512
  msgstr ""
1513
 
@@ -1558,26 +1626,26 @@ msgid "Post Format"
1558
  msgstr ""
1559
 
1560
  #: core/views/meta_box_location.php:88
1561
- msgid "Post Taxonomy"
1562
  msgstr ""
1563
 
1564
- #: core/views/meta_box_location.php:91
1565
- msgid "Taxonomy Term (Add / Edit)"
1566
  msgstr ""
1567
 
1568
  #: core/views/meta_box_location.php:92
1569
- msgid "User (Add / Edit)"
1570
  msgstr ""
1571
 
1572
  #: core/views/meta_box_location.php:93
1573
- msgid "Media Attachment (Edit)"
1574
  msgstr ""
1575
 
1576
- #: core/views/meta_box_location.php:145
1577
  msgid "and"
1578
  msgstr ""
1579
 
1580
- #: core/views/meta_box_location.php:160
1581
  msgid "Add rule group"
1582
  msgstr ""
1583
 
@@ -1594,79 +1662,83 @@ msgid "Position"
1594
  msgstr ""
1595
 
1596
  #: core/views/meta_box_options.php:52
1597
- msgid "Normal"
1598
  msgstr ""
1599
 
1600
  #: core/views/meta_box_options.php:53
 
 
 
 
1601
  msgid "Side"
1602
  msgstr ""
1603
 
1604
- #: core/views/meta_box_options.php:62
1605
  msgid "Style"
1606
  msgstr ""
1607
 
1608
- #: core/views/meta_box_options.php:72
1609
  msgid "No Metabox"
1610
  msgstr ""
1611
 
1612
- #: core/views/meta_box_options.php:73
1613
  msgid "Standard Metabox"
1614
  msgstr ""
1615
 
1616
- #: core/views/meta_box_options.php:82
1617
  msgid "Hide on screen"
1618
  msgstr ""
1619
 
1620
- #: core/views/meta_box_options.php:83
1621
  msgid "<b>Select</b> items to <b>hide</b> them from the edit screen"
1622
  msgstr ""
1623
 
1624
- #: core/views/meta_box_options.php:84
1625
  msgid ""
1626
  "If multiple field groups appear on an edit screen, the first field group's "
1627
  "options will be used. (the one with the lowest order number)"
1628
  msgstr ""
1629
 
1630
- #: core/views/meta_box_options.php:94
1631
  msgid "Content Editor"
1632
  msgstr ""
1633
 
1634
- #: core/views/meta_box_options.php:95
1635
  msgid "Excerpt"
1636
  msgstr ""
1637
 
1638
- #: core/views/meta_box_options.php:97
1639
  msgid "Discussion"
1640
  msgstr ""
1641
 
1642
- #: core/views/meta_box_options.php:98
1643
  msgid "Comments"
1644
  msgstr ""
1645
 
1646
- #: core/views/meta_box_options.php:99
1647
  msgid "Revisions"
1648
  msgstr ""
1649
 
1650
- #: core/views/meta_box_options.php:100
1651
  msgid "Slug"
1652
  msgstr ""
1653
 
1654
- #: core/views/meta_box_options.php:101
1655
  msgid "Author"
1656
  msgstr ""
1657
 
1658
- #: core/views/meta_box_options.php:102
1659
  msgid "Format"
1660
  msgstr ""
1661
 
1662
- #: core/views/meta_box_options.php:104
1663
  msgid "Categories"
1664
  msgstr ""
1665
 
1666
- #: core/views/meta_box_options.php:105
1667
  msgid "Tags"
1668
  msgstr ""
1669
 
1670
- #: core/views/meta_box_options.php:106
1671
  msgid "Send Trackbacks"
1672
  msgstr ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/advanced-custom-fields\n"
7
+ "POT-Creation-Date: 2013-09-15 04:13:48+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: acf.php:342
16
  msgid "Field&nbsp;Groups"
17
  msgstr ""
18
 
19
+ #: acf.php:343 core/controllers/field_groups.php:214
20
  msgid "Advanced Custom Fields"
21
  msgstr ""
22
 
23
+ #: acf.php:344
24
  msgid "Add New"
25
  msgstr ""
26
 
27
+ #: acf.php:345
28
  msgid "Add New Field Group"
29
  msgstr ""
30
 
31
+ #: acf.php:346
32
  msgid "Edit Field Group"
33
  msgstr ""
34
 
35
+ #: acf.php:347
36
  msgid "New Field Group"
37
  msgstr ""
38
 
39
+ #: acf.php:348
40
  msgid "View Field Group"
41
  msgstr ""
42
 
43
+ #: acf.php:349
44
  msgid "Search Field Groups"
45
  msgstr ""
46
 
47
+ #: acf.php:350
48
  msgid "No Field Groups found"
49
  msgstr ""
50
 
51
+ #: acf.php:351
52
  msgid "No Field Groups found in Trash"
53
  msgstr ""
54
 
55
+ #: acf.php:459 core/views/meta_box_options.php:98
56
  msgid "Custom Fields"
57
  msgstr ""
58
 
59
+ #: acf.php:477 acf.php:480
60
  msgid "Field group updated."
61
  msgstr ""
62
 
63
+ #: acf.php:478
64
  msgid "Custom field updated."
65
  msgstr ""
66
 
67
+ #: acf.php:479
68
  msgid "Custom field deleted."
69
  msgstr ""
70
 
71
  #. translators: %s: date and time of the revision
72
+ #: acf.php:482
73
  msgid "Field group restored to revision from %s"
74
  msgstr ""
75
 
76
+ #: acf.php:483
77
  msgid "Field group published."
78
  msgstr ""
79
 
80
+ #: acf.php:484
81
  msgid "Field group saved."
82
  msgstr ""
83
 
84
+ #: acf.php:485
85
  msgid "Field group submitted."
86
  msgstr ""
87
 
88
+ #: acf.php:486
89
  msgid "Field group scheduled for."
90
  msgstr ""
91
 
92
+ #: acf.php:487
93
  msgid "Field group draft updated."
94
  msgstr ""
95
 
96
+ #: acf.php:622
97
  msgid "Thumbnail"
98
  msgstr ""
99
 
100
+ #: acf.php:623
101
  msgid "Medium"
102
  msgstr ""
103
 
104
+ #: acf.php:624
105
  msgid "Large"
106
  msgstr ""
107
 
108
+ #: acf.php:625
109
  msgid "Full"
110
  msgstr ""
111
 
117
  msgid "No ACF groups selected"
118
  msgstr ""
119
 
120
+ #: core/api.php:1094
121
  msgid "Update"
122
  msgstr ""
123
 
124
+ #: core/api.php:1095
125
  msgid "Post updated"
126
  msgstr ""
127
 
128
+ #: core/controllers/addons.php:42 core/controllers/export.php:368
129
+ #: core/controllers/field_groups.php:311
130
  msgid "Add-ons"
131
  msgstr ""
132
 
146
  msgid "Create image galleries in a simple and intuitive interface!"
147
  msgstr ""
148
 
149
+ #: core/controllers/addons.php:144 core/controllers/field_groups.php:448
 
150
  msgid "Options Page"
151
  msgstr ""
152
 
365
  " * Please do not attempt to include a file which does not exist. This will "
366
  "produce an error.\n"
367
  " * \n"
 
 
 
 
368
  " * The following code assumes you have a folder 'add-ons' inside your "
369
  "theme.\n"
370
  " *\n"
371
  " * IMPORTANT\n"
372
+ " * Add-ons may be included in a premium theme/plugin as outlined in the "
373
+ "terms and conditions.\n"
374
+ " * For more information, please read:\n"
375
+ " * - http://www.advancedcustomfields.com/terms-conditions/\n"
376
+ " * - http://www.advancedcustomfields.com/resources/getting-started/"
377
+ "including-lite-mode-in-a-plugin-theme/\n"
378
  " */"
379
  msgstr ""
380
 
381
+ #: core/controllers/export.php:375
 
 
 
 
 
382
  msgid ""
383
  "/**\n"
384
  " * Register Field Groups\n"
390
  " */"
391
  msgstr ""
392
 
393
+ #: core/controllers/export.php:426
394
  msgid "No field groups were selected"
395
  msgstr ""
396
 
397
+ #: core/controllers/field_group.php:375 core/controllers/field_group.php:437
398
+ #: core/controllers/field_groups.php:148
399
+ msgid "Fields"
400
+ msgstr ""
401
+
402
+ #: core/controllers/field_group.php:376
403
  msgid "Location"
404
  msgstr ""
405
 
406
+ #: core/controllers/field_group.php:377
407
  msgid "Options"
408
  msgstr ""
409
 
410
+ #: core/controllers/field_group.php:439
411
  msgid "Show Field Key:"
412
  msgstr ""
413
 
414
+ #: core/controllers/field_group.php:440 core/fields/page_link.php:138
415
  #: core/fields/page_link.php:159 core/fields/post_object.php:328
416
  #: core/fields/post_object.php:349 core/fields/select.php:224
417
  #: core/fields/select.php:243 core/fields/taxonomy.php:341
418
+ #: core/fields/user.php:285 core/fields/wysiwyg.php:229
419
+ #: core/views/meta_box_fields.php:209 core/views/meta_box_fields.php:232
420
  msgid "No"
421
  msgstr ""
422
 
423
+ #: core/controllers/field_group.php:441 core/fields/page_link.php:137
424
  #: core/fields/page_link.php:158 core/fields/post_object.php:327
425
  #: core/fields/post_object.php:348 core/fields/select.php:223
426
  #: core/fields/select.php:242 core/fields/taxonomy.php:340
427
+ #: core/fields/user.php:284 core/fields/wysiwyg.php:228
428
+ #: core/views/meta_box_fields.php:208 core/views/meta_box_fields.php:231
429
  msgid "Yes"
430
  msgstr ""
431
 
432
+ #: core/controllers/field_group.php:618
433
  msgid "Front Page"
434
  msgstr ""
435
 
436
+ #: core/controllers/field_group.php:619
437
  msgid "Posts Page"
438
  msgstr ""
439
 
440
+ #: core/controllers/field_group.php:620
441
  msgid "Top Level Page (parent of 0)"
442
  msgstr ""
443
 
444
+ #: core/controllers/field_group.php:621
445
  msgid "Parent Page (has children)"
446
  msgstr ""
447
 
448
+ #: core/controllers/field_group.php:622
449
  msgid "Child Page (has parent)"
450
  msgstr ""
451
 
452
+ #: core/controllers/field_group.php:630
453
  msgid "Default Template"
454
  msgstr ""
455
 
456
+ #: core/controllers/field_group.php:707
457
+ msgid "Publish"
458
+ msgstr ""
459
+
460
+ #: core/controllers/field_group.php:708
461
+ msgid "Pending Review"
462
+ msgstr ""
463
+
464
+ #: core/controllers/field_group.php:709
465
+ msgid "Draft"
466
+ msgstr ""
467
+
468
+ #: core/controllers/field_group.php:710
469
+ msgid "Future"
470
+ msgstr ""
471
+
472
+ #: core/controllers/field_group.php:711
473
+ msgid "Private"
474
+ msgstr ""
475
+
476
+ #: core/controllers/field_group.php:712
477
+ msgid "Revision"
478
+ msgstr ""
479
+
480
+ #: core/controllers/field_group.php:713
481
+ msgid "Trash"
482
+ msgstr ""
483
+
484
+ #: core/controllers/field_group.php:726
485
+ msgid "Super Admin"
486
+ msgstr ""
487
+
488
+ #: core/controllers/field_group.php:741 core/controllers/field_group.php:762
489
+ #: core/controllers/field_group.php:769 core/fields/file.php:186
490
+ #: core/fields/image.php:170 core/fields/page_link.php:109
491
  #: core/fields/post_object.php:274 core/fields/post_object.php:298
492
+ #: core/fields/relationship.php:595 core/fields/relationship.php:619
493
  #: core/fields/user.php:229
494
  msgid "All"
495
  msgstr ""
530
  msgid "Actions"
531
  msgstr ""
532
 
533
+ #: core/controllers/field_groups.php:225 core/fields/relationship.php:638
534
  msgid "Filters"
535
  msgstr ""
536
 
828
  msgid "Awesome. Let's get to work"
829
  msgstr ""
830
 
831
+ #: core/controllers/input.php:519
832
+ msgid "Expand Details"
833
+ msgstr ""
834
+
835
+ #: core/controllers/input.php:520
836
+ msgid "Collapse Details"
837
+ msgstr ""
838
+
839
+ #: core/controllers/input.php:523
840
  msgid "Validation Failed. One or more fields below are required."
841
  msgstr ""
842
 
900
  msgid "blue : Blue"
901
  msgstr ""
902
 
903
+ #: core/fields/checkbox.php:157 core/fields/color_picker.php:89
904
+ #: core/fields/email.php:106 core/fields/number.php:116
905
  #: core/fields/radio.php:193 core/fields/select.php:197
906
+ #: core/fields/text.php:116 core/fields/textarea.php:96
907
  #: core/fields/true_false.php:94 core/fields/wysiwyg.php:171
908
  msgid "Default Value"
909
  msgstr ""
933
  msgid "jQuery"
934
  msgstr ""
935
 
 
 
 
 
936
  #: core/fields/date_picker/date_picker.php:22
937
  msgid "Date Picker"
938
  msgstr ""
994
  msgid "Email"
995
  msgstr ""
996
 
997
+ #: core/fields/email.php:107 core/fields/number.php:117
998
+ #: core/fields/text.php:117 core/fields/textarea.php:97
999
+ #: core/fields/wysiwyg.php:172
1000
+ msgid "Appears when creating a new post"
1001
+ msgstr ""
1002
+
1003
+ #: core/fields/email.php:123 core/fields/number.php:133
1004
+ #: core/fields/password.php:105 core/fields/text.php:131
1005
+ #: core/fields/textarea.php:111
1006
+ msgid "Placeholder Text"
1007
+ msgstr ""
1008
+
1009
+ #: core/fields/email.php:124 core/fields/number.php:134
1010
+ #: core/fields/password.php:106 core/fields/text.php:132
1011
+ #: core/fields/textarea.php:112
1012
+ msgid "Appears within the input"
1013
+ msgstr ""
1014
+
1015
+ #: core/fields/email.php:138 core/fields/number.php:148
1016
+ #: core/fields/password.php:120 core/fields/text.php:146
1017
+ msgid "Prepend"
1018
+ msgstr ""
1019
+
1020
+ #: core/fields/email.php:139 core/fields/number.php:149
1021
+ #: core/fields/password.php:121 core/fields/text.php:147
1022
+ msgid "Appears before the input"
1023
+ msgstr ""
1024
+
1025
+ #: core/fields/email.php:153 core/fields/number.php:163
1026
+ #: core/fields/password.php:135 core/fields/text.php:161
1027
+ msgid "Append"
1028
+ msgstr ""
1029
+
1030
+ #: core/fields/email.php:154 core/fields/number.php:164
1031
+ #: core/fields/password.php:136 core/fields/text.php:162
1032
+ msgid "Appears after the input"
1033
+ msgstr ""
1034
+
1035
  #: core/fields/file.php:19
1036
  msgid "File"
1037
  msgstr ""
1040
  msgid "Content"
1041
  msgstr ""
1042
 
1043
+ #: core/fields/file.php:26
1044
  msgid "Select File"
1045
  msgstr ""
1046
 
1048
  msgid "Edit File"
1049
  msgstr ""
1050
 
1051
+ #: core/fields/file.php:28
1052
+ msgid "Update File"
1053
+ msgstr ""
1054
+
1055
+ #: core/fields/file.php:29 core/fields/image.php:30
1056
  msgid "uploaded to this post"
1057
  msgstr ""
1058
 
1059
+ #: core/fields/file.php:123
1060
  msgid "No File Selected"
1061
  msgstr ""
1062
 
1063
+ #: core/fields/file.php:123
1064
  msgid "Add File"
1065
  msgstr ""
1066
 
1067
+ #: core/fields/file.php:153 core/fields/image.php:118
1068
  #: core/fields/taxonomy.php:365
1069
  msgid "Return Value"
1070
  msgstr ""
1071
 
1072
+ #: core/fields/file.php:164
1073
  msgid "File Object"
1074
  msgstr ""
1075
 
1076
+ #: core/fields/file.php:165
1077
  msgid "File URL"
1078
  msgstr ""
1079
 
1080
+ #: core/fields/file.php:166
1081
  msgid "File ID"
1082
  msgstr ""
1083
 
1084
+ #: core/fields/file.php:175 core/fields/image.php:158
1085
  msgid "Library"
1086
  msgstr ""
1087
 
1088
+ #: core/fields/file.php:187 core/fields/image.php:171
1089
  msgid "Uploaded to post"
1090
  msgstr ""
1091
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1092
  #: core/fields/image.php:19
1093
  msgid "Image"
1094
  msgstr ""
1095
 
1096
+ #: core/fields/image.php:27
1097
  msgid "Select Image"
1098
  msgstr ""
1099
 
1101
  msgid "Edit Image"
1102
  msgstr ""
1103
 
1104
+ #: core/fields/image.php:29
1105
+ msgid "Update Image"
1106
+ msgstr ""
1107
+
1108
+ #: core/fields/image.php:83
1109
  msgid "Remove"
1110
  msgstr ""
1111
 
1112
+ #: core/fields/image.php:84 core/views/meta_box_fields.php:122
1113
  msgid "Edit"
1114
  msgstr ""
1115
 
1116
+ #: core/fields/image.php:90
1117
  msgid "No image selected"
1118
  msgstr ""
1119
 
1120
+ #: core/fields/image.php:90
1121
  msgid "Add Image"
1122
  msgstr ""
1123
 
1124
+ #: core/fields/image.php:119 core/fields/relationship.php:570
1125
+ msgid "Specify the returned value on front end"
1126
+ msgstr ""
1127
+
1128
+ #: core/fields/image.php:129
1129
  msgid "Image Object"
1130
  msgstr ""
1131
 
1132
+ #: core/fields/image.php:130
1133
  msgid "Image URL"
1134
  msgstr ""
1135
 
1136
+ #: core/fields/image.php:131
1137
  msgid "Image ID"
1138
  msgstr ""
1139
 
1140
+ #: core/fields/image.php:139
1141
  msgid "Preview Size"
1142
  msgstr ""
1143
 
1144
+ #: core/fields/image.php:140
1145
+ msgid "Shown when entering data"
 
 
 
 
1146
  msgstr ""
1147
 
1148
+ #: core/fields/image.php:159
1149
+ msgid "Limit the media library choice"
 
 
 
 
1150
  msgstr ""
1151
 
1152
  #: core/fields/message.php:19 core/fields/message.php:70
1166
  msgid "Number"
1167
  msgstr ""
1168
 
1169
+ #: core/fields/number.php:178
1170
+ msgid "Minimum Value"
1171
  msgstr ""
1172
 
1173
+ #: core/fields/number.php:194
1174
+ msgid "Maximum Value"
1175
  msgstr ""
1176
 
1177
+ #: core/fields/number.php:210
1178
+ msgid "Step Size"
 
 
 
 
 
 
 
 
 
 
 
 
1179
  msgstr ""
1180
 
1181
  #: core/fields/page_link.php:18
1189
  msgstr ""
1190
 
1191
  #: core/fields/page_link.php:103 core/fields/post_object.php:268
1192
+ #: core/fields/relationship.php:589 core/fields/relationship.php:668
1193
  #: core/views/meta_box_location.php:75
1194
  msgid "Post Type"
1195
  msgstr ""
1213
  msgid "Post Object"
1214
  msgstr ""
1215
 
1216
+ #: core/fields/post_object.php:292 core/fields/relationship.php:613
1217
  msgid "Filter from Taxonomy"
1218
  msgstr ""
1219
 
1221
  msgid "Radio Button"
1222
  msgstr ""
1223
 
1224
+ #: core/fields/radio.php:102 core/views/meta_box_location.php:91
1225
  msgid "Other"
1226
  msgstr ""
1227
 
1249
  msgid "Relationship"
1250
  msgstr ""
1251
 
1252
+ #: core/fields/relationship.php:29
1253
  msgid "Maximum values reached ( {max} values )"
1254
  msgstr ""
1255
 
1256
+ #: core/fields/relationship.php:425
1257
  msgid "Search..."
1258
  msgstr ""
1259
 
1260
+ #: core/fields/relationship.php:436
1261
  msgid "Filter by post type"
1262
  msgstr ""
1263
 
1264
+ #: core/fields/relationship.php:569
1265
+ msgid "Return Format"
1266
+ msgstr ""
1267
+
1268
+ #: core/fields/relationship.php:580
1269
+ msgid "Post Objects"
1270
+ msgstr ""
1271
+
1272
+ #: core/fields/relationship.php:581
1273
+ msgid "Post IDs"
1274
+ msgstr ""
1275
+
1276
+ #: core/fields/relationship.php:647
1277
  msgid "Search"
1278
  msgstr ""
1279
 
1280
+ #: core/fields/relationship.php:648
1281
  msgid "Post Type Select"
1282
  msgstr ""
1283
 
1284
+ #: core/fields/relationship.php:656
1285
  msgid "Elements"
1286
  msgstr ""
1287
 
1288
+ #: core/fields/relationship.php:657
1289
  msgid "Selected elements will be displayed in each result"
1290
  msgstr ""
1291
 
1292
+ #: core/fields/relationship.php:666 core/views/meta_box_options.php:105
1293
  msgid "Featured Image"
1294
  msgstr ""
1295
 
1296
+ #: core/fields/relationship.php:667
1297
  msgid "Post Title"
1298
  msgstr ""
1299
 
1300
+ #: core/fields/relationship.php:679
1301
  msgid "Maximum posts"
1302
  msgstr ""
1303
 
1304
+ #: core/fields/select.php:18 core/fields/select.php:109
1305
+ #: core/fields/taxonomy.php:322 core/fields/user.php:266
1306
  msgid "Select"
1307
  msgstr ""
1308
 
1312
 
1313
  #: core/fields/tab.php:68
1314
  msgid ""
1315
+ "Use \"Tab Fields\" to better organize your edit screen by grouping your "
1316
+ "fields together under separate tab headings."
1317
  msgstr ""
1318
 
1319
  #: core/fields/tab.php:69
1320
+ msgid ""
1321
+ "All the fields following this \"tab field\" (or until another \"tab field\" "
1322
+ "is defined) will be grouped together."
1323
+ msgstr ""
1324
+
1325
+ #: core/fields/tab.php:70
1326
+ msgid "Use multiple tabs to divide your fields into sections."
1327
  msgstr ""
1328
 
1329
  #: core/fields/taxonomy.php:18 core/fields/taxonomy.php:276
1331
  msgstr ""
1332
 
1333
  #: core/fields/taxonomy.php:211 core/fields/taxonomy.php:220
 
1334
  msgid "None"
1335
  msgstr ""
1336
 
1337
  #: core/fields/taxonomy.php:306 core/fields/user.php:251
1338
+ #: core/views/meta_box_fields.php:91 core/views/meta_box_fields.php:173
1339
  msgid "Field Type"
1340
  msgstr ""
1341
 
1376
  msgid "Text"
1377
  msgstr ""
1378
 
1379
+ #: core/fields/text.php:176 core/fields/textarea.php:141
1380
  msgid "Formatting"
1381
  msgstr ""
1382
 
1383
+ #: core/fields/text.php:177 core/fields/textarea.php:142
1384
+ msgid "Effects value on front end"
1385
  msgstr ""
1386
 
1387
+ #: core/fields/text.php:186 core/fields/textarea.php:151
1388
+ msgid "No formatting"
1389
  msgstr ""
1390
 
1391
+ #: core/fields/text.php:187 core/fields/textarea.php:153
1392
+ msgid "Convert HTML into tags"
1393
+ msgstr ""
1394
+
1395
+ #: core/fields/text.php:195 core/fields/textarea.php:126
1396
+ msgid "Character Limit"
1397
  msgstr ""
1398
 
1399
+ #: core/fields/text.php:196 core/fields/textarea.php:127
1400
+ msgid "Leave blank for no limit"
1401
  msgstr ""
1402
 
1403
+ #: core/fields/textarea.php:19
1404
+ msgid "Text Area"
1405
+ msgstr ""
1406
+
1407
+ #: core/fields/textarea.php:152
1408
+ msgid "Convert new lines into &lt;br /&gt; tags"
1409
  msgstr ""
1410
 
1411
  #: core/fields/true_false.php:19
1416
  msgid "eg. Show extra content"
1417
  msgstr ""
1418
 
1419
+ #: core/fields/user.php:18 core/views/meta_box_location.php:94
1420
  msgid "User"
1421
  msgstr ""
1422
 
1428
  msgid "Wysiwyg Editor"
1429
  msgstr ""
1430
 
1431
+ #: core/fields/wysiwyg.php:186
1432
  msgid "Toolbar"
1433
  msgstr ""
1434
 
1435
+ #: core/fields/wysiwyg.php:218
1436
  msgid "Show Media Upload Buttons?"
1437
  msgstr ""
1438
 
1465
  msgstr ""
1466
 
1467
  #: core/views/meta_box_fields.php:68 core/views/meta_box_location.php:62
1468
+ #: core/views/meta_box_location.php:159
1469
  msgid "or"
1470
  msgstr ""
1471
 
1527
  msgid "Single word, no spaces. Underscores and dashes allowed"
1528
  msgstr ""
1529
 
1530
+ #: core/views/meta_box_fields.php:187
1531
  msgid "Field Instructions"
1532
  msgstr ""
1533
 
1534
+ #: core/views/meta_box_fields.php:188
1535
  msgid "Instructions for authors. Shown when submitting data"
1536
  msgstr ""
1537
 
1538
+ #: core/views/meta_box_fields.php:200
1539
  msgid "Required?"
1540
  msgstr ""
1541
 
1542
+ #: core/views/meta_box_fields.php:223
1543
  msgid "Conditional Logic"
1544
  msgstr ""
1545
 
1546
+ #: core/views/meta_box_fields.php:274 core/views/meta_box_location.php:117
1547
  msgid "is equal to"
1548
  msgstr ""
1549
 
1550
+ #: core/views/meta_box_fields.php:275 core/views/meta_box_location.php:118
1551
  msgid "is not equal to"
1552
  msgstr ""
1553
 
1554
+ #: core/views/meta_box_fields.php:293
1555
  msgid "Show this field when"
1556
  msgstr ""
1557
 
1558
+ #: core/views/meta_box_fields.php:299
1559
  msgid "all"
1560
  msgstr ""
1561
 
1562
+ #: core/views/meta_box_fields.php:300
1563
  msgid "any"
1564
  msgstr ""
1565
 
1566
+ #: core/views/meta_box_fields.php:303
1567
  msgid "these rules are met"
1568
  msgstr ""
1569
 
1570
+ #: core/views/meta_box_fields.php:317
1571
  msgid "Close Field"
1572
  msgstr ""
1573
 
1574
+ #: core/views/meta_box_fields.php:330
1575
  msgid "Drag and drop to reorder"
1576
  msgstr ""
1577
 
1578
+ #: core/views/meta_box_fields.php:331
1579
  msgid "+ Add Field"
1580
  msgstr ""
1581
 
1626
  msgstr ""
1627
 
1628
  #: core/views/meta_box_location.php:88
1629
+ msgid "Post Status"
1630
  msgstr ""
1631
 
1632
+ #: core/views/meta_box_location.php:89
1633
+ msgid "Post Taxonomy"
1634
  msgstr ""
1635
 
1636
  #: core/views/meta_box_location.php:92
1637
+ msgid "Attachment"
1638
  msgstr ""
1639
 
1640
  #: core/views/meta_box_location.php:93
1641
+ msgid "Term"
1642
  msgstr ""
1643
 
1644
+ #: core/views/meta_box_location.php:146
1645
  msgid "and"
1646
  msgstr ""
1647
 
1648
+ #: core/views/meta_box_location.php:161
1649
  msgid "Add rule group"
1650
  msgstr ""
1651
 
1662
  msgstr ""
1663
 
1664
  #: core/views/meta_box_options.php:52
1665
+ msgid "High (after title)"
1666
  msgstr ""
1667
 
1668
  #: core/views/meta_box_options.php:53
1669
+ msgid "Normal (after content)"
1670
+ msgstr ""
1671
+
1672
+ #: core/views/meta_box_options.php:54
1673
  msgid "Side"
1674
  msgstr ""
1675
 
1676
+ #: core/views/meta_box_options.php:64
1677
  msgid "Style"
1678
  msgstr ""
1679
 
1680
+ #: core/views/meta_box_options.php:74
1681
  msgid "No Metabox"
1682
  msgstr ""
1683
 
1684
+ #: core/views/meta_box_options.php:75
1685
  msgid "Standard Metabox"
1686
  msgstr ""
1687
 
1688
+ #: core/views/meta_box_options.php:84
1689
  msgid "Hide on screen"
1690
  msgstr ""
1691
 
1692
+ #: core/views/meta_box_options.php:85
1693
  msgid "<b>Select</b> items to <b>hide</b> them from the edit screen"
1694
  msgstr ""
1695
 
1696
+ #: core/views/meta_box_options.php:86
1697
  msgid ""
1698
  "If multiple field groups appear on an edit screen, the first field group's "
1699
  "options will be used. (the one with the lowest order number)"
1700
  msgstr ""
1701
 
1702
+ #: core/views/meta_box_options.php:96
1703
  msgid "Content Editor"
1704
  msgstr ""
1705
 
1706
+ #: core/views/meta_box_options.php:97
1707
  msgid "Excerpt"
1708
  msgstr ""
1709
 
1710
+ #: core/views/meta_box_options.php:99
1711
  msgid "Discussion"
1712
  msgstr ""
1713
 
1714
+ #: core/views/meta_box_options.php:100
1715
  msgid "Comments"
1716
  msgstr ""
1717
 
1718
+ #: core/views/meta_box_options.php:101
1719
  msgid "Revisions"
1720
  msgstr ""
1721
 
1722
+ #: core/views/meta_box_options.php:102
1723
  msgid "Slug"
1724
  msgstr ""
1725
 
1726
+ #: core/views/meta_box_options.php:103
1727
  msgid "Author"
1728
  msgstr ""
1729
 
1730
+ #: core/views/meta_box_options.php:104
1731
  msgid "Format"
1732
  msgstr ""
1733
 
1734
+ #: core/views/meta_box_options.php:106
1735
  msgid "Categories"
1736
  msgstr ""
1737
 
1738
+ #: core/views/meta_box_options.php:107
1739
  msgid "Tags"
1740
  msgstr ""
1741
 
1742
+ #: core/views/meta_box_options.php:108
1743
  msgid "Send Trackbacks"
1744
  msgstr ""
readme.txt CHANGED
@@ -107,7 +107,7 @@ http://support.advancedcustomfields.com/
107
 
108
  = 4.2.2 =
109
  * Field group: Added 'High (after title)' position for a metabox - http://support.advancedcustomfields.com/forums/topic/position-after-title-solution-inside/
110
- * Relatinoship field: Fixed bug with 'exclude_from_search' post types
111
  * Image / File field: Improved edit popup efficiency and fixed bug when 'upload' is last active mode - http://support.advancedcustomfields.com/forums/topic/edit-image-only-shows-add-new-screen/
112
  * JS: Added un compressed input.js file
113
  * JS: Fixed but with options page / taxonomy field - http://support.advancedcustomfields.com/forums/topic/checkbox-issues/
107
 
108
  = 4.2.2 =
109
  * Field group: Added 'High (after title)' position for a metabox - http://support.advancedcustomfields.com/forums/topic/position-after-title-solution-inside/
110
+ * Relationship field: Fixed bug with 'exclude_from_search' post types
111
  * Image / File field: Improved edit popup efficiency and fixed bug when 'upload' is last active mode - http://support.advancedcustomfields.com/forums/topic/edit-image-only-shows-add-new-screen/
112
  * JS: Added un compressed input.js file
113
  * JS: Fixed but with options page / taxonomy field - http://support.advancedcustomfields.com/forums/topic/checkbox-issues/