From a590a680f84b13de132ca67b8a3e1eeefff0a9b1 Mon Sep 17 00:00:00 2001 From: Elliot Condon Date: Tue, 14 Aug 2018 10:14:07 +0200 Subject: [PATCH] 5.7.2 --- acf.php | 12 +- assets/js/acf-field-group.js | 20 +- assets/js/acf-field-group.min.js | 2 +- assets/js/acf-input.js | 159 +- assets/js/acf-input.min.js | 8 +- includes/admin/admin-field-group.php | 2 +- includes/admin/views/settings-info.php | 28 +- includes/ajax.php | 86 - includes/ajax/class-acf-ajax-query-terms.php | 141 + includes/ajax/class-acf-ajax-query.php | 133 + includes/ajax/class-acf-ajax-user-setting.php | 44 + includes/ajax/class-acf-ajax.php | 195 ++ includes/api/api-field-group.php | 113 +- includes/api/api-helpers.php | 154 +- includes/api/api-term.php | 236 ++ includes/fields/class-acf-field-email.php | 2 +- includes/fields/class-acf-field-group.php | 30 + includes/fields/class-acf-field-select.php | 23 +- includes/fields/class-acf-field-taxonomy.php | 65 +- includes/forms/form-attachment.php | 19 +- includes/forms/form-nav-menu.php | 61 +- includes/forms/form-user.php | 2 +- includes/forms/form-widget.php | 6 +- .../locations/class-acf-location-taxonomy.php | 2 +- includes/updates.php | 259 +- .../class-acf-walker-nav-menu-edit.php | 174 +- lang/acf-it_IT.mo | Bin 51482 -> 51485 bytes lang/acf-it_IT.po | 13 +- lang/acf-pl_PL.mo | Bin 48401 -> 46305 bytes lang/acf-pl_PL.po | 2822 +++++++++-------- lang/acf-ru_RU.mo | Bin 65391 -> 65393 bytes lang/acf-ru_RU.po | 6 +- pro/admin/admin-settings-updates.php | 64 +- pro/assets/js/acf-pro-input.js | 59 +- pro/assets/js/acf-pro-input.min.js | 2 +- readme.txt | 19 +- 36 files changed, 2827 insertions(+), 2134 deletions(-) delete mode 100644 includes/ajax.php create mode 100644 includes/ajax/class-acf-ajax-query-terms.php create mode 100644 includes/ajax/class-acf-ajax-query.php create mode 100644 includes/ajax/class-acf-ajax-user-setting.php create mode 100644 includes/ajax/class-acf-ajax.php create mode 100644 includes/api/api-term.php diff --git a/acf.php b/acf.php index b17d3b3..9e6cd1a 100644 --- a/acf.php +++ b/acf.php @@ -3,7 +3,7 @@ Plugin Name: Advanced Custom Fields PRO Plugin URI: https://www.advancedcustomfields.com/ Description: Customise WordPress with powerful, professional and intuitive fields. -Version: 5.7.0 +Version: 5.7.2 Author: Elliot Condon Author URI: http://www.elliotcondon.com/ Copyright: Elliot Condon @@ -18,7 +18,7 @@ if( ! class_exists('ACF') ) : class ACF { /** @var string The plugin version number */ - var $version = '5.7.0'; + var $version = '5.7.2'; /** @var array The plugin settings array */ var $settings = array(); @@ -127,7 +127,7 @@ class ACF { acf_include('includes/api/api-field.php'); acf_include('includes/api/api-field-group.php'); acf_include('includes/api/api-template.php'); - + acf_include('includes/api/api-term.php'); // fields acf_include('includes/fields.php'); @@ -141,7 +141,6 @@ class ACF { // core acf_include('includes/assets.php'); - acf_include('includes/ajax.php'); acf_include('includes/cache.php'); acf_include('includes/compatibility.php'); acf_include('includes/deprecated.php'); @@ -154,6 +153,11 @@ class ACF { acf_include('includes/updates.php'); acf_include('includes/validation.php'); + // ajax + acf_include('includes/ajax/class-acf-ajax.php'); + acf_include('includes/ajax/class-acf-ajax-user-setting.php'); + acf_include('includes/ajax/class-acf-ajax-query.php'); + acf_include('includes/ajax/class-acf-ajax-query-terms.php'); // forms acf_include('includes/forms/form-attachment.php'); diff --git a/assets/js/acf-field-group.js b/assets/js/acf-field-group.js index f9820d1..e5fe827 100644 --- a/assets/js/acf-field-group.js +++ b/assets/js/acf-field-group.js @@ -102,7 +102,6 @@ // initialize this.$el = $('#acf-field-key-hide'); - this.addEvents(); // render this.render(); @@ -247,8 +246,16 @@ return $('#' + this.getInputId() + '-' + name); }, + $meta: function(){ + return this.$('.meta:first'); + }, + + $handle: function(){ + return this.$('.handle:first'); + }, + $settings: function(){ - return this.$('.acf-field-settings:first > .acf-field'); + return this.$('.settings:first'); }, $setting: function( name ){ @@ -540,15 +547,16 @@ acf.doAction('submit_field_object', this); }, - onChange: function(){ - //console.log('onChange'); + onChange: function( e, $el ){ + + // save settings this.save(); // action for 3rd party customization acf.doAction('change_field_object', this); }, - onChanged: function( e, name, value ){ + onChanged: function( e, $el, name, value ){ // ignore 'save' if( name == 'save' ) { @@ -1966,7 +1974,7 @@ $el.sortable({ handle: '.acf-sortable-handle', connectWith: '.acf-field-list', - start: function(e, ui){ + start: function( e, ui ){ var field = acf.getFieldObject( ui.item ); ui.placeholder.height( ui.item.height() ); acf.doAction('sortstart_field_object', field, $el); diff --git a/assets/js/acf-field-group.min.js b/assets/js/acf-field-group.min.js index e10d1fa..4658c88 100644 --- a/assets/js/acf-field-group.min.js +++ b/assets/js/acf-field-group.min.js @@ -1 +1 @@ -!function($,e){var t=new acf.Model({id:"fieldGroupManager",events:{"submit #post":"onSubmit",'click a[href="#"]':"onClick","click .submitdelete":"onClickTrash"},filters:{find_fields_args:"filterFindFieldArgs"},onSubmit:function(e,t){var i=$("#titlewrap #title");i.val()||(e.preventDefault(),acf.validation.unlockForm(t),alert(acf.__("Field group title is required")),i.focus())},onClick:function(e){e.preventDefault()},onClickTrash:function(e){confirm(acf.__("Move to trash. Are you sure?"))||e.preventDefault()},filterFindFieldArgs:function(e){return e.visible=!0,e}}),i=new acf.Model({id:"screenOptionsManager",wait:"prepare",events:{change:"onChange"},initialize:function(){var e=$("#adv-settings"),t=$("#acf-append-show-on-screen");e.find(".metabox-prefs").append(t.html()),e.find(".metabox-prefs br").remove(),t.remove(),this.$el=$("#acf-field-key-hide"),this.addEvents(),this.render()},isChecked:function(){return this.$el.prop("checked")},onChange:function(e,t){var i=this.isChecked()?1:0;acf.updateUserSetting("show_field_keys",i),this.render()},render:function(){this.isChecked()?$("#acf-field-group-fields").addClass("show-field-keys"):$("#acf-field-group-fields").removeClass("show-field-keys")}}),n=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){if(e.has("append")){var t=e.get("append"),i=e.$el.siblings('[data-name="'+t+'"]').first();if(i.length){var n=i.children(".acf-input"),a=n.children("ul");a.length||(n.wrapInner(''),a=n.children("ul"));var c=e.$(".acf-input").html(),l=$("
  • "+c+"
  • ");a.append(l),a.attr("data-cols",a.children().length),e.remove()}}}})}(jQuery),function($,e){acf.FieldObject=acf.Model.extend({eventScope:".acf-field-object",events:{"click .edit-field":"onClickEdit","click .delete-field":"onClickDelete","click .duplicate-field":"duplicate","click .move-field":"move","change .field-type":"onChangeType","change .field-required":"onChangeRequired","blur .field-label":"onChangeLabel","blur .field-name":"onChangeName",change:"onChange",changed:"onChanged"},data:{id:0,key:"",type:""},setup:function(e){this.$el=e,this.inherit(e),this.prop("ID"),this.prop("parent"),this.prop("menu_order")},$input:function(e){return $("#"+this.getInputId()+"-"+e)},$settings:function(){return this.$(".acf-field-settings:first > .acf-field")},$setting:function(e){return this.$(".acf-field-settings:first > .acf-field-setting-"+e)},getParent:function(){return acf.getFieldObjects({child:this.$el,limit:1}).pop()},getParents:function(){return acf.getFieldObjects({child:this.$el})},getFields:function(){return acf.getFieldObjects({parent:this.$el})},getInputName:function(){return"acf_fields["+this.get("id")+"]"},getInputId:function(){return"acf_fields-"+this.get("id")},newInput:function(e,t){var i=this.getInputId(),n=this.getInputName();e&&(i+="-"+e,n+="["+e+"]");var a=$("").attr({id:i,name:n,value:t});return this.$("> .meta").append(a),a},getProp:function(e){if(this.has(e))return this.get(e);var t=this.$input(e),i=t.length?t.val():null;return this.set(e,i,!0),i},setProp:function(e,t){var i=this.$input(e),n=i.val();return i.length||(i=this.newInput(e,t)),null===t?i.remove():i.val(t),this.has(e)?this.set(e,t):this.set(e,t,!0),this},prop:function(e,t){return void 0!==t?this.setProp(e,t):this.getProp(e)},props:function(e){Object.keys(e).map(function(t){this.setProp(t,e[t])},this)},getLabel:function(){var e=this.prop("label");return""===e&&(e=acf.__("(no label)")),e},getName:function(){return this.prop("name")},getType:function(){return this.prop("type")},getTypeLabel:function(){var e=this.prop("type"),t=acf.get("fieldTypes");return t[e]?t[e].label:e},getKey:function(){return this.prop("key")},initialize:function(){},render:function(){var e=this.$(".handle:first"),t=this.prop("menu_order"),i=this.getLabel(),n=this.prop("name"),a=this.getTypeLabel(),c=this.prop("key"),l=this.$input("required").prop("checked");e.find(".acf-icon").html(parseInt(t)+1),l&&(i+=' *'),e.find(".li-field-label strong a").html(i),e.find(".li-field-name").text(n),e.find(".li-field-type").text(a),e.find(".li-field-key").text(c),acf.doAction("render_field_object",this)},refresh:function(){acf.doAction("refresh_field_object",this)},isOpen:function(){return this.$el.hasClass("open")},onClickEdit:function(e){this.isOpen()?this.close():this.open()},open:function(){var e=this.$el.children(".settings");e.slideDown(),this.$el.addClass("open"),acf.doAction("open_field_object",this),this.trigger("openFieldObject"),acf.doAction("show",e)},close:function(){var e=this.$el.children(".settings");e.slideUp(),this.$el.removeClass("open"),acf.doAction("close_field_object",this),this.trigger("closeFieldObject"),acf.doAction("hide",e)},serialize:function(){return acf.serialize(this.$el,this.getInputName())},save:function(e){e=e||"settings","settings"!==this.getProp("save")&&(this.setProp("save",e),this.$el.attr("data-save",e),acf.doAction("save_field_object",this,e))},submit:function(){var e=this.getInputName(),t=this.get("save");this.isOpen()&&this.close(),"settings"==t||("meta"==t?this.$('> .settings [name^="'+e+'"]').remove():this.$('[name^="'+e+'"]').remove()),acf.doAction("submit_field_object",this)},onChange:function(){this.save(),acf.doAction("change_field_object",this)},onChanged:function(e,t,i){"save"!=t&&(["menu_order","parent"].indexOf(t)>-1?this.save("meta"):this.save(),["menu_order","label","required","name","type","key"].indexOf(t)>-1&&this.render(),acf.doAction("change_field_object_"+t,this,i))},onChangeLabel:function(e,t){var i=t.val();if(this.set("label",i),""==this.prop("name")){var n=acf.applyFilters("generate_field_object_name",acf.strSanitize(i),this);this.prop("name",n)}},onChangeName:function(e,t){var i=t.val();this.set("name",i),"field_"===i.substr(0,6)&&alert(acf.__('The string "field_" may not be used at the start of a field name'))},onChangeRequired:function(e,t){var i=t.prop("checked")?1:0;this.set("required",i)},delete:function(e){e=acf.parseArgs(e,{animate:!0});var t=this.prop("ID");if(t){var i=$("#_acf_delete_fields"),n=i.val()+"|"+t;i.val(n)}acf.doAction("delete_field_object",this),e.animate?this.removeAnimate():this.remove()},onClickDelete:function(e,t){this.$el.addClass("-hover");var i=this,n=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){i.delete(!0)},cancel:function(){i.$el.removeClass("-hover")}})},removeAnimate:function(){var e=this,t=this.$el.parent(),i=acf.findFieldObjects({sibling:this.$el});acf.remove({target:this.$el,endHeight:i.length?0:50,complete:function(){e.remove(),acf.doAction("removed_field_object",e,t)}}),acf.doAction("remove_field_object",e,t)},duplicate:function(){var e=acf.uniqid("field_"),t=acf.duplicate({target:this.$el,search:this.get("id"),replace:e});t.attr("data-key",e);var i=acf.getFieldObject(t);this.isOpen()?this.close():i.open();var n=i.$setting("label input");setTimeout(function(){n.focus()},251);var a=i.prop("label"),c=i.prop("name"),l=c.split("_").pop(),o=acf.__("copy");if($.isNumeric(l)){var r=1*l+1;a=a.replace(l,r),c=c.replace(l,r)}else if(0===l.indexOf(o)){var r=1*l.replace(o,"");r=r?r+1:2,a=a.replace(l,o+r),c=c.replace(l,o+r)}else a+=" ("+o+")",c+="_"+o;i.prop("ID",0),i.prop("label",a),i.prop("name",c),i.prop("key",e),acf.doAction("duplicate_field_object",this,i),acf.doAction("append_field_object",i)},wipe:function(){var e=this.get("id"),t=this.get("key"),i=acf.uniqid("field_");acf.rename({target:this.$el,search:e,replace:i}),this.set("id",i),this.set("prevId",e),this.set("prevKey",t),this.prop("key",i),this.prop("ID",0),this.$el.attr("data-key",i),this.$el.attr("data-id",i),acf.doAction("wipe_field_object",this)},move:function(){var e=function(e){return"settings"==e.get("save")},t=e(this);if(t||acf.getFieldObjects({parent:this.$el}).map(function(i){t=e(i)||i.changed}),t)return void alert(acf.__("This field cannot be moved until its changes have been saved"));var i=this.prop("ID"),n=this,a=!1,c=function(e){a.loading(!1),a.content(e),a.on("submit","form",l)},l=function(e,t){e.preventDefault(),acf.startButtonLoading(a.$(".button"));var n={action:"acf/field_group/move_field",field_id:i,field_group_id:a.$("select").val()};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:o})},o=function(e){a.content(e),n.removeAnimate()};!function(){a=acf.newPopup({title:acf.__("Move Custom Field"),loading:!0,width:"300px"});var e={action:"acf/field_group/move_field",field_id:i};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:c})}()},onChangeType:function(e,t){this.changeTimeout&&clearTimeout(this.changeTimeout),this.changeTimeout=this.setTimeout(function(){this.changeType(t.val())},300)},changeType:function(e){var t=this.prop("type"),i=acf.strSlugify("acf-field-object-"+t),n=acf.strSlugify("acf-field-object-"+e);this.$el.removeClass(i).addClass(n),this.$el.attr("data-type",e),this.$el.data("type",e),this.has("xhr")&&this.get("xhr").abort();var a=this.$("> .settings > table > tbody"),c=a.children('[data-setting="'+t+'"]');if(this.set("settings-"+t,c),c.detach(),this.has("settings-"+e)){var l=this.get("settings-"+e);return this.$setting("conditional_logic").before(l),void this.set("type",e)}var o=$('
    ');this.$setting("conditional_logic").before(o);var r={action:"acf/field_group/render_field_settings",field:this.serialize(),prefix:this.getInputName()},d=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"html",context:this,success:function(e){e&&(o.after(e),acf.doAction("append",a))},complete:function(){o.remove(),this.set("type",e)}});this.set("xhr",d)},updateParent:function(){var e=acf.get("post_id"),t=this.getParent();t&&(e=t.prop("ID")||t.prop("key")),this.prop("parent",e)}})}(jQuery),function($,e){var t=function(e){return acf.strPascalCase(e||"")+"FieldSetting"};acf.registerFieldSetting=function(e){var i=e.prototype,n=t(i.type+" "+i.name);this.models[n]=e},acf.newFieldSetting=function(e){var i=e.get("setting")||"",n=e.get("name")||"",a=t(i+" "+n),c=acf.models[a]||null;return null!==c&&new c(e)},acf.getFieldSetting=function(e){return e instanceof jQuery&&(e=acf.getField(e)),e.setting};var i=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){e.setting=acf.newFieldSetting(e)}});acf.FieldSetting=acf.Model.extend({field:!1,type:"",name:"",wait:"ready",eventScope:".acf-field",events:{change:"render"},setup:function(e){var t=e.$el;this.$el=t,this.field=e,this.$fieldObject=t.closest(".acf-field-object"),this.fieldObject=acf.getFieldObject(this.$fieldObject),$.extend(this.data,e.data)},initialize:function(){this.render()},render:function(){}});var n=acf.FieldSetting.extend({type:"",name:"",render:function(){var e=this.$('input[type="radio"]:checked');"other"!=e.val()&&this.$('input[type="text"]').val(e.val())}}),a=n.extend({type:"date_picker",name:"display_format"}),c=n.extend({type:"date_picker",name:"return_format"});acf.registerFieldSetting(a),acf.registerFieldSetting(c);var l=n.extend({type:"date_time_picker",name:"display_format"}),o=n.extend({type:"date_time_picker",name:"return_format"});acf.registerFieldSetting(l),acf.registerFieldSetting(o);var r=n.extend({type:"time_picker",name:"display_format"}),d=n.extend({name:"time_picker",name:"return_format"});acf.registerFieldSetting(r),acf.registerFieldSetting(d)}(jQuery),function($,e){var t=acf.FieldSetting.extend({type:"",name:"conditional_logic",events:{"change .conditions-toggle":"onChangeToggle","click .add-conditional-group":"onClickAddGroup","focus .condition-rule-field":"onFocusField","change .condition-rule-field":"onChangeField","change .condition-rule-operator":"onChangeOperator","click .add-conditional-rule":"onClickAdd","click .remove-conditional-rule":"onClickRemove"},$rule:!1,scope:function(e){return this.$rule=e,this},ruleData:function(e,t){return this.$rule.data.apply(this.$rule,arguments)},$input:function(e){return this.$rule.find(".condition-rule-"+e)},$td:function(e){return this.$rule.find("td."+e)},$toggle:function(){return this.$(".conditions-toggle")},$control:function(){return this.$(".rule-groups")},$groups:function(){return this.$(".rule-group")},$rules:function(){return this.$(".rule")},open:function(){var e=this.$control();e.show(),acf.enable(e)},close:function(){var e=this.$control();e.hide(),acf.disable(e)},render:function(){this.$toggle().prop("checked")?(this.renderRules(),this.open()):this.close()},renderRules:function(){var e=this;this.$rules().each(function(){e.renderRule($(this))})},renderRule:function(e){this.scope(e),this.renderField(),this.renderOperator(),this.renderValue()},renderField:function(){var e=[],t=[],i=this.fieldObject.cid,n=this.$input("field");acf.getFieldObjects().map(function(t){var n={id:t.getKey(),text:t.getLabel()};t.cid===i&&(n.text+=acf.__("(this field)"),n.disabled=!0),acf.getConditionTypes({fieldType:t.getType()}).length||(n.disabled=!0);var a=t.getParents().length;n.text="- ".repeat(a)+n.text,e.push(n)}),e.length||e.push({id:"",text:acf.__("No toggle fields available")}),acf.renderSelect(n,e),this.ruleData("field",n.val())},renderOperator:function(){if(this.ruleData("field")){var e=this.$input("operator"),t=e.val(),i=[];null===e.val()&&acf.renderSelect(e,[{id:this.ruleData("operator"),text:""}]);var n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n);acf.getConditionTypes({fieldType:a.getType()}).map(function(e){i.push({id:e.prototype.operator,text:acf.strEscape(e.prototype.label)})}),acf.renderSelect(e,i),this.ruleData("operator",e.val())}},renderValue:function(){if(this.ruleData("field")&&this.ruleData("operator")){var e=this.$input("value"),t=this.$td("value"),i=e.val(),n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n),c=acf.getConditionTypes({fieldType:a.getType(),operator:this.ruleData("operator")}),l=c[0].prototype,o=l.choices(a);if(o instanceof Array){var r=$("");acf.renderSelect(r,o)}else var r=$(o);e.detach(),t.html(r),setTimeout(function(){["class","name","id"].map(function(t){r.attr(t,e.attr(t))})},0),r.prop("disabled")||acf.val(r,i,!0),this.ruleData("value",r.val())}},onChangeToggle:function(){this.render()},onClickAddGroup:function(e,t){this.addGroup()},addGroup:function(){var e=this.$(".rule-group:last"),t=acf.duplicate(e);t.find("h4").text(acf.__("or")),t.find("tr").not(":first").remove(),this.fieldObject.save()},onFocusField:function(e,t){this.renderField()},onChangeField:function(e,t){this.scope(t.closest(".rule")),this.ruleData("field",t.val()),this.renderOperator(),this.renderValue()},onChangeOperator:function(e,t){this.scope(t.closest(".rule")),this.ruleData("operator",t.val()),this.renderValue()},onClickAdd:function(e,t){var i=acf.duplicate(t.closest(".rule"));this.renderRule(i)},onClickRemove:function(e,t){var i=t.closest(".rule");this.fieldObject.save(),0==i.siblings(".rule").length&&i.closest(".rule-group").remove(),i.remove()}});acf.registerFieldSetting(t);var i=new acf.Model({actions:{duplicate_field_objects:"onDuplicateFieldObjects"},onDuplicateFieldObjects:function(e,t,i){var n={},a=$();e.map(function(e){n[e.get("prevKey")]=e.get("key"),a=a.add(e.$(".condition-rule-field"))}),a.each(function(){var e=$(this),t=e.val();t&&n[t]&&(e.find("option:selected").attr("value",n[t]),e.val(n[t]))})}})}(jQuery),function($,e){acf.findFieldObject=function(e){return acf.findFieldObjects({key:e,limit:1})},acf.findFieldObjects=function(e){e=e||{};var t=".acf-field-object",i=!1;return e=acf.parseArgs(e,{id:"",key:"",type:"",limit:!1,list:null,parent:!1,sibling:!1,child:!1}),e.id&&(t+='[data-id="'+e.id+'"]'),e.key&&(t+='[data-key="'+e.key+'"]'),e.type&&(t+='[data-type="'+e.type+'"]'),i=e.list?e.list.children(t):e.parent?e.parent.find(t):e.sibling?e.sibling.siblings(t):e.child?e.child.parents(t):$(t),e.limit&&(i=i.slice(0,e.limit)),i},acf.getFieldObject=function(e){"string"==typeof e&&(e=acf.findFieldObject(e));var t=e.data("acf");return t||(t=acf.newFieldObject(e)),t},acf.getFieldObjects=function(e){var t=acf.findFieldObjects(e),i=[];return t.each(function(){var e=acf.getFieldObject($(this));i.push(e)}),i},acf.newFieldObject=function(e){var t=new acf.FieldObject(e);return acf.doAction("new_field_object",t),t};var t=new acf.Model({priority:5,initialize:function(){["prepare","ready","append","remove"].map(function(e){this.addFieldActions(e)},this)},addFieldActions:function(e){var t=e+"_field_objects",i=e+"_field_object",n=e+"FieldObject",a=function(e){var i=acf.getFieldObjects({parent:e});if(i.length){var n=acf.arrayArgs(arguments);n.splice(0,1,t,i),acf.doAction.apply(null,n)}},c=function(e){var t=acf.arrayArgs(arguments);t.unshift(i),e.map(function(e){t[1]=e,acf.doAction.apply(null,t)})},l=function(e){var t=acf.arrayArgs(arguments);t.unshift(i),["type","name","key"].map(function(n){t[0]=i+"/"+n+"="+e.get(n),acf.doAction.apply(null,t)}),t.splice(0,2),e.trigger(n,t)};acf.addAction(e,a,5),acf.addAction(t,c,5),acf.addAction(i,l,5)}}),i=new acf.Model({id:"fieldManager",events:{"submit #post":"onSubmit","mouseenter .acf-field-list":"onHoverSortable","click .add-field":"onClickAdd"},actions:{removed_field_object:"onRemovedField",sortstop_field_object:"onReorderField",delete_field_object:"onDeleteField",change_field_object_type:"onChangeFieldType",duplicate_field_object:"onDuplicateField"},onSubmit:function(e,t){acf.getFieldObjects().map(function(e){e.submit()})},setFieldMenuOrder:function(e){this.renderFields(e.$el.parent())},onHoverSortable:function(e,t){t.hasClass("ui-sortable")||t.sortable({handle:".acf-sortable-handle",connectWith:".acf-field-list",start:function(e,i){var n=acf.getFieldObject(i.item);i.placeholder.height(i.item.height()),acf.doAction("sortstart_field_object",n,t)},update:function(e,i){var n=acf.getFieldObject(i.item);acf.doAction("sortstop_field_object",n,t)}})},onRemovedField:function(e,t){this.renderFields(t)},onReorderField:function(e,t){e.updateParent(),this.renderFields(t)},onDeleteField:function(e){e.getFields().map(function(e){e.delete({animate:!1})})},onChangeFieldType:function(e){},onDuplicateField:function(e,t){var i=t.getFields();i.length&&(i.map(function(e){e.wipe(),e.updateParent()}),acf.doAction("duplicate_field_objects",i,t,e)),this.setFieldMenuOrder(t)},renderFields:function(e){var t=acf.getFieldObjects({list:e});if(!t.length)return void e.addClass("-empty");e.removeClass("-empty"),t.map(function(e,t){e.prop("menu_order",t)})},onClickAdd:function(e,t){var i=t.closest(".acf-tfoot").siblings(".acf-field-list");this.addField(i)},addField:function(e){var t=$("#tmpl-acf-field").html(),i=$(t),n=i.data("id"),a=acf.uniqid("field_"),c=acf.duplicate({target:i,search:n,replace:a,append:function(t,i){e.append(i)}}),l=acf.getFieldObject(c);l.prop("key",a),l.prop("ID",0),l.prop("label",""),l.prop("name",""),c.attr("data-key",a),c.attr("data-id",a),l.updateParent();var o=l.$input("label");setTimeout(function(){o.focus()},251),l.open(),this.renderFields(e),acf.doAction("add_field_object",l),acf.doAction("append_field_object",l)}})}(jQuery),function($,e){var t=new acf.Model({id:"locationManager",wait:"ready",events:{"click .add-location-rule":"onClickAddRule","click .add-location-group":"onClickAddGroup","click .remove-location-rule":"onClickRemoveRule","change .refresh-location-rule":"onChangeRemoveRule"},initialize:function(){this.$el=$("#acf-field-group-locations")},onClickAddRule:function(e,t){this.addRule(t.closest("tr"))},onClickRemoveRule:function(e,t){this.removeRule(t.closest("tr"))},onChangeRemoveRule:function(e,t){this.changeRule(t.closest("tr"))},onClickAddGroup:function(e,t){this.addGroup()},addRule:function(e){acf.duplicate(e)},removeRule:function(e){0==e.siblings("tr").length?e.closest(".rule-group").remove():e.remove()},changeRule:function(e){var t=e.closest(".rule-group"),i=e.find("td.param select").attr("name").replace("[param]",""),n={};n.action="acf/field_group/render_location_rule",n.rule=acf.serialize(e,i),n.rule.id=e.data("id"),n.rule.group=t.data("id"),acf.disable(e.find("td.value")),$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:function(t){t&&e.replaceWith(t)}})},addGroup:function(){var e=this.$(".rule-group:last");$group2=acf.duplicate(e),$group2.find("h4").text(acf.__("or")),$group2.find("tr").not(":first").remove()}})}(jQuery),function($,e){var t=acf.getCompatibility(acf);t.field_group={save_field:function(e,t){t=void 0!==t?t:"settings",acf.getFieldObject(e).save(t)},delete_field:function(e,t){t=void 0===t||t,acf.getFieldObject(e).delete({animate:t})},update_field_meta:function(e,t,i){acf.getFieldObject(e).prop(t,i)},delete_field_meta:function(e,t){acf.getFieldObject(e).prop(t,null)}},t.field_group.field_object=acf.model.extend({type:"",o:{},$field:null,$settings:null,tag:function(e){var t=this.type,i=e.split("_");return i.splice(1,0,"field"),e=i.join("_"),t&&(e+="/type="+t),e},selector:function(){var e=".acf-field-object",t=this.type;return t&&(e+="-"+t,e=acf.str_replace("_","-",e)),e},_add_action:function(e,t){var i=this;acf.add_action(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_filter:function(e,t){var i=this;acf.add_filter(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_event:function(e,t){var i=this,n=e.substr(0,e.indexOf(" ")),a=e.substr(e.indexOf(" ")+1),c=this.selector();$(document).on(n,c+" "+a,function(e){e.$el=$(this),e.$field=e.$el.closest(".acf-field-object"),i.set("$field",e.$field),i[t].apply(i,[e])})},_set_$field:function(){this.o=this.$field.data(),this.$settings=this.$field.find("> .settings > table > tbody"),this.focus()},focus:function(){},setting:function(e){return this.$settings.find("> .acf-field-setting-"+e)}});var i=new acf.Model({actions:{open_field_object:"onOpenFieldObject",close_field_object:"onCloseFieldObject",add_field_object:"onAddFieldObject",duplicate_field_object:"onDuplicateFieldObject",delete_field_object:"onDeleteFieldObject",change_field_object_type:"onChangeFieldObjectType",change_field_object_label:"onChangeFieldObjectLabel",change_field_object_name:"onChangeFieldObjectName",change_field_object_parent:"onChangeFieldObjectParent",sortstop_field_object:"onChangeFieldObjectParent"},onOpenFieldObject:function(e){acf.doAction("open_field",e.$el),acf.doAction("open_field/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onCloseFieldObject:function(e){acf.doAction("close_field",e.$el),acf.doAction("close_field/type="+e.get("type"),e.$el)},onAddFieldObject:function(e){acf.doAction("add_field",e.$el),acf.doAction("add_field/type="+e.get("type"),e.$el)},onDuplicateFieldObject:function(e){acf.doAction("duplicate_field",e.$el),acf.doAction("duplicate_field/type="+e.get("type"),e.$el)},onDeleteFieldObject:function(e){acf.doAction("delete_field",e.$el),acf.doAction("delete_field/type="+e.get("type"),e.$el)},onChangeFieldObjectType:function(e){acf.doAction("change_field_type",e.$el),acf.doAction("change_field_type/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onChangeFieldObjectLabel:function(e){acf.doAction("change_field_label",e.$el),acf.doAction("change_field_label/type="+e.get("type"),e.$el)},onChangeFieldObjectName:function(e){acf.doAction("change_field_name",e.$el),acf.doAction("change_field_name/type="+e.get("type"),e.$el)},onChangeFieldObjectParent:function(e){acf.doAction("update_field_parent",e.$el)}})}(jQuery); \ No newline at end of file +!function($,e){var t=new acf.Model({id:"fieldGroupManager",events:{"submit #post":"onSubmit",'click a[href="#"]':"onClick","click .submitdelete":"onClickTrash"},filters:{find_fields_args:"filterFindFieldArgs"},onSubmit:function(e,t){var i=$("#titlewrap #title");i.val()||(e.preventDefault(),acf.validation.unlockForm(t),alert(acf.__("Field group title is required")),i.focus())},onClick:function(e){e.preventDefault()},onClickTrash:function(e){confirm(acf.__("Move to trash. Are you sure?"))||e.preventDefault()},filterFindFieldArgs:function(e){return e.visible=!0,e}}),i=new acf.Model({id:"screenOptionsManager",wait:"prepare",events:{change:"onChange"},initialize:function(){var e=$("#adv-settings"),t=$("#acf-append-show-on-screen");e.find(".metabox-prefs").append(t.html()),e.find(".metabox-prefs br").remove(),t.remove(),this.$el=$("#acf-field-key-hide"),this.render()},isChecked:function(){return this.$el.prop("checked")},onChange:function(e,t){var i=this.isChecked()?1:0;acf.updateUserSetting("show_field_keys",i),this.render()},render:function(){this.isChecked()?$("#acf-field-group-fields").addClass("show-field-keys"):$("#acf-field-group-fields").removeClass("show-field-keys")}}),n=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){if(e.has("append")){var t=e.get("append"),i=e.$el.siblings('[data-name="'+t+'"]').first();if(i.length){var n=i.children(".acf-input"),a=n.children("ul");a.length||(n.wrapInner(''),a=n.children("ul"));var c=e.$(".acf-input").html(),l=$("
  • "+c+"
  • ");a.append(l),a.attr("data-cols",a.children().length),e.remove()}}}})}(jQuery),function($,e){acf.FieldObject=acf.Model.extend({eventScope:".acf-field-object",events:{"click .edit-field":"onClickEdit","click .delete-field":"onClickDelete","click .duplicate-field":"duplicate","click .move-field":"move","change .field-type":"onChangeType","change .field-required":"onChangeRequired","blur .field-label":"onChangeLabel","blur .field-name":"onChangeName",change:"onChange",changed:"onChanged"},data:{id:0,key:"",type:""},setup:function(e){this.$el=e,this.inherit(e),this.prop("ID"),this.prop("parent"),this.prop("menu_order")},$input:function(e){return $("#"+this.getInputId()+"-"+e)},$meta:function(){return this.$(".meta:first")},$handle:function(){return this.$(".handle:first")},$settings:function(){return this.$(".settings:first")},$setting:function(e){return this.$(".acf-field-settings:first > .acf-field-setting-"+e)},getParent:function(){return acf.getFieldObjects({child:this.$el,limit:1}).pop()},getParents:function(){return acf.getFieldObjects({child:this.$el})},getFields:function(){return acf.getFieldObjects({parent:this.$el})},getInputName:function(){return"acf_fields["+this.get("id")+"]"},getInputId:function(){return"acf_fields-"+this.get("id")},newInput:function(e,t){var i=this.getInputId(),n=this.getInputName();e&&(i+="-"+e,n+="["+e+"]");var a=$("").attr({id:i,name:n,value:t});return this.$("> .meta").append(a),a},getProp:function(e){if(this.has(e))return this.get(e);var t=this.$input(e),i=t.length?t.val():null;return this.set(e,i,!0),i},setProp:function(e,t){var i=this.$input(e),n=i.val();return i.length||(i=this.newInput(e,t)),null===t?i.remove():i.val(t),this.has(e)?this.set(e,t):this.set(e,t,!0),this},prop:function(e,t){return void 0!==t?this.setProp(e,t):this.getProp(e)},props:function(e){Object.keys(e).map(function(t){this.setProp(t,e[t])},this)},getLabel:function(){var e=this.prop("label");return""===e&&(e=acf.__("(no label)")),e},getName:function(){return this.prop("name")},getType:function(){return this.prop("type")},getTypeLabel:function(){var e=this.prop("type"),t=acf.get("fieldTypes");return t[e]?t[e].label:e},getKey:function(){return this.prop("key")},initialize:function(){},render:function(){var e=this.$(".handle:first"),t=this.prop("menu_order"),i=this.getLabel(),n=this.prop("name"),a=this.getTypeLabel(),c=this.prop("key"),l=this.$input("required").prop("checked");e.find(".acf-icon").html(parseInt(t)+1),l&&(i+=' *'),e.find(".li-field-label strong a").html(i),e.find(".li-field-name").text(n),e.find(".li-field-type").text(a),e.find(".li-field-key").text(c),acf.doAction("render_field_object",this)},refresh:function(){acf.doAction("refresh_field_object",this)},isOpen:function(){return this.$el.hasClass("open")},onClickEdit:function(e){this.isOpen()?this.close():this.open()},open:function(){var e=this.$el.children(".settings");e.slideDown(),this.$el.addClass("open"),acf.doAction("open_field_object",this),this.trigger("openFieldObject"),acf.doAction("show",e)},close:function(){var e=this.$el.children(".settings");e.slideUp(),this.$el.removeClass("open"),acf.doAction("close_field_object",this),this.trigger("closeFieldObject"),acf.doAction("hide",e)},serialize:function(){return acf.serialize(this.$el,this.getInputName())},save:function(e){e=e||"settings","settings"!==this.getProp("save")&&(this.setProp("save",e),this.$el.attr("data-save",e),acf.doAction("save_field_object",this,e))},submit:function(){var e=this.getInputName(),t=this.get("save");this.isOpen()&&this.close(),"settings"==t||("meta"==t?this.$('> .settings [name^="'+e+'"]').remove():this.$('[name^="'+e+'"]').remove()),acf.doAction("submit_field_object",this)},onChange:function(e,t){this.save(),acf.doAction("change_field_object",this)},onChanged:function(e,t,i,n){"save"!=i&&(["menu_order","parent"].indexOf(i)>-1?this.save("meta"):this.save(),["menu_order","label","required","name","type","key"].indexOf(i)>-1&&this.render(),acf.doAction("change_field_object_"+i,this,n))},onChangeLabel:function(e,t){var i=t.val();if(this.set("label",i),""==this.prop("name")){var n=acf.applyFilters("generate_field_object_name",acf.strSanitize(i),this);this.prop("name",n)}},onChangeName:function(e,t){var i=t.val();this.set("name",i),"field_"===i.substr(0,6)&&alert(acf.__('The string "field_" may not be used at the start of a field name'))},onChangeRequired:function(e,t){var i=t.prop("checked")?1:0;this.set("required",i)},delete:function(e){e=acf.parseArgs(e,{animate:!0});var t=this.prop("ID");if(t){var i=$("#_acf_delete_fields"),n=i.val()+"|"+t;i.val(n)}acf.doAction("delete_field_object",this),e.animate?this.removeAnimate():this.remove()},onClickDelete:function(e,t){this.$el.addClass("-hover");var i=this,n=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){i.delete(!0)},cancel:function(){i.$el.removeClass("-hover")}})},removeAnimate:function(){var e=this,t=this.$el.parent(),i=acf.findFieldObjects({sibling:this.$el});acf.remove({target:this.$el,endHeight:i.length?0:50,complete:function(){e.remove(),acf.doAction("removed_field_object",e,t)}}),acf.doAction("remove_field_object",e,t)},duplicate:function(){var e=acf.uniqid("field_"),t=acf.duplicate({target:this.$el,search:this.get("id"),replace:e});t.attr("data-key",e);var i=acf.getFieldObject(t);this.isOpen()?this.close():i.open();var n=i.$setting("label input");setTimeout(function(){n.focus()},251);var a=i.prop("label"),c=i.prop("name"),l=c.split("_").pop(),o=acf.__("copy");if($.isNumeric(l)){var r=1*l+1;a=a.replace(l,r),c=c.replace(l,r)}else if(0===l.indexOf(o)){var r=1*l.replace(o,"");r=r?r+1:2,a=a.replace(l,o+r),c=c.replace(l,o+r)}else a+=" ("+o+")",c+="_"+o;i.prop("ID",0),i.prop("label",a),i.prop("name",c),i.prop("key",e),acf.doAction("duplicate_field_object",this,i),acf.doAction("append_field_object",i)},wipe:function(){var e=this.get("id"),t=this.get("key"),i=acf.uniqid("field_");acf.rename({target:this.$el,search:e,replace:i}),this.set("id",i),this.set("prevId",e),this.set("prevKey",t),this.prop("key",i),this.prop("ID",0),this.$el.attr("data-key",i),this.$el.attr("data-id",i),acf.doAction("wipe_field_object",this)},move:function(){var e=function(e){return"settings"==e.get("save")},t=e(this);if(t||acf.getFieldObjects({parent:this.$el}).map(function(i){t=e(i)||i.changed}),t)return void alert(acf.__("This field cannot be moved until its changes have been saved"));var i=this.prop("ID"),n=this,a=!1,c=function(e){a.loading(!1),a.content(e),a.on("submit","form",l)},l=function(e,t){e.preventDefault(),acf.startButtonLoading(a.$(".button"));var n={action:"acf/field_group/move_field",field_id:i,field_group_id:a.$("select").val()};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:o})},o=function(e){a.content(e),n.removeAnimate()};!function(){a=acf.newPopup({title:acf.__("Move Custom Field"),loading:!0,width:"300px"});var e={action:"acf/field_group/move_field",field_id:i};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:c})}()},onChangeType:function(e,t){this.changeTimeout&&clearTimeout(this.changeTimeout),this.changeTimeout=this.setTimeout(function(){this.changeType(t.val())},300)},changeType:function(e){var t=this.prop("type"),i=acf.strSlugify("acf-field-object-"+t),n=acf.strSlugify("acf-field-object-"+e);this.$el.removeClass(i).addClass(n),this.$el.attr("data-type",e),this.$el.data("type",e),this.has("xhr")&&this.get("xhr").abort();var a=this.$("> .settings > table > tbody"),c=a.children('[data-setting="'+t+'"]');if(this.set("settings-"+t,c),c.detach(),this.has("settings-"+e)){var l=this.get("settings-"+e);return this.$setting("conditional_logic").before(l),void this.set("type",e)}var o=$('
    ');this.$setting("conditional_logic").before(o);var r={action:"acf/field_group/render_field_settings",field:this.serialize(),prefix:this.getInputName()},d=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"html",context:this,success:function(e){e&&(o.after(e),acf.doAction("append",a))},complete:function(){o.remove(),this.set("type",e)}});this.set("xhr",d)},updateParent:function(){var e=acf.get("post_id"),t=this.getParent();t&&(e=t.prop("ID")||t.prop("key")),this.prop("parent",e)}})}(jQuery),function($,e){var t=function(e){return acf.strPascalCase(e||"")+"FieldSetting"};acf.registerFieldSetting=function(e){var i=e.prototype,n=t(i.type+" "+i.name);this.models[n]=e},acf.newFieldSetting=function(e){var i=e.get("setting")||"",n=e.get("name")||"",a=t(i+" "+n),c=acf.models[a]||null;return null!==c&&new c(e)},acf.getFieldSetting=function(e){return e instanceof jQuery&&(e=acf.getField(e)),e.setting};var i=new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){e.setting=acf.newFieldSetting(e)}});acf.FieldSetting=acf.Model.extend({field:!1,type:"",name:"",wait:"ready",eventScope:".acf-field",events:{change:"render"},setup:function(e){var t=e.$el;this.$el=t,this.field=e,this.$fieldObject=t.closest(".acf-field-object"),this.fieldObject=acf.getFieldObject(this.$fieldObject),$.extend(this.data,e.data)},initialize:function(){this.render()},render:function(){}});var n=acf.FieldSetting.extend({type:"",name:"",render:function(){var e=this.$('input[type="radio"]:checked');"other"!=e.val()&&this.$('input[type="text"]').val(e.val())}}),a=n.extend({type:"date_picker",name:"display_format"}),c=n.extend({type:"date_picker",name:"return_format"});acf.registerFieldSetting(a),acf.registerFieldSetting(c);var l=n.extend({type:"date_time_picker",name:"display_format"}),o=n.extend({type:"date_time_picker",name:"return_format"});acf.registerFieldSetting(l),acf.registerFieldSetting(o);var r=n.extend({type:"time_picker",name:"display_format"}),d=n.extend({name:"time_picker",name:"return_format"});acf.registerFieldSetting(r),acf.registerFieldSetting(d)}(jQuery),function($,e){var t=acf.FieldSetting.extend({type:"",name:"conditional_logic",events:{"change .conditions-toggle":"onChangeToggle","click .add-conditional-group":"onClickAddGroup","focus .condition-rule-field":"onFocusField","change .condition-rule-field":"onChangeField","change .condition-rule-operator":"onChangeOperator","click .add-conditional-rule":"onClickAdd","click .remove-conditional-rule":"onClickRemove"},$rule:!1,scope:function(e){return this.$rule=e,this},ruleData:function(e,t){return this.$rule.data.apply(this.$rule,arguments)},$input:function(e){return this.$rule.find(".condition-rule-"+e)},$td:function(e){return this.$rule.find("td."+e)},$toggle:function(){return this.$(".conditions-toggle")},$control:function(){return this.$(".rule-groups")},$groups:function(){return this.$(".rule-group")},$rules:function(){return this.$(".rule")},open:function(){var e=this.$control();e.show(),acf.enable(e)},close:function(){var e=this.$control();e.hide(),acf.disable(e)},render:function(){this.$toggle().prop("checked")?(this.renderRules(),this.open()):this.close()},renderRules:function(){var e=this;this.$rules().each(function(){e.renderRule($(this))})},renderRule:function(e){this.scope(e),this.renderField(),this.renderOperator(),this.renderValue()},renderField:function(){var e=[],t=[],i=this.fieldObject.cid,n=this.$input("field");acf.getFieldObjects().map(function(t){var n={id:t.getKey(),text:t.getLabel()};t.cid===i&&(n.text+=acf.__("(this field)"),n.disabled=!0),acf.getConditionTypes({fieldType:t.getType()}).length||(n.disabled=!0);var a=t.getParents().length;n.text="- ".repeat(a)+n.text,e.push(n)}),e.length||e.push({id:"",text:acf.__("No toggle fields available")}),acf.renderSelect(n,e),this.ruleData("field",n.val())},renderOperator:function(){if(this.ruleData("field")){var e=this.$input("operator"),t=e.val(),i=[];null===e.val()&&acf.renderSelect(e,[{id:this.ruleData("operator"),text:""}]);var n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n);acf.getConditionTypes({fieldType:a.getType()}).map(function(e){i.push({id:e.prototype.operator,text:acf.strEscape(e.prototype.label)})}),acf.renderSelect(e,i),this.ruleData("operator",e.val())}},renderValue:function(){if(this.ruleData("field")&&this.ruleData("operator")){var e=this.$input("value"),t=this.$td("value"),i=e.val(),n=acf.findFieldObject(this.ruleData("field")),a=acf.getFieldObject(n),c=acf.getConditionTypes({fieldType:a.getType(),operator:this.ruleData("operator")}),l=c[0].prototype,o=l.choices(a);if(o instanceof Array){var r=$("");acf.renderSelect(r,o)}else var r=$(o);e.detach(),t.html(r),setTimeout(function(){["class","name","id"].map(function(t){r.attr(t,e.attr(t))})},0),r.prop("disabled")||acf.val(r,i,!0),this.ruleData("value",r.val())}},onChangeToggle:function(){this.render()},onClickAddGroup:function(e,t){this.addGroup()},addGroup:function(){var e=this.$(".rule-group:last"),t=acf.duplicate(e);t.find("h4").text(acf.__("or")),t.find("tr").not(":first").remove(),this.fieldObject.save()},onFocusField:function(e,t){this.renderField()},onChangeField:function(e,t){this.scope(t.closest(".rule")),this.ruleData("field",t.val()),this.renderOperator(),this.renderValue()},onChangeOperator:function(e,t){this.scope(t.closest(".rule")),this.ruleData("operator",t.val()),this.renderValue()},onClickAdd:function(e,t){var i=acf.duplicate(t.closest(".rule"));this.renderRule(i)},onClickRemove:function(e,t){var i=t.closest(".rule");this.fieldObject.save(),0==i.siblings(".rule").length&&i.closest(".rule-group").remove(),i.remove()}});acf.registerFieldSetting(t);var i=new acf.Model({actions:{duplicate_field_objects:"onDuplicateFieldObjects"},onDuplicateFieldObjects:function(e,t,i){var n={},a=$();e.map(function(e){n[e.get("prevKey")]=e.get("key"),a=a.add(e.$(".condition-rule-field"))}),a.each(function(){var e=$(this),t=e.val();t&&n[t]&&(e.find("option:selected").attr("value",n[t]),e.val(n[t]))})}})}(jQuery),function($,e){acf.findFieldObject=function(e){return acf.findFieldObjects({key:e,limit:1})},acf.findFieldObjects=function(e){e=e||{};var t=".acf-field-object",i=!1;return e=acf.parseArgs(e,{id:"",key:"",type:"",limit:!1,list:null,parent:!1,sibling:!1,child:!1}),e.id&&(t+='[data-id="'+e.id+'"]'),e.key&&(t+='[data-key="'+e.key+'"]'),e.type&&(t+='[data-type="'+e.type+'"]'),i=e.list?e.list.children(t):e.parent?e.parent.find(t):e.sibling?e.sibling.siblings(t):e.child?e.child.parents(t):$(t),e.limit&&(i=i.slice(0,e.limit)),i},acf.getFieldObject=function(e){"string"==typeof e&&(e=acf.findFieldObject(e));var t=e.data("acf");return t||(t=acf.newFieldObject(e)),t},acf.getFieldObjects=function(e){var t=acf.findFieldObjects(e),i=[];return t.each(function(){var e=acf.getFieldObject($(this));i.push(e)}),i},acf.newFieldObject=function(e){var t=new acf.FieldObject(e);return acf.doAction("new_field_object",t),t};var t=new acf.Model({priority:5,initialize:function(){["prepare","ready","append","remove"].map(function(e){this.addFieldActions(e)},this)},addFieldActions:function(e){var t=e+"_field_objects",i=e+"_field_object",n=e+"FieldObject",a=function(e){var i=acf.getFieldObjects({parent:e});if(i.length){var n=acf.arrayArgs(arguments);n.splice(0,1,t,i),acf.doAction.apply(null,n)}},c=function(e){var t=acf.arrayArgs(arguments);t.unshift(i),e.map(function(e){t[1]=e,acf.doAction.apply(null,t)})},l=function(e){var t=acf.arrayArgs(arguments);t.unshift(i),["type","name","key"].map(function(n){t[0]=i+"/"+n+"="+e.get(n),acf.doAction.apply(null,t)}),t.splice(0,2),e.trigger(n,t)};acf.addAction(e,a,5),acf.addAction(t,c,5),acf.addAction(i,l,5)}}),i=new acf.Model({id:"fieldManager",events:{"submit #post":"onSubmit","mouseenter .acf-field-list":"onHoverSortable","click .add-field":"onClickAdd"},actions:{removed_field_object:"onRemovedField",sortstop_field_object:"onReorderField",delete_field_object:"onDeleteField",change_field_object_type:"onChangeFieldType",duplicate_field_object:"onDuplicateField"},onSubmit:function(e,t){acf.getFieldObjects().map(function(e){e.submit()})},setFieldMenuOrder:function(e){this.renderFields(e.$el.parent())},onHoverSortable:function(e,t){t.hasClass("ui-sortable")||t.sortable({handle:".acf-sortable-handle",connectWith:".acf-field-list",start:function(e,i){var n=acf.getFieldObject(i.item);i.placeholder.height(i.item.height()),acf.doAction("sortstart_field_object",n,t)},update:function(e,i){var n=acf.getFieldObject(i.item);acf.doAction("sortstop_field_object",n,t)}})},onRemovedField:function(e,t){this.renderFields(t)},onReorderField:function(e,t){e.updateParent(),this.renderFields(t)},onDeleteField:function(e){e.getFields().map(function(e){e.delete({animate:!1})})},onChangeFieldType:function(e){},onDuplicateField:function(e,t){var i=t.getFields();i.length&&(i.map(function(e){e.wipe(),e.updateParent()}),acf.doAction("duplicate_field_objects",i,t,e)),this.setFieldMenuOrder(t)},renderFields:function(e){var t=acf.getFieldObjects({list:e});if(!t.length)return void e.addClass("-empty");e.removeClass("-empty"),t.map(function(e,t){e.prop("menu_order",t)})},onClickAdd:function(e,t){var i=t.closest(".acf-tfoot").siblings(".acf-field-list");this.addField(i)},addField:function(e){var t=$("#tmpl-acf-field").html(),i=$(t),n=i.data("id"),a=acf.uniqid("field_"),c=acf.duplicate({target:i,search:n,replace:a,append:function(t,i){e.append(i)}}),l=acf.getFieldObject(c);l.prop("key",a),l.prop("ID",0),l.prop("label",""),l.prop("name",""),c.attr("data-key",a),c.attr("data-id",a),l.updateParent();var o=l.$input("label");setTimeout(function(){o.focus()},251),l.open(),this.renderFields(e),acf.doAction("add_field_object",l),acf.doAction("append_field_object",l)}})}(jQuery),function($,e){var t=new acf.Model({id:"locationManager",wait:"ready",events:{"click .add-location-rule":"onClickAddRule","click .add-location-group":"onClickAddGroup","click .remove-location-rule":"onClickRemoveRule","change .refresh-location-rule":"onChangeRemoveRule"},initialize:function(){this.$el=$("#acf-field-group-locations")},onClickAddRule:function(e,t){this.addRule(t.closest("tr"))},onClickRemoveRule:function(e,t){this.removeRule(t.closest("tr"))},onChangeRemoveRule:function(e,t){this.changeRule(t.closest("tr"))},onClickAddGroup:function(e,t){this.addGroup()},addRule:function(e){acf.duplicate(e)},removeRule:function(e){0==e.siblings("tr").length?e.closest(".rule-group").remove():e.remove()},changeRule:function(e){var t=e.closest(".rule-group"),i=e.find("td.param select").attr("name").replace("[param]",""),n={};n.action="acf/field_group/render_location_rule",n.rule=acf.serialize(e,i),n.rule.id=e.data("id"),n.rule.group=t.data("id"),acf.disable(e.find("td.value")),$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"html",success:function(t){t&&e.replaceWith(t)}})},addGroup:function(){var e=this.$(".rule-group:last");$group2=acf.duplicate(e),$group2.find("h4").text(acf.__("or")),$group2.find("tr").not(":first").remove()}})}(jQuery),function($,e){var t=acf.getCompatibility(acf);t.field_group={save_field:function(e,t){t=void 0!==t?t:"settings",acf.getFieldObject(e).save(t)},delete_field:function(e,t){t=void 0===t||t,acf.getFieldObject(e).delete({animate:t})},update_field_meta:function(e,t,i){acf.getFieldObject(e).prop(t,i)},delete_field_meta:function(e,t){acf.getFieldObject(e).prop(t,null)}},t.field_group.field_object=acf.model.extend({type:"",o:{},$field:null,$settings:null,tag:function(e){var t=this.type,i=e.split("_");return i.splice(1,0,"field"),e=i.join("_"),t&&(e+="/type="+t),e},selector:function(){var e=".acf-field-object",t=this.type;return t&&(e+="-"+t,e=acf.str_replace("_","-",e)),e},_add_action:function(e,t){var i=this;acf.add_action(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_filter:function(e,t){var i=this;acf.add_filter(this.tag(e),function(e){i.set("$field",e),i[t].apply(i,arguments)})},_add_event:function(e,t){var i=this,n=e.substr(0,e.indexOf(" ")),a=e.substr(e.indexOf(" ")+1),c=this.selector();$(document).on(n,c+" "+a,function(e){e.$el=$(this),e.$field=e.$el.closest(".acf-field-object"),i.set("$field",e.$field),i[t].apply(i,[e])})},_set_$field:function(){this.o=this.$field.data(),this.$settings=this.$field.find("> .settings > table > tbody"),this.focus()},focus:function(){},setting:function(e){return this.$settings.find("> .acf-field-setting-"+e)}});var i=new acf.Model({actions:{open_field_object:"onOpenFieldObject",close_field_object:"onCloseFieldObject",add_field_object:"onAddFieldObject",duplicate_field_object:"onDuplicateFieldObject",delete_field_object:"onDeleteFieldObject",change_field_object_type:"onChangeFieldObjectType",change_field_object_label:"onChangeFieldObjectLabel",change_field_object_name:"onChangeFieldObjectName",change_field_object_parent:"onChangeFieldObjectParent",sortstop_field_object:"onChangeFieldObjectParent"},onOpenFieldObject:function(e){acf.doAction("open_field",e.$el),acf.doAction("open_field/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onCloseFieldObject:function(e){acf.doAction("close_field",e.$el),acf.doAction("close_field/type="+e.get("type"),e.$el)},onAddFieldObject:function(e){acf.doAction("add_field",e.$el),acf.doAction("add_field/type="+e.get("type"),e.$el)},onDuplicateFieldObject:function(e){acf.doAction("duplicate_field",e.$el),acf.doAction("duplicate_field/type="+e.get("type"),e.$el)},onDeleteFieldObject:function(e){acf.doAction("delete_field",e.$el),acf.doAction("delete_field/type="+e.get("type"),e.$el)},onChangeFieldObjectType:function(e){acf.doAction("change_field_type",e.$el),acf.doAction("change_field_type/type="+e.get("type"),e.$el),acf.doAction("render_field_settings",e.$el),acf.doAction("render_field_settings/type="+e.get("type"),e.$el)},onChangeFieldObjectLabel:function(e){acf.doAction("change_field_label",e.$el),acf.doAction("change_field_label/type="+e.get("type"),e.$el)},onChangeFieldObjectName:function(e){acf.doAction("change_field_name",e.$el),acf.doAction("change_field_name/type="+e.get("type"),e.$el)},onChangeFieldObjectParent:function(e){acf.doAction("update_field_parent",e.$el)}})}(jQuery); \ No newline at end of file diff --git a/assets/js/acf-input.js b/assets/js/acf-input.js index 1861a52..7dc2112 100644 --- a/assets/js/acf-input.js +++ b/assets/js/acf-input.js @@ -52,7 +52,7 @@ */ acf.has = function( name ){ - return this.get(data) !== null; + return this.get(name) !== null; }; @@ -983,10 +983,13 @@ }; */ - // Preferences - var preferences = localStorage.getItem('acf'); - preferences = preferences ? JSON.parse(preferences) : {}; + // - use try/catch to avoid JS error if cookies are disabled on front-end form + try { + var preferences = JSON.parse(localStorage.getItem('acf')) || {}; + } catch(e) { + var preferences = {}; + } /** @@ -1485,14 +1488,15 @@ return false } - // bail if select option does not exist - if( $input.is('select') && !$input.find('option[value="'+value+'"]').length ) { - return false; - } - // update value $input.val( value ); + // prevent select elements displaying blank value if option doesn't exist + if( $input.is('select') && $input.val() === null ) { + $input.val( prevValue ); + return false; + } + // update with trigger if( silent !== true ) { $input.trigger('change'); @@ -2092,7 +2096,7 @@ acf.doAction('load'); }); - $(window).on('unload', function(){ + $(window).on('beforeunload', function(){ acf.doAction('unload'); }); @@ -2762,12 +2766,19 @@ proxyEvent: function( callback ){ return this.proxy(function(e){ + + // validate if( !this.validateEvent(e) ) { return; } - var args = acf.arrayArgs(arguments); - args.push( $(e.currentTarget) ); - callback.apply(this, args); + + // construct args + var args = acf.arrayArgs( arguments ); + var extraArgs = args.slice(1); + var eventArgs = [ e, $(e.currentTarget) ].concat( extraArgs ); + + // callback + callback.apply(this, eventArgs); }); }, @@ -4892,10 +4903,18 @@ var fieldsEventManager = new acf.Model({ id: 'fieldsEventManager', events: { - 'click .acf-field a[href="#"]': 'onClick' + 'click .acf-field a[href="#"]': 'onClick', + 'change .acf-field': 'onChange' }, onClick: function( e ){ + + // prevent default of any link with an href of # e.preventDefault(); + }, + onChange: function(){ + + // preview hack allows post to save with no title or content + $('#_acf_changed').val(1); } }); @@ -5612,6 +5631,10 @@ return this.$('.search'); }, + $canvas: function(){ + return this.$('.canvas'); + }, + addClass: function( name ){ this.$control().addClass( name ); }, @@ -5729,10 +5752,6 @@ return this.$search().val(); }, - getCanvas: function(){ - return this.$('.canvas'); - }, - initialize: function(){ // bail early if too early @@ -5770,7 +5789,7 @@ autocomplete: {} }; mapArgs = acf.applyFilters('google_map_args', mapArgs, this); - var map = new google.maps.Map( this.getCanvas()[0], mapArgs ); + var map = new google.maps.Map( this.$canvas()[0], mapArgs ); this.addMapEvents( map, this ); @@ -5810,15 +5829,17 @@ // bind autocomplete.bindTo('bounds', map); - // event + // autocomplete event place_changed is triggered each time the input changes + // customize the place object with the current "search value" to allow users controll over the address text google.maps.event.addListener(autocomplete, 'place_changed', function() { - field.setPlace( this.getPlace() ); + var place = this.getPlace(); + place.address = field.getSearchVal(); + field.setPlace( place ); }); } // click google.maps.event.addListener( map, 'click', function( e ) { - // vars var lat = e.latLng.lat(); var lng = e.latLng.lng(); @@ -5832,7 +5853,6 @@ // dragend google.maps.event.addListener( marker, 'dragend', function(){ - // vars var position = this.getPosition(); var lat = position.lat(); @@ -5901,7 +5921,7 @@ // vars var lat = place.geometry.location.lat(); var lng = place.geometry.location.lng(); - var address = place.formatted_address; + var address = place.address || place.formatted_address; // update this.setValue({ @@ -5937,7 +5957,7 @@ $wrap.addClass('-loading'); // callback - var callback = $.proxy(function( results, status ){ + var callback = this.proxy(function( results, status ){ // remove class $wrap.removeClass('-loading'); @@ -5954,7 +5974,7 @@ } else { lat = results[0].geometry.location.lat(); lng = results[0].geometry.location.lng(); - address = results[0].formatted_address; + //address = results[0].formatted_address; } // update val @@ -5966,7 +5986,7 @@ //acf.doAction('google_map_geocode_results', results, status, this.$el, this); - }, this); + }); // query api.geocoder.geocode({ 'address' : address }, callback); @@ -6848,8 +6868,8 @@ getValue: function(){ var val = this.$input().val(); - if( val === 'other' ) { - val = this.inputText().val(); + if( val === 'other' && this.get('other_choice') ) { + val = this.$inputText().val(); } return val; }, @@ -9734,7 +9754,7 @@ remove: function(){ this.frame.detach(); - this.frame.dispose(); + this.frame.remove(); }, getFrameOptions: function(){ @@ -10105,10 +10125,16 @@ initialize: function(){ // bail early if no media views - if( !acf.isset(wp, 'media', 'view') ) { + if( !acf.isset(window, 'wp', 'media', 'view') ) { return; } + // fix bug where CPT without "editor" does not set post.id setting which then prevents uploadedTo from working + var postID = getPostID(); + if( postID && acf.isset(wp, 'media', 'view', 'settings', 'post') ) { + wp.media.view.settings.post.id = postID; + } + // customize this.customizeAttachmentsRouter(); this.customizeAttachmentFilters(); @@ -10215,46 +10241,30 @@ // Each instance will attempt to render when a new modal is created. // Use a property to avoid this and only render once per instance. if( this.rendered ) { - //console.log('ignore render', this.cid); return this; } - this.rendered = true; - // render - //console.log('render', this.cid); + // render HTML AttachmentCompat.prototype.render.apply( this, arguments ); + // when uploading, render is called twice. + // ignore first render by checking for #acf-form-data element + if( !this.$('#acf-form-data').length ) { + return this; + } + // clear timeout clearTimeout( timeout ); // setTimeout timeout = setTimeout($.proxy(function(){ - - // check if element is visible to avoid logic on previous instances (which are hidden) - if( this.$el.is(':visible') ) { - //console.log('append', this.cid); - acf.doAction('append', this.$el); - } - + this.rendered = true; + acf.doAction('append', this.$el); }, this), 50); // return return this; - }, - - // commented out function causing JS errors when navigating through media grid - // dispose (and remove) are called after the element has been detached, so this only causes extra JS initialization - dispose: function(){ - - // remove - if( this.$el.is(':visible') ) { - //acf.doAction('remove', this.$el); - console.log('removed visible'); - } - // dispose - return AttachmentCompat.prototype.dispose.apply( this, arguments ); } - }); }, @@ -11296,6 +11306,7 @@ var locale = acf.get('locale'); var rtl = acf.get('rtl'); var l10n = acf.get('select2L10n'); + var version = getVersion(); // bail ealry if no l10n if( !l10n ) { @@ -11308,9 +11319,9 @@ } // initialize - if( getVersion() == 4 ) { + if( version == 4 ) { this.addTranslations4(); - } else { + } else if( version == 3 ) { this.addTranslations3(); } }, @@ -11848,10 +11859,10 @@ }, events: { - 'click #publish': 'onClickPublish', - 'click #submit': 'onClickPublish', - 'click #save-post': 'onClickSave', - 'submit form': 'onSubmit', + 'click input[type="submit"]': 'onClickSubmit', + 'click button[type="submit"]': 'onClickSubmit', + 'click #save-post': 'onClickSave', + 'submit form': 'onSubmit', }, initialize: function(){ @@ -12075,6 +12086,8 @@ // create event specific success callback if( args.event ) { + + // create new event to avoid conflicts with prevenDefault (as used in taxonomy form) var event = $.Event(null, args.event); args.success = function(){ $(event.target).trigger( event ); @@ -12083,7 +12096,7 @@ // action for 3rd party acf.doAction('validation_begin', $form); - + // data var data = acf.serialize( $form ); data.action = 'acf/validate_save_post'; @@ -12182,7 +12195,7 @@ addInputEvents: function( $el ){ // vars - var $inputs = $('.acf-field [name]'); + var $inputs = $('.acf-field [name]', $el); // check if( $inputs.length ) { @@ -12211,19 +12224,15 @@ $form.submit(); }, - // fixes bug on User Profile edit form - // - WP prevents $form.submit() events for unknown reason - // - temp store 'click event' and use later in onSubmit - onClickPublish: function( e, $el ){ + onClickSubmit: function( e, $el ){ + + // store the "click event" for later use in this.onSubmit() this.set('originalEvent', e); - this.setTimeout(function(){ - this.set('originalEvent', null); - }, 100); }, onClickSave: function( e, $el ) { - // ignore errors + // ignore errors when saving this.pass(); }, @@ -12232,7 +12241,7 @@ // validate var valid = acf.validateForm({ form: $form, - event: this.get('originalEvent') || e + event: this.get('originalEvent') }); // if not valid, stop event and allow validation to continue @@ -12293,7 +12302,7 @@ // vars var $wrap = this.findSubmitWrap( $form ); - var $submit = $wrap.find('.button, .acf-button'); + var $submit = $wrap.find('.button, [type="submit"]'); var $spinner = $wrap.find('.spinner, .acf-spinner'); // hide all spinners (hides the preview spinner) @@ -12308,7 +12317,7 @@ // vars var $wrap = this.findSubmitWrap( $form ); - var $submit = $wrap.find('.button, .acf-button'); + var $submit = $wrap.find('.button, [type="submit"]'); var $spinner = $wrap.find('.spinner, .acf-spinner'); // unlock diff --git a/assets/js/acf-input.min.js b/assets/js/acf-input.min.js index ba3800f..0981384 100644 --- a/assets/js/acf-input.min.js +++ b/assets/js/acf-input.min.js @@ -1,4 +1,4 @@ -!function($,t){var e={};window.acf=e,e.data={},e.get=function(t){return this.data[t]||null},e.has=function(t){return null!==this.get(data)},e.set=function(t,e){return this.data[t]=e,this};var i=0;e.uniqueId=function(t){var e=++i+"";return t?t+e:e},e.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var n="";e.uniqid=function(t,e){void 0===t&&(t="");var i,a=function(t,e){return t=parseInt(t,10).toString(16),et.length?Array(e-t.length+1).join("0")+t:t};return n||(n=Math.floor(123456789*Math.random())),n++,i=t,i+=a(parseInt((new Date).getTime()/1e3,10),8),i+=a(n,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},e.strReplace=function(t,e,i){return i.split(t).join(e)},e.strCamelCase=function(t){return t=t.replace(/[_-]/g," "),t=t.replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},e.strPascalCase=function(t){var i=e.strCamelCase(t);return i.charAt(0).toUpperCase()+i.slice(1)},e.strSlugify=function(t){return e.strReplace("_","-",t.toLowerCase())},e.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return e[t]||t};return t=t.replace(i,n),t=t.toLowerCase()},e.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a").html(t).text()},e.strEscape=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})},e.parseArgs=function(t,e){return"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={}),$.extend({},e,t)},void 0==window.acfL10n&&(acfL10n={}),e.__=function(t){return acfL10n[t]||t},e._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},e._n=function(t,i,n){return 1==n?e.__(t):e.__(i)},e.isArray=function(t){return Array.isArray(t)},e.isObject=function(t){return"object"==typeof t};var a=function(t,i,n){i=i.replace("[]","[%%index%%]");var a=i.match(/([^\[\]])+/g);if(a)for(var r=a.length,o=t,s=0;s');var s=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){s.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",o),s.remove(),t.complete()},301)},l=function(t){var e=t.target,i=e.height(),n=e.children().length,a=$('');e.addClass("acf-remove-element"),setTimeout(function(){e.html(a)},251),setTimeout(function(){e.removeClass("acf-remove-element"),a.css({height:t.endHeight})},300),setTimeout(function(){e.remove(),t.complete()},451)};e.duplicate=function(t){t instanceof jQuery&&(t={target:t});var i=0;t=e.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,e){t.after(e),i=1}}),t.target=t.target||t.$el;var n=t.target;t.search=t.search||n.attr("data-id"),t.replace=t.replace||e.uniqid(),t.before(n),e.doAction("before_duplicate",n);var a=n.clone();return e.rename({target:a,search:t.search,replace:t.replace}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),t.after(n,a),e.doAction("after_duplicate",n,a),t.append(n,a),e.doAction("append",a),a},e.rename=function(t){t instanceof jQuery&&(t={target:t}),t=e.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""});var i=t.target,n=t.search||i.attr("data-id"),a=t.replace||e.uniqid("acf"),r=function(t,e){return e.replace(n,a)};if(t.destructive){var o=i.outerHTML();o=e.strReplace(n,a,o),i.replaceWith(o)}else i.attr("data-id",a),i.find('[id*="'+n+'"]').attr("id",r),i.find('[for*="'+n+'"]').attr("for",r),i.find('[name*="'+n+'"]').attr("name",r);return i},e.prepareForAjax=function(t){return t.nonce=e.get("nonce"),t.post_id=e.get("post_id"),t=e.applyFilters("prepare_for_ajax",t)},e.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' ')},e.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},e.showLoading=function(t){t.append('
    ')},e.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},e.updateUserSetting=function(t,i){var n={action:"acf/update_user_setting",name:t,value:i};$.ajax({url:e.get("ajaxurl"),data:e.prepareForAjax(n),type:"post",dataType:"html"})},e.val=function(t,e,i){return e!==t.val()&&(!(t.is("select")&&!t.find('option[value="'+e+'"]').length)&&(t.val(e),!0!==i&&t.trigger("change"),!0))},e.show=function(t,i){return i&&e.unlock(t,"hidden",i),!e.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},e.hide=function(t,i){return i&&e.lock(t,"hidden",i),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},e.isHidden=function(t){return t.hasClass("acf-hidden")},e.isVisible=function(t){return!e.isHidden(t)};var d=function(t,i){return!t.hasClass("acf-disabled")&&(i&&e.unlock(t,"disabled",i),!e.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};e.enable=function(t,e){if(t.attr("name"))return d(t,e);var i=!1;return t.find("[name]").each(function(){d($(this),e)&&(i=!0)}),i};var u=function(t,i){return i&&e.lock(t,"disabled",i),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};e.disable=function(t,e){if(t.attr("name"))return u(t,e);var i=!1;return t.find("[name]").each(function(){u($(this),e)&&(i=!0)}),i},e.isset=function(t){for(var e=1;e-1){var o=window.URL||window.webkitURL,s=new Image;s.onload=function(){a.width=this.width,a.height=this.height,i(a)},s.src=o.createObjectURL(r)}else i(a);else i(a)},e.isAjaxSuccess=function(t){return t&&t.success},e.getAjaxMessage=function(t){return e.isget(t,"data","message")},e.getAjaxError=function(t){return e.isget(t,"data","error")},e.renderSelect=function(t,i){var n=t.val(),a=[],r=function(t){var i="";return t.map(function(t){var n=t.text||t.label||"",o=t.id||t.value||"";a.push(o),t.children?i+=''+r(t.children)+"":i+='"}),i};return t.html(r(i)),a.indexOf(n)>-1&&t.val(n),t.val()};var f=function(t,e){return t.data("acf-lock-"+e)||[]},h=function(t,e,i){t.data("acf-lock-"+e,i)};e.lock=function(t,e,i){var n=f(t,e);n.indexOf(i)<0&&(n.push(i),h(t,e,n))},e.unlock=function(t,e,i){var n=f(t,e),a=n.indexOf(i);return a>-1&&(n.splice(a,1),h(t,e,n)),0===n.length},e.isLocked=function(t,e){return f(t,e).length>0},$.fn.exists=function(){return $(this).length>0},$.fn.outerHTML=function(){return $(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(t){return $.inArray(t,this)}),$(document).ready(function(){e.doAction("ready")}),$(window).on("load",function(){e.doAction("load")}),$(window).on("unload",function(){e.doAction("unload")}),$(window).on("resize",function(){e.doAction("resize")}),$(document).on("sortstart",function(t,i){e.doAction("sortstart",i.item,i.placeholder)}),$(document).on("sortstop",function(t,i){e.doAction("sortstop",i.item,i.placeholder)})}(jQuery),function(t,e){"use strict";var i=function(){function t(){return f}function e(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&(i=parseInt(i||10,10),c("actions",t,e,i,n)),u}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&d("actions",e,t),u}function n(t,e){return"string"==typeof t&&s("actions",t,e),u}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&(i=parseInt(i||10,10),c("filters",t,e,i,n)),u}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?d("filters",e,t):u}function o(t,e){return"string"==typeof t&&s("filters",t,e),u}function s(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var o=a[r];o.callback===i&&o.context===n&&a.splice(r,1)}else for(r=a.length;r--;)a[r].callback===i&&a.splice(r,1)}else f[t][e]=[]}function c(t,e,i,n,a){var r={callback:i,priority:n,context:a},o=f[t][e];o?(o.push(r),o=l(o)):o=[r],f[t][e]=o}function l(t){for(var e,i,n,a=1,r=t.length;ae.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function d(t,e,i){var n=f[t][e];if(!n)return"filters"===t&&i[0];var a=0,r=n.length;if("filters"===t)for(;a','
    ','

    ','
    ','
    ',"
    ",'
    ',""].join("")},render:function(){var t=this.get("title"),e=this.get("content"),i=this.get("loading"),n=this.get("width"),a=this.get("height");this.title(t),this.content(e),n&&this.$(".acf-popup-box").css("width",n),a&&this.$(".acf-popup-box").css("min-height",a),this.loading(i),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){$("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function($,t){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{change_field:"startListening",validation_failure:"startListening"},events:{"submit form":"stopListening"},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,$(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,$(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function($,t){var e=new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}})}(jQuery),function($,t){var e=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'
    '},setup:function(t){$.extend(this.data,t),this.$el=$(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("

    "+this.get("text")+"

    "),this.get("dismiss")&&(this.$el.append(''),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(t){$.extend(this.data,t),this.initialize()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout(function(){acf.remove(this.$el)},t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(t)},text:function(t){this.$("p").html(t)},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return"object"!=typeof t&&(t={text:t}),new e(t)};var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){var t=$(".acf-admin-notice");t.length&&$("h1:first").after(t)}})}(jQuery),function($,t){acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",editLink:"",editTitle:"",visibility:!0},setup:function(t){$.extend(this.data,t)},initialize:function(){var t=this.get("id"),e=$("#"+t),i=$("#"+t+"-hide"),n=i.parent();e.addClass("acf-postbox"),n.addClass("acf-postbox-toggle"),e.removeClass("hide-if-js"),n.removeClass("hide-if-js");var a=this.get("style");"default"!==a&&e.addClass(a),e.children(".inside").addClass("acf-fields").addClass("-"+this.get("label")),this.get("visibility")?i.prop("checked",!0):(e.addClass("acf-hidden"),n.addClass("acf-hidden"));var r=this.get("editLink"),o=this.get("editTitle");r&&e.children(".hndle").append('')}}),acf.newPostbox=function(t){return new acf.models.Postbox(t)}}(jQuery),function($,t){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),void 0!==t.confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new i(t)):void 0!==t.confirm?new i(t):new e(t)};var e=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'
    '},setup:function(t){$.extend(this.data,t),this.$el=$(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var t=this.get("timeout");t&&setTimeout($.proxy(this.fade,this),t)},update:function(t){$.extend(this.data,t),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){$("body").append(this.$el)},hide:function(){this.$el.remove()},fade:function(){this.$el.addClass("acf-fade-up"),this.setTimeout(function(){this.remove()},250)},html:function(t){this.$el.html(t)},position:function(){var t=this.$el,e=this.get("target");if(e){t.removeClass("right left bottom top");var i=10,n=e.outerWidth(),a=e.outerHeight(),r=e.offset().top,o=e.offset().left,s=t.outerWidth(),c=t.outerHeight(),l=r-c,d=o+n/2-s/2;d<10?(t.addClass("right"),d=o+n,l=r+a/2-c/2):d+s+10>$(window).width()?(t.addClass("left"),d=o-s,l=r+a/2-c/2):l-$(window).scrollTop()<10?(t.addClass("bottom"),l=r+a):t.addClass("top"),t.css({top:l,left:d})}}}),i=e.extend({data:{text:"",textConfirm:"",textCancel:"",target:null,targetConfirm:!0,confirm:function(){},cancel:function(){},context:!1},events:{'click [data-event="cancel"]':"onCancel",'click [data-event="confirm"]':"onConfirm"},addEvents:function(){acf.Model.prototype.addEvents.apply(this);var t=$(document),e=this.get("target");this.setTimeout(function(){this.on(t,"click","onCancel")}),this.get("targetConfirm")&&this.on(e,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var t=$(document),e=this.get("target");this.off(t,"click"),this.off(e,"click")},render:function(){var t=this.get("text")||acf.__("Are you sure?"),e=this.get("textConfirm")||acf.__("Yes"),i=this.get("textCancel")||acf.__("No"),n=[t,''+e+"",''+i+""].join(" ");this.html(n),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("cancel"),n=this.get("context")||this;i.apply(n,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("confirm"),n=this.get("context")||this;i.apply(n,arguments),this.remove()}});acf.models.Tooltip=e,acf.models.TooltipConfirm=i;var n=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function($,t){var e=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return void 0!==t?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field");return acf.getFields(t)},show:function(t,e){var i=acf.show(this.$el,t);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),i},hide:function(t,e){var i=acf.hide(this.$el,t);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),i},enable:function(t,e){var i=acf.enable(this.$el,t);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),i},disable:function(t,e){var i=acf.disable(this.$el,t);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),i},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(t){this.$el.addClass("acf-error"),void 0!==t&&this.showNotice({text:t,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",$.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),n=i(e),a=acf.models[n]||acf.Field,r=new a(t);return acf.doAction("new_field",r),r};var i=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var n=t.prototype,a=n.type,r=i(a);acf.models[r]=t,e.push(a)},acf.getFieldType=function(t){var e=i(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var i=[];return e.map(function(e){var n=acf.getFieldType(e),a=n.prototype;t.category&&a.category!==t.category||i.push(n)}),i}}(jQuery),function($,t){acf.findFields=function(t){var e=".acf-field",i=!1;return t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1}),t.suppressFilters||(t=acf.applyFilters("find_fields_args",t)),t.key&&(e+='[data-key="'+t.key+'"]'),t.type&&(e+='[data-type="'+t.type+'"]'),t.name&&(e+='[data-name="'+t.name+'"]'),t.is&&(e+=t.is),t.visible&&(e+=":visible"),i=t.parent?t.parent.find(e):t.sibling?t.sibling.siblings(e):$(e),t.suppressFilters||(i=i.not(".acf-clone .acf-field"),i=acf.applyFilters("find_fields",i)),t.limit&&(i=i.slice(0,t.limit)),i},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){t instanceof jQuery||(t=acf.findField(t));var e=t.data("acf");return e||(e=acf.newField(t)),e},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var e=[];return t.each(function(){var t=acf.getField($(this));e.push(t)}),e},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var e=function(t){var e=t,n=t+"_fields",a=t+"_field",r=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1),a=acf.getFields({parent:t});if(a.length){var r=[n,a].concat(i);acf.doAction.apply(null,r)}},o=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1);t.map(function(t,e){var n=[a,t].concat(i);acf.doAction.apply(null,n)})};acf.addAction(e,r),acf.addAction(n,o),i(t)},i=function(t){var e=t+"_field",i=t+"Field",n=function(n){var a=acf.arrayArgs(arguments),o=a.slice(1);["type","name","key"].map(function(t){var i="/"+t+"="+n.get(t);a=[e+i,n].concat(o),acf.doAction.apply(null,a)}),r.indexOf(t)>-1&&n.trigger(i,o)};acf.addAction(e,n)},n=["prepare","ready","load","append","remove","sortstart","sortstop","show","hide","unload"],a=["valid","invalid","enable","disable","new"],r=["remove","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];n.map(e),a.map(i);var o=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick"},onClick:function(t){t.preventDefault()}})}(jQuery),function($,t){var e=0,i=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var t=this.$el,i=this.$labelWrap(),n=this.$inputWrap(),a=this.$control(),r=n.children(".description");if(r.length&&i.append(r),this.$el.is("tr")){var o=this.$el.closest("table"),s=$('
    '),c=$('
    '),l=$(''),d=$("");s.append(i.html()),l.append(d),c.append(l),n.append(s),n.append(c),i.remove(),a.remove(),n.attr("colspan",2),i=s,n=c,a=d}t.addClass("acf-accordion"),i.addClass("acf-accordion-title"),n.addClass("acf-accordion-content"),e++,this.get("multi_expand")&&t.attr("multi-expand",1);var u=acf.getPreference("this.accordions")||[];void 0!==u[e-1]&&this.set("open",u[e-1]),this.get("open")&&(t.addClass("-open"),n.css("display","block")),i.prepend('');var f=t.parent();a.addClass(f.hasClass("-left")?"-left":""),a.addClass(f.hasClass("-clear")?"-clear":""),a.append(t.nextUntil(".acf-field-accordion",".acf-field")),a.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(i);var n=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","invalidField .acf-accordion":"onInvalidField"},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.find(".acf-accordion-content:first").slideDown().css("display","block"),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-right").addClass("dashicons-arrow-down"),t.addClass("-open"),acf.doAction("show",t),t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){n.close($(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-right"),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(e))},onUnload:function(t){var e=[];$(".acf-accordion").each(function(){var t=$(this).hasClass("-open")?1:0;e.push(t)}),e.length&&acf.setPreference("this.accordions",e)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"), -this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push($(this).val())}),!!t.length&&t},onChange:function(t,e){var i=e.prop("checked"),n=this.$toggle();if(i?e.parent().addClass("selected"):e.parent().removeClass("selected"),n.length){0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1)}},onClickAdd:function(t,e){var i='
  • ';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked");this.$inputs().prop("checked",i)},onClickCustom:function(t,e){var i=e.prop("checked"),n=e.next('input[type="text"]');i?n.prop("disabled",!1):(n.prop("disabled",!0),""==n.val()&&e.parent("li").remove())}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"color_picker",wait:"load",$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){var t=this.$input(),e=this.$inputText(),i=function(i){setTimeout(function(){acf.val(t,e.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:i,clear:i},n=acf.applyFilters("color_picker_args",n,this);e.wpColorPicker(n)}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this),acf.newDatePicker(e,i),acf.doAction("date_picker_init",e,i,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this);var n=i.dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",n),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("datePickerL10n");return!!i&&(void 0!==$.datepicker&&(i.isRTL=e,$.datepicker.regional[t]=i,void $.datepicker.setDefaults(i)))}});acf.newDatePicker=function(t,e){if(void 0===$.datepicker)return!1;e=e||{},t.datepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('
    ')}}(jQuery),function($,t){var e=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};i=acf.applyFilters("date_time_picker_args",i,this),acf.newDateTimePicker(e,i),acf.doAction("date_time_picker_init",e,i,this)}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("dateTimePickerL10n");return!!i&&(void 0!==$.timepicker&&(i.isRTL=e,$.timepicker.regional[t]=i,void $.timepicker.setDefaults(i)))}});acf.newDateTimePicker=function(t,e){if(void 0===$.timepicker)return!1;e=e||{},t.datetimepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('
    ')}}(jQuery),function($,t){var e=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$input:function(t){return this.$('input[data-name="'+(t||"address")+'"]')},$search:function(){return this.$(".search")},addClass:function(t){this.$control().addClass(t)},removeClass:function(t){this.$control().removeClass(t)},getValue:function(){var t={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){t[$(this).data("name")]=$(this).val()}),t.address||(t=!1),t},setValue:function(t){t=acf.parseArgs(t,{lat:"",lng:"",address:""});for(var e in t)acf.val(this.$input(e),t[e]);t.address||(t=!1),this.renderVal(t)},renderVal:function(t){t?(this.addClass("-value"),this.setPosition(t.lat,t.lng),this.map.marker.setVisible(!0)):(this.removeClass("-value"),this.map.marker.setVisible(!1)),this.$search().val(t.address)},setPosition:function(t,e){var i=this.newLatLng(t,e);return this.map.marker.setPosition(i),this.map.marker.setVisible(!0),acf.doAction("google_map_change",i,this.map,this),this.center(),this},center:function(){var t=this.map.marker.getPosition(),e=this.get("lat"),i=this.get("lng");t&&(e=t.lat(),i=t.lng());var n=this.newLatLng(e,i);this.map.setCenter(n)},getSearchVal:function(){return this.$search().val()},getCanvas:function(){return this.$(".canvas")},initialize:function(){if(!i.isReady())return void i.ready(this.initializeMap,this);this.initializeMap()},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n={scrollwheel:!1,zoom:parseInt(t),center:this.newLatLng(e,i),mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};n=acf.applyFilters("google_map_args",n,this);var a=new google.maps.Map(this.getCanvas()[0],n);this.addMapEvents(a,this);var r=acf.parseArgs(n.marker,{draggable:!0,raiseOnDrag:!0,map:a});r=acf.applyFilters("google_map_marker_args",r,this);var o=new google.maps.Marker(r);this.addMarkerEvents(o,this),a.acf=this,a.marker=o,this.map=a,acf.doAction("google_map_init",a,o,this);var s=this.getValue();this.renderVal(s)},addMapEvents:function(t,e){if(acf.isset(window,"google","maps","places","Autocomplete")){var i=t.autocomplete||{},n=new google.maps.places.Autocomplete(this.$search()[0],i);n.bindTo("bounds",t),google.maps.event.addListener(n,"place_changed",function(){e.setPlace(this.getPlace())})}google.maps.event.addListener(t,"click",function(t){var i=t.latLng.lat(),n=t.latLng.lng();e.searchPosition(i,n)})},addMarkerEvents:function(t,e){google.maps.event.addListener(t,"dragend",function(){var t=this.getPosition(),i=t.lat(),n=t.lng();e.searchPosition(i,n)})},searchPosition:function(t,e){var n=this.newLatLng(t,e),a=this.$control();this.setPosition(t,e),a.addClass("-loading");var r=$.proxy(function(i,n){a.removeClass("-loading");var r="";n!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+n):i[0]?r=i[0].formatted_address:console.log("No results found"),this.val({lat:t,lng:e,address:r})},this);i.geocoder.geocode({latLng:n},r)},setPlace:function(t){if(!t)return this;if(t.name&&!t.geometry)return this.searchAddress(t.name),this;var e=t.geometry.location.lat(),i=t.geometry.location.lng(),n=t.formatted_address;return this.setValue({lat:e,lng:i,address:n}),this},searchAddress:function(t){var e=t.split(",");if(2==e.length){var n=e[0],a=e[1];if($.isNumeric(n)&&$.isNumeric(a))return this.searchPosition(n,a)}var r=this.$control();r.addClass("-loading");var o=$.proxy(function(e,i){r.removeClass("-loading");var n="",a="";i!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+i):e[0]?(n=e[0].geometry.location.lat(),a=e[0].geometry.location.lng(),t=e[0].formatted_address):console.log("No results found"),this.val({lat:n,lng:a,address:t})},this);i.geocoder.geocode({address:t},o)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var t=this.$control();t.addClass("-loading");var e=$.proxy(function(e,i){t.removeClass("-loading");var n=e.coords.latitude,a=e.coords.longitude;this.searchPosition(n,a)},this),i=function(e){t.removeClass("-loading")};navigator.geolocation.getCurrentPosition(e,i)},onClickClear:function(t,e){this.val(!1)},onClickLocate:function(t,e){this.searchLocation()},onClickSearch:function(t,e){this.searchAddress(this.$search().val())},onFocusSearch:function(t,e){this.removeClass("-value"),this.onKeyupSearch.apply(this,arguments)},onBlurSearch:function(t,e){this.setTimeout(function(){this.removeClass("-search"),e.val()&&this.addClass("-value")},100)},onKeyupSearch:function(t,e){e.val()?this.addClass("-search"):this.removeClass("-search")},onKeydownSearch:function(t,e){13==t.which&&t.preventDefault()},onMousedown:function(){},onShow:function(){if(!this.map)return!1;this.setTimeout(this.center,10)}});acf.registerFieldType(e);var i=new acf.Model({geocoder:!1,data:{status:!1},getStatus:function(){return this.get("status")},setStatus:function(t){return this.set("status",t)},isReady:function(){if("ready"==this.getStatus())return!0;if("loading"==this.getStatus())return!1;if(acf.isset(window,"google","maps","places"))return this.setStatus("ready"),!0;var t=acf.get("google_map_api");return t&&(this.setStatus("loading"),$.ajax({url:t,dataType:"script",cache:!0,context:this,success:function(){this.setStatus("ready"),this.geocoder=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}})),!1},ready:function(t,e){acf.addAction("google_map_api_loaded",t,10,e)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"image",$control:function(){return this.$(".acf-image-uploader")},$input:function(){return this.$('input[type="hidden"]')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange"},initialize:function(){"basic"===this.get("uploader")&&this.$el.closest("form").attr("enctype","multipart/form-data")},validateAttachment:function(t){t=t||{},void 0!==t.id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});var e=acf.isget(t,"sizes",this.get("preview_size"),"url");return null!==e&&(t.url=e),t},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.url,alt:t.alt,title:t.title});var e=t.id||"";this.val(e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},append:function(t,e){var i=function(t,e){for(var i=acf.getFields({key:t.get("key"),parent:e.$el}),n=0;n0?this.append(e,t):this.render(e)},this)})},editAttachment:function(){var t=this.val();if(t)var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.render(t)},this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(t,e){this.selectAttachment()},onClickEdit:function(t,e){this.editAttachment()},onClickRemove:function(t,e){this.removeAttachment()},onChange:function(t,e){var i=this.$input();acf.getFileInputData(e,function(t){i.val($.param(t))})}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return t=t||{},void 0!==t.id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var t=this.parent(),e=t&&"repeater"===t.get("type"),i=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:e,library:this.get("library"),allowedTypes:this.get("mime_types"),select:$.proxy(function(e,i){i>0?this.append(e,t):this.render(e)},this)})},editAttachment:function(){var t=this.val();if(!t)return!1;var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var t=this.$node();return!!t.attr("href")&&{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setValue:function(t){t=acf.parseArgs(t,{title:"",url:"",target:""});var e=this.$control(),i=this.$node();e.removeClass("-value -external"),t.url&&e.addClass("-value"),"_blank"===t.target&&e.addClass("-external"),this.$(".link-title").html(t.title),this.$(".link-url").attr("href",t.url).html(t.url),i.html(t.title),i.attr("href",t.url),i.attr("target",t.target),this.$(".input-title").val(t.title),this.$(".input-target").val(t.target),this.$(".input-url").val(t.url).trigger("change")},onClickEdit:function(t,e){acf.wpLink.open(this.$node())},onClickRemove:function(t,e){this.setValue(!1)},onChange:function(t,e){var i=this.getValue();this.setValue(i)}});acf.registerFieldType(e),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.html(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:$("#wp-link-text").val(),url:$("#wp-link-url").val(),target:$("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(t){$("#wp-link-text").val(t.title),$("#wp-link-url").val(t.url),$("#wp-link-target").prop("checked","_blank"===t.target)},open:function(t){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",t);var e=$('');$("body").append(e);var i=this.getNodeValue();wpLink.open("acf-link-textarea",i.url,i.title,null)},onOpen:function(){$("#wp-link-wrap").addClass("has-text-field");var t=this.getNodeValue();this.setInputValue(t)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var t=this.getInputValue();this.setNodeValue(t),$("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(t){t?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),t)},showLoading:function(t){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var t=this.val(),e=this.getSearchVal();if(!e)return this.clear();if("http"!=e.substr(0,4)&&(e="http://"+e),e!==t){var i=this.get("timeout");i&&clearTimeout(i);var n=$.proxy(this.search,this,e);this.set("timeout",setTimeout(n,300))}},search:function(t){var e={action:"acf/fields/oembed/search",s:t,field_key:this.get("key")},i=this.get("xhr");i&&i.abort(),this.showLoading();var i=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:function(t){t&&t.html||(t={url:!1,html:""}),this.val(t.url),this.$(".canvas-media").html(t.html)},complete:function(){this.hideLoading()}});this.set("xhr",i)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(t,e){this.clear()},onKeypressSearch:function(t,e){13==t.which&&(t.preventDefault(),this.maybeSearch())},onKeyupSearch:function(t,e){e.val()&&this.maybeSearch()},onChangeSearch:function(t,e){this.maybeSearch()}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var t=this.$input().val();return"other"===t&&(t=this.inputText().val()),t},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected"),a=e.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"),a=!1),this.get("other_choice")&&("other"===a?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(t){this.busy=!0,acf.val(this.$input(),t),acf.val(this.$inputAlt(),t,!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd",'click [data-name="remove_item"]':"onClickRemove",mouseover:"onHover"},$control:function(){return this.$(".acf-relationship")},$list:function(t){return this.$("."+t+"-list")},$listItems:function(t){return this.$list(t).find(".acf-rel-item")},$listItem:function(t,e){return this.$list(t).find('.acf-rel-item[data-id="'+e+'"]')},getValue:function(){var t=[];return this.$listItems("values").each(function(){t.push($(this).data("id"))}),!!t.length&&t},newChoice:function(t){return["
  • ",''+t.text+"","
  • "].join("")},newValue:function(t){return["
  • ",'',''+t.text,'',"","
  • "].join("")},addSortable:function(t){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input().trigger("change")}})},initialize:function(){var t=this.proxy(function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;i+a>=n&&(this.set("paged",r+1),this.fetch())}});this.$list("choices").scrollTop(0).on("scroll",t),this.fetch()},onHover:function(t){$().off(t),this.addSortable(this)},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(n>0&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){var i=e.parent(),n=i.parent(),a=i.data("id");setTimeout(function(){n.remove()},1),this.$listItem("choices",a).removeClass("disabled"),this.$input().trigger("change")},maybeFetch:function(){var t=this.get("timeout");t&&clearTimeout(t),t=this.setTimeout(this.fetch,300),this.set("timeout",t)},getAjaxData:function(){var t=this.$control().data();for(var e in t)t[e]=this.get(e);return t.action="acf/fields/relationship/query",t.field_key=this.get("key"),t},fetch:function(){var t=this.get("xhr");t&&t.abort();var e=this.getAjaxData(),i=this.$list("choices");1==e.paged&&i.html("");var n=$('
  • '+acf.__("Loading")+"
  • ");i.append(n),this.set("loading",!0);var a=function(){this.set("loading",!1),n.remove()},r=function(t){if(!t||!t.results||!t.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("
  • "+acf.__("No matches found")+"
  • "));this.set("more",t.more);var e=this.walkChoices(t.results),n=$(e),a=this.val();a&&a.length&&a.map(function(t){n.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),i.append(n);var r=!1,o=!1;i.find(".acf-rel-label").each(function(){var t=$(this),e=t.siblings("ul");if(r&&r.text()==t.text())return o.append(e.children()),void $(this).parent().remove();r=t,o=e})},t=$.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(e),context:this,success:r,complete:a});this.set("xhr",t)},walkChoices:function(t){var e=function(t){var i="";return $.isArray(t)?t.map(function(t){i+=e(t)}):$.isPlainObject(t)&&(void 0!==t.children?(i+='
  • '+t.text+'
      ',i+=e(t.children),i+="
  • "):i+='
  • '+t.text+"
  • "),i};return e(t)}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove"},$input:function(){return this.$("select")},initialize:function(){var t=this.$input();if(this.inherit(t),this.get("ui")){var e=this.get("ajax_action");e||(e="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(t,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),ajaxAction:e})}},onRemove:function(){this.select2&&this.select2.destroy()}});acf.registerFieldType(e)}(jQuery),function($,t){var e="tab",i=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return this.events={},!1;var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new a(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,"tab"),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,"tab"),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable("tab")})},disable:function(t){this.getFields().map(function(t){t.disable("tab")})}});acf.registerFieldType(i);var n=0,a=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(t){$.extend(this.data,t),this.tabs=[],this.active=!1;var e=this.get("placement"),i=this.get("before"),a=i.parent();"left"==e&&a.hasClass("acf-fields")&&a.addClass("-sidebar"),i.is("tr")?this.$el=$('
    '):this.$el=$('
      '),i.before(this.$el),this.set("index",n,!0),n++},initializeTabs:function(){var t=this.getVisible().shift(),e=acf.getPreference("this.tabs")||[],i=this.get("index"),n=e[i];this.tabs[n]&&this.tabs[n].isVisible()&&(t=this.tabs[n]),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter(function(t){return t.isVisible()})},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(t){this.tabs.map(function(e){t.cid!==e.cid&&this.closeTab(e)},this),this.openTab(t)},addTab:function(t,e){var i=$("
    • ");i.append(t),this.$("ul").append(i);var n=new r({$el:i,field:e,group:this});return this.tabs.push(n),n},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){if("left"===this.get("placement")){var t=this.$el.parent(),e=this.$el.children("ul"),i=t.is("td")?"height":"min-height",n=e.position().top+e.outerHeight(!0)-1;t.css(i,n)}}}),r=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),o=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return $(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var t=[];this.getTabs().map(function(e){var i=e.hasActive()?e.getActive().index():0;t.push(i)}),t.length&&acf.setPreference("this.tabs",t)}})}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return"multi_select"==t&&(t="select"),t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){this.select2&&this.select2.destroy()},onClickAdd:function(t,e){var i=this,n=!1,a=!1,r=!1,o=!1,s=!1,c=!1,l=!1,d=function(t){n.loading(!1),n.content(t),a=n.$("form"),r=n.$('input[name="term_name"]'),o=n.$('select[name="term_parent"]'),s=n.$(".acf-submit-button"),r.focus(),n.on("submit","form",u)},u=function(t,e){if(t.preventDefault(),""===r.val())return r.focus(),!1;acf.startButtonLoading(s);var n={action:"acf/fields/taxonomy/add_term",field_key:i.get("key"),term_name:r.val(),term_parent:o.length?o.val():0};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"json",success:f})},f=function(t){acf.stopButtonLoading(s),l&&l.remove(),acf.isAjaxSuccess(t)?(r.val(""),h(t.data),l=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:a,timeout:2e3,dismiss:!1})):l=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:a,timeout:2e3,dismiss:!1}),r.focus()},h=function(t){var e=$('");t.term_parent?o.children('option[value="'+t.term_parent+'"]').after(e):o.append(e),acf.getFields({type:"taxonomy"}).map(function(e){e.get("taxonomy")==i.get("taxonomy")&&e.appendTerm(t)}),i.selectTerm(t.term_id)};!function(){n=acf.newPopup({title:e.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:i.get("key")};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:d})}()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(t){var e=this.$("[name]:first").attr("name"),i=this.$("ul:first");"checkbox"==this.getRelatedType()&&(e+="[]");var n=$(['
    • ',"","
    • "].join(""));if(t.term_parent){var a=i.find('li[data-id="'+t.term_parent+'"]');i=a.children("ul"),i.exists()||(i=$('
        '),a.append(i))}i.append(n)},selectTerm:function(t){if("select"==this.getRelatedType())this.select2.selectOption(t);else{this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")}},onClickRadio:function(t,e){var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"), -this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0};i.onClose=function(t,e,i){var n=e.dpDiv.find(".ui-datepicker-close");!t&&n.is(":hover")&&i._updateDateTime()},i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(e,i),acf.doAction("time_picker_init",e,i,this)}});acf.registerFieldType(e),acf.newTimePicker=function(t,e){if(void 0===$.timepicker)return!1;e=e||{},t.timepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('
        ')}}(jQuery),function($,t){var e=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t=this.$switch();if(t.length){var e=t.children(".acf-switch-on"),i=t.children(".acf-switch-off"),n=Math.max(e.width(),i.width());n&&(e.css("min-width",n),i.css("min-width",n))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",sortstartField:"disableEditor",sortstopField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},n=e.attr("id"),a=acf.uniqueId("acf-editor-");acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i)},onMousedown:function(t){t.preventDefault();var e=this.$control();e.removeClass("delay"),e.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){$.extend(this.data,t)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return''}}),acf.newCondition=function(t,e){var i=e.get("field"),n=i.getField(t.field);if(!i||!n)return!1;var a={rule:t,target:i,conditions:e,field:n},r=n.get("type"),o=t.operator;return new(acf.getConditionTypes({fieldType:r,operator:o})[0]||acf.Condition)(a)};var i=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var n=t.prototype,a=n.type,r=i(a);acf.models[r]=t,e.push(a)},acf.getConditionType=function(t){var e=i(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(t){t=acf.parseArgs(t,{fieldType:"",operator:""});var i=[];return e.map(function(e){var n=acf.getConditionType(e),a=n.prototype.fieldTypes,r=n.prototype.operator;t.fieldType&&-1===a.indexOf(t.fieldType)||t.operator&&r!==t.operator||i.push(n)}),i}}(jQuery),function($,t){var e="conditional_logic",i=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),n=function(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return i.length||(i=acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0})),!!i.length&&i[0]};acf.Field.prototype.getField=function(t){var e=n(this,t);if(e)return e;for(var i=this.parents(),a=0;aparseFloat(e)},o=function(t,e){return parseFloat(t)-1},c=function(t,e){return i(t).indexOf(i(e))>-1},l=function(t,e){var n=new RegExp(i(e),"gi");return i(t).match(n)},d=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:e("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","post_object","page_link","relationship","taxonomy","user","google_map","date_picker","date_time_picker","time_picker","color_picker"],match:function(t,e){return!!e.val()},choices:function(t){return''}});acf.registerConditionType(d);var u=d.extend({type:"hasNoValue",operator:"==empty",label:e("Has no value"),match:function(t,e){return!d.prototype.match.apply(this,arguments)}});acf.registerConditionType(u);var f=acf.Condition.extend({type:"equalTo",operator:"==",label:e("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return $.isNumeric(t.value)?a(t.value,e.val()):n(t.value,e.val())},choices:function(t){return''}});acf.registerConditionType(f);var h=f.extend({type:"notEqualTo",operator:"!=",label:e("Value is not equal to"),match:function(t,e){return!f.prototype.match.apply(this,arguments)}});acf.registerConditionType(h);var p=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:e("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"contains",operator:"==contains",label:e("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed"],match:function(t,e){return c(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(g);var m=f.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:e("Checked")}]}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:e("Checked")}]}});acf.registerConditionType(v);var y=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:e("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?s(t.value,i):n(t.value,i)},choices:function(t){var i=[],n=t.$setting("choices textarea").val().split("\n");return t.$input("allow_null").prop("checked")&&i.push({id:"",text:e("Null")}),n.map(function(t){t=t.split(":"),t[1]=t[1]||t[0],i.push({id:$.trim(t[0]),text:$.trim(t[1])})}),i}});acf.registerConditionType(y);var b=y.extend({type:"selectNotEqualTo",operator:"!=",label:e("Value is not equal to"),match:function(t,e){return!y.prototype.match.apply(this,arguments)}});acf.registerConditionType(b);var x=acf.Condition.extend({type:"greaterThan",operator:">",label:e("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),r(i,t.value)},choices:function(t){return''}});acf.registerConditionType(x);var _=x.extend({type:"lessThan",operator:"<",label:e("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return''}});acf.registerConditionType(_);var w=x.extend({type:"selectionGreaterThan",label:e("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(w);var k=_.extend({type:"selectionLessThan",label:e("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function($,t){acf.newMediaPopup=function(t){var e=null,t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}});return e="edit"==t.mode?new acf.models.EditMediaPopup(t):new acf.models.SelectMediaPopup(t),t.autoOpen&&setTimeout(function(){e.open()},1),acf.doAction("new_media_popup",e),e};var e=function(){var t=acf.get("post_id");return $.isNumeric(t)?t:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(void 0!==e[t])return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var i=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){$.extend(this.data,t)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);e.acf=this,this.addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.dispose()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=e()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},t),t.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},t),t.on("select",function(){var e=t.state().get("selection");e&&e.each(function(e,i){t.acf.get("select").apply(t.acf,[e,i])})}),t.on("close",function(){setTimeout(function(){t.acf.get("close").apply(t.acf),t.acf.remove()},1)})}});acf.models.SelectMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),t.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),t.on("content:activate:browse",function(){var e=!1;try{e=t.content.get().toolbar}catch(t){return void console.log(t)}t.acf.customizeFilters.apply(t.acf,[e])}),i.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var e=t.get("filters");if("image"==this.get("type")&&(e.filters.all.text=acf.__("All images"),delete e.filters.audio,delete e.filters.video,delete e.filters.image,$.each(e.filters,function(t,e){e.props.type=e.props.type||"image"})),this.get("allowedTypes")){this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(t){var i=acf.getMimeType(t);if(i){var n={text:i,props:{status:null,type:i,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};e.filters[i]=n}})}if("uploadedTo"===this.get("library")){var i=this.frame.options.library.uploadedTo;delete e.filters.unattached,delete e.filters.uploaded,$.each(e.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=i})}var n=this.get("field");$.each(e.filters,function(t,e){e.props._acfuploader=n}),t.get("search").model.attributes._acfuploader=n,e.renderFilters&&e.renderFilters()}}),acf.models.EditMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var e=this.state(),i=e.get("selection"),n=wp.media.attachment(t.acf.get("attachment"));i.add(n)},t),i.prototype.addFrameEvents.apply(this,arguments)}});var n=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){acf.isset(wp,"media","view")&&(this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary())},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var t=wp.media.view.Router;wp.media.view.Router=t.extend({addExpand:function(){var t=$(['',''+acf.__("Expand Details")+"",''+acf.__("Collapse Details")+"",""].join(""));t.on("click",function(t){t.preventDefault();var e=$(this).closest(".media-modal");e.hasClass("acf-expanded")?e.removeClass("acf-expanded"):e.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){if(acf.isset(wp,"media","view","AttachmentFilters","All")){wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,e){return{el:$("").val(e).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())}}},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var t=wp.media.view.AttachmentCompat,e=!1;wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(this.rendered=!0,t.prototype.render.apply(this,arguments),clearTimeout(e),e=setTimeout($.proxy(function(){this.$el.is(":visible")&&acf.doAction("append",this.$el)},this),50),this)},dispose:function(){return this.$el.is(":visible")&&console.log("removed visible"),t.prototype.dispose.apply(this,arguments)}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var t=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=t.extend({render:function(){var e=acf.isget(this,"controller","acf"),i=acf.isget(this,"model","attributes");if(e&&i){i.acf_errors&&this.$el.addClass("acf-disabled");var n=e.get("selected");n&&n.indexOf(i.id)>-1&&this.$el.addClass("acf-selected")}return t.prototype.render.apply(this,arguments)},toggleSelection:function(e){var i=this.collection,n=this.options.selection,a=this.model,r=n.single(),o=this.controller,s=acf.isget(this,"model","attributes","acf_errors"),c=o.$el.find(".media-frame-content .media-sidebar");if(c.children(".acf-selection-error").remove(),c.children().removeClass("acf-hidden"),o&&s){var l=acf.isget(this,"model","attributes","filename");return c.children().addClass("acf-hidden"),c.prepend(['
        ',''+acf.__("Restricted")+"",''+l+"",''+s+"","
        "].join("")),n.reset(),void n.single(a)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function($,t){acf.screen=new acf.Model({active:!0,xhr:!1,wait:"ready",events:{"change #page_template":"onChangeTemplate","change #parent_id":"onChangeParent","change #post-formats-select input":"onChangeFormat","change .categorychecklist input":"onChangeTerm","change .categorychecklist select":"onChangeTerm",'change .acf-taxonomy-field[data-save="1"] input':"onChangeTerm",'change .acf-taxonomy-field[data-save="1"] select':"onChangeTerm"},data:{},fetch:function(){if(this.active&&"post"===acf.get("screen")){this.xhr&&this.xhr.abort();var t=acf.parseArgs(this.data,{post_id:acf.get("post_id")});t.action="acf/post/get_field_groups",t.exists=[],$(".acf-postbox").not(".acf-hidden").each(function(){t.exists.push($(this).attr("id").substr(4))});var e=function(t){acf.isAjaxSuccess(t)&&($(".acf-postbox").addClass("acf-hidden"),$(".acf-postbox-toggle").addClass("acf-hidden"),$("#acf-style").html(""),t.data.map(function(t,e){var i=$("#acf-"+t.key),n=$("#acf-"+t.key+"-hide"),a=n.parent();i.removeClass("acf-hidden hide-if-js").show(),a.removeClass("acf-hidden hide-if-js").show(),n.prop("checked",!0);var r=i.find(".acf-replace-with-fields");r.exists()&&(r.replaceWith(t.html),acf.doAction("append",i)),0===e&&$("#acf-style").html(t.style),acf.enable(i,"postbox")}))},i=function(t){$(".acf-postbox.acf-hidden").each(function(){acf.disable($(this),"postbox")})};this.xhr=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"json",context:this,success:e,complete:i})}},syncTaxonomyTerms:function(){var t=[""];$(".categorychecklist, .acf-taxonomy-field").each(function(){var e=$(this),i=e.find('input[type="checkbox"]').not(":disabled"),n=e.find('input[type="radio"]').not(":disabled"),a=e.find("select").not(":disabled"),r=e.find('input[type="hidden"]').not(":disabled");e.is(".acf-taxonomy-field")&&"1"!=e.attr("data-save")||e.closest(".media-frame").exists()||(i.exists()?i.filter(":checked").each(function(){t.push($(this).val())}):n.exists()?n.filter(":checked").each(function(){t.push($(this).val())}):a.exists()?a.find("option:selected").each(function(){t.push($(this).val())}):r.exists()&&r.each(function(){$(this).val()&&t.push($(this).val())}))}),t=t.filter(function(t,e,i){return i.indexOf(t)==e}),this.set("post_taxonomy",t).fetch()},onChangeTemplate:function(t,e){this.set("page_template",e.val()).fetch()},onChangeParent:function(t,e){var i="parent",n=0;""!=e.val()&&(i="child",n=e.val()),this.set("page_type",i).set("page_parent",n).fetch()},onChangeFormat:function(t,e){var i=e.val();"0"==i&&(i="standard"),this.set("post_format",i).fetch()},onChangeTerm:function(t,e){e.closest(".media-frame").exists()||this.setTimeout(this.syncTaxonomyTerms,1)}})}(jQuery),function($,t){function e(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,i){if(i=acf.parseArgs(i,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==e())var r=new n(t,i);else var r=new a(t,i);return acf.doAction("new_select2",r),r};var i=acf.Model.extend({setup:function(t,e){$.extend(this.data,e),this.$el=t},initialize:function(){},selectOption:function(t){var e=this.getOption(t);e.prop("selected")||e.prop("selected",!0).trigger("change")},unselectOption:function(t){var e=this.getOption(t);e.prop("selected")&&e.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var e=this.getOption(t.id);return e.length||(e=$(""),e.html(t.text),e.attr("value",t.id),e.prop("selected",t.selected),this.$el.append(e)),e},getValue:function(){var t=[],e=this.$el.find("option:selected");return e.exists()?(e=e.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")}),e.each(function(){var e=$(this);t.push({$el:e,id:e.attr("value"),text:e.text()})}),t):t},mergeOptions:function(){},getChoices:function(){var t=function(e){var i=[];return e.children().each(function(){var e=$(this);e.is("optgroup")?i.push({text:e.attr("label"),children:t(e)}):i.push({id:e.attr("value"),text:e.text()})}),i};return t(this.$el)},decodeChoices:function(t){var e=function(t){return t.map(function(t){return t.text=acf.decode(t.text),t.children&&(t.children=e(t.children)),t}),t};return e(t)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var n=this.get("ajaxData");return n&&(e=n.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){t=acf.parseArgs(t,{results:!1,more:!1}),t.results&&(t.results=this.decodeChoices(t.results));var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(t,e){var t=this.getAjaxResults(t,e);return t.more&&(t.pagination={more:!0}),setTimeout($.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),n=i.extend({initialize:function(){var t=this.$el,e={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};e.multiple&&this.getValue().map(function(e){e.$el.detach().appendTo(t)}),t.removeData("ajax"),t.removeAttr("data-ajax"),this.get("ajax")&&(e.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:$.proxy(this.getAjaxData,this),processResults:$.proxy(this.processAjaxResults,this)});var i=this.get("field");e=acf.applyFilters("select2_args",e,t,this.data,i||!1,this),t.select2(e);var n=t.next(".select2-container");if(e.multiple){var a=n.find("ul");a.sortable({stop:function(e){a.find(".select2-selection__choice").each(function(){$($(this).data("data").element).detach().appendTo(t)}),t.trigger("change")}}),t.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}n.addClass("-acf"),acf.doAction("select2_init",t,e,this.data,i||!1,this)},mergeOptions:function(){var t=!1,e=!1;$('.select2-results__option[role="group"]').each(function(){var i=$(this).children("ul"),n=$(this).children("strong");if(e&&e.text()===n.text())return t.append(i.children()),void $(this).remove();t=i,e=n})}}),a=i.extend({initialize:function(){var t=this.$el,e=this.getValue(),i=this.get("multiple"),n={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return t},dropdownCss:{"z-index":"999999999"},initSelection:function(t,n){n(i?e:e.shift())}},a=t.siblings("input");a.length||(a=$(''),t.before(a)),inputValue=e.map(function(t){return t.id}).join("||"),a.val(inputValue),n.multiple&&e.map(function(e){e.$el.detach().appendTo(t)}),n.allowClear&&(n.data=n.data.filter(function(t){return""!==t.id})),t.removeData("ajax"),t.removeAttr("data-ajax"),this.get("ajax")&&(n.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:$.proxy(this.getAjaxData,this),results:$.proxy(this.processAjaxResults,this)});var r=this.get("field");n=acf.applyFilters("select2_args",n,t,this.data,r||!1,this),a.select2(n);var o=a.select2("container"),s=$.proxy(this.getOption,this);if(n.multiple){var c=o.find("ul");c.sortable({stop:function(){c.find(".select2-search-choice").each(function(){var e=$(this).data("select2Data");s(e.id).detach().appendTo(t)}),t.trigger("change")}})}a.on("select2-selecting",function(e){var i=e.choice,n=s(i.id);n.length||(n=$('")),n.detach().appendTo(t)}),o.addClass("-acf"),acf.doAction("select2_init",t,n,this.data,r||!1,this),a.on("change",function(){var e=a.val();e.indexOf("||")&&(e=e.split("||")),t.val(e).trigger("change")}),t.hide()},mergeOptions:function(){var t=!1,e=!1;$("#select2-drop .select2-result-with-children").each(function(){var i=$(this).children("ul"),n=$(this).children(".select2-result-label");if(e&&e.text()===n.text())return e.append(i.children()),void $(this).remove();t=i,e=n})},getAjaxData:function(t,e){var n={term:t,page:e};return i.prototype.getAjaxData.apply(this,[n])}}),r=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),i=acf.get("rtl");return!!acf.get("select2L10n")&&(0!==t.indexOf("en")&&void(4==e()?this.addTranslations4():this.addTranslations3()))},addTranslations4:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={errorLoading:function(){return t.load_fail},inputTooLong:function(e){var i=e.input.length-e.maximum;return i>1?t.input_too_long_n.replace("%d",i):t.input_too_long_1},inputTooShort:function(e){var i=e.minimum-e.input.length;return i>1?t.input_too_short_n.replace("%d",i):t.input_too_short_1},loadingMore:function(){return t.load_more},maximumSelected:function(e){var i=e.maximum;return i>1?t.selection_too_long_n.replace("%d",i):t.selection_too_long_1},noResults:function(){return t.matches_0},searching:function(){return t.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+e,[],function(){return i})},addTranslations3:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={formatMatches:function(e){return e>1?t.matches_n.replace("%d",e):t.matches_1},formatNoMatches:function(){return t.matches_0},formatAjaxError:function(){return t.load_fail},formatInputTooShort:function(e,i){var n=i-e.length;return n>1?t.input_too_short_n.replace("%d",n):t.input_too_short_1},formatInputTooLong:function(e,i){var n=e.length-i;return n>1?t.input_too_long_n.replace("%d",n):t.input_too_long_1},formatSelectionTooBig:function(e){return e>1?t.selection_too_long_n.replace("%d",e):t.selection_too_long_1},formatLoadMore:function(){return t.load_more},formatSearching:function(){return t.searching}};$.fn.select2.locales=$.fn.select2.locales||{},$.fn.select2.locales[e]=i,$.extend($.fn.select2.defaults,i)}})}(jQuery),function($,t){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content}},initialize:function(t,e){e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1}),e.tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(t,e){var i=$("#"+t),n=this.defaults(),a=acf.get("toolbars"),r=e.field||!1,o=r.$el||!1;if("undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(t))return this.enable(t);var s=$.extend({},n.tinymce,e.tinymce);s.id=t,s.selector="#"+t;var c=e.toolbar;if(c&&void 0!==a[c])for(var l=1;l<=4;l++)s["toolbar"+l]=a[c][l]||"";if(s.setup=function(e){e.on("change",function(t){e.save(),i.trigger("change")}),$(e.getWin()).on("unload",function(){acf.tinymce.remove(t)})},s.wp_autoresize_on=!1,s=acf.applyFilters("wysiwyg_tinymce_settings",s,t,r),tinyMCEPreInit.mceInit[t]=s,"visual"==e.mode){var d=tinymce.init(s),u=tinymce.get(t);if(!u)return!1;u.acf=e.field,acf.doAction("wysiwyg_tinymce_init",u,u.id,s,r)}},initializeQuicktags:function(t,e){var i=this.defaults();if("undefined"==typeof quicktags)return!1;if(!i)return!1;var n=$.extend({},i.quicktags,e.quicktags);n.id=t;var a=e.field||!1,r=a.$el||!1;n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,a),tinyMCEPreInit.qtInit[t]=n;var o=quicktags(n);if(!o)return!1;this.buildQuicktags(o),acf.doAction("wysiwyg_quicktags_init",o,o.id,n,a)},buildQuicktags:function(t){var e,i,n,a,r,t,o,s,c,l,d=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";e=t.canvas,i=t.name,n=t.settings,r="",a={},c="",l=t.id,n.buttons&&(c=","+n.buttons+",");for(s in edButtons)edButtons[s]&&(o=edButtons[s].id,c&&-1!==d.indexOf(","+o+",")&&-1===c.indexOf(","+o+",")||edButtons[s].instance&&edButtons[s].instance!==l||(a[o]=edButtons[s],edButtons[s].html&&(r+=edButtons[s].html(i+"_"))));c&&-1!==c.indexOf(",dfw,")&&(a.dfw=new QTags.DFWButton,r+=a.dfw.html(i+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(a.textdirection=new QTags.TextDirectionButton,r+=a.textdirection.html(i+"_")),t.toolbar.innerHTML=r,t.theButtons=a,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[t])},disable:function(t){this.destroyTinymce(t)},remove:function(t){this.destroyTinymce(t)},destroy:function(t){this.destroyTinymce(t)},destroyTinymce:function(t){if("undefined"==typeof tinymce)return!1;var e=tinymce.get(t);return!!e&&(e.save(),e.destroy(),!0)},enable:function(t){this.enableTinymce(t)},enableTinymce:function(t){return"undefined"!=typeof switchEditors&&(void 0!==tinyMCEPreInit.mceInit[t]&&(switchEditors.go(t,"tmce"),!0))}};var e=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady" -},onPrepare:function(){var t=$("#acf-hidden-wp-editor");t.exists()&&t.appendTo("body")},onReady:function(){acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function($,t){acf.validation=new acf.Model({active:!0,ignore:!1,errors:[],form:!1,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{"click #publish":"onClickPublish","click #submit":"onClickPublish","click #save-post":"onClickSave","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.disable(),this.actions={},this.events={})},getForm:function(t){var i=t.data("acf");return i||(i=new e(t)),this.form=i,i},enable:function(){this.active=!0},disable:function(){this.active=!1},pass:function(){this.ignore=!0,this.setTimeout(function(){this.ignore=!1},100)},reset:function(){this.ignore=!1,this.errors=[],this.form=!1},getErrors:function(){return this.errors},hasErrors:function(){return this.errors.length},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.errors.push(t)},getFieldErrors:function(){var t=[],e=[];return this.getErrors().map(function(i){if(i.input){var n=e.indexOf(i.input);n>-1?t[n]=i:(t.push(i),e.push(i.input))}}),t},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(t){if(this.hasErrors()){var e=this.getForm(t),i=this.getFieldErrors(),n=this.getGlobalErrors(),a=0,r=!1;i.map(function(e){var i=t.find('[name="'+e.input+'"]').first();if(i.exists()||(i=t.find('[name^="'+e.input+'"]').first()),i.exists()){a++;var n=acf.getClosestField(i);n.showError(e.message),r||(r=n.$el)}},this);var o=acf.__("Validation failed");1==a?o+=". "+acf.__("1 field requires attention"):a>1&&(o+=". "+acf.__("%d fields require attention").replace("%d",a)),e.notice?e.notice.update({type:"error",text:o}):e.notice=acf.newNotice({type:"error",text:o,target:t}),r||(r=e.notice.$el),setTimeout(function(){$("html, body").animate({scrollTop:r.offset().top-$(window).height()/2},500)},10)}},fetch:function(t){if(!this.busy){this.busy=1,t=acf.parseArgs(t,{form:!1,event:!1,lock:!0,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}});var e=t.form,i=this.getForm(e);if(t.event){var n=$.Event(null,t.event);t.success=function(){$(n.target).trigger(n)}}acf.doAction("validation_begin",e);var a=acf.serialize(e);a.action="acf/validate_save_post",this.lockForm(e),t.loading(e);var r=function(t){acf.isAjaxSuccess(t)&&(a=acf.applyFilters("validation_complete",t.data,e),a.valid||this.addErrors(a.errors))},o=function(){this.busy=0,this.unlockForm(e),this.hasErrors()?(acf.doAction("validation_failure",e),this.showErrors(e),t.failure(e)):(this.pass(),i.notice&&i.notice.update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",e),acf.doAction("submit",e),t.success(e),t.lock&&this.lockForm(e)),this.reset(),t.complete(e)};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:r,complete:o})}},addInputEvents:function(t){var e=$(".acf-field [name]");e.length&&this.on(e,"invalid","onInvalid")},onInvalid:function(t,e){var i=e.closest("form");this.addError({input:e.attr("name"),message:t.target.validationMessage}),t.preventDefault(),i.submit()},onClickPublish:function(t,e){this.set("originalEvent",t),this.setTimeout(function(){this.set("originalEvent",null)},100)},onClickSave:function(t,e){this.pass()},onSubmit:function(t,e){acf.validateForm({form:e,event:this.get("originalEvent")||t})||t.preventDefault()},showSpinner:function(t){t.addClass("is-active"),t.css("display","inline-block")},hideSpinner:function(t){t.removeClass("is-active"),t.css("display","none")},disableSubmit:function(t){t.prop("disabled",!0).addClass("disabled")},enableSubmit:function(t){t.prop("disabled",!1).removeClass("disabled")},findSubmitWrap:function(t){var e=$("#submitdiv");if(e.length)return e;var e=$("#submitpost");if(e.length)return e;var e=t.find("p.submit").last();if(e.length)return e;var e=t.find(".acf-form-submit");return e.length?e:t},lockForm:function(t){var e=this.findSubmitWrap(t),i=e.find(".button, .acf-button"),n=e.find(".spinner, .acf-spinner");this.hideSpinner(n),this.disableSubmit(i),this.showSpinner(n.last())},unlockForm:function(t){var e=this.findSubmitWrap(t),i=e.find(".button, .acf-button"),n=e.find(".spinner, .acf-spinner");this.enableSubmit(i),this.hideSpinner(n)}});var e=acf.Model.extend({notice:!1,setup:function(t){this.$el=t},lock:function(){acf.validation.lockForm(this.$el)},unlock:function(){acf.validation.unlockForm(this.$el)}});acf.validateForm=function(t){if(!t.form)return!0;var e=acf.validation.getForm(t.form);return!acf.validation.active||(!!acf.validation.ignore||(e.$("#wp-preview").val()?(e.unlock(),!0):!e.$("#acf-form-data").length||(acf.validation.fetch(t),!1)))}}(jQuery),function($,t){var e=new acf.Model({priority:90,timeout:0,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh"},refresh:function(){clearTimeout(this.timeout),this.timeout=setTimeout(function(){acf.doAction("refresh")},0)}}),i=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(t,e){t.is("tr")&&(t.css("position","relative"),t.children().each(function(){$(this).width($(this).width())}),t.css("position","absolute"),e.html('
        '))}}),n=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,e){var i=[];t.find("select").each(function(t){i.push($(this).val())}),e.find("select").each(function(t){$(this).val(i[t])})}}),a=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(t){var e=this;$(".acf-table:visible").each(function(){e.renderTable($(this))})},renderTable:function(t){var e=t.find("> thead > tr:visible > th[data-key]"),i=t.find("> tbody > tr:visible > td[data-key]");if(!e.length||!i.length)return!1;e.each(function(t){var e=$(this),n=e.data("key"),a=i.filter('[data-key="'+n+'"]'),r=a.filter(".acf-hidden");a.removeClass("acf-empty"),a.length===r.length?acf.hide(e):(acf.show(e),r.addClass("acf-empty"))}),e.css("width","auto"),e=e.not(".acf-hidden");var n=100,a=e.length;e.filter("[data-width]").each(function(){var t=$(this).data("width");$(this).css("width",t+"%"),n-=t});var r=e.not("[data-width]");if(r.length){var o=n/r.length;r.css("width",o+"%"),n=0}n>0&&e.last().css("width","auto"),i.filter(".-collapsed-target").each(function(){var t=$(this);t.parent().hasClass("-collapsed")?t.attr("colspan",e.length):t.removeAttr("colspan")})}}),r=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var t=this;$(".acf-fields:visible").each(function(){t.renderGroup($(this))})},renderGroup:function(t){var e=0,i=0,n=$(),a=t.children(".acf-field[data-width]:visible");return!!a.length&&(t.hasClass("-left")?(a.removeAttr("data-width"),a.css("width","auto"),!1):(a.removeClass("-r0 -c0").css({"min-height":0}),a.each(function(t){var a=$(this),r=a.position(),o=Math.ceil(r.top),s=Math.ceil(r.left);n.length&&o>e&&(n.css({"min-height":i+"px"}),r=a.position(),o=Math.ceil(r.top),s=Math.ceil(r.left),e=0,i=0,n=$()),0==o?a.addClass("-r0"):0==s&&a.addClass("-c0");var c=Math.ceil(a.outerHeight())+1;i=Math.max(i,c),e=Math.max(e,o),n=n.add(a)}),void(n.length&&n.css({"min-height":i+"px"}))))}})}(jQuery),function($,t){acf.newCompatibility=function(t,e){return e=e||{},e.__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var e=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});e._e=function(t,e){t=t||"",e=e||"";var i=e?t+"."+e:t,n={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(n[i])return acf.__(n[i]);var a=this.l10n[t]||"";return e&&(a=a[e]||""),a},e.get_selector=function(t){var e=".acf-field";if(!t)return e;if($.isPlainObject(t)){if($.isEmptyObject(t))return e;for(var i in t){t=t[i];break}}return e+="-"+t,e=acf.strReplace("_","-",e),e=acf.strReplace("field-field-","field-",e)},e.get_fields=function(t,e,i){var n={is:t||"",parent:e||!1,suppressFilters:i||!1};return n.is&&(n.is=this.get_selector(n.is)),acf.findFields(n)},e.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},e.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},e.get_field_wrap=function(t){return t.closest(this.get_selector())},e.get_field_key=function(t){return t.data("key")},e.get_field_type=function(t){return t.data("type")},e.get_data=function(t,e){return acf.parseArgs(t.data(),e)},e.maybe_get=function(t,e,i){void 0===i&&(i=null),keys=String(e).split(".");for(var n=0;n1){for(var c=0;c0?t.substr(0,n):t,r=n>0?t.substr(n+1):"",o=function(t){t.$el=$(this),acf.field_group&&(t.$field=t.$el.closest(".acf-field-object")),"function"==typeof i.event&&(t=i.event(t)),i[e].apply(i,arguments)};r?$(document).on(a,r,o):$(document).on(a,o)},get:function(t,e){return e=e||null,void 0!==this[t]&&(e=this[t]),e},set:function(t,e){return this[t]=e,"function"==typeof this["_set_"+t]&&this["_set_"+t].apply(this),this}},e.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_action(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_filter:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_filter(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_event:function(t,e){var i=this,n=t.substr(0,t.indexOf(" ")),a=t.substr(t.indexOf(" ")+1),r=acf.get_selector(i.type);$(document).on(n,r+" "+a,function(t){var n=$(this),a=acf.get_closest_field(n,i.type);a.length&&(a.is(i.$field)||i.set("$field",a),t.$el=n,t.$field=a,i[e].apply(i,[t]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var r=acf.newCompatibility(acf.validation,{remove_error:function(t){acf.getField(t).removeError()},add_warning:function(t,e){acf.getField(t).showNotice({text:e,type:"warning",timeout:1e3})}});e.tooltip={tooltip:function(t,e){return acf.newTooltip({text:t,target:e}).$el},temp:function(t,e){var i=acf.newTooltip({text:t,target:e,timeout:250})},confirm:function(t,e,i,n,a){var r=acf.newTooltip({confirm:!0,text:i,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})},confirm_remove:function(t,e){var i=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})}},e.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(t){this.activeFrame=t.frame},popup:function(t){return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),e.select2={init:function(t,e,i){return e.allow_null&&(e.allowNull=e.allow_null),e.ajax_action&&(e.ajaxAction=e.ajax_action),i&&(e.field=acf.getField(i)),acf.newSelect2(t,e)},destroy:function(t){return acf.getInstance(t).destroy()}},e.postbox={render:function(t){return t.edit_url&&(t.editLink=t.edit_url),t.edit_title&&(t.editTitle=t.edit_title),acf.newPostbox(t)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)}}),e.ajax=acf.screen}(jQuery); \ No newline at end of file +!function($,t){var e={};window.acf=e,e.data={},e.get=function(t){return this.data[t]||null},e.has=function(t){return null!==this.get(t)},e.set=function(t,e){return this.data[t]=e,this};var i=0;e.uniqueId=function(t){var e=++i+"";return t?t+e:e},e.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var n="";e.uniqid=function(t,e){void 0===t&&(t="");var i,a=function(t,e){return t=parseInt(t,10).toString(16),et.length?Array(e-t.length+1).join("0")+t:t};return n||(n=Math.floor(123456789*Math.random())),n++,i=t,i+=a(parseInt((new Date).getTime()/1e3,10),8),i+=a(n,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},e.strReplace=function(t,e,i){return i.split(t).join(e)},e.strCamelCase=function(t){return t=t.replace(/[_-]/g," "),t=t.replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},e.strPascalCase=function(t){var i=e.strCamelCase(t);return i.charAt(0).toUpperCase()+i.slice(1)},e.strSlugify=function(t){return e.strReplace("_","-",t.toLowerCase())},e.strSanitize=function(t){var e={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o"," ":"_","'":"","?":"","/":"","\\":"",".":"",",":"","`":"",">":"","<":"",'"':"","[":"","]":"","|":"","{":"","}":"","(":"",")":""},i=/\W/g,n=function(t){return e[t]||t};return t=t.replace(i,n),t=t.toLowerCase()},e.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a").html(t).text()},e.strEscape=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})},e.parseArgs=function(t,e){return"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={}),$.extend({},e,t)},void 0==window.acfL10n&&(acfL10n={}),e.__=function(t){return acfL10n[t]||t},e._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},e._n=function(t,i,n){return 1==n?e.__(t):e.__(i)},e.isArray=function(t){return Array.isArray(t)},e.isObject=function(t){return"object"==typeof t};var a=function(t,i,n){i=i.replace("[]","[%%index%%]");var a=i.match(/([^\[\]])+/g);if(a)for(var r=a.length,o=t,s=0;s');var s=e.parent();e.css({height:i,width:n,margin:a,position:"absolute"}),setTimeout(function(){s.css({opacity:0,height:t.endHeight})},50),setTimeout(function(){e.attr("style",o),s.remove(),t.complete()},301)},l=function(t){var e=t.target,i=e.height(),n=e.children().length,a=$('');e.addClass("acf-remove-element"),setTimeout(function(){e.html(a)},251),setTimeout(function(){e.removeClass("acf-remove-element"),a.css({height:t.endHeight})},300),setTimeout(function(){e.remove(),t.complete()},451)};e.duplicate=function(t){t instanceof jQuery&&(t={target:t});var i=0;t=e.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,e){t.after(e),i=1}}),t.target=t.target||t.$el;var n=t.target;t.search=t.search||n.attr("data-id"),t.replace=t.replace||e.uniqid(),t.before(n),e.doAction("before_duplicate",n);var a=n.clone();return e.rename({target:a,search:t.search,replace:t.replace}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),t.after(n,a),e.doAction("after_duplicate",n,a),t.append(n,a),e.doAction("append",a),a},e.rename=function(t){t instanceof jQuery&&(t={target:t}),t=e.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""});var i=t.target,n=t.search||i.attr("data-id"),a=t.replace||e.uniqid("acf"),r=function(t,e){return e.replace(n,a)};if(t.destructive){var o=i.outerHTML();o=e.strReplace(n,a,o),i.replaceWith(o)}else i.attr("data-id",a),i.find('[id*="'+n+'"]').attr("id",r),i.find('[for*="'+n+'"]').attr("for",r),i.find('[name*="'+n+'"]').attr("name",r);return i},e.prepareForAjax=function(t){return t.nonce=e.get("nonce"),t.post_id=e.get("post_id"),t=e.applyFilters("prepare_for_ajax",t)},e.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' ')},e.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},e.showLoading=function(t){t.append('
        ')},e.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},e.updateUserSetting=function(t,i){var n={action:"acf/update_user_setting",name:t,value:i};$.ajax({url:e.get("ajaxurl"),data:e.prepareForAjax(n),type:"post",dataType:"html"})},e.val=function(t,e,i){var n=t.val();return e!==n&&(t.val(e),t.is("select")&&null===t.val()?(t.val(n),!1):(!0!==i&&t.trigger("change"),!0))},e.show=function(t,i){return i&&e.unlock(t,"hidden",i),!e.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},e.hide=function(t,i){return i&&e.lock(t,"hidden",i),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},e.isHidden=function(t){return t.hasClass("acf-hidden")},e.isVisible=function(t){return!e.isHidden(t)};var d=function(t,i){return!t.hasClass("acf-disabled")&&(i&&e.unlock(t,"disabled",i),!e.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};e.enable=function(t,e){if(t.attr("name"))return d(t,e);var i=!1;return t.find("[name]").each(function(){d($(this),e)&&(i=!0)}),i};var u=function(t,i){return i&&e.lock(t,"disabled",i),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};e.disable=function(t,e){if(t.attr("name"))return u(t,e);var i=!1;return t.find("[name]").each(function(){u($(this),e)&&(i=!0)}),i},e.isset=function(t){for(var e=1;e-1){var o=window.URL||window.webkitURL,s=new Image;s.onload=function(){a.width=this.width,a.height=this.height,i(a)},s.src=o.createObjectURL(r)}else i(a);else i(a)},e.isAjaxSuccess=function(t){return t&&t.success},e.getAjaxMessage=function(t){return e.isget(t,"data","message")},e.getAjaxError=function(t){return e.isget(t,"data","error")},e.renderSelect=function(t,i){var n=t.val(),a=[],r=function(t){var i="";return t.map(function(t){var n=t.text||t.label||"",o=t.id||t.value||"";a.push(o),t.children?i+=''+r(t.children)+"":i+='"}),i};return t.html(r(i)),a.indexOf(n)>-1&&t.val(n),t.val()};var f=function(t,e){return t.data("acf-lock-"+e)||[]},h=function(t,e,i){t.data("acf-lock-"+e,i)};e.lock=function(t,e,i){var n=f(t,e);n.indexOf(i)<0&&(n.push(i),h(t,e,n))},e.unlock=function(t,e,i){var n=f(t,e),a=n.indexOf(i);return a>-1&&(n.splice(a,1),h(t,e,n)),0===n.length},e.isLocked=function(t,e){return f(t,e).length>0},$.fn.exists=function(){return $(this).length>0},$.fn.outerHTML=function(){return $(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(t){return $.inArray(t,this)}),$(document).ready(function(){e.doAction("ready")}),$(window).on("load",function(){e.doAction("load")}),$(window).on("beforeunload",function(){e.doAction("unload")}),$(window).on("resize",function(){e.doAction("resize")}),$(document).on("sortstart",function(t,i){e.doAction("sortstart",i.item,i.placeholder)}),$(document).on("sortstop",function(t,i){e.doAction("sortstop",i.item,i.placeholder)})}(jQuery),function(t,e){"use strict";var i=function(){function t(){return f}function e(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&(i=parseInt(i||10,10),c("actions",t,e,i,n)),u}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&d("actions",e,t),u}function n(t,e){return"string"==typeof t&&s("actions",t,e),u}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&(i=parseInt(i||10,10),c("filters",t,e,i,n)),u}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?d("filters",e,t):u}function o(t,e){return"string"==typeof t&&s("filters",t,e),u}function s(t,e,i,n){if(f[t][e])if(i){var a=f[t][e],r;if(n)for(r=a.length;r--;){var o=a[r];o.callback===i&&o.context===n&&a.splice(r,1)}else for(r=a.length;r--;)a[r].callback===i&&a.splice(r,1)}else f[t][e]=[]}function c(t,e,i,n,a){var r={callback:i,priority:n,context:a},o=f[t][e];o?(o.push(r),o=l(o)):o=[r],f[t][e]=o}function l(t){for(var e,i,n,a=1,r=t.length;ae.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function d(t,e,i){var n=f[t][e];if(!n)return"filters"===t&&i[0];var a=0,r=n.length;if("filters"===t)for(;a','
        ','

        ','
        ','
        ',"
        ",'
        ',""].join("")},render:function(){var t=this.get("title"),e=this.get("content"),i=this.get("loading"),n=this.get("width"),a=this.get("height");this.title(t),this.content(e),n&&this.$(".acf-popup-box").css("width",n),a&&this.$(".acf-popup-box").css("min-height",a),this.loading(i),acf.doAction("append",this.$el)},update:function(t){this.data=acf.parseArgs(t,this.data),this.render()},title:function(t){this.$(".title:first h3").html(t)},content:function(t){this.$(".inner:first").html(t)},loading:function(t){var e=this.$(".loading:first");t?e.show():e.hide()},open:function(){$("body").append(this.$el)},close:function(){this.remove()},onClickClose:function(t,e){t.preventDefault(),this.close()}}),acf.newPopup=function(t){return new acf.models.Popup(t)}}(jQuery),function($,t){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{change_field:"startListening",validation_failure:"startListening"},events:{"submit form":"stopListening"},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,$(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,$(window).off("beforeunload",this.onUnload)},onUnload:function(){return acf.__("The changes you made will be lost if you navigate away from this page")}})}(jQuery),function($,t){var e=new acf.Model({events:{"click .acf-panel-title":"onClick"},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.addClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-down")},close:function(t){t.removeClass("-open"),t.find(".acf-panel-title i").attr("class","dashicons dashicons-arrow-right")}})}(jQuery),function($,t){var e=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'
        '},setup:function(t){$.extend(this.data,t),this.$el=$(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("

        "+this.get("text")+"

        "),this.get("dismiss")&&(this.$el.append(''),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(t){$.extend(this.data,t),this.initialize()},show:function(){var t=this.get("target");t&&t.prepend(this.$el)},hide:function(){this.$el.remove()},away:function(t){this.setTimeout(function(){acf.remove(this.$el)},t)},type:function(t){var e=this.get("type");e&&this.$el.removeClass("-"+e),this.$el.addClass("-"+t),"error"==t&&this.$el.addClass("acf-error-message")},html:function(t){this.$el.html(t)},text:function(t){this.$("p").html(t)},onClickClose:function(t,e){t.preventDefault(),this.get("close").apply(this,arguments),this.remove()}});acf.newNotice=function(t){return"object"!=typeof t&&(t={text:t}),new e(t)};var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){var t=$(".acf-admin-notice");t.length&&$("h1:first").after(t)}})}(jQuery),function($,t){acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",editLink:"",editTitle:"",visibility:!0},setup:function(t){$.extend(this.data,t)},initialize:function(){var t=this.get("id"),e=$("#"+t),i=$("#"+t+"-hide"),n=i.parent();e.addClass("acf-postbox"),n.addClass("acf-postbox-toggle"),e.removeClass("hide-if-js"),n.removeClass("hide-if-js");var a=this.get("style");"default"!==a&&e.addClass(a),e.children(".inside").addClass("acf-fields").addClass("-"+this.get("label")),this.get("visibility")?i.prop("checked",!0):(e.addClass("acf-hidden"),n.addClass("acf-hidden"));var r=this.get("editLink"),o=this.get("editTitle");r&&e.children(".hndle").append('')}}),acf.newPostbox=function(t){return new acf.models.Postbox(t)}}(jQuery),function($,t){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),void 0!==t.confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new i(t)):void 0!==t.confirm?new i(t):new e(t)};var e=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'
        '},setup:function(t){$.extend(this.data,t),this.$el=$(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var t=this.get("timeout");t&&setTimeout($.proxy(this.fade,this),t)},update:function(t){$.extend(this.data,t),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){$("body").append(this.$el)},hide:function(){this.$el.remove()},fade:function(){this.$el.addClass("acf-fade-up"),this.setTimeout(function(){this.remove()},250)},html:function(t){this.$el.html(t)},position:function(){var t=this.$el,e=this.get("target");if(e){t.removeClass("right left bottom top");var i=10,n=e.outerWidth(),a=e.outerHeight(),r=e.offset().top,o=e.offset().left,s=t.outerWidth(),c=t.outerHeight(),l=r-c,d=o+n/2-s/2;d<10?(t.addClass("right"),d=o+n,l=r+a/2-c/2):d+s+10>$(window).width()?(t.addClass("left"),d=o-s,l=r+a/2-c/2):l-$(window).scrollTop()<10?(t.addClass("bottom"),l=r+a):t.addClass("top"),t.css({top:l,left:d})}}}),i=e.extend({data:{text:"",textConfirm:"",textCancel:"",target:null,targetConfirm:!0,confirm:function(){},cancel:function(){},context:!1},events:{'click [data-event="cancel"]':"onCancel",'click [data-event="confirm"]':"onConfirm"},addEvents:function(){acf.Model.prototype.addEvents.apply(this);var t=$(document),e=this.get("target");this.setTimeout(function(){this.on(t,"click","onCancel")}),this.get("targetConfirm")&&this.on(e,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var t=$(document),e=this.get("target");this.off(t,"click"),this.off(e,"click")},render:function(){var t=this.get("text")||acf.__("Are you sure?"),e=this.get("textConfirm")||acf.__("Yes"),i=this.get("textCancel")||acf.__("No"),n=[t,''+e+"",''+i+""].join(" ");this.html(n),this.$el.addClass("-confirm")},onCancel:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("cancel"),n=this.get("context")||this;i.apply(n,arguments),this.remove()},onConfirm:function(t,e){t.preventDefault(),t.stopImmediatePropagation();var i=this.get("confirm"),n=this.get("context")||this;i.apply(n,arguments),this.remove()}});acf.models.Tooltip=e,acf.models.TooltipConfirm=i;var n=new acf.Model({tooltip:!1,events:{"mouseenter .acf-js-tooltip":"showTitle","mouseup .acf-js-tooltip":"hideTitle","mouseleave .acf-js-tooltip":"hideTitle"},showTitle:function(t,e){var i=e.attr("title");i&&(e.attr("title",""),this.tooltip?this.tooltip.update({text:i,target:e}):this.tooltip=acf.newTooltip({text:i,target:e}))},hideTitle:function(t,e){this.tooltip.hide(),e.attr("title",this.tooltip.get("text"))}})}(jQuery),function($,t){var e=[];acf.Field=acf.Model.extend({type:"",eventScope:".acf-field",wait:"ready",setup:function(t){this.$el=t,this.inherit(t),this.inherit(this.$control())},val:function(t){return void 0!==t?this.setValue(t):this.prop("disabled")?null:this.getValue()},getValue:function(){return this.$input().val()},setValue:function(t){return acf.val(this.$input(),t)},__:function(t){return acf._e(this.type,t)},$control:function(){return!1},$input:function(){return this.$("[name]:first")},$inputWrap:function(){return this.$(".acf-input:first")},$labelWrap:function(){return this.$(".acf-label:first")},getInputName:function(){return this.$input().attr("name")||""},parent:function(){var t=this.parents();return!!t.length&&t[0]},parents:function(){var t=this.$el.parents(".acf-field");return acf.getFields(t)},show:function(t,e){var i=acf.show(this.$el,t);return i&&(this.prop("hidden",!1),acf.doAction("show_field",this,e)),i},hide:function(t,e){var i=acf.hide(this.$el,t);return i&&(this.prop("hidden",!0),acf.doAction("hide_field",this,e)),i},enable:function(t,e){var i=acf.enable(this.$el,t);return i&&(this.prop("disabled",!1),acf.doAction("enable_field",this,e)),i},disable:function(t,e){var i=acf.disable(this.$el,t);return i&&(this.prop("disabled",!0),acf.doAction("disable_field",this,e)),i},showEnable:function(t,e){return this.enable.apply(this,arguments),this.show.apply(this,arguments)},hideDisable:function(t,e){return this.disable.apply(this,arguments),this.hide.apply(this,arguments)},showNotice:function(t){"object"!=typeof t&&(t={text:t}),this.notice&&this.notice.remove(),t.target=this.$inputWrap(),this.notice=acf.newNotice(t)},removeNotice:function(t){this.notice&&(this.notice.away(t||0),this.notice=!1)},showError:function(t){this.$el.addClass("acf-error"),void 0!==t&&this.showNotice({text:t,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",$.proxy(this.removeError,this))},removeError:function(){this.$el.removeClass("acf-error"),this.removeNotice(250),acf.doAction("valid_field",this)},trigger:function(t,e,i){return"invalidField"==t&&(i=!0),acf.Model.prototype.trigger.apply(this,[t,e,i])}}),acf.newField=function(t){var e=t.data("type"),n=i(e),a=acf.models[n]||acf.Field,r=new a(t);return acf.doAction("new_field",r),r};var i=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var n=t.prototype,a=n.type,r=i(a);acf.models[r]=t,e.push(a)},acf.getFieldType=function(t){var e=i(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var i=[];return e.map(function(e){var n=acf.getFieldType(e),a=n.prototype;t.category&&a.category!==t.category||i.push(n)}),i}}(jQuery),function($,t){acf.findFields=function(t){var e=".acf-field",i=!1;return t=acf.parseArgs(t,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1}),t.suppressFilters||(t=acf.applyFilters("find_fields_args",t)),t.key&&(e+='[data-key="'+t.key+'"]'),t.type&&(e+='[data-type="'+t.type+'"]'),t.name&&(e+='[data-name="'+t.name+'"]'),t.is&&(e+=t.is),t.visible&&(e+=":visible"),i=t.parent?t.parent.find(e):t.sibling?t.sibling.siblings(e):$(e),t.suppressFilters||(i=i.not(".acf-clone .acf-field"),i=acf.applyFilters("find_fields",i)),t.limit&&(i=i.slice(0,t.limit)),i},acf.findField=function(t,e){return acf.findFields({key:t,limit:1,parent:e,suppressFilters:!0})},acf.getField=function(t){t instanceof jQuery||(t=acf.findField(t));var e=t.data("acf");return e||(e=acf.newField(t)),e},acf.getFields=function(t){t instanceof jQuery||(t=acf.findFields(t));var e=[];return t.each(function(){var t=acf.getField($(this));e.push(t)}),e},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var e=function(t){var e=t,n=t+"_fields",a=t+"_field",r=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1),a=acf.getFields({parent:t});if(a.length){var r=[n,a].concat(i);acf.doAction.apply(null,r)}},o=function(t){var e=acf.arrayArgs(arguments),i=e.slice(1);t.map(function(t,e){var n=[a,t].concat(i);acf.doAction.apply(null,n)})};acf.addAction(e,r),acf.addAction(n,o),i(t)},i=function(t){var e=t+"_field",i=t+"Field",n=function(n){var a=acf.arrayArgs(arguments),o=a.slice(1);["type","name","key"].map(function(t){var i="/"+t+"="+n.get(t);a=[e+i,n].concat(o),acf.doAction.apply(null,a)}),r.indexOf(t)>-1&&n.trigger(i,o)};acf.addAction(e,n)},n=["prepare","ready","load","append","remove","sortstart","sortstop","show","hide","unload"],a=["valid","invalid","enable","disable","new"],r=["remove","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];n.map(e),a.map(i);var o=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){$("#_acf_changed").val(1)}})}(jQuery),function($,t){var e=0,i=acf.Field.extend({type:"accordion",wait:"",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(!this.$el.is("td")){if(this.get("endpoint"))return this.remove();var t=this.$el,i=this.$labelWrap(),n=this.$inputWrap(),a=this.$control(),r=n.children(".description");if(r.length&&i.append(r),this.$el.is("tr")){var o=this.$el.closest("table"),s=$('
        '),c=$('
        '),l=$('
          '),d=$("");s.append(i.html()),l.append(d),c.append(l),n.append(s),n.append(c),i.remove(),a.remove(),n.attr("colspan",2),i=s,n=c,a=d}t.addClass("acf-accordion"),i.addClass("acf-accordion-title"),n.addClass("acf-accordion-content"),e++,this.get("multi_expand")&&t.attr("multi-expand",1);var u=acf.getPreference("this.accordions")||[];void 0!==u[e-1]&&this.set("open",u[e-1]),this.get("open")&&(t.addClass("-open"),n.css("display","block")),i.prepend('');var f=t.parent();a.addClass(f.hasClass("-left")?"-left":""),a.addClass(f.hasClass("-clear")?"-clear":""),a.append(t.nextUntil(".acf-field-accordion",".acf-field")),a.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(i);var n=new acf.Model({actions:{unload:"onUnload"},events:{"click .acf-accordion-title":"onClick","invalidField .acf-accordion":"onInvalidField"},isOpen:function(t){return t.hasClass("-open")},toggle:function(t){this.isOpen(t)?this.close(t):this.open(t)},open:function(t){t.find(".acf-accordion-content:first").slideDown().css("display","block"),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-right").addClass("dashicons-arrow-down"),t.addClass("-open"),acf.doAction("show",t),t.attr("multi-expand")||t.siblings(".acf-accordion.-open").each(function(){n.close($(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-right"),t.removeClass("-open"),acf.doAction("hide",t)},onClick:function(t,e){t.preventDefault(),this.toggle(e.parent())},onInvalidField:function(t,e){this.busy||(this.busy=!0,this.setTimeout(function(){this.busy=!1},1e3),this.open(e))},onUnload:function(t){var e=[];$(".acf-accordion").each(function(){var t=$(this).hasClass("-open")?1:0;e.push(t)}),e.length&&acf.setPreference("this.accordions",e)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"button_group",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-button-group")},$input:function(){return this.$("input:checked")},setValue:function(t){this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")},onClick:function(t,e){ +var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"checkbox",events:{"change input":"onChange","click .acf-add-checkbox":"onClickAdd","click .acf-checkbox-toggle":"onClickToggle","click .acf-checkbox-custom":"onClickCustom"},$control:function(){return this.$(".acf-checkbox-list")},$toggle:function(){return this.$(".acf-checkbox-toggle")},$input:function(){return this.$('input[type="hidden"]')},$inputs:function(){return this.$('input[type="checkbox"]').not(".acf-checkbox-toggle")},getValue:function(){var t=[];return this.$(":checked").each(function(){t.push($(this).val())}),!!t.length&&t},onChange:function(t,e){var i=e.prop("checked"),n=this.$toggle();if(i?e.parent().addClass("selected"):e.parent().removeClass("selected"),n.length){0==this.$inputs().not(":checked").length?n.prop("checked",!0):n.prop("checked",!1)}},onClickAdd:function(t,e){var i='
        • ';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked");this.$inputs().prop("checked",i)},onClickCustom:function(t,e){var i=e.prop("checked"),n=e.next('input[type="text"]');i?n.prop("disabled",!1):(n.prop("disabled",!0),""==n.val()&&e.parent("li").remove())}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"color_picker",wait:"load",$control:function(){return this.$(".acf-color-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){var t=this.$input(),e=this.$inputText(),i=function(i){setTimeout(function(){acf.val(t,e.val())},1)},n={defaultColor:!1,palettes:!0,hide:!0,change:i,clear:i},n=acf.applyFilters("color_picker_args",n,this);e.wpColorPicker(n)}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"date_picker",events:{'blur input[type="text"]':"onBlur"},$control:function(){return this.$(".acf-date-picker")},$input:function(){return this.$('input[type="hidden"]')},$inputText:function(){return this.$('input[type="text"]')},initialize:function(){if(this.has("save_format"))return this.initializeCompatibility();var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),altField:t,altFormat:"yymmdd",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this),acf.newDatePicker(e,i),acf.doAction("date_picker_init",e,i,this)},initializeCompatibility:function(){var t=this.$input(),e=this.$inputText();e.val(t.val());var i={dateFormat:this.get("date_format"),altField:t,altFormat:this.get("save_format"),changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day")};i=acf.applyFilters("date_picker_args",i,this);var n=i.dateFormat;i.dateFormat=this.get("save_format"),acf.newDatePicker(e,i),e.datepicker("option","dateFormat",n),acf.doAction("date_picker_init",e,i,this)},onBlur:function(){this.$inputText().val()||acf.val(this.$input(),"")}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("datePickerL10n");return!!i&&(void 0!==$.datepicker&&(i.isRTL=e,$.datepicker.regional[t]=i,void $.datepicker.setDefaults(i)))}});acf.newDatePicker=function(t,e){if(void 0===$.datepicker)return!1;e=e||{},t.datepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('
          ')}}(jQuery),function($,t){var e=acf.models.DatePickerField.extend({type:"date_time_picker",$control:function(){return this.$(".acf-date-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={dateFormat:this.get("date_format"),timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altFormat:"yy-mm-dd",altTimeFormat:"HH:mm:ss",changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.get("first_day"),controlType:"select",oneLine:!0};i=acf.applyFilters("date_time_picker_args",i,this),acf.newDateTimePicker(e,i),acf.doAction("date_time_picker_init",e,i,this)}});acf.registerFieldType(e);var i=new acf.Model({priority:5,wait:"ready",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),i=acf.get("dateTimePickerL10n");return!!i&&(void 0!==$.timepicker&&(i.isRTL=e,$.timepicker.regional[t]=i,void $.timepicker.setDefaults(i)))}});acf.newDateTimePicker=function(t,e){if(void 0===$.timepicker)return!1;e=e||{},t.datetimepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('
          ')}}(jQuery),function($,t){var e=acf.Field.extend({type:"google_map",map:!1,wait:"load",events:{'click a[data-name="clear"]':"onClickClear",'click a[data-name="locate"]':"onClickLocate",'click a[data-name="search"]':"onClickSearch","keydown .search":"onKeydownSearch","keyup .search":"onKeyupSearch","focus .search":"onFocusSearch","blur .search":"onBlurSearch",showField:"onShow"},$control:function(){return this.$(".acf-google-map")},$input:function(t){return this.$('input[data-name="'+(t||"address")+'"]')},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},addClass:function(t){this.$control().addClass(t)},removeClass:function(t){this.$control().removeClass(t)},getValue:function(){var t={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){t[$(this).data("name")]=$(this).val()}),t.address||(t=!1),t},setValue:function(t){t=acf.parseArgs(t,{lat:"",lng:"",address:""});for(var e in t)acf.val(this.$input(e),t[e]);t.address||(t=!1),this.renderVal(t)},renderVal:function(t){t?(this.addClass("-value"),this.setPosition(t.lat,t.lng),this.map.marker.setVisible(!0)):(this.removeClass("-value"),this.map.marker.setVisible(!1)),this.$search().val(t.address)},setPosition:function(t,e){var i=this.newLatLng(t,e);return this.map.marker.setPosition(i),this.map.marker.setVisible(!0),acf.doAction("google_map_change",i,this.map,this),this.center(),this},center:function(){var t=this.map.marker.getPosition(),e=this.get("lat"),i=this.get("lng");t&&(e=t.lat(),i=t.lng());var n=this.newLatLng(e,i);this.map.setCenter(n)},getSearchVal:function(){return this.$search().val()},initialize:function(){if(!i.isReady())return void i.ready(this.initializeMap,this);this.initializeMap()},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n={scrollwheel:!1,zoom:parseInt(t),center:this.newLatLng(e,i),mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};n=acf.applyFilters("google_map_args",n,this);var a=new google.maps.Map(this.$canvas()[0],n);this.addMapEvents(a,this);var r=acf.parseArgs(n.marker,{draggable:!0,raiseOnDrag:!0,map:a});r=acf.applyFilters("google_map_marker_args",r,this);var o=new google.maps.Marker(r);this.addMarkerEvents(o,this),a.acf=this,a.marker=o,this.map=a,acf.doAction("google_map_init",a,o,this);var s=this.getValue();this.renderVal(s)},addMapEvents:function(t,e){if(acf.isset(window,"google","maps","places","Autocomplete")){var i=t.autocomplete||{},n=new google.maps.places.Autocomplete(this.$search()[0],i);n.bindTo("bounds",t),google.maps.event.addListener(n,"place_changed",function(){var t=this.getPlace();t.address=e.getSearchVal(),e.setPlace(t)})}google.maps.event.addListener(t,"click",function(t){var i=t.latLng.lat(),n=t.latLng.lng();e.searchPosition(i,n)})},addMarkerEvents:function(t,e){google.maps.event.addListener(t,"dragend",function(){var t=this.getPosition(),i=t.lat(),n=t.lng();e.searchPosition(i,n)})},searchPosition:function(t,e){var n=this.newLatLng(t,e),a=this.$control();this.setPosition(t,e),a.addClass("-loading");var r=$.proxy(function(i,n){a.removeClass("-loading");var r="";n!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+n):i[0]?r=i[0].formatted_address:console.log("No results found"),this.val({lat:t,lng:e,address:r})},this);i.geocoder.geocode({latLng:n},r)},setPlace:function(t){if(!t)return this;if(t.name&&!t.geometry)return this.searchAddress(t.name),this;var e=t.geometry.location.lat(),i=t.geometry.location.lng(),n=t.address||t.formatted_address;return this.setValue({lat:e,lng:i,address:n}),this},searchAddress:function(t){var e=t.split(",");if(2==e.length){var n=e[0],a=e[1];if($.isNumeric(n)&&$.isNumeric(a))return this.searchPosition(n,a)}var r=this.$control();r.addClass("-loading");var o=this.proxy(function(e,i){r.removeClass("-loading");var n="",a="";i!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+i):e[0]?(n=e[0].geometry.location.lat(),a=e[0].geometry.location.lng()):console.log("No results found"),this.val({lat:n,lng:a,address:t})});i.geocoder.geocode({address:t},o)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var t=this.$control();t.addClass("-loading");var e=$.proxy(function(e,i){t.removeClass("-loading");var n=e.coords.latitude,a=e.coords.longitude;this.searchPosition(n,a)},this),i=function(e){t.removeClass("-loading")};navigator.geolocation.getCurrentPosition(e,i)},onClickClear:function(t,e){this.val(!1)},onClickLocate:function(t,e){this.searchLocation()},onClickSearch:function(t,e){this.searchAddress(this.$search().val())},onFocusSearch:function(t,e){this.removeClass("-value"),this.onKeyupSearch.apply(this,arguments)},onBlurSearch:function(t,e){this.setTimeout(function(){this.removeClass("-search"),e.val()&&this.addClass("-value")},100)},onKeyupSearch:function(t,e){e.val()?this.addClass("-search"):this.removeClass("-search")},onKeydownSearch:function(t,e){13==t.which&&t.preventDefault()},onMousedown:function(){},onShow:function(){if(!this.map)return!1;this.setTimeout(this.center,10)}});acf.registerFieldType(e);var i=new acf.Model({geocoder:!1,data:{status:!1},getStatus:function(){return this.get("status")},setStatus:function(t){return this.set("status",t)},isReady:function(){if("ready"==this.getStatus())return!0;if("loading"==this.getStatus())return!1;if(acf.isset(window,"google","maps","places"))return this.setStatus("ready"),!0;var t=acf.get("google_map_api");return t&&(this.setStatus("loading"),$.ajax({url:t,dataType:"script",cache:!0,context:this,success:function(){this.setStatus("ready"),this.geocoder=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}})),!1},ready:function(t,e){acf.addAction("google_map_api_loaded",t,10,e)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"image",$control:function(){return this.$(".acf-image-uploader")},$input:function(){return this.$('input[type="hidden"]')},events:{'click a[data-name="add"]':"onClickAdd",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove",'change input[type="file"]':"onChange"},initialize:function(){"basic"===this.get("uploader")&&this.$el.closest("form").attr("enctype","multipart/form-data")},validateAttachment:function(t){t=t||{},void 0!==t.id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",caption:"",description:"",width:0,height:0});var e=acf.isget(t,"sizes",this.get("preview_size"),"url");return null!==e&&(t.url=e),t},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.url,alt:t.alt,title:t.title});var e=t.id||"";this.val(e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},append:function(t,e){var i=function(t,e){for(var i=acf.getFields({key:t.get("key"),parent:e.$el}),n=0;n0?this.append(e,t):this.render(e)},this)})},editAttachment:function(){var t=this.val();if(t)var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.render(t)},this)})},removeAttachment:function(){this.render(!1)},onClickAdd:function(t,e){this.selectAttachment()},onClickEdit:function(t,e){this.editAttachment()},onClickRemove:function(t,e){this.removeAttachment()},onChange:function(t,e){var i=this.$input();acf.getFileInputData(e,function(t){i.val($.param(t))})}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return t=t||{},void 0!==t.id&&(t=t.attributes),t=acf.parseArgs(t,{url:"",alt:"",title:"",filename:"",filesizeHumanReadable:"",icon:"/wp-includes/images/media/default.png"})},render:function(t){t=this.validateAttachment(t),this.$("img").attr({src:t.icon,alt:t.alt,title:t.title}),this.$('[data-name="title"]').text(t.title),this.$('[data-name="filename"]').text(t.filename).attr("href",t.url),this.$('[data-name="filesize"]').text(t.filesizeHumanReadable);var e=t.id||"";acf.val(this.$input(),e),e?this.$control().addClass("has-value"):this.$control().removeClass("has-value")},selectAttachment:function(){var t=this.parent(),e=t&&"repeater"===t.get("type"),i=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:e,library:this.get("library"),allowedTypes:this.get("mime_types"),select:$.proxy(function(e,i){i>0?this.append(e,t):this.render(e)},this)})},editAttachment:function(){var t=this.val();if(!t)return!1;var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove","change .link-node":"onChange"},$control:function(){return this.$(".acf-link")},$node:function(){return this.$(".link-node")},getValue:function(){var t=this.$node();return!!t.attr("href")&&{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setValue:function(t){t=acf.parseArgs(t,{title:"",url:"",target:""});var e=this.$control(),i=this.$node();e.removeClass("-value -external"),t.url&&e.addClass("-value"),"_blank"===t.target&&e.addClass("-external"),this.$(".link-title").html(t.title),this.$(".link-url").attr("href",t.url).html(t.url),i.html(t.title),i.attr("href",t.url),i.attr("target",t.target),this.$(".input-title").val(t.title),this.$(".input-target").val(t.target),this.$(".input-url").val(t.url).trigger("change")},onClickEdit:function(t,e){acf.wpLink.open(this.$node())},onClickRemove:function(t,e){this.setValue(!1)},onChange:function(t,e){var i=this.getValue();this.setValue(i)}});acf.registerFieldType(e),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:t.html(),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.html(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:$("#wp-link-text").val(),url:$("#wp-link-url").val(),target:$("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(t){$("#wp-link-text").val(t.title),$("#wp-link-url").val(t.url),$("#wp-link-target").prop("checked","_blank"===t.target)},open:function(t){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",t);var e=$('');$("body").append(e);var i=this.getNodeValue();wpLink.open("acf-link-textarea",i.url,i.title,null)},onOpen:function(){$("#wp-link-wrap").addClass("has-text-field");var t=this.getNodeValue();this.setInputValue(t)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var t=this.getInputValue();this.setNodeValue(t),$("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function($,t){var e=acf.Field.extend({type:"oembed",events:{'click [data-name="clear-button"]':"onClickClear","keypress .input-search":"onKeypressSearch","keyup .input-search":"onKeyupSearch","change .input-search":"onChangeSearch"},$control:function(){return this.$(".acf-oembed")},$input:function(){return this.$(".input-value")},$search:function(){return this.$(".input-search")},getValue:function(){return this.$input().val()},getSearchVal:function(){return this.$search().val()},setValue:function(t){t?this.$control().addClass("has-value"):this.$control().removeClass("has-value"),acf.val(this.$input(),t)},showLoading:function(t){acf.showLoading(this.$(".canvas"))},hideLoading:function(){acf.hideLoading(this.$(".canvas"))},maybeSearch:function(){var t=this.val(),e=this.getSearchVal();if(!e)return this.clear();if("http"!=e.substr(0,4)&&(e="http://"+e),e!==t){var i=this.get("timeout");i&&clearTimeout(i);var n=$.proxy(this.search,this,e);this.set("timeout",setTimeout(n,300))}},search:function(t){var e={action:"acf/fields/oembed/search",s:t,field_key:this.get("key")},i=this.get("xhr");i&&i.abort(),this.showLoading();var i=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:function(t){t&&t.html||(t={url:!1,html:""}),this.val(t.url),this.$(".canvas-media").html(t.html)},complete:function(){this.hideLoading()}});this.set("xhr",i)},clear:function(){this.val(""),this.$search().val(""),this.$(".canvas-media").html("")},onClickClear:function(t,e){this.clear()},onKeypressSearch:function(t,e){13==t.which&&(t.preventDefault(),this.maybeSearch())},onKeyupSearch:function(t,e){e.val()&&this.maybeSearch()},onChangeSearch:function(t,e){this.maybeSearch()}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"radio",events:{'click input[type="radio"]':"onClick"},$control:function(){return this.$(".acf-radio-list")},$input:function(){return this.$("input:checked")},$inputText:function(){return this.$('input[type="text"]')},getValue:function(){var t=this.$input().val();return"other"===t&&this.get("other_choice")&&(t=this.$inputText().val()),t},onClick:function(t,e){var i=e.parent("label"),n=i.hasClass("selected"),a=e.val();this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"),a=!1),this.get("other_choice")&&("other"===a?this.$inputText().prop("disabled",!1):this.$inputText().prop("disabled",!0))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"range",events:{'input input[type="range"]':"onChange","change input":"onChange"},$input:function(){return this.$('input[type="range"]')},$inputAlt:function(){return this.$('input[type="number"]')},setValue:function(t){this.busy=!0,acf.val(this.$input(),t),acf.val(this.$inputAlt(),t,!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"relationship",events:{"keypress [data-filter]":"onKeypressFilter","change [data-filter]":"onChangeFilter","keyup [data-filter]":"onChangeFilter","click .choices-list .acf-rel-item":"onClickAdd",'click [data-name="remove_item"]':"onClickRemove",mouseover:"onHover"},$control:function(){return this.$(".acf-relationship")},$list:function(t){return this.$("."+t+"-list")},$listItems:function(t){return this.$list(t).find(".acf-rel-item")},$listItem:function(t,e){return this.$list(t).find('.acf-rel-item[data-id="'+e+'"]')},getValue:function(){var t=[];return this.$listItems("values").each(function(){t.push($(this).data("id"))}),!!t.length&&t},newChoice:function(t){return["
        • ",''+t.text+"","
        • "].join("")},newValue:function(t){return["
        • ",'',''+t.text,'',"","
        • "].join("")},addSortable:function(t){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:function(){t.$input().trigger("change")}})},initialize:function(){var t=this.proxy(function(t){if(!this.get("loading")&&this.get("more")){var e=this.$list("choices"),i=Math.ceil(e.scrollTop()),n=Math.ceil(e[0].scrollHeight),a=Math.ceil(e.innerHeight()),r=this.get("paged")||1;i+a>=n&&(this.set("paged",r+1),this.fetch())}});this.$list("choices").scrollTop(0).on("scroll",t),this.fetch()},onHover:function(t){$().off(t),this.addSortable(this)},onKeypressFilter:function(t,e){13==t.which&&t.preventDefault()},onChangeFilter:function(t,e){var i=e.val(),n=e.data("filter");this.get(n)!==i&&(this.set(n,i),this.set("paged",1),e.is("select")?this.fetch():this.maybeFetch())},onClickAdd:function(t,e){var i=this.val(),n=parseInt(this.get("max"));if(e.hasClass("disabled"))return!1;if(n>0&&i&&i.length>=n)return this.showNotice({text:acf.__("Maximum values reached ( {max} values )").replace("{max}",n),type:"warning"}),!1;e.addClass("disabled");var a=this.newValue({id:e.data("id"),text:e.html()});this.$list("values").append(a),this.$input().trigger("change")},onClickRemove:function(t,e){var i=e.parent(),n=i.parent(),a=i.data("id");setTimeout(function(){n.remove()},1),this.$listItem("choices",a).removeClass("disabled"),this.$input().trigger("change")},maybeFetch:function(){var t=this.get("timeout");t&&clearTimeout(t),t=this.setTimeout(this.fetch,300),this.set("timeout",t)},getAjaxData:function(){var t=this.$control().data();for(var e in t)t[e]=this.get(e);return t.action="acf/fields/relationship/query",t.field_key=this.get("key"),t},fetch:function(){var t=this.get("xhr");t&&t.abort();var e=this.getAjaxData(),i=this.$list("choices");1==e.paged&&i.html("");var n=$('
        • '+acf.__("Loading")+"
        • ");i.append(n),this.set("loading",!0);var a=function(){this.set("loading",!1),n.remove()},r=function(t){if(!t||!t.results||!t.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("
        • "+acf.__("No matches found")+"
        • "));this.set("more",t.more);var e=this.walkChoices(t.results),n=$(e),a=this.val();a&&a.length&&a.map(function(t){n.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),i.append(n);var r=!1,o=!1;i.find(".acf-rel-label").each(function(){var t=$(this),e=t.siblings("ul");if(r&&r.text()==t.text())return o.append(e.children()),void $(this).parent().remove();r=t,o=e})},t=$.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(e),context:this,success:r,complete:a});this.set("xhr",t)},walkChoices:function(t){var e=function(t){var i="";return $.isArray(t)?t.map(function(t){i+=e(t)}):$.isPlainObject(t)&&(void 0!==t.children?(i+='
        • '+t.text+'
            ',i+=e(t.children),i+="
        • "):i+='
        • '+t.text+"
        • "),i};return e(t)}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"select",select2:!1,wait:"load",events:{removeField:"onRemove"},$input:function(){return this.$("select")},initialize:function(){var t=this.$input();if(this.inherit(t),this.get("ui")){var e=this.get("ajax_action");e||(e="acf/fields/"+this.get("type")+"/query"),this.select2=acf.newSelect2(t,{field:this,ajax:this.get("ajax"),multiple:this.get("multiple"),placeholder:this.get("placeholder"),allowNull:this.get("allow_null"),ajaxAction:e})}},onRemove:function(){this.select2&&this.select2.destroy()}});acf.registerFieldType(e)}(jQuery),function($,t){var e="tab",i=acf.Field.extend({type:"tab",wait:"",tabs:!1,tab:!1,findFields:function(){return this.$el.nextUntil(".acf-field-tab",".acf-field")},getFields:function(){return acf.getFields(this.findFields())},findTabs:function(){return this.$el.prevAll(".acf-tab-wrap:first")},findTab:function(){return this.$(".acf-tab-button")},initialize:function(){if(this.$el.is("td"))return this.events={},!1;var t=this.findTabs(),e=this.findTab(),i=acf.parseArgs(e.data(),{endpoint:!1,placement:"",before:this.$el});!t.length||i.endpoint?this.tabs=new a(i):this.tabs=t.data("acf"),this.tab=this.tabs.addTab(e,this)},isActive:function(){return this.tab.isActive()},showFields:function(){this.getFields().map(function(t){t.show(this.cid,"tab"),t.hiddenByTab=!1},this)},hideFields:function(){this.getFields().map(function(t){t.hide(this.cid,"tab"),t.hiddenByTab=this.tab},this)},show:function(t){var e=acf.Field.prototype.show.apply(this,arguments);return e&&(this.tab.show(),this.tabs.refresh()),e},hide:function(t){var e=acf.Field.prototype.hide.apply(this,arguments);return e&&(this.tab.hide(),this.isActive()&&this.tabs.reset()),e},enable:function(t){this.getFields().map(function(t){t.enable("tab")})},disable:function(t){this.getFields().map(function(t){t.disable("tab")})}});acf.registerFieldType(i);var n=0,a=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(t){$.extend(this.data,t),this.tabs=[],this.active=!1;var e=this.get("placement"),i=this.get("before"),a=i.parent();"left"==e&&a.hasClass("acf-fields")&&a.addClass("-sidebar"),i.is("tr")?this.$el=$('
          '):this.$el=$('
            '),i.before(this.$el),this.set("index",n,!0),n++},initializeTabs:function(){var t=this.getVisible().shift(),e=acf.getPreference("this.tabs")||[],i=this.get("index"),n=e[i];this.tabs[n]&&this.tabs[n].isVisible()&&(t=this.tabs[n]),t?this.selectTab(t):this.closeTabs(),this.set("initialized",!0)},getVisible:function(){return this.tabs.filter(function(t){return t.isVisible()})},getActive:function(){return this.active},setActive:function(t){return this.active=t},hasActive:function(){return!1!==this.active},isActive:function(t){var e=this.getActive();return e&&e.cid===t.cid},closeActive:function(){this.hasActive()&&this.closeTab(this.getActive())},openTab:function(t){this.closeActive(),t.open(),this.setActive(t)},closeTab:function(t){t.close(),this.setActive(!1)},closeTabs:function(){this.tabs.map(this.closeTab,this)},selectTab:function(t){this.tabs.map(function(e){t.cid!==e.cid&&this.closeTab(e)},this),this.openTab(t)},addTab:function(t,e){var i=$("
          • ");i.append(t),this.$("ul").append(i);var n=new r({$el:i,field:e,group:this});return this.tabs.push(n),n},reset:function(){return this.closeActive(),this.refresh()},refresh:function(){if(this.hasActive())return!1;var t=this.getVisible().shift();return t&&this.openTab(t),t},onRefresh:function(){if("left"===this.get("placement")){var t=this.$el.parent(),e=this.$el.children("ul"),i=t.is("td")?"height":"min-height",n=e.position().top+e.outerHeight(!0)-1;t.css(i,n)}}}),r=acf.Model.extend({group:!1,field:!1,events:{"click a":"onClick"},index:function(){return this.$el.index()},isVisible:function(){return acf.isVisible(this.$el)},isActive:function(){return this.$el.hasClass("active")},open:function(){this.$el.addClass("active"),this.field.showFields()},close:function(){this.$el.removeClass("active"),this.field.hideFields()},onClick:function(t,e){t.preventDefault(),this.toggle()},toggle:function(){this.isActive()||this.group.openTab(this)}}),o=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return $(".acf-tab-wrap")},getTabs:function(){return acf.getInstances(this.findTabs())},render:function(t){this.getTabs().map(function(t){t.get("initialized")||t.initializeTabs()})},onInvalidField:function(t){this.busy||t.hiddenByTab&&(t.hiddenByTab.toggle(),this.busy=!0,this.setTimeout(function(){this.busy=!1},100))},onUnload:function(){var t=[];this.getTabs().map(function(e){var i=e.hasActive()?e.getActive().index():0;t.push(i)}),t.length&&acf.setPreference("this.tabs",t)}})}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"taxonomy",data:{ftype:"select"},select2:!1,wait:"load",events:{'click a[data-name="add"]':"onClickAdd",'click input[type="radio"]':"onClickRadio"},$control:function(){return this.$(".acf-taxonomy-field")},$input:function(){return this.getRelatedPrototype().$input.apply(this,arguments)},getRelatedType:function(){var t=this.get("ftype");return"multi_select"==t&&(t="select"),t},getRelatedPrototype:function(){return acf.getFieldType(this.getRelatedType()).prototype},getValue:function(){return this.getRelatedPrototype().getValue.apply(this,arguments)},setValue:function(){return this.getRelatedPrototype().setValue.apply(this,arguments)},initialize:function(){this.getRelatedPrototype().initialize.apply(this,arguments)},onRemove:function(){this.select2&&this.select2.destroy()},onClickAdd:function(t,e){var i=this,n=!1,a=!1,r=!1,o=!1,s=!1,c=!1,l=!1,d=function(t){n.loading(!1),n.content(t),a=n.$("form"),r=n.$('input[name="term_name"]'),o=n.$('select[name="term_parent"]'),s=n.$(".acf-submit-button"),r.focus(),n.on("submit","form",u)},u=function(t,e){if(t.preventDefault(),""===r.val())return r.focus(),!1;acf.startButtonLoading(s);var n={action:"acf/fields/taxonomy/add_term",field_key:i.get("key"),term_name:r.val(),term_parent:o.length?o.val():0};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(n),type:"post",dataType:"json",success:f})},f=function(t){acf.stopButtonLoading(s),l&&l.remove(),acf.isAjaxSuccess(t)?(r.val(""),h(t.data),l=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:a,timeout:2e3,dismiss:!1})):l=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:a,timeout:2e3,dismiss:!1}),r.focus()},h=function(t){var e=$('");t.term_parent?o.children('option[value="'+t.term_parent+'"]').after(e):o.append(e),acf.getFields({type:"taxonomy"}).map(function(e){e.get("taxonomy")==i.get("taxonomy")&&e.appendTerm(t)}),i.selectTerm(t.term_id)};!function(){n=acf.newPopup({title:e.attr("title"),loading:!0,width:"300px"});var t={action:"acf/fields/taxonomy/add_term",field_key:i.get("key")};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"html",success:d})}()},appendTerm:function(t){"select"==this.getRelatedType()?this.appendTermSelect(t):this.appendTermCheckbox(t)},appendTermSelect:function(t){this.select2.addOption({id:t.term_id,text:t.term_label})},appendTermCheckbox:function(t){var e=this.$("[name]:first").attr("name"),i=this.$("ul:first");"checkbox"==this.getRelatedType()&&(e+="[]");var n=$(['
          • ',"","
          • "].join(""));if(t.term_parent){var a=i.find('li[data-id="'+t.term_parent+'"]');i=a.children("ul"),i.exists()||(i=$('
              '),a.append(i))}i.append(n)},selectTerm:function(t){if("select"==this.getRelatedType())this.select2.selectOption(t);else{this.$('input[value="'+t+'"]').prop("checked",!0).trigger("change")}},onClickRadio:function(t,e){ +var i=e.parent("label"),n=i.hasClass("selected");this.$(".selected").removeClass("selected"),i.addClass("selected"),this.get("allow_null")&&n&&(i.removeClass("selected"),e.prop("checked",!1).trigger("change"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.models.DatePickerField.extend({type:"time_picker",$control:function(){return this.$(".acf-time-picker")},initialize:function(){var t=this.$input(),e=this.$inputText(),i={timeFormat:this.get("time_format"),altField:t,altFieldTimeOnly:!1,altTimeFormat:"HH:mm:ss",showButtonPanel:!0,controlType:"select",oneLine:!0,closeText:acf.get("dateTimePickerL10n").selectText,timeOnly:!0};i.onClose=function(t,e,i){var n=e.dpDiv.find(".ui-datepicker-close");!t&&n.is(":hover")&&i._updateDateTime()},i=acf.applyFilters("time_picker_args",i,this),acf.newTimePicker(e,i),acf.doAction("time_picker_init",e,i,this)}});acf.registerFieldType(e),acf.newTimePicker=function(t,e){if(void 0===$.timepicker)return!1;e=e||{},t.timepicker(e),$("body > #ui-datepicker-div").exists()&&$("body > #ui-datepicker-div").wrap('
              ')}}(jQuery),function($,t){var e=acf.Field.extend({type:"true_false",events:{"change .acf-switch-input":"onChange","focus .acf-switch-input":"onFocus","blur .acf-switch-input":"onBlur","keypress .acf-switch-input":"onKeypress"},$input:function(){return this.$('input[type="checkbox"]')},$switch:function(){return this.$(".acf-switch")},getValue:function(){return this.$input().prop("checked")?1:0},initialize:function(){this.render()},render:function(){var t=this.$switch();if(t.length){var e=t.children(".acf-switch-on"),i=t.children(".acf-switch-off"),n=Math.max(e.width(),i.width());n&&(e.css("min-width",n),i.css("min-width",n))}},switchOn:function(){this.$input().prop("checked",!0),this.$switch().addClass("-on")},switchOff:function(){this.$input().prop("checked",!1),this.$switch().removeClass("-on")},onChange:function(t,e){e.prop("checked")?this.switchOn():this.switchOff()},onFocus:function(t,e){this.$switch().addClass("-focus")},onBlur:function(t,e){this.$switch().removeClass("-focus")},onKeypress:function(t,e){return 37===t.keyCode?this.switchOff():39===t.keyCode?this.switchOn():void 0}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"url",events:{'keyup input[type="url"]':"onkeyup"},$control:function(){return this.$(".acf-input-wrap")},$input:function(){return this.$('input[type="url"]')},initialize:function(){this.render()},isValid:function(){var t=this.val();return!!t&&(-1!==t.indexOf("://")||0===t.indexOf("//"))},render:function(){this.isValid()?this.$control().addClass("-valid"):this.$control().removeClass("-valid")},onkeyup:function(t,e){this.render()}});acf.registerFieldType(e)}(jQuery),function($,t){var e=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",sortstartField:"disableEditor",sortstopField:"enableEditor",removeField:"disableEditor"},$control:function(){return this.$(".acf-editor-wrap")},$input:function(){return this.$("textarea")},getMode:function(){return this.$control().hasClass("tmce-active")?"visual":"text"},initialize:function(){this.$control().hasClass("delay")||this.initializeEditor()},initializeEditor:function(){var t=this.$control(),e=this.$input(),i={tinymce:!0,quicktags:!0,toolbar:this.get("toolbar"),mode:this.getMode(),field:this},n=e.attr("id"),a=acf.uniqueId("acf-editor-");acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i)},onMousedown:function(t){t.preventDefault();var e=this.$control();e.removeClass("delay"),e.find(".acf-editor-toolbar").remove(),this.initializeEditor()},enableEditor:function(){"visual"==this.getMode()&&acf.tinymce.enable(this.get("id"))},disableEditor:function(){acf.tinymce.destroy(this.get("id"))}});acf.registerFieldType(e)}(jQuery),function($,t){var e=[];acf.Condition=acf.Model.extend({type:"",operator:"==",label:"",choiceType:"input",fieldTypes:[],data:{conditions:!1,field:!1,rule:{}},events:{change:"change",keyup:"change",enableField:"change",disableField:"change"},setup:function(t){$.extend(this.data,t)},getEventTarget:function(t,e){return t||this.get("field").$el},change:function(t,e){this.get("conditions").change(t)},match:function(t,e){return!1},calculate:function(){return this.match(this.get("rule"),this.get("field"))},choices:function(t){return''}}),acf.newCondition=function(t,e){var i=e.get("field"),n=i.getField(t.field);if(!i||!n)return!1;var a={rule:t,target:i,conditions:e,field:n},r=n.get("type"),o=t.operator;return new(acf.getConditionTypes({fieldType:r,operator:o})[0]||acf.Condition)(a)};var i=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var n=t.prototype,a=n.type,r=i(a);acf.models[r]=t,e.push(a)},acf.getConditionType=function(t){var e=i(t);return acf.models[e]||!1},acf.registerConditionForFieldType=function(t,e){var i=acf.getConditionType(t);i&&i.prototype.fieldTypes.push(e)},acf.getConditionTypes=function(t){t=acf.parseArgs(t,{fieldType:"",operator:""});var i=[];return e.map(function(e){var n=acf.getConditionType(e),a=n.prototype.fieldTypes,r=n.prototype.operator;t.fieldType&&-1===a.indexOf(t.fieldType)||t.operator&&r!==t.operator||i.push(n)}),i}}(jQuery),function($,t){var e="conditional_logic",i=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),n=function(t,e){var i=acf.getFields({key:e,sibling:t.$el,suppressFilters:!0});return i.length||(i=acf.getFields({key:e,parent:t.$el.parent(),suppressFilters:!0})),!!i.length&&i[0]};acf.Field.prototype.getField=function(t){var e=n(this,t);if(e)return e;for(var i=this.parents(),a=0;aparseFloat(e)},o=function(t,e){return parseFloat(t)-1},c=function(t,e){return i(t).indexOf(i(e))>-1},l=function(t,e){var n=new RegExp(i(e),"gi");return i(t).match(n)},d=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:e("Has any value"),fieldTypes:["text","textarea","number","range","email","url","password","image","file","wysiwyg","oembed","select","checkbox","radio","button_group","link","post_object","page_link","relationship","taxonomy","user","google_map","date_picker","date_time_picker","time_picker","color_picker"],match:function(t,e){return!!e.val()},choices:function(t){return''}});acf.registerConditionType(d);var u=d.extend({type:"hasNoValue",operator:"==empty",label:e("Has no value"),match:function(t,e){return!d.prototype.match.apply(this,arguments)}});acf.registerConditionType(u);var f=acf.Condition.extend({type:"equalTo",operator:"==",label:e("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(t,e){return $.isNumeric(t.value)?a(t.value,e.val()):n(t.value,e.val())},choices:function(t){return''}});acf.registerConditionType(f);var h=f.extend({type:"notEqualTo",operator:"!=",label:e("Value is not equal to"),match:function(t,e){return!f.prototype.match.apply(this,arguments)}});acf.registerConditionType(h);var p=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:e("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"contains",operator:"==contains",label:e("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed"],match:function(t,e){return c(e.val(),t.value)},choices:function(t){return''}});acf.registerConditionType(g);var m=f.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:e("Checked")}]}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:e("Checked")}]}});acf.registerConditionType(v);var y=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:e("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?s(t.value,i):n(t.value,i)},choices:function(t){var i=[],n=t.$setting("choices textarea").val().split("\n");return t.$input("allow_null").prop("checked")&&i.push({id:"",text:e("Null")}),n.map(function(t){t=t.split(":"),t[1]=t[1]||t[0],i.push({id:$.trim(t[0]),text:$.trim(t[1])})}),i}});acf.registerConditionType(y);var b=y.extend({type:"selectNotEqualTo",operator:"!=",label:e("Value is not equal to"),match:function(t,e){return!y.prototype.match.apply(this,arguments)}});acf.registerConditionType(b);var x=acf.Condition.extend({type:"greaterThan",operator:">",label:e("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),r(i,t.value)},choices:function(t){return''}});acf.registerConditionType(x);var w=x.extend({type:"lessThan",operator:"<",label:e("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return''}});acf.registerConditionType(w);var _=x.extend({type:"selectionGreaterThan",label:e("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(_);var k=w.extend({type:"selectionLessThan",label:e("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function($,t){acf.newMediaPopup=function(t){var e=null,t=acf.parseArgs(t,{mode:"select",title:"",button:"",type:"",field:!1,allowedTypes:"",library:"all",multiple:!1,attachment:0,autoOpen:!0,open:function(){},select:function(){},close:function(){}});return e="edit"==t.mode?new acf.models.EditMediaPopup(t):new acf.models.SelectMediaPopup(t),t.autoOpen&&setTimeout(function(){e.open()},1),acf.doAction("new_media_popup",e),e};var e=function(){var t=acf.get("post_id");return $.isNumeric(t)?t:0};acf.getMimeTypes=function(){return this.get("mimeTypes")},acf.getMimeType=function(t){var e=acf.getMimeTypes();if(void 0!==e[t])return e[t];for(var i in e)if(-1!==i.indexOf(t))return e[i];return!1};var i=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(t){$.extend(this.data,t)},initialize:function(){var t=this.getFrameOptions();this.addFrameStates(t);var e=wp.media(t);e.acf=this,this.addFrameEvents(e,t),this.frame=e},open:function(){this.frame.open()},close:function(){this.frame.close()},remove:function(){this.frame.detach(),this.frame.remove()},getFrameOptions:function(){var t={title:this.get("title"),multiple:this.get("multiple"),library:{},states:[]};return this.get("type")&&(t.library.type=this.get("type")),"uploadedTo"===this.get("library")&&(t.library.uploadedTo=e()),this.get("attachment")&&(t.library.post__in=[this.get("attachment")]),this.get("button")&&(t.button={text:this.get("button")}),t},addFrameStates:function(t){var e=wp.media.query(t.library);this.get("field")&&acf.isset(e,"mirroring","args")&&(e.mirroring.args._acfuploader=this.get("field")),t.states.push(new wp.media.controller.Library({library:e,multiple:this.get("multiple"),title:this.get("title"),priority:20,filterable:"all",editable:!0,allowLocalEdits:!0})),acf.isset(wp,"media","controller","EditImage")&&t.states.push(new wp.media.controller.EditImage)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-media-modal -"+this.acf.get("mode"))},t),t.on("content:render:edit-image",function(){var t=this.state().get("image"),e=new wp.media.view.EditImage({model:t,controller:this}).render();this.content.set(e),e.loadEditor()},t),t.on("select",function(){var e=t.state().get("selection");e&&e.each(function(e,i){t.acf.get("select").apply(t.acf,[e,i])})}),t.on("close",function(){setTimeout(function(){t.acf.get("close").apply(t.acf),t.acf.remove()},1)})}});acf.models.SelectMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){acf.isset(_wpPluploadSettings,"defaults","multipart_params")&&(_wpPluploadSettings.defaults.multipart_params._acfuploader=this.get("field"),t.on("open",function(){delete _wpPluploadSettings.defaults.multipart_params._acfuploader})),t.on("content:activate:browse",function(){var e=!1;try{e=t.content.get().toolbar}catch(t){return void console.log(t)}t.acf.customizeFilters.apply(t.acf,[e])}),i.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(t){var e=t.get("filters");if("image"==this.get("type")&&(e.filters.all.text=acf.__("All images"),delete e.filters.audio,delete e.filters.video,delete e.filters.image,$.each(e.filters,function(t,e){e.props.type=e.props.type||"image"})),this.get("allowedTypes")){this.get("allowedTypes").split(" ").join("").split(".").join("").split(",").map(function(t){var i=acf.getMimeType(t);if(i){var n={text:i,props:{status:null,type:i,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};e.filters[i]=n}})}if("uploadedTo"===this.get("library")){var i=this.frame.options.library.uploadedTo;delete e.filters.unattached,delete e.filters.uploaded,$.each(e.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=i})}var n=this.get("field");$.each(e.filters,function(t,e){e.props._acfuploader=n}),t.get("search").model.attributes._acfuploader=n,e.renderFilters&&e.renderFilters()}}),acf.models.EditMediaPopup=i.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),i.prototype.setup.apply(this,arguments)},addFrameEvents:function(t,e){t.on("open",function(){this.$el.closest(".media-modal").addClass("acf-expanded"),"browse"!=this.content.mode()&&this.content.mode("browse");var e=this.state(),i=e.get("selection"),n=wp.media.attachment(t.acf.get("attachment"));i.add(n)},t),i.prototype.addFrameEvents.apply(this,arguments)}});var n=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=e();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var t=wp.media.view.Router;wp.media.view.Router=t.extend({addExpand:function(){var t=$(['',''+acf.__("Expand Details")+"",''+acf.__("Collapse Details")+"",""].join(""));t.on("click",function(t){t.preventDefault();var e=$(this).closest(".media-modal");e.hasClass("acf-expanded")?e.removeClass("acf-expanded"):e.addClass("acf-expanded")}),this.$el.append(t)},initialize:function(){return t.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){if(acf.isset(wp,"media","view","AttachmentFilters","All")){wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(t,e){return{el:$("").val(e).html(t.text)[0],priority:t.priority||50}},this).sortBy("priority").pluck("el").value())}}},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var t=wp.media.view.AttachmentCompat,e=!1;wp.media.view.AttachmentCompat=t.extend({render:function(){return this.rendered?this:(t.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(e),e=setTimeout($.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50),this):this)}})}},customizeAttachmentLibrary:function(){if(acf.isset(wp,"media","view","Attachment","Library")){var t=wp.media.view.Attachment.Library;wp.media.view.Attachment.Library=t.extend({render:function(){var e=acf.isget(this,"controller","acf"),i=acf.isget(this,"model","attributes");if(e&&i){i.acf_errors&&this.$el.addClass("acf-disabled");var n=e.get("selected");n&&n.indexOf(i.id)>-1&&this.$el.addClass("acf-selected")}return t.prototype.render.apply(this,arguments)},toggleSelection:function(e){var i=this.collection,n=this.options.selection,a=this.model,r=n.single(),o=this.controller,s=acf.isget(this,"model","attributes","acf_errors"),c=o.$el.find(".media-frame-content .media-sidebar");if(c.children(".acf-selection-error").remove(),c.children().removeClass("acf-hidden"),o&&s){var l=acf.isget(this,"model","attributes","filename");return c.children().addClass("acf-hidden"),c.prepend(['
              ',''+acf.__("Restricted")+"",''+l+"",''+s+"","
              "].join("")),n.reset(),void n.single(a)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function($,t){acf.screen=new acf.Model({active:!0,xhr:!1,wait:"ready",events:{"change #page_template":"onChangeTemplate","change #parent_id":"onChangeParent","change #post-formats-select input":"onChangeFormat","change .categorychecklist input":"onChangeTerm","change .categorychecklist select":"onChangeTerm",'change .acf-taxonomy-field[data-save="1"] input':"onChangeTerm",'change .acf-taxonomy-field[data-save="1"] select':"onChangeTerm"},data:{},fetch:function(){if(this.active&&"post"===acf.get("screen")){this.xhr&&this.xhr.abort();var t=acf.parseArgs(this.data,{post_id:acf.get("post_id")});t.action="acf/post/get_field_groups",t.exists=[],$(".acf-postbox").not(".acf-hidden").each(function(){t.exists.push($(this).attr("id").substr(4))});var e=function(t){acf.isAjaxSuccess(t)&&($(".acf-postbox").addClass("acf-hidden"),$(".acf-postbox-toggle").addClass("acf-hidden"),$("#acf-style").html(""),t.data.map(function(t,e){var i=$("#acf-"+t.key),n=$("#acf-"+t.key+"-hide"),a=n.parent();i.removeClass("acf-hidden hide-if-js").show(),a.removeClass("acf-hidden hide-if-js").show(),n.prop("checked",!0);var r=i.find(".acf-replace-with-fields");r.exists()&&(r.replaceWith(t.html),acf.doAction("append",i)),0===e&&$("#acf-style").html(t.style),acf.enable(i,"postbox")}))},i=function(t){$(".acf-postbox.acf-hidden").each(function(){acf.disable($(this),"postbox")})};this.xhr=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(t),type:"post",dataType:"json",context:this,success:e,complete:i})}},syncTaxonomyTerms:function(){var t=[""];$(".categorychecklist, .acf-taxonomy-field").each(function(){var e=$(this),i=e.find('input[type="checkbox"]').not(":disabled"),n=e.find('input[type="radio"]').not(":disabled"),a=e.find("select").not(":disabled"),r=e.find('input[type="hidden"]').not(":disabled");e.is(".acf-taxonomy-field")&&"1"!=e.attr("data-save")||e.closest(".media-frame").exists()||(i.exists()?i.filter(":checked").each(function(){t.push($(this).val())}):n.exists()?n.filter(":checked").each(function(){t.push($(this).val())}):a.exists()?a.find("option:selected").each(function(){t.push($(this).val())}):r.exists()&&r.each(function(){$(this).val()&&t.push($(this).val())}))}),t=t.filter(function(t,e,i){return i.indexOf(t)==e}),this.set("post_taxonomy",t).fetch()},onChangeTemplate:function(t,e){this.set("page_template",e.val()).fetch()},onChangeParent:function(t,e){var i="parent",n=0;""!=e.val()&&(i="child",n=e.val()),this.set("page_type",i).set("page_parent",n).fetch()},onChangeFormat:function(t,e){var i=e.val();"0"==i&&(i="standard"),this.set("post_format",i).fetch()},onChangeTerm:function(t,e){e.closest(".media-frame").exists()||this.setTimeout(this.syncTaxonomyTerms,1)}})}(jQuery),function($,t){function e(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,i){if(i=acf.parseArgs(i,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==e())var r=new n(t,i);else var r=new a(t,i);return acf.doAction("new_select2",r),r};var i=acf.Model.extend({setup:function(t,e){$.extend(this.data,e),this.$el=t},initialize:function(){},selectOption:function(t){var e=this.getOption(t);e.prop("selected")||e.prop("selected",!0).trigger("change")},unselectOption:function(t){var e=this.getOption(t);e.prop("selected")&&e.prop("selected",!1).trigger("change")},getOption:function(t){return this.$('option[value="'+t+'"]')},addOption:function(t){t=acf.parseArgs(t,{id:"",text:"",selected:!1});var e=this.getOption(t.id);return e.length||(e=$(""),e.html(t.text),e.attr("value",t.id),e.prop("selected",t.selected),this.$el.append(e)),e},getValue:function(){var t=[],e=this.$el.find("option:selected");return e.exists()?(e=e.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")}),e.each(function(){var e=$(this);t.push({$el:e,id:e.attr("value"),text:e.text()})}),t):t},mergeOptions:function(){},getChoices:function(){var t=function(e){var i=[];return e.children().each(function(){var e=$(this);e.is("optgroup")?i.push({text:e.attr("label"),children:t(e)}):i.push({id:e.attr("value"),text:e.text()})}),i};return t(this.$el)},decodeChoices:function(t){var e=function(t){return t.map(function(t){return t.text=acf.decode(t.text),t.children&&(t.children=e(t.children)),t}),t};return e(t)},getAjaxData:function(t){var e={action:this.get("ajaxAction"),s:t.term||"",paged:t.page||1},i=this.get("field");i&&(e.field_key=i.get("key"));var n=this.get("ajaxData");return n&&(e=n.apply(this,[e,t])),e=acf.applyFilters("select2_ajax_data",e,this.data,this.$el,i||!1,this),acf.prepareForAjax(e)},getAjaxResults:function(t,e){t=acf.parseArgs(t,{results:!1,more:!1}),t.results&&(t.results=this.decodeChoices(t.results));var i=this.get("ajaxResults");return i&&(t=i.apply(this,[t,e])),t=acf.applyFilters("select2_ajax_results",t,e,this)},processAjaxResults:function(t,e){var t=this.getAjaxResults(t,e);return t.more&&(t.pagination={more:!0}),setTimeout($.proxy(this.mergeOptions,this),1),t},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),n=i.extend({initialize:function(){var t=this.$el,e={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};e.multiple&&this.getValue().map(function(e){e.$el.detach().appendTo(t)}),t.removeData("ajax"),t.removeAttr("data-ajax"),this.get("ajax")&&(e.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:$.proxy(this.getAjaxData,this),processResults:$.proxy(this.processAjaxResults,this)});var i=this.get("field");e=acf.applyFilters("select2_args",e,t,this.data,i||!1,this),t.select2(e);var n=t.next(".select2-container");if(e.multiple){var a=n.find("ul");a.sortable({stop:function(e){a.find(".select2-selection__choice").each(function(){$($(this).data("data").element).detach().appendTo(t)}),t.trigger("change")}}),t.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}n.addClass("-acf"),acf.doAction("select2_init",t,e,this.data,i||!1,this)},mergeOptions:function(){var t=!1,e=!1;$('.select2-results__option[role="group"]').each(function(){var i=$(this).children("ul"),n=$(this).children("strong");if(e&&e.text()===n.text())return t.append(i.children()),void $(this).remove();t=i,e=n})}}),a=i.extend({initialize:function(){var t=this.$el,e=this.getValue(),i=this.get("multiple"),n={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),separator:"||",multiple:this.get("multiple"),data:this.getChoices(),escapeMarkup:function(t){return t},dropdownCss:{"z-index":"999999999"},initSelection:function(t,n){n(i?e:e.shift())}},a=t.siblings("input");a.length||(a=$(''),t.before(a)),inputValue=e.map(function(t){return t.id}).join("||"),a.val(inputValue),n.multiple&&e.map(function(e){e.$el.detach().appendTo(t)}),n.allowClear&&(n.data=n.data.filter(function(t){return""!==t.id})),t.removeData("ajax"),t.removeAttr("data-ajax"),this.get("ajax")&&(n.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:$.proxy(this.getAjaxData,this),results:$.proxy(this.processAjaxResults,this)});var r=this.get("field");n=acf.applyFilters("select2_args",n,t,this.data,r||!1,this),a.select2(n);var o=a.select2("container"),s=$.proxy(this.getOption,this);if(n.multiple){var c=o.find("ul");c.sortable({stop:function(){c.find(".select2-search-choice").each(function(){var e=$(this).data("select2Data");s(e.id).detach().appendTo(t)}),t.trigger("change")}})}a.on("select2-selecting",function(e){var i=e.choice,n=s(i.id);n.length||(n=$('")),n.detach().appendTo(t)}),o.addClass("-acf"),acf.doAction("select2_init",t,n,this.data,r||!1,this),a.on("change",function(){var e=a.val();e.indexOf("||")&&(e=e.split("||")),t.val(e).trigger("change")}),t.hide()},mergeOptions:function(){var t=!1,e=!1;$("#select2-drop .select2-result-with-children").each(function(){var i=$(this).children("ul"),n=$(this).children(".select2-result-label");if(e&&e.text()===n.text())return e.append(i.children()),void $(this).remove();t=i,e=n})},getAjaxData:function(t,e){var n={term:t,page:e};return i.prototype.getAjaxData.apply(this,[n])}}),r=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),i=acf.get("rtl"),n=acf.get("select2L10n"),a=e();return!!n&&(0!==t.indexOf("en")&&void(4==a?this.addTranslations4():3==a&&this.addTranslations3()))},addTranslations4:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={errorLoading:function(){return t.load_fail},inputTooLong:function(e){var i=e.input.length-e.maximum;return i>1?t.input_too_long_n.replace("%d",i):t.input_too_long_1},inputTooShort:function(e){var i=e.minimum-e.input.length;return i>1?t.input_too_short_n.replace("%d",i):t.input_too_short_1},loadingMore:function(){return t.load_more},maximumSelected:function(e){var i=e.maximum;return i>1?t.selection_too_long_n.replace("%d",i):t.selection_too_long_1},noResults:function(){return t.matches_0},searching:function(){return t.searching}};jQuery.fn.select2.amd.define("select2/i18n/"+e,[],function(){return i})},addTranslations3:function(){var t=acf.get("select2L10n"),e=acf.get("locale");e=e.replace("_","-");var i={formatMatches:function(e){return e>1?t.matches_n.replace("%d",e):t.matches_1},formatNoMatches:function(){return t.matches_0},formatAjaxError:function(){return t.load_fail},formatInputTooShort:function(e,i){var n=i-e.length;return n>1?t.input_too_short_n.replace("%d",n):t.input_too_short_1},formatInputTooLong:function(e,i){var n=e.length-i;return n>1?t.input_too_long_n.replace("%d",n):t.input_too_long_1},formatSelectionTooBig:function(e){return e>1?t.selection_too_long_n.replace("%d",e):t.selection_too_long_1},formatLoadMore:function(){return t.load_more},formatSearching:function(){return t.searching}};$.fn.select2.locales=$.fn.select2.locales||{},$.fn.select2.locales[e]=i,$.extend($.fn.select2.defaults,i)}})}(jQuery),function($,t){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content}},initialize:function(t,e){e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1}),e.tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(t,e){var i=$("#"+t),n=this.defaults(),a=acf.get("toolbars"),r=e.field||!1,o=r.$el||!1;if("undefined"==typeof tinymce)return!1;if(!n)return!1;if(tinymce.get(t))return this.enable(t);var s=$.extend({},n.tinymce,e.tinymce);s.id=t,s.selector="#"+t;var c=e.toolbar;if(c&&void 0!==a[c])for(var l=1;l<=4;l++)s["toolbar"+l]=a[c][l]||"";if(s.setup=function(e){e.on("change",function(t){e.save(),i.trigger("change")}),$(e.getWin()).on("unload",function(){acf.tinymce.remove(t)})},s.wp_autoresize_on=!1,s=acf.applyFilters("wysiwyg_tinymce_settings",s,t,r),tinyMCEPreInit.mceInit[t]=s,"visual"==e.mode){var d=tinymce.init(s),u=tinymce.get(t);if(!u)return!1;u.acf=e.field,acf.doAction("wysiwyg_tinymce_init",u,u.id,s,r)}},initializeQuicktags:function(t,e){var i=this.defaults();if("undefined"==typeof quicktags)return!1;if(!i)return!1;var n=$.extend({},i.quicktags,e.quicktags);n.id=t;var a=e.field||!1,r=a.$el||!1;n=acf.applyFilters("wysiwyg_quicktags_settings",n,n.id,a),tinyMCEPreInit.qtInit[t]=n;var o=quicktags(n);if(!o)return!1;this.buildQuicktags(o),acf.doAction("wysiwyg_quicktags_init",o,o.id,n,a)},buildQuicktags:function(t){var e,i,n,a,r,t,o,s,c,l,d=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";e=t.canvas,i=t.name,n=t.settings,r="",a={},c="",l=t.id,n.buttons&&(c=","+n.buttons+",");for(s in edButtons)edButtons[s]&&(o=edButtons[s].id,c&&-1!==d.indexOf(","+o+",")&&-1===c.indexOf(","+o+",")||edButtons[s].instance&&edButtons[s].instance!==l||(a[o]=edButtons[s],edButtons[s].html&&(r+=edButtons[s].html(i+"_"))));c&&-1!==c.indexOf(",dfw,")&&(a.dfw=new QTags.DFWButton,r+=a.dfw.html(i+"_")),"rtl"===document.getElementsByTagName("html")[0].dir&&(a.textdirection=new QTags.TextDirectionButton,r+=a.textdirection.html(i+"_")),t.toolbar.innerHTML=r,t.theButtons=a,"undefined"!=typeof jQuery&&jQuery(document).triggerHandler("quicktags-init",[t])},disable:function(t){this.destroyTinymce(t)},remove:function(t){this.destroyTinymce(t)},destroy:function(t){this.destroyTinymce(t)},destroyTinymce:function(t){if("undefined"==typeof tinymce)return!1;var e=tinymce.get(t);return!!e&&(e.save(),e.destroy(),!0)},enable:function(t){this.enableTinymce(t)},enableTinymce:function(t){ +return"undefined"!=typeof switchEditors&&(void 0!==tinyMCEPreInit.mceInit[t]&&(switchEditors.go(t,"tmce"),!0))}};var e=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var t=$("#acf-hidden-wp-editor");t.exists()&&t.appendTo("body")},onReady:function(){acf.isset(window,"tinymce","on")&&tinymce.on("AddEditor",function(t){var e=t.editor;"acf"===e.id.substr(0,3)&&(e=tinymce.editors.content||e,tinymce.activeEditor=e,wpActiveEditor=e.id)})}})}(jQuery),function($,t){acf.validation=new acf.Model({active:!0,ignore:!1,errors:[],form:!1,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.disable(),this.actions={},this.events={})},getForm:function(t){var i=t.data("acf");return i||(i=new e(t)),this.form=i,i},enable:function(){this.active=!0},disable:function(){this.active=!1},pass:function(){this.ignore=!0,this.setTimeout(function(){this.ignore=!1},100)},reset:function(){this.ignore=!1,this.errors=[],this.form=!1},getErrors:function(){return this.errors},hasErrors:function(){return this.errors.length},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.errors.push(t)},getFieldErrors:function(){var t=[],e=[];return this.getErrors().map(function(i){if(i.input){var n=e.indexOf(i.input);n>-1?t[n]=i:(t.push(i),e.push(i.input))}}),t},getGlobalErrors:function(){return this.getErrors().filter(function(t){return!t.input})},showErrors:function(t){if(this.hasErrors()){var e=this.getForm(t),i=this.getFieldErrors(),n=this.getGlobalErrors(),a=0,r=!1;i.map(function(e){var i=t.find('[name="'+e.input+'"]').first();if(i.exists()||(i=t.find('[name^="'+e.input+'"]').first()),i.exists()){a++;var n=acf.getClosestField(i);n.showError(e.message),r||(r=n.$el)}},this);var o=acf.__("Validation failed");1==a?o+=". "+acf.__("1 field requires attention"):a>1&&(o+=". "+acf.__("%d fields require attention").replace("%d",a)),e.notice?e.notice.update({type:"error",text:o}):e.notice=acf.newNotice({type:"error",text:o,target:t}),r||(r=e.notice.$el),setTimeout(function(){$("html, body").animate({scrollTop:r.offset().top-$(window).height()/2},500)},10)}},fetch:function(t){if(!this.busy){this.busy=1,t=acf.parseArgs(t,{form:!1,event:!1,lock:!0,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}});var e=t.form,i=this.getForm(e);if(t.event){var n=$.Event(null,t.event);t.success=function(){$(n.target).trigger(n)}}acf.doAction("validation_begin",e);var a=acf.serialize(e);a.action="acf/validate_save_post",this.lockForm(e),t.loading(e);var r=function(t){acf.isAjaxSuccess(t)&&(a=acf.applyFilters("validation_complete",t.data,e),a.valid||this.addErrors(a.errors))},o=function(){this.busy=0,this.unlockForm(e),this.hasErrors()?(acf.doAction("validation_failure",e),this.showErrors(e),t.failure(e)):(this.pass(),i.notice&&i.notice.update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",e),acf.doAction("submit",e),t.success(e),t.lock&&this.lockForm(e)),this.reset(),t.complete(e)};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:r,complete:o})}},addInputEvents:function(t){var e=$(".acf-field [name]",t);e.length&&this.on(e,"invalid","onInvalid")},onInvalid:function(t,e){var i=e.closest("form");this.addError({input:e.attr("name"),message:t.target.validationMessage}),t.preventDefault(),i.submit()},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.pass()},onSubmit:function(t,e){acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault()},showSpinner:function(t){t.addClass("is-active"),t.css("display","inline-block")},hideSpinner:function(t){t.removeClass("is-active"),t.css("display","none")},disableSubmit:function(t){t.prop("disabled",!0).addClass("disabled")},enableSubmit:function(t){t.prop("disabled",!1).removeClass("disabled")},findSubmitWrap:function(t){var e=$("#submitdiv");if(e.length)return e;var e=$("#submitpost");if(e.length)return e;var e=t.find("p.submit").last();if(e.length)return e;var e=t.find(".acf-form-submit");return e.length?e:t},lockForm:function(t){var e=this.findSubmitWrap(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");this.hideSpinner(n),this.disableSubmit(i),this.showSpinner(n.last())},unlockForm:function(t){var e=this.findSubmitWrap(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");this.enableSubmit(i),this.hideSpinner(n)}});var e=acf.Model.extend({notice:!1,setup:function(t){this.$el=t},lock:function(){acf.validation.lockForm(this.$el)},unlock:function(){acf.validation.unlockForm(this.$el)}});acf.validateForm=function(t){if(!t.form)return!0;var e=acf.validation.getForm(t.form);return!acf.validation.active||(!!acf.validation.ignore||(e.$("#wp-preview").val()?(e.unlock(),!0):!e.$("#acf-form-data").length||(acf.validation.fetch(t),!1)))}}(jQuery),function($,t){var e=new acf.Model({priority:90,timeout:0,actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh"},refresh:function(){clearTimeout(this.timeout),this.timeout=setTimeout(function(){acf.doAction("refresh")},0)}}),i=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(t,e){t.is("tr")&&(t.css("position","relative"),t.children().each(function(){$(this).width($(this).width())}),t.css("position","absolute"),e.html('
              '))}}),n=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(t,e){var i=[];t.find("select").each(function(t){i.push($(this).val())}),e.find("select").each(function(t){$(this).val(i[t])})}}),a=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(t){var e=this;$(".acf-table:visible").each(function(){e.renderTable($(this))})},renderTable:function(t){var e=t.find("> thead > tr:visible > th[data-key]"),i=t.find("> tbody > tr:visible > td[data-key]");if(!e.length||!i.length)return!1;e.each(function(t){var e=$(this),n=e.data("key"),a=i.filter('[data-key="'+n+'"]'),r=a.filter(".acf-hidden");a.removeClass("acf-empty"),a.length===r.length?acf.hide(e):(acf.show(e),r.addClass("acf-empty"))}),e.css("width","auto"),e=e.not(".acf-hidden");var n=100,a=e.length;e.filter("[data-width]").each(function(){var t=$(this).data("width");$(this).css("width",t+"%"),n-=t});var r=e.not("[data-width]");if(r.length){var o=n/r.length;r.css("width",o+"%"),n=0}n>0&&e.last().css("width","auto"),i.filter(".-collapsed-target").each(function(){var t=$(this);t.parent().hasClass("-collapsed")?t.attr("colspan",e.length):t.removeAttr("colspan")})}}),r=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var t=this;$(".acf-fields:visible").each(function(){t.renderGroup($(this))})},renderGroup:function(t){var e=0,i=0,n=$(),a=t.children(".acf-field[data-width]:visible");return!!a.length&&(t.hasClass("-left")?(a.removeAttr("data-width"),a.css("width","auto"),!1):(a.removeClass("-r0 -c0").css({"min-height":0}),a.each(function(t){var a=$(this),r=a.position(),o=Math.ceil(r.top),s=Math.ceil(r.left);n.length&&o>e&&(n.css({"min-height":i+"px"}),r=a.position(),o=Math.ceil(r.top),s=Math.ceil(r.left),e=0,i=0,n=$()),0==o?a.addClass("-r0"):0==s&&a.addClass("-c0");var c=Math.ceil(a.outerHeight())+1;i=Math.max(i,c),e=Math.max(e,o),n=n.add(a)}),void(n.length&&n.css({"min-height":i+"px"}))))}})}(jQuery),function($,t){acf.newCompatibility=function(t,e){return e=e||{},e.__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var e=acf.newCompatibility(acf,{l10n:{},o:{},fields:{},update:acf.set,add_action:acf.addAction,remove_action:acf.removeAction,do_action:acf.doAction,add_filter:acf.addFilter,remove_filter:acf.removeFilter,apply_filters:acf.applyFilters,parse_args:acf.parseArgs,disable_el:acf.disable,disable_form:acf.disable,enable_el:acf.enable,enable_form:acf.enable,update_user_setting:acf.updateUserSetting,prepare_for_ajax:acf.prepareForAjax,is_ajax_success:acf.isAjaxSuccess,remove_el:acf.remove,remove_tr:acf.remove,str_replace:acf.strReplace,render_select:acf.renderSelect,get_uniqid:acf.uniqid,serialize_form:acf.serialize,esc_html:acf.strEscape,str_sanitize:acf.strSanitize});e._e=function(t,e){t=t||"",e=e||"";var i=e?t+"."+e:t,n={"image.select":"Select Image","image.edit":"Edit Image","image.update":"Update Image"};if(n[i])return acf.__(n[i]);var a=this.l10n[t]||"";return e&&(a=a[e]||""),a},e.get_selector=function(t){var e=".acf-field";if(!t)return e;if($.isPlainObject(t)){if($.isEmptyObject(t))return e;for(var i in t){t=t[i];break}}return e+="-"+t,e=acf.strReplace("_","-",e),e=acf.strReplace("field-field-","field-",e)},e.get_fields=function(t,e,i){var n={is:t||"",parent:e||!1,suppressFilters:i||!1};return n.is&&(n.is=this.get_selector(n.is)),acf.findFields(n)},e.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},e.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},e.get_field_wrap=function(t){return t.closest(this.get_selector())},e.get_field_key=function(t){return t.data("key")},e.get_field_type=function(t){return t.data("type")},e.get_data=function(t,e){return acf.parseArgs(t.data(),e)},e.maybe_get=function(t,e,i){void 0===i&&(i=null),keys=String(e).split(".");for(var n=0;n1){for(var c=0;c0?t.substr(0,n):t,r=n>0?t.substr(n+1):"",o=function(t){t.$el=$(this),acf.field_group&&(t.$field=t.$el.closest(".acf-field-object")),"function"==typeof i.event&&(t=i.event(t)),i[e].apply(i,arguments)};r?$(document).on(a,r,o):$(document).on(a,o)},get:function(t,e){return e=e||null,void 0!==this[t]&&(e=this[t]),e},set:function(t,e){return this[t]=e,"function"==typeof this["_set_"+t]&&this["_set_"+t].apply(this),this}},e.field=acf.model.extend({type:"",o:{},$field:null,_add_action:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_action(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_filter:function(t,e){var i=this;t=t+"_field/type="+i.type,acf.add_filter(t,function(t){i.set("$field",t),i[e].apply(i,arguments)})},_add_event:function(t,e){var i=this,n=t.substr(0,t.indexOf(" ")),a=t.substr(t.indexOf(" ")+1),r=acf.get_selector(i.type);$(document).on(n,r+" "+a,function(t){var n=$(this),a=acf.get_closest_field(n,i.type);a.length&&(a.is(i.$field)||i.set("$field",a),t.$el=n,t.$field=a,i[e].apply(i,[t]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var r=acf.newCompatibility(acf.validation,{remove_error:function(t){acf.getField(t).removeError()},add_warning:function(t,e){acf.getField(t).showNotice({text:e,type:"warning",timeout:1e3})}});e.tooltip={tooltip:function(t,e){return acf.newTooltip({text:t,target:e}).$el},temp:function(t,e){var i=acf.newTooltip({text:t,target:e,timeout:250})},confirm:function(t,e,i,n,a){var r=acf.newTooltip({confirm:!0,text:i,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})},confirm_remove:function(t,e){var i=acf.newTooltip({confirmRemove:!0,target:t,confirm:function(){e(!0)},cancel:function(){e(!1)}})}},e.media=new acf.Model({activeFrame:!1,actions:{new_media_popup:"onNewMediaPopup"},frame:function(){return this.activeFrame},onNewMediaPopup:function(t){this.activeFrame=t.frame},popup:function(t){return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),e.select2={init:function(t,e,i){return e.allow_null&&(e.allowNull=e.allow_null),e.ajax_action&&(e.ajaxAction=e.ajax_action),i&&(e.field=acf.getField(i)),acf.newSelect2(t,e)},destroy:function(t){return acf.getInstance(t).destroy()}},e.postbox={render:function(t){return t.edit_url&&(t.editLink=t.edit_url),t.edit_title&&(t.editTitle=t.edit_title),acf.newPostbox(t)}},acf.newCompatibility(acf.screen,{update:function(){return this.set.apply(this,arguments)}}),e.ajax=acf.screen}(jQuery); \ No newline at end of file diff --git a/includes/admin/admin-field-group.php b/includes/admin/admin-field-group.php index 136117e..f0a2ea5 100644 --- a/includes/admin/admin-field-group.php +++ b/includes/admin/admin-field-group.php @@ -444,7 +444,7 @@ class acf_admin_field_group { acf_disable_filters(); // save fields - if( !empty($_POST['acf_fields']) ) { + if( !empty($_POST['acf_fields']) ) { // loop foreach( $_POST['acf_fields'] as $field ) { diff --git a/includes/admin/views/settings-info.php b/includes/admin/views/settings-info.php index e7a3620..fedd054 100644 --- a/includes/admin/views/settings-info.php +++ b/includes/admin/views/settings-info.php @@ -152,32 +152,20 @@ - -

              - - - +endif; ?> \ No newline at end of file diff --git a/includes/ajax.php b/includes/ajax.php deleted file mode 100644 index 21dad7b..0000000 --- a/includes/ajax.php +++ /dev/null @@ -1,86 +0,0 @@ - '', - 'value' => '', - 'nonce' => '', - )); - - - // validate - if( ! wp_verify_nonce($options['nonce'], 'acf_nonce') || empty($options['name']) ) { - - die('0'); - - } - - - // upadte setting - acf_update_user_setting( $options['name'], $options['value'] ); - - - // return - die('1'); - - } - -} - -new acf_ajax(); - -endif; - -?> \ No newline at end of file diff --git a/includes/ajax/class-acf-ajax-query-terms.php b/includes/ajax/class-acf-ajax-query-terms.php new file mode 100644 index 0000000..2456cfd --- /dev/null +++ b/includes/ajax/class-acf-ajax-query-terms.php @@ -0,0 +1,141 @@ +get('query'), array( + 'taxonomy' => 'category', + 'search' => $this->search, + 'number' => $this->per_page, + )); + + // pagination + if( $this->page > 0 ) { + $args['offset'] = $this->per_page * ($this->page - 1); + } + + // return + return $args; + } + + /** + * get_results + * + * description + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param type $var Description. Default. + * @return type Description. + */ + + function get_results( $args ) { + + // vars + $results = array(); + + // get terms + $groups = acf_get_grouped_terms( $args ); + + // loop + if( $groups ) { + foreach( $groups as $label => $terms ) { + + // data + $data = array( + 'text' => $label, + 'children' => array() + ); + + // convert object to string + foreach( $terms as $id => $term ) { + $terms[ $id ] = $this->get_result( $term ); + } + + + // order posts by search + if( $this->search && !isset($args['orderby']) ) { + $terms = acf_order_by_search( $terms, $this->search ); + } + + + // append to $data + foreach( $terms as $id => $text ) { + $this->count++; + $data['children'][] = array( + 'id' => $id, + 'text' => $text + ); + } + + // append to $results + $results[] = $data; + }} + + + // extract group children for a single taxonomy + $taxonomies = acf_get_array($args['taxonomy']); + if( count($taxonomies) == 1 ) { + $results = $results[0]['children']; + } + + // return + return $results; + } + + /** + * get_result + * + * description + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param type $var Description. Default. + * @return type Description. + */ + + function get_result( $term ) { + + // vars + $title = $term->name; + + // ancestors + $ancestors = get_ancestors( $term->term_id, $term->taxonomy ); + if( $ancestors ) { + $prepend = str_repeat('- ', count($ancestors)); + return $prepend . $title; + } + + // return + return $title; + } +} + +acf_new_instance('ACF_AJAX_Query_Terms'); + +endif; // class_exists check + +?> \ No newline at end of file diff --git a/includes/ajax/class-acf-ajax-query.php b/includes/ajax/class-acf-ajax-query.php new file mode 100644 index 0000000..d0b3167 --- /dev/null +++ b/includes/ajax/class-acf-ajax-query.php @@ -0,0 +1,133 @@ +has('field_key') ) { + $this->field = acf_get_field( $this->get('field_key') ); + } + + // pagination + if( $this->has('paged') ) { + $this->page = (int) $this->get('paged'); + } + + // search + if( $this->has('s') ) { + $this->search = $this->get('s'); + } + + // get response + $args = $this->get_args(); + $results = $this->get_results($args); + $response = $this->get_response($results, $args); + + // return + return $response; + } + + + /** + * get_args + * + * description + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param type $var Description. Default. + * @return type Description. + */ + + function get_args() { + return array(); + } + + /** + * get_results + * + * description + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param type $var Description. Default. + * @return type Description. + */ + + function get_results( $args ) { + return array(); + } + + /** + * get_result + * + * description + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param type $var Description. Default. + * @return type Description. + */ + + function get_result( $item ) { + return ''; + } + + /** + * get_response + * + * description + * + * @date 31/7/18 + * @since 5.6.9 + * + * @param type $var Description. Default. + * @return type Description. + */ + + function get_response( $results, $args ) { + return array( + 'results' => $results, + 'more' => ($this->count >= $this->per_page) + ); + } +} + +endif; // class_exists check + +?> \ No newline at end of file diff --git a/includes/ajax/class-acf-ajax-user-setting.php b/includes/ajax/class-acf-ajax-user-setting.php new file mode 100644 index 0000000..486f014 --- /dev/null +++ b/includes/ajax/class-acf-ajax-user-setting.php @@ -0,0 +1,44 @@ +has('value') ) { + return acf_update_user_setting( $this->get('name'), $this->get('value') ); + + // get + } else { + return acf_get_user_setting( $this->get('name') ); + } + } +} + +acf_new_instance('ACF_Ajax_User_Setting'); + +endif; // class_exists check + +?> \ No newline at end of file diff --git a/includes/ajax/class-acf-ajax.php b/includes/ajax/class-acf-ajax.php new file mode 100644 index 0000000..b3795cd --- /dev/null +++ b/includes/ajax/class-acf-ajax.php @@ -0,0 +1,195 @@ +initialize(); + + // add actions + $this->add_actions(); + } + + /** + * initialize + * + * Allows easy access to modifying properties without changing constructor. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + + function initialize() { + /* do nothing */ + } + + /** + * has + * + * Returns true if the request has data for the given key + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param string $key The data key + * @return boolean + */ + + function has( $key = '' ) { + return isset($this->request[$key]); + } + + /** + * get + * + * Returns request data for the given key + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param string $key The data key + * @return mixed + */ + + function get( $key = '' ) { + return isset($this->request[$key]) ? $this->request[$key] : null; + } + + /** + * set + * + * Sets request data for the given key + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param string $key The data key + * @return mixed + */ + + function set( $key = '', $value ) { + $this->request[$key] = $value; + } + + /** + * add_actions + * + * Adds the ajax actions for this response. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + + function add_actions() { + + // add action for logged-in users + add_action( "wp_ajax_{$this->action}", array($this, 'request') ); + + // add action for non logged-in users + if( $this->public ) { + add_action( "wp_ajax_nopriv_{$this->action}", array($this, 'request') ); + } + } + + /** + * request + * + * Callback for ajax action. Sets up properties and calls the get_response() function. + * + * @date 1/8/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + + function request() { + + // verify ajax request + if( !acf_verify_ajax() ) { + wp_send_json_error(); + } + + // store data for has() and get() functions + $this->request = wp_unslash($_REQUEST); + + // send response + $this->send( $this->response() ); + } + + /** + * response + * + * The actual logic for this AJAX request. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param void + * @return mixed The response data to send back or WP_Error. + */ + + function response() { + return true; + } + + /** + * send + * + * Sends back JSON based on the $response as either success or failure. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param mixed $response The response to send back. + * @return void + */ + + function send( $response ) { + + // return error + if( is_wp_error($response) ) { + wp_send_json_error(array( 'error' => $response->get_error_message() )); + + // return success + } else { + wp_send_json_success($response); + } + } +} + +endif; // class_exists check + +?> \ No newline at end of file diff --git a/includes/api/api-field-group.php b/includes/api/api-field-group.php index 1432cdb..bd22926 100644 --- a/includes/api/api-field-group.php +++ b/includes/api/api-field-group.php @@ -1011,93 +1011,40 @@ function acf_untrash_field_group( $selector = 0 ) { function acf_get_field_group_style( $field_group ) { // vars - $e = ''; + $style = ''; + $elements = array( + 'permalink' => '#edit-slug-box', + 'the_content' => '#postdivrich', + 'excerpt' => '#postexcerpt', + 'custom_fields' => '#postcustom', + 'discussion' => '#commentstatusdiv', + 'comments' => '#commentsdiv', + 'slug' => '#slugdiv', + 'author' => '#authordiv', + 'format' => '#formatdiv', + 'page_attributes' => '#pageparentdiv', + 'featured_image' => '#postimagediv', + 'revisions' => '#revisionsdiv', + 'categories' => '#categorydiv', + 'tags' => '#tagsdiv-post_tag', + 'send-trackbacks' => '#trackbacksdiv' + ); - - // bail early if no array or is empty - if( !acf_is_array($field_group['hide_on_screen']) ) return $e; - - - // add style to html - if( in_array('permalink',$field_group['hide_on_screen']) ) - { - $e .= '#edit-slug-box {display: none;} '; + // loop over field group settings and generate list of selectors to hide + if( is_array($field_group['hide_on_screen']) ) { + $hide = array(); + foreach( $field_group['hide_on_screen'] as $k ) { + if( isset($elements[ $k ]) ) { + $id = $elements[ $k ]; + $hide[] = $id; + $hide[] = '#screen-meta label[for=' . substr($id, 1) . '-hide]'; + } + } + $style = implode(', ', $hide) . ' {display: none;}'; } - if( in_array('the_content',$field_group['hide_on_screen']) ) - { - $e .= '#postdivrich {display: none;} '; - } - - if( in_array('excerpt',$field_group['hide_on_screen']) ) - { - $e .= '#postexcerpt, #screen-meta label[for=postexcerpt-hide] {display: none;} '; - } - - if( in_array('custom_fields',$field_group['hide_on_screen']) ) - { - $e .= '#postcustom, #screen-meta label[for=postcustom-hide] { display: none; } '; - } - - if( in_array('discussion',$field_group['hide_on_screen']) ) - { - $e .= '#commentstatusdiv, #screen-meta label[for=commentstatusdiv-hide] {display: none;} '; - } - - if( in_array('comments',$field_group['hide_on_screen']) ) - { - $e .= '#commentsdiv, #screen-meta label[for=commentsdiv-hide] {display: none;} '; - } - - if( in_array('slug',$field_group['hide_on_screen']) ) - { - $e .= '#slugdiv, #screen-meta label[for=slugdiv-hide] {display: none;} '; - } - - if( in_array('author',$field_group['hide_on_screen']) ) - { - $e .= '#authordiv, #screen-meta label[for=authordiv-hide] {display: none;} '; - } - - if( in_array('format',$field_group['hide_on_screen']) ) - { - $e .= '#formatdiv, #screen-meta label[for=formatdiv-hide] {display: none;} '; - } - - if( in_array('page_attributes',$field_group['hide_on_screen']) ) - { - $e .= '#pageparentdiv {display: none;} '; - } - - if( in_array('featured_image',$field_group['hide_on_screen']) ) - { - $e .= '#postimagediv, #screen-meta label[for=postimagediv-hide] {display: none;} '; - } - - if( in_array('revisions',$field_group['hide_on_screen']) ) - { - $e .= '#revisionsdiv, #screen-meta label[for=revisionsdiv-hide] {display: none;} '; - } - - if( in_array('categories',$field_group['hide_on_screen']) ) - { - $e .= '#categorydiv, #screen-meta label[for=categorydiv-hide] {display: none;} '; - } - - if( in_array('tags',$field_group['hide_on_screen']) ) - { - $e .= '#tagsdiv-post_tag, #screen-meta label[for=tagsdiv-post_tag-hide] {display: none;} '; - } - - if( in_array('send-trackbacks',$field_group['hide_on_screen']) ) - { - $e .= '#trackbacksdiv, #screen-meta label[for=trackbacksdiv-hide] {display: none;} '; - } - - // return - return apply_filters('acf/get_field_group_style', $e, $field_group); - + return apply_filters('acf/get_field_group_style', $style, $field_group); } diff --git a/includes/api/api-helpers.php b/includes/api/api-helpers.php index b03accd..af5b15c 100644 --- a/includes/api/api-helpers.php +++ b/includes/api/api-helpers.php @@ -993,29 +993,18 @@ function acf_verify_nonce( $value) { function acf_verify_ajax() { // vars - $action = acf_maybe_get_POST('action'); - $nonce = acf_maybe_get_POST('nonce'); - - - // bail early if not acf action - if( !$action || substr($action, 0, 3) !== 'acf' ) { - return false; - } - + $nonce = isset($_REQUEST['nonce']) ? $_REQUEST['nonce'] : ''; // bail early if not acf nonce if( !$nonce || !wp_verify_nonce($nonce, 'acf_nonce') ) { return false; } - // action for 3rd party customization do_action('acf/verify_ajax'); - // return return true; - } @@ -1248,105 +1237,6 @@ function acf_get_terms( $args ) { } -/* -* acf_get_taxonomies -* -* This function will return an array of available taxonomies -* -* @type function -* @date 7/10/13 -* @since 5.0.0 -* -* @param n/a -* @return (array) -*/ - -function acf_get_taxonomies() { - - // get all taxonomies - $taxonomies = get_taxonomies( false, 'objects' ); - $ignore = array( 'nav_menu', 'link_category' ); - $r = array(); - - - // populate $r - foreach( $taxonomies as $taxonomy ) - { - if( in_array($taxonomy->name, $ignore) ) - { - continue; - - } - - $r[ $taxonomy->name ] = $taxonomy->name; //"{$taxonomy->labels->singular_name}"; // ({$taxonomy->name}) - } - - - // return - return $r; - -} - - -function acf_get_pretty_taxonomies( $taxonomies = array() ) { - - // get post types - if( empty($taxonomies) ) { - - // get all custom post types - $taxonomies = acf_get_taxonomies(); - - } - - - // get labels - $ref = array(); - $r = array(); - - foreach( array_keys($taxonomies) as $i ) { - - // vars - $taxonomy = acf_extract_var( $taxonomies, $i); - $obj = get_taxonomy( $taxonomy ); - $name = $obj->labels->singular_name; - - - // append to r - $r[ $taxonomy ] = $name; - - - // increase counter - if( !isset($ref[ $name ]) ) { - - $ref[ $name ] = 0; - - } - - $ref[ $name ]++; - } - - - // get slugs - foreach( array_keys($r) as $i ) { - - // vars - $taxonomy = $r[ $i ]; - - if( $ref[ $taxonomy ] > 1 ) { - - $r[ $i ] .= ' (' . $i . ')'; - - } - - } - - - // return - return $r; - -} - - /* * acf_get_taxonomy_terms * @@ -5335,4 +5225,46 @@ function acf_get_post_templates() { } +/** +* acf_parse_markdown +* +* A very basic regex-based Markdown parser function based off [slimdown](https://gist.github.com/jbroadway/2836900). +* +* @date 6/8/18 +* @since 5.7.2 +* +* @param string $text The string to parse. +* @return string +*/ + +function acf_parse_markdown( $text = '' ) { + + // trim + $text = trim($text); + + // rules + $rules = array ( + '/=== (.+?) ===/' => '

              $1

              ', // headings + '/== (.+?) ==/' => '

              $1

              ', // headings + '/= (.+?) =/' => '

              $1

              ', // headings + '/\[([^\[]+)\]\(([^\)]+)\)/' => '$1', // links + '/(\*\*)(.*?)\1/' => '$2', // bold + '/(\*)(.*?)\1/' => '$2', // intalic + '/`(.*?)`/' => '$1', // inline code + '/\n\*(.*)/' => "\n
                \n\t
              • $1
              • \n
              ", // ul lists + '/\n[0-9]+\.(.*)/' => "\n
                \n\t
              1. $1
              2. \n
              ", // ol lists + '/<\/ul>\s?
                /' => '', // fix extra ul + '/<\/ol>\s?
                  /' => '', // fix extra ol + ); + foreach( $rules as $k => $v ) { + $text = preg_replace($k, $v, $text); + } + + // autop + $text = wpautop($text); + + // return + return $text; +} + ?> \ No newline at end of file diff --git a/includes/api/api-term.php b/includes/api/api-term.php new file mode 100644 index 0000000..b4046b6 --- /dev/null +++ b/includes/api/api-term.php @@ -0,0 +1,236 @@ + $object ) { + + // bail early if is builtin (WP) private post type + // - nav_menu_item, revision, customize_changeset, etc + if( $object->_builtin && !$object->public ) continue; + + // append + $taxonomies[] = $i; + } + + // filter + $taxonomies = apply_filters('acf/get_taxonomies', $taxonomies, $args); + + // return + return $taxonomies; +} + +/* +* acf_get_taxonomy_labels +* +* Returns an array of taxonomies in the format "name => label" for use in a select field. +* +* @date 3/8/18 +* @since 5.7.2 +* +* @param array $taxonomies Optional. An array of specific taxonomies to return. +* @return array +*/ + +function acf_get_taxonomy_labels( $taxonomies = array() ) { + + // default + if( empty($taxonomies) ) { + $taxonomies = acf_get_taxonomies(); + } + + // vars + $ref = array(); + $data = array(); + + // loop + foreach( $taxonomies as $taxonomy ) { + + // vars + $object = get_taxonomy( $taxonomy ); + $label = $object->labels->singular_name; + + // append + $data[ $taxonomy ] = $label; + + // increase counter + if( !isset($ref[ $label ]) ) { + $ref[ $label ] = 0; + } + $ref[ $label ]++; + } + + // show taxonomy name next to label for shared labels + foreach( $data as $taxonomy => $label ) { + if( $ref[$label] > 1 ) { + $data[ $taxonomy ] .= ' (' . $taxonomy . ')'; + } + } + + // return + return $data; +} + +/** +* acf_get_grouped_terms +* +* Returns an array of terms for the given query $args and groups by taxonomy name. +* +* @date 2/8/18 +* @since 5.7.2 +* +* @param array $args An array of args used in the get_terms() function. +* @return array +*/ + +function acf_get_grouped_terms( $args ) { + + // vars + $data = array(); + + // defaults + $args = wp_parse_args($args, array( + 'taxonomy' => 'category', + 'hide_empty' => false, + 'update_term_meta_cache' => false, + )); + + // vars + $taxonomies = acf_get_taxonomy_labels( acf_get_array($args['taxonomy']) ); + $is_single = (count($taxonomies) == 1); + + // add filter to group results by taxonomy + if( !$is_single ) { + add_filter('terms_clauses', '_acf_terms_clauses', 10, 3); + } + + // get terms + $terms = get_terms( $args ); + + // remove this filter (only once) + if( !$is_single ) { + remove_filter('terms_clauses', '_acf_terms_clauses', 10, 3); + } + + // loop + foreach( $taxonomies as $taxonomy => $label ) { + + // vars + $this_terms = array(); + + // populate $this_terms + foreach( $terms as $term ) { + if( $term->taxonomy == $taxonomy ) { + $this_terms[] = $term; + } + } + + // bail early if no $items + if( empty($this_terms) ) continue; + + // sort into hierachial order + // this will fail if a search has taken place because parents wont exist + if( is_taxonomy_hierarchical($taxonomy) && empty($args['s'])) { + + // get all terms from this taxonomy + $all_terms = get_terms(array_merge($args, array( + 'number' => 0, + 'offset' => 0, + 'taxonomy' => $taxonomy + ))); + + // vars + $length = count($this_terms); + $offset = 0; + + // find starting point (offset) + foreach( $all_terms as $i => $term ) { + if( $term->term_id == $this_terms[0]->term_id ) { + $offset = $i; + break; + } + } + + // order terms + $parent = acf_maybe_get( $args, 'parent', 0 ); + $parent = acf_maybe_get( $args, 'child_of', $parent ); + $ordered_terms = _get_term_children( $parent, $all_terms, $taxonomy ); + + // compare aray lengths + // if $ordered_posts is smaller than $all_posts, WP has lost posts during the get_page_children() function + // this is possible when get_post( $args ) filter out parents (via taxonomy, meta and other search parameters) + if( count($ordered_terms) == count($all_terms) ) { + $this_terms = array_slice($ordered_terms, $offset, $length); + } + } + + // populate group + $data[ $label ] = array(); + foreach( $this_terms as $term ) { + $data[ $label ][ $term->term_id ] = $term; + } + } + + // return + return $data; +} + +/** +* _acf_terms_clauses +* +* Used in the 'terms_clauses' filter to order terms by taxonomy name. +* +* @date 2/8/18 +* @since 5.7.2 +* +* @param array $pieces Terms query SQL clauses. +* @param array $taxonomies An array of taxonomies. +* @param array $args An array of terms query arguments. +* @return array $pieces +*/ + +function _acf_terms_clauses( $pieces, $taxonomies, $args ) { + + // prepend taxonomy to 'orderby' SQL + if( is_array($taxonomies) ) { + $sql = "FIELD(tt.taxonomy,'" . implode("', '", array_map('esc_sql', $taxonomies)) . "')"; + $pieces['orderby'] = str_replace("ORDER BY", "ORDER BY $sql,", $pieces['orderby']); + } + + // return + return $pieces; +} + +/** +* acf_get_pretty_taxonomies +* +* Deprecated in favor of acf_get_taxonomy_labels() function. +* +* @date 7/10/13 +* @since 5.0.0 +* @deprecated 5.7.2 +*/ + +function acf_get_pretty_taxonomies( $taxonomies = array() ) { + return acf_get_taxonomy_labels( $taxonomies ); +} + +?> \ No newline at end of file diff --git a/includes/fields/class-acf-field-email.php b/includes/fields/class-acf-field-email.php index 38101f3..ee3c264 100644 --- a/includes/fields/class-acf-field-email.php +++ b/includes/fields/class-acf-field-email.php @@ -50,7 +50,7 @@ class acf_field_email extends acf_field { // vars $atts = array(); $keys = array( 'type', 'id', 'class', 'name', 'value', 'placeholder', 'pattern' ); - $keys2 = array( 'readonly', 'disabled', 'required' ); + $keys2 = array( 'readonly', 'disabled', 'required', 'multiple' ); $html = ''; diff --git a/includes/fields/class-acf-field-group.php b/includes/fields/class-acf-field-group.php index 96bbabf..6c478d1 100644 --- a/includes/fields/class-acf-field-group.php +++ b/includes/fields/class-acf-field-group.php @@ -644,6 +644,36 @@ class acf_field__group extends acf_field { return $sub_fields; } + + + /* + * delete_value + * + * Called when deleting this field's value. + * + * @date 1/07/2015 + * @since 5.2.3 + * + * @param mixed $post_id The post ID being saved + * @param string $meta_key The field name as seen by the DB + * @param array $field The field settings + * @return void + */ + + function delete_value( $post_id, $meta_key, $field ) { + + // bail ealry if no sub fields + if( empty($field['sub_fields']) ) return null; + + // modify names + $field = $this->prepare_field_for_db( $field ); + + // loop + foreach( $field['sub_fields'] as $sub_field ) { + acf_delete_value( $post_id, $sub_field ); + } + } + } diff --git a/includes/fields/class-acf-field-select.php b/includes/fields/class-acf-field-select.php index 4eb816f..57c2a10 100644 --- a/includes/fields/class-acf-field-select.php +++ b/includes/fields/class-acf-field-select.php @@ -266,27 +266,16 @@ class acf_field_select extends acf_field { } - // prepend empty choice for single inputs - $prepend = false; - - if( !$field['multiple'] ) { - - // allow null or ajax - if( $field['allow_null'] || $field['ajax'] ) { - $prepend = true; - } - } - - // allow null + // prepend empty choice + // - only for single selects // - have tried array_merge but this causes keys to re-index if is numeric (post ID's) - if( $prepend ) { - $placeholder = '- ' . $field['placeholder'] . ' -'; - $choices = array( '' => $placeholder ) + $choices; + if( $field['allow_null'] && !$field['multiple'] ) { + $choices = array( '' => "- {$field['placeholder']} -" ) + $choices; } - + // clean up choices if using ajax - if( $field['ajax'] ) { + if( $field['ui'] && $field['ajax'] ) { $minimal = array(); foreach( $value as $key ) { if( isset($choices[ $key ]) ) { diff --git a/includes/fields/class-acf-field-taxonomy.php b/includes/fields/class-acf-field-taxonomy.php index 669ab2a..27b8371 100644 --- a/includes/fields/class-acf-field-taxonomy.php +++ b/includes/fields/class-acf-field-taxonomy.php @@ -755,7 +755,7 @@ class acf_field_taxonomy extends acf_field { 'instructions' => __('Select the taxonomy to be displayed','acf'), 'type' => 'select', 'name' => 'taxonomy', - 'choices' => acf_get_taxonomies(), + 'choices' => acf_get_taxonomy_labels(), )); @@ -856,100 +856,79 @@ class acf_field_taxonomy extends acf_field { function ajax_add_term() { // vars - $args = acf_parse_args($_POST, array( + $args = wp_parse_args($_POST, array( 'nonce' => '', 'field_key' => '', 'term_name' => '', 'term_parent' => '' )); - // verify nonce - if( ! wp_verify_nonce($args['nonce'], 'acf_nonce') ) { - + if( !acf_verify_ajax() ) { die(); - - } - + } // load field $field = acf_get_field( $args['field_key'] ); - if( !$field ) { - die(); - } - // vars $taxonomy_obj = get_taxonomy($field['taxonomy']); $taxonomy_label = $taxonomy_obj->labels->singular_name; - // validate cap // note: this situation should never occur due to condition of the add new button if( !current_user_can( $taxonomy_obj->cap->manage_terms) ) { - - echo '

                  ' . __("Error.", 'acf') . ' ' . sprintf( __('User unable to add new %s', 'acf'), $taxonomy_label ) . '

                  '; - die; - + wp_send_json_error(array( + 'error' => sprintf( __('User unable to add new %s', 'acf'), $taxonomy_label ) + )); } - // save? if( $args['term_name'] ) { // exists - if( term_exists($args['term_name'], $field['taxonomy']) ) { - + if( term_exists($args['term_name'], $field['taxonomy'], $args['term_parent']) ) { wp_send_json_error(array( 'error' => sprintf( __('%s already exists', 'acf'), $taxonomy_label ) )); - } + // vars + $extra = array(); + if( $args['term_parent'] ) { + $extra['parent'] = (int) $args['term_parent']; + } // insert - $extra = array(); - - if( $args['term_parent'] ) { - - $extra['parent'] = $args['term_parent']; - - } - $data = wp_insert_term( $args['term_name'], $field['taxonomy'], $extra ); - - // error? + // error if( is_wp_error($data) ) { - wp_send_json_error(array( 'error' => $data->get_error_message() )); - } + // load term + $term = get_term($data['term_id']); - // ancestors + // prepend ancenstors count to term name $prefix = ''; - $ancestors = get_ancestors( $data['term_id'], $field['taxonomy'] ); - + $ancestors = get_ancestors( $term->term_id, $term->taxonomy ); if( !empty($ancestors) ) { - $prefix = str_repeat('- ', count($ancestors)); - } - // success wp_send_json_success(array( 'message' => sprintf( __('%s added', 'acf'), $taxonomy_label ), - 'term_id' => $data['term_id'], - 'term_name' => $args['term_name'], - 'term_label' => $prefix . $args['term_name'], - 'term_parent' => $args['term_parent'] + 'term_id' => $term->term_id, + 'term_name' => $term->name, + 'term_label' => $prefix . $term->name, + 'term_parent' => $term->parent )); } diff --git a/includes/forms/form-attachment.php b/includes/forms/form-attachment.php index 8198830..e3ec790 100644 --- a/includes/forms/form-attachment.php +++ b/includes/forms/form-attachment.php @@ -216,24 +216,21 @@ acf.unload.active = 0; function save_attachment( $post, $attachment ) { // bail early if not valid nonce - if( ! acf_verify_nonce('attachment') ) { - + if( !acf_verify_nonce('attachment') ) { return $post; - } - - // validate and save - if( acf_validate_save_post(true) ) { - + // bypass validation for ajax + if( acf_is_ajax('save-attachment-compat') ) { acf_save_post( $post['ID'] ); - - } + // validate and save + } elseif( acf_validate_save_post(true) ) { + acf_save_post( $post['ID'] ); + } // return - return $post; - + return $post; } diff --git a/includes/forms/form-nav-menu.php b/includes/forms/form-nav-menu.php index 3e8a179..3d03e9c 100644 --- a/includes/forms/form-nav-menu.php +++ b/includes/forms/form-nav-menu.php @@ -25,7 +25,7 @@ class acf_form_nav_menu { add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts')); add_action('wp_update_nav_menu', array($this, 'update_nav_menu')); add_action('acf/validate_save_post', array($this, 'acf_validate_save_post'), 5); - + add_action('wp_nav_menu_item_custom_fields', array($this, 'wp_nav_menu_item_custom_fields'), 10, 5); // filters add_filter('wp_get_nav_menu_items', array($this, 'wp_get_nav_menu_items'), 10, 3); @@ -64,6 +64,65 @@ class acf_form_nav_menu { } + /** + * wp_nav_menu_item_custom_fields + * + * description + * + * @date 30/7/18 + * @since 5.6.9 + * + * @param type $var Description. Default. + * @return type Description. + */ + + function wp_nav_menu_item_custom_fields( $item_id, $item, $depth, $args, $id = '' ) { + + // vars + $prefix = "menu-item-acf[$item_id]"; + + // get field groups + $field_groups = acf_get_field_groups(array( + 'nav_menu_item' => $item->type + )); + + // render + if( !empty($field_groups) ) { + + // open + echo '
                  '; + + // loop + foreach( $field_groups as $field_group ) { + + // load fields + $fields = acf_get_fields( $field_group ); + + // bail if not fields + if( empty($fields) ) continue; + + // change prefix + acf_prefix_fields( $fields, $prefix ); + + // render + acf_render_fields( $fields, $item_id, 'div', $field_group['instruction_placement'] ); + } + + // close + echo '
                  '; + + // Trigger append for newly created menu item (via AJAX) + if( acf_is_ajax('add-menu-item') ): ?> + + render(array( 'user_id' => 0, - 'view' => 'new', + 'view' => 'add', 'el' => 'tr' )); } diff --git a/includes/forms/form-widget.php b/includes/forms/form-widget.php index 6f0f9e0..7076e2e 100644 --- a/includes/forms/form-widget.php +++ b/includes/forms/form-widget.php @@ -256,7 +256,6 @@ class acf_form_widget { */ function admin_footer() { - ?> - ID, $item, $depth, $args, $id ); return ob_get_clean(); - - } - + } } endif; - ?> \ No newline at end of file +?> \ No newline at end of file diff --git a/lang/acf-it_IT.mo b/lang/acf-it_IT.mo index 6caa57fbc9ef945e5ccd3a82b367e118c44a13df..37d5066386e96284a88f185cb6d4e02140ab8d2f 100644 GIT binary patch delta 2314 zcmXZce@vBC9LMp4m)`;sKfIU-_f7=81aXZYUdxH42tkol)?{TfHKD9w>T)=qnwHe$ zk8H>ko11I#LqzSSh=ouoIVo0Fo75()KeF}9)n=|WtM`ZJ{PjBD^PK0L@A;ndJO}rA z-rnaqvDfdU8e^_?88aRK!5J9S?druO;yjGSQoJ3P+IS7d5kHN|xY@=nxS6;W@5R5c z1VcUU_!lsect?+MrWRad^e{|A5-SpO}vSVg{!5 z8lw#sU@R^}C3HWgVOy``HjdEYp<}=f`~bDkdFy42C;lFn;xCws`A3cU80%0Ar1!ar zWMLd}0F`(#YGcb$6|KPptaoVW#Z9PzO{j%lvF=5^*nvSjj4I`qsP|%y8Iyv^cpJ_| zFP7kJd;pb51FGaNVidlF(de|$2+?>I3vd`!n%^)Hr}eu#N=C(*n27;gfh$o7wxJSf zM~&;onRps?G@s)VoWKP19-q21j>(~+7fUb+D{cIkjT^Cs{vD_@9mQgtM4fHg2{+;S z*iF0ybMQy3jbQPURE4@HY_WyBAmcHD}| zIF3G?#06;HH>Ml{s6?N|G~A6Ee*kr~y{P$5N!B+LG*psX=*Rd|#$@3gs1jD=99)OG zbT6aMt_xMMe!LHdP-h%*+WiWmQAeAJ>R*lXu^#Wn-RLOO5gJ-x0(FUQqRudGz?eex zVmVe|1@1u~j$;vC$8_|aaW7XX&LFQI;QDb$^4JVX6;i?`D;6CG5h`%xw9 z#0>01?f3%fvVCUbuhB#N9jdgG)}K)c+(6y-s6jV@>DF1OBgh-1{wj4f9ok7F>hg5r zlQ@FKn0=O;j*sBR2xAW6^TeJH`77cUyc2scgcDeXsYCp1uo~Cke$==>P)Fc*&bb4h zz!EyzQ6(C~6#NFO@F!FS77iQp1%|K%<426)k$D~Uyz(P==e4LxtwqiE49>$QOv4V; zopbtVsN{pFlAS}H%{b~Ve2ZTE6?IgR{O)F9BI-=@P~%E)4z5Jav%x;!W}oju&C`zB z*fGpteKSHsXEA{~^INEaNuRi9n~S-`0n`pxp)!9QmFNc44x3P4L$iJU25QG0HXg!M z;!Ehqs~D~C-<)?djzMMSMcw8AYG>uB%UOq+*nrvi8s^};Sb$^JzflY1U2qetLT&6} z)W+7M=G&=Q>%T=qXLS^nKp3^dQRLrZzQP5#XOvG0Poj?Echp2TaV{o(>b}1aqls6b zDpP~n&}vkLp2KO_j7}tt78<&>yD$QWP^BG4O*Dp4co|iJD>x5tpeCAq(H)}-DwYO&TD zvO-65tqV6Z@{l4yrBqOCX>C%QwEn1Ox79|jHOuP#;rIOYdcMzjuHWx-&UvLP{76^$ z@blhaf-&Y&pE0rc7cN0pzoQ2i6ZSCr0ASHa?0m#K%wvJB9H$h0%Dy_J51I!0)&W|Hc$d95iMr zuEr=_hdR(r=)umxpwl=?M>riLcHk&#qchfX7(@IG-he-14z3z9<}B8uHb^?=93%~+ ziT$X97o#qABPye{7>5l(8k)ERHLwM>(LU>QsEOTJjJ>E-evX>wdW%gl9uqMWmtz3a z@MhFOnouc!3?pzix-r;Bqmsr`n2+PA)clO`_#Y~@@yDGw71N3RScRKV2kb;0qzg6g z4NS%mYW`=q7H2UIJ#R0(nV|8~(8K^P#wr`%ZsTUGqkj*orjuBTbEw)T4m$_V#(v^8 z=)>=@K8!5AV@wut!wF+nVmm5By_m!MGb1!I>9~km@E_EKgpjjgDOM2Qg1T`BCg2Qa z;vDAURa}q$5og|ms7xL}jeiMM+CJ3!CnWouSsF^o74%}{yT+`*TvQ5cFaz&FJ-R1R zwR;_vu_4@uW2hSci_0+lq*K~dRR307g$;Ne9>AbdIzdAl%%UFAWmFB_r;I5;53a|J zSd9lU6KAjpe?@JWG3q?75?n%DY2#YddiAKsco*tTG>?*hz2aSTBx5`3q=!%`>%kNp zK;8H(>al%l<1a9r_-j;Z=d71d2bf2__C=?i14LPqQ6=!5CjUxx4IR2kGwSj5;N3WZ zrI$2=g6}&6w_zC_ zU8odIV-kLewfF-n1BD+La~{iaA4Yy?3?G?iP@h+wac*9R%G7q$dJkYWwx9>QQEx6d zKtm}%iAvdfsM^e+-ojV79DhQUDvY1IRE$B@)Q1`uzzp1kTBp%|-fBPJk6Nb-b+JKA zVSh70L$#Pi)%*%-VC_M>jN8FlhIPzP;9-LM7qZP;r+e-?G)ZX1u`QsOD} z;ze}p`+t>&PVD-~IhhCbn*FGotwlY~dQ8VAT!~Mk4`0K4oVNan+Q9d*bFgaE#coAi z>^{_bPbg-8^CAt^svnh_Vbl#Lk>3<^9&_>FC;au|aa1XOK`nF{voLnbnO}%*;tiSf~e$>1Q z>pE){YMnaN!ET#2n->Odr$Zaxk9t%)P^sUAQP_c+@PdtdZ2T%-OaBn++w*;>c6IfZ u_|p86qRgVQHN_QqMS)OnTT)m=prELrJQQj#&vUo7?rhxscxb*a&-*`>gop6} diff --git a/lang/acf-it_IT.po b/lang/acf-it_IT.po index 6904783..8b60d89 100644 --- a/lang/acf-it_IT.po +++ b/lang/acf-it_IT.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" "POT-Creation-Date: 2018-04-16 17:11+1000\n" -"PO-Revision-Date: 2018-04-30 05:17+0200\n" +"PO-Revision-Date: 2018-07-16 09:34+1000\n" "Last-Translator: Elliot Condon \n" "Language-Team: Elliot Condon \n" "Language: it_IT\n" @@ -11,7 +11,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 1.8.1\n" "X-Loco-Target-Locale: it_IT\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" @@ -864,7 +864,7 @@ msgstr "Formato" #: includes/admin/views/field-group-options.php:125 msgid "Page Attributes" -msgstr "Atrributi Pagina" +msgstr "Attributi di Pagina" #: includes/admin/views/field-group-options.php:126 #: includes/fields/class-acf-field-relationship.php:671 @@ -1497,7 +1497,8 @@ msgstr "Relazionale" msgid "jQuery" msgstr "jQuery" -#: includes/fields.php:149 includes/fields/class-acf-field-button-group.php:177 +#: includes/fields.php:149 +#: includes/fields/class-acf-field-button-group.php:177 #: includes/fields/class-acf-field-checkbox.php:389 #: includes/fields/class-acf-field-group.php:474 #: includes/fields/class-acf-field-radio.php:290 @@ -2787,8 +2788,8 @@ msgstr "Modifica Field Group" msgid "Validate Email" msgstr "Valida Email" -#: includes/forms/form-front.php:103 pro/fields/class-acf-field-gallery.php:573 -#: pro/options-page.php:81 +#: includes/forms/form-front.php:103 +#: pro/fields/class-acf-field-gallery.php:573 pro/options-page.php:81 msgid "Update" msgstr "Aggiorna" diff --git a/lang/acf-pl_PL.mo b/lang/acf-pl_PL.mo index b9fb1a98e88a7f1740e170d2b61ef2743ccf0f1a..7b64234a5e0ed1010efe43f7989e6a17d3ddb3d2 100644 GIT binary patch delta 13123 zcmZA72Yk)f|HtufmXIMq5<7w{A~HlI2tw@GdsMAhwPMvM*QgP*T%-1=O|7dnI?$pN zwSKClElP)`I+Paaul}$1{T}~EAHVP8aq>K$bI$ji^F8N$Z*H`UpLyQ7@9Fraxc4%P ztAnRymBWL@EvvkjWo1XH)Uu8zSyov*frasFEQa4>Dn7y5n2>B)SvUkka4-7dN%Y5y zSO#xmBL0b0EX!fV)Ud1!3fiG67GWhkj+^l=*1?38XuZ+50)W}c117- zBT!G;3^lQScpV2~IM%Oa_uC7LGQKrf860n%jhfJM%*36jCHxty;S(&5QEB!QrlBU9 zi6t=`OJRSEz{w_Fhg!Kqs4e^u9a^GGWCHO^R7XFc8a_mwiKoV}bj$J~u7Uk99RqN! zaVLfmA3`nlXQ+Yhn)1h}`vW*Iy03U`)?b+lrl1;X;B?d;H9$?MnJMpp8lXFBPjfK{ zC!tno9_oQspjKi7s=vdi{*Iw0@Cj4CYXjge2q~9 zcQ)m{F@bm(YJjz<32Z?<`5ts1W>bF`HE=#w#%B&P8X&x`W%a-~)K<(!l`lhevoEd9z;gJF(NSPBrRv#FSQE?Bpb1vQ{-`II zg_`jWQ+@%f5&vo|SDyn(+#GfP2-N)xO!;2pHPmZbVAngWDh+sdDQJm0)#Ff0nTJ~P z#i$k8gxbq}sQ3_Sg-)TK^a|>%e1p3GK5D6dNA;^$Nh??awS|>2Snq$lsi=o~?OLO5 z?2F!*i|TkBYC_Xc9V{{BYmD1W{Q=Y&_!u?O^Qbd*1J%!M)cyGw!T8o=GSL{;&^80L zr~Oe+HW}S3f|}T3)I>L!_#kS4k5TQ-B5>e9%}2hAkS*;MsNHji}lwG|DZrm z_z!C73N^NuD9BhE!zr(fm9Qa(Vh(C0CZQ&}2(?0+Q2p&kwL5~^x{DZxw~@J90Zmwc z4x-hzi9N$N(1&;hYGP|qd$k?a;Q`c29X0jWkQd0hjfF70sXc)x)Pzz{{WQf{*dEpY zm#D3}jVmq$$` z9t&dw+=$Il_dD{*XfK|lp1`|>JrRG@(uJZ9QyivX8tTSjI02`jo~QuzdU>?8x2hPb zJQ1}esi^)NqYigA(yznHF%_fGmx>9f0j8lpE<^48M)bquSQgKr+W%n6e?>jvGc1B$ z*_O2d1JMijpxPfmP4p-R=>7kcjF#{^YU%D9|3WRfPb>Qr$6yR`ChAEBqdFXk8eqJM zUqcP>ItJiURR0?>5M9O-SW)l)MKYT4@5slwRe;)(wAS|0WuQ99My)_E)Cvqny?!$> z5I3O)+=rUL2dI87U=m(IjpNRHf^4T%57l8FCg5_U59>5m$I!NX zZNn_%a`Ytr5qo1k>I`MmNL$z!gK!$^3@mQP`fKJpO~GO8NPHQCF`7@CVpt0mH%Ipe z6Y4e0MGY|Dly5>k@e$M(eTdqkQ>X{IfSSM!)ZzT8J?pP0{>>CTLv>(vup9cI>O)a0 zQ~@>NI8&aE8mJL!LM>2-FvrvnM@@XZiSw`~u@kG|SqB;2@F!~E=coa^Sq2SQ9Q6d@ zCXO~HquSL&O)wkvgq=}mq#tVKhGPkwip6m$s=sZRfR4Rnv=_Hf9Xv4&d^*{2AZnm8 zn2fQg_C0VLjzK*@xz6^$QK)_rQ3Gb6R;VqipDw5g<{%SsSR=_4rC>a&quHn@dc(L1 zBZ)U-6rM$O@GGjrXQ%-Scd^exD25Toq55fvdOfpIE8G^f_nok+-v1tC)Zr}SVhkl- zgEjB~>IuF_E#(8$z#d)gc0s6tqEK%|f{A;fCN>Cl-&oX^=9%(kn5g%E6Pc2D72_}; zb!bXKx>k>v|%uDv)bgi*2aUN>#PorL+r>N6jq?dgbB2inHfhuoe%KM5bm+c#iVl~PuqHbu7+S?A8h(l0Ywc5BJwKbm@uVD=F zT~vGj-u5rCx~Pff_IB6}=2M`K4x;w@Q`DYbMje)$sJ**`Ix7!M`~*40mUkcfn@<30 zq7_kxIvTaLHBpDK6{^2>sCHc(CestOgndvQ4nYk#%G6ImO=yO30ahelfo#8Z1a(+L z`r3aNG{Z~}%UXyms&%O!uP!F^x4&(7MXk7F2AKwAj-vLu0CkAca_kOAq6XfKn$RBf z!K1hpkK-#iZ~&9RtEd%xWuU!Mqfiet8Fk-G)Y8vG`g2%Y$>wGyA9R^SRI<8@Q+H`IQ@qNw^1)RLCQC`?69?1}#PGU{{V71Y3!P+K*9DEqG& z%{2{|nFbqC9c;%UxXbtss>5T(bEpTnjyla>V+w{0v#i&6g60@Pe0rqa&rQ_Ieuu;H z&ylSEL^3(Ke2>H1sMFbQl)Vx|F@Sgy>N9)}X5bpEi8rt*29I|CYnIg&s}oPh1Gpd4 zu>Tl);I*hH--DCzT?ZLGLGoC8&(cs^FblOZ%TRm00dnDR5ICB2IJfVqpsu>dvU zqT}rQ%A(>b7>22+6=;Q;h@+RO7=Q^BOh&E1+o+{KgSYSsR=@+V+K2H9h7sSx5G=s5 z7(CvdP&MpKoP~OuR%1Opin{M9GGT`mJi(qxWh_ZW9BKlMFb;d6ZkUUj`9{=}A3#09 zN2nG06m>SfK&|LK)WAQXCRT)f)`~_UyJ97}WA=YD87=u<)PNsi3H%8);6JDd1hHW{ z?a`=#;?Vu&6g8pdsMFmI^*Z-Pt>9qPz@xD|PC<>g1_K%2+C@ek9WkCmeNcRj>afsj zwt=V)LogJ>F%wg;430ys$YRulR-*QP2de*f(Y>Xp6}y6tMr3ZAipa_KOsk_hOvh^2 z5jEp!#y7AE@p{w}pG7U{kEXuo6nlcNV0qn#IwR{*6FP_;@x&DNzZ97;mLVDwur+o@ zE%6rA3hYNc*MQYhNbZ)>T}~U^2^V9g1Y}1s-4GFyB}Xv|3Oo!P)B7c zP{U|c2l1#55>e&Js0pN_o*)x-7FwIQ1M2nbjXFD{QAi8)}VZb!IT{7x$)-h%qUqVe_IBMe4QBRtO>SvjWx1+YyanKZe zY#LldP2^kDO!HAQe~Nmd=cox5n{FS{vY1Gmg()}|E8$Lz!3(JSAEPE#fO@c?8SdBJ zVMUVB3e-g{Nv1IyHS;d0iS#q&xu^-ghT%99V{tP^;svaT4^4f@>-M+b8rX&ME?5@# zVl3y+I!C4g1&^>YhRn2|Bn|bN4MT67f$Ct6iEpDO_8n?Mf1qBwzfltpm}PHKDbxh3 z7~5k>;z=0F_?A-{+=1%g7#6~dsMqInQ~n666MN6LCsG4z6VF4nKaE!XDeHJ>R?i*m@TudOIVRWI+ z#$98`T>E=OW7Js~KbQ5_Ud*SUJ#I&R@D!j9Ti87N4~$s!BhEw@W}{BCHQz2Tfj)%c zs4a;^JxH>tZ-H6Folp<93Rwhe-+b1;FqyOk_NmOoNaD_@4kw|OavEwS7Gn&qM4jRj zsEK`Uyn`CxXVlVrF0>D0G1PTn%u$#dvGWvGwT{TPMk zPItu43H%N9x#GRt?k^T2h#O)!<6Hg6 z=(J8pebB5zz0d1WE3g&ygu9U?vyPzl?kfz&A5l;K6m_5X3VQ|pQA=MI1F@=!(@^c3 zqC+>dC!H&5bk7GUJ z>!=3`TgA67thtKy*Uauvpx5Go@iFQN{)^fIzt#2<2BXTuQ3J=J_PQSGiF%?YFbuVl zuVPi4f^oP5HQqJU{dXKD^9VIF-!=C89gUh$BUDE%P2Aqt9WyBJi|TL#md4$veokWz z{0?=0>9zI*BT(&=Ozg-YqZzlx>ev-^IA)^`%@Wj1H=v%}h1%oe*ak15&Q8QS``-;3 zqqc4`>b^xd4>zGESbaUe>OJ^Ry2xAMux4(sPyY@qOM?@}udy8QQ;f#2jrQr!z>>th zu`Z5B9m;o5XUE!P|2hvsy>Qau|K(TP%E+ytKlgug%42^^WSQ3QE~Jpu7sLsj47{+dfT$m{r7)wGJ0JGpq6kl zs>AulEvPf{Ar`_jCccOo;7imBeq+3ky8jXSVBj`;LM2d#uQEns!Zy}_BALz|od!kl$AgZ4! zs6)6AHKC0TQ}7-JQ1BV*EZj5={xJ1{d+jBSKpn<(REIrL6B&w{z%-1)ndpzZP!l+W zdM!UgE&XlOS#$XAvrlCy45y$bYRNjHUdLWo1t+4Oe6#T~RwVuheKBIcJzy;A2~$u5 zHpL+9hWcGF7=v*X7S;PdgUlHUmS7zAIAH%eo{c(0`B(wHUG~HxQ3F;-Jz*+pz=lYN zRwvX-^ha&QAgqd`QHOOM>QKJrmi^yBM(^cb)Y6?tPke|P;4!LWkAwE%2}V6hNfSq) zCKO}h1k?mlu>{sO<*iZeI-w@^68bZ~HHb_t9D^yi8#(+|L;Wza?$3 znyI;-P?m4h>v>r>Hfr&KO?ShCfbd%Nu*HHK#f1$G)giJbogFePfaGywDF_O*QV@= zu|9P*DSu4d+LT=}zM!eebijJF?ZZ9iNFRCd{6CsXe$`tSDEyqXjQmEDFOAm_hu|LK z@#HI$CX<>{)*E%{O_@)6mpGMjT@6T|lj2QWhI}3JgHQ*%k;>ick5{;HFX>J4yRaXg z!C6=yzb5IrZsY#hh7Q`1J4T(asc%N?MSdEVq+YLXKjNa~3zOHinV8Qns~oz=*K2Wu zK-WfN5*{J`$z5vy+rHk0k4cfF!=|07wtgdCL`q|zZ%y4WD#J{^JNdszC8*b>|A5s- zG-wbP; zfqPMZMvW*>)Bfw--$PJ@2Cty5FYqlaMA-oHw@9D5Yxw7R;~l(h@@=VaMmlL?F^-hT z{r$1I89bdfKM?B^aXIP4i~awGitkCSNeMK5PGxuUPST6(KPErgSk`pKoxg55}KLM%Oo_T=Jtxb4^(dca8m{xS7m6>SD+rruZrO zK&(a_gN?BzDVKaLJZt(XMtqtykECl0iC-)HnOB)TFpZ*(YM|>jaUC4%Y!_R?5kf@c z|G!d+mk{aegs%1sr>o_^deJZ1b|#LZ{y)U~h`+=v;yUC*$m{yh#{F{x*J<>(;9Z2z{)1(~AQb{RH zC)qs0hm?Oz@*yQt*Os(^{0F2UQfE>_+E&7q)a^ubIjm#kE|LDGunb9G>wHLs$!BmA ze=fMMKloX}+!%#EW^h%mH|15aBk>f{Yvd=AmXazGcP174*F6h}ck6ZDMn+c+8b;IL zeezAn>&hc}kne+waW<(JsUq$4mA@1D4=|nhP4WSx%cLg6?I~|XDow0wA?X@<7pVj( zls41#5!;;L3-@NcP42~&L1q!@0m(sm?H3hzmUN!7H}Eb7)7AQa)z7D_0%c`Lx|)z4 zQl`sAIzWCCDS>qS9xxXwX^Q;Sb?S^Q{?`B_4kVaf9AgCc#)Jt{ufeR z@(s*=Yl*)nzD4RvzACG;;Ou2&oa{yZ^dKBzSQ}kg02);t=JvNcvhE zN!ho!lvJN|j?~lK*9Gqpk0E)|&JV|vbp2%793=k|sUz`s*aIEqXk3+`1*sFM6mc;s z0?0Qe?I+(CD^WfZbp?|yQC^eOg7TB7|2KatzPR2cbC;B53Sz1Ik#v)|mMJTx{ohOQ z_+K|}GL_ZoFqC{I#!z2{^oZ1rvel-|uf)5_dtw~zrr|%NC{r(dNtaEWjjxi1)223Q zi1z;i1wBY%bfE2+Ogc#A2#lp{CHWe73bRSNT9PW7d|7-*{D~^e^d)gk;x!tufb=TC|6Yaur_9SV7)$vO@(HH?SMo`ujI71ZYgwtT=*GU@u7=I8dAPz`j`VV^Xg$QknbLNS>t5Tl zUe1dh?>j%}^s#GU=N|s9Cw+E!y7u;8;^jOzsEMn~;IUrL@L}Pu3B%I8oJU7aaMsR^ zca6^t_o$f`pI9qCIW;0Ft#)!^TvB3UqF>uK@$GZQ4IVvs#PIm6K4WrfM)fa#MO@`47x4^iG;u=2@IDbEb6y=jqP{E2G2Nq3=J2sY#}09Aow~=zHDs2zhja4m z_nnz@y0{L`x#{iNydc}t_1B`7-mcb5Z+SQeEWhR&u_DCVwRd%-hx3ayf4lCj4GC}+ y+u6m-HSz5LZ)ceU?VT$Q1iG#qsO9Z!dnnR%2)ouN0eo4Z=+nx%IjuXO>iDo#r0SlAH<%x7yIHx9DVnC$T-*)_EcW$cX6S6b!@!(s{TW%dsE!rng#Hh?TJn({UX#Uh4zw zh##Rkj_u_PxFJ>}ZDT#`fK_lH)}VhYjYwTGCSpzWnhFb04J|e4wWhq>_=L%S4jWMK z2)4y{P&2)b8d%-lmUSK*;ugGy&9JNw?bE-tn}|9-U_5So8#S;GF%`c-EoE2MI|);; z4(6b?W(jJ*tFa+IfbqBwZG7FNKSQnHO$=%;qgh`y&;Zpyb5w;6s58;UI2tRF&cRHa zhq3q<<0q(7@zR^%9J0;fUg!u--Mk=KZ@$$ENTFMMXl&X)FJ-Xl-EmfI&O+B$xlSJKPE_I8jmH&6|o zLk;kAQ~m=EB^@=;+1nA=h;#;~;Ud%oD)0_`2W|WpHpRF>j!DMg2qK!{9MlWN*aEkp zX7Cbf#2=vYf5jxUQytT>HR)2+`#Z4(9yj@yjFksF*E0!Keh+rg{a-{xr+5!)DUYHC zbON;^=TLk3u}Ob{TDl)mGmW~_IV*9f_Zy@3I04me7t~=Kf?CO`sIBy3E#3bDQ?L?s z-8Q2d*o)El66!D>Lk;XrR09`G{wKz(ru;hUEL7ujs0q|Toh=*HP8-zwT_pWm{fO8& z6x-k&<9gKnJ%n0;w^1{GA2riUsDXZg8u(Ax7-Kjf%5Q_}xCiRJeyEj8Lk(mC230W2 zWaJp<5o7oe7InQ<*PBfSL^@DSF=^QaZMiW+FdaA!s8VHMIX zQS}msv;NxCR5B8A9I}1Z66D5MCr|^79N{cwHPpc3Py=a|mkFfQGh*uAL!HX>UWv>r1B$5BgDf$HEK>hynrYWRDTZ;f`Ayb7v=IE=xT zsI$-stK(>Ff>TjjRAllOqb9f}Ec?HSh-UII?!?^~g+s?UFOEQs_-@odT&Sh=V+~wt z+<@AG?Wogz9NXdr?26V{XJXw@1L})Wy8nYs#xRT{JsQ=~OjJiXsE!sJ*P=SwhU(yD z)C4|7ez93sQMahW-Oh@3Lba2ETA8t^m6?V?-P2+s>R>af<0nu9Ie=>DRqTQlsE&R_ zmFvbMVTBEg|1Bi%R^ zRndd$r~oz7#i+w`AJ)b#SQqzT9ef$p;91mO{}r`Gm8UrGH%FBxnRIugpP-dWq$>qu zFdmoV9()8fgFB}>9gji{WHPElH)^GdQ3GCr8sIuqM-O35d<@mjv#1HZWc(wxqJQf& zk=7J^gKD6`Jx+ryP#t!{`q&>E;5bx6UetG@0JX=(s6AhV9dJ3Sy=RPvQSH2r-SBT% zS@*vNe*kJJ>!D`S4pp%ys-sb;>oUot%TNQ`h*eo?QCt8AQ2s!+NeEjh&nVaO*$EMn)_ls9E{O888y@C zs6EcXC|rSRZ#72adgBAAm3#;_ft{#!gU=FC$1h?uo8(6c0izO*U4=6{sa#hnmqt#=WQxj-XcPG}gfPP%Cr^cj4FA7Vi%@|EcCM)+Ajy z&pA`|^H_g%(2EQ;G#E9~5vcn)2K7P)YGvl3R-g#GVyVf02DS9hq251&s`n~tsVlHG zevFY=Wu7z8>hoBCeRvv>p#iipc0@JU9W}uIsF|gi^6{vK?m=zE46KD&CcOYvf4Ol3 zYG4neZo^L0cjA1I$Ref|%bn2uzPHF}@KIEQdy!SNj$kRao6o<7a2IN;>J>XH)Cprr zr=Wf(j70szV;1(n9hipaust?e;QUSr4khwD8HLyz+m<*T&ql4lJY0w+s2Ti#>39RR zH6s|6R%i<93}j*>oM-aaqE`4pY=}>yw)QwO;Gp#`5xw}4lVN?0I;B6OR-hKWYalI9 z`R%b24#LKmhuVU*coDbYRxDb?f5^g`i=D%ojCy|%YNaP*6WxCw5shpOPQsn2YxfhT zV1p&jixW{J_n`(9M7_5fHITRAW)xjjxj5AR6a#0Nwq8cbR`6a0LmZB!G2BUF{Nk5D_ zyn9gJhoh(!51us{m#`8U|3>ZkFQ|^Iu5ucxi#jy%s2R3Etym(e;X$Y+9gnTii>kj7 zbvU;gpE4dr1`@PR6RAvvi>Mi2Mm6}INmp9!>{)G8xs57MLUk|@HQ?c>2~0xGY&vSM z{ip#iMjhJK*clIEcisPwi6oHGV2!hceXuR*R8)gr)RF~IGhTtZrdv_>{}5`a&!AT9 zUE_zS0bfB4@OzUVaj!G*Sk$+`s!yaHcE?sY16$y7RlwcY5?{y3cm*|pf%iG@O~dA- zSEB0e#_o6uwIw%E1FXB&c|RVN&cmQaRz##Ku0Y+(br^%&QG2%+HNYdrPf#LwMKa-&sV>UYJ2H1&oJL448p;==* zf|}u%*cHD;osm}eJ6qEm$B~|Z`cUmb^>YH_@qJW(SA#@CM6RPw_0yZ2f>%+8?=7r> z@1U0aBUAn(4j~=!fHT8k$T_yAqqg!h)Jk1NovFxjr@giqN4g_wMS=r}v?VeW^+GOc zWXp}~QA@ZLYvQx0!}$v85MIR2cmvgO(q`ua)C09OgHaugMzuQ$51JMX2U zK135y?Uta8<)|$?g!%xT+s^toByz!Ie1p1HKcH6RKd2c;?r@ec4z;IUQD-3qwGv}c z@7;r1K^JN(=AmxSQj^|*s=otOfA0>~U)SRR8G7-3Q}7u!ApI3;#F39W9k;-{NOwe? zjRmOF{S0bGFQD2viW>M^s9SL!HSkL&|7+9)ehw1RURQt2S-N_tk+(xFc`wxIA7Ron zu|DZMoPw)Rhv}m6J5+m>b~+P?Gq%ALi+>YfGhBrGG581(jV$ePXC~u~(@-(>A_z~(*HreZ(ojKT?bP=}1E!YE(payge)o$cd ztV(Ml&53BnL$M={MeXSl)M49>>iBu%Uof8Zb=1<<-sc?BcpOH$BPzcTHPD6F1gQ3^z;*|T#1J`zn#pTeidRs3mhr6f&+V<~=g?fn0QnOSI={3| zViM`Eup`Dl=lpUShUKJJ;RtN}ymJlRsCpZ*Ck9_3l1Sv=sF~Rz=ahCp&2R{w!I7wr z;}7w*!!=kJd%oa!7ivZ`Q7hm_4XgyiOK!?v#whYnBlUvTpPh*H0fv_z)zE*i4#vLd z45&FO-3McF6zXtIHRbb6`C8OcKZ-iEFQMA|05y;=Q3Lo5^}jz`Q7<`5c^3|$AP==A zFJJ@wBWf=%ptk5s)Zwgs*g3@ss1MFS)C$f-9p-Fok1J6t@vQOh*n)J`BYfa=|2q&- zhh0%KOhI*cH)`aWSQQIU9WO#1&h>Z-x1+YubJY3$z6s+=|A6`q)O^_)STa^2-5b^4 zAPlO*QAE_>EY#BYQG1w=9dI$~bni9!&!A56VdHVseXc-#Pd>&-ta8lhs5+|s2B#Ve{P6%fiQv0eq=T#yhFH`kV#lUnXZgxq-P;v2KhJf3&J7d&k@F$3VFo! zbRs>Hc+jMkH&Z`&#!@y1zgA&0LR-Q@!dfzuD14Q85@C^Q^XMELA>9tAnvU)xo=MQ7 zRhUV6BxOfY|L=U`$?HQXAwAT*6JsRXxq&a8{u5%KiKi94F8Wh=^s&`o4*7zdGR~q#l*iP)Fz~oP9_W?ewm=B z67{BFkx9=dzK8I!PE`5*iP6Cwq&_Fy{_yRx-sO$EG0MDY)6zdlHy|7!?=1Er@3bi= zX)PhNGwCLjC6JzK(lHoK-u))s3w=6Ok5K7PB(~strtnST&ztyV;x-|T@E^jz2)938 z>eZ)VJ$DkOlYR_$;9kNMf}S)SLcI@(kC3EmM{=sVo0r42`0*-X4uw4l%_ys>isT(2 z>?8a}`VJh6bqMzm^i-p6bK)+XO*+lA`!n$e2wxH2pj=<^i{_n3ovI8n^b8}ufuO&P ze;{-s?@2-v!U)0|^4budB78!+F1DhR=ZWi?MSLKk7Wq2~w?79-Pa}L!=ug27LJEQT zJ5OC+j3azX@<}RHC-f!g`5c$wG4z?dKayTbd_QL4YnY1TXhXm9rxH4n9)eZK(;rOb zq(j&O^>n$df9nx4Z9){4Z#{#E+(EkaZF$p7ybV^O{yIWa;_1}wL3o;Qj&Ot!pe&uT zSmHku--shg|AO@i10sH(KZlD7eJEUycM|jrAlyxSaX7_bh@T+d5SN)c|HS1c{-~+f z8&8n8n{b_Q59wZ}>`_x!$reF643Y7+$()UT3Vy<_Chs@Wi%q;K&gLCGJHtPnAAQJQ zO?b%En@;xkgz?nfhK&i=C@aQ8gp&k4;rV;aOGC*RXyOOM#sB^B0nu@Us+14MIc5;O zjWx-8hO)a%x)bregfqk^U`O-b`=lq|zW;wBqZ*+R z6#@v)di_<-^l)RRYei}bK?ihrHy z{>KsCC-@252_+QPzy!iY;_C^2BYuXUr!9^D=tRRm3;9`Q(rc+Rlk!>wJ^hS|e`4NG zye%)d$7I$ZGhVgKQ_oa7bt?ns5i-dC%DkhZ4TQ~#@bsW;uoJbK6K_F$A9epgc+ccd zBpyNdjLMicT^5$Y4xk={Nx{6cQ)hUHSzP*brGI5X^VP)A>Dy=E5bdb=VBM_|9nD2GW6sUe~d7a_;)zTX2;# zXt99)Ja(b0dWN0tak;6M97^f6JtFi)@9`0#!F}JWTsKhc_XS*T+p{1qkYC8Ce4g?; zseiBH?wA+w`U}gyOx;{5KR=M4T)t><@5V!&TEjGUJ52+ji-0|L_}EZraMkF#9=|8w zRp`0ZT4uoQ2^|@BJ|cAQ@ZzXQe^%({k@F%tyB2tJi*oIS;ZZKOecoJep`Gt>Wo9$2 zb_;V|3l`f8y>1W7!i4e{muID~ZSD1kUz+do6?qE&Tiafk>-8_TO?K#7`kAO^p4t}v=5wg7VJ$`%QxKYXFFWr4L((fsMeB2u``SjuJL_x?ser8N;hEHo5UdDpZ zt23XDjCCyt_yf5m_5@FUZpiD}92L}xn*DP&#qBM~^SMfFuRk-8pYO>m^p)7f*>vY} zyTco0yX*r%=5H z^0QoiZ>h(o@qF9kX7LL$^F53=qr^E~|6POMPg!z#D7$4J=lnWD(Fpvu$8Syw2{-d| zafn>D-&5?gWHUHct044V_JF8L*`CZCPkF3wQTZ}o_geX$+`xQ~j)7*mcwp#|uX#j` zUL8C4?AW!J-K9t0Ze7bS?81^fd`YX!p(yaWVyg;$b&z`tSsa16H zSV^&KZbez9?I|qD@$$ni^kfBW`f}NGT{!{UU)_~;a{23_;v83U=(*xXk)aDE%OXOv z7d}&|ULb?xT59L{yg9Zfr$9HVC=|1-azxFsMgE*ZJ11~*WoDqbq`cPhSE>v?xxAvx zom_rq`III@P35_)T2Wq!o%edkXSgDZ(MZD zs6dX(=Ph+*&UJ;hY`7HBE8Ue-@PAygK!LZSEX(h$*v7>EubWnI|M~K7@2}g;StC|9 zyr4Pxfy~l?-(|ORu3IQ=Q^V-iewWWv>g9IWfdZGi)Z_QMY&Xl47jUzpEE>1XRsPPF zh9Uo!dJ)ls^IbXR%O1QLH&$!uce(RRE4I1)p3vfl>c_^1Gs8<=;L3GYoVIg|LYsC? ziK?y3=k;@vatd@Cz249lPu7SI@{;GjJ8NgqUa8k(7nhuTq?o<)X=D9fPhP&O*y}#I zJWw34=Xy>);`5p#KwY;68_-&Zx0utw5iWK4!V|c?A?6d_e@?T9@$0O`@fL9|b!MsR zmtWgAB_Y>k2eR_HV3}GGj`#onIZN5!AU>C}x#r__`?oHXvOhg~P(pY)Zadp9t|mv7 zB`b61aAGS~a}4N(>syjJ*Bd@IMd5R+X(X4gJdikO?*Dsq^ZwT%v{?lg1NY9g{efa` zgN|Oswp;7z$qDT{@N-o4Qdg;;Y5~5OPlOhgH#pS0PEkP-w}&D8es#;!4{iP*Xh{xB diff --git a/lang/acf-pl_PL.po b/lang/acf-pl_PL.po index a670bc4..352df11 100644 --- a/lang/acf-pl_PL.po +++ b/lang/acf-pl_PL.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" -"POT-Creation-Date: 2017-06-27 15:32+1000\n" -"PO-Revision-Date: 2018-02-06 10:06+1000\n" +"POT-Creation-Date: 2018-07-26 18:20+1000\n" +"PO-Revision-Date: 2018-07-26 18:21+1000\n" "Last-Translator: Elliot Condon \n" "Language-Team: Digital Factory \n" "Language: pl_PL\n" @@ -23,97 +23,96 @@ msgstr "" "X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPathExcluded-0: *.js\n" -#: acf.php:63 +#: acf.php:80 msgid "Advanced Custom Fields" msgstr "Advanced Custom Fields" -#: acf.php:355 includes/admin/admin.php:117 +#: acf.php:387 includes/admin/admin.php:117 msgid "Field Groups" msgstr "Grupy pól" -#: acf.php:356 +#: acf.php:388 msgid "Field Group" msgstr "Grupa pól" -#: acf.php:357 acf.php:389 includes/admin/admin.php:118 -#: pro/fields/class-acf-field-flexible-content.php:574 +#: acf.php:389 acf.php:421 includes/admin/admin.php:118 +#: pro/fields/class-acf-field-flexible-content.php:572 msgid "Add New" msgstr "Dodaj nowe" -#: acf.php:358 +#: acf.php:390 msgid "Add New Field Group" msgstr "Dodaj nową grupę pól" -#: acf.php:359 +#: acf.php:391 msgid "Edit Field Group" msgstr "Edytuj grupę pól" -#: acf.php:360 +#: acf.php:392 msgid "New Field Group" msgstr "Nowa grupa pól" -#: acf.php:361 +#: acf.php:393 msgid "View Field Group" msgstr "Zobacz grupę pól" -#: acf.php:362 +#: acf.php:394 msgid "Search Field Groups" msgstr "Szukaj grup pól" -#: acf.php:363 +#: acf.php:395 msgid "No Field Groups found" msgstr "Nie znaleziono grupy pól" -#: acf.php:364 +#: acf.php:396 msgid "No Field Groups found in Trash" msgstr "Brak grup pól w koszu" -#: acf.php:387 includes/admin/admin-field-group.php:182 -#: includes/admin/admin-field-group.php:275 +#: acf.php:419 includes/admin/admin-field-group.php:202 #: includes/admin/admin-field-groups.php:510 -#: pro/fields/class-acf-field-clone.php:857 +#: pro/fields/class-acf-field-clone.php:811 msgid "Fields" msgstr "Pola" -#: acf.php:388 +#: acf.php:420 msgid "Field" msgstr "Pole" -#: acf.php:390 +#: acf.php:422 msgid "Add New Field" msgstr "Dodaj nowe pole" -#: acf.php:391 +#: acf.php:423 msgid "Edit Field" msgstr "Edytuj pole" -#: acf.php:392 includes/admin/views/field-group-fields.php:41 +#: acf.php:424 includes/admin/views/field-group-fields.php:41 #: includes/admin/views/settings-info.php:105 msgid "New Field" msgstr "Nowe pole" -#: acf.php:393 +#: acf.php:425 msgid "View Field" msgstr "Zobacz pole" -#: acf.php:394 +#: acf.php:426 msgid "Search Fields" msgstr "Szukaj pól" -#: acf.php:395 +#: acf.php:427 msgid "No Fields found" msgstr "Nie znaleziono pól" -#: acf.php:396 +#: acf.php:428 msgid "No Fields found in Trash" msgstr "Nie znaleziono pól w koszu" -#: acf.php:435 includes/admin/admin-field-group.php:390 +#: acf.php:467 includes/admin/admin-field-group.php:384 #: includes/admin/admin-field-groups.php:567 msgid "Inactive" msgstr "Nieaktywne" -#: acf.php:440 +#: acf.php:472 #, fuzzy, php-format msgid "Inactive (%s)" msgid_plural "Inactive (%s)" @@ -151,100 +150,99 @@ msgstr "Grupa pól została zaplanowana na." msgid "Field group draft updated." msgstr "Szkic grupy pól został zaktualizowany." -#: includes/admin/admin-field-group.php:183 -msgid "Location" -msgstr "Pozycja" - -#: includes/admin/admin-field-group.php:184 -msgid "Settings" -msgstr "Ustawienia" - -#: includes/admin/admin-field-group.php:269 -msgid "Move to trash. Are you sure?" -msgstr "Przenieś do kosza. Jesteś pewny?" - -#: includes/admin/admin-field-group.php:270 -msgid "checked" -msgstr "zaznaczone" - -#: includes/admin/admin-field-group.php:271 -msgid "No toggle fields available" -msgstr "Pola przełączania niedostępne" - -#: includes/admin/admin-field-group.php:272 -msgid "Field group title is required" -msgstr "Tytuł grupy pól jest wymagany" - -#: includes/admin/admin-field-group.php:273 -#: includes/api/api-field-group.php:732 -msgid "copy" -msgstr "kopia" - -#: includes/admin/admin-field-group.php:274 -#: includes/admin/views/field-group-field-conditional-logic.php:54 -#: includes/admin/views/field-group-field-conditional-logic.php:154 -#: includes/admin/views/field-group-locations.php:29 -#: includes/admin/views/html-location-group.php:3 -#: includes/api/api-helpers.php:3970 -msgid "or" -msgstr "lub" - -#: includes/admin/admin-field-group.php:276 -msgid "Parent fields" -msgstr "Pola nadrzędne" - -#: includes/admin/admin-field-group.php:277 -msgid "Sibling fields" -msgstr "Pola tego samego poziomu" - -#: includes/admin/admin-field-group.php:278 -msgid "Move Custom Field" -msgstr "Przenieś pole" - -#: includes/admin/admin-field-group.php:279 -msgid "This field cannot be moved until its changes have been saved" -msgstr "To pole nie może zostać przeniesione zanim zmiany nie zostaną zapisane" - -#: includes/admin/admin-field-group.php:280 -msgid "Null" -msgstr "Zero" - -#: includes/admin/admin-field-group.php:281 includes/input.php:257 -msgid "The changes you made will be lost if you navigate away from this page" -msgstr "" -"Wprowadzone przez Ciebie zmiany przepadną jeśli przejdziesz do innej strony" - -#: includes/admin/admin-field-group.php:282 +#: includes/admin/admin-field-group.php:153 msgid "The string \"field_\" may not be used at the start of a field name" msgstr "Fraza \"field_\" nie może zostać użyta na początku nazwy pola" -#: includes/admin/admin-field-group.php:360 +#: includes/admin/admin-field-group.php:154 +msgid "This field cannot be moved until its changes have been saved" +msgstr "To pole nie może zostać przeniesione zanim zmiany nie zostaną zapisane" + +#: includes/admin/admin-field-group.php:155 +msgid "Field group title is required" +msgstr "Tytuł grupy pól jest wymagany" + +#: includes/admin/admin-field-group.php:156 +msgid "Move to trash. Are you sure?" +msgstr "Przenieś do kosza. Jesteś pewny?" + +#: includes/admin/admin-field-group.php:157 +msgid "No toggle fields available" +msgstr "Pola przełączania niedostępne" + +#: includes/admin/admin-field-group.php:158 +msgid "Move Custom Field" +msgstr "Przenieś pole" + +#: includes/admin/admin-field-group.php:159 +#, fuzzy +msgid "Checked" +msgstr "zaznaczone" + +#: includes/admin/admin-field-group.php:160 includes/api/api-field.php:289 +#, fuzzy +msgid "(no label)" +msgstr "(brak tytułu)" + +#: includes/admin/admin-field-group.php:161 +#, fuzzy +msgid "(this field)" +msgstr "Pole powtarzalne" + +#: includes/admin/admin-field-group.php:162 +#: includes/api/api-field-group.php:751 +msgid "copy" +msgstr "kopia" + +#: includes/admin/admin-field-group.php:163 +#: includes/admin/views/field-group-field-conditional-logic.php:51 +#: includes/admin/views/field-group-field-conditional-logic.php:151 +#: includes/admin/views/field-group-locations.php:29 +#: includes/admin/views/html-location-group.php:3 +#: includes/api/api-helpers.php:4165 +msgid "or" +msgstr "lub" + +#: includes/admin/admin-field-group.php:164 +msgid "Null" +msgstr "Zero" + +#: includes/admin/admin-field-group.php:203 +msgid "Location" +msgstr "Pozycja" + +#: includes/admin/admin-field-group.php:204 +#: includes/admin/tools/class-acf-admin-tool-export.php:295 +msgid "Settings" +msgstr "Ustawienia" + +#: includes/admin/admin-field-group.php:354 msgid "Field Keys" msgstr "Klucze pola" -#: includes/admin/admin-field-group.php:390 +#: includes/admin/admin-field-group.php:384 #: includes/admin/views/field-group-options.php:9 msgid "Active" msgstr "Aktywne" -#: includes/admin/admin-field-group.php:801 +#: includes/admin/admin-field-group.php:750 msgid "Move Complete." msgstr "Przenoszenie zakończone." -#: includes/admin/admin-field-group.php:802 +#: includes/admin/admin-field-group.php:751 #, php-format msgid "The %s field can now be found in the %s field group" msgstr "Pole %s może teraz być znalezione w grupie pól %s." -#: includes/admin/admin-field-group.php:803 +#: includes/admin/admin-field-group.php:752 msgid "Close Window" msgstr "Zamknij okno" -#: includes/admin/admin-field-group.php:844 +#: includes/admin/admin-field-group.php:793 msgid "Please select the destination for this field" msgstr "Proszę wybrać miejsce przeznaczenia dla tego pola." -#: includes/admin/admin-field-group.php:851 +#: includes/admin/admin-field-group.php:800 msgid "Move Field" msgstr "Przenieś pole" @@ -313,7 +311,7 @@ msgstr "" #: includes/admin/admin-field-groups.php:609 #: includes/admin/settings-info.php:76 -#: pro/admin/views/html-settings-updates.php:111 +#: pro/admin/views/html-settings-updates.php:107 msgid "Changelog" msgstr "Dziennik zmian" @@ -350,48 +348,53 @@ msgstr "Do widzenia Dodatki. Dzień dobry PRO." msgid "Thank you for creating with ACF." msgstr "Dziękujemy za aktualizacje do %s v%s!" -#: includes/admin/admin-field-groups.php:668 +#: includes/admin/admin-field-groups.php:667 msgid "Duplicate this item" msgstr "Duplikuj to pole" -#: includes/admin/admin-field-groups.php:668 -#: includes/admin/admin-field-groups.php:684 -#: includes/admin/views/field-group-field.php:49 -#: pro/fields/class-acf-field-flexible-content.php:573 +#: includes/admin/admin-field-groups.php:667 +#: includes/admin/admin-field-groups.php:683 +#: includes/admin/views/field-group-field.php:46 +#: pro/fields/class-acf-field-flexible-content.php:571 msgid "Duplicate" msgstr "Duplikuj" -#: includes/admin/admin-field-groups.php:701 -#: includes/fields/class-acf-field-google-map.php:132 -#: includes/fields/class-acf-field-relationship.php:737 +#: includes/admin/admin-field-groups.php:700 +#: includes/fields/class-acf-field-google-map.php:164 +#: includes/fields/class-acf-field-relationship.php:674 msgid "Search" msgstr "Szukaj" -#: includes/admin/admin-field-groups.php:760 +#: includes/admin/admin-field-groups.php:759 #, php-format msgid "Select %s" msgstr "Wybierz %s" -#: includes/admin/admin-field-groups.php:768 +#: includes/admin/admin-field-groups.php:767 msgid "Synchronise field group" msgstr "Synchronizuj grupę pól" -#: includes/admin/admin-field-groups.php:768 -#: includes/admin/admin-field-groups.php:798 +#: includes/admin/admin-field-groups.php:767 +#: includes/admin/admin-field-groups.php:797 msgid "Sync" msgstr "Synchronizacja" -#: includes/admin/admin-field-groups.php:780 +#: includes/admin/admin-field-groups.php:779 msgid "Apply" msgstr "" -#: includes/admin/admin-field-groups.php:798 +#: includes/admin/admin-field-groups.php:797 #, fuzzy msgid "Bulk Actions" msgstr "Działania masowe" +#: includes/admin/admin-tools.php:116 +#: includes/admin/views/html-admin-tools.php:21 +msgid "Tools" +msgstr "Narzędzia" + #: includes/admin/admin.php:113 -#: includes/admin/views/field-group-options.php:118 +#: includes/admin/views/field-group-options.php:110 msgid "Custom Fields" msgstr "Własne pola" @@ -408,7 +411,7 @@ msgstr "Strona opinii i aktualizacji" msgid "Error validating request" msgstr "Błąd podczas walidacji zapytania" -#: includes/admin/install.php:210 includes/admin/views/install.php:105 +#: includes/admin/install.php:210 includes/admin/views/install.php:104 msgid "No updates available." msgstr "Brak dostępnych aktualizacji." @@ -429,34 +432,114 @@ msgstr "Informacja" msgid "What's New" msgstr "Co nowego" -#: includes/admin/settings-tools.php:50 -#: includes/admin/views/settings-tools-export.php:19 -#: includes/admin/views/settings-tools.php:31 -msgid "Tools" -msgstr "Narzędzia" +#: includes/admin/tools/class-acf-admin-tool-export.php:33 +msgid "Export Field Groups" +msgstr "Eksportuj grupy pól" -#: includes/admin/settings-tools.php:147 includes/admin/settings-tools.php:380 +#: includes/admin/tools/class-acf-admin-tool-export.php:38 +#: includes/admin/tools/class-acf-admin-tool-export.php:342 +#: includes/admin/tools/class-acf-admin-tool-export.php:371 +#, fuzzy +msgid "Generate PHP" +msgstr "Utwórz PHP" + +#: includes/admin/tools/class-acf-admin-tool-export.php:97 +#: includes/admin/tools/class-acf-admin-tool-export.php:135 msgid "No field groups selected" msgstr "Nie zaznaczono żadnej grupy pól" -#: includes/admin/settings-tools.php:184 -#: includes/fields/class-acf-field-file.php:174 +#: includes/admin/tools/class-acf-admin-tool-export.php:174 +#, fuzzy, php-format +msgid "Exported 1 field group." +msgid_plural "Exported %s field groups." +msgstr[0] "Zaimportowano 1 grupę pól" +msgstr[1] "Zaimportowano %s grupy pól" +msgstr[2] "Zaimportowano %s grup pól" + +#: includes/admin/tools/class-acf-admin-tool-export.php:241 +#: includes/admin/tools/class-acf-admin-tool-export.php:269 +msgid "Select Field Groups" +msgstr "Wybierz grupy pól" + +#: includes/admin/tools/class-acf-admin-tool-export.php:336 +msgid "" +"Select the field groups you would like to export and then select your export " +"method. Use the download button to export to a .json file which you can then " +"import to another ACF installation. Use the generate button to export to PHP " +"code which you can place in your theme." +msgstr "" +"Wybierz grupy pól, które chcesz wyeksportować, a następnie wybierz metodę " +"eksportu. Użyj przycisku pobierania aby wyeksportować do pliku .json, który " +"można następnie zaimportować do innej instalacji ACF. Użyj przycisku generuj " +"do wyeksportowania ustawień do kodu PHP, który można umieścić w motywie." + +#: includes/admin/tools/class-acf-admin-tool-export.php:341 +#, fuzzy +msgid "Export File" +msgstr "Edytuj plik" + +#: includes/admin/tools/class-acf-admin-tool-export.php:414 +msgid "" +"The following code can be used to register a local version of the selected " +"field group(s). A local field group can provide many benefits such as faster " +"load times, version control & dynamic fields/settings. Simply copy and paste " +"the following code to your theme's functions.php file or include it within " +"an external file." +msgstr "" +"Poniższy kod może być użyty do rejestracji lokalnej wersji wybranej grupy " +"lub grup pól. Lokalna grupa pól może dostarczyć wiele korzyści takich jak " +"szybszy czas ładowania, możliwość wersjonowania i dynamiczne pola / " +"ustawienia. Wystarczy skopiować i wkleić poniższy kod do pliku functions.php " +"Twojego motywu lub dołączyć go do zewnętrznego pliku." + +#: includes/admin/tools/class-acf-admin-tool-export.php:446 +msgid "Copy to clipboard" +msgstr "" + +#: includes/admin/tools/class-acf-admin-tool-export.php:483 +msgid "Copied" +msgstr "" + +#: includes/admin/tools/class-acf-admin-tool-import.php:26 +msgid "Import Field Groups" +msgstr "Importuj grupy pól" + +#: includes/admin/tools/class-acf-admin-tool-import.php:61 +msgid "" +"Select the Advanced Custom Fields JSON file you would like to import. When " +"you click the import button below, ACF will import the field groups." +msgstr "" +"Wybierz plik JSON Advanced Custom Fields, który chcesz zaimportować. Gdy " +"klikniesz przycisk importu poniżej, ACF zaimportuje grupy pól." + +#: includes/admin/tools/class-acf-admin-tool-import.php:66 +#: includes/fields/class-acf-field-file.php:57 +msgid "Select File" +msgstr "Wybierz plik" + +#: includes/admin/tools/class-acf-admin-tool-import.php:76 +#, fuzzy +msgid "Import File" +msgstr "Importowany plik jest pusty" + +#: includes/admin/tools/class-acf-admin-tool-import.php:100 +#: includes/fields/class-acf-field-file.php:170 msgid "No file selected" msgstr "Nie zaznaczono żadnego pliku" -#: includes/admin/settings-tools.php:197 +#: includes/admin/tools/class-acf-admin-tool-import.php:113 msgid "Error uploading file. Please try again" msgstr "Błąd wgrywania pliku. Proszę spróbować ponownie" -#: includes/admin/settings-tools.php:206 +#: includes/admin/tools/class-acf-admin-tool-import.php:122 msgid "Incorrect file type" msgstr "Błędny typ pliku" -#: includes/admin/settings-tools.php:223 +#: includes/admin/tools/class-acf-admin-tool-import.php:139 msgid "Import file empty" msgstr "Importowany plik jest pusty" -#: includes/admin/settings-tools.php:331 +#: includes/admin/tools/class-acf-admin-tool-import.php:247 #, php-format msgid "Imported 1 field group" msgid_plural "Imported %s field groups" @@ -464,123 +547,113 @@ msgstr[0] "Zaimportowano 1 grupę pól" msgstr[1] "Zaimportowano %s grupy pól" msgstr[2] "Zaimportowano %s grup pól" -#: includes/admin/views/field-group-field-conditional-logic.php:28 +#: includes/admin/views/field-group-field-conditional-logic.php:25 msgid "Conditional Logic" msgstr "Wyświetlaj pola warunkowo" -#: includes/admin/views/field-group-field-conditional-logic.php:54 +#: includes/admin/views/field-group-field-conditional-logic.php:51 msgid "Show this field if" msgstr "Pokaż to pole jeśli" -#: includes/admin/views/field-group-field-conditional-logic.php:103 -#: includes/locations.php:243 -msgid "is equal to" -msgstr "jest równe" - -#: includes/admin/views/field-group-field-conditional-logic.php:104 -#: includes/locations.php:244 -msgid "is not equal to" -msgstr "jest inne niż" - -#: includes/admin/views/field-group-field-conditional-logic.php:141 +#: includes/admin/views/field-group-field-conditional-logic.php:138 #: includes/admin/views/html-location-rule.php:80 msgid "and" msgstr "oraz" -#: includes/admin/views/field-group-field-conditional-logic.php:156 +#: includes/admin/views/field-group-field-conditional-logic.php:153 #: includes/admin/views/field-group-locations.php:31 msgid "Add rule group" msgstr "Dodaj grupę warunków" -#: includes/admin/views/field-group-field.php:41 -#: pro/fields/class-acf-field-flexible-content.php:420 -#: pro/fields/class-acf-field-repeater.php:358 +#: includes/admin/views/field-group-field.php:38 +#: pro/fields/class-acf-field-flexible-content.php:424 +#: pro/fields/class-acf-field-repeater.php:294 msgid "Drag to reorder" msgstr "Przeciągnij aby zmienić kolejność" +#: includes/admin/views/field-group-field.php:42 #: includes/admin/views/field-group-field.php:45 -#: includes/admin/views/field-group-field.php:48 msgid "Edit field" msgstr "Edytuj pole" -#: includes/admin/views/field-group-field.php:48 -#: includes/fields/class-acf-field-image.php:140 -#: includes/fields/class-acf-field-link.php:152 +#: includes/admin/views/field-group-field.php:45 +#: includes/fields/class-acf-field-file.php:152 +#: includes/fields/class-acf-field-image.php:139 +#: includes/fields/class-acf-field-link.php:139 #: pro/fields/class-acf-field-gallery.php:357 msgid "Edit" msgstr "Edytuj" -#: includes/admin/views/field-group-field.php:49 +#: includes/admin/views/field-group-field.php:46 msgid "Duplicate field" msgstr "Duplikuj to pole" -#: includes/admin/views/field-group-field.php:50 +#: includes/admin/views/field-group-field.php:47 msgid "Move field to another group" msgstr "Przenieś pole do innej grupy" -#: includes/admin/views/field-group-field.php:50 +#: includes/admin/views/field-group-field.php:47 msgid "Move" msgstr "Przenieś" -#: includes/admin/views/field-group-field.php:51 +#: includes/admin/views/field-group-field.php:48 msgid "Delete field" msgstr "Usuń pole" -#: includes/admin/views/field-group-field.php:51 -#: pro/fields/class-acf-field-flexible-content.php:572 +#: includes/admin/views/field-group-field.php:48 +#: pro/fields/class-acf-field-flexible-content.php:570 msgid "Delete" msgstr "Usuń" -#: includes/admin/views/field-group-field.php:67 +#: includes/admin/views/field-group-field.php:65 msgid "Field Label" msgstr "Etykieta pola" -#: includes/admin/views/field-group-field.php:68 +#: includes/admin/views/field-group-field.php:66 msgid "This is the name which will appear on the EDIT page" msgstr "Ta nazwa będzie widoczna na stronie edycji" -#: includes/admin/views/field-group-field.php:78 +#: includes/admin/views/field-group-field.php:75 msgid "Field Name" msgstr "Nazwa pola" -#: includes/admin/views/field-group-field.php:79 +#: includes/admin/views/field-group-field.php:76 msgid "Single word, no spaces. Underscores and dashes allowed" msgstr "Pojedyncze słowo, bez spacji. Dozwolone są myślniki i podkreślniki" -#: includes/admin/views/field-group-field.php:89 +#: includes/admin/views/field-group-field.php:85 msgid "Field Type" msgstr "Typ pola" -#: includes/admin/views/field-group-field.php:101 -#: includes/fields/class-acf-field-tab.php:102 +#: includes/admin/views/field-group-field.php:96 msgid "Instructions" msgstr "Instrukcje" -#: includes/admin/views/field-group-field.php:102 +#: includes/admin/views/field-group-field.php:97 msgid "Instructions for authors. Shown when submitting data" msgstr "Instrukcje dla autorów. Będą widoczne w trakcie wpisywania danych" -#: includes/admin/views/field-group-field.php:111 +#: includes/admin/views/field-group-field.php:106 msgid "Required?" msgstr "Wymagane?" -#: includes/admin/views/field-group-field.php:134 +#: includes/admin/views/field-group-field.php:129 msgid "Wrapper Attributes" msgstr "Atrybuty kontenera" -#: includes/admin/views/field-group-field.php:140 +#: includes/admin/views/field-group-field.php:135 msgid "width" msgstr "szerokość" -#: includes/admin/views/field-group-field.php:155 +#: includes/admin/views/field-group-field.php:150 msgid "class" msgstr "class" -#: includes/admin/views/field-group-field.php:168 +#: includes/admin/views/field-group-field.php:163 msgid "id" msgstr "id" -#: includes/admin/views/field-group-field.php:180 +#: includes/admin/views/field-group-field.php:175 msgid "Close Field" msgstr "Zamknij to pole" @@ -589,23 +662,24 @@ msgid "Order" msgstr "Kolejność" #: includes/admin/views/field-group-fields.php:5 -#: includes/fields/class-acf-field-checkbox.php:317 -#: includes/fields/class-acf-field-radio.php:321 -#: includes/fields/class-acf-field-select.php:530 -#: pro/fields/class-acf-field-flexible-content.php:599 +#: includes/fields/class-acf-field-button-group.php:198 +#: includes/fields/class-acf-field-checkbox.php:420 +#: includes/fields/class-acf-field-radio.php:311 +#: includes/fields/class-acf-field-select.php:439 +#: pro/fields/class-acf-field-flexible-content.php:596 msgid "Label" msgstr "Etykieta" #: includes/admin/views/field-group-fields.php:6 -#: includes/fields/class-acf-field-taxonomy.php:970 -#: pro/fields/class-acf-field-flexible-content.php:612 +#: includes/fields/class-acf-field-taxonomy.php:939 +#: pro/fields/class-acf-field-flexible-content.php:610 msgid "Name" msgstr "Nazwa" #: includes/admin/views/field-group-fields.php:7 #, fuzzy msgid "Key" -msgstr "Klucz pola" +msgstr "Pokaż klucz pola:" #: includes/admin/views/field-group-fields.php:8 msgid "Type" @@ -668,12 +742,12 @@ msgid "Label placement" msgstr "Umieszczenie etykiet" #: includes/admin/views/field-group-options.php:62 -#: includes/fields/class-acf-field-tab.php:116 +#: includes/fields/class-acf-field-tab.php:106 msgid "Top aligned" msgstr "Wyrównanie do góry" #: includes/admin/views/field-group-options.php:63 -#: includes/fields/class-acf-field-tab.php:117 +#: includes/fields/class-acf-field-tab.php:107 msgid "Left aligned" msgstr "Wyrównanie do lewej" @@ -702,14 +776,71 @@ msgid "Shown in field group list" msgstr "Wyświetlany na liście grupy pól" #: includes/admin/views/field-group-options.php:107 +msgid "Permalink" +msgstr "Odnośnik bezpośredni" + +#: includes/admin/views/field-group-options.php:108 +msgid "Content Editor" +msgstr "Edytor treści" + +#: includes/admin/views/field-group-options.php:109 +msgid "Excerpt" +msgstr "Wypis" + +#: includes/admin/views/field-group-options.php:111 +msgid "Discussion" +msgstr "Dyskusja" + +#: includes/admin/views/field-group-options.php:112 +msgid "Comments" +msgstr "Komentarze" + +#: includes/admin/views/field-group-options.php:113 +msgid "Revisions" +msgstr "Rewizje" + +#: includes/admin/views/field-group-options.php:114 +msgid "Slug" +msgstr "Slug" + +#: includes/admin/views/field-group-options.php:115 +msgid "Author" +msgstr "Autor" + +#: includes/admin/views/field-group-options.php:116 +msgid "Format" +msgstr "Format" + +#: includes/admin/views/field-group-options.php:117 +msgid "Page Attributes" +msgstr "Atrybuty strony" + +#: includes/admin/views/field-group-options.php:118 +#: includes/fields/class-acf-field-relationship.php:688 +msgid "Featured Image" +msgstr "Obrazek wyróżniający" + +#: includes/admin/views/field-group-options.php:119 +msgid "Categories" +msgstr "Kategorie" + +#: includes/admin/views/field-group-options.php:120 +msgid "Tags" +msgstr "Tagi" + +#: includes/admin/views/field-group-options.php:121 +msgid "Send Trackbacks" +msgstr "Wyślij trackbacki" + +#: includes/admin/views/field-group-options.php:128 msgid "Hide on screen" msgstr "Ukryj na stronie edycji" -#: includes/admin/views/field-group-options.php:108 +#: includes/admin/views/field-group-options.php:129 msgid "Select items to hide them from the edit screen." msgstr "Wybierz elementy, które chcesz ukryć na stronie edycji." -#: includes/admin/views/field-group-options.php:108 +#: includes/admin/views/field-group-options.php:129 msgid "" "If multiple field groups appear on an edit screen, the first field group's " "options will be used (the one with the lowest order number)" @@ -718,63 +849,6 @@ msgstr "" "ustawienia pierwszej z nich. (pierwsza grupa pól to ta, która ma najniższy " "numer w kolejności)" -#: includes/admin/views/field-group-options.php:115 -msgid "Permalink" -msgstr "Odnośnik bezpośredni" - -#: includes/admin/views/field-group-options.php:116 -msgid "Content Editor" -msgstr "Edytor treści" - -#: includes/admin/views/field-group-options.php:117 -msgid "Excerpt" -msgstr "Wypis" - -#: includes/admin/views/field-group-options.php:119 -msgid "Discussion" -msgstr "Dyskusja" - -#: includes/admin/views/field-group-options.php:120 -msgid "Comments" -msgstr "Komentarze" - -#: includes/admin/views/field-group-options.php:121 -msgid "Revisions" -msgstr "Rewizje" - -#: includes/admin/views/field-group-options.php:122 -msgid "Slug" -msgstr "Slug" - -#: includes/admin/views/field-group-options.php:123 -msgid "Author" -msgstr "Autor" - -#: includes/admin/views/field-group-options.php:124 -msgid "Format" -msgstr "Format" - -#: includes/admin/views/field-group-options.php:125 -msgid "Page Attributes" -msgstr "Atrybuty strony" - -#: includes/admin/views/field-group-options.php:126 -#: includes/fields/class-acf-field-relationship.php:751 -msgid "Featured Image" -msgstr "Obrazek wyróżniający" - -#: includes/admin/views/field-group-options.php:127 -msgid "Categories" -msgstr "Kategorie" - -#: includes/admin/views/field-group-options.php:128 -msgid "Tags" -msgstr "Tagi" - -#: includes/admin/views/field-group-options.php:129 -msgid "Send Trackbacks" -msgstr "Wyślij trackbacki" - #: includes/admin/views/html-location-group.php:3 msgid "Show this field group if" msgstr "Pokaż tą grupę pól jeśli" @@ -838,22 +912,22 @@ msgid "Upgrading data to version %s" msgstr "Aktualizowanie danych do wersji %s" #: includes/admin/views/install-notice.php:8 -#: pro/fields/class-acf-field-repeater.php:36 +#: pro/fields/class-acf-field-repeater.php:25 msgid "Repeater" msgstr "Pole powtarzalne" #: includes/admin/views/install-notice.php:9 -#: pro/fields/class-acf-field-flexible-content.php:36 +#: pro/fields/class-acf-field-flexible-content.php:25 msgid "Flexible Content" msgstr "Elastyczne pole" #: includes/admin/views/install-notice.php:10 -#: pro/fields/class-acf-field-gallery.php:36 +#: pro/fields/class-acf-field-gallery.php:25 msgid "Gallery" msgstr "Galeria" #: includes/admin/views/install-notice.php:11 -#: pro/locations/class-acf-location-options-page.php:13 +#: pro/locations/class-acf-location-options-page.php:26 msgid "Options Page" msgstr "Strona opcji" @@ -1147,7 +1221,7 @@ msgstr "" "Nowa funkcjonalność pozwala na przenoszenie pól pomiędzy grupami i rodzicami" #: includes/admin/views/settings-info.php:144 -#: includes/fields/class-acf-field-page_link.php:36 +#: includes/fields/class-acf-field-page_link.php:25 msgid "Page Link" msgstr "Link do strony" @@ -1172,1076 +1246,1171 @@ msgstr "" msgid "We think you'll love the changes in %s." msgstr "Uważamy, że pokochasz zmiany w wersji %s." -#: includes/admin/views/settings-tools-export.php:23 -msgid "Export Field Groups to PHP" -msgstr "Eksportuj grupy pól do PHP" - -#: includes/admin/views/settings-tools-export.php:27 -msgid "" -"The following code can be used to register a local version of the selected " -"field group(s). A local field group can provide many benefits such as faster " -"load times, version control & dynamic fields/settings. Simply copy and paste " -"the following code to your theme's functions.php file or include it within " -"an external file." -msgstr "" -"Poniższy kod może być użyty do rejestracji lokalnej wersji wybranej grupy " -"lub grup pól. Lokalna grupa pól może dostarczyć wiele korzyści takich jak " -"szybszy czas ładowania, możliwość wersjonowania i dynamiczne pola / " -"ustawienia. Wystarczy skopiować i wkleić poniższy kod do pliku functions.php " -"Twojego motywu lub dołączyć go do zewnętrznego pliku." - -#: includes/admin/views/settings-tools.php:5 -msgid "Select Field Groups" -msgstr "Wybierz grupy pól" - -#: includes/admin/views/settings-tools.php:35 -msgid "Export Field Groups" -msgstr "Eksportuj grupy pól" - -#: includes/admin/views/settings-tools.php:38 -msgid "" -"Select the field groups you would like to export and then select your export " -"method. Use the download button to export to a .json file which you can then " -"import to another ACF installation. Use the generate button to export to PHP " -"code which you can place in your theme." -msgstr "" -"Wybierz grupy pól, które chcesz wyeksportować, a następnie wybierz metodę " -"eksportu. Użyj przycisku pobierania aby wyeksportować do pliku .json, który " -"można następnie zaimportować do innej instalacji ACF. Użyj przycisku generuj " -"do wyeksportowania ustawień do kodu PHP, który można umieścić w motywie." - -#: includes/admin/views/settings-tools.php:50 -msgid "Download export file" -msgstr "Pobierz plik eksportu" - -#: includes/admin/views/settings-tools.php:51 -msgid "Generate export code" -msgstr "Generuj kod eksportu" - -#: includes/admin/views/settings-tools.php:64 -msgid "Import Field Groups" -msgstr "Importuj grupy pól" - -#: includes/admin/views/settings-tools.php:67 -msgid "" -"Select the Advanced Custom Fields JSON file you would like to import. When " -"you click the import button below, ACF will import the field groups." -msgstr "" -"Wybierz plik JSON Advanced Custom Fields, który chcesz zaimportować. Gdy " -"klikniesz przycisk importu poniżej, ACF zaimportuje grupy pól." - -#: includes/admin/views/settings-tools.php:77 -#: includes/fields/class-acf-field-file.php:46 -msgid "Select File" -msgstr "Wybierz plik" - -#: includes/admin/views/settings-tools.php:86 -msgid "Import" -msgstr "Import" - -#: includes/api/api-helpers.php:856 +#: includes/api/api-helpers.php:1039 msgid "Thumbnail" msgstr "Miniatura" -#: includes/api/api-helpers.php:857 +#: includes/api/api-helpers.php:1040 msgid "Medium" msgstr "Średni" -#: includes/api/api-helpers.php:858 +#: includes/api/api-helpers.php:1041 msgid "Large" msgstr "Duży" -#: includes/api/api-helpers.php:907 +#: includes/api/api-helpers.php:1090 msgid "Full Size" msgstr "Pełny rozmiar" -#: includes/api/api-helpers.php:1248 includes/api/api-helpers.php:1837 -#: pro/fields/class-acf-field-clone.php:1042 +#: includes/api/api-helpers.php:1431 includes/api/api-helpers.php:2004 +#: pro/fields/class-acf-field-clone.php:996 msgid "(no title)" msgstr "(brak tytułu)" -#: includes/api/api-helpers.php:1874 -#: includes/fields/class-acf-field-page_link.php:284 -#: includes/fields/class-acf-field-post_object.php:283 -#: includes/fields/class-acf-field-taxonomy.php:992 -msgid "Parent" -msgstr "Rodzic" - -#: includes/api/api-helpers.php:3891 +#: includes/api/api-helpers.php:4086 #, php-format msgid "Image width must be at least %dpx." msgstr "Szerokość obrazu musi mieć co najmniej %d px." -#: includes/api/api-helpers.php:3896 +#: includes/api/api-helpers.php:4091 #, php-format msgid "Image width must not exceed %dpx." msgstr "Szerokość obrazu nie może przekraczać %d px." -#: includes/api/api-helpers.php:3912 +#: includes/api/api-helpers.php:4107 #, php-format msgid "Image height must be at least %dpx." msgstr "Wysokość obrazu musi mieć co najmniej %d px." -#: includes/api/api-helpers.php:3917 +#: includes/api/api-helpers.php:4112 #, php-format msgid "Image height must not exceed %dpx." msgstr "Wysokość obrazu nie może przekraczać %d px." -#: includes/api/api-helpers.php:3935 +#: includes/api/api-helpers.php:4130 #, php-format msgid "File size must be at least %s." msgstr "Rozmiar pliku musi mieć co najmniej %s." -#: includes/api/api-helpers.php:3940 +#: includes/api/api-helpers.php:4135 #, php-format msgid "File size must must not exceed %s." msgstr "Rozmiar pliku nie może przekraczać %s." -#: includes/api/api-helpers.php:3974 +#: includes/api/api-helpers.php:4169 #, php-format msgid "File type must be %s." msgstr "Plik musi być typu %s." -#: includes/fields.php:144 -msgid "Basic" -msgstr "Podstawowe" - -#: includes/fields.php:145 includes/forms/form-front.php:47 -msgid "Content" -msgstr "Edytor treści" - -#: includes/fields.php:146 -msgid "Choice" -msgstr "Wybór" - -#: includes/fields.php:147 -msgid "Relational" -msgstr "Relacja" - -#: includes/fields.php:148 -msgid "jQuery" -msgstr "jQuery" - -#: includes/fields.php:149 includes/fields/class-acf-field-checkbox.php:286 -#: includes/fields/class-acf-field-group.php:485 -#: includes/fields/class-acf-field-radio.php:300 -#: pro/fields/class-acf-field-clone.php:889 -#: pro/fields/class-acf-field-flexible-content.php:569 -#: pro/fields/class-acf-field-flexible-content.php:618 -#: pro/fields/class-acf-field-repeater.php:514 -msgid "Layout" -msgstr "Szablon" - -#: includes/fields.php:305 -msgid "Field type does not exist" -msgstr "Typ pola nie istnieje" - -#: includes/fields.php:305 -msgid "Unknown" +#: includes/assets.php:172 +msgid "The changes you made will be lost if you navigate away from this page" msgstr "" +"Wprowadzone przez Ciebie zmiany przepadną jeśli przejdziesz do innej strony" -#: includes/fields/class-acf-field-checkbox.php:36 -#: includes/fields/class-acf-field-taxonomy.php:786 -msgid "Checkbox" -msgstr "Wybór (checkbox)" - -#: includes/fields/class-acf-field-checkbox.php:150 -msgid "Toggle All" -msgstr "Przełącz wszystko" - -#: includes/fields/class-acf-field-checkbox.php:207 -#, fuzzy -msgid "Add new choice" -msgstr "Dodaj nowe pole" - -#: includes/fields/class-acf-field-checkbox.php:246 -#: includes/fields/class-acf-field-radio.php:250 -#: includes/fields/class-acf-field-select.php:466 -msgid "Choices" -msgstr "Wybory" - -#: includes/fields/class-acf-field-checkbox.php:247 -#: includes/fields/class-acf-field-radio.php:251 -#: includes/fields/class-acf-field-select.php:467 -msgid "Enter each choice on a new line." -msgstr "Wpisz każdy z wyborów w osobnej linii." - -#: includes/fields/class-acf-field-checkbox.php:247 -#: includes/fields/class-acf-field-radio.php:251 -#: includes/fields/class-acf-field-select.php:467 -msgid "For more control, you may specify both a value and label like this:" -msgstr "" -"Aby uzyskać większą kontrolę, można określić zarówno wartość i etykietę tak:" - -#: includes/fields/class-acf-field-checkbox.php:247 -#: includes/fields/class-acf-field-radio.php:251 -#: includes/fields/class-acf-field-select.php:467 -msgid "red : Red" -msgstr "czerwony : Czerwony" - -#: includes/fields/class-acf-field-checkbox.php:255 -#, fuzzy -msgid "Allow Custom" -msgstr "Dodaj wybór \"inne\" aby pozwolić na własne wartości" - -#: includes/fields/class-acf-field-checkbox.php:260 -msgid "Allow 'custom' values to be added" -msgstr "" - -#: includes/fields/class-acf-field-checkbox.php:266 -#, fuzzy -msgid "Save Custom" -msgstr "Przenieś pole" - -#: includes/fields/class-acf-field-checkbox.php:271 -#, fuzzy -msgid "Save 'custom' values to the field's choices" -msgstr "Dopisz zapisaną wartość pola 'other' do wyborów tego pola" - -#: includes/fields/class-acf-field-checkbox.php:277 -#: includes/fields/class-acf-field-color_picker.php:146 -#: includes/fields/class-acf-field-email.php:133 -#: includes/fields/class-acf-field-number.php:145 -#: includes/fields/class-acf-field-radio.php:291 -#: includes/fields/class-acf-field-select.php:475 -#: includes/fields/class-acf-field-text.php:142 -#: includes/fields/class-acf-field-textarea.php:139 -#: includes/fields/class-acf-field-true_false.php:150 -#: includes/fields/class-acf-field-url.php:114 -#: includes/fields/class-acf-field-wysiwyg.php:436 -msgid "Default Value" -msgstr "Domyślna wartość" - -#: includes/fields/class-acf-field-checkbox.php:278 -#: includes/fields/class-acf-field-select.php:476 -msgid "Enter each default value on a new line" -msgstr "Wpisz każdą domyślną wartość w nowej linii" - -#: includes/fields/class-acf-field-checkbox.php:292 -#: includes/fields/class-acf-field-radio.php:306 -msgid "Vertical" -msgstr "Pionowy" - -#: includes/fields/class-acf-field-checkbox.php:293 -#: includes/fields/class-acf-field-radio.php:307 -msgid "Horizontal" -msgstr "Poziomy" - -#: includes/fields/class-acf-field-checkbox.php:300 -msgid "Toggle" -msgstr "Grupowe zaznaczanie" - -#: includes/fields/class-acf-field-checkbox.php:301 -msgid "Prepend an extra checkbox to toggle all choices" -msgstr "" -"Dołącz dodatkowe pole wyboru, aby grupowo włączać/wyłączać wszystkie pola " -"wyboru" - -#: includes/fields/class-acf-field-checkbox.php:310 -#: includes/fields/class-acf-field-file.php:219 -#: includes/fields/class-acf-field-image.php:206 -#: includes/fields/class-acf-field-link.php:180 -#: includes/fields/class-acf-field-radio.php:314 -#: includes/fields/class-acf-field-taxonomy.php:839 -msgid "Return Value" -msgstr "Zwracana wartość" - -#: includes/fields/class-acf-field-checkbox.php:311 -#: includes/fields/class-acf-field-file.php:220 -#: includes/fields/class-acf-field-image.php:207 -#: includes/fields/class-acf-field-link.php:181 -#: includes/fields/class-acf-field-radio.php:315 -msgid "Specify the returned value on front end" -msgstr "Określ zwracaną wartość na stronie (front-end)" - -#: includes/fields/class-acf-field-checkbox.php:316 -#: includes/fields/class-acf-field-radio.php:320 -#: includes/fields/class-acf-field-select.php:529 -msgid "Value" -msgstr "Wartość" - -#: includes/fields/class-acf-field-checkbox.php:318 -#: includes/fields/class-acf-field-radio.php:322 -#: includes/fields/class-acf-field-select.php:531 -msgid "Both (Array)" -msgstr "Oba (Array)" - -#: includes/fields/class-acf-field-color_picker.php:36 -msgid "Color Picker" -msgstr "Wybór koloru" - -#: includes/fields/class-acf-field-color_picker.php:83 -msgid "Clear" -msgstr "Wyczyść" - -#: includes/fields/class-acf-field-color_picker.php:84 -msgid "Default" -msgstr "Domyślna wartość" - -#: includes/fields/class-acf-field-color_picker.php:85 -msgid "Select Color" -msgstr "Wybierz kolor" - -#: includes/fields/class-acf-field-color_picker.php:86 -msgid "Current Color" -msgstr "Aktualny Kolor" - -#: includes/fields/class-acf-field-date_picker.php:36 -msgid "Date Picker" -msgstr "Wybór daty" - -#: includes/fields/class-acf-field-date_picker.php:44 -msgctxt "Date Picker JS closeText" -msgid "Done" -msgstr "Gotowe" - -#: includes/fields/class-acf-field-date_picker.php:45 -msgctxt "Date Picker JS currentText" -msgid "Today" -msgstr "Dzisiaj" - -#: includes/fields/class-acf-field-date_picker.php:46 -msgctxt "Date Picker JS nextText" -msgid "Next" -msgstr "Następne" - -#: includes/fields/class-acf-field-date_picker.php:47 -msgctxt "Date Picker JS prevText" -msgid "Prev" -msgstr "Poprzednie" - -#: includes/fields/class-acf-field-date_picker.php:48 -msgctxt "Date Picker JS weekHeader" -msgid "Wk" -msgstr "Tydz." - -#: includes/fields/class-acf-field-date_picker.php:223 -#: includes/fields/class-acf-field-date_time_picker.php:197 -#: includes/fields/class-acf-field-time_picker.php:127 -msgid "Display Format" -msgstr "Format wyświetlania" - -#: includes/fields/class-acf-field-date_picker.php:224 -#: includes/fields/class-acf-field-date_time_picker.php:198 -#: includes/fields/class-acf-field-time_picker.php:128 -msgid "The format displayed when editing a post" -msgstr "Wyświetlany format przy edycji wpisu" - -#: includes/fields/class-acf-field-date_picker.php:232 -#: includes/fields/class-acf-field-date_picker.php:263 -#: includes/fields/class-acf-field-date_time_picker.php:207 -#: includes/fields/class-acf-field-date_time_picker.php:224 -#: includes/fields/class-acf-field-time_picker.php:135 -#: includes/fields/class-acf-field-time_picker.php:150 -#, fuzzy -msgid "Custom:" -msgstr "Zaawansowane własne pola" - -#: includes/fields/class-acf-field-date_picker.php:242 -#, fuzzy -msgid "Save Format" -msgstr "Format zapisu" - -#: includes/fields/class-acf-field-date_picker.php:243 -#, fuzzy -msgid "The format used when saving a value" -msgstr "Wyświetlany format przy edycji wpisu" - -#: includes/fields/class-acf-field-date_picker.php:253 -#: includes/fields/class-acf-field-date_time_picker.php:214 -#: includes/fields/class-acf-field-post_object.php:447 -#: includes/fields/class-acf-field-relationship.php:778 -#: includes/fields/class-acf-field-select.php:524 -#: includes/fields/class-acf-field-time_picker.php:142 -msgid "Return Format" -msgstr "Zwracana wartość" - -#: includes/fields/class-acf-field-date_picker.php:254 -#: includes/fields/class-acf-field-date_time_picker.php:215 -#: includes/fields/class-acf-field-time_picker.php:143 -msgid "The format returned via template functions" -msgstr "Wartość zwracana przez funkcje w szablonie" - -#: includes/fields/class-acf-field-date_picker.php:272 -#: includes/fields/class-acf-field-date_time_picker.php:231 -msgid "Week Starts On" -msgstr "Tydzień zaczyna się od" - -#: includes/fields/class-acf-field-date_time_picker.php:36 -msgid "Date Time Picker" -msgstr "Wybieranie daty i godziny" - -#: includes/fields/class-acf-field-date_time_picker.php:44 -msgctxt "Date Time Picker JS timeOnlyTitle" -msgid "Choose Time" -msgstr "Wybierz czas" - -#: includes/fields/class-acf-field-date_time_picker.php:45 -msgctxt "Date Time Picker JS timeText" -msgid "Time" -msgstr "Czas" - -#: includes/fields/class-acf-field-date_time_picker.php:46 -msgctxt "Date Time Picker JS hourText" -msgid "Hour" -msgstr "Godzina" - -#: includes/fields/class-acf-field-date_time_picker.php:47 -msgctxt "Date Time Picker JS minuteText" -msgid "Minute" -msgstr "Minuta" - -#: includes/fields/class-acf-field-date_time_picker.php:48 -msgctxt "Date Time Picker JS secondText" -msgid "Second" -msgstr "Sekund" - -#: includes/fields/class-acf-field-date_time_picker.php:49 -msgctxt "Date Time Picker JS millisecText" -msgid "Millisecond" -msgstr "Milisekund" - -#: includes/fields/class-acf-field-date_time_picker.php:50 -msgctxt "Date Time Picker JS microsecText" -msgid "Microsecond" -msgstr "Mikrosekund" - -#: includes/fields/class-acf-field-date_time_picker.php:51 -msgctxt "Date Time Picker JS timezoneText" -msgid "Time Zone" -msgstr "Strefa czasu" - -#: includes/fields/class-acf-field-date_time_picker.php:52 -msgctxt "Date Time Picker JS currentText" -msgid "Now" -msgstr "Teraz" - -#: includes/fields/class-acf-field-date_time_picker.php:53 -msgctxt "Date Time Picker JS closeText" -msgid "Done" -msgstr "Gotowe" - -#: includes/fields/class-acf-field-date_time_picker.php:54 -msgctxt "Date Time Picker JS selectText" +#: includes/assets.php:175 includes/fields/class-acf-field-select.php:259 +msgctxt "verb" msgid "Select" msgstr "Wybierz" -#: includes/fields/class-acf-field-date_time_picker.php:56 -msgctxt "Date Time Picker JS amText" -msgid "AM" -msgstr "AM" +#: includes/assets.php:176 +msgctxt "verb" +msgid "Edit" +msgstr "Edytuj" -#: includes/fields/class-acf-field-date_time_picker.php:57 -msgctxt "Date Time Picker JS amTextShort" -msgid "A" -msgstr "A" +#: includes/assets.php:177 +msgctxt "verb" +msgid "Update" +msgstr "Aktualizuj" -#: includes/fields/class-acf-field-date_time_picker.php:60 -msgctxt "Date Time Picker JS pmText" -msgid "PM" -msgstr "PM" - -#: includes/fields/class-acf-field-date_time_picker.php:61 -msgctxt "Date Time Picker JS pmTextShort" -msgid "P" -msgstr "P" - -#: includes/fields/class-acf-field-email.php:36 -msgid "Email" -msgstr "Email" - -#: includes/fields/class-acf-field-email.php:134 -#: includes/fields/class-acf-field-number.php:146 -#: includes/fields/class-acf-field-radio.php:292 -#: includes/fields/class-acf-field-text.php:143 -#: includes/fields/class-acf-field-textarea.php:140 -#: includes/fields/class-acf-field-url.php:115 -#: includes/fields/class-acf-field-wysiwyg.php:437 -msgid "Appears when creating a new post" -msgstr "Wyświetlane podczas tworzenia nowego wpisu" - -#: includes/fields/class-acf-field-email.php:142 -#: includes/fields/class-acf-field-number.php:154 -#: includes/fields/class-acf-field-password.php:134 -#: includes/fields/class-acf-field-text.php:151 -#: includes/fields/class-acf-field-textarea.php:148 -#: includes/fields/class-acf-field-url.php:123 -msgid "Placeholder Text" -msgstr "Placeholder (tekst zastępczy)" - -#: includes/fields/class-acf-field-email.php:143 -#: includes/fields/class-acf-field-number.php:155 -#: includes/fields/class-acf-field-password.php:135 -#: includes/fields/class-acf-field-text.php:152 -#: includes/fields/class-acf-field-textarea.php:149 -#: includes/fields/class-acf-field-url.php:124 -msgid "Appears within the input" -msgstr "Pojawia się w inpucie" - -#: includes/fields/class-acf-field-email.php:151 -#: includes/fields/class-acf-field-number.php:163 -#: includes/fields/class-acf-field-password.php:143 -#: includes/fields/class-acf-field-text.php:160 -msgid "Prepend" -msgstr "Przed polem (prefiks)" - -#: includes/fields/class-acf-field-email.php:152 -#: includes/fields/class-acf-field-number.php:164 -#: includes/fields/class-acf-field-password.php:144 -#: includes/fields/class-acf-field-text.php:161 -msgid "Appears before the input" -msgstr "Pojawia się przed inputem" - -#: includes/fields/class-acf-field-email.php:160 -#: includes/fields/class-acf-field-number.php:172 -#: includes/fields/class-acf-field-password.php:152 -#: includes/fields/class-acf-field-text.php:169 -msgid "Append" -msgstr "Za polem (sufix)" - -#: includes/fields/class-acf-field-email.php:161 -#: includes/fields/class-acf-field-number.php:173 -#: includes/fields/class-acf-field-password.php:153 -#: includes/fields/class-acf-field-text.php:170 -msgid "Appears after the input" -msgstr "Pojawia się za inputem" - -#: includes/fields/class-acf-field-file.php:36 -msgid "File" -msgstr "Plik" - -#: includes/fields/class-acf-field-file.php:47 -msgid "Edit File" -msgstr "Edytuj plik" - -#: includes/fields/class-acf-field-file.php:48 -msgid "Update File" -msgstr "Aktualizuj plik" - -#: includes/fields/class-acf-field-file.php:49 -#: includes/fields/class-acf-field-image.php:54 includes/media.php:57 -#: pro/fields/class-acf-field-gallery.php:55 +#: includes/assets.php:178 msgid "Uploaded to this post" msgstr "Wgrane do tego wpisu" -#: includes/fields/class-acf-field-file.php:145 -msgid "File name" -msgstr "Nazwa pliku" +#: includes/assets.php:179 +msgid "Expand Details" +msgstr "Rozwiń szczegóły" -#: includes/fields/class-acf-field-file.php:149 -#: includes/fields/class-acf-field-file.php:252 -#: includes/fields/class-acf-field-file.php:263 -#: includes/fields/class-acf-field-image.php:266 -#: includes/fields/class-acf-field-image.php:295 -#: pro/fields/class-acf-field-gallery.php:705 -#: pro/fields/class-acf-field-gallery.php:734 -msgid "File size" -msgstr "Wielkość pliku" +#: includes/assets.php:180 +msgid "Collapse Details" +msgstr "Zwiń szczegóły" -#: includes/fields/class-acf-field-file.php:174 -msgid "Add File" -msgstr "Dodaj plik" +#: includes/assets.php:181 +msgid "Restricted" +msgstr "Ograniczone" -#: includes/fields/class-acf-field-file.php:225 -msgid "File Array" -msgstr "Tablica pliku" - -#: includes/fields/class-acf-field-file.php:226 -msgid "File URL" -msgstr "Adres URL pliku" - -#: includes/fields/class-acf-field-file.php:227 -msgid "File ID" -msgstr "ID pliku" - -#: includes/fields/class-acf-field-file.php:234 -#: includes/fields/class-acf-field-image.php:231 -#: pro/fields/class-acf-field-gallery.php:670 -msgid "Library" -msgstr "Biblioteka" - -#: includes/fields/class-acf-field-file.php:235 -#: includes/fields/class-acf-field-image.php:232 -#: pro/fields/class-acf-field-gallery.php:671 -msgid "Limit the media library choice" -msgstr "Ograniczenie wyborów z bibliteki" - -#: includes/fields/class-acf-field-file.php:240 -#: includes/fields/class-acf-field-image.php:237 -#: includes/locations/class-acf-location-attachment.php:105 -#: includes/locations/class-acf-location-comment.php:83 -#: includes/locations/class-acf-location-nav-menu.php:106 -#: includes/locations/class-acf-location-taxonomy.php:83 -#: includes/locations/class-acf-location-user-form.php:91 -#: includes/locations/class-acf-location-user-role.php:108 -#: includes/locations/class-acf-location-widget.php:87 -#: pro/fields/class-acf-field-gallery.php:676 -msgid "All" -msgstr "Wszystkie" - -#: includes/fields/class-acf-field-file.php:241 -#: includes/fields/class-acf-field-image.php:238 -#: pro/fields/class-acf-field-gallery.php:677 -msgid "Uploaded to post" -msgstr "Wgrane do wpisu" - -#: includes/fields/class-acf-field-file.php:248 -#: includes/fields/class-acf-field-image.php:245 -#: pro/fields/class-acf-field-gallery.php:684 -msgid "Minimum" -msgstr "Minimum" - -#: includes/fields/class-acf-field-file.php:249 -#: includes/fields/class-acf-field-file.php:260 -msgid "Restrict which files can be uploaded" -msgstr "Określ jakie pliki mogą być przesyłane" - -#: includes/fields/class-acf-field-file.php:259 -#: includes/fields/class-acf-field-image.php:274 -#: pro/fields/class-acf-field-gallery.php:713 -msgid "Maximum" -msgstr "Maksimum" - -#: includes/fields/class-acf-field-file.php:270 -#: includes/fields/class-acf-field-image.php:303 -#: pro/fields/class-acf-field-gallery.php:742 -msgid "Allowed file types" -msgstr "Dozwolone typy plików" - -#: includes/fields/class-acf-field-file.php:271 -#: includes/fields/class-acf-field-image.php:304 -#: pro/fields/class-acf-field-gallery.php:743 -msgid "Comma separated list. Leave blank for all types" -msgstr "Lista rozdzielana przecinkiem. Pozostaw puste dla wszystkich typów" - -#: includes/fields/class-acf-field-google-map.php:36 -msgid "Google Map" -msgstr "Mapa Google" - -#: includes/fields/class-acf-field-google-map.php:51 -msgid "Locating" -msgstr "Lokalizacja" - -#: includes/fields/class-acf-field-google-map.php:52 -msgid "Sorry, this browser does not support geolocation" -msgstr "Przepraszamy, ten przeglądarka nie obsługuje geolokalizacji" - -#: includes/fields/class-acf-field-google-map.php:133 -msgid "Clear location" -msgstr "Wyczyść lokalizacje" - -#: includes/fields/class-acf-field-google-map.php:134 -msgid "Find current location" -msgstr "Znajdź aktualną lokalizacje" - -#: includes/fields/class-acf-field-google-map.php:137 -msgid "Search for address..." -msgstr "Szukaj adresu..." - -#: includes/fields/class-acf-field-google-map.php:167 -#: includes/fields/class-acf-field-google-map.php:178 -msgid "Center" -msgstr "Wyśrodkuj" - -#: includes/fields/class-acf-field-google-map.php:168 -#: includes/fields/class-acf-field-google-map.php:179 -msgid "Center the initial map" -msgstr "Wyśrodkuj początkową mapę" - -#: includes/fields/class-acf-field-google-map.php:190 -msgid "Zoom" -msgstr "Zbliżenie" - -#: includes/fields/class-acf-field-google-map.php:191 -msgid "Set the initial zoom level" -msgstr "Ustaw początkowe zbliżenie" - -#: includes/fields/class-acf-field-google-map.php:200 -#: includes/fields/class-acf-field-image.php:257 -#: includes/fields/class-acf-field-image.php:286 -#: includes/fields/class-acf-field-oembed.php:297 -#: pro/fields/class-acf-field-gallery.php:696 -#: pro/fields/class-acf-field-gallery.php:725 -msgid "Height" -msgstr "Wysokość" - -#: includes/fields/class-acf-field-google-map.php:201 -msgid "Customise the map height" -msgstr "Dostosuj wysokość mapy" - -#: includes/fields/class-acf-field-group.php:36 -#, fuzzy -msgid "Group" -msgstr "Grupuj (wyświetl wybrane pola w grupie)" - -#: includes/fields/class-acf-field-group.php:469 -#: pro/fields/class-acf-field-repeater.php:453 -msgid "Sub Fields" -msgstr "Pola podrzędne" - -#: includes/fields/class-acf-field-group.php:486 -#: pro/fields/class-acf-field-clone.php:890 -msgid "Specify the style used to render the selected fields" -msgstr "Określ style wykorzystywany to tworzenia wybranych pól" - -#: includes/fields/class-acf-field-group.php:491 -#: pro/fields/class-acf-field-clone.php:895 -#: pro/fields/class-acf-field-flexible-content.php:629 -#: pro/fields/class-acf-field-repeater.php:522 -msgid "Block" -msgstr "Blok" - -#: includes/fields/class-acf-field-group.php:492 -#: pro/fields/class-acf-field-clone.php:896 -#: pro/fields/class-acf-field-flexible-content.php:628 -#: pro/fields/class-acf-field-repeater.php:521 -msgid "Table" -msgstr "Tabela" - -#: includes/fields/class-acf-field-group.php:493 -#: pro/fields/class-acf-field-clone.php:897 -#: pro/fields/class-acf-field-flexible-content.php:630 -#: pro/fields/class-acf-field-repeater.php:523 -msgid "Row" -msgstr "Wiersz" - -#: includes/fields/class-acf-field-image.php:36 -msgid "Image" -msgstr "Obrazek" - -#: includes/fields/class-acf-field-image.php:51 -msgid "Select Image" -msgstr "Wybierz obrazek" - -#: includes/fields/class-acf-field-image.php:52 -#: pro/fields/class-acf-field-gallery.php:53 -msgid "Edit Image" -msgstr "Edytuj obrazek" - -#: includes/fields/class-acf-field-image.php:53 -#: pro/fields/class-acf-field-gallery.php:54 -msgid "Update Image" -msgstr "Aktualizuj obrazek" - -#: includes/fields/class-acf-field-image.php:55 +#: includes/assets.php:182 includes/fields/class-acf-field-image.php:67 msgid "All images" msgstr "Wszystkie obrazki" -#: includes/fields/class-acf-field-image.php:142 -#: includes/fields/class-acf-field-link.php:153 includes/input.php:267 +#: includes/assets.php:185 +msgid "Validation successful" +msgstr "Walidacja zakończona sukcesem" + +#: includes/assets.php:186 includes/validation.php:285 +#: includes/validation.php:296 +msgid "Validation failed" +msgstr "Walidacja nie powiodła się" + +#: includes/assets.php:187 +msgid "1 field requires attention" +msgstr "1 pole wymaga uwagi" + +#: includes/assets.php:188 +#, php-format +msgid "%d fields require attention" +msgstr "%d pól wymaga uwagi" + +#: includes/assets.php:191 +msgid "Are you sure?" +msgstr "Czy na pewno?" + +#: includes/assets.php:192 includes/fields/class-acf-field-true_false.php:79 +#: includes/fields/class-acf-field-true_false.php:159 +#: pro/admin/views/html-settings-updates.php:89 +msgid "Yes" +msgstr "Tak" + +#: includes/assets.php:193 includes/fields/class-acf-field-true_false.php:80 +#: includes/fields/class-acf-field-true_false.php:174 +#: pro/admin/views/html-settings-updates.php:99 +msgid "No" +msgstr "Nie" + +#: includes/assets.php:194 includes/fields/class-acf-field-file.php:154 +#: includes/fields/class-acf-field-image.php:141 +#: includes/fields/class-acf-field-link.php:140 #: pro/fields/class-acf-field-gallery.php:358 #: pro/fields/class-acf-field-gallery.php:546 msgid "Remove" msgstr "Usuń" -#: includes/fields/class-acf-field-image.php:158 +#: includes/assets.php:195 +msgid "Cancel" +msgstr "Anuluj" + +#: includes/assets.php:198 +msgid "Has any value" +msgstr "" + +#: includes/assets.php:199 +msgid "Has no value" +msgstr "" + +#: includes/assets.php:200 +#, fuzzy +msgid "Value is equal to" +msgstr "jest równe" + +#: includes/assets.php:201 +#, fuzzy +msgid "Value is not equal to" +msgstr "jest inne niż" + +#: includes/assets.php:202 +#, fuzzy +msgid "Value matches pattern" +msgstr "Wartość musi być liczbą" + +#: includes/assets.php:203 +msgid "Value contains" +msgstr "" + +#: includes/assets.php:204 +#, fuzzy +msgid "Value is greater than" +msgstr "Wartość musi być równa lub niższa od %d" + +#: includes/assets.php:205 +#, fuzzy +msgid "Value is less than" +msgstr "Wartość musi być liczbą" + +#: includes/assets.php:206 +msgid "Selection is greater than" +msgstr "" + +#: includes/assets.php:207 +#, fuzzy +msgid "Selection is less than" +msgstr "Wybierz plik" + +#: includes/fields.php:308 +msgid "Field type does not exist" +msgstr "Typ pola nie istnieje" + +#: includes/fields.php:308 +msgid "Unknown" +msgstr "" + +#: includes/fields.php:349 +msgid "Basic" +msgstr "Podstawowe" + +#: includes/fields.php:350 includes/forms/form-front.php:47 +msgid "Content" +msgstr "Edytor treści" + +#: includes/fields.php:351 +msgid "Choice" +msgstr "Wybór" + +#: includes/fields.php:352 +msgid "Relational" +msgstr "Relacja" + +#: includes/fields.php:353 +msgid "jQuery" +msgstr "jQuery" + +#: includes/fields.php:354 +#: includes/fields/class-acf-field-button-group.php:177 +#: includes/fields/class-acf-field-checkbox.php:389 +#: includes/fields/class-acf-field-group.php:474 +#: includes/fields/class-acf-field-radio.php:290 +#: pro/fields/class-acf-field-clone.php:843 +#: pro/fields/class-acf-field-flexible-content.php:567 +#: pro/fields/class-acf-field-flexible-content.php:616 +#: pro/fields/class-acf-field-repeater.php:443 +msgid "Layout" +msgstr "Szablon" + +#: includes/fields/class-acf-field-accordion.php:24 +msgid "Accordion" +msgstr "" + +#: includes/fields/class-acf-field-accordion.php:99 +msgid "Open" +msgstr "" + +#: includes/fields/class-acf-field-accordion.php:100 +msgid "Display this accordion as open on page load." +msgstr "" + +#: includes/fields/class-acf-field-accordion.php:109 +msgid "Multi-expand" +msgstr "" + +#: includes/fields/class-acf-field-accordion.php:110 +msgid "Allow this accordion to open without closing others." +msgstr "" + +#: includes/fields/class-acf-field-accordion.php:119 +#: includes/fields/class-acf-field-tab.php:114 +#, fuzzy +msgid "Endpoint" +msgstr "Punkt końcowy" + +#: includes/fields/class-acf-field-accordion.php:120 +msgid "" +"Define an endpoint for the previous accordion to stop. This accordion will " +"not be visible." +msgstr "" + +#: includes/fields/class-acf-field-button-group.php:24 +msgid "Button Group" +msgstr "" + +#: includes/fields/class-acf-field-button-group.php:149 +#: includes/fields/class-acf-field-checkbox.php:344 +#: includes/fields/class-acf-field-radio.php:235 +#: includes/fields/class-acf-field-select.php:370 +msgid "Choices" +msgstr "Wybory" + +#: includes/fields/class-acf-field-button-group.php:150 +#: includes/fields/class-acf-field-checkbox.php:345 +#: includes/fields/class-acf-field-radio.php:236 +#: includes/fields/class-acf-field-select.php:371 +msgid "Enter each choice on a new line." +msgstr "Wpisz każdy z wyborów w osobnej linii." + +#: includes/fields/class-acf-field-button-group.php:150 +#: includes/fields/class-acf-field-checkbox.php:345 +#: includes/fields/class-acf-field-radio.php:236 +#: includes/fields/class-acf-field-select.php:371 +msgid "For more control, you may specify both a value and label like this:" +msgstr "" +"Aby uzyskać większą kontrolę, można określić zarówno wartość i etykietę tak:" + +#: includes/fields/class-acf-field-button-group.php:150 +#: includes/fields/class-acf-field-checkbox.php:345 +#: includes/fields/class-acf-field-radio.php:236 +#: includes/fields/class-acf-field-select.php:371 +msgid "red : Red" +msgstr "czerwony : Czerwony" + +#: includes/fields/class-acf-field-button-group.php:158 +#: includes/fields/class-acf-field-page_link.php:513 +#: includes/fields/class-acf-field-post_object.php:412 +#: includes/fields/class-acf-field-radio.php:244 +#: includes/fields/class-acf-field-select.php:388 +#: includes/fields/class-acf-field-taxonomy.php:784 +#: includes/fields/class-acf-field-user.php:409 +msgid "Allow Null?" +msgstr "Zezwolić na pustą wartość?" + +#: includes/fields/class-acf-field-button-group.php:168 +#: includes/fields/class-acf-field-checkbox.php:380 +#: includes/fields/class-acf-field-color_picker.php:131 +#: includes/fields/class-acf-field-email.php:118 +#: includes/fields/class-acf-field-number.php:127 +#: includes/fields/class-acf-field-radio.php:281 +#: includes/fields/class-acf-field-range.php:146 +#: includes/fields/class-acf-field-select.php:379 +#: includes/fields/class-acf-field-text.php:119 +#: includes/fields/class-acf-field-textarea.php:102 +#: includes/fields/class-acf-field-true_false.php:135 +#: includes/fields/class-acf-field-url.php:100 +#: includes/fields/class-acf-field-wysiwyg.php:397 +msgid "Default Value" +msgstr "Domyślna wartość" + +#: includes/fields/class-acf-field-button-group.php:169 +#: includes/fields/class-acf-field-email.php:119 +#: includes/fields/class-acf-field-number.php:128 +#: includes/fields/class-acf-field-radio.php:282 +#: includes/fields/class-acf-field-range.php:147 +#: includes/fields/class-acf-field-text.php:120 +#: includes/fields/class-acf-field-textarea.php:103 +#: includes/fields/class-acf-field-url.php:101 +#: includes/fields/class-acf-field-wysiwyg.php:398 +msgid "Appears when creating a new post" +msgstr "Wyświetlane podczas tworzenia nowego wpisu" + +#: includes/fields/class-acf-field-button-group.php:183 +#: includes/fields/class-acf-field-checkbox.php:396 +#: includes/fields/class-acf-field-radio.php:297 +msgid "Horizontal" +msgstr "Poziomy" + +#: includes/fields/class-acf-field-button-group.php:184 +#: includes/fields/class-acf-field-checkbox.php:395 +#: includes/fields/class-acf-field-radio.php:296 +msgid "Vertical" +msgstr "Pionowy" + +#: includes/fields/class-acf-field-button-group.php:191 +#: includes/fields/class-acf-field-checkbox.php:413 +#: includes/fields/class-acf-field-file.php:215 +#: includes/fields/class-acf-field-image.php:205 +#: includes/fields/class-acf-field-link.php:166 +#: includes/fields/class-acf-field-radio.php:304 +#: includes/fields/class-acf-field-taxonomy.php:829 +msgid "Return Value" +msgstr "Zwracana wartość" + +#: includes/fields/class-acf-field-button-group.php:192 +#: includes/fields/class-acf-field-checkbox.php:414 +#: includes/fields/class-acf-field-file.php:216 +#: includes/fields/class-acf-field-image.php:206 +#: includes/fields/class-acf-field-link.php:167 +#: includes/fields/class-acf-field-radio.php:305 +msgid "Specify the returned value on front end" +msgstr "Określ zwracaną wartość na stronie (front-end)" + +#: includes/fields/class-acf-field-button-group.php:197 +#: includes/fields/class-acf-field-checkbox.php:419 +#: includes/fields/class-acf-field-radio.php:310 +#: includes/fields/class-acf-field-select.php:438 +msgid "Value" +msgstr "Wartość" + +#: includes/fields/class-acf-field-button-group.php:199 +#: includes/fields/class-acf-field-checkbox.php:421 +#: includes/fields/class-acf-field-radio.php:312 +#: includes/fields/class-acf-field-select.php:440 +msgid "Both (Array)" +msgstr "Oba (Array)" + +#: includes/fields/class-acf-field-checkbox.php:25 +#: includes/fields/class-acf-field-taxonomy.php:771 +msgid "Checkbox" +msgstr "Wybór (checkbox)" + +#: includes/fields/class-acf-field-checkbox.php:154 +msgid "Toggle All" +msgstr "Przełącz wszystko" + +#: includes/fields/class-acf-field-checkbox.php:221 +#, fuzzy +msgid "Add new choice" +msgstr "Dodaj nowe pole" + +#: includes/fields/class-acf-field-checkbox.php:353 +#, fuzzy +msgid "Allow Custom" +msgstr "" +"Dodaj pole 'other' aby zezwolić na definiowane przez użytkownika wartości" + +#: includes/fields/class-acf-field-checkbox.php:358 +msgid "Allow 'custom' values to be added" +msgstr "" + +#: includes/fields/class-acf-field-checkbox.php:364 +#, fuzzy +msgid "Save Custom" +msgstr "Przenieś pole" + +#: includes/fields/class-acf-field-checkbox.php:369 +#, fuzzy +msgid "Save 'custom' values to the field's choices" +msgstr "Dopisz zapisaną wartość pola 'other' do wyborów tego pola" + +#: includes/fields/class-acf-field-checkbox.php:381 +#: includes/fields/class-acf-field-select.php:380 +msgid "Enter each default value on a new line" +msgstr "Wpisz każdą domyślną wartość w nowej linii" + +#: includes/fields/class-acf-field-checkbox.php:403 +msgid "Toggle" +msgstr "Grupowe zaznaczanie" + +#: includes/fields/class-acf-field-checkbox.php:404 +msgid "Prepend an extra checkbox to toggle all choices" +msgstr "" +"Dołącz dodatkowe pole wyboru, aby grupowo włączać/wyłączać wszystkie pola " +"wyboru" + +#: includes/fields/class-acf-field-color_picker.php:25 +msgid "Color Picker" +msgstr "Wybór koloru" + +#: includes/fields/class-acf-field-color_picker.php:68 +msgid "Clear" +msgstr "Wyczyść" + +#: includes/fields/class-acf-field-color_picker.php:69 +msgid "Default" +msgstr "Domyślna wartość" + +#: includes/fields/class-acf-field-color_picker.php:70 +msgid "Select Color" +msgstr "Wybierz kolor" + +#: includes/fields/class-acf-field-color_picker.php:71 +msgid "Current Color" +msgstr "Aktualny Kolor" + +#: includes/fields/class-acf-field-date_picker.php:25 +msgid "Date Picker" +msgstr "Wybór daty" + +#: includes/fields/class-acf-field-date_picker.php:59 +msgctxt "Date Picker JS closeText" +msgid "Done" +msgstr "Gotowe" + +#: includes/fields/class-acf-field-date_picker.php:60 +msgctxt "Date Picker JS currentText" +msgid "Today" +msgstr "Dzisiaj" + +#: includes/fields/class-acf-field-date_picker.php:61 +msgctxt "Date Picker JS nextText" +msgid "Next" +msgstr "Następne" + +#: includes/fields/class-acf-field-date_picker.php:62 +msgctxt "Date Picker JS prevText" +msgid "Prev" +msgstr "Poprzednie" + +#: includes/fields/class-acf-field-date_picker.php:63 +msgctxt "Date Picker JS weekHeader" +msgid "Wk" +msgstr "Tydz." + +#: includes/fields/class-acf-field-date_picker.php:180 +#: includes/fields/class-acf-field-date_time_picker.php:183 +#: includes/fields/class-acf-field-time_picker.php:109 +msgid "Display Format" +msgstr "Format wyświetlania" + +#: includes/fields/class-acf-field-date_picker.php:181 +#: includes/fields/class-acf-field-date_time_picker.php:184 +#: includes/fields/class-acf-field-time_picker.php:110 +msgid "The format displayed when editing a post" +msgstr "Wyświetlany format przy edycji wpisu" + +#: includes/fields/class-acf-field-date_picker.php:189 +#: includes/fields/class-acf-field-date_picker.php:220 +#: includes/fields/class-acf-field-date_time_picker.php:193 +#: includes/fields/class-acf-field-date_time_picker.php:210 +#: includes/fields/class-acf-field-time_picker.php:117 +#: includes/fields/class-acf-field-time_picker.php:132 +#, fuzzy +msgid "Custom:" +msgstr "Zaawansowane własne pola" + +#: includes/fields/class-acf-field-date_picker.php:199 +#, fuzzy +msgid "Save Format" +msgstr "Format zapisu" + +#: includes/fields/class-acf-field-date_picker.php:200 +#, fuzzy +msgid "The format used when saving a value" +msgstr "Wyświetlany format przy edycji wpisu" + +#: includes/fields/class-acf-field-date_picker.php:210 +#: includes/fields/class-acf-field-date_time_picker.php:200 +#: includes/fields/class-acf-field-post_object.php:432 +#: includes/fields/class-acf-field-relationship.php:715 +#: includes/fields/class-acf-field-select.php:433 +#: includes/fields/class-acf-field-time_picker.php:124 +#: includes/fields/class-acf-field-user.php:428 +msgid "Return Format" +msgstr "Zwracana wartość" + +#: includes/fields/class-acf-field-date_picker.php:211 +#: includes/fields/class-acf-field-date_time_picker.php:201 +#: includes/fields/class-acf-field-time_picker.php:125 +msgid "The format returned via template functions" +msgstr "Wartość zwracana przez funkcje w szablonie" + +#: includes/fields/class-acf-field-date_picker.php:229 +#: includes/fields/class-acf-field-date_time_picker.php:217 +msgid "Week Starts On" +msgstr "Tydzień zaczyna się od" + +#: includes/fields/class-acf-field-date_time_picker.php:25 +msgid "Date Time Picker" +msgstr "Wybieranie daty i godziny" + +#: includes/fields/class-acf-field-date_time_picker.php:68 +msgctxt "Date Time Picker JS timeOnlyTitle" +msgid "Choose Time" +msgstr "Wybierz czas" + +#: includes/fields/class-acf-field-date_time_picker.php:69 +msgctxt "Date Time Picker JS timeText" +msgid "Time" +msgstr "Czas" + +#: includes/fields/class-acf-field-date_time_picker.php:70 +msgctxt "Date Time Picker JS hourText" +msgid "Hour" +msgstr "Godzina" + +#: includes/fields/class-acf-field-date_time_picker.php:71 +msgctxt "Date Time Picker JS minuteText" +msgid "Minute" +msgstr "Minuta" + +#: includes/fields/class-acf-field-date_time_picker.php:72 +msgctxt "Date Time Picker JS secondText" +msgid "Second" +msgstr "Sekund" + +#: includes/fields/class-acf-field-date_time_picker.php:73 +msgctxt "Date Time Picker JS millisecText" +msgid "Millisecond" +msgstr "Milisekund" + +#: includes/fields/class-acf-field-date_time_picker.php:74 +msgctxt "Date Time Picker JS microsecText" +msgid "Microsecond" +msgstr "Mikrosekund" + +#: includes/fields/class-acf-field-date_time_picker.php:75 +msgctxt "Date Time Picker JS timezoneText" +msgid "Time Zone" +msgstr "Strefa czasu" + +#: includes/fields/class-acf-field-date_time_picker.php:76 +msgctxt "Date Time Picker JS currentText" +msgid "Now" +msgstr "Teraz" + +#: includes/fields/class-acf-field-date_time_picker.php:77 +msgctxt "Date Time Picker JS closeText" +msgid "Done" +msgstr "Gotowe" + +#: includes/fields/class-acf-field-date_time_picker.php:78 +msgctxt "Date Time Picker JS selectText" +msgid "Select" +msgstr "Wybierz" + +#: includes/fields/class-acf-field-date_time_picker.php:80 +msgctxt "Date Time Picker JS amText" +msgid "AM" +msgstr "AM" + +#: includes/fields/class-acf-field-date_time_picker.php:81 +msgctxt "Date Time Picker JS amTextShort" +msgid "A" +msgstr "A" + +#: includes/fields/class-acf-field-date_time_picker.php:84 +msgctxt "Date Time Picker JS pmText" +msgid "PM" +msgstr "PM" + +#: includes/fields/class-acf-field-date_time_picker.php:85 +msgctxt "Date Time Picker JS pmTextShort" +msgid "P" +msgstr "P" + +#: includes/fields/class-acf-field-email.php:25 +msgid "Email" +msgstr "Email" + +#: includes/fields/class-acf-field-email.php:127 +#: includes/fields/class-acf-field-number.php:136 +#: includes/fields/class-acf-field-password.php:71 +#: includes/fields/class-acf-field-text.php:128 +#: includes/fields/class-acf-field-textarea.php:111 +#: includes/fields/class-acf-field-url.php:109 +msgid "Placeholder Text" +msgstr "Placeholder (tekst zastępczy)" + +#: includes/fields/class-acf-field-email.php:128 +#: includes/fields/class-acf-field-number.php:137 +#: includes/fields/class-acf-field-password.php:72 +#: includes/fields/class-acf-field-text.php:129 +#: includes/fields/class-acf-field-textarea.php:112 +#: includes/fields/class-acf-field-url.php:110 +msgid "Appears within the input" +msgstr "Pojawia się w inpucie" + +#: includes/fields/class-acf-field-email.php:136 +#: includes/fields/class-acf-field-number.php:145 +#: includes/fields/class-acf-field-password.php:80 +#: includes/fields/class-acf-field-range.php:185 +#: includes/fields/class-acf-field-text.php:137 +msgid "Prepend" +msgstr "Przed polem (prefiks)" + +#: includes/fields/class-acf-field-email.php:137 +#: includes/fields/class-acf-field-number.php:146 +#: includes/fields/class-acf-field-password.php:81 +#: includes/fields/class-acf-field-range.php:186 +#: includes/fields/class-acf-field-text.php:138 +msgid "Appears before the input" +msgstr "Pojawia się przed inputem" + +#: includes/fields/class-acf-field-email.php:145 +#: includes/fields/class-acf-field-number.php:154 +#: includes/fields/class-acf-field-password.php:89 +#: includes/fields/class-acf-field-range.php:194 +#: includes/fields/class-acf-field-text.php:146 +msgid "Append" +msgstr "Za polem (sufix)" + +#: includes/fields/class-acf-field-email.php:146 +#: includes/fields/class-acf-field-number.php:155 +#: includes/fields/class-acf-field-password.php:90 +#: includes/fields/class-acf-field-range.php:195 +#: includes/fields/class-acf-field-text.php:147 +msgid "Appears after the input" +msgstr "Pojawia się za inputem" + +#: includes/fields/class-acf-field-file.php:25 +msgid "File" +msgstr "Plik" + +#: includes/fields/class-acf-field-file.php:58 +msgid "Edit File" +msgstr "Edytuj plik" + +#: includes/fields/class-acf-field-file.php:59 +msgid "Update File" +msgstr "Aktualizuj plik" + +#: includes/fields/class-acf-field-file.php:141 +msgid "File name" +msgstr "Nazwa pliku" + +#: includes/fields/class-acf-field-file.php:145 +#: includes/fields/class-acf-field-file.php:248 +#: includes/fields/class-acf-field-file.php:259 +#: includes/fields/class-acf-field-image.php:265 +#: includes/fields/class-acf-field-image.php:294 +#: pro/fields/class-acf-field-gallery.php:705 +#: pro/fields/class-acf-field-gallery.php:734 +msgid "File size" +msgstr "Wielkość pliku" + +#: includes/fields/class-acf-field-file.php:170 +msgid "Add File" +msgstr "Dodaj plik" + +#: includes/fields/class-acf-field-file.php:221 +msgid "File Array" +msgstr "Tablica pliku" + +#: includes/fields/class-acf-field-file.php:222 +msgid "File URL" +msgstr "Adres URL pliku" + +#: includes/fields/class-acf-field-file.php:223 +msgid "File ID" +msgstr "ID pliku" + +#: includes/fields/class-acf-field-file.php:230 +#: includes/fields/class-acf-field-image.php:230 +#: pro/fields/class-acf-field-gallery.php:670 +msgid "Library" +msgstr "Biblioteka" + +#: includes/fields/class-acf-field-file.php:231 +#: includes/fields/class-acf-field-image.php:231 +#: pro/fields/class-acf-field-gallery.php:671 +msgid "Limit the media library choice" +msgstr "Ograniczenie wyborów z bibliteki" + +#: includes/fields/class-acf-field-file.php:236 +#: includes/fields/class-acf-field-image.php:236 +#: includes/locations/class-acf-location-attachment.php:101 +#: includes/locations/class-acf-location-comment.php:79 +#: includes/locations/class-acf-location-nav-menu.php:102 +#: includes/locations/class-acf-location-taxonomy.php:79 +#: includes/locations/class-acf-location-user-form.php:87 +#: includes/locations/class-acf-location-user-role.php:111 +#: includes/locations/class-acf-location-widget.php:83 +#: pro/fields/class-acf-field-gallery.php:676 +msgid "All" +msgstr "Wszystkie" + +#: includes/fields/class-acf-field-file.php:237 +#: includes/fields/class-acf-field-image.php:237 +#: pro/fields/class-acf-field-gallery.php:677 +msgid "Uploaded to post" +msgstr "Wgrane do wpisu" + +#: includes/fields/class-acf-field-file.php:244 +#: includes/fields/class-acf-field-image.php:244 +#: pro/fields/class-acf-field-gallery.php:684 +msgid "Minimum" +msgstr "Minimum" + +#: includes/fields/class-acf-field-file.php:245 +#: includes/fields/class-acf-field-file.php:256 +msgid "Restrict which files can be uploaded" +msgstr "Określ jakie pliki mogą być przesyłane" + +#: includes/fields/class-acf-field-file.php:255 +#: includes/fields/class-acf-field-image.php:273 +#: pro/fields/class-acf-field-gallery.php:713 +msgid "Maximum" +msgstr "Maksimum" + +#: includes/fields/class-acf-field-file.php:266 +#: includes/fields/class-acf-field-image.php:302 +#: pro/fields/class-acf-field-gallery.php:742 +msgid "Allowed file types" +msgstr "Dozwolone typy plików" + +#: includes/fields/class-acf-field-file.php:267 +#: includes/fields/class-acf-field-image.php:303 +#: pro/fields/class-acf-field-gallery.php:743 +msgid "Comma separated list. Leave blank for all types" +msgstr "Lista rozdzielana przecinkiem. Pozostaw puste dla wszystkich typów" + +#: includes/fields/class-acf-field-google-map.php:25 +msgid "Google Map" +msgstr "Mapa Google" + +#: includes/fields/class-acf-field-google-map.php:59 +msgid "Sorry, this browser does not support geolocation" +msgstr "Przepraszamy, ten przeglądarka nie obsługuje geolokalizacji" + +#: includes/fields/class-acf-field-google-map.php:165 +msgid "Clear location" +msgstr "Wyczyść lokalizacje" + +#: includes/fields/class-acf-field-google-map.php:166 +msgid "Find current location" +msgstr "Znajdź aktualną lokalizacje" + +#: includes/fields/class-acf-field-google-map.php:169 +msgid "Search for address..." +msgstr "Szukaj adresu..." + +#: includes/fields/class-acf-field-google-map.php:199 +#: includes/fields/class-acf-field-google-map.php:210 +msgid "Center" +msgstr "Wyśrodkuj" + +#: includes/fields/class-acf-field-google-map.php:200 +#: includes/fields/class-acf-field-google-map.php:211 +msgid "Center the initial map" +msgstr "Wyśrodkuj początkową mapę" + +#: includes/fields/class-acf-field-google-map.php:222 +msgid "Zoom" +msgstr "Zbliżenie" + +#: includes/fields/class-acf-field-google-map.php:223 +msgid "Set the initial zoom level" +msgstr "Ustaw początkowe zbliżenie" + +#: includes/fields/class-acf-field-google-map.php:232 +#: includes/fields/class-acf-field-image.php:256 +#: includes/fields/class-acf-field-image.php:285 +#: includes/fields/class-acf-field-oembed.php:268 +#: pro/fields/class-acf-field-gallery.php:696 +#: pro/fields/class-acf-field-gallery.php:725 +msgid "Height" +msgstr "Wysokość" + +#: includes/fields/class-acf-field-google-map.php:233 +msgid "Customise the map height" +msgstr "Dostosuj wysokość mapy" + +#: includes/fields/class-acf-field-group.php:25 +#, fuzzy +msgid "Group" +msgstr "Grupuj (wyświetl wybrane pola w grupie)" + +#: includes/fields/class-acf-field-group.php:459 +#: pro/fields/class-acf-field-repeater.php:379 +msgid "Sub Fields" +msgstr "Pola podrzędne" + +#: includes/fields/class-acf-field-group.php:475 +#: pro/fields/class-acf-field-clone.php:844 +msgid "Specify the style used to render the selected fields" +msgstr "Określ style wykorzystywany to tworzenia wybranych pól" + +#: includes/fields/class-acf-field-group.php:480 +#: pro/fields/class-acf-field-clone.php:849 +#: pro/fields/class-acf-field-flexible-content.php:627 +#: pro/fields/class-acf-field-repeater.php:451 +msgid "Block" +msgstr "Blok" + +#: includes/fields/class-acf-field-group.php:481 +#: pro/fields/class-acf-field-clone.php:850 +#: pro/fields/class-acf-field-flexible-content.php:626 +#: pro/fields/class-acf-field-repeater.php:450 +msgid "Table" +msgstr "Tabela" + +#: includes/fields/class-acf-field-group.php:482 +#: pro/fields/class-acf-field-clone.php:851 +#: pro/fields/class-acf-field-flexible-content.php:628 +#: pro/fields/class-acf-field-repeater.php:452 +msgid "Row" +msgstr "Wiersz" + +#: includes/fields/class-acf-field-image.php:25 +msgid "Image" +msgstr "Obrazek" + +#: includes/fields/class-acf-field-image.php:64 +msgid "Select Image" +msgstr "Wybierz obrazek" + +#: includes/fields/class-acf-field-image.php:65 +msgid "Edit Image" +msgstr "Edytuj obrazek" + +#: includes/fields/class-acf-field-image.php:66 +msgid "Update Image" +msgstr "Aktualizuj obrazek" + +#: includes/fields/class-acf-field-image.php:157 msgid "No image selected" msgstr "Nie wybrano obrazka" -#: includes/fields/class-acf-field-image.php:158 +#: includes/fields/class-acf-field-image.php:157 msgid "Add Image" msgstr "Dodaj obrazek" -#: includes/fields/class-acf-field-image.php:212 +#: includes/fields/class-acf-field-image.php:211 msgid "Image Array" msgstr "Tablica obrazków" -#: includes/fields/class-acf-field-image.php:213 +#: includes/fields/class-acf-field-image.php:212 msgid "Image URL" msgstr "Adres URL obrazka" -#: includes/fields/class-acf-field-image.php:214 +#: includes/fields/class-acf-field-image.php:213 msgid "Image ID" msgstr "ID obrazka" -#: includes/fields/class-acf-field-image.php:221 +#: includes/fields/class-acf-field-image.php:220 msgid "Preview Size" msgstr "Wielkość obrazka" -#: includes/fields/class-acf-field-image.php:222 +#: includes/fields/class-acf-field-image.php:221 msgid "Shown when entering data" msgstr "Pokaż podczas wprowadzania danych" -#: includes/fields/class-acf-field-image.php:246 -#: includes/fields/class-acf-field-image.php:275 +#: includes/fields/class-acf-field-image.php:245 +#: includes/fields/class-acf-field-image.php:274 #: pro/fields/class-acf-field-gallery.php:685 #: pro/fields/class-acf-field-gallery.php:714 msgid "Restrict which images can be uploaded" msgstr "Określ jakie obrazy mogą być przesyłane" -#: includes/fields/class-acf-field-image.php:249 -#: includes/fields/class-acf-field-image.php:278 -#: includes/fields/class-acf-field-oembed.php:286 +#: includes/fields/class-acf-field-image.php:248 +#: includes/fields/class-acf-field-image.php:277 +#: includes/fields/class-acf-field-oembed.php:257 #: pro/fields/class-acf-field-gallery.php:688 #: pro/fields/class-acf-field-gallery.php:717 msgid "Width" msgstr "Szerokość" -#: includes/fields/class-acf-field-link.php:36 +#: includes/fields/class-acf-field-link.php:25 #, fuzzy msgid "Link" msgstr "Odnośnik do strony" -#: includes/fields/class-acf-field-link.php:146 +#: includes/fields/class-acf-field-link.php:133 #, fuzzy msgid "Select Link" msgstr "Wybierz plik" -#: includes/fields/class-acf-field-link.php:151 +#: includes/fields/class-acf-field-link.php:138 msgid "Opens in a new window/tab" msgstr "" -#: includes/fields/class-acf-field-link.php:186 +#: includes/fields/class-acf-field-link.php:172 #, fuzzy msgid "Link Array" msgstr "Tablica pliku" -#: includes/fields/class-acf-field-link.php:187 +#: includes/fields/class-acf-field-link.php:173 #, fuzzy msgid "Link URL" msgstr "Adres URL pliku" -#: includes/fields/class-acf-field-message.php:36 -#: includes/fields/class-acf-field-message.php:115 -#: includes/fields/class-acf-field-true_false.php:141 +#: includes/fields/class-acf-field-message.php:25 +#: includes/fields/class-acf-field-message.php:101 +#: includes/fields/class-acf-field-true_false.php:126 msgid "Message" msgstr "Wiadomość" -#: includes/fields/class-acf-field-message.php:124 -#: includes/fields/class-acf-field-textarea.php:176 +#: includes/fields/class-acf-field-message.php:110 +#: includes/fields/class-acf-field-textarea.php:139 msgid "New Lines" msgstr "Nowe linie" -#: includes/fields/class-acf-field-message.php:125 -#: includes/fields/class-acf-field-textarea.php:177 +#: includes/fields/class-acf-field-message.php:111 +#: includes/fields/class-acf-field-textarea.php:140 msgid "Controls how new lines are rendered" msgstr "Kontroluje jak nowe linie są renderowane" -#: includes/fields/class-acf-field-message.php:129 -#: includes/fields/class-acf-field-textarea.php:181 +#: includes/fields/class-acf-field-message.php:115 +#: includes/fields/class-acf-field-textarea.php:144 msgid "Automatically add paragraphs" msgstr "Automatycznie dodaj akapity" -#: includes/fields/class-acf-field-message.php:130 -#: includes/fields/class-acf-field-textarea.php:182 +#: includes/fields/class-acf-field-message.php:116 +#: includes/fields/class-acf-field-textarea.php:145 msgid "Automatically add <br>" msgstr "Automatycznie dodaj <br>" -#: includes/fields/class-acf-field-message.php:131 -#: includes/fields/class-acf-field-textarea.php:183 +#: includes/fields/class-acf-field-message.php:117 +#: includes/fields/class-acf-field-textarea.php:146 msgid "No Formatting" msgstr "Brak formatowania" -#: includes/fields/class-acf-field-message.php:138 +#: includes/fields/class-acf-field-message.php:124 msgid "Escape HTML" msgstr "dodawaj znaki ucieczki do HTML (escape)" -#: includes/fields/class-acf-field-message.php:139 +#: includes/fields/class-acf-field-message.php:125 msgid "Allow HTML markup to display as visible text instead of rendering" msgstr "" "Zezwól aby znaczniki HTMLa były wyświetlana jako widoczny tekst, a nie " "renderowane." -#: includes/fields/class-acf-field-number.php:36 +#: includes/fields/class-acf-field-number.php:25 msgid "Number" msgstr "Liczba" -#: includes/fields/class-acf-field-number.php:181 +#: includes/fields/class-acf-field-number.php:163 +#: includes/fields/class-acf-field-range.php:155 msgid "Minimum Value" msgstr "Minimalna wartość" -#: includes/fields/class-acf-field-number.php:190 +#: includes/fields/class-acf-field-number.php:172 +#: includes/fields/class-acf-field-range.php:165 msgid "Maximum Value" msgstr "Maksymalna wartość" -#: includes/fields/class-acf-field-number.php:199 +#: includes/fields/class-acf-field-number.php:181 +#: includes/fields/class-acf-field-range.php:175 msgid "Step Size" msgstr "Wartość kroku" -#: includes/fields/class-acf-field-number.php:237 +#: includes/fields/class-acf-field-number.php:219 msgid "Value must be a number" msgstr "Wartość musi być liczbą" -#: includes/fields/class-acf-field-number.php:255 +#: includes/fields/class-acf-field-number.php:237 #, php-format msgid "Value must be equal to or higher than %d" msgstr "Wartość musi być równa lub wyższa od %d" -#: includes/fields/class-acf-field-number.php:263 +#: includes/fields/class-acf-field-number.php:245 #, php-format msgid "Value must be equal to or lower than %d" msgstr "Wartość musi być równa lub niższa od %d" -#: includes/fields/class-acf-field-oembed.php:36 +#: includes/fields/class-acf-field-oembed.php:25 msgid "oEmbed" msgstr "oEmbed" -#: includes/fields/class-acf-field-oembed.php:237 +#: includes/fields/class-acf-field-oembed.php:216 msgid "Enter URL" msgstr "Wpisz URL" -#: includes/fields/class-acf-field-oembed.php:250 -#: includes/fields/class-acf-field-taxonomy.php:904 -msgid "Error." -msgstr "Błąd." - -#: includes/fields/class-acf-field-oembed.php:250 -msgid "No embed found for the given URL." -msgstr "Nie znaleziono osadzenia dla podanego URLa." - -#: includes/fields/class-acf-field-oembed.php:283 -#: includes/fields/class-acf-field-oembed.php:294 +#: includes/fields/class-acf-field-oembed.php:254 +#: includes/fields/class-acf-field-oembed.php:265 msgid "Embed Size" msgstr "Rozmiar osadzenia" -#: includes/fields/class-acf-field-page_link.php:192 +#: includes/fields/class-acf-field-page_link.php:177 msgid "Archives" msgstr "Archiwa" -#: includes/fields/class-acf-field-page_link.php:500 -#: includes/fields/class-acf-field-post_object.php:399 -#: includes/fields/class-acf-field-relationship.php:704 +#: includes/fields/class-acf-field-page_link.php:269 +#: includes/fields/class-acf-field-post_object.php:268 +#: includes/fields/class-acf-field-taxonomy.php:961 +msgid "Parent" +msgstr "Rodzic" + +#: includes/fields/class-acf-field-page_link.php:485 +#: includes/fields/class-acf-field-post_object.php:384 +#: includes/fields/class-acf-field-relationship.php:641 msgid "Filter by Post Type" msgstr "Filtruj wg typu wpisu" -#: includes/fields/class-acf-field-page_link.php:508 -#: includes/fields/class-acf-field-post_object.php:407 -#: includes/fields/class-acf-field-relationship.php:712 +#: includes/fields/class-acf-field-page_link.php:493 +#: includes/fields/class-acf-field-post_object.php:392 +#: includes/fields/class-acf-field-relationship.php:649 msgid "All post types" msgstr "Wszystkie typu wpisów" -#: includes/fields/class-acf-field-page_link.php:514 -#: includes/fields/class-acf-field-post_object.php:413 -#: includes/fields/class-acf-field-relationship.php:718 +#: includes/fields/class-acf-field-page_link.php:499 +#: includes/fields/class-acf-field-post_object.php:398 +#: includes/fields/class-acf-field-relationship.php:655 msgid "Filter by Taxonomy" msgstr "Filtruj wg taksonomii" -#: includes/fields/class-acf-field-page_link.php:522 -#: includes/fields/class-acf-field-post_object.php:421 -#: includes/fields/class-acf-field-relationship.php:726 +#: includes/fields/class-acf-field-page_link.php:507 +#: includes/fields/class-acf-field-post_object.php:406 +#: includes/fields/class-acf-field-relationship.php:663 msgid "All taxonomies" msgstr "Wszystkie taksonomie" -#: includes/fields/class-acf-field-page_link.php:528 -#: includes/fields/class-acf-field-post_object.php:427 -#: includes/fields/class-acf-field-radio.php:259 -#: includes/fields/class-acf-field-select.php:484 -#: includes/fields/class-acf-field-taxonomy.php:799 -#: includes/fields/class-acf-field-user.php:423 -msgid "Allow Null?" -msgstr "Zezwolić na pustą wartość?" - -#: includes/fields/class-acf-field-page_link.php:538 +#: includes/fields/class-acf-field-page_link.php:523 msgid "Allow Archives URLs" msgstr "Pozwól na archiwa URLi" -#: includes/fields/class-acf-field-page_link.php:548 -#: includes/fields/class-acf-field-post_object.php:437 -#: includes/fields/class-acf-field-select.php:494 -#: includes/fields/class-acf-field-user.php:433 +#: includes/fields/class-acf-field-page_link.php:533 +#: includes/fields/class-acf-field-post_object.php:422 +#: includes/fields/class-acf-field-select.php:398 +#: includes/fields/class-acf-field-user.php:419 msgid "Select multiple values?" msgstr "Możliwość wyboru wielu wartości?" -#: includes/fields/class-acf-field-password.php:36 +#: includes/fields/class-acf-field-password.php:25 msgid "Password" msgstr "Hasło" -#: includes/fields/class-acf-field-post_object.php:36 -#: includes/fields/class-acf-field-post_object.php:452 -#: includes/fields/class-acf-field-relationship.php:783 +#: includes/fields/class-acf-field-post_object.php:25 +#: includes/fields/class-acf-field-post_object.php:437 +#: includes/fields/class-acf-field-relationship.php:720 msgid "Post Object" msgstr "Obiekt wpis" -#: includes/fields/class-acf-field-post_object.php:453 -#: includes/fields/class-acf-field-relationship.php:784 +#: includes/fields/class-acf-field-post_object.php:438 +#: includes/fields/class-acf-field-relationship.php:721 msgid "Post ID" msgstr "ID wpisu" -#: includes/fields/class-acf-field-radio.php:36 +#: includes/fields/class-acf-field-radio.php:25 msgid "Radio Button" msgstr "Przycisk opcji (radio)" -#: includes/fields/class-acf-field-radio.php:269 +#: includes/fields/class-acf-field-radio.php:254 msgid "Other" msgstr "Pozostałe" -#: includes/fields/class-acf-field-radio.php:274 +#: includes/fields/class-acf-field-radio.php:259 msgid "Add 'other' choice to allow for custom values" msgstr "" "Dodaj pole 'other' aby zezwolić na definiowane przez użytkownika wartości" -#: includes/fields/class-acf-field-radio.php:280 +#: includes/fields/class-acf-field-radio.php:265 msgid "Save Other" msgstr "Zapisz Inne" -#: includes/fields/class-acf-field-radio.php:285 +#: includes/fields/class-acf-field-radio.php:270 msgid "Save 'other' values to the field's choices" msgstr "Dopisz zapisaną wartość pola 'other' do wyborów tego pola" -#: includes/fields/class-acf-field-relationship.php:36 +#: includes/fields/class-acf-field-range.php:25 +msgid "Range" +msgstr "" + +#: includes/fields/class-acf-field-relationship.php:25 msgid "Relationship" msgstr "Relacja" -#: includes/fields/class-acf-field-relationship.php:48 -msgid "Minimum values reached ( {min} values )" -msgstr "Minimalna wartość została przekroczona ( {min} )" - -#: includes/fields/class-acf-field-relationship.php:49 +#: includes/fields/class-acf-field-relationship.php:62 msgid "Maximum values reached ( {max} values )" msgstr "Maksymalna liczba została przekroczona ( {max} )" -#: includes/fields/class-acf-field-relationship.php:50 +#: includes/fields/class-acf-field-relationship.php:63 msgid "Loading" msgstr "Wczytuje" -#: includes/fields/class-acf-field-relationship.php:51 +#: includes/fields/class-acf-field-relationship.php:64 msgid "No matches found" msgstr "Nie znaleziono pasujących wyników" -#: includes/fields/class-acf-field-relationship.php:585 -msgid "Search..." -msgstr "Szukaj..." - -#: includes/fields/class-acf-field-relationship.php:594 +#: includes/fields/class-acf-field-relationship.php:441 msgid "Select post type" msgstr "Wybierz typ wpisu" -#: includes/fields/class-acf-field-relationship.php:607 +#: includes/fields/class-acf-field-relationship.php:467 msgid "Select taxonomy" msgstr "Wybierz taksonomie" -#: includes/fields/class-acf-field-relationship.php:732 +#: includes/fields/class-acf-field-relationship.php:557 +msgid "Search..." +msgstr "Szukaj..." + +#: includes/fields/class-acf-field-relationship.php:669 msgid "Filters" msgstr "Filtry" -#: includes/fields/class-acf-field-relationship.php:738 +#: includes/fields/class-acf-field-relationship.php:675 #: includes/locations/class-acf-location-post-type.php:27 msgid "Post Type" msgstr "Typ wpisu" -#: includes/fields/class-acf-field-relationship.php:739 -#: includes/fields/class-acf-field-taxonomy.php:36 -#: includes/fields/class-acf-field-taxonomy.php:769 +#: includes/fields/class-acf-field-relationship.php:676 +#: includes/fields/class-acf-field-taxonomy.php:28 +#: includes/fields/class-acf-field-taxonomy.php:754 +#: includes/locations/class-acf-location-taxonomy.php:27 msgid "Taxonomy" msgstr "Taksonomia" -#: includes/fields/class-acf-field-relationship.php:746 +#: includes/fields/class-acf-field-relationship.php:683 msgid "Elements" msgstr "Elementy" -#: includes/fields/class-acf-field-relationship.php:747 +#: includes/fields/class-acf-field-relationship.php:684 msgid "Selected elements will be displayed in each result" msgstr "Wybrane elementy będą wyświetlona w każdym wyniku" -#: includes/fields/class-acf-field-relationship.php:758 +#: includes/fields/class-acf-field-relationship.php:695 msgid "Minimum posts" msgstr "Minimum wpisów" -#: includes/fields/class-acf-field-relationship.php:767 +#: includes/fields/class-acf-field-relationship.php:704 msgid "Maximum posts" msgstr "Maksimum wpisów" -#: includes/fields/class-acf-field-relationship.php:871 +#: includes/fields/class-acf-field-relationship.php:808 #: pro/fields/class-acf-field-gallery.php:815 #, php-format msgid "%s requires at least %s selection" @@ -2250,360 +2419,335 @@ msgstr[0] "%s wymagany przynajmniej %s wybór" msgstr[1] "%s wymagane są przynajmniej %s wybory" msgstr[2] "%s wymagane są przynajmniej %s wybory" -#: includes/fields/class-acf-field-select.php:36 -#: includes/fields/class-acf-field-taxonomy.php:791 +#: includes/fields/class-acf-field-select.php:25 +#: includes/fields/class-acf-field-taxonomy.php:776 msgctxt "noun" msgid "Select" msgstr "Wybierz" -#: includes/fields/class-acf-field-select.php:49 +#: includes/fields/class-acf-field-select.php:111 msgctxt "Select2 JS matches_1" msgid "One result is available, press enter to select it." msgstr "Jeden wynik jest dostępny, wciśnij enter żeby go wybrać." -#: includes/fields/class-acf-field-select.php:50 +#: includes/fields/class-acf-field-select.php:112 #, php-format msgctxt "Select2 JS matches_n" msgid "%d results are available, use up and down arrow keys to navigate." msgstr "%d wyników dostępnych, użyj strzałek w góre i w dół aby nawigować." -#: includes/fields/class-acf-field-select.php:51 +#: includes/fields/class-acf-field-select.php:113 msgctxt "Select2 JS matches_0" msgid "No matches found" msgstr "Nie znaleziono wyników" -#: includes/fields/class-acf-field-select.php:52 +#: includes/fields/class-acf-field-select.php:114 msgctxt "Select2 JS input_too_short_1" msgid "Please enter 1 or more characters" msgstr "Wpisz 1 lub więcej znaków" -#: includes/fields/class-acf-field-select.php:53 +#: includes/fields/class-acf-field-select.php:115 #, php-format msgctxt "Select2 JS input_too_short_n" msgid "Please enter %d or more characters" msgstr "Wpisz %d lub więcej znaków" -#: includes/fields/class-acf-field-select.php:54 +#: includes/fields/class-acf-field-select.php:116 msgctxt "Select2 JS input_too_long_1" msgid "Please delete 1 character" msgstr "Proszę usunąć 1 znak" -#: includes/fields/class-acf-field-select.php:55 +#: includes/fields/class-acf-field-select.php:117 #, php-format msgctxt "Select2 JS input_too_long_n" msgid "Please delete %d characters" msgstr "Proszę usunąć %d znaków" -#: includes/fields/class-acf-field-select.php:56 +#: includes/fields/class-acf-field-select.php:118 msgctxt "Select2 JS selection_too_long_1" msgid "You can only select 1 item" msgstr "Możesz wybrać tylko 1 element" -#: includes/fields/class-acf-field-select.php:57 +#: includes/fields/class-acf-field-select.php:119 #, php-format msgctxt "Select2 JS selection_too_long_n" msgid "You can only select %d items" msgstr "Możesz wybrać tylko %d elementów" -#: includes/fields/class-acf-field-select.php:58 +#: includes/fields/class-acf-field-select.php:120 msgctxt "Select2 JS load_more" msgid "Loading more results…" msgstr "Wczytuję więcej wyników…" -#: includes/fields/class-acf-field-select.php:59 +#: includes/fields/class-acf-field-select.php:121 msgctxt "Select2 JS searching" msgid "Searching…" msgstr "Szukam…" -#: includes/fields/class-acf-field-select.php:60 +#: includes/fields/class-acf-field-select.php:122 msgctxt "Select2 JS load_fail" msgid "Loading failed" msgstr "Wczytywanie zakończone niepowodzeniem" -#: includes/fields/class-acf-field-select.php:270 includes/media.php:54 -msgctxt "verb" -msgid "Select" -msgstr "Wybierz" - -#: includes/fields/class-acf-field-select.php:504 -#: includes/fields/class-acf-field-true_false.php:159 +#: includes/fields/class-acf-field-select.php:408 +#: includes/fields/class-acf-field-true_false.php:144 msgid "Stylised UI" msgstr "Ostylowany interfejs" -#: includes/fields/class-acf-field-select.php:514 +#: includes/fields/class-acf-field-select.php:418 msgid "Use AJAX to lazy load choices?" msgstr "Użyj z AJAX do wczytywania wyników?" -#: includes/fields/class-acf-field-select.php:525 +#: includes/fields/class-acf-field-select.php:434 msgid "Specify the value returned" msgstr "Określ wartość zwracaną na stronie" -#: includes/fields/class-acf-field-separator.php:36 +#: includes/fields/class-acf-field-separator.php:25 msgid "Separator" msgstr "" -#: includes/fields/class-acf-field-tab.php:36 +#: includes/fields/class-acf-field-tab.php:25 msgid "Tab" msgstr "Zakładka" -#: includes/fields/class-acf-field-tab.php:96 -msgid "" -"The tab field will display incorrectly when added to a Table style repeater " -"field or flexible content field layout" -msgstr "" -"Pole zakładki będzie wyświetlane nieprawidłowo jeśli zostanie dodano do pola " -"powtarzalnego wyświetlanego jako tabela lub do elastycznego pola" - -#: includes/fields/class-acf-field-tab.php:97 -msgid "" -"Use \"Tab Fields\" to better organize your edit screen by grouping fields " -"together." -msgstr "Użyj \"Pola zakładki\" aby uporządkować ekran edycji grupując pola." - -#: includes/fields/class-acf-field-tab.php:98 -msgid "" -"All fields following this \"tab field\" (or until another \"tab field\" is " -"defined) will be grouped together using this field's label as the tab " -"heading." -msgstr "" -"Wszystkie pola po tym \"polu zakładki\" (lub przed następnym \"polem zakładki" -"\") zostaną zgrupowane razem używając etykiety tego pola jako nagłówka." - -#: includes/fields/class-acf-field-tab.php:112 +#: includes/fields/class-acf-field-tab.php:102 msgid "Placement" msgstr "Położenie" -#: includes/fields/class-acf-field-tab.php:124 -msgid "End-point" -msgstr "Punkt końcowy" - -#: includes/fields/class-acf-field-tab.php:125 -msgid "Use this field as an end-point and start a new group of tabs" +#: includes/fields/class-acf-field-tab.php:115 +#, fuzzy +msgid "" +"Define an endpoint for the previous tabs to stop. This will start a new " +"group of tabs." msgstr "Użyj tego pola jako punkt końcowy i zacznij nową grupę zakładek" -#: includes/fields/class-acf-field-taxonomy.php:719 -#: includes/fields/class-acf-field-true_false.php:95 -#: includes/fields/class-acf-field-true_false.php:184 includes/input.php:266 -#: pro/admin/views/html-settings-updates.php:103 -msgid "No" -msgstr "Nie" +#: includes/fields/class-acf-field-taxonomy.php:714 +#, fuzzy, php-format +msgctxt "No terms" +msgid "No %s" +msgstr "Zobacz co nowego w wersji %s." -#: includes/fields/class-acf-field-taxonomy.php:738 -msgid "None" -msgstr "Brak" - -#: includes/fields/class-acf-field-taxonomy.php:770 +#: includes/fields/class-acf-field-taxonomy.php:755 msgid "Select the taxonomy to be displayed" msgstr "Wybierz taksonomie do wyświetlenia" -#: includes/fields/class-acf-field-taxonomy.php:779 +#: includes/fields/class-acf-field-taxonomy.php:764 msgid "Appearance" msgstr "Wygląd" -#: includes/fields/class-acf-field-taxonomy.php:780 +#: includes/fields/class-acf-field-taxonomy.php:765 msgid "Select the appearance of this field" msgstr "Wybierz wygląd tego pola" -#: includes/fields/class-acf-field-taxonomy.php:785 +#: includes/fields/class-acf-field-taxonomy.php:770 msgid "Multiple Values" msgstr "Wiele wartości" -#: includes/fields/class-acf-field-taxonomy.php:787 +#: includes/fields/class-acf-field-taxonomy.php:772 msgid "Multi Select" msgstr "Wybór wielokrotny" -#: includes/fields/class-acf-field-taxonomy.php:789 +#: includes/fields/class-acf-field-taxonomy.php:774 msgid "Single Value" msgstr "Pojedyncza wartość" -#: includes/fields/class-acf-field-taxonomy.php:790 +#: includes/fields/class-acf-field-taxonomy.php:775 msgid "Radio Buttons" msgstr "Przycisk opcji (radio)" -#: includes/fields/class-acf-field-taxonomy.php:809 +#: includes/fields/class-acf-field-taxonomy.php:799 msgid "Create Terms" msgstr "Tworzenie terminów taksonomii" -#: includes/fields/class-acf-field-taxonomy.php:810 +#: includes/fields/class-acf-field-taxonomy.php:800 msgid "Allow new terms to be created whilst editing" msgstr "Pozwól na tworzenie nowych terminów taksonomi podczas edycji" -#: includes/fields/class-acf-field-taxonomy.php:819 +#: includes/fields/class-acf-field-taxonomy.php:809 msgid "Save Terms" msgstr "Zapisz terminy taksonomii" -#: includes/fields/class-acf-field-taxonomy.php:820 +#: includes/fields/class-acf-field-taxonomy.php:810 msgid "Connect selected terms to the post" msgstr "Przypisz wybrane terminy taksonomii do wpisu" -#: includes/fields/class-acf-field-taxonomy.php:829 +#: includes/fields/class-acf-field-taxonomy.php:819 msgid "Load Terms" msgstr "Wczytaj terminy taksonomiii" -#: includes/fields/class-acf-field-taxonomy.php:830 +#: includes/fields/class-acf-field-taxonomy.php:820 msgid "Load value from posts terms" msgstr "Wczytaj wartości z terminów taksonomii z wpisu" -#: includes/fields/class-acf-field-taxonomy.php:844 +#: includes/fields/class-acf-field-taxonomy.php:834 msgid "Term Object" msgstr "Obiekt terminu (WP_Term)" -#: includes/fields/class-acf-field-taxonomy.php:845 +#: includes/fields/class-acf-field-taxonomy.php:835 msgid "Term ID" msgstr "ID terminu" -#: includes/fields/class-acf-field-taxonomy.php:904 +#: includes/fields/class-acf-field-taxonomy.php:885 #, php-format msgid "User unable to add new %s" msgstr "Użytkownik nie może dodać nowych %s" -#: includes/fields/class-acf-field-taxonomy.php:917 +#: includes/fields/class-acf-field-taxonomy.php:895 #, php-format msgid "%s already exists" msgstr "%s już istnieje" -#: includes/fields/class-acf-field-taxonomy.php:958 +#: includes/fields/class-acf-field-taxonomy.php:927 #, php-format msgid "%s added" msgstr "%s dodany" -#: includes/fields/class-acf-field-taxonomy.php:1003 +#: includes/fields/class-acf-field-taxonomy.php:973 msgid "Add" msgstr "Dodaj" -#: includes/fields/class-acf-field-text.php:36 +#: includes/fields/class-acf-field-text.php:25 msgid "Text" msgstr "Tekst" -#: includes/fields/class-acf-field-text.php:178 -#: includes/fields/class-acf-field-textarea.php:157 +#: includes/fields/class-acf-field-text.php:155 +#: includes/fields/class-acf-field-textarea.php:120 msgid "Character Limit" msgstr "Limit znaków" -#: includes/fields/class-acf-field-text.php:179 -#: includes/fields/class-acf-field-textarea.php:158 +#: includes/fields/class-acf-field-text.php:156 +#: includes/fields/class-acf-field-textarea.php:121 msgid "Leave blank for no limit" msgstr "Pozostaw puste w przypadku braku limitu" -#: includes/fields/class-acf-field-textarea.php:36 +#: includes/fields/class-acf-field-textarea.php:25 msgid "Text Area" msgstr "Obszar tekstowy" -#: includes/fields/class-acf-field-textarea.php:166 +#: includes/fields/class-acf-field-textarea.php:129 msgid "Rows" msgstr "Wiersze" -#: includes/fields/class-acf-field-textarea.php:167 +#: includes/fields/class-acf-field-textarea.php:130 msgid "Sets the textarea height" msgstr "Określ wysokość obszaru tekstowego" -#: includes/fields/class-acf-field-time_picker.php:36 +#: includes/fields/class-acf-field-time_picker.php:25 msgid "Time Picker" msgstr "Wybieranie daty i godziny" -#: includes/fields/class-acf-field-true_false.php:36 +#: includes/fields/class-acf-field-true_false.php:25 msgid "True / False" msgstr "Prawda / Fałsz" -#: includes/fields/class-acf-field-true_false.php:94 -#: includes/fields/class-acf-field-true_false.php:174 includes/input.php:265 -#: pro/admin/views/html-settings-updates.php:93 -msgid "Yes" -msgstr "Tak" - -#: includes/fields/class-acf-field-true_false.php:142 +#: includes/fields/class-acf-field-true_false.php:127 msgid "Displays text alongside the checkbox" msgstr "" -#: includes/fields/class-acf-field-true_false.php:170 +#: includes/fields/class-acf-field-true_false.php:155 #, fuzzy msgid "On Text" msgstr "Tekst" -#: includes/fields/class-acf-field-true_false.php:171 +#: includes/fields/class-acf-field-true_false.php:156 msgid "Text shown when active" msgstr "" -#: includes/fields/class-acf-field-true_false.php:180 +#: includes/fields/class-acf-field-true_false.php:170 #, fuzzy msgid "Off Text" msgstr "Tekst" -#: includes/fields/class-acf-field-true_false.php:181 +#: includes/fields/class-acf-field-true_false.php:171 msgid "Text shown when inactive" msgstr "" -#: includes/fields/class-acf-field-url.php:36 +#: includes/fields/class-acf-field-url.php:25 msgid "Url" msgstr "Url" -#: includes/fields/class-acf-field-url.php:165 +#: includes/fields/class-acf-field-url.php:151 msgid "Value must be a valid URL" msgstr "Wartość musi być poprawnym adresem URL" -#: includes/fields/class-acf-field-user.php:36 includes/locations.php:95 +#: includes/fields/class-acf-field-user.php:25 includes/locations.php:95 msgid "User" msgstr "Użytkownik" -#: includes/fields/class-acf-field-user.php:408 +#: includes/fields/class-acf-field-user.php:394 msgid "Filter by role" msgstr "Filtruj wg roli" -#: includes/fields/class-acf-field-user.php:416 +#: includes/fields/class-acf-field-user.php:402 msgid "All user roles" msgstr "Wszystkie role użytkownika" -#: includes/fields/class-acf-field-wysiwyg.php:36 +#: includes/fields/class-acf-field-user.php:433 +#, fuzzy +msgid "User Array" +msgstr "Tablica pliku" + +#: includes/fields/class-acf-field-user.php:434 +#, fuzzy +msgid "User Object" +msgstr "Obiekt terminu (WP_Term)" + +#: includes/fields/class-acf-field-user.php:435 +#, fuzzy +msgid "User ID" +msgstr "Użytkownik" + +#: includes/fields/class-acf-field-wysiwyg.php:25 msgid "Wysiwyg Editor" msgstr "Edytor WYSIWYG" -#: includes/fields/class-acf-field-wysiwyg.php:385 +#: includes/fields/class-acf-field-wysiwyg.php:346 msgid "Visual" msgstr "Wizualny" -#: includes/fields/class-acf-field-wysiwyg.php:386 +#: includes/fields/class-acf-field-wysiwyg.php:347 msgctxt "Name for the Text editor tab (formerly HTML)" msgid "Text" msgstr "Edytor tekstowy" -#: includes/fields/class-acf-field-wysiwyg.php:392 +#: includes/fields/class-acf-field-wysiwyg.php:353 msgid "Click to initialize TinyMCE" msgstr "" -#: includes/fields/class-acf-field-wysiwyg.php:445 +#: includes/fields/class-acf-field-wysiwyg.php:406 msgid "Tabs" msgstr "Zakładki" -#: includes/fields/class-acf-field-wysiwyg.php:450 +#: includes/fields/class-acf-field-wysiwyg.php:411 msgid "Visual & Text" msgstr "Wizualny i Tekst" -#: includes/fields/class-acf-field-wysiwyg.php:451 +#: includes/fields/class-acf-field-wysiwyg.php:412 msgid "Visual Only" msgstr "Tylko wizualny" -#: includes/fields/class-acf-field-wysiwyg.php:452 +#: includes/fields/class-acf-field-wysiwyg.php:413 msgid "Text Only" msgstr "Tylko tekst" -#: includes/fields/class-acf-field-wysiwyg.php:459 +#: includes/fields/class-acf-field-wysiwyg.php:420 msgid "Toolbar" msgstr "Pasek narzędzi" -#: includes/fields/class-acf-field-wysiwyg.php:469 +#: includes/fields/class-acf-field-wysiwyg.php:435 msgid "Show Media Upload Buttons?" msgstr "Wyświetlić przyciski Wyślij / Wstaw media?" -#: includes/fields/class-acf-field-wysiwyg.php:479 +#: includes/fields/class-acf-field-wysiwyg.php:445 msgid "Delay initialization?" msgstr "" -#: includes/fields/class-acf-field-wysiwyg.php:480 +#: includes/fields/class-acf-field-wysiwyg.php:446 msgid "TinyMCE will not be initalized until field is clicked" msgstr "" -#: includes/forms/form-comment.php:166 includes/forms/form-post.php:303 -#: pro/admin/admin-options-page.php:304 +#: includes/forms/form-comment.php:166 includes/forms/form-post.php:305 +#: pro/admin/admin-options-page.php:308 msgid "Edit field group" msgstr "Edytuj grupę pól" @@ -2620,44 +2764,10 @@ msgstr "Aktualizuj" msgid "Post updated" msgstr "Wpis zaktualizowany" -#: includes/forms/form-front.php:229 +#: includes/forms/form-front.php:230 msgid "Spam Detected" msgstr "Wykryto spam" -#: includes/input.php:258 -msgid "Expand Details" -msgstr "Rozwiń szczegóły" - -#: includes/input.php:259 -msgid "Collapse Details" -msgstr "Zwiń szczegóły" - -#: includes/input.php:260 -msgid "Validation successful" -msgstr "Walidacja zakończona sukcesem" - -#: includes/input.php:261 includes/validation.php:285 -#: includes/validation.php:296 -msgid "Validation failed" -msgstr "Walidacja nie powiodła się" - -#: includes/input.php:262 -msgid "1 field requires attention" -msgstr "1 pole wymaga uwagi" - -#: includes/input.php:263 -#, php-format -msgid "%d fields require attention" -msgstr "%d pól wymaga uwagi" - -#: includes/input.php:264 -msgid "Restricted" -msgstr "Ograniczone" - -#: includes/input.php:268 -msgid "Cancel" -msgstr "" - #: includes/locations.php:93 includes/locations/class-acf-location-post.php:27 msgid "Post" msgstr "Wpis" @@ -2670,11 +2780,19 @@ msgstr "Strona" msgid "Forms" msgstr "Formularze" +#: includes/locations.php:247 +msgid "is equal to" +msgstr "jest równe" + +#: includes/locations.php:248 +msgid "is not equal to" +msgstr "jest inne niż" + #: includes/locations/class-acf-location-attachment.php:27 msgid "Attachment" msgstr "Załącznik" -#: includes/locations/class-acf-location-attachment.php:113 +#: includes/locations/class-acf-location-attachment.php:109 #, php-format msgid "All %s formats" msgstr "" @@ -2687,7 +2805,7 @@ msgstr "Komentarz" msgid "Current User Role" msgstr "Rola bieżącego użytkownika" -#: includes/locations/class-acf-location-current-user-role.php:114 +#: includes/locations/class-acf-location-current-user-role.php:110 msgid "Super Admin" msgstr "Super Administrator" @@ -2695,15 +2813,15 @@ msgstr "Super Administrator" msgid "Current User" msgstr "Bieżący użytkownik" -#: includes/locations/class-acf-location-current-user.php:101 +#: includes/locations/class-acf-location-current-user.php:97 msgid "Logged in" msgstr "Zalogowany" -#: includes/locations/class-acf-location-current-user.php:102 +#: includes/locations/class-acf-location-current-user.php:98 msgid "Viewing front end" msgstr "Podgląd strony" -#: includes/locations/class-acf-location-current-user.php:103 +#: includes/locations/class-acf-location-current-user.php:99 msgid "Viewing back end" msgstr "Podgląd zaplecza" @@ -2715,12 +2833,12 @@ msgstr "" msgid "Menu" msgstr "" -#: includes/locations/class-acf-location-nav-menu.php:113 +#: includes/locations/class-acf-location-nav-menu.php:109 #, fuzzy msgid "Menu Locations" msgstr "Pozycja" -#: includes/locations/class-acf-location-nav-menu.php:123 +#: includes/locations/class-acf-location-nav-menu.php:119 msgid "Menus" msgstr "" @@ -2732,8 +2850,8 @@ msgstr "Rodzic strony" msgid "Page Template" msgstr "Szablon strony" -#: includes/locations/class-acf-location-page-template.php:102 -#: includes/locations/class-acf-location-post-template.php:156 +#: includes/locations/class-acf-location-page-template.php:98 +#: includes/locations/class-acf-location-post-template.php:151 msgid "Default Template" msgstr "Domyślny szablon" @@ -2741,23 +2859,23 @@ msgstr "Domyślny szablon" msgid "Page Type" msgstr "Typ strony" -#: includes/locations/class-acf-location-page-type.php:149 +#: includes/locations/class-acf-location-page-type.php:146 msgid "Front Page" msgstr "Strona główna" -#: includes/locations/class-acf-location-page-type.php:150 +#: includes/locations/class-acf-location-page-type.php:147 msgid "Posts Page" msgstr "Strony postów" -#: includes/locations/class-acf-location-page-type.php:151 +#: includes/locations/class-acf-location-page-type.php:148 msgid "Top Level Page (no parent)" msgstr "Strona najwyższego poziomu (brak rodziców)" -#: includes/locations/class-acf-location-page-type.php:152 +#: includes/locations/class-acf-location-page-type.php:149 msgid "Parent Page (has children)" msgstr "Strona będąca rodzicem (ma dzieci)" -#: includes/locations/class-acf-location-page-type.php:153 +#: includes/locations/class-acf-location-page-type.php:150 msgid "Child Page (has parent)" msgstr "Strona będąca dzieckiem (ma rodziców)" @@ -2777,24 +2895,20 @@ msgstr "Status wpisu" msgid "Post Taxonomy" msgstr "Taksonomia wpisu" -#: includes/locations/class-acf-location-post-template.php:29 +#: includes/locations/class-acf-location-post-template.php:27 #, fuzzy msgid "Post Template" msgstr "Szablon strony" -#: includes/locations/class-acf-location-taxonomy.php:27 -msgid "Taxonomy Term" -msgstr "Termin taksonomii" - #: includes/locations/class-acf-location-user-form.php:27 msgid "User Form" msgstr "Formularz użytkownika" -#: includes/locations/class-acf-location-user-form.php:92 +#: includes/locations/class-acf-location-user-form.php:88 msgid "Add / Edit" msgstr "Dodaj / Edytuj" -#: includes/locations/class-acf-location-user-form.php:93 +#: includes/locations/class-acf-location-user-form.php:89 msgid "Register" msgstr "Rejestracja" @@ -2806,16 +2920,6 @@ msgstr "Rola użytkownika" msgid "Widget" msgstr "Widżet" -#: includes/media.php:55 -msgctxt "verb" -msgid "Edit" -msgstr "Edytuj" - -#: includes/media.php:56 -msgctxt "verb" -msgid "Update" -msgstr "Aktualizuj" - #: includes/validation.php:364 #, php-format msgid "%s value is required" @@ -2826,11 +2930,11 @@ msgstr "%s wartość jest wymagana" msgid "Advanced Custom Fields PRO" msgstr "Advanced Custom Fields PRO" -#: pro/admin/admin-options-page.php:196 +#: pro/admin/admin-options-page.php:200 msgid "Publish" msgstr "Opublikuj" -#: pro/admin/admin-options-page.php:202 +#: pro/admin/admin-options-page.php:206 #, php-format msgid "" "No Custom Field Groups found for this options page. Create a " @@ -2844,23 +2948,23 @@ msgid "Error. Could not connect to update server" msgstr "Błąd. Nie można połączyć z serwerem aktualizacji" #: pro/admin/admin-settings-updates.php:162 -#: pro/admin/views/html-settings-updates.php:17 +#: pro/admin/views/html-settings-updates.php:13 msgid "Updates" msgstr "Aktualizacje" -#: pro/admin/views/html-settings-updates.php:11 +#: pro/admin/views/html-settings-updates.php:7 msgid "Deactivate License" msgstr "Deaktywuj licencje" -#: pro/admin/views/html-settings-updates.php:11 +#: pro/admin/views/html-settings-updates.php:7 msgid "Activate License" msgstr "Aktywuj licencje" -#: pro/admin/views/html-settings-updates.php:21 +#: pro/admin/views/html-settings-updates.php:17 msgid "License Information" msgstr "Informacje licencyjne" -#: pro/admin/views/html-settings-updates.php:24 +#: pro/admin/views/html-settings-updates.php:20 #, php-format msgid "" "To unlock updates, please enter your license key below. If you don't have a " @@ -2871,212 +2975,209 @@ msgstr "" "Jeśli nie posiadasz klucza prosimy zapoznać się ze szczegółami i cenami." -#: pro/admin/views/html-settings-updates.php:33 +#: pro/admin/views/html-settings-updates.php:29 msgid "License Key" msgstr "Klucz licencji" -#: pro/admin/views/html-settings-updates.php:65 +#: pro/admin/views/html-settings-updates.php:61 msgid "Update Information" msgstr "Informacje o aktualizacji" -#: pro/admin/views/html-settings-updates.php:72 +#: pro/admin/views/html-settings-updates.php:68 msgid "Current Version" msgstr "Zainstalowana wersja" -#: pro/admin/views/html-settings-updates.php:80 +#: pro/admin/views/html-settings-updates.php:76 msgid "Latest Version" msgstr "Ostatnia wersja" -#: pro/admin/views/html-settings-updates.php:88 +#: pro/admin/views/html-settings-updates.php:84 msgid "Update Available" msgstr "Aktualizacja dostępna" -#: pro/admin/views/html-settings-updates.php:96 +#: pro/admin/views/html-settings-updates.php:92 msgid "Update Plugin" msgstr "Aktualizuj dodatek" -#: pro/admin/views/html-settings-updates.php:98 +#: pro/admin/views/html-settings-updates.php:94 msgid "Please enter your license key above to unlock updates" msgstr "Proszę wpisać swój numer licencji powyżej aby odblokować aktualizacje" -#: pro/admin/views/html-settings-updates.php:104 +#: pro/admin/views/html-settings-updates.php:100 msgid "Check Again" msgstr "Sprawdź ponownie" -#: pro/admin/views/html-settings-updates.php:121 +#: pro/admin/views/html-settings-updates.php:117 msgid "Upgrade Notice" msgstr "Informacje o aktualizacji" -#: pro/fields/class-acf-field-clone.php:36 +#: pro/fields/class-acf-field-clone.php:25 msgctxt "noun" msgid "Clone" msgstr "Klonuj" -#: pro/fields/class-acf-field-clone.php:858 +#: pro/fields/class-acf-field-clone.php:812 msgid "Select one or more fields you wish to clone" msgstr "Wybierz jedno lub więcej pól które chcesz sklonować" -#: pro/fields/class-acf-field-clone.php:875 +#: pro/fields/class-acf-field-clone.php:829 msgid "Display" msgstr "Wyświetl" -#: pro/fields/class-acf-field-clone.php:876 +#: pro/fields/class-acf-field-clone.php:830 msgid "Specify the style used to render the clone field" msgstr "Określ styl wykorzystywany do tworzenia klonowanych pól" -#: pro/fields/class-acf-field-clone.php:881 +#: pro/fields/class-acf-field-clone.php:835 msgid "Group (displays selected fields in a group within this field)" msgstr "Grupuj (wyświetl wybrane pola w grupie)" -#: pro/fields/class-acf-field-clone.php:882 +#: pro/fields/class-acf-field-clone.php:836 msgid "Seamless (replaces this field with selected fields)" msgstr "Ujednolicenie (zastępuje to pole wybranymi polami)" -#: pro/fields/class-acf-field-clone.php:903 +#: pro/fields/class-acf-field-clone.php:857 #, php-format msgid "Labels will be displayed as %s" msgstr "Etykiety będą wyświetlane jako %s" -#: pro/fields/class-acf-field-clone.php:906 +#: pro/fields/class-acf-field-clone.php:860 msgid "Prefix Field Labels" msgstr "Prefiks Etykiet Pól" -#: pro/fields/class-acf-field-clone.php:917 +#: pro/fields/class-acf-field-clone.php:871 #, php-format msgid "Values will be saved as %s" msgstr "Wartości będą zapisane jako %s" -#: pro/fields/class-acf-field-clone.php:920 +#: pro/fields/class-acf-field-clone.php:874 msgid "Prefix Field Names" msgstr "Prefiks Nazw Pól" -#: pro/fields/class-acf-field-clone.php:1038 +#: pro/fields/class-acf-field-clone.php:992 #, fuzzy msgid "Unknown field" msgstr "Pod polami" -#: pro/fields/class-acf-field-clone.php:1077 +#: pro/fields/class-acf-field-clone.php:1031 #, fuzzy msgid "Unknown field group" msgstr "Synchronizuj grupę pól" -#: pro/fields/class-acf-field-clone.php:1081 +#: pro/fields/class-acf-field-clone.php:1035 #, php-format msgid "All fields from %s field group" msgstr "Wszystkie pola od grupy pola %s" -#: pro/fields/class-acf-field-flexible-content.php:42 -#: pro/fields/class-acf-field-repeater.php:230 -#: pro/fields/class-acf-field-repeater.php:534 +#: pro/fields/class-acf-field-flexible-content.php:31 +#: pro/fields/class-acf-field-repeater.php:193 +#: pro/fields/class-acf-field-repeater.php:463 msgid "Add Row" msgstr "Dodaj wiersz" -#: pro/fields/class-acf-field-flexible-content.php:45 +#: pro/fields/class-acf-field-flexible-content.php:73 +#: pro/fields/class-acf-field-flexible-content.php:938 +#: pro/fields/class-acf-field-flexible-content.php:1020 +#, fuzzy msgid "layout" -msgstr "szablon" +msgid_plural "layouts" +msgstr[0] "szablon" +msgstr[1] "szablon" +msgstr[2] "szablon" -#: pro/fields/class-acf-field-flexible-content.php:46 +#: pro/fields/class-acf-field-flexible-content.php:74 msgid "layouts" msgstr "szablony" -#: pro/fields/class-acf-field-flexible-content.php:47 -msgid "remove {layout}?" -msgstr "usunąć {layout}?" - -#: pro/fields/class-acf-field-flexible-content.php:48 -msgid "This field requires at least {min} {identifier}" -msgstr "To pole wymaga przynamniej {min} {identifier}" - -#: pro/fields/class-acf-field-flexible-content.php:49 -msgid "This field has a limit of {max} {identifier}" -msgstr "To pole ma ograniczenie {max} {identifier}" - -#: pro/fields/class-acf-field-flexible-content.php:50 +#: pro/fields/class-acf-field-flexible-content.php:77 +#: pro/fields/class-acf-field-flexible-content.php:937 +#: pro/fields/class-acf-field-flexible-content.php:1019 msgid "This field requires at least {min} {label} {identifier}" msgstr "To pole wymaga przynajmniej {min} {label} {identifier}" -#: pro/fields/class-acf-field-flexible-content.php:51 -msgid "Maximum {label} limit reached ({max} {identifier})" -msgstr "Maksimum {label} limit osiągnięty ({max} {identifier})" +#: pro/fields/class-acf-field-flexible-content.php:78 +#, fuzzy +msgid "This field has a limit of {max} {label} {identifier}" +msgstr "To pole ma ograniczenie {max} {identifier}" -#: pro/fields/class-acf-field-flexible-content.php:52 +#: pro/fields/class-acf-field-flexible-content.php:81 msgid "{available} {label} {identifier} available (max {max})" msgstr "" "{available} {label} {identifier} dostępne\n" " (max {max})" -#: pro/fields/class-acf-field-flexible-content.php:53 +#: pro/fields/class-acf-field-flexible-content.php:82 msgid "{required} {label} {identifier} required (min {min})" msgstr "{required} {label} {identifier} wymagane (min {min})" -#: pro/fields/class-acf-field-flexible-content.php:54 +#: pro/fields/class-acf-field-flexible-content.php:85 msgid "Flexible Content requires at least 1 layout" msgstr "Elastyczne pole wymaga przynajmniej 1 szablonu" -#: pro/fields/class-acf-field-flexible-content.php:288 +#: pro/fields/class-acf-field-flexible-content.php:302 #, php-format msgid "Click the \"%s\" button below to start creating your layout" msgstr "Kliknij przycisk \"%s\" poniżej aby zacząć tworzyć nowy szablon" -#: pro/fields/class-acf-field-flexible-content.php:423 +#: pro/fields/class-acf-field-flexible-content.php:427 msgid "Add layout" msgstr "Dodaj szablon" -#: pro/fields/class-acf-field-flexible-content.php:424 +#: pro/fields/class-acf-field-flexible-content.php:428 msgid "Remove layout" msgstr "Usuń szablon" -#: pro/fields/class-acf-field-flexible-content.php:425 -#: pro/fields/class-acf-field-repeater.php:360 +#: pro/fields/class-acf-field-flexible-content.php:429 +#: pro/fields/class-acf-field-repeater.php:296 msgid "Click to toggle" msgstr "Kliknij, aby przełączyć" -#: pro/fields/class-acf-field-flexible-content.php:571 +#: pro/fields/class-acf-field-flexible-content.php:569 msgid "Reorder Layout" msgstr "Zmień kolejność szablonów" -#: pro/fields/class-acf-field-flexible-content.php:571 +#: pro/fields/class-acf-field-flexible-content.php:569 msgid "Reorder" msgstr "Zmień kolejność" -#: pro/fields/class-acf-field-flexible-content.php:572 +#: pro/fields/class-acf-field-flexible-content.php:570 msgid "Delete Layout" msgstr "Usuń szablon" -#: pro/fields/class-acf-field-flexible-content.php:573 +#: pro/fields/class-acf-field-flexible-content.php:571 msgid "Duplicate Layout" msgstr "Duplikuj szablon" -#: pro/fields/class-acf-field-flexible-content.php:574 +#: pro/fields/class-acf-field-flexible-content.php:572 msgid "Add New Layout" msgstr "Dodaj nowy szablon" -#: pro/fields/class-acf-field-flexible-content.php:645 +#: pro/fields/class-acf-field-flexible-content.php:643 msgid "Min" msgstr "Min" -#: pro/fields/class-acf-field-flexible-content.php:658 +#: pro/fields/class-acf-field-flexible-content.php:656 msgid "Max" msgstr "Max" -#: pro/fields/class-acf-field-flexible-content.php:685 -#: pro/fields/class-acf-field-repeater.php:530 +#: pro/fields/class-acf-field-flexible-content.php:683 +#: pro/fields/class-acf-field-repeater.php:459 msgid "Button Label" msgstr "Tekst przycisku" -#: pro/fields/class-acf-field-flexible-content.php:694 +#: pro/fields/class-acf-field-flexible-content.php:692 msgid "Minimum Layouts" msgstr "Minimalna liczba szablonów" -#: pro/fields/class-acf-field-flexible-content.php:703 +#: pro/fields/class-acf-field-flexible-content.php:701 msgid "Maximum Layouts" msgstr "Maksymalna liczba szablonów" -#: pro/fields/class-acf-field-gallery.php:52 +#: pro/fields/class-acf-field-gallery.php:71 msgid "Add Image to Gallery" msgstr "Dodaj zdjęcie do galerii" -#: pro/fields/class-acf-field-gallery.php:56 +#: pro/fields/class-acf-field-gallery.php:72 msgid "Maximum selection reached" msgstr "Maksymalny wybór osiągnięty" @@ -3144,40 +3245,41 @@ msgstr "Dodaj na końcu" msgid "Prepend to the beginning" msgstr "Dodaj do początku" -#: pro/fields/class-acf-field-repeater.php:47 +#: pro/fields/class-acf-field-repeater.php:65 +#: pro/fields/class-acf-field-repeater.php:656 msgid "Minimum rows reached ({min} rows)" msgstr "Poniżej minimalnej liczba wierszy ( {min} wierszy )" -#: pro/fields/class-acf-field-repeater.php:48 +#: pro/fields/class-acf-field-repeater.php:66 msgid "Maximum rows reached ({max} rows)" msgstr "Przekroczono maksymalną liczba wierszy ( {max} wierszy)" -#: pro/fields/class-acf-field-repeater.php:405 +#: pro/fields/class-acf-field-repeater.php:333 msgid "Add row" msgstr "Dodaj wiersz" -#: pro/fields/class-acf-field-repeater.php:406 +#: pro/fields/class-acf-field-repeater.php:334 msgid "Remove row" msgstr "Usuń wiersz" -#: pro/fields/class-acf-field-repeater.php:483 +#: pro/fields/class-acf-field-repeater.php:412 msgid "Collapsed" msgstr "Zwinięty" -#: pro/fields/class-acf-field-repeater.php:484 +#: pro/fields/class-acf-field-repeater.php:413 msgid "Select a sub field to show when row is collapsed" msgstr "" "Wybierz pole podrzędne, które mają być pokazane kiedy wiersz jest zwinięty" -#: pro/fields/class-acf-field-repeater.php:494 +#: pro/fields/class-acf-field-repeater.php:423 msgid "Minimum Rows" msgstr "Minimalna liczba rzędów" -#: pro/fields/class-acf-field-repeater.php:504 +#: pro/fields/class-acf-field-repeater.php:433 msgid "Maximum Rows" msgstr "Maksymalna liczba rzędów" -#: pro/locations/class-acf-location-options-page.php:70 +#: pro/locations/class-acf-location-options-page.php:79 msgid "No options pages exist" msgstr "Strona opcji nie istnieje" @@ -3212,6 +3314,72 @@ msgstr "Elliot Condon" msgid "http://www.elliotcondon.com/" msgstr "http://www.elliotcondon.com/" +#~ msgid "Parent fields" +#~ msgstr "Pola nadrzędne" + +#~ msgid "Sibling fields" +#~ msgstr "Pola tego samego poziomu" + +#~ msgid "Export Field Groups to PHP" +#~ msgstr "Eksportuj grupy pól do PHP" + +#~ msgid "Download export file" +#~ msgstr "Pobierz plik eksportu" + +#~ msgid "Generate export code" +#~ msgstr "Generuj kod eksportu" + +#~ msgid "Import" +#~ msgstr "Import" + +#~ msgid "Locating" +#~ msgstr "Lokalizacja" + +#~ msgid "Error." +#~ msgstr "Błąd." + +#~ msgid "No embed found for the given URL." +#~ msgstr "Nie znaleziono osadzenia dla podanego URLa." + +#~ msgid "Minimum values reached ( {min} values )" +#~ msgstr "Minimalna wartość została przekroczona ( {min} )" + +#~ msgid "" +#~ "The tab field will display incorrectly when added to a Table style " +#~ "repeater field or flexible content field layout" +#~ msgstr "" +#~ "Pole zakładki będzie wyświetlane nieprawidłowo jeśli zostanie dodano do " +#~ "pola powtarzalnego wyświetlanego jako tabela lub do elastycznego pola" + +#~ msgid "" +#~ "Use \"Tab Fields\" to better organize your edit screen by grouping fields " +#~ "together." +#~ msgstr "Użyj \"Pola zakładki\" aby uporządkować ekran edycji grupując pola." + +#~ msgid "" +#~ "All fields following this \"tab field\" (or until another \"tab field\" " +#~ "is defined) will be grouped together using this field's label as the tab " +#~ "heading." +#~ msgstr "" +#~ "Wszystkie pola po tym \"polu zakładki\" (lub przed następnym \"polem " +#~ "zakładki\") zostaną zgrupowane razem używając etykiety tego pola jako " +#~ "nagłówka." + +#~ msgid "None" +#~ msgstr "Brak" + +#~ msgid "Taxonomy Term" +#~ msgstr "Termin taksonomii" + +#~ msgid "remove {layout}?" +#~ msgstr "usunąć {layout}?" + +#~ msgid "This field requires at least {min} {identifier}" +#~ msgstr "To pole wymaga przynamniej {min} {identifier}" + +#~ msgid "Maximum {label} limit reached ({max} {identifier})" +#~ msgstr "Maksimum {label} limit osiągnięty ({max} {identifier})" + #~ msgid "Disabled" #~ msgstr "Wyłączone" @@ -3529,9 +3697,6 @@ msgstr "http://www.elliotcondon.com/" #~ msgid "Navigate to the" #~ msgstr "Przejdź do" -#~ msgid "Import Tool" -#~ msgstr "Narzędzie Importu" - #~ msgid "and select WordPress" #~ msgstr "i wybierz Wordpress" @@ -3550,9 +3715,6 @@ msgstr "http://www.elliotcondon.com/" #~ msgid "ACF will create the PHP code to include in your theme" #~ msgstr "ACF wygeneruje kod PHP, który możesz wkleić do swego szablonu" -#~ msgid "Create PHP" -#~ msgstr "Utwórz PHP" - #~ msgid "Register Field Groups with PHP" #~ msgstr "Utwórz grupę pól z PHP" diff --git a/lang/acf-ru_RU.mo b/lang/acf-ru_RU.mo index 2e144e3a228f8aab8309f80cc108a50e40301759..7a3a8789301bf17702bb720f63621acf3753eb12 100644 GIT binary patch delta 4946 zcmXZfd3aA(9>?)RQe!ff$R-k52|{F3OE4w2YV>)UNK0GBRzqW|^ifOt&m)lQ0etqguFfqVM zFvcvKY0Ue02%BSvS;o}EVHkja$7r03E%0mXfmg6K#>_S*6o+6qPC*~c!&PIjq%5KFbp#>0+(VO7Gnrr$C~)ZdG>lA z)OF2J6G*`ZI1pnnbDm>oxR#DObQHSo#X#bt*d8lU14qp_rXzO8aLmH`xCZ-RF=}N# z3+zHdTw}2%{hcrqN1`Th)u9nf!*8LTKv&cQd%KQ6%{U9S1uIZ1Jb?S~FlvhyEwXMv zWnwRO!3*ezjTZBV?XVg4M`gyDMuTUVb*OQqki7r9az-m;6H@a~#k}1a=bUTh=02f?9PkeyY@v-~)GuK*6c{u$I zFc8CClTZWoM%_OUb^lP*z{6d~p%yd^y%^u*($LB_qV{N?8{fso#9qs6%HmMP_9p6q zpJD^dM%}*!z43cg%1@zEejB6EcR2-!NvMf`jLjL}tfUc)2QdjRqcRb?!lt@4s`&b% z9yA{H;FTDJC8&v(hM27~>aGiqw z#7j{R+>CXx)b$vuNH1Y~{8O%da1YdqvrsRpB5aEnP{kRTXSa9*b|?Nh&oSmD8ewbf z4Fm8u;u)yp=6qqRI3HQ8+3Ln=U)mMEjavC|)K-kedN>cYpgin}J6%22+H?OZYNDAA z4W0iDsB?J=Ra_qH>>JSsBZ$*+IF7~ncorw(sITlqZXn0WRACr;=G*?psOKf1`a5F} z9E2LrSw};Abp)s4SvMZM-rn#&>cTnL5O-i)HDk(AMe4cH7FRH;mO7!Xe+!3U7HZ7J8Ht;p=#sY^Uv9TudT)mrXviMqAB5pqB3?7m4R+M?aI^9m$*M_!lT{(1?WS(9CiIB*Ihf=e+_tujySxJT1k^) zd%oXB?R6IR!yFuekFg#O|Hj6d7(jd(o8u$Y0-Efy_P~zB!>~QBK~3=7F7mIGnQ!gh zHo+Q%DX6_m!{;kP73XO5$AzdZ%6Bcr#l&YZ1jp<)<`tZe*?1a9s(+6$)Vrxb-a%%r zQ(^~9+)JU*k%X%LGJFXiVMA1E~n1G+VpZ|c7#K$ofAEF;N z{myPdN7VECqwdc@w!kqHXz0cjw!`d3rLY3)<1^F^^$*$?M>EvkIj9Hbx^BW?;$jTM z6G(E*9h`(k-`iqN{K1%b;(1t$@l6R0-B^a&(@Lz1p8vLc?T6}bjvBa|8xKR(#$*h` zMXp8IlDHgI)YT8!OeJDC@lfoC(=d|pO$80@iRX{J_pupj1u>}1bVp_4T~sC}quv+u zQ3G5;|7uL8%$}O)!*;9Euoj;W#Zdgfjpv~jv=SYi#~n0ud=8*ic-D=dxpBY|`@nYC zhtGTA5X?jE@e4=oDGEXz=gz1i9D#8-4ZU$2YC;EGj~yldn!p7*{))Fzsd?ik`ySYW zZHTX+GSu*x9jG&E!ozShPC_rdh2dC*I;KJ8c5C9XHgPJp!vW}v+2!P4sn|eAGu)3# z^(~CT8pmxh#^7q=6l{f+I37d)V}IE!L0w;rW3dANjD1h=-xXW47`qb3|7`F75H*pn z92zg{27DExPub%)4%-l~!6ZC|{n78Vt>zC<$MH7m{_1CpNyZe+z*!iN_b~vQp0)8y zs4W?Vy5Ct%Lo45k8t^pg{Q8`u(lHse*V9oGxrX7`=)BEbH|$M30BhnFw|^(55|^X4 zChCG6Cmuf{ehb5O{!h{frK1Y{F|fiO$5`x1oPuxSLf0Fp)OEjTf607=TH$_Fah<^i zcnu@a7YM{rcB5i%y{kC&WN3CoK`r$~| zEUZVIjT$f?b=`h9K7!hs8<@cOCgh6!mHHa?BK`!s;4z$u0l$zg%)`m}7)Ms84z3!r zmiYQLd;Nk+JK^J)On;s0_BUcGrV;;$M= z*1%7(A&oBg6x$!sHg!m}N;KO_5Uwahw zo4qj^+Yo19B<7%wODSri_i!qj-|d_5W1K~J8Uyj&`_?I_6)!^-?;Z@m1`q56;xUo9 zuR}vCnSrfvIi}!Y)Sd-Bv_HMx!*;}bFc7Oy8S$yI8A(K)mciHw*P{?(mTEj4=7X(BBxuCcp0&3xsLW(u$Oe*7&8EW}baWZU5jV$$H!Wv(> zp-JWnnuhvv3$(;iM9mt*1x<6uC3AN)7e*X;&F9;B{(7I^xzF>QbAIP{o_p_|+B*NK zt+Q!zh?8K9Sv13#akvj-vGYu00&paT;5*nFXJH%s8ehPR_zcF*GNviMie7Xu5DT#$ zmS7O>bo-B@Kk=1W#xb2}+@<3=jGJwY2ea@1PQ`}!;v8dw@imOZY>dJMn1H1ifmhKF z|Bz>|_n@w8fto-XHpZbChuL|Ko#9G4>eKP1>rMb@iYQIu@mTydSE}-F{l~mptfKUYK41n5AH{8 z(Y*QAHK!Xc>4IJq=A^MK)z^ zQN=b0^}vs?G3KN0--sUk9+mRrsFdHt7z|i!OmFOnn)nA8%lKw7jWFDco$&%H6X8p2 zsym>HZy@SH6HyOdj7_i%HIb9}G~RRL)=SwI;#Ac26R|xmL`}2;9o=|_hEiIMT1hQx z0wK#dI@lHm;sDeN)?$CWk9rUEDlq0L%)^Gb47C--7=dM|OrF7K(YMepD7ldQtD1+= zp@B199SkO3fO_D1Y=Gsim8c>;k6rMO%k6`EqE?)PdQlZ)M?8xv&X5&$i`U@u#6Pca zj7g>u@wvSr1Md+}M;*5*D{U1QA&WJe+_>*5yTZY!m5)Mg#dr+B*{B5-Vj6CB_4&e{ z``)ODW;--={@0++<#AMT`4rhVq6edh(=ijr<6Jz2lQCGKN|JC z1XO=AzJS9}<2kEnXs-@nE}nAZ;cM*;Z=f!miQ%{f6MT$0jH(geb+)(~qiU%e>iU;( zH0Gctei;W~-}UxQxf1K?{6C_h;_};IOf(L|IQ%D4FJ=Sk!F@K`Q!)lsRMRjJS0Jwj zvjtTs{^)M;}7tv`)qrq1DJ>DH#6KA6` zu^fkDIrhiMQe)o0@u-ZQLuH`HHoNk4Y)Cu=HQ{k?e;x)BFGO9x&h?vZ?7s%wM@ItQ zL#?FwH}-rFM(uSDzJkl}b*#Yv9QCb@voVDD0>7sxAw%Y#3Qi_E=Nu9^mg*E zl-1Iqy=}h3z6sM%d)F6#UlFP}$6+weMQu@$YdPi^b%{ryGLebe!?#hz^dYKtK6O9;0i%hJ zU_3s+AdLCmZb28+^M|1B&qTJsG4ImQjf-rD*^WwK6*j`hs2hTRurH1lsJ)wldSHR; zIt(K&#ZWwoB*)ysDOmh(Tg-|3j7cP(jrADcl+nN1!@JcsLZ6IGBFyJ ziK(df#T?WC=P}ra6LG+vnwAIcR`tbtd_Dr3;+t+f8?~Ut=;%Cdp`qim2eraeZv5Dd zgAUmTCgC7H?}a0<5Vgm3D(xu>MIGm4R1uEB1k6PbmY^oI$F;JO{A&Vd=@^AKQK{*F z*uDogViNI1REC-yu>&QeCOi`Vf$yU~-as!_qmF6lPj+kK@hRdy*aBA3yNQB^i`J@9YD8R&-_-TtlE zkN7ZZYnq+2q6;~0l&#A!Gf=ek})r7rb?{UtLQwZh$~ z;yQ_q@iIoC&qaG2n_(DnIyS*94Al9bPD6XX*!`dc+Ylc>4OD|F(hk44-*&F)sFl5n zK{(bm2Lp)nQ3DpCuG{U#2T)sc4cjrk3A=`0sa=baScdUfg&wSb*FHEBwdc=cOB{~6?_U^!OWb%Hwje%;aroda z`PUvbyJv4q!6f2LjK*cC<5G^A=pD?(S{#HQ+~;Q*p1@EX{lMy=R{R;Ncz0k3HmbH0 zh{yKC105P#$#m?13$ZuuN9|eYf9+4N*Rd1v4h+R=R7N}xZAKDNr)4;%;A#xSE9k{X zr~$)kIC^YZUrZ%-iXPcl=ylZj&G?^P`6%p6JRKY2E>s4Nxn4v~{5I-1`8>A27s9bV zaTJclM5I>D61TqqpCI0V)Rbd3(+H=d43)Ces2hB1ZP7h}4TwFc+VHylEm0F{kD7Q2 zYNBcG=NYK$GcgFqp)!|?n)ni|uWyz0ZpXK%2ku90!Ab0eF(s2)&+F&kzHMTXw_ReF Z#H5no_uldN6qn5WxQ$Oq>5Q%8{||>6jC}wA diff --git a/lang/acf-ru_RU.po b/lang/acf-ru_RU.po index eb3ee86..e16fa20 100644 --- a/lang/acf-ru_RU.po +++ b/lang/acf-ru_RU.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" "POT-Creation-Date: 2017-10-24 23:11+0300\n" -"PO-Revision-Date: 2018-02-06 10:06+1000\n" +"PO-Revision-Date: 2018-07-25 10:10+1000\n" "Last-Translator: Elliot Condon \n" "Language-Team: \n" "Language: ru_RU\n" @@ -1384,7 +1384,7 @@ msgstr "red : Красный" #: includes/fields/class-acf-field-taxonomy.php:793 #: includes/fields/class-acf-field-user.php:408 msgid "Allow Null?" -msgstr "Разрешить пусто значение?" +msgstr "Разрешить пустое значение?" #: includes/fields/class-acf-field-button-group.php:168 #: includes/fields/class-acf-field-checkbox.php:375 @@ -2151,7 +2151,7 @@ msgstr "Все таксономии" #: includes/fields/class-acf-field-page_link.php:523 msgid "Allow Archives URLs" -msgstr "Рвзрешить ссылки на архивы" +msgstr "Разрешить ссылки на архивы" #: includes/fields/class-acf-field-page_link.php:533 #: includes/fields/class-acf-field-post_object.php:422 diff --git a/pro/admin/admin-settings-updates.php b/pro/admin/admin-settings-updates.php index 019a9ab..3b73fee 100644 --- a/pro/admin/admin-settings-updates.php +++ b/pro/admin/admin-settings-updates.php @@ -185,17 +185,13 @@ class acf_admin_settings_updates { // activate if( acf_verify_nonce('activate_pro_licence') ) { - $this->activate_pro_licence(); // deactivate } elseif( acf_verify_nonce('deactivate_pro_licence') ) { - $this->deactivate_pro_licence(); - } - // vars $license = acf_pro_get_license_key(); $this->view = array( @@ -208,23 +204,18 @@ class acf_admin_settings_updates { 'upgrade_notice' => '' ); - - // vars - $info = acf_updates()->get_plugin_info('pro'); - + // get plugin updates + $force_check = !empty( $_GET['force-check'] ); + $info = acf_updates()->get_plugin_info('pro', $force_check); // error if( is_wp_error($info) ) { - return $this->show_error( $info ); - } - - + // add info to view $this->view['remote_version'] = $info['version']; - // add changelog if the remote version is '>' than the current version $version = acf_get_setting('version'); @@ -236,50 +227,19 @@ class acf_admin_settings_updates { $this->view['changelog'] = $this->get_changelog_section($info['changelog'], $info['version']); $this->view['upgrade_notice'] = $this->get_changelog_section($info['upgrade_notice'], $info['version']); - - // refresh transient - // - avoids new version not available in plugin update list - // - only request if license is active + // refresh transient if: + // a) A license is active (can get update) + // b) No update exists, or the update version is stale + $basename = acf_get_setting('basename'); + $update = acf_updates()->get_plugin_update( $basename ); if( $license ) { - $this->refresh_plugins_transient(); + if( !$update || $update['new_version'] !== $info['version'] ) { + acf_updates()->refresh_plugins_transient(); + } } } } - - /** - * refresh_plugins_transient - * - * Checks the site transient 'update_plugins' and compares the cached new_version against the plugin-info version. - * If the cached version is older, a new version is available, and the transient is refreshed. - * - * @date 12/7/18 - * @since 5.6.9 - * - * @param void - * @return void - */ - - function refresh_plugins_transient() { - - // vars - $remote_version = $this->view['remote_version']; - $basename = acf_get_setting('basename'); - $transient = get_site_transient('update_plugins'); - $transient_version = 0; - - // get transient version - if( isset($transient->response[ $basename ]->new_version) ) { - $transient_version = $transient->response[ $basename ]->new_version; - } - - // return true if a newer $remote_version exists - if( acf_version_compare($remote_version, '>', $transient_version) ) { - acf_updates()->refresh_plugins_transient(); - } - } - - /* * activate_pro_licence * diff --git a/pro/assets/js/acf-pro-input.js b/pro/assets/js/acf-pro-input.js index e2a33b3..01e436a 100644 --- a/pro/assets/js/acf-pro-input.js +++ b/pro/assets/js/acf-pro-input.js @@ -123,7 +123,7 @@ // disable clone acf.disable( this.$clone(), this.cid ); - + // render this.render(); }, @@ -200,33 +200,34 @@ return false; } - // vars - var $clone = this.$clone(); - // defaults args = acf.parseArgs(args, { - before: $clone + before: false }); // add row var $el = acf.duplicate({ - target: $clone, - append: function( $el, $el2 ){ + target: this.$clone(), + append: this.proxy(function( $el, $el2 ){ + + // append + if( args.before ) { + args.before.before( $el2 ); + } else { + $el.before( $el2 ); + } // remove clone class $el2.removeClass('acf-clone'); - // append - args.before.before( $el2 ); - } + // enable + acf.enable( $el2, this.cid ); + + // render + this.render(); + }) }); - // enable - acf.enable_form( $el, this.cid ); - - // update order - this.render(); - // trigger change for validation errors this.$input().trigger('change'); @@ -336,7 +337,7 @@ } }, - onShow: function( e, context ){ + onShow: function( e, $el, context ){ // get sub fields var fields = acf.getFields({ @@ -670,7 +671,7 @@ } }, - onShow: function( e, context ){ + onShow: function( e, $el, context ){ // get sub fields var fields = acf.getFields({ @@ -764,9 +765,6 @@ before: false }); - // append - args.append = this.$layoutsWrap(); - // validate if( !this.allowAdd() ) { return false; @@ -775,22 +773,23 @@ // add row var $el = acf.duplicate({ target: this.$clone( args.layout ), - append: function( $el, $el2 ){ + append: this.proxy(function( $el, $el2 ){ + // append if( args.before ) { args.before.before( $el2 ); } else { - args.append.append( $el2 ); + this.$layoutsWrap().append( $el2 ); } - } + + // enable + acf.enable( $el2, this.cid ); + + // render + this.render(); + }) }); - // enable - acf.enable_form( $el, this.cid ); - - // update order - this.render(); - // trigger change for validation errors this.$input().trigger('change'); diff --git a/pro/assets/js/acf-pro-input.min.js b/pro/assets/js/acf-pro-input.min.js index 475c22c..a332144 100644 --- a/pro/assets/js/acf-pro-input.min.js +++ b/pro/assets/js/acf-pro-input.min.js @@ -1 +1 @@ -!function($){var t=acf.Field.extend({type:"repeater",wait:"",events:{'click a[data-event="add-row"]':"onClickAdd",'click a[data-event="remove-row"]':"onClickRemove",'click a[data-event="collapse-row"]':"onClickCollapse",showField:"onShow",unloadField:"onUnload",mouseover:"onHover",unloadField:"onUnload"},$control:function(){return this.$(".acf-repeater:first")},$table:function(){return this.$("table:first")},$tbody:function(){return this.$("tbody:first")},$rows:function(){return this.$("tbody:first > tr").not(".acf-clone")},$row:function(t){return this.$("tbody:first > tr:eq("+t+")")},$clone:function(){return this.$("tbody:first > tr.acf-clone")},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-actions:last .button")},getValue:function(){return this.$rows().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||tthis.val()},addSortable:function(t){1!=this.get("max")&&this.$tbody().sortable({items:"> tr",handle:"> td.order",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:function(e,a){t.render()},update:function(e,a){t.$input().trigger("change")}})},addCollapsed:function(){var t=e.load(this.get("key"));if(!t)return!1;this.$rows().each(function(e){t.indexOf(e)>-1&&$(this).addClass("-collapsed")})},addUnscopedEvents:function(t){this.on("invalidField",".acf-row",function(e){var a=$(this);t.isCollapsed(a)&&t.expand(a)})},initialize:function(){this.addUnscopedEvents(this),this.addCollapsed(),acf.disable(this.$clone(),this.cid),this.render()},render:function(){this.$rows().each(function(t){$(this).find("> .order > span").html(t+1)}),0==this.val()?this.$control().addClass("-empty"):this.$control().removeClass("-empty"),this.allowAdd()?this.$button().removeClass("disabled"):this.$button().addClass("disabled")},validateAdd:function(){if(this.allowAdd())return!0;var t=this.get("max"),e=acf.__("Maximum rows reached ({max} rows)");return e=e.replace("{max}",t),this.showNotice({text:e,type:"warning"}),!1},onClickAdd:function(t,e){if(!this.validateAdd())return!1;e.hasClass("acf-icon")?this.add({before:e.closest(".acf-row")}):this.add()},add:function(t){if(!this.allowAdd())return!1;var e=this.$clone();t=acf.parseArgs(t,{before:e});var a=acf.duplicate({target:e,append:function(e,a){a.removeClass("acf-clone"),t.before.before(a)}});return acf.enable_form(a,this.cid),this.render(),this.$input().trigger("change"),a},validateRemove:function(){if(this.allowRemove())return!0;var t=this.get("min"),e=acf.__("Minimum rows reached ({min} rows)");return e=e.replace("{min}",t),this.showNotice({text:e,type:"warning"}),!1},onClickRemove:function(t,e){var a=e.closest(".acf-row");a.addClass("-hover");var i=acf.newTooltip({confirmRemove:!0,target:e,context:this,confirm:function(){this.remove(a)},cancel:function(){a.removeClass("-hover")}})},remove:function(t){var e=this;acf.remove({target:t,endHeight:0,complete:function(){e.$input().trigger("change"),e.render()}})},isCollapsed:function(t){return t.hasClass("-collapsed")},collapse:function(t){t.addClass("-collapsed"),acf.doAction("hide",t,"collapse")},expand:function(t){t.removeClass("-collapsed"),acf.doAction("show",t,"collapse")},onClickCollapse:function(t,e){var a=e.closest(".acf-row"),i=this.isCollapsed(a);t.shiftKey&&(a=this.$rows()),i?this.expand(a):this.collapse(a)},onShow:function(t,e){var a=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",a)},onUnload:function(){var t=[];this.$rows().each(function(e){$(this).hasClass("-collapsed")&&t.push(e)}),t=t.length?t:null,e.save(this.get("key"),t)},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t),acf.registerConditionForFieldType("hasValue","repeater"),acf.registerConditionForFieldType("hasNoValue","repeater"),acf.registerConditionForFieldType("lessThan","repeater"),acf.registerConditionForFieldType("greaterThan","repeater");var e=new acf.Model({name:"this.collapsedRows",key:function(t,e){var a=this.get(t+e)||0;return a++,this.set(t+e,a,!0),a>1&&(t+="-"+a),t},load:function(t){var t=this.key(t,"load"),e=acf.getPreference(this.name);return!(!e||!e[t])&&e[t]},save:function(t,e){var t=this.key(t,"save"),a=acf.getPreference(this.name)||{};null===e?delete a[t]:a[t]=e,$.isEmptyObject(a)&&(a=null),acf.setPreference(this.name,a)}})}(jQuery),function($){var t=acf.Field.extend({type:"flexible_content",wait:"",events:{'click [data-name="add-layout"]':"onClickAdd",'click [data-name="remove-layout"]':"onClickRemove",'click [data-name="collapse-layout"]':"onClickCollapse",showField:"onShow",unloadField:"onUnload",mouseover:"onHover"},$control:function(){return this.$(".acf-flexible-content:first")},$layoutsWrap:function(){return this.$(".acf-flexible-content:first > .values")},$layouts:function(){return this.$(".acf-flexible-content:first > .values > .layout")},$layout:function(t){return this.$(".acf-flexible-content:first > .values > .layout:eq("+t+")")},$clonesWrap:function(){return this.$(".acf-flexible-content:first > .clones")},$clones:function(){return this.$(".acf-flexible-content:first > .clones > .layout")},$clone:function(t){return this.$('.acf-flexible-content:first > .clones > .layout[data-layout="'+t+'"]')},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-actions:last .button")},$popup:function(){return this.$(".tmpl-popup:last")},getPopupHTML:function(){var t=this.$popup().html(),e=$(t),a=this.$layouts(),i=function(t){return a.filter(function(){return $(this).data("layout")===t}).length};return e.find("[data-layout]").each(function(){var t=$(this),e=t.data("min")||0,a=t.data("max")||0,n=t.data("layout")||"",o=i(n);if(a&&o>=a)return void t.addClass("disabled");if(e&&o'+s+"")}}),t=e.outerHTML()},getValue:function(){return this.$layouts().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||tthis.val()},isFull:function(){var t=parseInt(this.get("max"));return t&&this.val()>=t},addSortable:function(t){1!=this.get("max")&&this.$layoutsWrap().sortable({items:"> .layout",handle:"> .acf-fc-layout-handle",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:function(e,a){t.render()},update:function(e,a){t.$input().trigger("change")}})},addCollapsed:function(){var t=a.load(this.get("key"));if(!t)return!1;this.$layouts().each(function(e){t.indexOf(e)>-1&&$(this).addClass("-collapsed")})},addUnscopedEvents:function(t){this.on("invalidField",".layout",function(e){t.onInvalidField(e,$(this))})},initialize:function(){this.addUnscopedEvents(this),this.addCollapsed(),acf.disable(this.$clonesWrap(),this.cid),this.render()},render:function(){this.$layouts().each(function(t){$(this).find(".acf-fc-layout-order:first").html(t+1)}),0==this.val()?this.$control().addClass("-empty"):this.$control().removeClass("-empty"),this.isFull()?this.$button().addClass("disabled"):this.$button().removeClass("disabled")},onShow:function(t,e){var a=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",a)},validateAdd:function(){if(this.allowAdd())return!0;var t=this.get("max"),e=acf.__("This field has a limit of {max} {label} {identifier}"),a=acf._n("layout","layouts",t);return e=e.replace("{max}",t),e=e.replace("{label}",""),e=e.replace("{identifier}",a),this.showNotice({text:e,type:"warning"}),!1},onClickAdd:function(t,a){if(!this.validateAdd())return!1;var i=null;a.hasClass("acf-icon")&&(i=a.closest(".layout"),i.addClass("-hover")),new e({target:a,targetConfirm:!1,text:this.getPopupHTML(),context:this,confirm:function(t,e){e.hasClass("disabled")||this.add({layout:e.data("layout"),before:i})},cancel:function(){i&&i.removeClass("-hover")}}).on("click","[data-layout]","onConfirm")},add:function(t){if(t=acf.parseArgs(t,{layout:"",before:!1}),t.append=this.$layoutsWrap(),!this.allowAdd())return!1;var e=acf.duplicate({target:this.$clone(t.layout),append:function(e,a){t.before?t.before.before(a):t.append.append(a)}});return acf.enable_form(e,this.cid),this.render(),this.$input().trigger("change"),e},validateRemove:function(){if(this.allowRemove())return!0;var t=this.get("min"),e=acf.__("This field requires at least {min} {label} {identifier}"),a=acf._n("layout","layouts",t);return e=e.replace("{min}",t),e=e.replace("{label}",""),e=e.replace("{identifier}",a),this.showNotice({text:e,type:"warning"}),!1},onClickRemove:function(t,e){var a=e.closest(".layout");a.addClass("-hover");var i=acf.newTooltip({confirmRemove:!0,target:e,context:this,confirm:function(){this.removeLayout(a)},cancel:function(){a.removeClass("-hover")}})},removeLayout:function(t){var e=this,a=1==this.getValue()?60:0;acf.remove({target:t,endHeight:a,complete:function(){e.$input().trigger("change"),e.render()}})},onClickCollapse:function(t,e){var a=e.closest(".layout");this.isLayoutClosed(a)?this.openLayout(a):this.closeLayout(a)},isLayoutClosed:function(t){return t.hasClass("-collapsed")},openLayout:function(t){t.removeClass("-collapsed"),acf.doAction("show",t,"collapse")},closeLayout:function(t){t.addClass("-collapsed"),acf.doAction("hide",t,"collapse"),this.renderLayout(t)},renderLayout:function(t){var e=t.children("input"),a=e.attr("name").replace("[acf_fc_layout]",""),i={action:"acf/fields/flexible_content/layout_title",field_key:this.get("key"),i:t.index(),layout:t.data("layout"),value:acf.serialize(t,a)};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),dataType:"html",type:"post",success:function(e){e&&t.children(".acf-fc-layout-handle").html(e)}})},onUnload:function(){var t=[];this.$layouts().each(function(e){$(this).hasClass("-collapsed")&&t.push(e)}),t=t.length?t:null,a.save(this.get("key"),t)},onInvalidField:function(t,e){this.isLayoutClosed(e)&&this.openLayout(e)},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t);var e=acf.models.TooltipConfirm.extend({events:{"click [data-layout]":"onConfirm",'click [data-event="cancel"]':"onCancel"},render:function(){this.html(this.get("text")),this.$el.addClass("acf-fc-popup")}});acf.registerConditionForFieldType("hasValue","flexible_content"),acf.registerConditionForFieldType("hasNoValue","flexible_content"),acf.registerConditionForFieldType("lessThan","flexible_content"),acf.registerConditionForFieldType("greaterThan","flexible_content");var a=new acf.Model({name:"this.collapsedLayouts",key:function(t,e){var a=this.get(t+e)||0;return a++,this.set(t+e,a,!0),a>1&&(t+="-"+a),t},load:function(t){var t=this.key(t,"load"),e=acf.getPreference(this.name);return!(!e||!e[t])&&e[t]},save:function(t,e){var t=this.key(t,"save"),a=acf.getPreference(this.name)||{};null===e?delete a[t]:a[t]=e,$.isEmptyObject(a)&&(a=null),acf.setPreference(this.name,a)}})}(jQuery),function($){var t=acf.Field.extend({type:"gallery",events:{"click .acf-gallery-add":"onClickAdd","click .acf-gallery-edit":"onClickEdit","click .acf-gallery-remove":"onClickRemove","click .acf-gallery-attachment":"onClickSelect","click .acf-gallery-close":"onClickClose","change .acf-gallery-sort":"onChangeSort","click .acf-gallery-update":"onUpdate",mouseover:"onHover",showField:"render"},actions:{validation_begin:"onValidationBegin",validation_failure:"onValidationFailure",resize:"onResize"},onValidationBegin:function(){acf.disable(this.$sideData(),this.cid)},onValidationFailure:function(){acf.enable(this.$sideData(),this.cid)},$control:function(){return this.$(".acf-gallery")},$collection:function(){return this.$(".acf-gallery-attachments")},$attachments:function(){return this.$(".acf-gallery-attachment")},$attachment:function(t){return this.$('.acf-gallery-attachment[data-id="'+t+'"]')},$active:function(){return this.$(".acf-gallery-attachment.active")},$main:function(){return this.$(".acf-gallery-main")},$side:function(){return this.$(".acf-gallery-side")},$sideData:function(){return this.$(".acf-gallery-side-data")},isFull:function(){var t=parseInt(this.get("max")),e=this.$attachments().length;return t&&e>=t},getValue:function(){var t=[];return this.$attachments().each(function(){t.push($(this).data("id"))}),!!t.length&&t},addUnscopedEvents:function(t){this.on("change",".acf-gallery-side",function(e){t.onUpdate(e,$(this))})},addSortable:function(t){this.$collection().sortable({items:".acf-gallery-attachment",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,start:function(t,e){e.placeholder.html(e.item.html()),e.placeholder.removeAttr("style")}}),this.$control().resizable({handles:"s",minHeight:200,stop:function(t,e){acf.update_user_setting("gallery_height",e.size.height)}})},initialize:function(){this.addUnscopedEvents(this),this.render()},render:function(){var t=this.$(".acf-gallery-sort"),e=this.$(".acf-gallery-add"),a=this.$attachments().length;this.isFull()?e.addClass("disabled"):e.removeClass("disabled"),a?t.removeClass("disabled"):t.addClass("disabled"),this.resize()},resize:function(){var t=this.$control().width(),e=150,a=Math.round(t/150);a=Math.min(a,8),this.$control().attr("data-columns",a)},onResize:function(){this.resize()},openSidebar:function(){this.$control().addClass("-open");var t=this.$control().width()/3;t=parseInt(t),t=Math.max(t,350),this.$(".acf-gallery-side-inner").css({width:t-1}),this.$side().animate({width:t-1},250),this.$main().animate({right:t},250)},closeSidebar:function(){this.$control().removeClass("-open"),this.$active().removeClass("active"),acf.disable(this.$side());var t=this.$(".acf-gallery-side-data");this.$main().animate({right:0},250),this.$side().animate({width:0},250,function(){t.html("")})},onClickAdd:function(t,e){if(this.isFull())return void this.showNotice({text:acf.__("Maximum selection reached"),type:"warning"});var a=acf.newMediaPopup({mode:"select",title:acf.__("Add Image to Gallery"),field:this.get("key"),multiple:"add",library:this.get("library"),allowedTypes:this.get("mime_types"),selected:this.val(),select:$.proxy(function(t,e){this.appendAttachment(t,e)},this)})},appendAttachment:function(t,e){if(t=this.validateAttachment(t),!this.isFull()&&!this.$attachment(t.id).length){var a=['"].join(""),i=$(a);if(this.$collection().append(i),"prepend"===this.get("insert")){var n=this.$attachments().eq(e);n.length&&n.before(i)}this.renderAttachment(t),this.render(),this.$input().trigger("change")}},validateAttachment:function(t){if(t=acf.parseArgs(t,{id:"",url:"",alt:"",title:"",filename:"",type:"image"}),t.attributes){t=t.attributes;var e=acf.isget(t,"sizes","medium","url");null!==e&&(t.url=e)}return t},renderAttachment:function(t){t=this.validateAttachment(t);var e=this.$attachment(t.id);"image"==t.type?e.find(".filename").remove():(t.url=acf.isget(t,"thumb","src"),e.find(".filename").text(t.filename)),t.url||(t.url=acf.get("mimeTypeIcon"),e.addClass("-icon")),e.find("img").attr({src:t.url,alt:t.alt,title:t.title}),acf.val(e.find("input"),t.id)},editAttachment:function(t){var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.renderAttachment(t)},this)})},onClickEdit:function(t,e){var a=e.data("id");a&&this.editAttachment(a)},removeAttachment:function(t){this.closeSidebar(),this.$attachment(t).remove(),this.render(),this.$input().trigger("change")},onClickRemove:function(t,e){t.preventDefault(),t.stopPropagation();var a=e.data("id");a&&this.removeAttachment(a)},selectAttachment:function(t){var e=this.$attachment(t);if(!e.hasClass("active")){var a=this.proxy(function(){this.$side().find(":focus").trigger("blur"),this.$active().removeClass("active"),e.addClass("active"),this.openSidebar(),i()}),i=this.proxy(function(){var e={action:"acf/fields/gallery/get_attachment",field_key:this.get("key"),id:t};this.has("xhr")&&this.get("xhr").abort(),acf.showLoading(this.$sideData());var a=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",cache:!1,success:n});this.set("xhr",a)}),n=this.proxy(function(t){if(t){var e=this.$sideData();e.html(t),e.find(".compat-field-acf-form-data").remove(),e.find("> table.form-table > tbody").append(e.find("> .compat-attachment-fields > tbody > tr")),acf.doAction("append",e)}});a()}},onClickSelect:function(t,e){var a=e.data("id");a&&this.selectAttachment(a)},onClickClose:function(t,e){this.closeSidebar()},onChangeSort:function(t,e){var a=e.val();if(a){var i=[];this.$attachments().each(function(){i.push($(this).data("id"))});var n=this.proxy(function(){var t={action:"acf/fields/gallery/get_sort_order",field_key:this.get("key"),ids:i,sort:a},e=$.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",cache:!1,data:acf.prepareForAjax(t),success:o})}),o=this.proxy(function(t){acf.isAjaxSuccess(t)&&(t.data.reverse(),t.data.map(function(t){this.$collection().prepend(this.$attachment(t))},this))});n()}},onUpdate:function(t,e){var a=this.$(".acf-gallery-update");if(!a.hasClass("disabled")){var i=acf.serialize(this.$sideData());a.addClass("disabled"),a.before(' '),i.action="acf/fields/gallery/update_attachment",$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",dataType:"json",complete:function(){a.removeClass("disabled"),a.prev(".acf-loading").remove()}})}},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t),acf.registerConditionForFieldType("hasValue","gallery"),acf.registerConditionForFieldType("hasNoValue","gallery"),acf.registerConditionForFieldType("selectionLessThan","gallery"),acf.registerConditionForFieldType("selectionGreaterThan","gallery")}(jQuery); \ No newline at end of file +!function($){var t=acf.Field.extend({type:"repeater",wait:"",events:{'click a[data-event="add-row"]':"onClickAdd",'click a[data-event="remove-row"]':"onClickRemove",'click a[data-event="collapse-row"]':"onClickCollapse",showField:"onShow",unloadField:"onUnload",mouseover:"onHover",unloadField:"onUnload"},$control:function(){return this.$(".acf-repeater:first")},$table:function(){return this.$("table:first")},$tbody:function(){return this.$("tbody:first")},$rows:function(){return this.$("tbody:first > tr").not(".acf-clone")},$row:function(t){return this.$("tbody:first > tr:eq("+t+")")},$clone:function(){return this.$("tbody:first > tr.acf-clone")},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-actions:last .button")},getValue:function(){return this.$rows().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||tthis.val()},addSortable:function(t){1!=this.get("max")&&this.$tbody().sortable({items:"> tr",handle:"> td.order",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:function(e,a){t.render()},update:function(e,a){t.$input().trigger("change")}})},addCollapsed:function(){var t=e.load(this.get("key"));if(!t)return!1;this.$rows().each(function(e){t.indexOf(e)>-1&&$(this).addClass("-collapsed")})},addUnscopedEvents:function(t){this.on("invalidField",".acf-row",function(e){var a=$(this);t.isCollapsed(a)&&t.expand(a)})},initialize:function(){this.addUnscopedEvents(this),this.addCollapsed(),acf.disable(this.$clone(),this.cid),this.render()},render:function(){this.$rows().each(function(t){$(this).find("> .order > span").html(t+1)}),0==this.val()?this.$control().addClass("-empty"):this.$control().removeClass("-empty"),this.allowAdd()?this.$button().removeClass("disabled"):this.$button().addClass("disabled")},validateAdd:function(){if(this.allowAdd())return!0;var t=this.get("max"),e=acf.__("Maximum rows reached ({max} rows)");return e=e.replace("{max}",t),this.showNotice({text:e,type:"warning"}),!1},onClickAdd:function(t,e){if(!this.validateAdd())return!1;e.hasClass("acf-icon")?this.add({before:e.closest(".acf-row")}):this.add()},add:function(t){if(!this.allowAdd())return!1;t=acf.parseArgs(t,{before:!1});var e=acf.duplicate({target:this.$clone(),append:this.proxy(function(e,a){t.before?t.before.before(a):e.before(a),a.removeClass("acf-clone"),acf.enable(a,this.cid),this.render()})});return this.$input().trigger("change"),e},validateRemove:function(){if(this.allowRemove())return!0;var t=this.get("min"),e=acf.__("Minimum rows reached ({min} rows)");return e=e.replace("{min}",t),this.showNotice({text:e,type:"warning"}),!1},onClickRemove:function(t,e){var a=e.closest(".acf-row");a.addClass("-hover");var i=acf.newTooltip({confirmRemove:!0,target:e,context:this,confirm:function(){this.remove(a)},cancel:function(){a.removeClass("-hover")}})},remove:function(t){var e=this;acf.remove({target:t,endHeight:0,complete:function(){e.$input().trigger("change"),e.render()}})},isCollapsed:function(t){return t.hasClass("-collapsed")},collapse:function(t){t.addClass("-collapsed"),acf.doAction("hide",t,"collapse")},expand:function(t){t.removeClass("-collapsed"),acf.doAction("show",t,"collapse")},onClickCollapse:function(t,e){var a=e.closest(".acf-row"),i=this.isCollapsed(a);t.shiftKey&&(a=this.$rows()),i?this.expand(a):this.collapse(a)},onShow:function(t,e,a){var i=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",i)},onUnload:function(){var t=[];this.$rows().each(function(e){$(this).hasClass("-collapsed")&&t.push(e)}),t=t.length?t:null,e.save(this.get("key"),t)},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t),acf.registerConditionForFieldType("hasValue","repeater"),acf.registerConditionForFieldType("hasNoValue","repeater"),acf.registerConditionForFieldType("lessThan","repeater"),acf.registerConditionForFieldType("greaterThan","repeater");var e=new acf.Model({name:"this.collapsedRows",key:function(t,e){var a=this.get(t+e)||0;return a++,this.set(t+e,a,!0),a>1&&(t+="-"+a),t},load:function(t){var t=this.key(t,"load"),e=acf.getPreference(this.name);return!(!e||!e[t])&&e[t]},save:function(t,e){var t=this.key(t,"save"),a=acf.getPreference(this.name)||{};null===e?delete a[t]:a[t]=e,$.isEmptyObject(a)&&(a=null),acf.setPreference(this.name,a)}})}(jQuery),function($){var t=acf.Field.extend({type:"flexible_content",wait:"",events:{'click [data-name="add-layout"]':"onClickAdd",'click [data-name="remove-layout"]':"onClickRemove",'click [data-name="collapse-layout"]':"onClickCollapse",showField:"onShow",unloadField:"onUnload",mouseover:"onHover"},$control:function(){return this.$(".acf-flexible-content:first")},$layoutsWrap:function(){return this.$(".acf-flexible-content:first > .values")},$layouts:function(){return this.$(".acf-flexible-content:first > .values > .layout")},$layout:function(t){return this.$(".acf-flexible-content:first > .values > .layout:eq("+t+")")},$clonesWrap:function(){return this.$(".acf-flexible-content:first > .clones")},$clones:function(){return this.$(".acf-flexible-content:first > .clones > .layout")},$clone:function(t){return this.$('.acf-flexible-content:first > .clones > .layout[data-layout="'+t+'"]')},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-actions:last .button")},$popup:function(){return this.$(".tmpl-popup:last")},getPopupHTML:function(){var t=this.$popup().html(),e=$(t),a=this.$layouts(),i=function(t){return a.filter(function(){return $(this).data("layout")===t}).length};return e.find("[data-layout]").each(function(){var t=$(this),e=t.data("min")||0,a=t.data("max")||0,n=t.data("layout")||"",o=i(n);if(a&&o>=a)return void t.addClass("disabled");if(e&&o'+s+"")}}),t=e.outerHTML()},getValue:function(){return this.$layouts().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||tthis.val()},isFull:function(){var t=parseInt(this.get("max"));return t&&this.val()>=t},addSortable:function(t){1!=this.get("max")&&this.$layoutsWrap().sortable({items:"> .layout",handle:"> .acf-fc-layout-handle",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:function(e,a){t.render()},update:function(e,a){t.$input().trigger("change")}})},addCollapsed:function(){var t=a.load(this.get("key"));if(!t)return!1;this.$layouts().each(function(e){t.indexOf(e)>-1&&$(this).addClass("-collapsed")})},addUnscopedEvents:function(t){this.on("invalidField",".layout",function(e){t.onInvalidField(e,$(this))})},initialize:function(){this.addUnscopedEvents(this),this.addCollapsed(),acf.disable(this.$clonesWrap(),this.cid),this.render()},render:function(){this.$layouts().each(function(t){$(this).find(".acf-fc-layout-order:first").html(t+1)}),0==this.val()?this.$control().addClass("-empty"):this.$control().removeClass("-empty"),this.isFull()?this.$button().addClass("disabled"):this.$button().removeClass("disabled")},onShow:function(t,e,a){var i=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",i)},validateAdd:function(){if(this.allowAdd())return!0;var t=this.get("max"),e=acf.__("This field has a limit of {max} {label} {identifier}"),a=acf._n("layout","layouts",t);return e=e.replace("{max}",t),e=e.replace("{label}",""),e=e.replace("{identifier}",a),this.showNotice({text:e,type:"warning"}),!1},onClickAdd:function(t,a){if(!this.validateAdd())return!1;var i=null;a.hasClass("acf-icon")&&(i=a.closest(".layout"),i.addClass("-hover")),new e({target:a,targetConfirm:!1,text:this.getPopupHTML(),context:this,confirm:function(t,e){e.hasClass("disabled")||this.add({layout:e.data("layout"),before:i})},cancel:function(){i&&i.removeClass("-hover")}}).on("click","[data-layout]","onConfirm")},add:function(t){if(t=acf.parseArgs(t,{layout:"",before:!1}),!this.allowAdd())return!1;var e=acf.duplicate({target:this.$clone(t.layout),append:this.proxy(function(e,a){t.before?t.before.before(a):this.$layoutsWrap().append(a),acf.enable(a,this.cid),this.render()})});return this.$input().trigger("change"),e},validateRemove:function(){if(this.allowRemove())return!0;var t=this.get("min"),e=acf.__("This field requires at least {min} {label} {identifier}"),a=acf._n("layout","layouts",t);return e=e.replace("{min}",t),e=e.replace("{label}",""),e=e.replace("{identifier}",a),this.showNotice({text:e,type:"warning"}),!1},onClickRemove:function(t,e){var a=e.closest(".layout");a.addClass("-hover");var i=acf.newTooltip({confirmRemove:!0,target:e,context:this,confirm:function(){this.removeLayout(a)},cancel:function(){a.removeClass("-hover")}})},removeLayout:function(t){var e=this,a=1==this.getValue()?60:0;acf.remove({target:t,endHeight:a,complete:function(){e.$input().trigger("change"),e.render()}})},onClickCollapse:function(t,e){var a=e.closest(".layout");this.isLayoutClosed(a)?this.openLayout(a):this.closeLayout(a)},isLayoutClosed:function(t){return t.hasClass("-collapsed")},openLayout:function(t){t.removeClass("-collapsed"),acf.doAction("show",t,"collapse")},closeLayout:function(t){t.addClass("-collapsed"),acf.doAction("hide",t,"collapse"),this.renderLayout(t)},renderLayout:function(t){var e=t.children("input"),a=e.attr("name").replace("[acf_fc_layout]",""),i={action:"acf/fields/flexible_content/layout_title",field_key:this.get("key"),i:t.index(),layout:t.data("layout"),value:acf.serialize(t,a)};$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),dataType:"html",type:"post",success:function(e){e&&t.children(".acf-fc-layout-handle").html(e)}})},onUnload:function(){var t=[];this.$layouts().each(function(e){$(this).hasClass("-collapsed")&&t.push(e)}),t=t.length?t:null,a.save(this.get("key"),t)},onInvalidField:function(t,e){this.isLayoutClosed(e)&&this.openLayout(e)},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t);var e=acf.models.TooltipConfirm.extend({events:{"click [data-layout]":"onConfirm",'click [data-event="cancel"]':"onCancel"},render:function(){this.html(this.get("text")),this.$el.addClass("acf-fc-popup")}});acf.registerConditionForFieldType("hasValue","flexible_content"),acf.registerConditionForFieldType("hasNoValue","flexible_content"),acf.registerConditionForFieldType("lessThan","flexible_content"),acf.registerConditionForFieldType("greaterThan","flexible_content");var a=new acf.Model({name:"this.collapsedLayouts",key:function(t,e){var a=this.get(t+e)||0;return a++,this.set(t+e,a,!0),a>1&&(t+="-"+a),t},load:function(t){var t=this.key(t,"load"),e=acf.getPreference(this.name);return!(!e||!e[t])&&e[t]},save:function(t,e){var t=this.key(t,"save"),a=acf.getPreference(this.name)||{};null===e?delete a[t]:a[t]=e,$.isEmptyObject(a)&&(a=null),acf.setPreference(this.name,a)}})}(jQuery),function($){var t=acf.Field.extend({type:"gallery",events:{"click .acf-gallery-add":"onClickAdd","click .acf-gallery-edit":"onClickEdit","click .acf-gallery-remove":"onClickRemove","click .acf-gallery-attachment":"onClickSelect","click .acf-gallery-close":"onClickClose","change .acf-gallery-sort":"onChangeSort","click .acf-gallery-update":"onUpdate",mouseover:"onHover",showField:"render"},actions:{validation_begin:"onValidationBegin",validation_failure:"onValidationFailure",resize:"onResize"},onValidationBegin:function(){acf.disable(this.$sideData(),this.cid)},onValidationFailure:function(){acf.enable(this.$sideData(),this.cid)},$control:function(){return this.$(".acf-gallery")},$collection:function(){return this.$(".acf-gallery-attachments")},$attachments:function(){return this.$(".acf-gallery-attachment")},$attachment:function(t){return this.$('.acf-gallery-attachment[data-id="'+t+'"]')},$active:function(){return this.$(".acf-gallery-attachment.active")},$main:function(){return this.$(".acf-gallery-main")},$side:function(){return this.$(".acf-gallery-side")},$sideData:function(){return this.$(".acf-gallery-side-data")},isFull:function(){var t=parseInt(this.get("max")),e=this.$attachments().length;return t&&e>=t},getValue:function(){var t=[];return this.$attachments().each(function(){t.push($(this).data("id"))}),!!t.length&&t},addUnscopedEvents:function(t){this.on("change",".acf-gallery-side",function(e){t.onUpdate(e,$(this))})},addSortable:function(t){this.$collection().sortable({items:".acf-gallery-attachment",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,start:function(t,e){e.placeholder.html(e.item.html()),e.placeholder.removeAttr("style")}}),this.$control().resizable({handles:"s",minHeight:200,stop:function(t,e){acf.update_user_setting("gallery_height",e.size.height)}})},initialize:function(){this.addUnscopedEvents(this),this.render()},render:function(){var t=this.$(".acf-gallery-sort"),e=this.$(".acf-gallery-add"),a=this.$attachments().length;this.isFull()?e.addClass("disabled"):e.removeClass("disabled"),a?t.removeClass("disabled"):t.addClass("disabled"),this.resize()},resize:function(){var t=this.$control().width(),e=150,a=Math.round(t/150);a=Math.min(a,8),this.$control().attr("data-columns",a)},onResize:function(){this.resize()},openSidebar:function(){this.$control().addClass("-open");var t=this.$control().width()/3;t=parseInt(t),t=Math.max(t,350),this.$(".acf-gallery-side-inner").css({width:t-1}),this.$side().animate({width:t-1},250),this.$main().animate({right:t},250)},closeSidebar:function(){this.$control().removeClass("-open"),this.$active().removeClass("active"),acf.disable(this.$side());var t=this.$(".acf-gallery-side-data");this.$main().animate({right:0},250),this.$side().animate({width:0},250,function(){t.html("")})},onClickAdd:function(t,e){if(this.isFull())return void this.showNotice({text:acf.__("Maximum selection reached"),type:"warning"});var a=acf.newMediaPopup({mode:"select",title:acf.__("Add Image to Gallery"),field:this.get("key"),multiple:"add",library:this.get("library"),allowedTypes:this.get("mime_types"),selected:this.val(),select:$.proxy(function(t,e){this.appendAttachment(t,e)},this)})},appendAttachment:function(t,e){if(t=this.validateAttachment(t),!this.isFull()&&!this.$attachment(t.id).length){var a=['"].join(""),i=$(a);if(this.$collection().append(i),"prepend"===this.get("insert")){var n=this.$attachments().eq(e);n.length&&n.before(i)}this.renderAttachment(t),this.render(),this.$input().trigger("change")}},validateAttachment:function(t){if(t=acf.parseArgs(t,{id:"",url:"",alt:"",title:"",filename:"",type:"image"}),t.attributes){t=t.attributes;var e=acf.isget(t,"sizes","medium","url");null!==e&&(t.url=e)}return t},renderAttachment:function(t){t=this.validateAttachment(t);var e=this.$attachment(t.id);"image"==t.type?e.find(".filename").remove():(t.url=acf.isget(t,"thumb","src"),e.find(".filename").text(t.filename)),t.url||(t.url=acf.get("mimeTypeIcon"),e.addClass("-icon")),e.find("img").attr({src:t.url,alt:t.alt,title:t.title}),acf.val(e.find("input"),t.id)},editAttachment:function(t){var e=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:t,field:this.get("key"),select:$.proxy(function(t,e){this.renderAttachment(t)},this)})},onClickEdit:function(t,e){var a=e.data("id");a&&this.editAttachment(a)},removeAttachment:function(t){this.closeSidebar(),this.$attachment(t).remove(),this.render(),this.$input().trigger("change")},onClickRemove:function(t,e){t.preventDefault(),t.stopPropagation();var a=e.data("id");a&&this.removeAttachment(a)},selectAttachment:function(t){var e=this.$attachment(t);if(!e.hasClass("active")){var a=this.proxy(function(){this.$side().find(":focus").trigger("blur"),this.$active().removeClass("active"),e.addClass("active"),this.openSidebar(),i()}),i=this.proxy(function(){var e={action:"acf/fields/gallery/get_attachment",field_key:this.get("key"),id:t};this.has("xhr")&&this.get("xhr").abort(),acf.showLoading(this.$sideData());var a=$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",cache:!1,success:n});this.set("xhr",a)}),n=this.proxy(function(t){if(t){var e=this.$sideData();e.html(t),e.find(".compat-field-acf-form-data").remove(),e.find("> table.form-table > tbody").append(e.find("> .compat-attachment-fields > tbody > tr")),acf.doAction("append",e)}});a()}},onClickSelect:function(t,e){var a=e.data("id");a&&this.selectAttachment(a)},onClickClose:function(t,e){this.closeSidebar()},onChangeSort:function(t,e){var a=e.val();if(a){var i=[];this.$attachments().each(function(){i.push($(this).data("id"))});var n=this.proxy(function(){var t={action:"acf/fields/gallery/get_sort_order",field_key:this.get("key"),ids:i,sort:a},e=$.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",cache:!1,data:acf.prepareForAjax(t),success:o})}),o=this.proxy(function(t){acf.isAjaxSuccess(t)&&(t.data.reverse(),t.data.map(function(t){this.$collection().prepend(this.$attachment(t))},this))});n()}},onUpdate:function(t,e){var a=this.$(".acf-gallery-update");if(!a.hasClass("disabled")){var i=acf.serialize(this.$sideData());a.addClass("disabled"),a.before(' '),i.action="acf/fields/gallery/update_attachment",$.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),type:"post",dataType:"json",complete:function(){a.removeClass("disabled"),a.prev(".acf-loading").remove()}})}},onHover:function(){this.addSortable(this),this.off("mouseover")}});acf.registerFieldType(t),acf.registerConditionForFieldType("hasValue","gallery"),acf.registerConditionForFieldType("hasNoValue","gallery"),acf.registerConditionForFieldType("selectionLessThan","gallery"),acf.registerConditionForFieldType("selectionGreaterThan","gallery")}(jQuery); \ No newline at end of file diff --git a/readme.txt b/readme.txt index 5175142..d52d35f 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === Advanced Custom Fields Pro === Contributors: elliotcondon Tags: acf, advanced, custom, field, fields, form, repeater, content -Requires at least: 3.6.0 +Requires at least: 4.4.0 Tested up to: 4.9.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -66,6 +66,23 @@ From your WordPress dashboard == Changelog == += 5.7.2 = +*Release Date - 6 August 2018* + +* Fix - Fixed bug preventing the Google Maps Field address from being customised. +* Fix - Improved logic to request and cache plugin update information. +* Fix - Fixed bug preventing JS initialization when editing widgets in accessibility mode. +* Fix - Added missing $parent argument to term_exists() function when adding a new term via taxonomy field popup. +* Fix - Fixed bug where nested Group Fields did not delete their values. +* Fix - Fixed JS error thrown by localStorage if cookies are not enabled. +* Dev - Bumped minimum WP version requirement to 4.4. +* Dev - Added action 'wp_nav_menu_item_custom_fields' for compatibility with other plugins modifying the menu walker class. +* Dev - Added 'multiple' to the allowed attributes for an email field. +* Dev - Added new ACF_Ajax class for upcoming features. + += 5.7.1 = +* Core: Minor fixes and improvements + = 5.7.0 = * Core: Major JavaScript updates * Core: Improved conditional logic with new types and more supported fields