Version Description
Release Date - 24 October 2019
- New - Added more data to Google Maps field value including place_id, street_name, country and more.
- Fix - Fixed bug in Gallery field incorrectly displaying .pdf attachments as icons.
- Fix - Fixed bug in Checkbox field missing "selected" class after "Toggle All".
- Dev - Added compatibility for Attachments in the Post Taxonomy location rule.
- Dev - Added missing return statement from
acf_get_form()
function. - Dev - Added "google_map_result" JS filter.
Download this release
Release Info
Developer | elliotcondon |
Plugin | Advanced Custom Fields |
Version | 5.8.6 |
Comparing to | |
See all releases |
Code changes from version 5.8.5 to 5.8.6
- acf.php +2 -2
- assets/css/acf-input.css +2335 -1
- assets/js/acf-input.js +333 -285
- assets/js/acf-input.min.js +4 -4
- includes/fields/class-acf-field-google-map.php +48 -71
- includes/fields/class-acf-field-wysiwyg.php +1 -1
- includes/forms/form-attachment.php +4 -4
- includes/forms/form-front.php +1 -1
- includes/locations/class-acf-location-post-taxonomy.php +5 -0
- lang/acf-pt_PT.mo +0 -0
- lang/acf-pt_PT.po +233 -218
- readme.txt +11 -1
acf.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced Custom Fields
|
4 |
Plugin URI: https://www.advancedcustomfields.com
|
5 |
Description: Customize WordPress with powerful, professional and intuitive fields.
|
6 |
-
Version: 5.8.
|
7 |
Author: Elliot Condon
|
8 |
Author URI: https://www.advancedcustomfields.com
|
9 |
Text Domain: acf
|
@@ -17,7 +17,7 @@ if( ! class_exists('ACF') ) :
|
|
17 |
class ACF {
|
18 |
|
19 |
/** @var string The plugin version number. */
|
20 |
-
var $version = '5.8.
|
21 |
|
22 |
/** @var array The plugin settings array. */
|
23 |
var $settings = array();
|
3 |
Plugin Name: Advanced Custom Fields
|
4 |
Plugin URI: https://www.advancedcustomfields.com
|
5 |
Description: Customize WordPress with powerful, professional and intuitive fields.
|
6 |
+
Version: 5.8.6
|
7 |
Author: Elliot Condon
|
8 |
Author URI: https://www.advancedcustomfields.com
|
9 |
Text Domain: acf
|
17 |
class ACF {
|
18 |
|
19 |
/** @var string The plugin version number. */
|
20 |
+
var $version = '5.8.6';
|
21 |
|
22 |
/** @var array The plugin settings array. */
|
23 |
var $settings = array();
|
assets/css/acf-input.css
CHANGED
@@ -1 +1,2335 @@
|
|
1 |
-
.acf-field,.acf-field .acf-label,.acf-field .acf-input{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative}.acf-field{margin:15px 0;clear:both}.acf-field p.description{display:block;margin:0;padding:0}.acf-field .acf-label{vertical-align:top;margin:0 0 10px}.acf-field .acf-label label{display:block;font-weight:bold;margin:0 0 3px;padding:0}.acf-field .acf-label:empty{margin-bottom:0}.acf-field .acf-input{vertical-align:top}.acf-field .acf-input>p.description{margin-top:5px}.acf-field .acf-notice{margin:0 0 15px;background:#edf2ff;color:#2183b9;border:none}.acf-field .acf-notice .acf-notice-dismiss{background:transparent;color:inherit}.acf-field .acf-notice .acf-notice-dismiss:hover{background:#fff}.acf-field .acf-notice.-dismiss{padding-right:40px}.acf-field .acf-notice.-error{background:#ffe6e6;color:#d12626}.acf-field .acf-notice.-success{background:#eefbe8;color:#32a23b}.acf-field .acf-notice.-warning{background:#fff3e6;color:#d16226}td.acf-field,tr.acf-field{margin:0}.acf-field[data-width]{float:left;clear:none}.acf-field[data-width]+.acf-field[data-width]{border-left:1px solid #eeeeee}html[dir="rtl"] .acf-field[data-width]{float:right}html[dir="rtl"] .acf-field[data-width]+.acf-field[data-width]{border-left:none;border-right:1px solid #eeeeee}td.acf-field[data-width],tr.acf-field[data-width]{float:none}.acf-field.-c0{clear:both;border-left-width:0 !important}html[dir="rtl"] .acf-field.-c0{border-left-width:1px !important;border-right-width:0 !important}.acf-field.-r0{border-top-width:0 !important}.acf-fields{position:relative}.acf-fields:after{display:block;clear:both;content:""}.acf-fields.-border{border:#dfdfdf solid 1px;background:#fff}.acf-fields>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:#EEEEEE solid 1px}.acf-fields>.acf-field:first-child{border-top-width:0}td.acf-fields{padding:0 !important}.acf-fields.-clear>.acf-field{border:none;padding:0;margin:15px 0}.acf-fields.-clear>.acf-field[data-width]{border:none !important}.acf-fields.-clear>.acf-field>.acf-label{padding:0}.acf-fields.-clear>.acf-field>.acf-input{padding:0}.acf-fields.-left>.acf-field{padding:15px 0}.acf-fields.-left>.acf-field:after{display:block;clear:both;content:""}.acf-fields.-left>.acf-field:before{content:"";display:block;position:absolute;z-index:0;background:#F9F9F9;border-color:#E1E1E1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acf-fields.-left>.acf-field[data-width]{float:none;width:auto !important;border-left-width:0 !important;border-right-width:0 !important}.acf-fields.-left>.acf-field>.acf-label{float:left;width:20%;margin:0;padding:0 12px}.acf-fields.-left>.acf-field>.acf-input{float:left;width:80%;margin:0;padding:0 12px}html[dir="rtl"] .acf-fields.-left>.acf-field:before{border-width:0 0 0 1px;left:auto;right:0}html[dir="rtl"] .acf-fields.-left>.acf-field>.acf-label{float:right}html[dir="rtl"] .acf-fields.-left>.acf-field>.acf-input{float:right}@media screen and (max-width: 640px){.acf-fields.-left>.acf-field:before{display:none}.acf-fields.-left>.acf-field>.acf-label{width:100%;margin-bottom:10px}.acf-fields.-left>.acf-field>.acf-input{width:100%}}.acf-fields.-clear.-left>.acf-field{padding:0;border:none}.acf-fields.-clear.-left>.acf-field:before{display:none}.acf-fields.-clear.-left>.acf-field>.acf-label{padding:0}.acf-fields.-clear.-left>.acf-field>.acf-input{padding:0}.acf-table tr.acf-field>td.acf-label{padding:15px 12px;margin:0;background:#F9F9F9;width:20%}.acf-table tr.acf-field>td.acf-input{padding:15px 12px;margin:0;border-left-color:#E1E1E1}.acf-sortable-tr-helper{position:relative !important;display:table-row !important}.acf-postbox{position:relative}.acf-postbox>.inside{margin:0 !important;padding:0 !important}.acf-postbox>.hndle .acf-hndle-cog{color:#AAAAAA;font-size:16px;line-height:20px;padding:0 2px;float:right;position:relative;display:none}.acf-postbox>.hndle .acf-hndle-cog:hover{color:#777777}.acf-postbox:hover>.hndle .acf-hndle-cog{display:block}.acf-postbox .acf-replace-with-fields{padding:15px;text-align:center}#post-body-content #acf_after_title-sortables{margin:20px 0 -20px}.acf-postbox.seamless{border:0 none;background:transparent;box-shadow:none}.acf-postbox.seamless>.hndle,.acf-postbox.seamless>.handlediv{display:none !important}.acf-postbox.seamless>.inside{display:block !important;margin-left:-12px !important;margin-right:-12px !important}.acf-postbox.seamless>.inside>.acf-field{border-color:transparent}.acf-postbox.seamless>.acf-fields.-left>.acf-field:before{display:none}@media screen and (max-width: 782px){.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-label,.acf-postbox.seamless>.acf-fields.-left>.acf-field>.acf-input{padding:0}}.acf-field input[type="text"],.acf-field input[type="password"],.acf-field input[type="number"],.acf-field input[type="search"],.acf-field input[type="email"],.acf-field input[type="url"],.acf-field textarea,.acf-field select{width:100%;padding:3px 5px;resize:none;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:1.4}.acf-field input[type="text"]:disabled,.acf-field input[type="password"]:disabled,.acf-field input[type="number"]:disabled,.acf-field input[type="search"]:disabled,.acf-field input[type="email"]:disabled,.acf-field input[type="url"]:disabled,.acf-field textarea:disabled,.acf-field select:disabled{background:#f8f8f8}.acf-field input[type="text"][readonly],.acf-field input[type="password"][readonly],.acf-field input[type="number"][readonly],.acf-field input[type="search"][readonly],.acf-field input[type="email"][readonly],.acf-field input[type="url"][readonly],.acf-field textarea[readonly],.acf-field select[readonly]{background:#f8f8f8}.acf-field textarea{resize:vertical}.acf-input-prepend,.acf-input-append,.acf-input-wrap{box-sizing:border-box}.acf-input-prepend,.acf-input-append{font-size:13px;line-height:20px;padding:3px 7px;background:#F4F4F4;border:#DFDFDF solid 1px}.acf-input-prepend{float:left;border-right-width:0;border-radius:3px 0 0 3px}.acf-input-append{float:right;border-left-width:0;border-radius:0 3px 3px 0}.acf-input-wrap{position:relative;overflow:hidden}.acf-input-wrap input{height:28px;margin:0}input.acf-is-prepended{border-radius:0 3px 3px 0 !important}input.acf-is-appended{border-radius:3px 0 0 3px !important}input.acf-is-prepended.acf-is-appended{border-radius:0 !important}html[dir="rtl"] .acf-input-prepend{border-left-width:0;border-right-width:1px;border-radius:0 3px 3px 0;float:right}html[dir="rtl"] .acf-input-append{border-left-width:1px;border-right-width:0;border-radius:3px 0 0 3px;float:left}html[dir="rtl"] input.acf-is-prepended{border-radius:3px 0 0 3px !important}html[dir="rtl"] input.acf-is-appended{border-radius:0 3px 3px 0 !important}html[dir="rtl"] input.acf-is-prepended.acf-is-appended{border-radius:0 !important}.acf-color-picker .wp-picker-active{position:relative;z-index:1}.acf-url i{position:absolute;top:4px;left:4px;opacity:0.5;color:#A9A9A9}.acf-url input[type="url"]{padding-left:25px}.acf-url.-valid i{opacity:1}.acf-field select{padding:2px}.acf-field select optgroup{padding:5px;background:#fff}.acf-field select option{padding:3px}.acf-field select optgroup option{padding-left:5px}.acf-field select optgroup:nth-child(2n){background:#F9F9F9}.acf-field .select2-input{max-width:200px}.select2-container.-acf .select2-choices{background:#fff;border-color:#ddd;box-shadow:0 1px 2px rgba(0,0,0,0.07) inset;min-height:31px}.select2-container.-acf .select2-choices .select2-search-choice{margin:5px 0 5px 5px;padding:3px 5px 3px 18px;border-color:#bbb;background:#f9f9f9;box-shadow:0 1px 0 rgba(255,255,255,0.25) inset}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,0.1)}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper a{visibility:hidden}.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible !important}.select2-container.-acf .select2-choices .select2-search-choice-focus{border-color:#999}.select2-container.-acf .select2-choices .select2-search-field input{height:31px;line-height:22px;margin:0;padding:5px 5px 5px 7px}.select2-container.-acf .select2-choice{border-color:#BBBBBB}.select2-container.-acf .select2-choice .select2-arrow{background:transparent;border-left-color:#DFDFDF;padding-left:1px}.select2-container.-acf .select2-choice .select2-result-description{display:none}.select2-container.-acf.select2-container-active .select2-choices,.select2-container.-acf.select2-dropdown-open .select2-choices{border-color:#5B9DD9;border-radius:3px 3px 0 0}.select2-container.-acf.select2-dropdown-open .select2-choice{background:#fff;border-color:#5B9DD9}html[dir="rtl"] .select2-container.-acf .select2-search-choice-close{left:24px}html[dir="rtl"] .select2-container.-acf .select2-choice>.select2-chosen{margin-left:42px}html[dir="rtl"] .select2-container.-acf .select2-choice .select2-arrow{padding-left:0;padding-right:1px}.select2-drop .select2-search{padding:4px 4px 0}.select2-drop .select2-result .select2-result-description{color:#999;font-size:12px;margin-left:5px}.select2-drop .select2-result.select2-highlighted .select2-result-description{color:#fff;opacity:0.75}.select2-container.-acf li{margin-bottom:0}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child{float:none}.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child input{width:100% !important}.select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding-right:0}.select2-container.-acf .select2-selection--multiple .select2-selection__choice{background-color:#f7f7f7;border-color:#cccccc;max-width:100%;overflow:hidden;word-wrap:normal !important;white-space:normal}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper{background:#5897fb;border-color:#3f87fa;color:#fff;box-shadow:0 0 3px rgba(0,0,0,0.1)}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper span{visibility:hidden}.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-placeholder{background-color:#f7f7f7;border-color:#f7f7f7;visibility:visible !important}.select2-container.-acf .select2-selection--multiple .select2-search__field{box-shadow:none !important}.acf-row .select2-container.-acf .select2-selection--single{overflow:hidden}.acf-row .select2-container.-acf .select2-selection--single .select2-selection__rendered{white-space:normal}.select2-container .select2-dropdown{z-index:900000}.link-wrap{border:#dddddd solid 1px;border-radius:3px;padding:5px;line-height:26px;background:#fff;word-wrap:break-word;word-break:break-all}.link-wrap .link-title{padding:0 5px}.acf-link .link-wrap,.acf-link .acf-icon.-link-ext{display:none}.acf-link.-value .button{display:none}.acf-link.-value .link-wrap{display:inline-block}.acf-link.-external .acf-icon.-link-ext{display:inline-block}#wp-link-backdrop{z-index:900000 !important}#wp-link-wrap{z-index:900001 !important}ul.acf-radio-list,ul.acf-checkbox-list{background:transparent;position:relative;padding:1px;margin:0}ul.acf-radio-list li,ul.acf-checkbox-list li{font-size:13px;line-height:22px;margin:0;position:relative;word-wrap:break-word}ul.acf-radio-list li label,ul.acf-checkbox-list li label{display:inline}ul.acf-radio-list li input[type="checkbox"],ul.acf-radio-list li input[type="radio"],ul.acf-checkbox-list li input[type="checkbox"],ul.acf-checkbox-list li input[type="radio"]{margin:-1px 4px 0 0;vertical-align:middle}ul.acf-radio-list li input[type="text"],ul.acf-checkbox-list li input[type="text"]{width:auto;vertical-align:middle;margin:2px 0}ul.acf-radio-list li span,ul.acf-checkbox-list li span{float:none}ul.acf-radio-list li i,ul.acf-checkbox-list li i{vertical-align:middle}ul.acf-radio-list.acf-hl li,ul.acf-checkbox-list.acf-hl li{margin-right:20px;clear:none}html[dir="rtl"] ul.acf-radio-list input[type="checkbox"],html[dir="rtl"] ul.acf-radio-list input[type="radio"],html[dir="rtl"] ul.acf-checkbox-list input[type="checkbox"],html[dir="rtl"] ul.acf-checkbox-list input[type="radio"]{margin-left:4px;margin-right:0}.acf-button-group{display:inline-block}.acf-button-group label{display:inline-block;border:#ccc solid 1px;position:relative;z-index:1;padding:5px 10px;background:#fff}.acf-button-group label:hover{border-color:#999;z-index:2}.acf-button-group label.selected{border-color:#2b9af3;background:#309cf3;color:#fff;z-index:2}.acf-button-group label.selected:hover{background:#48a8f4}.acf-button-group input{display:none !important}.acf-button-group{padding-left:1px;display:inline-flex;flex-direction:row;flex-wrap:nowrap}.acf-button-group label{margin:0 0 0 -1px;flex:1;text-align:center;white-space:nowrap}.acf-button-group label:first-child{border-radius:3px 0 0 3px}html[dir="rtl"] .acf-button-group label:first-child{border-radius:0 3px 3px 0}.acf-button-group label:last-child{border-radius:0 3px 3px 0}html[dir="rtl"] .acf-button-group label:last-child{border-radius:3px 0 0 3px}.acf-button-group label:only-child{border-radius:3px}.acf-button-group.-vertical{padding-left:0;padding-top:1px;flex-direction:column}.acf-button-group.-vertical label{margin:-1px 0 0 0}.acf-button-group.-vertical label:first-child{border-radius:3px 3px 0 0}.acf-button-group.-vertical label:last-child{border-radius:0 0 3px 3px}.acf-button-group.-vertical label:only-child{border-radius:3px}.acf-checkbox-list .button{margin:10px 0 0}.acf-switch{display:inline-block;border-radius:5px;cursor:pointer;position:relative;background:#f8f8f8;height:30px;vertical-align:middle;border:#ccc solid 1px;-webkit-transition:background 0.25s ease;-moz-transition:background 0.25s ease;-o-transition:background 0.25s ease;transition:background 0.25s ease}.acf-switch span{display:inline-block;float:left;text-align:center;font-size:13px;line-height:22px;padding:4px 10px;min-width:15px}.acf-switch span i{vertical-align:middle}.acf-switch .acf-switch-on{color:#fff;text-shadow:#1f7db1 0 1px 0}.acf-switch .acf-switch-slider{position:absolute;top:2px;left:2px;bottom:2px;right:50%;z-index:1;background:#fff;border-radius:3px;border:#ccc solid 1px;-webkit-transition:all 0.25s ease;-moz-transition:all 0.25s ease;-o-transition:all 0.25s ease;transition:all 0.25s ease;transition-property:left, right}.acf-switch:hover .acf-switch-slider{border-color:#b3b3b3}.acf-switch.-on{background:#309cf3;border-color:#2b9af3}.acf-switch.-on .acf-switch-slider{left:50%;right:2px;border-color:#0d84e3}.acf-switch.-on:hover{background:#48a8f4}.acf-switch.-focus .acf-switch-slider{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,0.5)}.acf-switch.-focus.-on .acf-switch-slider{border-color:#185e85;box-shadow:0 0 2px #1f7db1}.acf-switch+span{margin-left:6px}.acf-switch-input{opacity:0;position:absolute;margin:0}.compat-item .acf-true-false .message{float:none;padding:0;vertical-align:middle}.acf-google-map{position:relative;border:#DFDFDF solid 1px;background:#fff}.acf-google-map .title{position:relative;border-bottom:#DFDFDF solid 1px}.acf-google-map .title .search{margin:0;font-size:14px;line-height:30px;height:40px;padding:5px 10px;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-google-map .title .acf-loading{position:absolute;top:10px;right:11px;display:none}.acf-google-map .title:hover .acf-actions{display:block}.acf-google-map .canvas{height:400px}.acf-google-map .title .acf-icon.-location{display:inline-block}.acf-google-map .title .acf-icon.-cancel{display:none}.acf-google-map .title .acf-icon.-search{display:none}.acf-google-map.-search .title .acf-icon.-location{display:none}.acf-google-map.-search .title .acf-icon.-cancel{display:inline-block}.acf-google-map.-search .title .acf-icon.-search{display:inline-block}.acf-google-map.-value .title .search{font-weight:bold}.acf-google-map.-value .title .acf-icon.-location{display:none}.acf-google-map.-value .title .acf-icon.-cancel{display:inline-block}.acf-google-map.-value .title .acf-icon.-search{display:none}.acf-google-map.-loading .title a{display:none !important}.acf-google-map.-loading .title i{display:inline-block}.pac-container{border-width:1px 0;box-shadow:none}.pac-container:after{display:none}.pac-container .pac-item:first-child{border-top:0 none}.pac-container .pac-item{padding:5px 10px;cursor:pointer}html[dir="rtl"] .pac-container .pac-item{text-align:right}.acf-relationship{background:#fff}.acf-relationship .filters{border:#DFDFDF solid 1px;background:#fff}.acf-relationship .filters:after{display:block;clear:both;content:""}.acf-relationship .filters .filter{margin:0;padding:0;float:left;width:100%}.acf-relationship .filters .filter span{display:block;padding:7px 7px 7px 0}.acf-relationship .filters .filter:first-child span{padding-left:7px}.acf-relationship .filters .filter input,.acf-relationship .filters .filter select{height:28px;line-height:28px;padding:2px;width:100%;margin:0;float:none}.acf-relationship .filters .filter input:focus,.acf-relationship .filters .filter input:active,.acf-relationship .filters .filter select:focus,.acf-relationship .filters .filter select:active{outline:none;box-shadow:none}.acf-relationship .filters .filter input{border-color:transparent;box-shadow:none}.acf-relationship .filters.-f2 .filter{width:50%}.acf-relationship .filters.-f3 .filter{width:25%}.acf-relationship .filters.-f3 .filter.-search{width:50%}.acf-relationship .list{margin:0;padding:5px;height:160px;overflow:auto}.acf-relationship .list .acf-rel-label,.acf-relationship .list .acf-rel-item,.acf-relationship .list p{padding:5px 7px;margin:0;display:block;position:relative;min-height:18px}.acf-relationship .list .acf-rel-label{font-weight:bold}.acf-relationship .list .acf-rel-item{cursor:pointer}.acf-relationship .list .acf-rel-item b{text-decoration:underline;font-weight:normal}.acf-relationship .list .acf-rel-item .thumbnail{background:#e0e0e0;width:22px;height:22px;float:left;margin:-2px 5px 0 0}.acf-relationship .list .acf-rel-item .thumbnail img{max-width:22px;max-height:22px;margin:0 auto;display:block}.acf-relationship .list .acf-rel-item .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item .thumbnail.-icon img{max-height:20px;margin-top:1px}.acf-relationship .list .acf-rel-item:hover{background:#3875D7;color:#fff}.acf-relationship .list .acf-rel-item:hover .thumbnail{background:#a2bfec}.acf-relationship .list .acf-rel-item:hover .thumbnail.-icon{background:#fff}.acf-relationship .list .acf-rel-item.disabled{opacity:0.5}.acf-relationship .list .acf-rel-item.disabled:hover{background:transparent;color:#333;cursor:default}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail{background:#e0e0e0}.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail.-icon{background:#fff}.acf-relationship .list ul{padding-bottom:5px}.acf-relationship .list ul .acf-rel-label,.acf-relationship .list ul .acf-rel-item,.acf-relationship .list ul p{padding-left:20px}.acf-relationship .selection{border:#DFDFDF solid 1px;position:relative;margin-top:-1px}.acf-relationship .selection:after{display:block;clear:both;content:""}.acf-relationship .selection .values,.acf-relationship .selection .choices{width:50%;background:#fff;float:left}.acf-relationship .selection .choices{background:#F9F9F9}.acf-relationship .selection .choices .list{border-right:#DFDFDF solid 1px}.acf-relationship .selection .values .acf-icon{position:absolute;top:4px;right:7px;display:none}html[dir="rtl"] .acf-relationship .selection .values .acf-icon{right:auto;left:7px}.acf-relationship .selection .values .acf-rel-item:hover .acf-icon{display:block}.acf-relationship .selection .values .acf-rel-item{cursor:move}.acf-relationship .selection .values .acf-rel-item b{text-decoration:none}.menu-item .acf-relationship ul{width:auto}.menu-item .acf-relationship li{display:block}.acf-editor-wrap.delay .acf-editor-toolbar{content:"";display:block;background:#f5f5f5;border-bottom:#dddddd solid 1px;color:#555d66;padding:10px}.acf-editor-wrap.delay .wp-editor-area{padding:10px;border:none;color:inherit !important}.acf-editor-wrap iframe{min-height:200px}.acf-editor-wrap .wp-editor-container{border:1px solid #E5E5E5;box-shadow:none !important}.acf-editor-wrap .wp-editor-tabs{box-sizing:content-box}#mce_fullscreen_container{z-index:900000 !important}.acf-field-tab{display:none !important}.hidden-by-tab{display:none !important}.acf-tab-wrap{clear:both;z-index:1}.acf-tab-group{border-bottom:#ccc solid 1px;padding:10px 10px 0}.acf-tab-group li{margin:0 0.5em 0 0}.acf-tab-group li a{padding:5px 10px;display:block;color:#555;font-size:14px;font-weight:600;line-height:24px;border:#ccc solid 1px;border-bottom:0 none;text-decoration:none;background:#e5e5e5;transition:none}.acf-tab-group li a:hover{background:#FFF}.acf-tab-group li a:focus{outline:none;box-shadow:none}.acf-tab-group li a:empty{display:none}html[dir="rtl"] .acf-tab-group li{margin:0 0 0 0.5em}.acf-tab-group li.active a{background:#F1F1F1;color:#000;padding-bottom:6px;margin-bottom:-1px;position:relative;z-index:1}.acf-fields>.acf-tab-wrap{background:#F9F9F9}.acf-fields>.acf-tab-wrap .acf-tab-group{position:relative;z-index:1;margin-bottom:-1px;border-top:#DFDFDF solid 1px;border-bottom:#DFDFDF solid 1px}.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1}.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#FFF}.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#FFFFFF}.acf-fields>.acf-tab-wrap:first-child .acf-tab-group{border-top:none}.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:20%}@media screen and (max-width: 640px){.acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:10px}}html[dir="rtl"] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-left:0;padding-right:20%}@media screen and (max-width: 850px){html[dir="rtl"] .acf-fields.-left>.acf-tab-wrap .acf-tab-group{padding-right:10px}}.acf-tab-wrap.-left .acf-tab-group{position:absolute;left:0;width:20%;border:0 none;padding:0 !important;margin:1px 0 0}.acf-tab-wrap.-left .acf-tab-group li{float:none;margin:-1px 0 0}.acf-tab-wrap.-left .acf-tab-group li a{border:1px solid #ededed;font-size:13px;line-height:18px;color:#0073aa;padding:10px;margin:0;font-weight:normal;border-width:1px 0;border-radius:0;background:transparent}.acf-tab-wrap.-left .acf-tab-group li a:hover{color:#00a0d2}.acf-tab-wrap.-left .acf-tab-group li.active a{border-color:#DFDFDF;color:#000;margin-right:-1px;background:#fff}html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group{left:auto;right:0}html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group li.active a{margin-right:0;margin-left:-1px}.acf-field+.acf-tab-wrap.-left:before{content:"";display:block;position:relative;z-index:1;height:10px;border-top:#DFDFDF solid 1px;border-bottom:#DFDFDF solid 1px;margin-bottom:-1px}.acf-tab-wrap.-left:first-child .acf-tab-group li:first-child a{border-top:none}.acf-fields.-sidebar{padding:0 0 0 20% !important;position:relative}.acf-fields.-sidebar:before{content:"";display:block;position:absolute;top:0;left:0;width:20%;bottom:0;border-right:#DFDFDF solid 1px;background:#F9F9F9;z-index:1}html[dir="rtl"] .acf-fields.-sidebar{padding:0 20% 0 0 !important}html[dir="rtl"] .acf-fields.-sidebar:before{border-left:#DFDFDF solid 1px;border-right-width:0;left:auto;right:0}.acf-fields.-sidebar.-left{padding:0 0 0 180px !important}html[dir="rtl"] .acf-fields.-sidebar.-left{padding:0 180px 0 0 !important}.acf-fields.-sidebar.-left:before{background:#F1F1F1;border-color:#dfdfdf;width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group{width:180px}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li a{border-color:#e4e4e4}.acf-fields.-sidebar.-left>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#F9F9F9}.acf-fields.-sidebar>.acf-field-tab+.acf-field{border-top:none}.acf-fields.-clear>.acf-tab-wrap{background:transparent}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group{margin-top:0;border-top:none;padding-left:0;padding-right:0}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields.-sidebar{margin-left:0 !important}.acf-postbox.seamless>.acf-fields.-sidebar:before{background:transparent}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap{background:transparent;margin-bottom:10px;padding-left:12px;padding-right:12px}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group{border-top:0 none}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#e5e5e5}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li a:hover{background:#fff}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#f1f1f1}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left:before{border-top:none;height:auto}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group{margin-bottom:0}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li a{border-width:1px 0 1px 1px !important;border-color:#cccccc;background:#e5e5e5}.acf-postbox.seamless>.acf-fields>.acf-tab-wrap.-left .acf-tab-group li.active a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1}.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.menu-edit .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li a:hover,.widget .acf-fields.-clear>.acf-tab-wrap .acf-tab-group li.active a{background:#fff}.compat-item .acf-tab-wrap td{display:block}.acf-gallery-side .acf-tab-wrap{border-top:0 none !important}.acf-gallery-side .acf-tab-wrap .acf-tab-group{margin:10px 0 !important;padding:0 !important}.acf-gallery-side .acf-tab-group li.active a{background:#F9F9F9 !important}.widget .acf-tab-group{border-bottom-color:#e8e8e8}.widget .acf-tab-group li a{background:#F1F1F1}.widget .acf-tab-group li.active a{background:#fff}.media-modal.acf-expanded .compat-attachment-fields>tbody>tr.acf-tab-wrap .acf-tab-group{padding-left:23%;border-bottom-color:#DDDDDD}.form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 5px 0 210px}html[dir="rtl"] .form-table>tbody>tr.acf-tab-wrap .acf-tab-group{padding:0 210px 0 5px}.acf-oembed{position:relative;border:#DFDFDF solid 1px;background:#fff}.acf-oembed .title{position:relative;border-bottom:#DFDFDF solid 1px;padding:5px 10px}.acf-oembed .title .input-search{margin:0;font-size:14px;line-height:30px;height:30px;padding:0;border:0 none;box-shadow:none;border-radius:0;font-family:inherit;cursor:text}.acf-oembed .title .acf-actions{padding:6px}.acf-oembed .canvas{position:relative;min-height:250px;background:#F9F9F9}.acf-oembed .canvas .canvas-media{position:relative;z-index:1}.acf-oembed .canvas iframe{display:block;margin:0;padding:0;width:100%}.acf-oembed .canvas .acf-icon.-picture{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:0;height:42px;width:42px;font-size:42px;color:#999}.acf-oembed .canvas .acf-loading-overlay{background:rgba(255,255,255,0.9)}.acf-oembed .canvas .canvas-error{position:absolute;top:50%;left:0%;right:0%;margin:-9px 0 0 0;text-align:center;display:none}.acf-oembed .canvas .canvas-error p{padding:8px;margin:0;display:inline}.acf-oembed.has-value .canvas{min-height:50px}.acf-oembed.has-value .input-search{font-weight:bold}.acf-oembed.has-value .title:hover .acf-actions{display:block}.acf-image-uploader{position:relative}.acf-image-uploader:after{display:block;clear:both;content:""}.acf-image-uploader p{margin:0}.acf-image-uploader .image-wrap{position:relative;float:left}.acf-image-uploader .image-wrap img{max-width:100%;width:auto;height:auto;display:block;min-width:30px;min-height:30px;background:#f1f1f1;margin:0;padding:0}.acf-image-uploader .image-wrap img[src$=".svg"]{min-height:100px;min-width:100px}.acf-image-uploader .image-wrap:hover .acf-actions{display:block}.acf-image-uploader input.button{width:auto}html[dir="rtl"] .acf-image-uploader .image-wrap{float:right}.acf-file-uploader{position:relative}.acf-file-uploader p{margin:0}.acf-file-uploader .file-wrap{border:#DFDFDF solid 1px;min-height:84px;position:relative;background:#fff}.acf-file-uploader .file-icon{position:absolute;top:0;left:0;bottom:0;padding:10px;background:#F1F1F1;border-right:#E5E5E5 solid 1px}.acf-file-uploader .file-icon img{display:block;padding:0;margin:0;max-width:48px}.acf-file-uploader .file-info{padding:10px;margin-left:69px}.acf-file-uploader .file-info p{margin:0 0 2px;font-size:13px;line-height:1.4em;word-break:break-all}.acf-file-uploader .file-info a{text-decoration:none}.acf-file-uploader:hover .acf-actions{display:block}html[dir="rtl"] .acf-file-uploader .file-icon{left:auto;right:0;border-left:#E5E5E5 solid 1px;border-right:none}html[dir="rtl"] .acf-file-uploader .file-info{margin-right:69px;margin-left:0}.acf-ui-datepicker .ui-datepicker{z-index:900000 !important}.acf-ui-datepicker .ui-datepicker .ui-widget-header a{cursor:pointer;transition:none}.acf-ui-datepicker .ui-state-highlight.ui-state-hover{border:1px solid #98b7e8 !important;background:#98b7e8 !important;font-weight:normal !important;color:#ffffff !important}.acf-ui-datepicker .ui-state-highlight.ui-state-active{border:1px solid #3875d7 !important;background:#3875d7 !important;font-weight:normal !important;color:#ffffff !important}.acf-field-separator .acf-label{margin-bottom:0}.acf-field-separator .acf-label label{font-weight:normal}.acf-field-separator .acf-input{display:none}.acf-fields>.acf-field-separator{background:#f9f9f9;border-bottom:1px solid #dfdfdf;border-top:1px solid #dfdfdf;margin-bottom:-1px;z-index:2}.acf-taxonomy-field{position:relative}.acf-taxonomy-field .categorychecklist-holder{border:#DFDFDF solid 1px;border-radius:3px;max-height:200px;overflow:auto}.acf-taxonomy-field .acf-checkbox-list{margin:0;padding:10px}.acf-taxonomy-field .acf-checkbox-list ul.children{padding-left:18px}.acf-taxonomy-field:hover .acf-actions{display:block}.acf-taxonomy-field[data-ftype="select"] .acf-actions{padding:0;margin:-9px}.acf-range-wrap .acf-append,.acf-range-wrap .acf-prepend{display:inline-block;vertical-align:middle;line-height:28px;margin:0 7px 0 0}.acf-range-wrap .acf-append{margin:0 0 0 7px}.acf-range-wrap input[type="range"]{display:inline-block;padding:0;margin:0;vertical-align:middle;height:28px}.acf-range-wrap input[type="range"]:focus{outline:none}.acf-range-wrap input[type="number"]{display:inline-block;min-width:3em;margin-left:10px;vertical-align:middle}html[dir="rtl"] .acf-range-wrap input[type="number"]{margin-right:10px;margin-left:0}html[dir="rtl"] .acf-range-wrap .acf-append{margin:0 7px 0 0}html[dir="rtl"] .acf-range-wrap .acf-prepend{margin:0 0 0 7px}.acf-accordion{margin:0;padding:0;background:#fff}.acf-accordion .acf-accordion-title{margin:0;padding:12px;font-weight:bold;cursor:pointer;font-size:inherit;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title label{margin:0;padding:0;font-size:13px;line-height:1.4em}.acf-accordion .acf-accordion-title p{font-weight:normal}.acf-accordion .acf-accordion-title .acf-accordion-icon{float:right}.acf-accordion .acf-accordion-content{margin:0;padding:0 12px 12px;display:none}.acf-accordion.-open>.acf-accordion-content{display:block}.acf-field.acf-accordion{padding:0 !important;border-color:#dfdfdf}.acf-field.acf-accordion .acf-accordion-title{padding:12px;width:auto !important;float:none !important;width:auto !important}.acf-field.acf-accordion .acf-accordion-content{padding:0;float:none !important;width:auto !important}.acf-field.acf-accordion .acf-accordion-content>.acf-fields{border-top:#EEEEEE solid 1px}.acf-field.acf-accordion .acf-accordion-content>.acf-fields.-clear{padding:0 12px 15px}.acf-fields.-left>.acf-field.acf-accordion{padding:0 !important}.acf-fields.-left>.acf-field.acf-accordion:before{display:none}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-title{width:auto;margin:0 !important;padding:12px;float:none !important}.acf-fields.-left>.acf-field.acf-accordion .acf-accordion-content{padding:0 !important}.acf-fields.-clear>.acf-field.acf-accordion{border:#cccccc solid 1px;background:transparent}.acf-fields.-clear>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-16px}tr.acf-field.acf-accordion{background:transparent}tr.acf-field.acf-accordion>.acf-input{padding:0 !important;border:#cccccc solid 1px}tr.acf-field.acf-accordion .acf-accordion-content{padding:0 12px 12px}#addtag div.acf-field.error{border:0 none;padding:8px 0}#addtag>.acf-field.acf-accordion{padding-right:0;margin-right:5%}#addtag>.acf-field.acf-accordion+p.submit{margin-top:0}tr.acf-accordion{margin:15px 0 !important}tr.acf-accordion+tr.acf-accordion{margin-top:-16px !important}.acf-postbox.seamless>.acf-fields>.acf-accordion{margin-left:12px !important;margin-right:12px !important}.widget .widget-content>.acf-field.acf-accordion{border:#dfdfdf solid 1px;margin-bottom:10px}.widget .widget-content>.acf-field.acf-accordion .acf-accordion-title{margin-bottom:0}.widget .widget-content>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-11px}.acf-postbox.seamless>.acf-fields>.acf-field.acf-accordion{border:#e5e5e5 solid 1px}.acf-postbox.seamless>.acf-fields>.acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-1px}.media-modal .compat-attachment-fields .acf-field.acf-accordion+.acf-field.acf-accordion{margin-top:-1px}.media-modal .compat-attachment-fields .acf-field.acf-accordion>.acf-input{width:100%}.media-modal .compat-attachment-fields .acf-field.acf-accordion .compat-attachment-fields>tbody>tr>td{padding-bottom:5px}.form-table>tbody>.acf-field>.acf-label{padding:20px 10px 20px 0;width:210px}html[dir="rtl"] .form-table>tbody>.acf-field>.acf-label{padding:20px 0 20px 10px}.form-table>tbody>.acf-field>.acf-label label{font-size:14px;color:#23282d}.form-table>tbody>.acf-field>.acf-input{padding:15px 10px}html[dir="rtl"] .form-table>tbody>.acf-field>.acf-input{padding:15px 10px 15px 5%}.form-table>tbody>.acf-tab-wrap td{padding:15px 5% 15px 0}html[dir="rtl"] .form-table>tbody>.acf-tab-wrap td{padding:15px 0 15px 5%}.form-table>tbody .form-table th.acf-th{width:auto}#your-profile .acf-field input[type="text"],#your-profile .acf-field input[type="password"],#your-profile .acf-field input[type="number"],#your-profile .acf-field input[type="search"],#your-profile .acf-field input[type="email"],#your-profile .acf-field input[type="url"],#your-profile .acf-field select,#createuser .acf-field input[type="text"],#createuser .acf-field input[type="password"],#createuser .acf-field input[type="number"],#createuser .acf-field input[type="search"],#createuser .acf-field input[type="email"],#createuser .acf-field input[type="url"],#createuser .acf-field select{max-width:25em}#your-profile .acf-field textarea,#createuser .acf-field textarea{max-width:500px}#your-profile .acf-field .acf-field input[type="text"],#your-profile .acf-field .acf-field input[type="password"],#your-profile .acf-field .acf-field input[type="number"],#your-profile .acf-field .acf-field input[type="search"],#your-profile .acf-field .acf-field input[type="email"],#your-profile .acf-field .acf-field input[type="url"],#your-profile .acf-field .acf-field textarea,#your-profile .acf-field .acf-field select,#createuser .acf-field .acf-field input[type="text"],#createuser .acf-field .acf-field input[type="password"],#createuser .acf-field .acf-field input[type="number"],#createuser .acf-field .acf-field input[type="search"],#createuser .acf-field .acf-field input[type="email"],#createuser .acf-field .acf-field input[type="url"],#createuser .acf-field .acf-field textarea,#createuser .acf-field .acf-field select{max-width:none}#registerform h2{margin:1em 0}#registerform .acf-field{margin-top:0}#registerform .acf-field .acf-label{margin-bottom:0}#registerform .acf-field .acf-label label{font-weight:normal;line-height:1.5}#registerform p.submit{text-align:right}#acf-term-fields{padding-right:5%}#acf-term-fields>.acf-field>.acf-label{margin:0}#acf-term-fields>.acf-field>.acf-label label{font-size:12px;font-weight:normal}p.submit .spinner,p.submit .acf-spinner{vertical-align:top;float:none;margin:4px 4px 0}#edittag .acf-fields.-left>.acf-field{padding-left:220px}#edittag .acf-fields.-left>.acf-field:before{width:209px}#edittag .acf-fields.-left>.acf-field>.acf-label{width:220px;margin-left:-220px;padding:0 10px}#edittag .acf-fields.-left>.acf-field>.acf-input{padding:0}#edittag>.acf-fields.-left{width:96%}#edittag>.acf-fields.-left>.acf-field>.acf-label{padding-left:0}.editcomment td:first-child{white-space:nowrap;width:131px}#widgets-right .widget .acf-field .description{padding-left:0;padding-right:0}.acf-widget-fields>.acf-field .acf-label{margin-bottom:5px}.acf-widget-fields>.acf-field .acf-label label{font-weight:normal;margin:0}.acf-menu-settings{border-top:1px solid #eee;margin-top:2em}.acf-menu-settings.-seamless{border-top:none;margin-top:15px}.acf-menu-settings.-seamless>h2{display:none}.acf-menu-settings .list li{display:block;margin-bottom:0}.acf-menu-item-fields{margin-right:10px;float:left}#post .compat-attachment-fields .compat-field-acf-form-data{display:none}#post .compat-attachment-fields,#post .compat-attachment-fields>tbody,#post .compat-attachment-fields>tbody>tr,#post .compat-attachment-fields>tbody>tr>th,#post .compat-attachment-fields>tbody>tr>td{display:block}#post .compat-attachment-fields>tbody>.acf-field{margin:15px 0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label{margin:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label{margin:0;padding:0}#post .compat-attachment-fields>tbody>.acf-field>.acf-label label p{margin:0 0 3px !important}#post .compat-attachment-fields>tbody>.acf-field>.acf-input{margin:0}.media-modal .compat-attachment-fields td.acf-input table{display:table;table-layout:auto}.media-modal .compat-attachment-fields td.acf-input table tbody{display:table-row-group}.media-modal .compat-attachment-fields td.acf-input table tr{display:table-row}.media-modal .compat-attachment-fields td.acf-input table td,.media-modal .compat-attachment-fields td.acf-input table th{display:table-cell}.media-modal .compat-attachment-fields>tbody>.acf-field{margin:5px 0}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:30%;margin:0;padding:0;float:left;text-align:right;display:block;float:left}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label>label{padding-top:6px;margin:0;color:#666666;font-weight:400;line-height:16px}.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input{width:65%;margin:0;padding:0;float:right;display:block}.media-modal .compat-attachment-fields>tbody>.acf-field p.description{margin:0}.acf-selection-error{background:#ffebe8;border:1px solid #c00;border-radius:3px;padding:8px;margin:20px 0 0}.acf-selection-error .selection-error-label{background:#CC0000;border-radius:3px;color:#fff;font-weight:bold;margin-right:8px;padding:2px 4px}.acf-selection-error .selection-error-message{color:#b44;display:block;padding-top:8px;word-wrap:break-word;white-space:pre-wrap}.media-modal .attachment.acf-disabled .thumbnail{opacity:0.25 !important}.media-modal .attachment.acf-disabled .attachment-preview:before{background:rgba(0,0,0,0.15);z-index:1;position:relative}.media-modal .compat-field-acf-form-data,.media-modal .compat-field-acf-blank{display:none !important}.media-modal .upload-error-message{white-space:pre-wrap}.media-modal .acf-required{padding:0 !important;margin:0 !important;float:none !important;color:#f00 !important}.media-modal .media-sidebar .compat-item{padding-bottom:20px}@media (max-width: 900px){.media-modal .setting span,.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-label{width:98%;float:none;text-align:left;min-height:0;padding:0}.media-modal .setting input,.media-modal .setting textarea,.media-modal .compat-attachment-fields>tbody>.acf-field>.acf-input{float:none;height:auto;max-width:none;width:98%}}.media-modal .acf-expand-details{float:right;padding:1px 10px;margin-right:6px;height:18px;line-height:18px;color:#AAAAAA;font-size:12px}.media-modal .acf-expand-details:focus,.media-modal .acf-expand-details:active{outline:0 none;box-shadow:none;color:#AAAAAA}.media-modal .acf-expand-details:hover{color:#666666 !important}.media-modal .acf-expand-details span{display:block;float:left}.media-modal .acf-expand-details .acf-icon{margin:0 4px 0 0}.media-modal .acf-expand-details:hover .acf-icon{border-color:#AAAAAA}.media-modal .acf-expand-details .is-open{display:none}.media-modal .acf-expand-details .is-closed{display:block}@media (max-width: 640px){.media-modal .acf-expand-details{display:none}}.media-modal.acf-expanded .acf-expand-details .is-open{display:block}.media-modal.acf-expanded .acf-expand-details .is-closed{display:none}.media-modal.acf-expanded .attachments-browser .media-toolbar,.media-modal.acf-expanded .attachments-browser .attachments{right:740px}.media-modal.acf-expanded .media-sidebar{width:708px}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{float:left;max-height:none}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail img{max-width:100%;max-height:200px}.media-modal.acf-expanded .media-sidebar .attachment-info .details{float:right}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,.media-modal.acf-expanded .media-sidebar .attachment-details .setting span,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-label{min-width:20%;margin-right:0}.media-modal.acf-expanded .media-sidebar .attachment-info .details,.media-modal.acf-expanded .media-sidebar .attachment-details .setting input,.media-modal.acf-expanded .media-sidebar .attachment-details .setting textarea,.media-modal.acf-expanded .media-sidebar .attachment-details .setting+.description,.media-modal.acf-expanded .media-sidebar .compat-attachment-fields>tbody>.acf-field>.acf-input{min-width:77%}@media (max-width: 900px){.media-modal.acf-expanded .attachments-browser .media-toolbar{display:none}.media-modal.acf-expanded .attachments{display:none}.media-modal.acf-expanded .media-sidebar{width:auto;max-width:none !important;bottom:0 !important}.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail{min-width:0;max-width:none;width:30%}.media-modal.acf-expanded .media-sidebar .attachment-info .details{min-width:0;max-width:none;width:67%}}@media (max-width: 640px){.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,.media-modal.acf-expanded .media-sidebar .attachment-info .details{width:100%}}.acf-media-modal .media-embed .setting.align,.acf-media-modal .media-embed .setting.link-to{display:none}@media screen and (min-width: 1024px){.acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary{max-width:none}.acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary select.attachment-filters{width:auto;min-width:150px;max-width:none;margin:11px 6px 0 0;vertical-align:middle}}.acf-media-modal.-edit{left:15%;right:15%;top:100px;bottom:100px}.acf-media-modal.-edit .media-frame-menu,.acf-media-modal.-edit .media-frame-router,.acf-media-modal.-edit .media-frame-content .attachments,.acf-media-modal.-edit .media-frame-content .media-toolbar{display:none}.acf-media-modal.-edit .media-frame-title,.acf-media-modal.-edit .media-frame-content,.acf-media-modal.-edit .media-frame-toolbar,.acf-media-modal.-edit .media-sidebar{width:auto;left:0;right:0}.acf-media-modal.-edit .media-frame-content{top:50px}.acf-media-modal.-edit .media-frame-title{border-bottom:1px solid #DFDFDF;box-shadow:0 4px 4px -4px rgba(0,0,0,0.1)}.acf-media-modal.-edit .media-sidebar{padding:0 16px}.acf-media-modal.-edit .media-sidebar .attachment-details{overflow:visible}.acf-media-modal.-edit .media-sidebar .attachment-details>h3,.acf-media-modal.-edit .media-sidebar .attachment-details>h2{display:none}.acf-media-modal.-edit .media-sidebar .attachment-details .attachment-info{background:#fff;border-bottom:#dddddd solid 1px;padding:16px;margin:0 -16px 16px}.acf-media-modal.-edit .media-sidebar .attachment-details .thumbnail{margin:0 16px 0 0}.acf-media-modal.-edit .media-sidebar .attachment-details .setting{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .attachment-details .setting span{margin:0}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field{margin:0 0 5px}.acf-media-modal.-edit .media-sidebar .compat-attachment-fields>tbody>.acf-field p.description{margin-top:3px}.acf-media-modal.-edit .media-sidebar .media-types-required-info{display:none}@media (max-width: 900px){.acf-media-modal.-edit{top:30px;right:30px;bottom:30px;left:30px}}@media (max-width: 640px){.acf-media-modal.-edit{top:0;right:0;bottom:0;left:0}}@media (max-width: 480px){.acf-media-modal.-edit .media-frame-content{top:40px}}.acf-temp-remove{position:relative;opacity:1;-webkit-transition:all 0.25s ease;-moz-transition:all 0.25s ease;-o-transition:all 0.25s ease;transition:all 0.25s ease;overflow:hidden}.acf-temp-remove:after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.hidden-by-conditional-logic{display:none !important}.hidden-by-conditional-logic.appear-empty{display:table-cell !important}.hidden-by-conditional-logic.appear-empty .acf-input{display:none !important}.acf-postbox.acf-hidden{display:none !important}#editor .edit-post-layout__metaboxes{padding:0}#editor .postbox{color:#444}#editor .postbox .handlediv{color:#191e23 !important;height:46px;width:auto;padding:0 14px 0 5px;position:relative;z-index:2}#editor .postbox .hndle{color:#191e23 !important;font-size:13px;line-height:normal;padding:15px}#editor .postbox .hndle:hover{background:#f2f4f5}#editor .postbox .hndle .acf-hndle-cog{line-height:16px}#editor .postbox .handlediv .toggle-indicator{color:inherit}#editor .postbox .handlediv .toggle-indicator:before{content:"\f343";font-size:18px;width:auto}#editor .postbox.closed .handlediv .toggle-indicator:before{content:"\f347"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*--------------------------------------------------------------------------------------------
|
2 |
+
*
|
3 |
+
* Vars
|
4 |
+
*
|
5 |
+
*--------------------------------------------------------------------------------------------*/
|
6 |
+
/* colors */
|
7 |
+
/* acf-field */
|
8 |
+
/* responsive */
|
9 |
+
/*--------------------------------------------------------------------------------------------
|
10 |
+
*
|
11 |
+
* Mixins
|
12 |
+
*
|
13 |
+
*--------------------------------------------------------------------------------------------*/
|
14 |
+
/*--------------------------------------------------------------------------------------------
|
15 |
+
*
|
16 |
+
* acf-field
|
17 |
+
*
|
18 |
+
*--------------------------------------------------------------------------------------------*/
|
19 |
+
.acf-field,
|
20 |
+
.acf-field .acf-label,
|
21 |
+
.acf-field .acf-input {
|
22 |
+
-webkit-box-sizing: border-box;
|
23 |
+
-moz-box-sizing: border-box;
|
24 |
+
box-sizing: border-box;
|
25 |
+
position: relative; }
|
26 |
+
|
27 |
+
.acf-field {
|
28 |
+
margin: 15px 0;
|
29 |
+
clear: both; }
|
30 |
+
.acf-field p.description {
|
31 |
+
display: block;
|
32 |
+
margin: 0;
|
33 |
+
padding: 0; }
|
34 |
+
.acf-field .acf-label {
|
35 |
+
vertical-align: top;
|
36 |
+
margin: 0 0 10px; }
|
37 |
+
.acf-field .acf-label label {
|
38 |
+
display: block;
|
39 |
+
font-weight: bold;
|
40 |
+
margin: 0 0 3px;
|
41 |
+
padding: 0; }
|
42 |
+
.acf-field .acf-label:empty {
|
43 |
+
margin-bottom: 0; }
|
44 |
+
.acf-field .acf-input {
|
45 |
+
vertical-align: top; }
|
46 |
+
.acf-field .acf-input > p.description {
|
47 |
+
margin-top: 5px; }
|
48 |
+
.acf-field .acf-notice {
|
49 |
+
margin: 0 0 15px;
|
50 |
+
background: #edf2ff;
|
51 |
+
color: #2183b9;
|
52 |
+
border: none; }
|
53 |
+
.acf-field .acf-notice .acf-notice-dismiss {
|
54 |
+
background: transparent;
|
55 |
+
color: inherit; }
|
56 |
+
.acf-field .acf-notice .acf-notice-dismiss:hover {
|
57 |
+
background: #fff; }
|
58 |
+
.acf-field .acf-notice.-dismiss {
|
59 |
+
padding-right: 40px; }
|
60 |
+
.acf-field .acf-notice.-error {
|
61 |
+
background: #ffe6e6;
|
62 |
+
color: #d12626; }
|
63 |
+
.acf-field .acf-notice.-success {
|
64 |
+
background: #eefbe8;
|
65 |
+
color: #32a23b; }
|
66 |
+
.acf-field .acf-notice.-warning {
|
67 |
+
background: #fff3e6;
|
68 |
+
color: #d16226; }
|
69 |
+
td.acf-field, tr.acf-field {
|
70 |
+
margin: 0; }
|
71 |
+
|
72 |
+
.acf-field[data-width] {
|
73 |
+
float: left;
|
74 |
+
clear: none;
|
75 |
+
/*
|
76 |
+
@media screen and (max-width: $sm) {
|
77 |
+
float: none;
|
78 |
+
width: auto;
|
79 |
+
border-left-width: 0;
|
80 |
+
border-right-width: 0;
|
81 |
+
}
|
82 |
+
*/ }
|
83 |
+
.acf-field[data-width] + .acf-field[data-width] {
|
84 |
+
border-left: 1px solid #eeeeee; }
|
85 |
+
html[dir="rtl"] .acf-field[data-width] {
|
86 |
+
float: right; }
|
87 |
+
html[dir="rtl"] .acf-field[data-width] + .acf-field[data-width] {
|
88 |
+
border-left: none;
|
89 |
+
border-right: 1px solid #eeeeee; }
|
90 |
+
td.acf-field[data-width], tr.acf-field[data-width] {
|
91 |
+
float: none; }
|
92 |
+
|
93 |
+
.acf-field.-c0 {
|
94 |
+
clear: both;
|
95 |
+
border-left-width: 0 !important; }
|
96 |
+
html[dir="rtl"] .acf-field.-c0 {
|
97 |
+
border-left-width: 1px !important;
|
98 |
+
border-right-width: 0 !important; }
|
99 |
+
|
100 |
+
.acf-field.-r0 {
|
101 |
+
border-top-width: 0 !important; }
|
102 |
+
|
103 |
+
/*--------------------------------------------------------------------------------------------
|
104 |
+
*
|
105 |
+
* acf-fields
|
106 |
+
*
|
107 |
+
*--------------------------------------------------------------------------------------------*/
|
108 |
+
.acf-fields {
|
109 |
+
position: relative; }
|
110 |
+
.acf-fields:after {
|
111 |
+
display: block;
|
112 |
+
clear: both;
|
113 |
+
content: ""; }
|
114 |
+
.acf-fields.-border {
|
115 |
+
border: #dfdfdf solid 1px;
|
116 |
+
background: #fff; }
|
117 |
+
.acf-fields > .acf-field {
|
118 |
+
position: relative;
|
119 |
+
margin: 0;
|
120 |
+
padding: 15px 12px;
|
121 |
+
border-top: #EEEEEE solid 1px; }
|
122 |
+
.acf-fields > .acf-field:first-child {
|
123 |
+
border-top-width: 0; }
|
124 |
+
td.acf-fields {
|
125 |
+
padding: 0 !important; }
|
126 |
+
|
127 |
+
/*--------------------------------------------------------------------------------------------
|
128 |
+
*
|
129 |
+
* acf-fields (clear)
|
130 |
+
*
|
131 |
+
*--------------------------------------------------------------------------------------------*/
|
132 |
+
.acf-fields.-clear > .acf-field {
|
133 |
+
border: none;
|
134 |
+
padding: 0;
|
135 |
+
margin: 15px 0; }
|
136 |
+
.acf-fields.-clear > .acf-field[data-width] {
|
137 |
+
border: none !important; }
|
138 |
+
.acf-fields.-clear > .acf-field > .acf-label {
|
139 |
+
padding: 0; }
|
140 |
+
.acf-fields.-clear > .acf-field > .acf-input {
|
141 |
+
padding: 0; }
|
142 |
+
|
143 |
+
/*--------------------------------------------------------------------------------------------
|
144 |
+
*
|
145 |
+
* acf-fields (left)
|
146 |
+
*
|
147 |
+
*--------------------------------------------------------------------------------------------*/
|
148 |
+
.acf-fields.-left > .acf-field {
|
149 |
+
padding: 15px 0; }
|
150 |
+
.acf-fields.-left > .acf-field:after {
|
151 |
+
display: block;
|
152 |
+
clear: both;
|
153 |
+
content: ""; }
|
154 |
+
.acf-fields.-left > .acf-field:before {
|
155 |
+
content: "";
|
156 |
+
display: block;
|
157 |
+
position: absolute;
|
158 |
+
z-index: 0;
|
159 |
+
background: #F9F9F9;
|
160 |
+
border-color: #E1E1E1;
|
161 |
+
border-style: solid;
|
162 |
+
border-width: 0 1px 0 0;
|
163 |
+
top: 0;
|
164 |
+
bottom: 0;
|
165 |
+
left: 0;
|
166 |
+
width: 20%; }
|
167 |
+
.acf-fields.-left > .acf-field[data-width] {
|
168 |
+
float: none;
|
169 |
+
width: auto !important;
|
170 |
+
border-left-width: 0 !important;
|
171 |
+
border-right-width: 0 !important; }
|
172 |
+
.acf-fields.-left > .acf-field > .acf-label {
|
173 |
+
float: left;
|
174 |
+
width: 20%;
|
175 |
+
margin: 0;
|
176 |
+
padding: 0 12px; }
|
177 |
+
.acf-fields.-left > .acf-field > .acf-input {
|
178 |
+
float: left;
|
179 |
+
width: 80%;
|
180 |
+
margin: 0;
|
181 |
+
padding: 0 12px; }
|
182 |
+
html[dir="rtl"] .acf-fields.-left > .acf-field:before {
|
183 |
+
border-width: 0 0 0 1px;
|
184 |
+
left: auto;
|
185 |
+
right: 0; }
|
186 |
+
html[dir="rtl"] .acf-fields.-left > .acf-field > .acf-label {
|
187 |
+
float: right; }
|
188 |
+
html[dir="rtl"] .acf-fields.-left > .acf-field > .acf-input {
|
189 |
+
float: right; }
|
190 |
+
@media screen and (max-width: 640px) {
|
191 |
+
.acf-fields.-left > .acf-field:before {
|
192 |
+
display: none; }
|
193 |
+
.acf-fields.-left > .acf-field > .acf-label {
|
194 |
+
width: 100%;
|
195 |
+
margin-bottom: 10px; }
|
196 |
+
.acf-fields.-left > .acf-field > .acf-input {
|
197 |
+
width: 100%; } }
|
198 |
+
|
199 |
+
/* clear + left */
|
200 |
+
.acf-fields.-clear.-left > .acf-field {
|
201 |
+
padding: 0;
|
202 |
+
border: none; }
|
203 |
+
.acf-fields.-clear.-left > .acf-field:before {
|
204 |
+
display: none; }
|
205 |
+
.acf-fields.-clear.-left > .acf-field > .acf-label {
|
206 |
+
padding: 0; }
|
207 |
+
.acf-fields.-clear.-left > .acf-field > .acf-input {
|
208 |
+
padding: 0; }
|
209 |
+
|
210 |
+
/*--------------------------------------------------------------------------------------------
|
211 |
+
*
|
212 |
+
* acf-table
|
213 |
+
*
|
214 |
+
*--------------------------------------------------------------------------------------------*/
|
215 |
+
.acf-table tr.acf-field > td.acf-label {
|
216 |
+
padding: 15px 12px;
|
217 |
+
margin: 0;
|
218 |
+
background: #F9F9F9;
|
219 |
+
width: 20%; }
|
220 |
+
|
221 |
+
.acf-table tr.acf-field > td.acf-input {
|
222 |
+
padding: 15px 12px;
|
223 |
+
margin: 0;
|
224 |
+
border-left-color: #E1E1E1; }
|
225 |
+
|
226 |
+
.acf-sortable-tr-helper {
|
227 |
+
position: relative !important;
|
228 |
+
display: table-row !important; }
|
229 |
+
|
230 |
+
/*--------------------------------------------------------------------------------------------
|
231 |
+
*
|
232 |
+
* acf-postbox
|
233 |
+
*
|
234 |
+
*--------------------------------------------------------------------------------------------*/
|
235 |
+
.acf-postbox {
|
236 |
+
position: relative; }
|
237 |
+
.acf-postbox > .inside {
|
238 |
+
margin: 0 !important;
|
239 |
+
/* override WP style - do not delete - you have tried this before */
|
240 |
+
padding: 0 !important;
|
241 |
+
/* override WP style - do not delete - you have tried this before */ }
|
242 |
+
.acf-postbox > .hndle {
|
243 |
+
/* edit field group */ }
|
244 |
+
.acf-postbox > .hndle .acf-hndle-cog {
|
245 |
+
color: #AAAAAA;
|
246 |
+
font-size: 16px;
|
247 |
+
line-height: 20px;
|
248 |
+
padding: 0 2px;
|
249 |
+
float: right;
|
250 |
+
position: relative;
|
251 |
+
display: none; }
|
252 |
+
.acf-postbox > .hndle .acf-hndle-cog:hover {
|
253 |
+
color: #777777; }
|
254 |
+
.acf-postbox:hover > .hndle .acf-hndle-cog {
|
255 |
+
display: block; }
|
256 |
+
.acf-postbox .acf-replace-with-fields {
|
257 |
+
padding: 15px;
|
258 |
+
text-align: center; }
|
259 |
+
|
260 |
+
#post-body-content #acf_after_title-sortables {
|
261 |
+
margin: 20px 0 -20px; }
|
262 |
+
|
263 |
+
/* seamless */
|
264 |
+
.acf-postbox.seamless {
|
265 |
+
border: 0 none;
|
266 |
+
background: transparent;
|
267 |
+
box-shadow: none;
|
268 |
+
/* hide hndle */
|
269 |
+
/* inside */ }
|
270 |
+
.acf-postbox.seamless > .hndle,
|
271 |
+
.acf-postbox.seamless > .handlediv {
|
272 |
+
display: none !important; }
|
273 |
+
.acf-postbox.seamless > .inside {
|
274 |
+
display: block !important;
|
275 |
+
/* stop metabox from hiding when closed */
|
276 |
+
margin-left: -12px !important;
|
277 |
+
margin-right: -12px !important; }
|
278 |
+
.acf-postbox.seamless > .inside > .acf-field {
|
279 |
+
border-color: transparent; }
|
280 |
+
|
281 |
+
/* seamless (left) */
|
282 |
+
.acf-postbox.seamless > .acf-fields.-left {
|
283 |
+
/* hide sidebar bg */
|
284 |
+
/* mobile */ }
|
285 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field:before {
|
286 |
+
display: none; }
|
287 |
+
@media screen and (max-width: 782px) {
|
288 |
+
.acf-postbox.seamless > .acf-fields.-left {
|
289 |
+
/* remove padding */ }
|
290 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field > .acf-label,
|
291 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field > .acf-input {
|
292 |
+
padding: 0; } }
|
293 |
+
|
294 |
+
/*---------------------------------------------------------------------------------------------
|
295 |
+
*
|
296 |
+
* Inputs
|
297 |
+
*
|
298 |
+
*---------------------------------------------------------------------------------------------*/
|
299 |
+
.acf-field input[type="text"],
|
300 |
+
.acf-field input[type="password"],
|
301 |
+
.acf-field input[type="number"],
|
302 |
+
.acf-field input[type="search"],
|
303 |
+
.acf-field input[type="email"],
|
304 |
+
.acf-field input[type="url"],
|
305 |
+
.acf-field textarea,
|
306 |
+
.acf-field select {
|
307 |
+
width: 100%;
|
308 |
+
padding: 3px 5px;
|
309 |
+
resize: none;
|
310 |
+
margin: 0;
|
311 |
+
-webkit-box-sizing: border-box;
|
312 |
+
-moz-box-sizing: border-box;
|
313 |
+
box-sizing: border-box;
|
314 |
+
font-size: 14px;
|
315 |
+
line-height: 1.4; }
|
316 |
+
.acf-field input[type="text"]:disabled,
|
317 |
+
.acf-field input[type="password"]:disabled,
|
318 |
+
.acf-field input[type="number"]:disabled,
|
319 |
+
.acf-field input[type="search"]:disabled,
|
320 |
+
.acf-field input[type="email"]:disabled,
|
321 |
+
.acf-field input[type="url"]:disabled,
|
322 |
+
.acf-field textarea:disabled,
|
323 |
+
.acf-field select:disabled {
|
324 |
+
background: #f8f8f8; }
|
325 |
+
.acf-field input[type="text"][readonly],
|
326 |
+
.acf-field input[type="password"][readonly],
|
327 |
+
.acf-field input[type="number"][readonly],
|
328 |
+
.acf-field input[type="search"][readonly],
|
329 |
+
.acf-field input[type="email"][readonly],
|
330 |
+
.acf-field input[type="url"][readonly],
|
331 |
+
.acf-field textarea[readonly],
|
332 |
+
.acf-field select[readonly] {
|
333 |
+
background: #f8f8f8; }
|
334 |
+
|
335 |
+
.acf-field textarea {
|
336 |
+
resize: vertical; }
|
337 |
+
|
338 |
+
/*---------------------------------------------------------------------------------------------
|
339 |
+
*
|
340 |
+
* Text
|
341 |
+
*
|
342 |
+
*---------------------------------------------------------------------------------------------*/
|
343 |
+
.acf-input-prepend,
|
344 |
+
.acf-input-append,
|
345 |
+
.acf-input-wrap {
|
346 |
+
box-sizing: border-box; }
|
347 |
+
|
348 |
+
.acf-input-prepend,
|
349 |
+
.acf-input-append {
|
350 |
+
font-size: 13px;
|
351 |
+
line-height: 20px;
|
352 |
+
padding: 3px 7px;
|
353 |
+
background: #F4F4F4;
|
354 |
+
border: #DFDFDF solid 1px; }
|
355 |
+
|
356 |
+
.acf-input-prepend {
|
357 |
+
float: left;
|
358 |
+
border-right-width: 0;
|
359 |
+
border-radius: 3px 0 0 3px; }
|
360 |
+
|
361 |
+
.acf-input-append {
|
362 |
+
float: right;
|
363 |
+
border-left-width: 0;
|
364 |
+
border-radius: 0 3px 3px 0; }
|
365 |
+
|
366 |
+
.acf-input-wrap {
|
367 |
+
position: relative;
|
368 |
+
overflow: hidden; }
|
369 |
+
.acf-input-wrap input {
|
370 |
+
height: 28px;
|
371 |
+
margin: 0; }
|
372 |
+
|
373 |
+
input.acf-is-prepended {
|
374 |
+
border-radius: 0 3px 3px 0 !important; }
|
375 |
+
|
376 |
+
input.acf-is-appended {
|
377 |
+
border-radius: 3px 0 0 3px !important; }
|
378 |
+
|
379 |
+
input.acf-is-prepended.acf-is-appended {
|
380 |
+
border-radius: 0 !important; }
|
381 |
+
|
382 |
+
/* rtl */
|
383 |
+
html[dir="rtl"] .acf-input-prepend {
|
384 |
+
border-left-width: 0;
|
385 |
+
border-right-width: 1px;
|
386 |
+
border-radius: 0 3px 3px 0;
|
387 |
+
float: right; }
|
388 |
+
|
389 |
+
html[dir="rtl"] .acf-input-append {
|
390 |
+
border-left-width: 1px;
|
391 |
+
border-right-width: 0;
|
392 |
+
border-radius: 3px 0 0 3px;
|
393 |
+
float: left; }
|
394 |
+
|
395 |
+
html[dir="rtl"] input.acf-is-prepended {
|
396 |
+
border-radius: 3px 0 0 3px !important; }
|
397 |
+
|
398 |
+
html[dir="rtl"] input.acf-is-appended {
|
399 |
+
border-radius: 0 3px 3px 0 !important; }
|
400 |
+
|
401 |
+
html[dir="rtl"] input.acf-is-prepended.acf-is-appended {
|
402 |
+
border-radius: 0 !important; }
|
403 |
+
|
404 |
+
/*---------------------------------------------------------------------------------------------
|
405 |
+
*
|
406 |
+
* Color Picker
|
407 |
+
*
|
408 |
+
*---------------------------------------------------------------------------------------------*/
|
409 |
+
.acf-color-picker .wp-picker-active {
|
410 |
+
position: relative;
|
411 |
+
z-index: 1; }
|
412 |
+
|
413 |
+
/*---------------------------------------------------------------------------------------------
|
414 |
+
*
|
415 |
+
* Url
|
416 |
+
*
|
417 |
+
*---------------------------------------------------------------------------------------------*/
|
418 |
+
.acf-url i {
|
419 |
+
position: absolute;
|
420 |
+
top: 4px;
|
421 |
+
left: 4px;
|
422 |
+
opacity: 0.5;
|
423 |
+
color: #A9A9A9; }
|
424 |
+
|
425 |
+
.acf-url input[type="url"] {
|
426 |
+
padding-left: 25px; }
|
427 |
+
|
428 |
+
.acf-url.-valid i {
|
429 |
+
opacity: 1; }
|
430 |
+
|
431 |
+
/*---------------------------------------------------------------------------------------------
|
432 |
+
*
|
433 |
+
* Select
|
434 |
+
*
|
435 |
+
*---------------------------------------------------------------------------------------------*/
|
436 |
+
.acf-field select {
|
437 |
+
padding: 2px; }
|
438 |
+
|
439 |
+
.acf-field select optgroup {
|
440 |
+
padding: 5px;
|
441 |
+
background: #fff; }
|
442 |
+
|
443 |
+
.acf-field select option {
|
444 |
+
padding: 3px; }
|
445 |
+
|
446 |
+
.acf-field select optgroup option {
|
447 |
+
padding-left: 5px; }
|
448 |
+
|
449 |
+
.acf-field select optgroup:nth-child(2n) {
|
450 |
+
background: #F9F9F9; }
|
451 |
+
|
452 |
+
.acf-field .select2-input {
|
453 |
+
max-width: 200px; }
|
454 |
+
|
455 |
+
/*---------------------------------------------------------------------------------------------
|
456 |
+
*
|
457 |
+
* Select2 (v3)
|
458 |
+
*
|
459 |
+
*---------------------------------------------------------------------------------------------*/
|
460 |
+
.select2-container.-acf {
|
461 |
+
/* open */
|
462 |
+
/* single open */ }
|
463 |
+
.select2-container.-acf .select2-choices {
|
464 |
+
background: #fff;
|
465 |
+
border-color: #ddd;
|
466 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
|
467 |
+
min-height: 31px; }
|
468 |
+
.select2-container.-acf .select2-choices .select2-search-choice {
|
469 |
+
margin: 5px 0 5px 5px;
|
470 |
+
padding: 3px 5px 3px 18px;
|
471 |
+
border-color: #bbb;
|
472 |
+
background: #f9f9f9;
|
473 |
+
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
|
474 |
+
/* sortable item*/
|
475 |
+
/* sortable shadow */ }
|
476 |
+
.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper {
|
477 |
+
background: #5897fb;
|
478 |
+
border-color: #3f87fa;
|
479 |
+
color: #fff;
|
480 |
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); }
|
481 |
+
.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-helper a {
|
482 |
+
visibility: hidden; }
|
483 |
+
.select2-container.-acf .select2-choices .select2-search-choice.ui-sortable-placeholder {
|
484 |
+
background-color: #f7f7f7;
|
485 |
+
border-color: #f7f7f7;
|
486 |
+
visibility: visible !important; }
|
487 |
+
.select2-container.-acf .select2-choices .select2-search-choice-focus {
|
488 |
+
border-color: #999; }
|
489 |
+
.select2-container.-acf .select2-choices .select2-search-field input {
|
490 |
+
height: 31px;
|
491 |
+
line-height: 22px;
|
492 |
+
margin: 0;
|
493 |
+
padding: 5px 5px 5px 7px; }
|
494 |
+
.select2-container.-acf .select2-choice {
|
495 |
+
border-color: #BBBBBB; }
|
496 |
+
.select2-container.-acf .select2-choice .select2-arrow {
|
497 |
+
background: transparent;
|
498 |
+
border-left-color: #DFDFDF;
|
499 |
+
padding-left: 1px; }
|
500 |
+
.select2-container.-acf .select2-choice .select2-result-description {
|
501 |
+
display: none; }
|
502 |
+
.select2-container.-acf.select2-container-active .select2-choices,
|
503 |
+
.select2-container.-acf.select2-dropdown-open .select2-choices {
|
504 |
+
border-color: #5B9DD9;
|
505 |
+
border-radius: 3px 3px 0 0; }
|
506 |
+
.select2-container.-acf.select2-dropdown-open .select2-choice {
|
507 |
+
background: #fff;
|
508 |
+
border-color: #5B9DD9; }
|
509 |
+
|
510 |
+
/* rtl */
|
511 |
+
html[dir="rtl"] .select2-container.-acf .select2-search-choice-close {
|
512 |
+
left: 24px; }
|
513 |
+
|
514 |
+
html[dir="rtl"] .select2-container.-acf .select2-choice > .select2-chosen {
|
515 |
+
margin-left: 42px; }
|
516 |
+
|
517 |
+
html[dir="rtl"] .select2-container.-acf .select2-choice .select2-arrow {
|
518 |
+
padding-left: 0;
|
519 |
+
padding-right: 1px; }
|
520 |
+
|
521 |
+
/* description */
|
522 |
+
.select2-drop {
|
523 |
+
/* search*/
|
524 |
+
/* result */ }
|
525 |
+
.select2-drop .select2-search {
|
526 |
+
padding: 4px 4px 0; }
|
527 |
+
.select2-drop .select2-result {
|
528 |
+
/* hover*/ }
|
529 |
+
.select2-drop .select2-result .select2-result-description {
|
530 |
+
color: #999;
|
531 |
+
font-size: 12px;
|
532 |
+
margin-left: 5px; }
|
533 |
+
.select2-drop .select2-result.select2-highlighted .select2-result-description {
|
534 |
+
color: #fff;
|
535 |
+
opacity: 0.75; }
|
536 |
+
|
537 |
+
/*---------------------------------------------------------------------------------------------
|
538 |
+
*
|
539 |
+
* Select2 (v4)
|
540 |
+
*
|
541 |
+
*---------------------------------------------------------------------------------------------*/
|
542 |
+
.select2-container.-acf li {
|
543 |
+
margin-bottom: 0; }
|
544 |
+
|
545 |
+
.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child {
|
546 |
+
float: none; }
|
547 |
+
.select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child input {
|
548 |
+
width: 100% !important; }
|
549 |
+
|
550 |
+
.select2-container.-acf .select2-selection--multiple .select2-selection__rendered {
|
551 |
+
padding-right: 0; }
|
552 |
+
|
553 |
+
.select2-container.-acf .select2-selection--multiple .select2-selection__choice {
|
554 |
+
background-color: #f7f7f7;
|
555 |
+
border-color: #cccccc;
|
556 |
+
max-width: 100%;
|
557 |
+
overflow: hidden;
|
558 |
+
word-wrap: normal !important;
|
559 |
+
white-space: normal; }
|
560 |
+
.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper {
|
561 |
+
background: #5897fb;
|
562 |
+
border-color: #3f87fa;
|
563 |
+
color: #fff;
|
564 |
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); }
|
565 |
+
.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-helper span {
|
566 |
+
visibility: hidden; }
|
567 |
+
.select2-container.-acf .select2-selection--multiple .select2-selection__choice.ui-sortable-placeholder {
|
568 |
+
background-color: #f7f7f7;
|
569 |
+
border-color: #f7f7f7;
|
570 |
+
visibility: visible !important; }
|
571 |
+
|
572 |
+
.select2-container.-acf .select2-selection--multiple .select2-search__field {
|
573 |
+
box-shadow: none !important; }
|
574 |
+
|
575 |
+
.acf-row .select2-container.-acf .select2-selection--single {
|
576 |
+
overflow: hidden; }
|
577 |
+
.acf-row .select2-container.-acf .select2-selection--single .select2-selection__rendered {
|
578 |
+
white-space: normal; }
|
579 |
+
|
580 |
+
.select2-container .select2-dropdown {
|
581 |
+
z-index: 900000; }
|
582 |
+
|
583 |
+
/*---------------------------------------------------------------------------------------------
|
584 |
+
*
|
585 |
+
* Link
|
586 |
+
*
|
587 |
+
*---------------------------------------------------------------------------------------------*/
|
588 |
+
.link-wrap {
|
589 |
+
border: #dddddd solid 1px;
|
590 |
+
border-radius: 3px;
|
591 |
+
padding: 5px;
|
592 |
+
line-height: 26px;
|
593 |
+
background: #fff;
|
594 |
+
word-wrap: break-word;
|
595 |
+
word-break: break-all; }
|
596 |
+
.link-wrap .link-title {
|
597 |
+
padding: 0 5px; }
|
598 |
+
|
599 |
+
.acf-link {
|
600 |
+
/* value */
|
601 |
+
/* external */ }
|
602 |
+
.acf-link .link-wrap,
|
603 |
+
.acf-link .acf-icon.-link-ext {
|
604 |
+
display: none; }
|
605 |
+
.acf-link.-value .button {
|
606 |
+
display: none; }
|
607 |
+
.acf-link.-value .link-wrap {
|
608 |
+
display: inline-block; }
|
609 |
+
.acf-link.-external .acf-icon.-link-ext {
|
610 |
+
display: inline-block; }
|
611 |
+
|
612 |
+
#wp-link-backdrop {
|
613 |
+
z-index: 900000 !important; }
|
614 |
+
|
615 |
+
#wp-link-wrap {
|
616 |
+
z-index: 900001 !important; }
|
617 |
+
|
618 |
+
/*---------------------------------------------------------------------------------------------
|
619 |
+
*
|
620 |
+
* Radio
|
621 |
+
*
|
622 |
+
*---------------------------------------------------------------------------------------------*/
|
623 |
+
ul.acf-radio-list,
|
624 |
+
ul.acf-checkbox-list {
|
625 |
+
background: transparent;
|
626 |
+
position: relative;
|
627 |
+
padding: 1px;
|
628 |
+
margin: 0;
|
629 |
+
/* hl */
|
630 |
+
/* rtl */ }
|
631 |
+
ul.acf-radio-list li,
|
632 |
+
ul.acf-checkbox-list li {
|
633 |
+
font-size: 13px;
|
634 |
+
line-height: 22px;
|
635 |
+
margin: 0;
|
636 |
+
position: relative;
|
637 |
+
word-wrap: break-word;
|
638 |
+
/* attachment sidebar fix*/ }
|
639 |
+
ul.acf-radio-list li label,
|
640 |
+
ul.acf-checkbox-list li label {
|
641 |
+
display: inline; }
|
642 |
+
ul.acf-radio-list li input[type="checkbox"],
|
643 |
+
ul.acf-radio-list li input[type="radio"],
|
644 |
+
ul.acf-checkbox-list li input[type="checkbox"],
|
645 |
+
ul.acf-checkbox-list li input[type="radio"] {
|
646 |
+
margin: -1px 4px 0 0;
|
647 |
+
vertical-align: middle; }
|
648 |
+
ul.acf-radio-list li input[type="text"],
|
649 |
+
ul.acf-checkbox-list li input[type="text"] {
|
650 |
+
width: auto;
|
651 |
+
vertical-align: middle;
|
652 |
+
margin: 2px 0; }
|
653 |
+
ul.acf-radio-list li span,
|
654 |
+
ul.acf-checkbox-list li span {
|
655 |
+
float: none; }
|
656 |
+
ul.acf-radio-list li i,
|
657 |
+
ul.acf-checkbox-list li i {
|
658 |
+
vertical-align: middle; }
|
659 |
+
ul.acf-radio-list.acf-hl li,
|
660 |
+
ul.acf-checkbox-list.acf-hl li {
|
661 |
+
margin-right: 20px;
|
662 |
+
clear: none; }
|
663 |
+
html[dir="rtl"] ul.acf-radio-list input[type="checkbox"],
|
664 |
+
html[dir="rtl"] ul.acf-radio-list input[type="radio"], html[dir="rtl"]
|
665 |
+
ul.acf-checkbox-list input[type="checkbox"],
|
666 |
+
html[dir="rtl"]
|
667 |
+
ul.acf-checkbox-list input[type="radio"] {
|
668 |
+
margin-left: 4px;
|
669 |
+
margin-right: 0; }
|
670 |
+
|
671 |
+
/*---------------------------------------------------------------------------------------------
|
672 |
+
*
|
673 |
+
* Button Group
|
674 |
+
*
|
675 |
+
*---------------------------------------------------------------------------------------------*/
|
676 |
+
.acf-button-group {
|
677 |
+
display: inline-block;
|
678 |
+
/* default (horizontal) */
|
679 |
+
/* vertical */ }
|
680 |
+
.acf-button-group label {
|
681 |
+
display: inline-block;
|
682 |
+
border: #ccc solid 1px;
|
683 |
+
position: relative;
|
684 |
+
z-index: 1;
|
685 |
+
padding: 5px 10px;
|
686 |
+
background: #fff; }
|
687 |
+
.acf-button-group label:hover {
|
688 |
+
border-color: #999999;
|
689 |
+
z-index: 2; }
|
690 |
+
.acf-button-group label.selected {
|
691 |
+
border-color: #2b9af3;
|
692 |
+
background: #309cf3;
|
693 |
+
color: #fff;
|
694 |
+
z-index: 2; }
|
695 |
+
.acf-button-group label.selected:hover {
|
696 |
+
background: #48a8f4; }
|
697 |
+
.acf-button-group input {
|
698 |
+
display: none !important; }
|
699 |
+
.acf-button-group {
|
700 |
+
padding-left: 1px;
|
701 |
+
display: inline-flex;
|
702 |
+
flex-direction: row;
|
703 |
+
flex-wrap: nowrap; }
|
704 |
+
.acf-button-group label {
|
705 |
+
margin: 0 0 0 -1px;
|
706 |
+
flex: 1;
|
707 |
+
text-align: center;
|
708 |
+
white-space: nowrap; }
|
709 |
+
.acf-button-group label:first-child {
|
710 |
+
border-radius: 3px 0 0 3px; }
|
711 |
+
html[dir="rtl"] .acf-button-group label:first-child {
|
712 |
+
border-radius: 0 3px 3px 0; }
|
713 |
+
.acf-button-group label:last-child {
|
714 |
+
border-radius: 0 3px 3px 0; }
|
715 |
+
html[dir="rtl"] .acf-button-group label:last-child {
|
716 |
+
border-radius: 3px 0 0 3px; }
|
717 |
+
.acf-button-group label:only-child {
|
718 |
+
border-radius: 3px; }
|
719 |
+
.acf-button-group.-vertical {
|
720 |
+
padding-left: 0;
|
721 |
+
padding-top: 1px;
|
722 |
+
flex-direction: column; }
|
723 |
+
.acf-button-group.-vertical label {
|
724 |
+
margin: -1px 0 0 0; }
|
725 |
+
.acf-button-group.-vertical label:first-child {
|
726 |
+
border-radius: 3px 3px 0 0; }
|
727 |
+
.acf-button-group.-vertical label:last-child {
|
728 |
+
border-radius: 0 0 3px 3px; }
|
729 |
+
.acf-button-group.-vertical label:only-child {
|
730 |
+
border-radius: 3px; }
|
731 |
+
|
732 |
+
/*---------------------------------------------------------------------------------------------
|
733 |
+
*
|
734 |
+
* Checkbox
|
735 |
+
*
|
736 |
+
*---------------------------------------------------------------------------------------------*/
|
737 |
+
.acf-checkbox-list .button {
|
738 |
+
margin: 10px 0 0; }
|
739 |
+
|
740 |
+
/*---------------------------------------------------------------------------------------------
|
741 |
+
*
|
742 |
+
* True / False
|
743 |
+
*
|
744 |
+
*---------------------------------------------------------------------------------------------*/
|
745 |
+
.acf-switch {
|
746 |
+
display: inline-block;
|
747 |
+
border-radius: 5px;
|
748 |
+
cursor: pointer;
|
749 |
+
position: relative;
|
750 |
+
background: #f8f8f8;
|
751 |
+
height: 30px;
|
752 |
+
vertical-align: middle;
|
753 |
+
border: #ccc solid 1px;
|
754 |
+
-webkit-transition: background 0.25s ease;
|
755 |
+
-moz-transition: background 0.25s ease;
|
756 |
+
-o-transition: background 0.25s ease;
|
757 |
+
transition: background 0.25s ease;
|
758 |
+
/* hover */
|
759 |
+
/* active */
|
760 |
+
/* focus */
|
761 |
+
/* message */ }
|
762 |
+
.acf-switch span {
|
763 |
+
display: inline-block;
|
764 |
+
float: left;
|
765 |
+
text-align: center;
|
766 |
+
font-size: 13px;
|
767 |
+
line-height: 22px;
|
768 |
+
padding: 4px 10px;
|
769 |
+
min-width: 15px; }
|
770 |
+
.acf-switch span i {
|
771 |
+
vertical-align: middle; }
|
772 |
+
.acf-switch .acf-switch-on {
|
773 |
+
color: #fff;
|
774 |
+
text-shadow: #1f7db1 0 1px 0; }
|
775 |
+
.acf-switch .acf-switch-slider {
|
776 |
+
position: absolute;
|
777 |
+
top: 2px;
|
778 |
+
left: 2px;
|
779 |
+
bottom: 2px;
|
780 |
+
right: 50%;
|
781 |
+
z-index: 1;
|
782 |
+
background: #fff;
|
783 |
+
border-radius: 3px;
|
784 |
+
border: #ccc solid 1px;
|
785 |
+
-webkit-transition: all 0.25s ease;
|
786 |
+
-moz-transition: all 0.25s ease;
|
787 |
+
-o-transition: all 0.25s ease;
|
788 |
+
transition: all 0.25s ease;
|
789 |
+
transition-property: left, right; }
|
790 |
+
.acf-switch:hover .acf-switch-slider {
|
791 |
+
border-color: #b3b3b3; }
|
792 |
+
.acf-switch.-on {
|
793 |
+
background: #309cf3;
|
794 |
+
border-color: #2b9af3;
|
795 |
+
/* hover */ }
|
796 |
+
.acf-switch.-on .acf-switch-slider {
|
797 |
+
left: 50%;
|
798 |
+
right: 2px;
|
799 |
+
border-color: #0d84e3; }
|
800 |
+
.acf-switch.-on:hover {
|
801 |
+
background: #48a8f4; }
|
802 |
+
.acf-switch.-focus .acf-switch-slider {
|
803 |
+
border-color: #5b9dd9;
|
804 |
+
box-shadow: 0 0 2px rgba(30, 140, 190, 0.5); }
|
805 |
+
.acf-switch.-focus.-on .acf-switch-slider {
|
806 |
+
border-color: #185e85;
|
807 |
+
box-shadow: 0 0 2px #1f7db1; }
|
808 |
+
.acf-switch + span {
|
809 |
+
margin-left: 6px; }
|
810 |
+
|
811 |
+
/* checkbox */
|
812 |
+
.acf-switch-input {
|
813 |
+
opacity: 0;
|
814 |
+
position: absolute;
|
815 |
+
margin: 0; }
|
816 |
+
|
817 |
+
/* in media modal */
|
818 |
+
.compat-item .acf-true-false .message {
|
819 |
+
float: none;
|
820 |
+
padding: 0;
|
821 |
+
vertical-align: middle; }
|
822 |
+
|
823 |
+
/*--------------------------------------------------------------------------
|
824 |
+
*
|
825 |
+
* Google Map
|
826 |
+
*
|
827 |
+
*-------------------------------------------------------------------------*/
|
828 |
+
.acf-google-map {
|
829 |
+
position: relative;
|
830 |
+
border: #DFDFDF solid 1px;
|
831 |
+
background: #fff; }
|
832 |
+
.acf-google-map .title {
|
833 |
+
position: relative;
|
834 |
+
border-bottom: #DFDFDF solid 1px; }
|
835 |
+
.acf-google-map .title .search {
|
836 |
+
margin: 0;
|
837 |
+
font-size: 14px;
|
838 |
+
line-height: 30px;
|
839 |
+
height: 40px;
|
840 |
+
padding: 5px 10px;
|
841 |
+
border: 0 none;
|
842 |
+
box-shadow: none;
|
843 |
+
border-radius: 0;
|
844 |
+
font-family: inherit;
|
845 |
+
cursor: text; }
|
846 |
+
.acf-google-map .title .acf-loading {
|
847 |
+
position: absolute;
|
848 |
+
top: 10px;
|
849 |
+
right: 11px;
|
850 |
+
display: none; }
|
851 |
+
.acf-google-map .title .acf-icon:active {
|
852 |
+
display: inline-block !important; }
|
853 |
+
.acf-google-map .canvas {
|
854 |
+
height: 400px; }
|
855 |
+
.acf-google-map:hover .title .acf-actions {
|
856 |
+
display: block; }
|
857 |
+
.acf-google-map .title .acf-icon.-location {
|
858 |
+
display: inline-block; }
|
859 |
+
.acf-google-map .title .acf-icon.-cancel,
|
860 |
+
.acf-google-map .title .acf-icon.-search {
|
861 |
+
display: none; }
|
862 |
+
.acf-google-map.-value .title .search {
|
863 |
+
font-weight: bold; }
|
864 |
+
.acf-google-map.-value .title .acf-icon.-location {
|
865 |
+
display: none; }
|
866 |
+
.acf-google-map.-value .title .acf-icon.-cancel {
|
867 |
+
display: inline-block; }
|
868 |
+
.acf-google-map.-searching .title .acf-icon.-location {
|
869 |
+
display: none; }
|
870 |
+
.acf-google-map.-searching .title .acf-icon.-cancel,
|
871 |
+
.acf-google-map.-searching .title .acf-icon.-search {
|
872 |
+
display: inline-block; }
|
873 |
+
.acf-google-map.-searching .title .acf-actions {
|
874 |
+
display: block; }
|
875 |
+
.acf-google-map.-searching .title .search {
|
876 |
+
font-weight: normal !important; }
|
877 |
+
.acf-google-map.-loading .title a {
|
878 |
+
display: none !important; }
|
879 |
+
.acf-google-map.-loading .title i {
|
880 |
+
display: inline-block; }
|
881 |
+
|
882 |
+
/* autocomplete */
|
883 |
+
.pac-container {
|
884 |
+
border-width: 1px 0;
|
885 |
+
box-shadow: none; }
|
886 |
+
|
887 |
+
.pac-container:after {
|
888 |
+
display: none; }
|
889 |
+
|
890 |
+
.pac-container .pac-item:first-child {
|
891 |
+
border-top: 0 none; }
|
892 |
+
|
893 |
+
.pac-container .pac-item {
|
894 |
+
padding: 5px 10px;
|
895 |
+
cursor: pointer; }
|
896 |
+
|
897 |
+
html[dir="rtl"] .pac-container .pac-item {
|
898 |
+
text-align: right; }
|
899 |
+
|
900 |
+
/*--------------------------------------------------------------------------
|
901 |
+
*
|
902 |
+
* Relationship
|
903 |
+
*
|
904 |
+
*-------------------------------------------------------------------------*/
|
905 |
+
.acf-relationship {
|
906 |
+
background: #fff;
|
907 |
+
/* filters (top) */
|
908 |
+
/* list */
|
909 |
+
/* selection (bottom) */ }
|
910 |
+
.acf-relationship .filters {
|
911 |
+
border: #DFDFDF solid 1px;
|
912 |
+
background: #fff;
|
913 |
+
/* widths */ }
|
914 |
+
.acf-relationship .filters:after {
|
915 |
+
display: block;
|
916 |
+
clear: both;
|
917 |
+
content: ""; }
|
918 |
+
.acf-relationship .filters .filter {
|
919 |
+
margin: 0;
|
920 |
+
padding: 0;
|
921 |
+
float: left;
|
922 |
+
width: 100%;
|
923 |
+
/* inner padding */ }
|
924 |
+
.acf-relationship .filters .filter span {
|
925 |
+
display: block;
|
926 |
+
padding: 7px 7px 7px 0; }
|
927 |
+
.acf-relationship .filters .filter:first-child span {
|
928 |
+
padding-left: 7px; }
|
929 |
+
.acf-relationship .filters .filter input, .acf-relationship .filters .filter select {
|
930 |
+
height: 28px;
|
931 |
+
line-height: 28px;
|
932 |
+
padding: 2px;
|
933 |
+
width: 100%;
|
934 |
+
margin: 0;
|
935 |
+
float: none;
|
936 |
+
/* potential fix for media popup? */ }
|
937 |
+
.acf-relationship .filters .filter input:focus, .acf-relationship .filters .filter input:active, .acf-relationship .filters .filter select:focus, .acf-relationship .filters .filter select:active {
|
938 |
+
outline: none;
|
939 |
+
box-shadow: none; }
|
940 |
+
.acf-relationship .filters .filter input {
|
941 |
+
border-color: transparent;
|
942 |
+
box-shadow: none; }
|
943 |
+
.acf-relationship .filters.-f2 .filter {
|
944 |
+
width: 50%; }
|
945 |
+
.acf-relationship .filters.-f3 .filter {
|
946 |
+
width: 25%; }
|
947 |
+
.acf-relationship .filters.-f3 .filter.-search {
|
948 |
+
width: 50%; }
|
949 |
+
.acf-relationship .list {
|
950 |
+
margin: 0;
|
951 |
+
padding: 5px;
|
952 |
+
height: 160px;
|
953 |
+
overflow: auto; }
|
954 |
+
.acf-relationship .list .acf-rel-label,
|
955 |
+
.acf-relationship .list .acf-rel-item,
|
956 |
+
.acf-relationship .list p {
|
957 |
+
padding: 5px 7px;
|
958 |
+
margin: 0;
|
959 |
+
display: block;
|
960 |
+
position: relative;
|
961 |
+
min-height: 18px; }
|
962 |
+
.acf-relationship .list .acf-rel-label {
|
963 |
+
font-weight: bold; }
|
964 |
+
.acf-relationship .list .acf-rel-item {
|
965 |
+
cursor: pointer;
|
966 |
+
/* hover */
|
967 |
+
/* disabled */ }
|
968 |
+
.acf-relationship .list .acf-rel-item b {
|
969 |
+
text-decoration: underline;
|
970 |
+
font-weight: normal; }
|
971 |
+
.acf-relationship .list .acf-rel-item .thumbnail {
|
972 |
+
background: #e0e0e0;
|
973 |
+
width: 22px;
|
974 |
+
height: 22px;
|
975 |
+
float: left;
|
976 |
+
margin: -2px 5px 0 0; }
|
977 |
+
.acf-relationship .list .acf-rel-item .thumbnail img {
|
978 |
+
max-width: 22px;
|
979 |
+
max-height: 22px;
|
980 |
+
margin: 0 auto;
|
981 |
+
display: block; }
|
982 |
+
.acf-relationship .list .acf-rel-item .thumbnail.-icon {
|
983 |
+
background: #fff; }
|
984 |
+
.acf-relationship .list .acf-rel-item .thumbnail.-icon img {
|
985 |
+
max-height: 20px;
|
986 |
+
margin-top: 1px; }
|
987 |
+
.acf-relationship .list .acf-rel-item:hover {
|
988 |
+
background: #3875D7;
|
989 |
+
color: #fff; }
|
990 |
+
.acf-relationship .list .acf-rel-item:hover .thumbnail {
|
991 |
+
background: #a2bfec; }
|
992 |
+
.acf-relationship .list .acf-rel-item:hover .thumbnail.-icon {
|
993 |
+
background: #fff; }
|
994 |
+
.acf-relationship .list .acf-rel-item.disabled {
|
995 |
+
opacity: 0.5; }
|
996 |
+
.acf-relationship .list .acf-rel-item.disabled:hover {
|
997 |
+
background: transparent;
|
998 |
+
color: #333;
|
999 |
+
cursor: default; }
|
1000 |
+
.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail {
|
1001 |
+
background: #e0e0e0; }
|
1002 |
+
.acf-relationship .list .acf-rel-item.disabled:hover .thumbnail.-icon {
|
1003 |
+
background: #fff; }
|
1004 |
+
.acf-relationship .list ul {
|
1005 |
+
padding-bottom: 5px; }
|
1006 |
+
.acf-relationship .list ul .acf-rel-label,
|
1007 |
+
.acf-relationship .list ul .acf-rel-item,
|
1008 |
+
.acf-relationship .list ul p {
|
1009 |
+
padding-left: 20px; }
|
1010 |
+
.acf-relationship .selection {
|
1011 |
+
border: #DFDFDF solid 1px;
|
1012 |
+
position: relative;
|
1013 |
+
margin-top: -1px;
|
1014 |
+
/* choices */
|
1015 |
+
/* values */ }
|
1016 |
+
.acf-relationship .selection:after {
|
1017 |
+
display: block;
|
1018 |
+
clear: both;
|
1019 |
+
content: ""; }
|
1020 |
+
.acf-relationship .selection .values,
|
1021 |
+
.acf-relationship .selection .choices {
|
1022 |
+
width: 50%;
|
1023 |
+
background: #fff;
|
1024 |
+
float: left; }
|
1025 |
+
.acf-relationship .selection .choices {
|
1026 |
+
background: #F9F9F9; }
|
1027 |
+
.acf-relationship .selection .choices .list {
|
1028 |
+
border-right: #DFDFDF solid 1px; }
|
1029 |
+
.acf-relationship .selection .values .acf-icon {
|
1030 |
+
position: absolute;
|
1031 |
+
top: 4px;
|
1032 |
+
right: 7px;
|
1033 |
+
display: none;
|
1034 |
+
/* rtl */ }
|
1035 |
+
html[dir="rtl"] .acf-relationship .selection .values .acf-icon {
|
1036 |
+
right: auto;
|
1037 |
+
left: 7px; }
|
1038 |
+
.acf-relationship .selection .values .acf-rel-item:hover .acf-icon {
|
1039 |
+
display: block; }
|
1040 |
+
.acf-relationship .selection .values .acf-rel-item {
|
1041 |
+
cursor: move; }
|
1042 |
+
.acf-relationship .selection .values .acf-rel-item b {
|
1043 |
+
text-decoration: none; }
|
1044 |
+
|
1045 |
+
/* menu item fix */
|
1046 |
+
.menu-item .acf-relationship ul {
|
1047 |
+
width: auto; }
|
1048 |
+
|
1049 |
+
.menu-item .acf-relationship li {
|
1050 |
+
display: block; }
|
1051 |
+
|
1052 |
+
/*--------------------------------------------------------------------------
|
1053 |
+
*
|
1054 |
+
* WYSIWYG
|
1055 |
+
*
|
1056 |
+
*-------------------------------------------------------------------------*/
|
1057 |
+
.acf-editor-wrap.delay .acf-editor-toolbar {
|
1058 |
+
content: "";
|
1059 |
+
display: block;
|
1060 |
+
background: #f5f5f5;
|
1061 |
+
border-bottom: #dddddd solid 1px;
|
1062 |
+
color: #555d66;
|
1063 |
+
padding: 10px; }
|
1064 |
+
|
1065 |
+
.acf-editor-wrap.delay .wp-editor-area {
|
1066 |
+
padding: 10px;
|
1067 |
+
border: none;
|
1068 |
+
color: inherit !important; }
|
1069 |
+
|
1070 |
+
.acf-editor-wrap iframe {
|
1071 |
+
min-height: 200px; }
|
1072 |
+
|
1073 |
+
.acf-editor-wrap .wp-editor-container {
|
1074 |
+
border: 1px solid #E5E5E5;
|
1075 |
+
box-shadow: none !important; }
|
1076 |
+
|
1077 |
+
.acf-editor-wrap .wp-editor-tabs {
|
1078 |
+
box-sizing: content-box; }
|
1079 |
+
|
1080 |
+
#mce_fullscreen_container {
|
1081 |
+
z-index: 900000 !important; }
|
1082 |
+
|
1083 |
+
/*---------------------------------------------------------------------------------------------
|
1084 |
+
*
|
1085 |
+
* Tab
|
1086 |
+
*
|
1087 |
+
*---------------------------------------------------------------------------------------------*/
|
1088 |
+
.acf-field-tab {
|
1089 |
+
display: none !important; }
|
1090 |
+
|
1091 |
+
.hidden-by-tab {
|
1092 |
+
display: none !important; }
|
1093 |
+
|
1094 |
+
.acf-tab-wrap {
|
1095 |
+
clear: both;
|
1096 |
+
z-index: 1; }
|
1097 |
+
|
1098 |
+
.acf-tab-group {
|
1099 |
+
border-bottom: #ccc solid 1px;
|
1100 |
+
padding: 10px 10px 0; }
|
1101 |
+
.acf-tab-group li {
|
1102 |
+
margin: 0 0.5em 0 0; }
|
1103 |
+
.acf-tab-group li a {
|
1104 |
+
padding: 5px 10px;
|
1105 |
+
display: block;
|
1106 |
+
color: #555;
|
1107 |
+
font-size: 14px;
|
1108 |
+
font-weight: 600;
|
1109 |
+
line-height: 24px;
|
1110 |
+
border: #ccc solid 1px;
|
1111 |
+
border-bottom: 0 none;
|
1112 |
+
text-decoration: none;
|
1113 |
+
background: #e5e5e5;
|
1114 |
+
transition: none; }
|
1115 |
+
.acf-tab-group li a:hover {
|
1116 |
+
background: #FFF; }
|
1117 |
+
.acf-tab-group li a:focus {
|
1118 |
+
outline: none;
|
1119 |
+
box-shadow: none; }
|
1120 |
+
.acf-tab-group li a:empty {
|
1121 |
+
display: none; }
|
1122 |
+
html[dir="rtl"] .acf-tab-group li {
|
1123 |
+
margin: 0 0 0 0.5em; }
|
1124 |
+
.acf-tab-group li.active a {
|
1125 |
+
background: #F1F1F1;
|
1126 |
+
color: #000;
|
1127 |
+
padding-bottom: 6px;
|
1128 |
+
margin-bottom: -1px;
|
1129 |
+
position: relative;
|
1130 |
+
z-index: 1; }
|
1131 |
+
|
1132 |
+
.acf-fields > .acf-tab-wrap {
|
1133 |
+
background: #F9F9F9; }
|
1134 |
+
.acf-fields > .acf-tab-wrap .acf-tab-group {
|
1135 |
+
position: relative;
|
1136 |
+
z-index: 1;
|
1137 |
+
margin-bottom: -1px;
|
1138 |
+
border-top: #DFDFDF solid 1px;
|
1139 |
+
border-bottom: #DFDFDF solid 1px; }
|
1140 |
+
.acf-fields > .acf-tab-wrap .acf-tab-group li a {
|
1141 |
+
background: #f1f1f1; }
|
1142 |
+
.acf-fields > .acf-tab-wrap .acf-tab-group li a:hover {
|
1143 |
+
background: #FFF; }
|
1144 |
+
.acf-fields > .acf-tab-wrap .acf-tab-group li.active a {
|
1145 |
+
background: #FFFFFF; }
|
1146 |
+
.acf-fields > .acf-tab-wrap:first-child .acf-tab-group {
|
1147 |
+
border-top: none; }
|
1148 |
+
|
1149 |
+
.acf-fields.-left > .acf-tab-wrap .acf-tab-group {
|
1150 |
+
padding-left: 20%;
|
1151 |
+
/* mobile */
|
1152 |
+
/* rtl */ }
|
1153 |
+
@media screen and (max-width: 640px) {
|
1154 |
+
.acf-fields.-left > .acf-tab-wrap .acf-tab-group {
|
1155 |
+
padding-left: 10px; } }
|
1156 |
+
html[dir="rtl"] .acf-fields.-left > .acf-tab-wrap .acf-tab-group {
|
1157 |
+
padding-left: 0;
|
1158 |
+
padding-right: 20%;
|
1159 |
+
/* mobile */ }
|
1160 |
+
@media screen and (max-width: 850px) {
|
1161 |
+
html[dir="rtl"] .acf-fields.-left > .acf-tab-wrap .acf-tab-group {
|
1162 |
+
padding-right: 10px; } }
|
1163 |
+
|
1164 |
+
.acf-tab-wrap.-left .acf-tab-group {
|
1165 |
+
position: absolute;
|
1166 |
+
left: 0;
|
1167 |
+
width: 20%;
|
1168 |
+
border: 0 none;
|
1169 |
+
padding: 0 !important;
|
1170 |
+
/* important overrides 'left aligned labels' */
|
1171 |
+
margin: 1px 0 0; }
|
1172 |
+
.acf-tab-wrap.-left .acf-tab-group li {
|
1173 |
+
float: none;
|
1174 |
+
margin: -1px 0 0; }
|
1175 |
+
.acf-tab-wrap.-left .acf-tab-group li a {
|
1176 |
+
border: 1px solid #ededed;
|
1177 |
+
font-size: 13px;
|
1178 |
+
line-height: 18px;
|
1179 |
+
color: #0073aa;
|
1180 |
+
padding: 10px;
|
1181 |
+
margin: 0;
|
1182 |
+
font-weight: normal;
|
1183 |
+
border-width: 1px 0;
|
1184 |
+
border-radius: 0;
|
1185 |
+
background: transparent; }
|
1186 |
+
.acf-tab-wrap.-left .acf-tab-group li a:hover {
|
1187 |
+
color: #00a0d2; }
|
1188 |
+
.acf-tab-wrap.-left .acf-tab-group li.active a {
|
1189 |
+
border-color: #DFDFDF;
|
1190 |
+
color: #000;
|
1191 |
+
margin-right: -1px;
|
1192 |
+
background: #fff; }
|
1193 |
+
html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group {
|
1194 |
+
left: auto;
|
1195 |
+
right: 0; }
|
1196 |
+
html[dir="rtl"] .acf-tab-wrap.-left .acf-tab-group li.active a {
|
1197 |
+
margin-right: 0;
|
1198 |
+
margin-left: -1px; }
|
1199 |
+
|
1200 |
+
.acf-field + .acf-tab-wrap.-left:before {
|
1201 |
+
content: "";
|
1202 |
+
display: block;
|
1203 |
+
position: relative;
|
1204 |
+
z-index: 1;
|
1205 |
+
height: 10px;
|
1206 |
+
border-top: #DFDFDF solid 1px;
|
1207 |
+
border-bottom: #DFDFDF solid 1px;
|
1208 |
+
margin-bottom: -1px; }
|
1209 |
+
|
1210 |
+
.acf-tab-wrap.-left:first-child .acf-tab-group li:first-child a {
|
1211 |
+
border-top: none; }
|
1212 |
+
|
1213 |
+
/* sidebar */
|
1214 |
+
.acf-fields.-sidebar {
|
1215 |
+
padding: 0 0 0 20% !important;
|
1216 |
+
position: relative;
|
1217 |
+
/* before */
|
1218 |
+
/* rtl */ }
|
1219 |
+
.acf-fields.-sidebar:before {
|
1220 |
+
content: "";
|
1221 |
+
display: block;
|
1222 |
+
position: absolute;
|
1223 |
+
top: 0;
|
1224 |
+
left: 0;
|
1225 |
+
width: 20%;
|
1226 |
+
bottom: 0;
|
1227 |
+
border-right: #DFDFDF solid 1px;
|
1228 |
+
background: #F9F9F9;
|
1229 |
+
z-index: 1; }
|
1230 |
+
html[dir="rtl"] .acf-fields.-sidebar {
|
1231 |
+
padding: 0 20% 0 0 !important; }
|
1232 |
+
html[dir="rtl"] .acf-fields.-sidebar:before {
|
1233 |
+
border-left: #DFDFDF solid 1px;
|
1234 |
+
border-right-width: 0;
|
1235 |
+
left: auto;
|
1236 |
+
right: 0; }
|
1237 |
+
.acf-fields.-sidebar.-left {
|
1238 |
+
padding: 0 0 0 180px !important;
|
1239 |
+
/* rtl */ }
|
1240 |
+
html[dir="rtl"] .acf-fields.-sidebar.-left {
|
1241 |
+
padding: 0 180px 0 0 !important; }
|
1242 |
+
.acf-fields.-sidebar.-left:before {
|
1243 |
+
background: #F1F1F1;
|
1244 |
+
border-color: #dfdfdf;
|
1245 |
+
width: 180px; }
|
1246 |
+
.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group {
|
1247 |
+
width: 180px; }
|
1248 |
+
.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li a {
|
1249 |
+
border-color: #e4e4e4; }
|
1250 |
+
.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li.active a {
|
1251 |
+
background: #F9F9F9; }
|
1252 |
+
.acf-fields.-sidebar > .acf-field-tab + .acf-field {
|
1253 |
+
border-top: none; }
|
1254 |
+
|
1255 |
+
.acf-fields.-clear > .acf-tab-wrap {
|
1256 |
+
background: transparent; }
|
1257 |
+
.acf-fields.-clear > .acf-tab-wrap .acf-tab-group {
|
1258 |
+
margin-top: 0;
|
1259 |
+
border-top: none;
|
1260 |
+
padding-left: 0;
|
1261 |
+
padding-right: 0; }
|
1262 |
+
.acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a {
|
1263 |
+
background: #e5e5e5; }
|
1264 |
+
.acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover {
|
1265 |
+
background: #fff; }
|
1266 |
+
.acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a {
|
1267 |
+
background: #f1f1f1; }
|
1268 |
+
|
1269 |
+
/* seamless */
|
1270 |
+
.acf-postbox.seamless > .acf-fields.-sidebar {
|
1271 |
+
margin-left: 0 !important; }
|
1272 |
+
.acf-postbox.seamless > .acf-fields.-sidebar:before {
|
1273 |
+
background: transparent; }
|
1274 |
+
|
1275 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap {
|
1276 |
+
background: transparent;
|
1277 |
+
margin-bottom: 10px;
|
1278 |
+
padding-left: 12px;
|
1279 |
+
padding-right: 12px; }
|
1280 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group {
|
1281 |
+
border-top: 0 none; }
|
1282 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li a {
|
1283 |
+
background: #e5e5e5; }
|
1284 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li a:hover {
|
1285 |
+
background: #fff; }
|
1286 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap .acf-tab-group li.active a {
|
1287 |
+
background: #f1f1f1; }
|
1288 |
+
|
1289 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left:before {
|
1290 |
+
border-top: none;
|
1291 |
+
height: auto; }
|
1292 |
+
|
1293 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group {
|
1294 |
+
margin-bottom: 0; }
|
1295 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group li a {
|
1296 |
+
border-width: 1px 0 1px 1px !important;
|
1297 |
+
border-color: #cccccc;
|
1298 |
+
background: #e5e5e5; }
|
1299 |
+
.acf-postbox.seamless > .acf-fields > .acf-tab-wrap.-left .acf-tab-group li.active a {
|
1300 |
+
background: #f1f1f1; }
|
1301 |
+
|
1302 |
+
.menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a,
|
1303 |
+
.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a {
|
1304 |
+
background: #f1f1f1; }
|
1305 |
+
|
1306 |
+
.menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover, .menu-edit .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a,
|
1307 |
+
.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li a:hover,
|
1308 |
+
.widget .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li.active a {
|
1309 |
+
background: #fff; }
|
1310 |
+
|
1311 |
+
.compat-item .acf-tab-wrap td {
|
1312 |
+
display: block; }
|
1313 |
+
|
1314 |
+
/* within gallery sidebar */
|
1315 |
+
.acf-gallery-side .acf-tab-wrap {
|
1316 |
+
border-top: 0 none !important; }
|
1317 |
+
|
1318 |
+
.acf-gallery-side .acf-tab-wrap .acf-tab-group {
|
1319 |
+
margin: 10px 0 !important;
|
1320 |
+
padding: 0 !important; }
|
1321 |
+
|
1322 |
+
.acf-gallery-side .acf-tab-group li.active a {
|
1323 |
+
background: #F9F9F9 !important; }
|
1324 |
+
|
1325 |
+
/* withing widget */
|
1326 |
+
.widget .acf-tab-group {
|
1327 |
+
border-bottom-color: #e8e8e8; }
|
1328 |
+
|
1329 |
+
.widget .acf-tab-group li a {
|
1330 |
+
background: #F1F1F1; }
|
1331 |
+
|
1332 |
+
.widget .acf-tab-group li.active a {
|
1333 |
+
background: #fff; }
|
1334 |
+
|
1335 |
+
/* media popup (edit image) */
|
1336 |
+
.media-modal.acf-expanded .compat-attachment-fields > tbody > tr.acf-tab-wrap .acf-tab-group {
|
1337 |
+
padding-left: 23%;
|
1338 |
+
border-bottom-color: #DDDDDD; }
|
1339 |
+
|
1340 |
+
/* table */
|
1341 |
+
.form-table > tbody > tr.acf-tab-wrap .acf-tab-group {
|
1342 |
+
padding: 0 5px 0 210px; }
|
1343 |
+
|
1344 |
+
/* rtl */
|
1345 |
+
html[dir="rtl"] .form-table > tbody > tr.acf-tab-wrap .acf-tab-group {
|
1346 |
+
padding: 0 210px 0 5px; }
|
1347 |
+
|
1348 |
+
/*--------------------------------------------------------------------------------------------
|
1349 |
+
*
|
1350 |
+
* oembed
|
1351 |
+
*
|
1352 |
+
*--------------------------------------------------------------------------------------------*/
|
1353 |
+
.acf-oembed {
|
1354 |
+
position: relative;
|
1355 |
+
border: #DFDFDF solid 1px;
|
1356 |
+
background: #fff; }
|
1357 |
+
.acf-oembed .title {
|
1358 |
+
position: relative;
|
1359 |
+
border-bottom: #DFDFDF solid 1px;
|
1360 |
+
padding: 5px 10px; }
|
1361 |
+
.acf-oembed .title .input-search {
|
1362 |
+
margin: 0;
|
1363 |
+
font-size: 14px;
|
1364 |
+
line-height: 30px;
|
1365 |
+
height: 30px;
|
1366 |
+
padding: 0;
|
1367 |
+
border: 0 none;
|
1368 |
+
box-shadow: none;
|
1369 |
+
border-radius: 0;
|
1370 |
+
font-family: inherit;
|
1371 |
+
cursor: text; }
|
1372 |
+
.acf-oembed .title .acf-actions {
|
1373 |
+
padding: 6px; }
|
1374 |
+
.acf-oembed .canvas {
|
1375 |
+
position: relative;
|
1376 |
+
min-height: 250px;
|
1377 |
+
background: #F9F9F9; }
|
1378 |
+
.acf-oembed .canvas .canvas-media {
|
1379 |
+
position: relative;
|
1380 |
+
z-index: 1; }
|
1381 |
+
.acf-oembed .canvas iframe {
|
1382 |
+
display: block;
|
1383 |
+
margin: 0;
|
1384 |
+
padding: 0;
|
1385 |
+
width: 100%; }
|
1386 |
+
.acf-oembed .canvas .acf-icon.-picture {
|
1387 |
+
position: absolute;
|
1388 |
+
top: 50%;
|
1389 |
+
left: 50%;
|
1390 |
+
transform: translate(-50%, -50%);
|
1391 |
+
z-index: 0;
|
1392 |
+
height: 42px;
|
1393 |
+
width: 42px;
|
1394 |
+
font-size: 42px;
|
1395 |
+
color: #999; }
|
1396 |
+
.acf-oembed .canvas .acf-loading-overlay {
|
1397 |
+
background: rgba(255, 255, 255, 0.9); }
|
1398 |
+
.acf-oembed .canvas .canvas-error {
|
1399 |
+
position: absolute;
|
1400 |
+
top: 50%;
|
1401 |
+
left: 0%;
|
1402 |
+
right: 0%;
|
1403 |
+
margin: -9px 0 0 0;
|
1404 |
+
text-align: center;
|
1405 |
+
display: none; }
|
1406 |
+
.acf-oembed .canvas .canvas-error p {
|
1407 |
+
padding: 8px;
|
1408 |
+
margin: 0;
|
1409 |
+
display: inline; }
|
1410 |
+
.acf-oembed.has-value .canvas {
|
1411 |
+
min-height: 50px; }
|
1412 |
+
.acf-oembed.has-value .input-search {
|
1413 |
+
font-weight: bold; }
|
1414 |
+
.acf-oembed.has-value .title:hover .acf-actions {
|
1415 |
+
display: block; }
|
1416 |
+
|
1417 |
+
/*--------------------------------------------------------------------------------------------
|
1418 |
+
*
|
1419 |
+
* Image
|
1420 |
+
*
|
1421 |
+
*--------------------------------------------------------------------------------------------*/
|
1422 |
+
.acf-image-uploader {
|
1423 |
+
position: relative;
|
1424 |
+
/* image wrap*/
|
1425 |
+
/* input */
|
1426 |
+
/* rtl */ }
|
1427 |
+
.acf-image-uploader:after {
|
1428 |
+
display: block;
|
1429 |
+
clear: both;
|
1430 |
+
content: ""; }
|
1431 |
+
.acf-image-uploader p {
|
1432 |
+
margin: 0; }
|
1433 |
+
.acf-image-uploader .image-wrap {
|
1434 |
+
position: relative;
|
1435 |
+
float: left;
|
1436 |
+
/* hover */ }
|
1437 |
+
.acf-image-uploader .image-wrap img {
|
1438 |
+
max-width: 100%;
|
1439 |
+
width: auto;
|
1440 |
+
height: auto;
|
1441 |
+
display: block;
|
1442 |
+
min-width: 30px;
|
1443 |
+
min-height: 30px;
|
1444 |
+
background: #f1f1f1;
|
1445 |
+
margin: 0;
|
1446 |
+
padding: 0;
|
1447 |
+
/* svg */ }
|
1448 |
+
.acf-image-uploader .image-wrap img[src$=".svg"] {
|
1449 |
+
min-height: 100px;
|
1450 |
+
min-width: 100px; }
|
1451 |
+
.acf-image-uploader .image-wrap:hover .acf-actions {
|
1452 |
+
display: block; }
|
1453 |
+
.acf-image-uploader input.button {
|
1454 |
+
width: auto; }
|
1455 |
+
html[dir="rtl"] .acf-image-uploader .image-wrap {
|
1456 |
+
float: right; }
|
1457 |
+
|
1458 |
+
/*--------------------------------------------------------------------------------------------
|
1459 |
+
*
|
1460 |
+
* File
|
1461 |
+
*
|
1462 |
+
*--------------------------------------------------------------------------------------------*/
|
1463 |
+
.acf-file-uploader {
|
1464 |
+
position: relative;
|
1465 |
+
/* hover */
|
1466 |
+
/* rtl */ }
|
1467 |
+
.acf-file-uploader p {
|
1468 |
+
margin: 0; }
|
1469 |
+
.acf-file-uploader .file-wrap {
|
1470 |
+
border: #DFDFDF solid 1px;
|
1471 |
+
min-height: 84px;
|
1472 |
+
position: relative;
|
1473 |
+
background: #fff; }
|
1474 |
+
.acf-file-uploader .file-icon {
|
1475 |
+
position: absolute;
|
1476 |
+
top: 0;
|
1477 |
+
left: 0;
|
1478 |
+
bottom: 0;
|
1479 |
+
padding: 10px;
|
1480 |
+
background: #F1F1F1;
|
1481 |
+
border-right: #E5E5E5 solid 1px; }
|
1482 |
+
.acf-file-uploader .file-icon img {
|
1483 |
+
display: block;
|
1484 |
+
padding: 0;
|
1485 |
+
margin: 0;
|
1486 |
+
max-width: 48px; }
|
1487 |
+
.acf-file-uploader .file-info {
|
1488 |
+
padding: 10px;
|
1489 |
+
margin-left: 69px; }
|
1490 |
+
.acf-file-uploader .file-info p {
|
1491 |
+
margin: 0 0 2px;
|
1492 |
+
font-size: 13px;
|
1493 |
+
line-height: 1.4em;
|
1494 |
+
word-break: break-all; }
|
1495 |
+
.acf-file-uploader .file-info a {
|
1496 |
+
text-decoration: none; }
|
1497 |
+
.acf-file-uploader:hover .acf-actions {
|
1498 |
+
display: block; }
|
1499 |
+
html[dir="rtl"] .acf-file-uploader .file-icon {
|
1500 |
+
left: auto;
|
1501 |
+
right: 0;
|
1502 |
+
border-left: #E5E5E5 solid 1px;
|
1503 |
+
border-right: none; }
|
1504 |
+
html[dir="rtl"] .acf-file-uploader .file-info {
|
1505 |
+
margin-right: 69px;
|
1506 |
+
margin-left: 0; }
|
1507 |
+
|
1508 |
+
/*---------------------------------------------------------------------------------------------
|
1509 |
+
*
|
1510 |
+
* Date Picker
|
1511 |
+
*
|
1512 |
+
*---------------------------------------------------------------------------------------------*/
|
1513 |
+
.acf-ui-datepicker .ui-datepicker {
|
1514 |
+
z-index: 900000 !important; }
|
1515 |
+
.acf-ui-datepicker .ui-datepicker .ui-widget-header a {
|
1516 |
+
cursor: pointer;
|
1517 |
+
transition: none; }
|
1518 |
+
|
1519 |
+
/* fix highlight state overriding hover / active */
|
1520 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-hover {
|
1521 |
+
border: 1px solid #98b7e8 !important;
|
1522 |
+
background: #98b7e8 !important;
|
1523 |
+
font-weight: normal !important;
|
1524 |
+
color: #ffffff !important; }
|
1525 |
+
|
1526 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-active {
|
1527 |
+
border: 1px solid #3875d7 !important;
|
1528 |
+
background: #3875d7 !important;
|
1529 |
+
font-weight: normal !important;
|
1530 |
+
color: #ffffff !important; }
|
1531 |
+
|
1532 |
+
/*---------------------------------------------------------------------------------------------
|
1533 |
+
*
|
1534 |
+
* Separator field
|
1535 |
+
*
|
1536 |
+
*---------------------------------------------------------------------------------------------*/
|
1537 |
+
.acf-field-separator {
|
1538 |
+
/* fields */ }
|
1539 |
+
.acf-field-separator .acf-label {
|
1540 |
+
margin-bottom: 0; }
|
1541 |
+
.acf-field-separator .acf-label label {
|
1542 |
+
font-weight: normal; }
|
1543 |
+
.acf-field-separator .acf-input {
|
1544 |
+
display: none; }
|
1545 |
+
.acf-fields > .acf-field-separator {
|
1546 |
+
background: #f9f9f9;
|
1547 |
+
border-bottom: 1px solid #dfdfdf;
|
1548 |
+
border-top: 1px solid #dfdfdf;
|
1549 |
+
margin-bottom: -1px;
|
1550 |
+
z-index: 2; }
|
1551 |
+
|
1552 |
+
/*---------------------------------------------------------------------------------------------
|
1553 |
+
*
|
1554 |
+
* Taxonomy
|
1555 |
+
*
|
1556 |
+
*---------------------------------------------------------------------------------------------*/
|
1557 |
+
.acf-taxonomy-field {
|
1558 |
+
position: relative;
|
1559 |
+
/* hover */
|
1560 |
+
/* select */ }
|
1561 |
+
.acf-taxonomy-field .categorychecklist-holder {
|
1562 |
+
border: #DFDFDF solid 1px;
|
1563 |
+
border-radius: 3px;
|
1564 |
+
max-height: 200px;
|
1565 |
+
overflow: auto; }
|
1566 |
+
.acf-taxonomy-field .acf-checkbox-list {
|
1567 |
+
margin: 0;
|
1568 |
+
padding: 10px; }
|
1569 |
+
.acf-taxonomy-field .acf-checkbox-list ul.children {
|
1570 |
+
padding-left: 18px; }
|
1571 |
+
.acf-taxonomy-field:hover .acf-actions {
|
1572 |
+
display: block; }
|
1573 |
+
.acf-taxonomy-field[data-ftype="select"] .acf-actions {
|
1574 |
+
padding: 0;
|
1575 |
+
margin: -9px; }
|
1576 |
+
|
1577 |
+
/*---------------------------------------------------------------------------------------------
|
1578 |
+
*
|
1579 |
+
* Range
|
1580 |
+
*
|
1581 |
+
*---------------------------------------------------------------------------------------------*/
|
1582 |
+
.acf-range-wrap {
|
1583 |
+
/* rtl */ }
|
1584 |
+
.acf-range-wrap .acf-append,
|
1585 |
+
.acf-range-wrap .acf-prepend {
|
1586 |
+
display: inline-block;
|
1587 |
+
vertical-align: middle;
|
1588 |
+
line-height: 28px;
|
1589 |
+
margin: 0 7px 0 0; }
|
1590 |
+
.acf-range-wrap .acf-append {
|
1591 |
+
margin: 0 0 0 7px; }
|
1592 |
+
.acf-range-wrap input[type="range"] {
|
1593 |
+
display: inline-block;
|
1594 |
+
padding: 0;
|
1595 |
+
margin: 0;
|
1596 |
+
vertical-align: middle;
|
1597 |
+
height: 28px; }
|
1598 |
+
.acf-range-wrap input[type="range"]:focus {
|
1599 |
+
outline: none; }
|
1600 |
+
.acf-range-wrap input[type="number"] {
|
1601 |
+
display: inline-block;
|
1602 |
+
min-width: 3em;
|
1603 |
+
margin-left: 10px;
|
1604 |
+
vertical-align: middle; }
|
1605 |
+
html[dir="rtl"] .acf-range-wrap input[type="number"] {
|
1606 |
+
margin-right: 10px;
|
1607 |
+
margin-left: 0; }
|
1608 |
+
html[dir="rtl"] .acf-range-wrap .acf-append {
|
1609 |
+
margin: 0 7px 0 0; }
|
1610 |
+
html[dir="rtl"] .acf-range-wrap .acf-prepend {
|
1611 |
+
margin: 0 0 0 7px; }
|
1612 |
+
|
1613 |
+
/*---------------------------------------------------------------------------------------------
|
1614 |
+
*
|
1615 |
+
* acf-accordion
|
1616 |
+
*
|
1617 |
+
*---------------------------------------------------------------------------------------------*/
|
1618 |
+
.acf-accordion {
|
1619 |
+
margin: 0;
|
1620 |
+
padding: 0;
|
1621 |
+
background: #fff;
|
1622 |
+
/* title */
|
1623 |
+
/* open */ }
|
1624 |
+
.acf-accordion .acf-accordion-title {
|
1625 |
+
margin: 0;
|
1626 |
+
padding: 12px;
|
1627 |
+
font-weight: bold;
|
1628 |
+
cursor: pointer;
|
1629 |
+
font-size: inherit;
|
1630 |
+
font-size: 13px;
|
1631 |
+
line-height: 1.4em; }
|
1632 |
+
.acf-accordion .acf-accordion-title label {
|
1633 |
+
margin: 0;
|
1634 |
+
padding: 0;
|
1635 |
+
font-size: 13px;
|
1636 |
+
line-height: 1.4em; }
|
1637 |
+
.acf-accordion .acf-accordion-title p {
|
1638 |
+
font-weight: normal; }
|
1639 |
+
.acf-accordion .acf-accordion-title .acf-accordion-icon {
|
1640 |
+
float: right; }
|
1641 |
+
.acf-accordion .acf-accordion-content {
|
1642 |
+
margin: 0;
|
1643 |
+
padding: 0 12px 12px;
|
1644 |
+
display: none; }
|
1645 |
+
.acf-accordion.-open > .acf-accordion-content {
|
1646 |
+
display: block; }
|
1647 |
+
|
1648 |
+
/* field specific */
|
1649 |
+
.acf-field.acf-accordion {
|
1650 |
+
padding: 0 !important;
|
1651 |
+
border-color: #dfdfdf; }
|
1652 |
+
.acf-field.acf-accordion .acf-accordion-title {
|
1653 |
+
padding: 12px;
|
1654 |
+
width: auto !important;
|
1655 |
+
float: none !important;
|
1656 |
+
width: auto !important; }
|
1657 |
+
.acf-field.acf-accordion .acf-accordion-content {
|
1658 |
+
padding: 0;
|
1659 |
+
float: none !important;
|
1660 |
+
width: auto !important; }
|
1661 |
+
.acf-field.acf-accordion .acf-accordion-content > .acf-fields {
|
1662 |
+
border-top: #EEEEEE solid 1px; }
|
1663 |
+
.acf-field.acf-accordion .acf-accordion-content > .acf-fields.-clear {
|
1664 |
+
padding: 0 12px 15px; }
|
1665 |
+
|
1666 |
+
/* field specific (left) */
|
1667 |
+
.acf-fields.-left > .acf-field.acf-accordion {
|
1668 |
+
padding: 0 !important; }
|
1669 |
+
.acf-fields.-left > .acf-field.acf-accordion:before {
|
1670 |
+
display: none; }
|
1671 |
+
.acf-fields.-left > .acf-field.acf-accordion .acf-accordion-title {
|
1672 |
+
width: auto;
|
1673 |
+
margin: 0 !important;
|
1674 |
+
padding: 12px;
|
1675 |
+
float: none !important; }
|
1676 |
+
.acf-fields.-left > .acf-field.acf-accordion .acf-accordion-content {
|
1677 |
+
padding: 0 !important; }
|
1678 |
+
|
1679 |
+
/* field specific (clear) */
|
1680 |
+
.acf-fields.-clear > .acf-field.acf-accordion {
|
1681 |
+
border: #cccccc solid 1px;
|
1682 |
+
background: transparent; }
|
1683 |
+
.acf-fields.-clear > .acf-field.acf-accordion + .acf-field.acf-accordion {
|
1684 |
+
margin-top: -16px; }
|
1685 |
+
|
1686 |
+
/* table */
|
1687 |
+
tr.acf-field.acf-accordion {
|
1688 |
+
background: transparent; }
|
1689 |
+
tr.acf-field.acf-accordion > .acf-input {
|
1690 |
+
padding: 0 !important;
|
1691 |
+
border: #cccccc solid 1px; }
|
1692 |
+
tr.acf-field.acf-accordion .acf-accordion-content {
|
1693 |
+
padding: 0 12px 12px; }
|
1694 |
+
|
1695 |
+
/* #addtag */
|
1696 |
+
#addtag div.acf-field.error {
|
1697 |
+
border: 0 none;
|
1698 |
+
padding: 8px 0; }
|
1699 |
+
|
1700 |
+
#addtag > .acf-field.acf-accordion {
|
1701 |
+
padding-right: 0;
|
1702 |
+
margin-right: 5%; }
|
1703 |
+
#addtag > .acf-field.acf-accordion + p.submit {
|
1704 |
+
margin-top: 0; }
|
1705 |
+
|
1706 |
+
/* border */
|
1707 |
+
tr.acf-accordion {
|
1708 |
+
margin: 15px 0 !important; }
|
1709 |
+
tr.acf-accordion + tr.acf-accordion {
|
1710 |
+
margin-top: -16px !important; }
|
1711 |
+
|
1712 |
+
/* seamless */
|
1713 |
+
.acf-postbox.seamless > .acf-fields > .acf-accordion {
|
1714 |
+
margin-left: 12px !important;
|
1715 |
+
margin-right: 12px !important; }
|
1716 |
+
|
1717 |
+
/* rtl */
|
1718 |
+
/* menu item */
|
1719 |
+
/*
|
1720 |
+
.menu-item-settings > .field-acf > .acf-field.acf-accordion {
|
1721 |
+
border: #dfdfdf solid 1px;
|
1722 |
+
margin: 10px -13px 10px -11px;
|
1723 |
+
|
1724 |
+
+ .acf-field.acf-accordion {
|
1725 |
+
margin-top: -11px;
|
1726 |
+
}
|
1727 |
+
}
|
1728 |
+
*/
|
1729 |
+
/* widget */
|
1730 |
+
.widget .widget-content > .acf-field.acf-accordion {
|
1731 |
+
border: #dfdfdf solid 1px;
|
1732 |
+
margin-bottom: 10px; }
|
1733 |
+
.widget .widget-content > .acf-field.acf-accordion .acf-accordion-title {
|
1734 |
+
margin-bottom: 0; }
|
1735 |
+
.widget .widget-content > .acf-field.acf-accordion + .acf-field.acf-accordion {
|
1736 |
+
margin-top: -11px; }
|
1737 |
+
|
1738 |
+
.acf-postbox.seamless > .acf-fields > .acf-field.acf-accordion {
|
1739 |
+
border: #e5e5e5 solid 1px; }
|
1740 |
+
.acf-postbox.seamless > .acf-fields > .acf-field.acf-accordion + .acf-field.acf-accordion {
|
1741 |
+
margin-top: -1px; }
|
1742 |
+
|
1743 |
+
.media-modal .compat-attachment-fields .acf-field.acf-accordion + .acf-field.acf-accordion {
|
1744 |
+
margin-top: -1px; }
|
1745 |
+
|
1746 |
+
.media-modal .compat-attachment-fields .acf-field.acf-accordion > .acf-input {
|
1747 |
+
width: 100%; }
|
1748 |
+
|
1749 |
+
.media-modal .compat-attachment-fields .acf-field.acf-accordion .compat-attachment-fields > tbody > tr > td {
|
1750 |
+
padding-bottom: 5px; }
|
1751 |
+
|
1752 |
+
/*--------------------------------------------------------------------------------------------
|
1753 |
+
*
|
1754 |
+
* User
|
1755 |
+
*
|
1756 |
+
*--------------------------------------------------------------------------------------------*/
|
1757 |
+
.form-table > tbody {
|
1758 |
+
/* field */
|
1759 |
+
/* tab wrap */
|
1760 |
+
/* misc */ }
|
1761 |
+
.form-table > tbody > .acf-field {
|
1762 |
+
/* label */
|
1763 |
+
/* input */ }
|
1764 |
+
.form-table > tbody > .acf-field > .acf-label {
|
1765 |
+
padding: 20px 10px 20px 0;
|
1766 |
+
width: 210px;
|
1767 |
+
/* rtl */ }
|
1768 |
+
html[dir="rtl"] .form-table > tbody > .acf-field > .acf-label {
|
1769 |
+
padding: 20px 0 20px 10px; }
|
1770 |
+
.form-table > tbody > .acf-field > .acf-label label {
|
1771 |
+
font-size: 14px;
|
1772 |
+
color: #23282d; }
|
1773 |
+
.form-table > tbody > .acf-field > .acf-input {
|
1774 |
+
padding: 15px 10px;
|
1775 |
+
/* rtl */ }
|
1776 |
+
html[dir="rtl"] .form-table > tbody > .acf-field > .acf-input {
|
1777 |
+
padding: 15px 10px 15px 5%; }
|
1778 |
+
.form-table > tbody > .acf-tab-wrap td {
|
1779 |
+
padding: 15px 5% 15px 0;
|
1780 |
+
/* rtl */ }
|
1781 |
+
html[dir="rtl"] .form-table > tbody > .acf-tab-wrap td {
|
1782 |
+
padding: 15px 0 15px 5%; }
|
1783 |
+
.form-table > tbody .form-table th.acf-th {
|
1784 |
+
width: auto; }
|
1785 |
+
|
1786 |
+
#your-profile,
|
1787 |
+
#createuser {
|
1788 |
+
/* override for user css */
|
1789 |
+
/* allow sub fields to display correctly */ }
|
1790 |
+
#your-profile .acf-field input[type="text"],
|
1791 |
+
#your-profile .acf-field input[type="password"],
|
1792 |
+
#your-profile .acf-field input[type="number"],
|
1793 |
+
#your-profile .acf-field input[type="search"],
|
1794 |
+
#your-profile .acf-field input[type="email"],
|
1795 |
+
#your-profile .acf-field input[type="url"],
|
1796 |
+
#your-profile .acf-field select,
|
1797 |
+
#createuser .acf-field input[type="text"],
|
1798 |
+
#createuser .acf-field input[type="password"],
|
1799 |
+
#createuser .acf-field input[type="number"],
|
1800 |
+
#createuser .acf-field input[type="search"],
|
1801 |
+
#createuser .acf-field input[type="email"],
|
1802 |
+
#createuser .acf-field input[type="url"],
|
1803 |
+
#createuser .acf-field select {
|
1804 |
+
max-width: 25em; }
|
1805 |
+
#your-profile .acf-field textarea,
|
1806 |
+
#createuser .acf-field textarea {
|
1807 |
+
max-width: 500px; }
|
1808 |
+
#your-profile .acf-field .acf-field input[type="text"],
|
1809 |
+
#your-profile .acf-field .acf-field input[type="password"],
|
1810 |
+
#your-profile .acf-field .acf-field input[type="number"],
|
1811 |
+
#your-profile .acf-field .acf-field input[type="search"],
|
1812 |
+
#your-profile .acf-field .acf-field input[type="email"],
|
1813 |
+
#your-profile .acf-field .acf-field input[type="url"],
|
1814 |
+
#your-profile .acf-field .acf-field textarea,
|
1815 |
+
#your-profile .acf-field .acf-field select,
|
1816 |
+
#createuser .acf-field .acf-field input[type="text"],
|
1817 |
+
#createuser .acf-field .acf-field input[type="password"],
|
1818 |
+
#createuser .acf-field .acf-field input[type="number"],
|
1819 |
+
#createuser .acf-field .acf-field input[type="search"],
|
1820 |
+
#createuser .acf-field .acf-field input[type="email"],
|
1821 |
+
#createuser .acf-field .acf-field input[type="url"],
|
1822 |
+
#createuser .acf-field .acf-field textarea,
|
1823 |
+
#createuser .acf-field .acf-field select {
|
1824 |
+
max-width: none; }
|
1825 |
+
|
1826 |
+
#registerform h2 {
|
1827 |
+
margin: 1em 0; }
|
1828 |
+
|
1829 |
+
#registerform .acf-field {
|
1830 |
+
margin-top: 0;
|
1831 |
+
/*
|
1832 |
+
.acf-input {
|
1833 |
+
input {
|
1834 |
+
font-size: 24px;
|
1835 |
+
padding: 5px;
|
1836 |
+
height: auto;
|
1837 |
+
}
|
1838 |
+
}
|
1839 |
+
*/ }
|
1840 |
+
#registerform .acf-field .acf-label {
|
1841 |
+
margin-bottom: 0; }
|
1842 |
+
#registerform .acf-field .acf-label label {
|
1843 |
+
font-weight: normal;
|
1844 |
+
line-height: 1.5; }
|
1845 |
+
|
1846 |
+
#registerform p.submit {
|
1847 |
+
text-align: right; }
|
1848 |
+
|
1849 |
+
/*--------------------------------------------------------------------------------------------
|
1850 |
+
*
|
1851 |
+
* Term
|
1852 |
+
*
|
1853 |
+
*--------------------------------------------------------------------------------------------*/
|
1854 |
+
#acf-term-fields {
|
1855 |
+
padding-right: 5%; }
|
1856 |
+
#acf-term-fields > .acf-field > .acf-label {
|
1857 |
+
margin: 0; }
|
1858 |
+
#acf-term-fields > .acf-field > .acf-label label {
|
1859 |
+
font-size: 12px;
|
1860 |
+
font-weight: normal; }
|
1861 |
+
|
1862 |
+
p.submit .spinner,
|
1863 |
+
p.submit .acf-spinner {
|
1864 |
+
vertical-align: top;
|
1865 |
+
float: none;
|
1866 |
+
margin: 4px 4px 0; }
|
1867 |
+
|
1868 |
+
#edittag .acf-fields.-left > .acf-field {
|
1869 |
+
padding-left: 220px; }
|
1870 |
+
#edittag .acf-fields.-left > .acf-field:before {
|
1871 |
+
width: 209px; }
|
1872 |
+
#edittag .acf-fields.-left > .acf-field > .acf-label {
|
1873 |
+
width: 220px;
|
1874 |
+
margin-left: -220px;
|
1875 |
+
padding: 0 10px; }
|
1876 |
+
#edittag .acf-fields.-left > .acf-field > .acf-input {
|
1877 |
+
padding: 0; }
|
1878 |
+
|
1879 |
+
#edittag > .acf-fields.-left {
|
1880 |
+
width: 96%; }
|
1881 |
+
#edittag > .acf-fields.-left > .acf-field > .acf-label {
|
1882 |
+
padding-left: 0; }
|
1883 |
+
|
1884 |
+
/*--------------------------------------------------------------------------------------------
|
1885 |
+
*
|
1886 |
+
* Comment
|
1887 |
+
*
|
1888 |
+
*--------------------------------------------------------------------------------------------*/
|
1889 |
+
.editcomment td:first-child {
|
1890 |
+
white-space: nowrap;
|
1891 |
+
width: 131px; }
|
1892 |
+
|
1893 |
+
/*--------------------------------------------------------------------------------------------
|
1894 |
+
*
|
1895 |
+
* Widget
|
1896 |
+
*
|
1897 |
+
*--------------------------------------------------------------------------------------------*/
|
1898 |
+
#widgets-right .widget .acf-field .description {
|
1899 |
+
padding-left: 0;
|
1900 |
+
padding-right: 0; }
|
1901 |
+
|
1902 |
+
.acf-widget-fields > .acf-field .acf-label {
|
1903 |
+
margin-bottom: 5px; }
|
1904 |
+
.acf-widget-fields > .acf-field .acf-label label {
|
1905 |
+
font-weight: normal;
|
1906 |
+
margin: 0; }
|
1907 |
+
|
1908 |
+
/*--------------------------------------------------------------------------------------------
|
1909 |
+
*
|
1910 |
+
* Nav Menu
|
1911 |
+
*
|
1912 |
+
*--------------------------------------------------------------------------------------------*/
|
1913 |
+
.acf-menu-settings {
|
1914 |
+
border-top: 1px solid #eee;
|
1915 |
+
margin-top: 2em; }
|
1916 |
+
.acf-menu-settings.-seamless {
|
1917 |
+
border-top: none;
|
1918 |
+
margin-top: 15px; }
|
1919 |
+
.acf-menu-settings.-seamless > h2 {
|
1920 |
+
display: none; }
|
1921 |
+
.acf-menu-settings .list li {
|
1922 |
+
display: block;
|
1923 |
+
margin-bottom: 0; }
|
1924 |
+
|
1925 |
+
.acf-menu-item-fields {
|
1926 |
+
margin-right: 10px;
|
1927 |
+
float: left; }
|
1928 |
+
|
1929 |
+
/*---------------------------------------------------------------------------------------------
|
1930 |
+
*
|
1931 |
+
* Attachment Form (single)
|
1932 |
+
*
|
1933 |
+
*---------------------------------------------------------------------------------------------*/
|
1934 |
+
#post .compat-attachment-fields .compat-field-acf-form-data {
|
1935 |
+
display: none; }
|
1936 |
+
|
1937 |
+
#post .compat-attachment-fields,
|
1938 |
+
#post .compat-attachment-fields > tbody,
|
1939 |
+
#post .compat-attachment-fields > tbody > tr,
|
1940 |
+
#post .compat-attachment-fields > tbody > tr > th,
|
1941 |
+
#post .compat-attachment-fields > tbody > tr > td {
|
1942 |
+
display: block; }
|
1943 |
+
|
1944 |
+
#post .compat-attachment-fields > tbody > .acf-field {
|
1945 |
+
margin: 15px 0; }
|
1946 |
+
#post .compat-attachment-fields > tbody > .acf-field > .acf-label {
|
1947 |
+
margin: 0; }
|
1948 |
+
#post .compat-attachment-fields > tbody > .acf-field > .acf-label label {
|
1949 |
+
margin: 0;
|
1950 |
+
padding: 0; }
|
1951 |
+
#post .compat-attachment-fields > tbody > .acf-field > .acf-label label p {
|
1952 |
+
margin: 0 0 3px !important; }
|
1953 |
+
#post .compat-attachment-fields > tbody > .acf-field > .acf-input {
|
1954 |
+
margin: 0; }
|
1955 |
+
|
1956 |
+
/*---------------------------------------------------------------------------------------------
|
1957 |
+
*
|
1958 |
+
* Media Model
|
1959 |
+
*
|
1960 |
+
*---------------------------------------------------------------------------------------------*/
|
1961 |
+
/* WP sets tables to act as divs. ACF uses tables, so these muct be reset */
|
1962 |
+
.media-modal .compat-attachment-fields td.acf-input table {
|
1963 |
+
display: table;
|
1964 |
+
table-layout: auto; }
|
1965 |
+
.media-modal .compat-attachment-fields td.acf-input table tbody {
|
1966 |
+
display: table-row-group; }
|
1967 |
+
.media-modal .compat-attachment-fields td.acf-input table tr {
|
1968 |
+
display: table-row; }
|
1969 |
+
.media-modal .compat-attachment-fields td.acf-input table td, .media-modal .compat-attachment-fields td.acf-input table th {
|
1970 |
+
display: table-cell; }
|
1971 |
+
|
1972 |
+
/* field widths floats */
|
1973 |
+
.media-modal .compat-attachment-fields > tbody > .acf-field {
|
1974 |
+
margin: 5px 0; }
|
1975 |
+
.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label {
|
1976 |
+
min-width: 30%;
|
1977 |
+
margin: 0;
|
1978 |
+
padding: 0;
|
1979 |
+
float: left;
|
1980 |
+
text-align: right;
|
1981 |
+
display: block;
|
1982 |
+
float: left; }
|
1983 |
+
.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label > label {
|
1984 |
+
padding-top: 6px;
|
1985 |
+
margin: 0;
|
1986 |
+
color: #666666;
|
1987 |
+
font-weight: 400;
|
1988 |
+
line-height: 16px; }
|
1989 |
+
.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-input {
|
1990 |
+
width: 65%;
|
1991 |
+
margin: 0;
|
1992 |
+
padding: 0;
|
1993 |
+
float: right;
|
1994 |
+
display: block; }
|
1995 |
+
.media-modal .compat-attachment-fields > tbody > .acf-field p.description {
|
1996 |
+
margin: 0; }
|
1997 |
+
|
1998 |
+
/* restricted selection (copy of WP .upload-errors)*/
|
1999 |
+
.acf-selection-error {
|
2000 |
+
background: #ffebe8;
|
2001 |
+
border: 1px solid #c00;
|
2002 |
+
border-radius: 3px;
|
2003 |
+
padding: 8px;
|
2004 |
+
margin: 20px 0 0; }
|
2005 |
+
.acf-selection-error .selection-error-label {
|
2006 |
+
background: #CC0000;
|
2007 |
+
border-radius: 3px;
|
2008 |
+
color: #fff;
|
2009 |
+
font-weight: bold;
|
2010 |
+
margin-right: 8px;
|
2011 |
+
padding: 2px 4px; }
|
2012 |
+
.acf-selection-error .selection-error-message {
|
2013 |
+
color: #b44;
|
2014 |
+
display: block;
|
2015 |
+
padding-top: 8px;
|
2016 |
+
word-wrap: break-word;
|
2017 |
+
white-space: pre-wrap; }
|
2018 |
+
|
2019 |
+
/* disabled attachment */
|
2020 |
+
.media-modal .attachment.acf-disabled .thumbnail {
|
2021 |
+
opacity: 0.25 !important; }
|
2022 |
+
|
2023 |
+
.media-modal .attachment.acf-disabled .attachment-preview:before {
|
2024 |
+
background: rgba(0, 0, 0, 0.15);
|
2025 |
+
z-index: 1;
|
2026 |
+
position: relative; }
|
2027 |
+
|
2028 |
+
/* misc */
|
2029 |
+
.media-modal {
|
2030 |
+
/* compat-item */
|
2031 |
+
/* allow line breaks in upload error */
|
2032 |
+
/* fix required span */
|
2033 |
+
/* sidebar */
|
2034 |
+
/* mobile md */ }
|
2035 |
+
.media-modal .compat-field-acf-form-data,
|
2036 |
+
.media-modal .compat-field-acf-blank {
|
2037 |
+
display: none !important; }
|
2038 |
+
.media-modal .upload-error-message {
|
2039 |
+
white-space: pre-wrap; }
|
2040 |
+
.media-modal .acf-required {
|
2041 |
+
padding: 0 !important;
|
2042 |
+
margin: 0 !important;
|
2043 |
+
float: none !important;
|
2044 |
+
color: #f00 !important; }
|
2045 |
+
.media-modal .media-sidebar .compat-item {
|
2046 |
+
padding-bottom: 20px; }
|
2047 |
+
@media (max-width: 900px) {
|
2048 |
+
.media-modal {
|
2049 |
+
/* label */
|
2050 |
+
/* field */ }
|
2051 |
+
.media-modal .setting span,
|
2052 |
+
.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-label {
|
2053 |
+
width: 98%;
|
2054 |
+
float: none;
|
2055 |
+
text-align: left;
|
2056 |
+
min-height: 0;
|
2057 |
+
padding: 0; }
|
2058 |
+
.media-modal .setting input,
|
2059 |
+
.media-modal .setting textarea,
|
2060 |
+
.media-modal .compat-attachment-fields > tbody > .acf-field > .acf-input {
|
2061 |
+
float: none;
|
2062 |
+
height: auto;
|
2063 |
+
max-width: none;
|
2064 |
+
width: 98%; } }
|
2065 |
+
|
2066 |
+
/*---------------------------------------------------------------------------------------------
|
2067 |
+
*
|
2068 |
+
* Media Model (expand details)
|
2069 |
+
*
|
2070 |
+
*---------------------------------------------------------------------------------------------*/
|
2071 |
+
.media-modal .acf-expand-details {
|
2072 |
+
float: right;
|
2073 |
+
padding: 1px 10px;
|
2074 |
+
margin-right: 6px;
|
2075 |
+
height: 18px;
|
2076 |
+
line-height: 18px;
|
2077 |
+
color: #AAAAAA;
|
2078 |
+
font-size: 12px;
|
2079 |
+
/* mobile sm */ }
|
2080 |
+
.media-modal .acf-expand-details:focus, .media-modal .acf-expand-details:active {
|
2081 |
+
outline: 0 none;
|
2082 |
+
box-shadow: none;
|
2083 |
+
color: #AAAAAA; }
|
2084 |
+
.media-modal .acf-expand-details:hover {
|
2085 |
+
color: #666666 !important; }
|
2086 |
+
.media-modal .acf-expand-details span {
|
2087 |
+
display: block;
|
2088 |
+
float: left; }
|
2089 |
+
.media-modal .acf-expand-details .acf-icon {
|
2090 |
+
margin: 0 4px 0 0; }
|
2091 |
+
.media-modal .acf-expand-details:hover .acf-icon {
|
2092 |
+
border-color: #AAAAAA; }
|
2093 |
+
.media-modal .acf-expand-details .is-open {
|
2094 |
+
display: none; }
|
2095 |
+
.media-modal .acf-expand-details .is-closed {
|
2096 |
+
display: block; }
|
2097 |
+
@media (max-width: 640px) {
|
2098 |
+
.media-modal .acf-expand-details {
|
2099 |
+
display: none; } }
|
2100 |
+
|
2101 |
+
/* expanded */
|
2102 |
+
.media-modal.acf-expanded {
|
2103 |
+
/* toggle */ }
|
2104 |
+
.media-modal.acf-expanded .acf-expand-details .is-open {
|
2105 |
+
display: block; }
|
2106 |
+
.media-modal.acf-expanded .acf-expand-details .is-closed {
|
2107 |
+
display: none; }
|
2108 |
+
.media-modal.acf-expanded .attachments-browser .media-toolbar,
|
2109 |
+
.media-modal.acf-expanded .attachments-browser .attachments {
|
2110 |
+
right: 740px; }
|
2111 |
+
.media-modal.acf-expanded .media-sidebar {
|
2112 |
+
width: 708px; }
|
2113 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail {
|
2114 |
+
float: left;
|
2115 |
+
max-height: none; }
|
2116 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail img {
|
2117 |
+
max-width: 100%;
|
2118 |
+
max-height: 200px; }
|
2119 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .details {
|
2120 |
+
float: right; }
|
2121 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail,
|
2122 |
+
.media-modal.acf-expanded .media-sidebar .attachment-details .setting span,
|
2123 |
+
.media-modal.acf-expanded .media-sidebar .compat-attachment-fields > tbody > .acf-field > .acf-label {
|
2124 |
+
min-width: 20%;
|
2125 |
+
margin-right: 0; }
|
2126 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .details,
|
2127 |
+
.media-modal.acf-expanded .media-sidebar .attachment-details .setting input,
|
2128 |
+
.media-modal.acf-expanded .media-sidebar .attachment-details .setting textarea,
|
2129 |
+
.media-modal.acf-expanded .media-sidebar .attachment-details .setting + .description,
|
2130 |
+
.media-modal.acf-expanded .media-sidebar .compat-attachment-fields > tbody > .acf-field > .acf-input {
|
2131 |
+
min-width: 77%; }
|
2132 |
+
@media (max-width: 900px) {
|
2133 |
+
.media-modal.acf-expanded .attachments-browser .media-toolbar {
|
2134 |
+
display: none; }
|
2135 |
+
.media-modal.acf-expanded .attachments {
|
2136 |
+
display: none; }
|
2137 |
+
.media-modal.acf-expanded .media-sidebar {
|
2138 |
+
width: auto;
|
2139 |
+
max-width: none !important;
|
2140 |
+
bottom: 0 !important; }
|
2141 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail {
|
2142 |
+
min-width: 0;
|
2143 |
+
max-width: none;
|
2144 |
+
width: 30%; }
|
2145 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .details {
|
2146 |
+
min-width: 0;
|
2147 |
+
max-width: none;
|
2148 |
+
width: 67%; } }
|
2149 |
+
@media (max-width: 640px) {
|
2150 |
+
.media-modal.acf-expanded .media-sidebar .attachment-info .thumbnail, .media-modal.acf-expanded .media-sidebar .attachment-info .details {
|
2151 |
+
width: 100%; } }
|
2152 |
+
|
2153 |
+
/*---------------------------------------------------------------------------------------------
|
2154 |
+
*
|
2155 |
+
* ACF Media Model
|
2156 |
+
*
|
2157 |
+
*---------------------------------------------------------------------------------------------*/
|
2158 |
+
.acf-media-modal {
|
2159 |
+
/* hide embed settings */ }
|
2160 |
+
.acf-media-modal .media-embed .setting.align,
|
2161 |
+
.acf-media-modal .media-embed .setting.link-to {
|
2162 |
+
display: none; }
|
2163 |
+
@media screen and (min-width: 1024px) {
|
2164 |
+
.acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary {
|
2165 |
+
max-width: none; }
|
2166 |
+
.acf-media-modal .media-modal-content .media-frame .media-toolbar-secondary select.attachment-filters {
|
2167 |
+
width: auto;
|
2168 |
+
min-width: 150px;
|
2169 |
+
max-width: none;
|
2170 |
+
margin: 11px 6px 0 0;
|
2171 |
+
vertical-align: middle; } }
|
2172 |
+
|
2173 |
+
/*---------------------------------------------------------------------------------------------
|
2174 |
+
*
|
2175 |
+
* ACF Media Model (Select Mode)
|
2176 |
+
*
|
2177 |
+
*---------------------------------------------------------------------------------------------*/
|
2178 |
+
/*---------------------------------------------------------------------------------------------
|
2179 |
+
*
|
2180 |
+
* ACF Media Model (Edit Mode)
|
2181 |
+
*
|
2182 |
+
*---------------------------------------------------------------------------------------------*/
|
2183 |
+
.acf-media-modal.-edit {
|
2184 |
+
/* resize modal */
|
2185 |
+
left: 15%;
|
2186 |
+
right: 15%;
|
2187 |
+
top: 100px;
|
2188 |
+
bottom: 100px;
|
2189 |
+
/* hide elements */
|
2190 |
+
/* full width */
|
2191 |
+
/* tidy up incorrect distance */
|
2192 |
+
/* title box shadow (to match media grid) */
|
2193 |
+
/* sidebar */
|
2194 |
+
/* mobile md */
|
2195 |
+
/* mobile sm */ }
|
2196 |
+
.acf-media-modal.-edit .media-frame-menu,
|
2197 |
+
.acf-media-modal.-edit .media-frame-router,
|
2198 |
+
.acf-media-modal.-edit .media-frame-content .attachments,
|
2199 |
+
.acf-media-modal.-edit .media-frame-content .media-toolbar {
|
2200 |
+
display: none; }
|
2201 |
+
.acf-media-modal.-edit .media-frame-title,
|
2202 |
+
.acf-media-modal.-edit .media-frame-content,
|
2203 |
+
.acf-media-modal.-edit .media-frame-toolbar,
|
2204 |
+
.acf-media-modal.-edit .media-sidebar {
|
2205 |
+
width: auto;
|
2206 |
+
left: 0;
|
2207 |
+
right: 0; }
|
2208 |
+
.acf-media-modal.-edit .media-frame-content {
|
2209 |
+
top: 50px; }
|
2210 |
+
.acf-media-modal.-edit .media-frame-title {
|
2211 |
+
border-bottom: 1px solid #DFDFDF;
|
2212 |
+
box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1); }
|
2213 |
+
.acf-media-modal.-edit .media-sidebar {
|
2214 |
+
padding: 0 16px;
|
2215 |
+
/* WP details */
|
2216 |
+
/* ACF fields */
|
2217 |
+
/* WP required message */ }
|
2218 |
+
.acf-media-modal.-edit .media-sidebar .attachment-details {
|
2219 |
+
overflow: visible;
|
2220 |
+
/* hide 'Attachment Details' heading */
|
2221 |
+
/* remove overflow */
|
2222 |
+
/* move thumbnail */ }
|
2223 |
+
.acf-media-modal.-edit .media-sidebar .attachment-details > h3, .acf-media-modal.-edit .media-sidebar .attachment-details > h2 {
|
2224 |
+
display: none; }
|
2225 |
+
.acf-media-modal.-edit .media-sidebar .attachment-details .attachment-info {
|
2226 |
+
background: #fff;
|
2227 |
+
border-bottom: #dddddd solid 1px;
|
2228 |
+
padding: 16px;
|
2229 |
+
margin: 0 -16px 16px; }
|
2230 |
+
.acf-media-modal.-edit .media-sidebar .attachment-details .thumbnail {
|
2231 |
+
margin: 0 16px 0 0; }
|
2232 |
+
.acf-media-modal.-edit .media-sidebar .attachment-details .setting {
|
2233 |
+
margin: 0 0 5px; }
|
2234 |
+
.acf-media-modal.-edit .media-sidebar .attachment-details .setting span {
|
2235 |
+
margin: 0; }
|
2236 |
+
.acf-media-modal.-edit .media-sidebar .compat-attachment-fields > tbody > .acf-field {
|
2237 |
+
margin: 0 0 5px; }
|
2238 |
+
.acf-media-modal.-edit .media-sidebar .compat-attachment-fields > tbody > .acf-field p.description {
|
2239 |
+
margin-top: 3px; }
|
2240 |
+
.acf-media-modal.-edit .media-sidebar .media-types-required-info {
|
2241 |
+
display: none; }
|
2242 |
+
@media (max-width: 900px) {
|
2243 |
+
.acf-media-modal.-edit {
|
2244 |
+
top: 30px;
|
2245 |
+
right: 30px;
|
2246 |
+
bottom: 30px;
|
2247 |
+
left: 30px; } }
|
2248 |
+
@media (max-width: 640px) {
|
2249 |
+
.acf-media-modal.-edit {
|
2250 |
+
top: 0;
|
2251 |
+
right: 0;
|
2252 |
+
bottom: 0;
|
2253 |
+
left: 0; } }
|
2254 |
+
@media (max-width: 480px) {
|
2255 |
+
.acf-media-modal.-edit .media-frame-content {
|
2256 |
+
top: 40px; } }
|
2257 |
+
|
2258 |
+
/*--------------------------------------------------------------------------------------------
|
2259 |
+
*
|
2260 |
+
* Confirm remove
|
2261 |
+
*
|
2262 |
+
*--------------------------------------------------------------------------------------------*/
|
2263 |
+
.acf-temp-remove {
|
2264 |
+
position: relative;
|
2265 |
+
opacity: 1;
|
2266 |
+
-webkit-transition: all 0.25s ease;
|
2267 |
+
-moz-transition: all 0.25s ease;
|
2268 |
+
-o-transition: all 0.25s ease;
|
2269 |
+
transition: all 0.25s ease;
|
2270 |
+
overflow: hidden;
|
2271 |
+
/* overlay prevents hover */ }
|
2272 |
+
.acf-temp-remove:after {
|
2273 |
+
display: block;
|
2274 |
+
content: "";
|
2275 |
+
position: absolute;
|
2276 |
+
top: 0;
|
2277 |
+
left: 0;
|
2278 |
+
right: 0;
|
2279 |
+
bottom: 0;
|
2280 |
+
z-index: 99; }
|
2281 |
+
|
2282 |
+
/*--------------------------------------------------------------------------
|
2283 |
+
*
|
2284 |
+
* Conditional Logic
|
2285 |
+
*
|
2286 |
+
*-------------------------------------------------------------------------*/
|
2287 |
+
/* Hide */
|
2288 |
+
.hidden-by-conditional-logic {
|
2289 |
+
display: none !important; }
|
2290 |
+
|
2291 |
+
/* Hide (appear empty) */
|
2292 |
+
.hidden-by-conditional-logic.appear-empty {
|
2293 |
+
display: table-cell !important; }
|
2294 |
+
|
2295 |
+
.hidden-by-conditional-logic.appear-empty .acf-input {
|
2296 |
+
display: none !important; }
|
2297 |
+
|
2298 |
+
/*--------------------------------------------------------------------------
|
2299 |
+
*
|
2300 |
+
* 3rd Party
|
2301 |
+
*
|
2302 |
+
*-------------------------------------------------------------------------*/
|
2303 |
+
/* Tabify shows hidden postboxes */
|
2304 |
+
.acf-postbox.acf-hidden {
|
2305 |
+
display: none !important; }
|
2306 |
+
|
2307 |
+
#editor .edit-post-layout__metaboxes {
|
2308 |
+
padding: 0; }
|
2309 |
+
|
2310 |
+
#editor .postbox {
|
2311 |
+
color: #444; }
|
2312 |
+
#editor .postbox .handlediv {
|
2313 |
+
color: #191e23 !important;
|
2314 |
+
height: 46px;
|
2315 |
+
width: auto;
|
2316 |
+
padding: 0 14px 0 5px;
|
2317 |
+
position: relative;
|
2318 |
+
z-index: 2; }
|
2319 |
+
#editor .postbox .hndle {
|
2320 |
+
color: #191e23 !important;
|
2321 |
+
font-size: 13px;
|
2322 |
+
line-height: normal;
|
2323 |
+
padding: 15px; }
|
2324 |
+
#editor .postbox .hndle:hover {
|
2325 |
+
background: #f2f4f5; }
|
2326 |
+
#editor .postbox .hndle .acf-hndle-cog {
|
2327 |
+
line-height: 16px; }
|
2328 |
+
#editor .postbox .handlediv .toggle-indicator {
|
2329 |
+
color: inherit; }
|
2330 |
+
#editor .postbox .handlediv .toggle-indicator:before {
|
2331 |
+
content: "\f343";
|
2332 |
+
font-size: 18px;
|
2333 |
+
width: auto; }
|
2334 |
+
#editor .postbox.closed .handlediv .toggle-indicator:before {
|
2335 |
+
content: "\f347"; }
|
assets/js/acf-input.js
CHANGED
@@ -4481,8 +4481,12 @@
|
|
4481 |
*/
|
4482 |
|
4483 |
val: function( val ){
|
|
|
|
|
4484 |
if( val !== undefined ) {
|
4485 |
return this.setValue( val );
|
|
|
|
|
4486 |
} else {
|
4487 |
return this.prop('disabled') ? null : this.getValue();
|
4488 |
}
|
@@ -5632,18 +5636,19 @@
|
|
5632 |
|
5633 |
onChange: function( e, $el ){
|
5634 |
|
5635 |
-
//
|
5636 |
var checked = $el.prop('checked');
|
|
|
5637 |
var $toggle = this.$toggle();
|
5638 |
|
5639 |
-
// selected
|
5640 |
if( checked ) {
|
5641 |
-
$
|
5642 |
} else {
|
5643 |
-
$
|
5644 |
}
|
5645 |
|
5646 |
-
//
|
5647 |
if( $toggle.length ) {
|
5648 |
var $inputs = this.$inputs();
|
5649 |
|
@@ -5662,9 +5667,21 @@
|
|
5662 |
},
|
5663 |
|
5664 |
onClickToggle: function( e, $el ){
|
|
|
|
|
5665 |
var checked = $el.prop('checked');
|
5666 |
-
var $inputs = this.$
|
|
|
|
|
|
|
5667 |
$inputs.prop('checked', checked);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5668 |
},
|
5669 |
|
5670 |
onClickCustom: function( e, $el ){
|
@@ -6017,7 +6034,7 @@
|
|
6017 |
(function($, undefined){
|
6018 |
|
6019 |
var Field = acf.Field.extend({
|
6020 |
-
|
6021 |
type: 'google_map',
|
6022 |
|
6023 |
map: false,
|
@@ -6032,17 +6049,13 @@
|
|
6032 |
'keyup .search': 'onKeyupSearch',
|
6033 |
'focus .search': 'onFocusSearch',
|
6034 |
'blur .search': 'onBlurSearch',
|
6035 |
-
'showField': 'onShow'
|
6036 |
},
|
6037 |
|
6038 |
$control: function(){
|
6039 |
return this.$('.acf-google-map');
|
6040 |
},
|
6041 |
|
6042 |
-
$input: function( name ){
|
6043 |
-
return this.$('input[data-name="' + (name || 'address') + '"]');
|
6044 |
-
},
|
6045 |
-
|
6046 |
$search: function(){
|
6047 |
return this.$('.search');
|
6048 |
},
|
@@ -6051,122 +6064,117 @@
|
|
6051 |
return this.$('.canvas');
|
6052 |
},
|
6053 |
|
6054 |
-
|
6055 |
-
this.$control().addClass( name );
|
6056 |
-
},
|
6057 |
-
|
6058 |
-
removeClass: function( name ){
|
6059 |
-
this.$control().removeClass( name );
|
6060 |
-
},
|
6061 |
-
|
6062 |
-
getValue: function(){
|
6063 |
-
|
6064 |
-
// defaults
|
6065 |
-
var val = {
|
6066 |
-
lat: '',
|
6067 |
-
lng: '',
|
6068 |
-
address: ''
|
6069 |
-
};
|
6070 |
|
6071 |
-
//
|
6072 |
-
this.$(
|
6073 |
-
val[ $(this).data('name') ] = $(this).val();
|
6074 |
-
});
|
6075 |
|
6076 |
-
//
|
6077 |
-
if(
|
6078 |
-
|
6079 |
}
|
6080 |
|
6081 |
-
//
|
6082 |
-
|
|
|
|
|
6083 |
},
|
6084 |
|
6085 |
-
|
6086 |
-
|
6087 |
-
|
6088 |
-
|
6089 |
-
|
6090 |
-
|
6091 |
-
|
6092 |
-
|
|
|
|
|
6093 |
|
6094 |
-
//
|
6095 |
-
|
6096 |
-
|
|
|
6097 |
}
|
6098 |
|
6099 |
-
//
|
6100 |
-
|
6101 |
-
|
|
|
|
|
|
|
6102 |
}
|
6103 |
|
6104 |
-
//
|
6105 |
this.renderVal( val );
|
6106 |
|
6107 |
-
|
6108 |
-
|
6109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6110 |
},
|
6111 |
|
6112 |
renderVal: function( val ){
|
6113 |
|
6114 |
-
|
6115 |
-
|
6116 |
-
|
6117 |
-
|
6118 |
-
|
6119 |
-
|
6120 |
-
|
6121 |
-
|
6122 |
-
|
6123 |
-
|
6124 |
-
|
6125 |
-
|
6126 |
-
|
6127 |
-
|
|
|
|
|
6128 |
},
|
6129 |
|
6130 |
setPosition: function( lat, lng ){
|
6131 |
|
6132 |
-
//
|
6133 |
-
|
6134 |
-
|
6135 |
-
|
6136 |
-
|
6137 |
|
6138 |
-
//
|
6139 |
this.map.marker.setVisible( true );
|
6140 |
|
6141 |
-
//
|
6142 |
this.center();
|
6143 |
-
|
6144 |
-
// return
|
6145 |
-
return this;
|
6146 |
},
|
6147 |
|
6148 |
center: function(){
|
6149 |
|
6150 |
-
//
|
6151 |
var position = this.map.marker.getPosition();
|
6152 |
-
var lat = this.get('lat');
|
6153 |
-
var lng = this.get('lng');
|
6154 |
-
|
6155 |
-
// if marker exists, center on the marker
|
6156 |
if( position ) {
|
6157 |
-
lat = position.lat();
|
6158 |
-
lng = position.lng();
|
|
|
|
|
|
|
|
|
|
|
6159 |
}
|
6160 |
|
6161 |
-
//
|
6162 |
-
|
6163 |
-
|
6164 |
-
|
6165 |
-
|
6166 |
-
},
|
6167 |
-
|
6168 |
-
getSearchVal: function(){
|
6169 |
-
return this.$search().val();
|
6170 |
},
|
6171 |
|
6172 |
initialize: function(){
|
@@ -6175,22 +6183,22 @@
|
|
6175 |
withAPI( this.initializeMap.bind(this) );
|
6176 |
},
|
6177 |
|
6178 |
-
newLatLng: function( lat, lng ){
|
6179 |
-
return new google.maps.LatLng( parseFloat(lat), parseFloat(lng) );
|
6180 |
-
},
|
6181 |
-
|
6182 |
initializeMap: function(){
|
6183 |
|
6184 |
-
//
|
6185 |
var zoom = this.get('zoom');
|
6186 |
var lat = this.get('lat');
|
6187 |
var lng = this.get('lng');
|
|
|
6188 |
|
6189 |
// Create Map.
|
6190 |
var mapArgs = {
|
6191 |
scrollwheel: false,
|
6192 |
-
zoom: parseInt( zoom ),
|
6193 |
-
center:
|
|
|
|
|
|
|
6194 |
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
6195 |
marker: {
|
6196 |
draggable: true,
|
@@ -6228,283 +6236,323 @@
|
|
6228 |
map.autocomplete = autocomplete;
|
6229 |
this.map = map;
|
6230 |
|
6231 |
-
//
|
6232 |
-
acf.doAction('google_map_init', map, marker, this);
|
6233 |
-
|
6234 |
-
// set position
|
6235 |
var val = this.getValue();
|
6236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6237 |
},
|
6238 |
|
6239 |
addMapEvents: function( field, map, marker, autocomplete ){
|
6240 |
|
6241 |
// Click map.
|
6242 |
google.maps.event.addListener( map, 'click', function( e ) {
|
6243 |
-
|
6244 |
-
// vars
|
6245 |
var lat = e.latLng.lat();
|
6246 |
var lng = e.latLng.lng();
|
6247 |
-
|
6248 |
-
// search
|
6249 |
field.searchPosition( lat, lng );
|
6250 |
});
|
6251 |
|
6252 |
// Drag marker.
|
6253 |
google.maps.event.addListener( marker, 'dragend', function(){
|
6254 |
-
|
6255 |
-
|
6256 |
-
var position = this.getPosition();
|
6257 |
-
var lat = position.lat();
|
6258 |
-
var lng = position.lng();
|
6259 |
-
|
6260 |
-
// search
|
6261 |
field.searchPosition( lat, lng );
|
6262 |
});
|
6263 |
|
6264 |
// Autocomplete search.
|
6265 |
if( autocomplete ) {
|
6266 |
-
|
6267 |
-
// autocomplete event place_changed is triggered each time the input changes
|
6268 |
-
// customize the place object with the current "search value" to allow users controll over the address text
|
6269 |
google.maps.event.addListener(autocomplete, 'place_changed', function() {
|
6270 |
var place = this.getPlace();
|
6271 |
-
|
6272 |
-
field.setPlace( place );
|
6273 |
});
|
6274 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6275 |
},
|
6276 |
|
6277 |
searchPosition: function( lat, lng ){
|
|
|
6278 |
|
6279 |
-
//
|
6280 |
-
|
6281 |
-
var $wrap = this.$control();
|
6282 |
|
6283 |
-
//
|
6284 |
-
|
6285 |
-
|
6286 |
-
|
6287 |
-
$wrap.addClass('-loading');
|
6288 |
-
|
6289 |
-
// callback
|
6290 |
-
var callback = $.proxy(function( results, status ){
|
6291 |
|
6292 |
-
//
|
6293 |
-
|
6294 |
|
6295 |
-
//
|
6296 |
-
|
6297 |
-
|
6298 |
-
|
6299 |
-
|
6300 |
-
|
6301 |
-
|
6302 |
-
|
6303 |
} else {
|
6304 |
-
|
|
|
|
|
|
|
6305 |
}
|
6306 |
-
|
6307 |
-
|
6308 |
-
this.val({
|
6309 |
-
lat: lat,
|
6310 |
-
lng: lng,
|
6311 |
-
address: address
|
6312 |
-
});
|
6313 |
-
|
6314 |
-
}, this);
|
6315 |
-
|
6316 |
-
// query
|
6317 |
-
geocoder.geocode({ 'latLng' : latLng }, callback);
|
6318 |
},
|
6319 |
|
6320 |
-
|
|
|
6321 |
|
6322 |
-
//
|
6323 |
-
if( !place )
|
6324 |
-
|
6325 |
-
// search name if no geometry
|
6326 |
-
// - possible when hitting enter in search address
|
6327 |
-
if( place.name && !place.geometry ) {
|
6328 |
-
this.searchAddress(place.name);
|
6329 |
-
return this;
|
6330 |
}
|
6331 |
|
6332 |
-
//
|
6333 |
-
|
6334 |
-
|
6335 |
-
|
6336 |
|
6337 |
-
//
|
6338 |
-
this.
|
6339 |
-
lat: lat,
|
6340 |
-
lng: lng,
|
6341 |
-
address: address
|
6342 |
-
});
|
6343 |
|
6344 |
-
|
6345 |
-
|
6346 |
},
|
6347 |
|
6348 |
searchAddress: function( address ){
|
|
|
6349 |
|
6350 |
-
|
|
|
|
|
|
|
|
|
|
|
6351 |
var latLng = address.split(',');
|
6352 |
if( latLng.length == 2 ) {
|
6353 |
-
|
6354 |
-
|
6355 |
-
|
6356 |
-
var lng = latLng[1];
|
6357 |
-
|
6358 |
-
// check
|
6359 |
-
if( $.isNumeric(lat) && $.isNumeric(lng) ) {
|
6360 |
return this.searchPosition( lat, lng );
|
6361 |
}
|
6362 |
}
|
6363 |
|
6364 |
-
|
6365 |
-
|
6366 |
-
|
6367 |
-
// add class
|
6368 |
-
$wrap.addClass('-loading');
|
6369 |
|
6370 |
-
//
|
6371 |
-
|
6372 |
-
|
6373 |
-
// remove class
|
6374 |
-
$wrap.removeClass('-loading');
|
6375 |
|
6376 |
-
//
|
6377 |
-
|
6378 |
-
var lng = '';
|
6379 |
|
6380 |
-
//
|
6381 |
-
if( status
|
6382 |
-
|
6383 |
-
|
6384 |
-
|
|
|
|
|
|
|
6385 |
} else {
|
6386 |
-
|
6387 |
-
|
6388 |
-
//address
|
|
|
|
|
|
|
|
|
6389 |
}
|
6390 |
-
|
6391 |
-
|
6392 |
-
this.val({
|
6393 |
-
lat: lat,
|
6394 |
-
lng: lng,
|
6395 |
-
address: address
|
6396 |
-
});
|
6397 |
-
|
6398 |
-
//acf.doAction('google_map_geocode_results', results, status, this.$el, this);
|
6399 |
-
|
6400 |
-
});
|
6401 |
-
|
6402 |
-
// query
|
6403 |
-
geocoder.geocode({ 'address' : address }, callback);
|
6404 |
},
|
6405 |
|
6406 |
searchLocation: function(){
|
|
|
6407 |
|
6408 |
-
//
|
6409 |
if( !navigator.geolocation ) {
|
6410 |
return alert( acf.__('Sorry, this browser does not support geolocation') );
|
6411 |
}
|
6412 |
|
6413 |
-
//
|
6414 |
-
|
6415 |
|
6416 |
-
|
6417 |
-
|
6418 |
-
|
6419 |
-
// callback
|
6420 |
-
var onSuccess = $.proxy(function( results, status ){
|
6421 |
-
|
6422 |
-
// remove class
|
6423 |
-
$wrap.removeClass('-loading');
|
6424 |
-
|
6425 |
-
// vars
|
6426 |
-
var lat = results.coords.latitude;
|
6427 |
-
var lng = results.coords.longitude;
|
6428 |
-
|
6429 |
-
// search;
|
6430 |
-
this.searchPosition( lat, lng );
|
6431 |
|
6432 |
-
|
6433 |
-
|
6434 |
-
|
6435 |
-
|
6436 |
-
|
6437 |
-
|
6438 |
-
|
6439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6440 |
},
|
6441 |
|
6442 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6443 |
this.val( false );
|
6444 |
},
|
6445 |
|
6446 |
-
onClickLocate: function(
|
6447 |
this.searchLocation();
|
6448 |
},
|
6449 |
|
6450 |
-
onClickSearch: function(
|
6451 |
this.searchAddress( this.$search().val() );
|
6452 |
},
|
6453 |
|
6454 |
onFocusSearch: function( e, $el ){
|
6455 |
-
this.
|
6456 |
-
this.onKeyupSearch.apply(this, arguments);
|
6457 |
},
|
6458 |
|
6459 |
onBlurSearch: function( e, $el ){
|
6460 |
|
6461 |
-
//
|
6462 |
-
this.
|
6463 |
-
|
6464 |
-
|
6465 |
-
|
6466 |
-
|
6467 |
-
|
|
|
6468 |
},
|
6469 |
|
6470 |
onKeyupSearch: function( e, $el ){
|
6471 |
-
|
6472 |
-
|
6473 |
-
|
6474 |
-
this.
|
6475 |
}
|
6476 |
},
|
6477 |
|
|
|
6478 |
onKeydownSearch: function( e, $el ){
|
6479 |
-
|
6480 |
-
// prevent form from submitting
|
6481 |
if( e.which == 13 ) {
|
6482 |
e.preventDefault();
|
|
|
6483 |
}
|
6484 |
},
|
6485 |
|
6486 |
-
|
6487 |
-
|
6488 |
-
/*
|
6489 |
-
// clear timeout in 1ms (onMousedown will run before onBlurSearch)
|
6490 |
-
this.setTimeout(function(){
|
6491 |
-
clearTimeout( this.get('timeout') );
|
6492 |
-
}, 1);
|
6493 |
-
*/
|
6494 |
-
},
|
6495 |
-
|
6496 |
onShow: function(){
|
6497 |
-
|
6498 |
-
|
6499 |
-
// - possible if JS API was not loaded
|
6500 |
-
if( !this.map ) {
|
6501 |
-
return false;
|
6502 |
}
|
6503 |
-
|
6504 |
-
// center map when it is shown (by a tab / collapsed row)
|
6505 |
-
// - use delay to avoid rendering issues with browsers (ensures div is visible)
|
6506 |
-
this.setTimeout( this.center, 10 );
|
6507 |
-
}
|
6508 |
});
|
6509 |
|
6510 |
acf.registerFieldType( Field );
|
4481 |
*/
|
4482 |
|
4483 |
val: function( val ){
|
4484 |
+
|
4485 |
+
// Set.
|
4486 |
if( val !== undefined ) {
|
4487 |
return this.setValue( val );
|
4488 |
+
|
4489 |
+
// Get.
|
4490 |
} else {
|
4491 |
return this.prop('disabled') ? null : this.getValue();
|
4492 |
}
|
5636 |
|
5637 |
onChange: function( e, $el ){
|
5638 |
|
5639 |
+
// Vars.
|
5640 |
var checked = $el.prop('checked');
|
5641 |
+
var $label = $el.parent('label');
|
5642 |
var $toggle = this.$toggle();
|
5643 |
|
5644 |
+
// Add or remove "selected" class.
|
5645 |
if( checked ) {
|
5646 |
+
$label.addClass('selected');
|
5647 |
} else {
|
5648 |
+
$label.removeClass('selected');
|
5649 |
}
|
5650 |
|
5651 |
+
// Update toggle state if all inputs are checked.
|
5652 |
if( $toggle.length ) {
|
5653 |
var $inputs = this.$inputs();
|
5654 |
|
5667 |
},
|
5668 |
|
5669 |
onClickToggle: function( e, $el ){
|
5670 |
+
|
5671 |
+
// Vars.
|
5672 |
var checked = $el.prop('checked');
|
5673 |
+
var $inputs = this.$('input[type="checkbox"]');
|
5674 |
+
var $labels = this.$('label');
|
5675 |
+
|
5676 |
+
// Update "checked" state.
|
5677 |
$inputs.prop('checked', checked);
|
5678 |
+
|
5679 |
+
// Add or remove "selected" class.
|
5680 |
+
if( checked ) {
|
5681 |
+
$labels.addClass('selected');
|
5682 |
+
} else {
|
5683 |
+
$labels.removeClass('selected');
|
5684 |
+
}
|
5685 |
},
|
5686 |
|
5687 |
onClickCustom: function( e, $el ){
|
6034 |
(function($, undefined){
|
6035 |
|
6036 |
var Field = acf.Field.extend({
|
6037 |
+
|
6038 |
type: 'google_map',
|
6039 |
|
6040 |
map: false,
|
6049 |
'keyup .search': 'onKeyupSearch',
|
6050 |
'focus .search': 'onFocusSearch',
|
6051 |
'blur .search': 'onBlurSearch',
|
6052 |
+
'showField': 'onShow',
|
6053 |
},
|
6054 |
|
6055 |
$control: function(){
|
6056 |
return this.$('.acf-google-map');
|
6057 |
},
|
6058 |
|
|
|
|
|
|
|
|
|
6059 |
$search: function(){
|
6060 |
return this.$('.search');
|
6061 |
},
|
6064 |
return this.$('.canvas');
|
6065 |
},
|
6066 |
|
6067 |
+
setState: function( state ){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6068 |
|
6069 |
+
// Remove previous state classes.
|
6070 |
+
this.$control().removeClass( '-value -loading -searching' );
|
|
|
|
|
6071 |
|
6072 |
+
// Determine auto state based of current value.
|
6073 |
+
if( state === 'default' ) {
|
6074 |
+
state = this.val() ? 'value' : '';
|
6075 |
}
|
6076 |
|
6077 |
+
// Update state class.
|
6078 |
+
if( state ) {
|
6079 |
+
this.$control().addClass( '-' + state );
|
6080 |
+
}
|
6081 |
},
|
6082 |
|
6083 |
+
getValue: function(){
|
6084 |
+
var val = this.$input().val();
|
6085 |
+
if( val ) {
|
6086 |
+
return JSON.parse( val )
|
6087 |
+
} else {
|
6088 |
+
return false;
|
6089 |
+
}
|
6090 |
+
},
|
6091 |
+
|
6092 |
+
setValue: function( val, silent ){
|
6093 |
|
6094 |
+
// Convert input value.
|
6095 |
+
var valAttr = '';
|
6096 |
+
if( val ) {
|
6097 |
+
valAttr = JSON.stringify( val );
|
6098 |
}
|
6099 |
|
6100 |
+
// Update input.
|
6101 |
+
this.$input().val( valAttr );
|
6102 |
+
|
6103 |
+
// Bail early if silent update.
|
6104 |
+
if( silent ) {
|
6105 |
+
return;
|
6106 |
}
|
6107 |
|
6108 |
+
// Render.
|
6109 |
this.renderVal( val );
|
6110 |
|
6111 |
+
/**
|
6112 |
+
* Fires immediately after the value has changed.
|
6113 |
+
*
|
6114 |
+
* @date 12/02/2014
|
6115 |
+
* @since 5.0.0
|
6116 |
+
*
|
6117 |
+
* @param object|string val The new value.
|
6118 |
+
* @param object map The Google Map isntance.
|
6119 |
+
* @param object field The field instance.
|
6120 |
+
*/
|
6121 |
+
acf.doAction('google_map_change', val, this.map, this);
|
6122 |
},
|
6123 |
|
6124 |
renderVal: function( val ){
|
6125 |
|
6126 |
+
// Value.
|
6127 |
+
if( val ) {
|
6128 |
+
this.setState( 'value' );
|
6129 |
+
this.$search().val( val.address );
|
6130 |
+
this.setPosition( val.lat, val.lng );
|
6131 |
+
|
6132 |
+
// No value.
|
6133 |
+
} else {
|
6134 |
+
this.setState( '' );
|
6135 |
+
this.$search().val( '' );
|
6136 |
+
this.map.marker.setVisible( false );
|
6137 |
+
}
|
6138 |
+
},
|
6139 |
+
|
6140 |
+
newLatLng: function( lat, lng ){
|
6141 |
+
return new google.maps.LatLng( parseFloat(lat), parseFloat(lng) );
|
6142 |
},
|
6143 |
|
6144 |
setPosition: function( lat, lng ){
|
6145 |
|
6146 |
+
// Update marker position.
|
6147 |
+
this.map.marker.setPosition({
|
6148 |
+
lat: parseFloat(lat),
|
6149 |
+
lng: parseFloat(lng)
|
6150 |
+
});
|
6151 |
|
6152 |
+
// Show marker.
|
6153 |
this.map.marker.setVisible( true );
|
6154 |
|
6155 |
+
// Center map.
|
6156 |
this.center();
|
|
|
|
|
|
|
6157 |
},
|
6158 |
|
6159 |
center: function(){
|
6160 |
|
6161 |
+
// Find marker position.
|
6162 |
var position = this.map.marker.getPosition();
|
|
|
|
|
|
|
|
|
6163 |
if( position ) {
|
6164 |
+
var lat = position.lat();
|
6165 |
+
var lng = position.lng();
|
6166 |
+
|
6167 |
+
// Or find default settings.
|
6168 |
+
} else {
|
6169 |
+
var lat = this.get('lat');
|
6170 |
+
var lng = this.get('lng');
|
6171 |
}
|
6172 |
|
6173 |
+
// Center map.
|
6174 |
+
this.map.setCenter({
|
6175 |
+
lat: parseFloat(lat),
|
6176 |
+
lng: parseFloat(lng)
|
6177 |
+
});
|
|
|
|
|
|
|
|
|
6178 |
},
|
6179 |
|
6180 |
initialize: function(){
|
6183 |
withAPI( this.initializeMap.bind(this) );
|
6184 |
},
|
6185 |
|
|
|
|
|
|
|
|
|
6186 |
initializeMap: function(){
|
6187 |
|
6188 |
+
// Vars.
|
6189 |
var zoom = this.get('zoom');
|
6190 |
var lat = this.get('lat');
|
6191 |
var lng = this.get('lng');
|
6192 |
+
var val = this.val();
|
6193 |
|
6194 |
// Create Map.
|
6195 |
var mapArgs = {
|
6196 |
scrollwheel: false,
|
6197 |
+
zoom: parseInt( val.zoom || zoom ),
|
6198 |
+
center: {
|
6199 |
+
lat: parseFloat( val.lat || lat ),
|
6200 |
+
lng: parseFloat( val.lng || lng )
|
6201 |
+
},
|
6202 |
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
6203 |
marker: {
|
6204 |
draggable: true,
|
6236 |
map.autocomplete = autocomplete;
|
6237 |
this.map = map;
|
6238 |
|
6239 |
+
// Set position.
|
|
|
|
|
|
|
6240 |
var val = this.getValue();
|
6241 |
+
if( val ) {
|
6242 |
+
this.setPosition( val.lat, val.lng );
|
6243 |
+
}
|
6244 |
+
|
6245 |
+
/**
|
6246 |
+
* Fires immediately after the Google Map has been initialized.
|
6247 |
+
*
|
6248 |
+
* @date 12/02/2014
|
6249 |
+
* @since 5.0.0
|
6250 |
+
*
|
6251 |
+
* @param object map The Google Map isntance.
|
6252 |
+
* @param object marker The Google Map marker isntance.
|
6253 |
+
* @param object field The field instance.
|
6254 |
+
*/
|
6255 |
+
acf.doAction('google_map_init', map, marker, this);
|
6256 |
},
|
6257 |
|
6258 |
addMapEvents: function( field, map, marker, autocomplete ){
|
6259 |
|
6260 |
// Click map.
|
6261 |
google.maps.event.addListener( map, 'click', function( e ) {
|
|
|
|
|
6262 |
var lat = e.latLng.lat();
|
6263 |
var lng = e.latLng.lng();
|
|
|
|
|
6264 |
field.searchPosition( lat, lng );
|
6265 |
});
|
6266 |
|
6267 |
// Drag marker.
|
6268 |
google.maps.event.addListener( marker, 'dragend', function(){
|
6269 |
+
var lat = this.getPosition().lat();
|
6270 |
+
var lng = this.getPosition().lng();
|
|
|
|
|
|
|
|
|
|
|
6271 |
field.searchPosition( lat, lng );
|
6272 |
});
|
6273 |
|
6274 |
// Autocomplete search.
|
6275 |
if( autocomplete ) {
|
|
|
|
|
|
|
6276 |
google.maps.event.addListener(autocomplete, 'place_changed', function() {
|
6277 |
var place = this.getPlace();
|
6278 |
+
field.searchPlace( place );
|
|
|
6279 |
});
|
6280 |
}
|
6281 |
+
|
6282 |
+
// Detect zoom change.
|
6283 |
+
google.maps.event.addListener( map, 'zoom_changed', function(){
|
6284 |
+
var val = field.val();
|
6285 |
+
if( val ) {
|
6286 |
+
val.zoom = map.getZoom();
|
6287 |
+
field.setValue( val, true );
|
6288 |
+
}
|
6289 |
+
});
|
6290 |
},
|
6291 |
|
6292 |
searchPosition: function( lat, lng ){
|
6293 |
+
//console.log('searchPosition', lat, lng );
|
6294 |
|
6295 |
+
// Start Loading.
|
6296 |
+
this.setState( 'loading' );
|
|
|
6297 |
|
6298 |
+
// Query Geocoder.
|
6299 |
+
var latLng = { lat: lat, lng: lng };
|
6300 |
+
geocoder.geocode({ location: latLng }, function( results, status ){
|
6301 |
+
//console.log('searchPosition', arguments );
|
|
|
|
|
|
|
|
|
6302 |
|
6303 |
+
// End Loading.
|
6304 |
+
this.setState( '' );
|
6305 |
|
6306 |
+
// Status failure.
|
6307 |
+
if( status !== 'OK' ) {
|
6308 |
+
this.showNotice({
|
6309 |
+
text: acf.__('Location not found: %s').replace('%s', status),
|
6310 |
+
type: 'warning'
|
6311 |
+
});
|
6312 |
+
|
6313 |
+
// Success.
|
6314 |
} else {
|
6315 |
+
var val = this.parseResult( results[0] );
|
6316 |
+
|
6317 |
+
// Update value.
|
6318 |
+
this.val( val );
|
6319 |
}
|
6320 |
+
|
6321 |
+
}.bind( this ));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6322 |
},
|
6323 |
|
6324 |
+
searchPlace: function( place ){
|
6325 |
+
//console.log('searchPlace', place );
|
6326 |
|
6327 |
+
// Ignore empty search.
|
6328 |
+
if( !place || !place.name ) {
|
6329 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
6330 |
}
|
6331 |
|
6332 |
+
// No geometry (Custom address search).
|
6333 |
+
if( !place.geometry ) {
|
6334 |
+
return this.searchAddress( place.name );
|
6335 |
+
}
|
6336 |
|
6337 |
+
// Parse place.
|
6338 |
+
var val = this.parseResult( place );
|
|
|
|
|
|
|
|
|
6339 |
|
6340 |
+
// Update value.
|
6341 |
+
this.val( val );
|
6342 |
},
|
6343 |
|
6344 |
searchAddress: function( address ){
|
6345 |
+
//console.log('searchAddress', address );
|
6346 |
|
6347 |
+
// Bail early if no address.
|
6348 |
+
if( !address ) {
|
6349 |
+
return;
|
6350 |
+
}
|
6351 |
+
|
6352 |
+
// Allow "lat,lng" search.
|
6353 |
var latLng = address.split(',');
|
6354 |
if( latLng.length == 2 ) {
|
6355 |
+
var lat = parseFloat(latLng[0]);
|
6356 |
+
var lng = parseFloat(latLng[1]);
|
6357 |
+
if( lat && lng ) {
|
|
|
|
|
|
|
|
|
6358 |
return this.searchPosition( lat, lng );
|
6359 |
}
|
6360 |
}
|
6361 |
|
6362 |
+
// Start Loading.
|
6363 |
+
this.setState( 'loading' );
|
|
|
|
|
|
|
6364 |
|
6365 |
+
// Query Geocoder.
|
6366 |
+
geocoder.geocode({ address: address }, function( results, status ){
|
6367 |
+
//console.log('searchPosition', arguments );
|
|
|
|
|
6368 |
|
6369 |
+
// End Loading.
|
6370 |
+
this.setState( '' );
|
|
|
6371 |
|
6372 |
+
// Status failure.
|
6373 |
+
if( status !== 'OK' ) {
|
6374 |
+
this.showNotice({
|
6375 |
+
text: acf.__('Location not found: %s').replace('%s', status),
|
6376 |
+
type: 'warning'
|
6377 |
+
});
|
6378 |
+
|
6379 |
+
// Success.
|
6380 |
} else {
|
6381 |
+
var val = this.parseResult( results[0] );
|
6382 |
+
|
6383 |
+
// Override address data with parameter allowing custom address to be defined in search.
|
6384 |
+
val.address = address;
|
6385 |
+
|
6386 |
+
// Update value.
|
6387 |
+
this.val( val );
|
6388 |
}
|
6389 |
+
|
6390 |
+
}.bind( this ));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6391 |
},
|
6392 |
|
6393 |
searchLocation: function(){
|
6394 |
+
//console.log('searchLocation' );
|
6395 |
|
6396 |
+
// Check HTML5 geolocation.
|
6397 |
if( !navigator.geolocation ) {
|
6398 |
return alert( acf.__('Sorry, this browser does not support geolocation') );
|
6399 |
}
|
6400 |
|
6401 |
+
// Start Loading.
|
6402 |
+
this.setState( 'loading' );
|
6403 |
|
6404 |
+
// Query Geolocation.
|
6405 |
+
navigator.geolocation.getCurrentPosition(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6406 |
|
6407 |
+
// Success.
|
6408 |
+
function( results ){
|
6409 |
+
|
6410 |
+
// End Loading.
|
6411 |
+
this.setState( '' );
|
6412 |
+
|
6413 |
+
// Search position.
|
6414 |
+
var lat = results.coords.latitude;
|
6415 |
+
var lng = results.coords.longitude;
|
6416 |
+
this.searchPosition( lat, lng );
|
6417 |
+
|
6418 |
+
}.bind(this),
|
6419 |
+
|
6420 |
+
// Failure.
|
6421 |
+
function( error ){
|
6422 |
+
this.setState( '' );
|
6423 |
+
}.bind(this)
|
6424 |
+
);
|
6425 |
},
|
6426 |
|
6427 |
+
/**
|
6428 |
+
* parseResult
|
6429 |
+
*
|
6430 |
+
* Returns location data for the given GeocoderResult object.
|
6431 |
+
*
|
6432 |
+
* @date 15/10/19
|
6433 |
+
* @since 5.8.6
|
6434 |
+
*
|
6435 |
+
* @param object obj A GeocoderResult object.
|
6436 |
+
* @return object
|
6437 |
+
*/
|
6438 |
+
parseResult: function( obj ) {
|
6439 |
+
|
6440 |
+
// Construct basic data.
|
6441 |
+
var result = {
|
6442 |
+
address: obj.formatted_address,
|
6443 |
+
lat: obj.geometry.location.lat(),
|
6444 |
+
lng: obj.geometry.location.lng(),
|
6445 |
+
};
|
6446 |
+
|
6447 |
+
// Add zoom level.
|
6448 |
+
result.zoom = this.map.getZoom();
|
6449 |
+
|
6450 |
+
// Add place ID.
|
6451 |
+
if( obj.place_id ) {
|
6452 |
+
result.place_id = obj.place_id;
|
6453 |
+
}
|
6454 |
+
|
6455 |
+
// Create search map for address component data.
|
6456 |
+
var map = {
|
6457 |
+
street_number: [ 'street_number' ],
|
6458 |
+
street_name: [ 'street_address', 'route' ],
|
6459 |
+
city: [ 'locality' ],
|
6460 |
+
state: [
|
6461 |
+
'administrative_area_level_1',
|
6462 |
+
'administrative_area_level_2',
|
6463 |
+
'administrative_area_level_3',
|
6464 |
+
'administrative_area_level_4',
|
6465 |
+
'administrative_area_level_5'
|
6466 |
+
],
|
6467 |
+
post_code: [ 'postal_code' ],
|
6468 |
+
country: [ 'country' ]
|
6469 |
+
};
|
6470 |
+
|
6471 |
+
// Loop over map.
|
6472 |
+
for( var k in map ) {
|
6473 |
+
var keywords = map[ k ];
|
6474 |
+
|
6475 |
+
// Loop over address components.
|
6476 |
+
for( var i = 0; i < obj.address_components.length; i++ ) {
|
6477 |
+
var component = obj.address_components[ i ];
|
6478 |
+
var component_type = component.types[0];
|
6479 |
+
|
6480 |
+
// Look for matching component type.
|
6481 |
+
if( keywords.indexOf(component_type) !== -1 ) {
|
6482 |
+
|
6483 |
+
// Append to result.
|
6484 |
+
result[ k ] = component.long_name;
|
6485 |
+
|
6486 |
+
// Append short version.
|
6487 |
+
if( component.long_name !== component.short_name ) {
|
6488 |
+
result[ k + '_short' ] = component.short_name;
|
6489 |
+
}
|
6490 |
+
}
|
6491 |
+
}
|
6492 |
+
}
|
6493 |
+
|
6494 |
+
/**
|
6495 |
+
* Filters the parsed result.
|
6496 |
+
*
|
6497 |
+
* @date 18/10/19
|
6498 |
+
* @since 5.8.6
|
6499 |
+
*
|
6500 |
+
* @param object result The parsed result value.
|
6501 |
+
* @param object obj The GeocoderResult object.
|
6502 |
+
*/
|
6503 |
+
return acf.applyFilters('google_map_result', result, obj, this.map, this);
|
6504 |
+
},
|
6505 |
+
|
6506 |
+
onClickClear: function(){
|
6507 |
this.val( false );
|
6508 |
},
|
6509 |
|
6510 |
+
onClickLocate: function(){
|
6511 |
this.searchLocation();
|
6512 |
},
|
6513 |
|
6514 |
+
onClickSearch: function(){
|
6515 |
this.searchAddress( this.$search().val() );
|
6516 |
},
|
6517 |
|
6518 |
onFocusSearch: function( e, $el ){
|
6519 |
+
this.setState( 'searching' );
|
|
|
6520 |
},
|
6521 |
|
6522 |
onBlurSearch: function( e, $el ){
|
6523 |
|
6524 |
+
// Get saved address value.
|
6525 |
+
var val = this.val();
|
6526 |
+
var address = val ? val.address : '';
|
6527 |
+
|
6528 |
+
// Remove 'is-searching' if value has not changed.
|
6529 |
+
if( $el.val() === address ) {
|
6530 |
+
this.setState( 'default' );
|
6531 |
+
}
|
6532 |
},
|
6533 |
|
6534 |
onKeyupSearch: function( e, $el ){
|
6535 |
+
|
6536 |
+
// Clear empty value.
|
6537 |
+
if( !$el.val() ) {
|
6538 |
+
this.val( false );
|
6539 |
}
|
6540 |
},
|
6541 |
|
6542 |
+
// Prevent form from submitting.
|
6543 |
onKeydownSearch: function( e, $el ){
|
|
|
|
|
6544 |
if( e.which == 13 ) {
|
6545 |
e.preventDefault();
|
6546 |
+
$el.blur();
|
6547 |
}
|
6548 |
},
|
6549 |
|
6550 |
+
// Center map once made visible.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6551 |
onShow: function(){
|
6552 |
+
if( this.map ) {
|
6553 |
+
this.setTimeout( this.center );
|
|
|
|
|
|
|
6554 |
}
|
6555 |
+
},
|
|
|
|
|
|
|
|
|
6556 |
});
|
6557 |
|
6558 |
acf.registerFieldType( Field );
|
assets/js/acf-input.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(t,e){var i={};window.acf=i,i.data={},i.get=function(t){return this.data[t]||null},i.has=function(t){return null!==this.get(t)},i.set=function(t,e){return this.data[t]=e,this};var n=0;i.uniqueId=function(t){var e=++n+"";return t?t+e:e},i.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var a="";i.uniqid=function(t,e){var i;void 0===t&&(t="");var n=function(t,e){return e<(t=parseInt(t,10).toString(16)).length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return a||(a=Math.floor(123456789*Math.random())),a++,i=t,i+=n(parseInt((new Date).getTime()/1e3,10),8),i+=n(a,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},i.strReplace=function(t,e,i){return i.split(t).join(e)},i.strCamelCase=function(t){return t=(t=t.replace(/[_-]/g," ")).replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},i.strPascalCase=function(t){var e=i.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},i.strSlugify=function(t){return i.strReplace("_","-",t.toLowerCase())},i.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 void 0!==e[t]?e[t]:t};return t=(t=t.replace(i,n)).toLowerCase()},i.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a<n&&t[a]===e[a];a++)i++;return i},i.decode=function(e){return t("<textarea/>").html(e).text()},i.strEscape=function(e){return t("<div>").text(e).html()},i.parseArgs=function(e,i){return"object"!=typeof e&&(e={}),"object"!=typeof i&&(i={}),t.extend({},i,e)},null==window.acfL10n&&(acfL10n={}),i.__=function(t){return acfL10n[t]||t},i._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},i._n=function(t,e,n){return 1==n?i.__(t):i.__(e)},i.isArray=function(t){return Array.isArray(t)},i.isObject=function(t){return"object"==typeof t};var r=function(t,e,n){var a=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(a)for(var r=a.length,o=t,s=0;s<r;s++){var c=String(a[s]);s==r-1?"%%index%%"===c?o.push(n):o[c]=n:("%%index%%"===a[s+1]?i.isArray(o[c])||(o[c]=[]):i.isObject(o[c])||(o[c]={}),o=o[c])}};i.serialize=function(t,e){var n={},a=i.serializeArray(t);void 0!==e&&(a=a.filter(function(t){return 0===t.name.indexOf(e)}).map(function(t){return t.name=t.name.slice(e.length),t}));for(var o=0;o<a.length;o++)r(n,a[o].name,a[o].value);return n},i.serializeArray=function(t){return t.find("select, textarea, input").serializeArray()},i.serializeForAjax=function(t){var e={},n;return i.serializeArray(t).map(function(t){"[]"===t.name.slice(-2)?(e[t.name]=e[t.name]||[],e[t.name].push(t.value)):e[t.name]=t.value}),e},i.addAction=function(t,e,n,a){return i.hooks.addAction.apply(this,arguments),this},i.removeAction=function(t,e){return i.hooks.removeAction.apply(this,arguments),this};var o={};i.doAction=function(t){return o[t]=1,i.hooks.doAction.apply(this,arguments),o[t]=0,this},i.doingAction=function(t){return 1===o[t]},i.didAction=function(t){return void 0!==o[t]},i.currentAction=function(){for(var t in o)if(o[t])return t;return!1},i.addFilter=function(t){return i.hooks.addFilter.apply(this,arguments),this},i.removeFilter=function(t){return i.hooks.removeFilter.apply(this,arguments),this},i.applyFilters=function(t){return i.hooks.applyFilters.apply(this,arguments)},i.arrayArgs=function(t){return Array.prototype.slice.call(t)};try{var s=JSON.parse(localStorage.getItem("acf"))||{}}catch(t){var s={}}var c=function(t){return"this."===t.substr(0,5)&&(t=t.substr(5)+"-"+i.get("post_id")),t};i.getPreference=function(t){return t=c(t),s[t]||null},i.setPreference=function(t,e){t=c(t),null===e?delete s[t]:s[t]=e,localStorage.setItem("acf",JSON.stringify(s))},i.removePreference=function(t){i.setPreference(t,null)},i.remove=function(t){t instanceof jQuery&&(t={target:t}),t=i.parseArgs(t,{target:!1,endHeight:0,complete:function(){}}),i.doAction("remove",t.target),t.target.is("tr")?u(t):l(t)};var l=function(t){var e=t.target,i=e.height(),n=e.width(),a=e.css("margin"),r=e.outerHeight(!0),o=e.attr("style")+"";e.wrap('<div class="acf-temp-remove" style="height:'+r+'px"></div>');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)},u=function(e){var i=e.target,n=i.height(),a=i.children().length,r=t('<td class="acf-temp-remove" style="padding:0; height:'+n+'px" colspan="'+a+'"></td>');i.addClass("acf-remove-element"),setTimeout(function(){i.html(r)},251),setTimeout(function(){i.removeClass("acf-remove-element"),r.css({height:e.endHeight})},300),setTimeout(function(){i.remove(),e.complete()},451)};i.duplicate=function(t){t instanceof jQuery&&(t={target:t});var e=0;(t=i.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,i){t.after(i),e=1}})).target=t.target||t.$el;var n=t.target;t.search=t.search||n.attr("data-id"),t.replace=t.replace||i.uniqid(),t.before(n),i.doAction("before_duplicate",n);var a=n.clone();return i.rename({target:a,search:t.search,replace:t.replace}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),t.after(n,a),i.doAction("after_duplicate",n,a),t.append(n,a),i.doAction("append",a),a},i.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=i.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""})).target,n=t.search||e.attr("data-id"),a=t.replace||i.uniqid("acf"),r=function(t,e){return e.replace(n,a)};if(t.destructive){var o=e.outerHTML();o=i.strReplace(n,a,o),e.replaceWith(o)}else e.attr("data-id",a),e.find('[id*="'+n+'"]').attr("id",r),e.find('[for*="'+n+'"]').attr("for",r),e.find('[name*="'+n+'"]').attr("name",r);return e},i.prepareForAjax=function(t){return t.nonce=i.get("nonce"),t.post_id=i.get("post_id"),i.has("language")&&(t.lang=i.get("language")),t=i.applyFilters("prepare_for_ajax",t)},i.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' <i class="acf-loading"></i>')},i.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},i.showLoading=function(t){t.append('<div class="acf-loading-overlay"><i class="acf-loading"></i></div>')},i.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},i.updateUserSetting=function(e,n){var a={action:"acf/ajax/user_setting",name:e,value:n};t.ajax({url:i.get("ajaxurl"),data:i.prepareForAjax(a),type:"post",dataType:"html"})},i.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))},i.show=function(t,e){return e&&i.unlock(t,"hidden",e),!i.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},i.hide=function(t,e){return e&&i.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},i.isHidden=function(t){return t.hasClass("acf-hidden")},i.isVisible=function(t){return!i.isHidden(t)};var d=function(t,e){return!t.hasClass("acf-disabled")&&(e&&i.unlock(t,"disabled",e),!i.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};i.enable=function(e,i){if(e.attr("name"))return d(e,i);var n=!1;return e.find("[name]").each(function(){var e;d(t(this),i)&&(n=!0)}),n};var f=function(t,e){return e&&i.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};i.disable=function(e,i){if(e.attr("name"))return f(e,i);var n=!1;return e.find("[name]").each(function(){var e;f(t(this),i)&&(n=!0)}),n},i.isset=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return!1;t=t[arguments[e]]}return!0},i.isget=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return null;t=t[arguments[e]]}return t},i.getFileInputData=function(t,e){var n=t.val();if(!n)return!1;var a={url:n},r=i.isget(t[0],"files",0);if(r)if(a.size=r.size,a.type=r.type,r.type.indexOf("image")>-1){var o=window.URL||window.webkitURL,s=new Image;s.onload=function(){a.width=this.width,a.height=this.height,e(a)},s.src=o.createObjectURL(r)}else e(a);else e(a)},i.isAjaxSuccess=function(t){return t&&t.success},i.getAjaxMessage=function(t){return i.isget(t,"data","message")},i.getAjaxError=function(t){return i.isget(t,"data","error")},i.renderSelect=function(t,e){var n=t.val(),a=[],r=function(t){var e="";return t.map(function(t){var n=t.text||t.label||"",o=t.id||t.value||"";a.push(o),t.children?e+='<optgroup label="'+i.strEscape(n)+'">'+r(t.children)+"</optgroup>":e+='<option value="'+o+'"'+(t.disabled?' disabled="disabled"':"")+">"+i.strEscape(n)+"</option>"}),e};return t.html(r(e)),a.indexOf(n)>-1&&t.val(n),t.val()};var h=function(t,e){return t.data("acf-lock-"+e)||[]},p=function(t,e,i){t.data("acf-lock-"+e,i)},g,m,v,y,b,w;i.lock=function(t,e,i){var n=h(t,e),a;n.indexOf(i)<0&&(n.push(i),p(t,e,n))},i.unlock=function(t,e,i){var n=h(t,e),a=n.indexOf(i);return a>-1&&(n.splice(a,1),p(t,e,n)),0===n.length},i.isLocked=function(t,e){return h(t,e).length>0},i.isGutenberg=function(){return window.wp&&wp.data&&wp.data.select&&wp.data.select("core/editor")},i.objectToArray=function(t){return Object.keys(t).map(function(e){return t[e]})},i.debounce=function(t,e){var i;return function(){var n=this,a=arguments,r=function(){t.apply(n,a)};clearTimeout(i),i=setTimeout(r,e)}},i.throttle=function(t,e){var i=!1;return function(){i||(i=!0,setTimeout(function(){i=!1},e),t.apply(this,arguments))}},i.isInView=function(t){var e=t.getBoundingClientRect();return e.top!==e.bottom&&e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},i.onceInView=(g=[],m=0,v=function(){g.forEach(function(t){i.isInView(t.el)&&(t.callback.apply(this),w(t.id))})},y=i.debounce(v,300),b=function(e,i){g.length||t(window).on("scroll resize",y).on("acfrefresh orientationchange",v),g.push({id:m++,el:e,callback:i})},w=function(e){(g=g.filter(function(t){return t.id!==e})).length||t(window).off("scroll resize",y).off("acfrefresh orientationchange",v)},function(t,e){t instanceof jQuery&&(t=t[0]),i.isInView(t)?e.apply(this):b(t,e)}),i.once=function(t){var e=0;return function(){return e++>0?t=void 0:t.apply(this,arguments)}},t.fn.exists=function(){return t(this).length>0},t.fn.outerHTML=function(){return t(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){return t.inArray(e,this)}),t(document).ready(function(){i.doAction("ready")}),t(window).on("load",function(){i.doAction("load")}),t(window).on("beforeunload",function(){i.doAction("unload")}),t(window).on("resize",function(){i.doAction("resize")}),t(document).on("sortstart",function(t,e){i.doAction("sortstart",e.item,e.placeholder)}),t(document).on("sortstop",function(t,e){i.doAction("sortstop",e.item,e.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&&c("actions",t,e,i=parseInt(i||10,10),n),d}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&u("actions",e,t),d}function n(t,e){return"string"==typeof t&&s("actions",t,e),d}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("filters",t,e,i=parseInt(i||10,10),n),d}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?u("filters",e,t):d}function o(t,e){return"string"==typeof t&&s("filters",t,e),d}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;a<r;a++){for(e=t[a],i=a;(n=t[i-1])&&n.priority>e.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function u(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<r;a++)i[0]=n[a].callback.apply(n[a].context,i);else for(;a<r;a++)n[a].callback.apply(n[a].context,i);return"filters"!==t||i[0]}var d={removeFilter:o,applyFilters:r,addFilter:a,removeAction:n,doAction:i,addAction:e,storage:t},f={actions:{},filters:{}};return d};acf.hooks=new i}(window),function(t,e){var i=/^(\S+)\s*(.*)$/,n=function(e){var i=this,n;return n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return i.apply(this,arguments)},t.extend(n,i),n.prototype=Object.create(i.prototype),t.extend(n.prototype,e),n.prototype.constructor=n,n},a=acf.Model=function(){this.cid=acf.uniqueId("acf"),this.data=t.extend(!0,{},this.data),this.setup.apply(this,arguments),this.$el&&!this.$el.data("acf")&&this.$el.data("acf",this);var e=function(){this.initialize(),this.addEvents(),this.addActions(),this.addFilters()};this.wait&&!acf.didAction(this.wait)?this.addAction(this.wait,e):e.apply(this)};t.extend(a.prototype,{id:"",cid:"",$el:null,data:{},busy:!1,changed:!1,events:{},actions:{},filters:{},eventScope:"",wait:!1,priority:10,get:function(t){return this.data[t]},has:function(t){return null!=this.get(t)},set:function(t,e,i){var n=this.get(t);return n==e?this:(this.data[t]=e,i||(this.changed=!0,this.trigger("changed:"+t,[e,n]),this.trigger("changed",[t,e,n])),this)},inherit:function(e){return e instanceof jQuery&&(e=e.data()),t.extend(this.data,e),this},prop:function(){return this.$el.prop.apply(this.$el,arguments)},setup:function(e){t.extend(this,e)},initialize:function(){},addElements:function(t){if(!(t=t||this.elements||null)||!Object.keys(t).length)return!1;for(var e in t)this.addElement(e,t[e])},addElement:function(t,e){this["$"+t]=this.$(e)},addEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var n=e.match(i);this.on(n[1],n[2],t[e])}},removeEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var n=e.match(i);this.off(n[1],n[2],t[e])}},getEventTarget:function(e,i){return e||this.$el||t(document)},validateEvent:function(e){return!this.eventScope||t(e.target).closest(this.eventScope).is(this.$el)},proxyEvent:function(e){return this.proxy(function(i){if(this.validateEvent(i)){var n=acf.arrayArgs(arguments),a=n.slice(1),r=[i,t(i.currentTarget)].concat(a);e.apply(this,r)}})},on:function(t,e,i,n){var a,r,o,s,c;t instanceof jQuery?n?(a=t,r=e,o=i,s=n):(a=t,r=e,s=i):i?(r=t,o=e,s=i):(r=t,s=e),a=this.getEventTarget(a),"string"==typeof s&&(s=this.proxyEvent(this[s])),r=r+"."+this.cid,c=o?[r,o,s]:[r,s],a.on.apply(a,c)},off:function(t,e,i){var n,a,r,o;t instanceof jQuery?i?(n=t,a=e,r=i):(n=t,a=e):e?(a=t,r=e):a=t,n=this.getEventTarget(n),a=a+"."+this.cid,o=r?[a,r]:[a],n.off.apply(n,o)},trigger:function(t,e,i){var n=this.getEventTarget();return i?n.trigger.apply(n,arguments):n.triggerHandler.apply(n,arguments),this},addActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.addAction(e,t[e])},removeActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.removeAction(e,t[e])},addAction:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addAction(t,e,i,this)},removeAction:function(t,e){acf.removeAction(t,this[e])},addFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.addFilter(e,t[e])},addFilter:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addFilter(t,e,i,this)},removeFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.removeFilter(e,t[e])},removeFilter:function(t,e){acf.removeFilter(t,this[e])},$:function(t){return this.$el.find(t)},remove:function(){this.removeEvents(),this.removeActions(),this.removeFilters(),this.$el.remove()},setTimeout:function(t,e){return setTimeout(this.proxy(t),e)},time:function(){console.time(this.id||this.cid)},timeEnd:function(){console.timeEnd(this.id||this.cid)},show:function(){acf.show(this.$el)},hide:function(){acf.hide(this.$el)},proxy:function(e){return t.proxy(e,this)}}),a.extend=n,acf.models={},acf.getInstance=function(t){return t.data("acf")},acf.getInstances=function(e){var i=[];return e.each(function(){i.push(acf.getInstance(t(this)))}),i}}(jQuery),function(t,e){acf.models.Popup=acf.Model.extend({data:{title:"",content:"",width:0,height:0,loading:!1},events:{'click [data-event="close"]':"onClickClose","click .acf-close-popup":"onClickClose"},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.open()},tmpl:function(){return['<div id="acf-popup">','<div class="acf-popup-box acf-box">','<div class="title"><h3></h3><a href="#" class="acf-icon -cancel grey" data-event="close"></a></div>','<div class="inner"></div>','<div class="loading"><i class="acf-loading"></i></div>',"</div>",'<div class="bg" data-event="close"></div>',"</div>"].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(){t("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,e){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening",validation_success:"stopListening"},events:{"change form .acf-field":"startListening","submit form":"stopListening"},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,t(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,t(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,e){var i=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,e){var i=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'<div class="acf-notice"></div>'},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("<p>"+this.get("text")+"</p>"),this.get("dismiss")&&(this.$el.append('<a href="#" class="acf-notice-dismiss acf-icon -cancel small"></a>'),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(e){t.extend(this.data,e),this.initialize(),this.removeEvents(),this.addEvents()},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 i(t)};var n=new acf.Model({wait:"prepare",priority:1,initialize:function(){var e=t(".acf-admin-notice");e.length&&t("h1:first").after(e)}})}(jQuery),function(t,e){var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){(acf.get("postboxes")||[]).map(acf.newPostbox)}});acf.getPostbox=function(e){return"string"==typeof e&&(e=t("#"+e)),acf.getInstance(e)},acf.getPostboxes=function(){return acf.getInstances(t(".acf-postbox"))},acf.newPostbox=function(t){return new acf.models.Postbox(t)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",edit:""},setup:function(e){e.editLink&&(e.edit=e.editLink),t.extend(this.data,e),this.$el=this.$postbox()},$postbox:function(){return t("#"+this.get("id"))},$hide:function(){return t("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.$el.hasClass("acf-hidden")},initialize:function(){if(this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js"),"block"!==acf.get("editor")){var t=this.get("style");"default"!==t&&this.$el.addClass(t)}this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var e=this.get("edit");e&&this.$hndle().append('<a href="'+e+'" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="'+acf.__("Edit field group")+'"></a>'),this.show()},show:function(){this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show().removeClass("acf-hidden")},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.show(),this.enable()},hide:function(){this.$hideLabel().hide(),this.$el.hide().addClass("acf-hidden")},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.hide(),this.disable()},html:function(t){this.$inside().html(t),acf.doAction("append",this.$el)}})}(jQuery),function(t,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),void 0!==t.confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):void 0!==t.confirm?new n(t):new i(t)};var i=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'<div class="acf-tooltip"></div>'},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var e=this.get("timeout");e&&setTimeout(t.proxy(this.fade,this),e)},update:function(e){t.extend(this.data,e),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){t("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 e=this.$el,i=this.get("target");if(i){e.removeClass("right left bottom top").css({top:0,left:0});var n=10,a=i.outerWidth(),r=i.outerHeight(),o=i.offset().top,s=i.offset().left,c=e.outerWidth(),l=e.outerHeight(),u=e.offset().top,d=o-l-u,f=s+a/2-c/2;f<10?(e.addClass("right"),f=s+a,d=o+r/2-l/2-u):f+c+10>t(window).width()?(e.addClass("left"),f=s-c,d=o+r/2-l/2-u):d-t(window).scrollTop()<10?(e.addClass("bottom"),d=o+r-u):e.addClass("top"),e.css({top:d,left:f})}}}),n=i.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 e=t(document),i=this.get("target");this.setTimeout(function(){this.on(e,"click","onCancel")}),this.get("targetConfirm")&&this.on(i,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var e=t(document),i=this.get("target");this.off(e,"click"),this.off(i,"click")},render:function(){var t,e,i,n=[this.get("text")||acf.__("Are you sure?"),'<a href="#" data-event="confirm">'+(this.get("textConfirm")||acf.__("Yes"))+"</a>",'<a href="#" data-event="cancel">'+(this.get("textCancel")||acf.__("No"))+"</a>"].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=i,acf.models.TooltipConfirm=n;var a=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,e){var i=[];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"),e;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(e){this.$el.addClass("acf-error"),void 0!==e&&this.showNotice({text:e,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",t.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"),i=n(e),a,r=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",r),r};var n=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getFieldType=function(t){var e=n(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var e=[];return i.map(function(i){var n=acf.getFieldType(i),a=n.prototype;t.category&&a.category!==t.category||e.push(n)}),e}}(jQuery),function(t,e){acf.findFields=function(e){var i=".acf-field",n=!1;return(e=acf.parseArgs(e,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(e=acf.applyFilters("find_fields_args",e)),e.key&&(i+='[data-key="'+e.key+'"]'),e.type&&(i+='[data-type="'+e.type+'"]'),e.name&&(i+='[data-name="'+e.name+'"]'),e.is&&(i+=e.is),e.visible&&(i+=":visible"),n=e.parent?e.parent.find(i):e.sibling?e.sibling.siblings(i):t(i),e.suppressFilters||(n=n.not(".acf-clone .acf-field"),n=acf.applyFilters("find_fields",n)),e.limit&&(n=n.slice(0,e.limit)),n},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(e){e instanceof jQuery||(e=acf.findFields(e));var i=[];return e.each(function(){var e=acf.getField(t(this));i.push(e)}),i},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var i=function(t){var e=t,i=t+"_fields",a=t+"_field",r=function(t){var e=acf.arrayArgs(arguments),n=e.slice(1),a=acf.getFields({parent:t});if(a.length){var r=[i,a].concat(n);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(i,o),n(t)},n=function(t){var e=t+"_field",i=t+"Field",n=function(n){var a=acf.arrayArgs(arguments),r=a.slice(1),s=["type","name","key"];s.map(function(t){var i="/"+t+"="+n.get(t);a=[e+i,n].concat(r),acf.doAction.apply(null,a)}),o.indexOf(t)>-1&&n.trigger(i,r)};acf.addAction(e,n)},a,r=["valid","invalid","enable","disable","new"],o=["remove","unmount","remount","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];["prepare","ready","load","append","remove","unmount","remount","sortstart","sortstop","show","hide","unload"].map(i),r.map(n);var s=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){t("#_acf_changed").val(1)}})}(jQuery),function(t,e){var i=0,n=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()
|
2 |
-
;var e=this.$el,n=this.$labelWrap(),r=this.$inputWrap(),o=this.$control(),s=r.children(".description");if(s.length&&n.append(s),this.$el.is("tr")){var c=this.$el.closest("table"),l=t('<div class="acf-accordion-title"/>'),u=t('<div class="acf-accordion-content"/>'),d=t('<table class="'+c.attr("class")+'"/>'),f=t("<tbody/>");l.append(n.html()),d.append(f),u.append(d),r.append(l),r.append(u),n.remove(),o.remove(),r.attr("colspan",2),n=l,r=u,o=f}e.addClass("acf-accordion"),n.addClass("acf-accordion-title"),r.addClass("acf-accordion-content"),i++,this.get("multi_expand")&&e.attr("multi-expand",1);var h=acf.getPreference("this.accordions")||[];void 0!==h[i-1]&&this.set("open",h[i-1]),this.get("open")&&(e.addClass("-open"),r.css("display","block")),n.prepend(a.iconHtml({open:this.get("open")}));var p=e.parent();o.addClass(p.hasClass("-left")?"-left":""),o.addClass(p.hasClass("-clear")?"-clear":""),o.append(e.nextUntil(".acf-field-accordion",".acf-field")),o.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(n);var a=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)},iconHtml:function(t){var e;return'<i class="acf-accordion-icon dashicons dashicons-'+(t.open?"arrow-down":"arrow-right")+'"></i>'},open:function(e){e.find(".acf-accordion-content:first").slideDown().css("display","block"),e.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),e.addClass("-open"),acf.doAction("show",e),e.attr("multi-expand")||e.siblings(".acf-accordion.-open").each(function(){a.close(t(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!1})),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(e){var i=[];t(".acf-accordion").each(function(){var e=t(this).hasClass("-open")?1:0;i.push(e)}),i.length&&acf.setPreference("this.accordions",i)}})}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=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 e=[];return this.$(":checked").each(function(){e.push(t(this).val())}),!!e.length&&e},onChange:function(t,e){var i=e.prop("checked"),n=this.$toggle(),a;(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='<li><input class="acf-checkbox-custom" type="checkbox" checked="checked" /><input type="text" name="'+this.getInputName()+'[]" /></li>';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),n;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(i)}(jQuery),function(t,e){var i=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"]')},setValue:function(t){acf.val(this.$input(),t),this.$inputText().iris("color",t)},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(i)}(jQuery),function(t,e){var i=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")},n=(i=acf.applyFilters("date_picker_args",i,this)).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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("datePickerL10n");return!!n&&(void 0!==t.datepicker&&(n.isRTL=i,t.datepicker.regional[e]=n,void t.datepicker.setDefaults(n)))}});acf.newDatePicker=function(e,i){if(void 0===t.datepicker)return!1;i=i||{},e.datepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){var i=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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("dateTimePickerL10n");return!!n&&(void 0!==t.timepicker&&(n.isRTL=i,t.timepicker.regional[e]=n,void t.timepicker.setDefaults(n)))}});acf.newDateTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.datetimepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){function i(e){if(r)return e();if(acf.isset(window,"google","maps","Geocoder"))return r=new google.maps.Geocoder,e();if(acf.addAction("google_map_api_loaded",e),!a){var i=acf.get("google_map_api");i&&(a=!0,t.ajax({url:i,dataType:"script",cache:!0,success:function(){r=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}}))}}var n=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 e={lat:"",lng:"",address:""};return this.$('input[type="hidden"]').each(function(){e[t(this).data("name")]=t(this).val()}),e.lat&&e.lng||(e=!1),e},setValue:function(t){for(var e in t=acf.parseArgs(t,{lat:"",lng:"",address:""}))acf.val(this.$input(e),t[e]);t.lat&&t.lng||(t=!1),this.renderVal(t);var i=this.newLatLng(t.lat,t.lng);acf.doAction("google_map_change",i,this.map,this)},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),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(){i(this.initializeMap.bind(this))},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),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),s=!1;if(acf.isset(google,"maps","places","Autocomplete")){var c=n.autocomplete||{};c=acf.applyFilters("google_map_autocomplete_args",c,this),(s=new google.maps.places.Autocomplete(this.$search()[0],c)).bindTo("bounds",a)}this.addMapEvents(this,a,o,s),a.acf=this,a.marker=o,a.autocomplete=s,this.map=a,acf.doAction("google_map_init",a,o,this);var l=this.getValue();this.renderVal(l)},addMapEvents:function(t,e,i,n){google.maps.event.addListener(e,"click",function(e){var i=e.latLng.lat(),n=e.latLng.lng();t.searchPosition(i,n)}),google.maps.event.addListener(i,"dragend",function(){var e=this.getPosition(),i=e.lat(),n=e.lng();t.searchPosition(i,n)}),n&&google.maps.event.addListener(n,"place_changed",function(){var e=this.getPlace();e.address=t.getSearchVal(),t.setPlace(e)})},searchPosition:function(e,i){var n=this.newLatLng(e,i),a=this.$control();this.setPosition(e,i),a.addClass("-loading");var o=t.proxy(function(t,n){a.removeClass("-loading");var r="";n!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+n):t[0]?r=t[0].formatted_address:console.log("No results found"),this.val({lat:e,lng:i,address:r})},this);r.geocode({latLng:n},o)},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(e){var i=e.split(",");if(2==i.length){var n=i[0],a=i[1];if(t.isNumeric(n)&&t.isNumeric(a))return this.searchPosition(n,a)}var o=this.$control();o.addClass("-loading");var s=this.proxy(function(t,i){o.removeClass("-loading");var n="",a="";i!=google.maps.GeocoderStatus.OK?console.log("Geocoder failed due to: "+i):t[0]?(n=t[0].geometry.location.lat(),a=t[0].geometry.location.lng()):console.log("No results found"),this.val({lat:n,lng:a,address:e})});r.geocode({address:e},s)},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));var e=this.$control();e.addClass("-loading");var i=t.proxy(function(t,i){e.removeClass("-loading");var n=t.coords.latitude,a=t.coords.longitude;this.searchPosition(n,a)},this),n=function(t){e.removeClass("-loading")};navigator.geolocation.getCurrentPosition(i,n)},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(n);var a=!1,r=!1}(jQuery),function(t,e){var i=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){void 0!==(t=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;n<i.length;n++)if(!i[n].val())return i[n];return!1},n=i(this,e);n||(e.$(".acf-button:last").trigger("click"),n=i(this,e)),n&&n.render(t)},selectAttachment:function(){var e=this.parent(),i=e&&"repeater"===e.get("type"),n=acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:t.proxy(function(t,i){i>0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(e)var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:e,field:this.get("key"),select:t.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(e,i){var n=this.$input();acf.getFileInputData(i,function(e){n.val(t.param(e))})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return void 0!==(t=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 e=this.parent(),i=e&&"repeater"===e.get("type"),n=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:t.proxy(function(t,i){i>0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(!e)return!1;var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:e,field:this.get("key"),select:t.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:acf.decode(t.html()),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.text(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:t("#wp-link-text").val(),url:t("#wp-link-url").val(),target:t("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(e){t("#wp-link-text").val(e.title),t("#wp-link-url").val(e.url),t("#wp-link-target").prop("checked","_blank"===e.target)},open:function(e){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",e);var i=t('<textarea id="acf-link-textarea" style="display:none;"></textarea>');t("body").append(i);var n=this.getNodeValue();wpLink.open("acf-link-textarea",n.url,n.title,null)},onOpen:function(){t("#wp-link-wrap").addClass("has-text-field");var e=this.getNodeValue();this.setInputValue(e)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var e=this.getInputValue();this.setNodeValue(e),t("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(t,e){var i=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 e=this.val(),i=this.getSearchVal();if(!i)return this.clear();if("http"!=i.substr(0,4)&&(i="http://"+i),i!==e){var n=this.get("timeout");n&&clearTimeout(n);var a=t.proxy(this.search,this,i);this.set("timeout",setTimeout(a,300))}},search:function(e){var i={action:"acf/fields/oembed/search",s:e,field_key:this.get("key")},n;(n=this.get("xhr"))&&n.abort(),this.showLoading();var n=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),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",n)},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(i)}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=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(),this.$input().val(),!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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"},$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 e=[];return this.$listItems("values").each(function(){e.push(t(this).data("id"))}),!!e.length&&e},newChoice:function(t){return["<li>",'<span data-id="'+t.id+'" class="acf-rel-item">'+t.text+"</span>","</li>"].join("")},newValue:function(t){return["<li>",'<input type="hidden" name="'+this.getInputName()+'[]" value="'+t.id+'" />','<span data-id="'+t.id+'" class="acf-rel-item">'+t.text,'<a href="#" class="acf-icon -minus small dark" data-name="remove_item"></a>',"</span>","</li>"].join("")},initialize:function(){var t=this.proxy(acf.once(function(){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:this.proxy(function(){this.$input().trigger("change")})}),this.$list("choices").scrollTop(0).on("scroll",this.proxy(this.onScrollChoices)),this.fetch()}));this.$el.one("mouseover",t),this.$el.one("focus","input",t),acf.onceInView(this.$el,t)},onScrollChoices: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())}},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){t.preventDefault();var i=e.parent(),n=i.parent(),a=i.data("id");n.remove(),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=acf.applyFilters("relationship_ajax_data",t,this)},fetch:function(){var e;(e=this.get("xhr"))&&e.abort();var i=this.getAjaxData(),n=this.$list("choices");1==i.paged&&n.html("");var a=t('<li><i class="acf-loading"></i> '+acf.__("Loading")+"</li>");n.append(a),this.set("loading",!0);var r=function(){this.set("loading",!1),a.remove()},o=function(e){if(!e||!e.results||!e.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("<li>"+acf.__("No matches found")+"</li>"));this.set("more",e.more);var i=this.walkChoices(e.results),a=t(i),r=this.val();r&&r.length&&r.map(function(t){a.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),n.append(a);var o=!1,s=!1;n.find(".acf-rel-label").each(function(){var e=t(this),i=e.siblings("ul");if(o&&o.text()==e.text())return s.append(i.children()),void t(this).parent().remove();o=e,s=i})},e=t.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(i),context:this,success:o,complete:r});this.set("xhr",e)},walkChoices:function(e){var i=function(e){var n="";return t.isArray(e)?e.map(function(t){n+=i(t)}):t.isPlainObject(e)&&(void 0!==e.children?(n+='<li><span class="acf-rel-label">'+e.text+'</span><ul class="acf-bl">',n+=i(e.children),n+="</ul></li>"):n+='<li><span class="acf-rel-item" data-id="'+e.id+'">'+e.text+"</span></li>"),n};return i(e)}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i="tab",n=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 r(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(n);var a=0,r=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(e){t.extend(this.data,e),this.tabs=[],this.active=!1;var i=this.get("placement"),n=this.get("before"),r=n.parent();"left"==i&&r.hasClass("acf-fields")&&r.addClass("-sidebar"),n.is("tr")?this.$el=t('<tr class="acf-tab-wrap"><td colspan="2"><ul class="acf-hl acf-tab-group"></ul></td></tr>'):this.$el=t('<div class="acf-tab-wrap -'+i+'"><ul class="acf-hl acf-tab-group"></ul></div>'),n.before(this.$el),this.set("index",a,!0),a++},initializeTabs:function(){var t=this.getVisible().shift(),e,i,n=(acf.getPreference("this.tabs")||[])[this.get("index")];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(e,i){var n=t("<li></li>");n.append(e),this.$("ul").append(n);var a=new o({$el:n,field:i,group:this});return this.tabs.push(a),a},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)}}}),o=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)}}),s=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return t(".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,e){var i=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(){
|
3 |
-
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(e,i){var n=this,a=!1,r=!1,o=!1,s=!1,c=!1,l=!1,u=!1,d=function(){a=acf.newPopup({title:i.attr("title"),loading:!0,width:"300px"});var e={action:"acf/fields/taxonomy/add_term",field_key:n.get("key")};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:f})},f=function(t){a.loading(!1),a.content(t),r=a.$("form"),o=a.$('input[name="term_name"]'),s=a.$('select[name="term_parent"]'),c=a.$(".acf-submit-button"),o.focus(),a.on("submit","form",h)},h=function(e,i){if(e.preventDefault(),e.stopImmediatePropagation(),""===o.val())return o.focus(),!1;acf.startButtonLoading(c);var a={action:"acf/fields/taxonomy/add_term",field_key:n.get("key"),term_name:o.val(),term_parent:s.length?s.val():0};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},p=function(t){acf.stopButtonLoading(c),u&&u.remove(),acf.isAjaxSuccess(t)?(o.val(""),g(t.data),u=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:r,timeout:2e3,dismiss:!1})):u=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:r,timeout:2e3,dismiss:!1}),o.focus()},g=function(e){var i=t('<option value="'+e.term_id+'">'+e.term_label+"</option>"),a;e.term_parent?s.children('option[value="'+e.term_parent+'"]').after(i):s.append(i),acf.getFields({type:"taxonomy"}).map(function(t){t.get("taxonomy")==n.get("taxonomy")&&t.appendTerm(e)}),n.selectTerm(e.term_id)};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(e){var i=this.$("[name]:first").attr("name"),n=this.$("ul:first");"checkbox"==this.getRelatedType()&&(i+="[]");var a=t(['<li data-id="'+e.term_id+'">',"<label>",'<input type="'+this.get("ftype")+'" value="'+e.term_id+'" name="'+i+'" /> ',"<span>"+e.term_name+"</span>","</label>","</li>"].join(""));if(e.term_parent){var r=n.find('li[data-id="'+e.term_parent+'"]');(n=r.children("ul")).exists()||(n=t('<ul class="children acf-bl"></ul>'),r.append(n))}n.append(a)},selectTerm:function(t){var e;"select"==this.getRelatedType()?this.select2.selectOption(t):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(i)}(jQuery),function(t,e){var i=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,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(i),acf.newTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.timepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",unmountField:"disableEditor",remountField:"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-"),r=e.data();acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i),this.$input().data(r)},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(i)}(jQuery),function(t,e){var i=[];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(e){t.extend(this.data,e)},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'<input type="text" />'}}),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,s,c,l;return new(acf.getConditionTypes({fieldType:r,operator:o})[0]||acf.Condition)(a)};var n=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getConditionType=function(t){var e=n(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 e=[];return i.map(function(i){var n=acf.getConditionType(i),a=n.prototype.fieldTypes,r=n.prototype.operator;t.fieldType&&-1===a.indexOf(t.fieldType)||t.operator&&r!==t.operator||e.push(n)}),e}}(jQuery),function(t,e){var i="conditional_logic",n=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),a=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=a(this,t);if(e)return e;for(var i=this.parents(),n=0;n<i.length;n++)if(e=a(i[n],t))return e;return!1},acf.Field.prototype.getConditions=function(){return this.conditions||(this.conditions=new o(this)),this.conditions};var r=!1,o=acf.Model.extend({id:"Conditions",data:{field:!1,timeStamp:!1,groups:[]},setup:function(t){this.data.field=t;var e=t.get("conditions");e instanceof Array?e[0]instanceof Array?e.map(function(t,e){this.addRules(t,e)},this):this.addRules(e):this.addRule(e)},change:function(t){if(this.get("timeStamp")===t.timeStamp)return!1;this.set("timeStamp",t.timeStamp,!0);var e=this.render()},render:function(){return this.calculate()?this.show():this.hide()},show:function(){return this.get("field").showEnable(this.cid,i)},hide:function(){return this.get("field").hideDisable(this.cid,i)},calculate:function(){var t=!1;return this.getGroups().map(function(e){var i;t||e.filter(function(t){return t.calculate()}).length==e.length&&(t=!0)}),t},hasGroups:function(){return null!=this.data.groups},getGroups:function(){return this.data.groups},addGroup:function(){var t=[];return this.data.groups.push(t),t},hasGroup:function(t){return null!=this.data.groups[t]},getGroup:function(t){return this.data.groups[t]},removeGroup:function(t){return this.data.groups[t].delete,this},addRules:function(t,e){t.map(function(t){this.addRule(t,e)},this)},addRule:function(t,e){var i;e=e||0,i=this.hasGroup(e)?this.getGroup(e):this.addGroup();var n=acf.newCondition(t,this);if(!n)return!1;i.push(n)},hasRule:function(){},getRule:function(t,e){return t=t||0,e=e||0,this.data.groups[e][t]},removeRule:function(){}})}(jQuery),function(t,e){var i=acf.__,n=function(t){return t?""+t:""},a=function(t,e){return n(t).toLowerCase()===n(e).toLowerCase()},r=function(t,e){return parseFloat(t)===parseFloat(e)},o=function(t,e){return parseFloat(t)>parseFloat(e)},s=function(t,e){return parseFloat(t)<parseFloat(e)},c=function(t,e){return(e=e.map(function(t){return n(t)})).indexOf(t)>-1},l=function(t,e){return n(t).indexOf(n(e))>-1},u=function(t,e){var i=new RegExp(n(e),"gi");return n(t).match(i)},d=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:i("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'<input type="text" disabled="" />'}});acf.registerConditionType(d);var f=d.extend({type:"hasNoValue",operator:"==empty",label:i("Has no value"),match:function(t,e){return!d.prototype.match.apply(this,arguments)}});acf.registerConditionType(f);var h=acf.Condition.extend({type:"equalTo",operator:"==",label:i("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(e,i){return t.isNumeric(e.value)?r(e.value,i.val()):a(e.value,i.val())},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(h);var p=h.extend({type:"notEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!h.prototype.match.apply(this,arguments)}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:i("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return u(e.val(),t.value)},choices:function(t){return'<input type="text" placeholder="[a-z0-9]" />'}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:i("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(v);var y=p.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:i("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?c(t.value,i):a(t.value,i)},choices:function(e){var n=[],a=e.$setting("choices textarea").val().split("\n");return e.$input("allow_null").prop("checked")&&n.push({id:"",text:i("Null")}),a.map(function(e){(e=e.split(":"))[1]=e[1]||e[0],n.push({id:t.trim(e[0]),text:t.trim(e[1])})}),n}});acf.registerConditionType(b);var w=b.extend({type:"selectNotEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(w);var x=acf.Condition.extend({type:"greaterThan",operator:">",label:i("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(x);var _=x.extend({type:"lessThan",operator:"<",label:i("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),s(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(_);var $=x.extend({type:"selectionGreaterThan",label:i("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=_.extend({type:"selectionLessThan",label:i("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(t,e){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 i=function(){var e=acf.get("post_id");return t.isNumeric(e)?e: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 n=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(e){t.extend(this.data,e)},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=i()),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=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),n.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])}),n.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(e){var i=e.get("filters"),n;("image"==this.get("type")&&(i.filters.all.text=acf.__("All images"),delete i.filters.audio,delete i.filters.video,delete i.filters.image,t.each(i.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 e=acf.getMimeType(t);if(e){var n={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};i.filters[e]=n}});if("uploadedTo"===this.get("library")){var a=this.frame.options.library.uploadedTo;delete i.filters.unattached,delete i.filters.uploaded,t.each(i.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=a})}var r=this.get("field"),o;t.each(i.filters,function(t,e){e.props._acfuploader=r}),e.get("search").model.attributes._acfuploader=r,i.renderFilters&&i.renderFilters()}}),acf.models.EditMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),n.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,i=this.state().get("selection"),n=wp.media.attachment(t.acf.get("attachment"));i.add(n)},t),n.prototype.addFrameEvents.apply(this,arguments)}});var a=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=i();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsButton(),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsButton:function(){if(acf.isset(wp,"media","view","Button")){var t=wp.media.view.Button;wp.media.view.Button=t.extend({initialize:function(){var t=_.defaults(this.options,this.defaults);this.model=new Backbone.Model(t),this.listenTo(this.model,"change",this.render)}})}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var e=wp.media.view.Router;wp.media.view.Router=e.extend({addExpand:function(){var e=t(['<a href="#" class="acf-expand-details">','<span class="is-closed"><span class="acf-icon -left small grey"></span>'+acf.__("Expand Details")+"</span>",'<span class="is-open"><span class="acf-icon -right small grey"></span>'+acf.__("Collapse Details")+"</span>","</a>"].join(""));e.on("click",function(e){e.preventDefault();var i=t(this).closest(".media-modal");i.hasClass("acf-expanded")?i.removeClass("acf-expanded"):i.addClass("acf-expanded")}),this.$el.append(e)},initialize:function(){return e.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var e;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(e,i){return{el:t("<option></option>").val(i).html(e.text)[0],priority:e.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var e=wp.media.view.AttachmentCompat,i=!1;wp.media.view.AttachmentCompat=e.extend({render:function(){return this.rendered?this:(e.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(i),i=setTimeout(t.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50),this):this)},save:function(t){var e={};t&&t.preventDefault(),e=acf.serializeForAjax(this.$el),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(e).always(_.bind(this.postSave,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(['<div class="acf-selection-error">','<span class="selection-error-label">'+acf.__("Restricted")+"</span>",'<span class="selection-error-filename">'+l+"</span>",'<span class="selection-error-message">'+s+"</span>","</div>"].join("")),n.reset(),void n.single(a)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(t,e){acf.screen=new acf.Model({active:!0,xhr:!1,timeout:!1,wait:"load",events:{"change #page_template":"onChange","change #parent_id":"onChange","change #post-formats-select":"onChange","change .categorychecklist":"onChange","change .tagsdiv":"onChange",'change .acf-taxonomy-field[data-save="1"]':"onChange","change #product-type":"onChange"},isPost:function(){return"post"===acf.get("screen")},isUser:function(){return"user"===acf.get("screen")},isTaxonomy:function(){return"taxonomy"===acf.get("screen")},isAttachment:function(){return"attachment"===acf.get("screen")},isNavMenu:function(){return"nav_menu"===acf.get("screen")},isWidget:function(){return"widget"===acf.get("screen")},isComment:function(){return"comment"===acf.get("screen")},getPageTemplate:function(){var e=t("#page_template");return e.length?e.val():null},getPageParent:function(e,i){var i;return(i=t("#parent_id")).length?i.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return t("#post_type").val()},getPostFormat:function(e,i){var i;if((i=t("#post-formats-select input:checked")).length){var n=i.val();return"0"==n?"standard":n}return null},getPostCoreTerms:function(){var e={},i=acf.serialize(t(".categorydiv, .tagsdiv"));for(var n in i.tax_input&&(e=i.tax_input),i.post_category&&(e.category=i.post_category),e)acf.isArray(e[n])||(e[n]=e[n].split(/,[\s]?/));return e},getPostTerms:function(){var t=this.getPostCoreTerms();for(var e in acf.getFields({type:"taxonomy"}).map(function(e){if(e.get("save")){var i=e.val(),n=e.get("taxonomy");i&&(t[n]=t[n]||[],i=acf.isArray(i)?i:[i],t[n]=t[n].concat(i))}}),null!==(productType=this.getProductType())&&(t.product_type=[productType]),t)t[e]=acf.uniqueArray(t[e]);return t},getProductType:function(){var e=t("#product-type");return e.length?e.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var e=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]});this.isPost()&&(e.post_id=acf.get("post_id")),null!==(postType=this.getPostType())&&(e.post_type=postType),null!==(pageTemplate=this.getPageTemplate())&&(e.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(e.page_parent=pageParent),null!==(pageType=this.getPageType())&&(e.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(e.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(e.post_terms=postTerms),acf.getPostboxes().map(function(t){e.exists.push(t.get("key"))}),e=acf.applyFilters("check_screen_args",e);var i=function(t){acf.isAjaxSuccess(t)&&("post"==acf.get("screen")?this.renderPostScreen(t.data):"user"==acf.get("screen")&&this.renderUserScreen(t.data)),acf.doAction("check_screen_complete",t.data,e)};this.xhr=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:i})}},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(e){var i=[],n=function(e,i){var n=t._data(e[0]).events;for(var a in n)for(var r=0;r<n[a].length;r++)i.on(a,n[a][r].handler)},a=function(e,i){var n=i.indexOf(e);if(-1==n)return!1;for(var a=n-1;a>=0;a--)if(t("#"+i[a]).length)return t("#"+i[a]).after(t("#"+e));for(var a=n+1;a<i.length;a++)if(t("#"+i[a]).length)return t("#"+i[a]).before(t("#"+e));return!1};e.results.map(function(r,o){var s=acf.getPostbox(r.id);if(!s){var c=t(['<div id="'+r.id+'" class="postbox">','<button type="button" class="handlediv" aria-expanded="false">','<span class="screen-reader-text">Toggle panel: '+r.title+"</span>",'<span class="toggle-indicator" aria-hidden="true"></span>',"</button>",'<h2 class="hndle ui-sortable-handle">',"<span>"+r.title+"</span>","</h2>",'<div class="inside">',r.html,"</div>","</div>"].join(""));if(t("#adv-settings").length){var l=t("#adv-settings .metabox-prefs"),u=t(['<label for="'+r.id+'-hide">','<input class="hide-postbox-tog" name="'+r.id+'-hide" type="checkbox" id="'+r.id+'-hide" value="'+r.id+'" checked="checked">'," "+r.title,"</label>"].join(""));n(l.find("input").first(),u.find("input")),l.append(u)}n(t(".postbox .handlediv").first(),c.children(".handlediv")),n(t(".postbox .hndle").first(),c.children(".hndle")),"acf_after_title"==r.position&&(r.position="normal"),"side"===r.position?t("#"+r.position+"-sortables").append(c):t("#"+r.position+"-sortables").prepend(c);var d=[];if(e.results.map(function(e){r.position===e.position&&t("#"+r.position+"-sortables #"+e.id).length&&d.push(e.id)}),a(r.id,d),e.sorted)for(var f in e.sorted){var d=e.sorted[f].split(",");if(a(r.id,d))break}s=acf.newPostbox(r),acf.doAction("append",c),acf.doAction("append_postbox",s)}s.showEnable(),acf.doAction("show_postbox",s),i.push(r.id)}),acf.getPostboxes().map(function(t){-1===i.indexOf(t.get("id"))&&(t.hideDisable(),acf.doAction("hide_postbox",t))}),t("#acf-style").html(e.style)},renderUserScreen:function(t){}});var i=new acf.Model({wait:"load",initialize:function(){acf.isGutenberg()&&(wp.data.subscribe(this.proxy(this.onChange)),acf.screen.getPageTemplate=this.getPageTemplate,acf.screen.getPageParent=this.getPageParent,acf.screen.getPostType=this.getPostType,acf.screen.getPostFormat=this.getPostFormat,acf.screen.getPostCoreTerms=this.getPostCoreTerms,acf.unload.disable())},onChange:function(){var t=wp.data.select("core/editor").getPostEdits(),e=["template","parent","format"],i;(wp.data.select("core").getTaxonomies()||[]).map(function(t){e.push(t.rest_base)}),(e=e.filter(this.proxy(function(e){return void 0!==t[e]&&t[e]!==this.get(e)}))).length&&this.triggerChange(t)},triggerChange:function(t){void 0!==t&&(this.data=t),acf.screen.check()},getPageTemplate:function(){return wp.data.select("core/editor").getEditedPostAttribute("template")},getPageParent:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("parent")},getPostType:function(){return wp.data.select("core/editor").getEditedPostAttribute("type")},getPostFormat:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("format")},getPostCoreTerms:function(){var t={},e;return(wp.data.select("core").getTaxonomies()||[]).map(function(e){var i=wp.data.select("core/editor").getEditedPostAttribute(e.rest_base);i&&(t[e.slug]=i)}),t}});acf.screen.refreshAvailableMetaBoxesPerLocation=function(){var t=wp.data.select("core/edit-post"),e=wp.data.dispatch("core/edit-post"),i={};t.getActiveMetaBoxLocations().map(function(e){i[e]=t.getMetaBoxesPerLocation(e)});var n=[];for(var a in i)n=n.concat(i[a].map(function(t){return t.id}));acf.getPostboxes().map(function(t){if(-1===n.indexOf(t.get("id"))){var e=t.$el.closest("form").attr("class").replace("metabox-location-","");i[e]=i[e]||[],i[e].push({id:t.get("id"),title:t.get("title")})}}),e.setAvailableMetaBoxesPerLocation(i)}}(jQuery),function(t,e){function i(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,e){if(e=acf.parseArgs(e,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==i())var n=new a(t,e);else var n=new r(t,e);return acf.doAction("new_select2",n),n};var n=acf.Model.extend({setup:function(e,i){t.extend(this.data,i),this.$el=e},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(e){e=acf.parseArgs(e,{id:"",text:"",selected:!1});var i=this.getOption(e.id);return i.length||((i=t("<option></option>")).html(e.text),i.attr("value",e.id),i.prop("selected",e.selected),this.$el.append(i)),i},getValue:function(){var e=[],i=this.$el.find("option:selected");return i.exists()?((i=i.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var i=t(this);e.push({$el:i,id:i.attr("value"),text:i.text()})}),e):e},mergeOptions:function(){},getChoices:function(){var e=function(i){var n=[];return i.children().each(function(){var i=t(this);i.is("optgroup")?n.push({text:i.attr("label"),children:e(i)}):n.push({id:i.attr("value"),text:i.text()})}),n};return e(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})).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(e,i){var e;return(e=this.getAjaxResults(e,i)).more&&(e.pagination={more:!0}),setTimeout(t.proxy(this.mergeOptions,this),1),e},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),a=n.extend({initialize:function(){var e=this.$el,i={width:"100%",allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};i.multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)}),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(i.ajax={
|
4 |
-
url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),processResults:t.proxy(this.processAjaxResults,this)});var n=this.get("field");i=acf.applyFilters("select2_args",i,e,this.data,n||!1,this),e.select2(i);var a=e.next(".select2-container");if(i.multiple){var r=a.find("ul");r.sortable({stop:function(i){r.find(".select2-selection__choice").each(function(){var i;t(t(this).data("data").element).detach().appendTo(e)}),e.trigger("change")}}),e.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}a.addClass("-acf"),acf.doAction("select2_init",e,i,this.data,n||!1,this)},mergeOptions:function(){var e=!1,i=!1;t('.select2-results__option[role="group"]').each(function(){var n=t(this).children("ul"),a=t(this).children("strong");if(i&&i.text()===a.text())return e.append(n.children()),void t(this).remove();e=n,i=a})}}),r=n.extend({initialize:function(){var e=this.$el,i=this.getValue(),n=this.get("multiple"),a={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,e){e(n?i:i.shift())}},r=e.siblings("input");r.length||(r=t('<input type="hidden" />'),e.before(r)),inputValue=i.map(function(t){return t.id}).join("||"),r.val(inputValue),a.multiple&&i.map(function(t){t.$el.detach().appendTo(e)}),a.allowClear&&(a.data=a.data.filter(function(t){return""!==t.id})),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(a.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),results:t.proxy(this.processAjaxResults,this)});var o=this.get("field");a=acf.applyFilters("select2_args",a,e,this.data,o||!1,this),r.select2(a);var s=r.select2("container"),c=t.proxy(this.getOption,this);if(a.multiple){var l=s.find("ul");l.sortable({stop:function(){l.find(".select2-search-choice").each(function(){var i=t(this).data("select2Data"),n;c(i.id).detach().appendTo(e)}),e.trigger("change")}})}r.on("select2-selecting",function(i){var n=i.choice,a=c(n.id);a.length||(a=t('<option value="'+n.id+'">'+n.text+"</option>")),a.detach().appendTo(e)}),s.addClass("-acf"),acf.doAction("select2_init",e,a,this.data,o||!1,this),r.on("change",function(){var t=r.val();t.indexOf("||")&&(t=t.split("||")),e.val(t).trigger("change")}),e.hide()},mergeOptions:function(){var e=!1,i=!1;t("#select2-drop .select2-result-with-children").each(function(){var n=t(this).children("ul"),a=t(this).children(".select2-result-label");if(i&&i.text()===a.text())return i.append(n.children()),void t(this).remove();e=n,i=a})},getAjaxData:function(t,e){var i={term:t,page:e};return n.prototype.getAjaxData.apply(this,[i])}}),o=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),n=acf.get("select2L10n"),a=i();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 e=acf.get("select2L10n"),i=acf.get("locale");i=i.replace("_","-");var n={formatMatches:function(t){return t>1?e.matches_n.replace("%d",t):e.matches_1},formatNoMatches:function(){return e.matches_0},formatAjaxError:function(){return e.load_fail},formatInputTooShort:function(t,i){var n=i-t.length;return n>1?e.input_too_short_n.replace("%d",n):e.input_too_short_1},formatInputTooLong:function(t,i){var n=t.length-i;return n>1?e.input_too_long_n.replace("%d",n):e.input_too_long_1},formatSelectionTooBig:function(t){return t>1?e.selection_too_long_n.replace("%d",t):e.selection_too_long_1},formatLoadMore:function(){return e.load_more},formatSearching:function(){return e.searching}};t.fn.select2.locales=t.fn.select2.locales||{},t.fn.select2.locales[i]=n,t.extend(t.fn.select2.defaults,n)}})}(jQuery),function(t,e){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content};var t},initialize:function(t,e){(e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1})).tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(e,i){var n=t("#"+e),a=this.defaults(),r=acf.get("toolbars"),o=i.field||!1,s=o.$el||!1;if("undefined"==typeof tinymce)return!1;if(!a)return!1;if(tinymce.get(e))return this.enable(e);var c=t.extend({},a.tinymce,i.tinymce);c.id=e,c.selector="#"+e;var l=i.toolbar;if(l&&r&&r[l])for(var u=1;u<=4;u++)c["toolbar"+u]=r[l][u]||"";if(c.setup=function(t){t.on("change",function(e){t.save(),n.trigger("change")}),t.on("mouseup",function(t){var e=new MouseEvent("mouseup");window.dispatchEvent(e)})},c.wp_autoresize_on=!1,c.tadv_noautop||(c.wpautop=!0),c=acf.applyFilters("wysiwyg_tinymce_settings",c,e,o),tinyMCEPreInit.mceInit[e]=c,"visual"==i.mode){var d=tinymce.init(c),f=tinymce.get(e);if(!f)return!1;f.acf=i.field,acf.doAction("wysiwyg_tinymce_init",f,f.id,c,o)}},initializeQuicktags:function(e,i){var n=this.defaults();if("undefined"==typeof quicktags)return!1;if(!n)return!1;var a=t.extend({},n.quicktags,i.quicktags);a.id=e;var r=i.field||!1,o=r.$el||!1;a=acf.applyFilters("wysiwyg_quicktags_settings",a,a.id,r),tinyMCEPreInit.qtInit[e]=a;var s=quicktags(a);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,a,r)},buildQuicktags:function(t){var e,i,n,a,r,t,o,s,c,l,u=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(s in e=t.canvas,i=t.name,n=t.settings,r="",a={},c="",l=t.id,n.buttons&&(c=","+n.buttons+","),edButtons)edButtons[s]&&(o=edButtons[s].id,c&&-1!==u.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 i=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var e=t("#acf-hidden-wp-editor");e.exists()&&e.appendTo("body")},onReady:function(){acf.isset(window,"wp","oldEditor")&&(wp.editor.autop=wp.oldEditor.autop,wp.editor.removep=wp.oldEditor.removep),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,e){var i=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.data.errors.push(t)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},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(){if(this.hasErrors()){var e=this.getFieldErrors(),i=this.getGlobalErrors(),n=0,a=!1;e.map(function(t){var e=this.$('[name="'+t.input+'"]').first();if(e.length||(e=this.$('[name^="'+t.input+'"]').first()),e.length){n++;var i=acf.getClosestField(e);i.showError(t.message),a||(a=i.$el)}},this);var r=acf.__("Validation failed");if(i.map(function(t){r+=". "+t.message}),1==n?r+=". "+acf.__("1 field requires attention"):n>1&&(r+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:r});else{var o=acf.newNotice({type:"error",text:r,target:this.$el});this.set("notice",o)}a||(a=this.get("notice").$el),setTimeout(function(){t("html, body").animate({scrollTop:a.offset().top-t(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(e){if(e=acf.parseArgs(e,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(e.event){var i=t.Event(null,e.event);e.success=function(){acf.enableSubmit(t(i.target)).trigger(i)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),e.loading(this.$el,this),this.set("status","validating");var n=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el,this);e.valid||this.addErrors(e.errors)}},a=function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el,this),this.showErrors(),e.failure(this.$el,this)):(this.set("status","valid"),this.has("notice")&&this.get("notice").update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",this.$el,this),acf.doAction("submit",this.$el),e.success(this.$el,this),acf.lockForm(this.$el),e.reset&&this.reset()),e.complete(this.$el,this),this.clearErrors()},r=acf.serialize(this.$el);return r.action="acf/validate_save_post",t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"json",context:this,success:n,complete:a}),!1},setup:function(t){this.$el=t},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),n=function(t){var e=t.data("acf");return e||(e=new i(t)),e};acf.validateForm=function(t){return n(t.form).validate(t)},acf.enableSubmit=function(t){return t.removeClass("disabled")},acf.disableSubmit=function(t){return t.addClass("disabled")},acf.showSpinner=function(t){return t.addClass("is-active"),t.css("display","inline-block"),t},acf.hideSpinner=function(t){return t.removeClass("is-active"),t.css("display","none"),t},acf.lockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.hideSpinner(n),acf.disableSubmit(i),acf.showSpinner(n.last()),t},acf.unlockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(n),t};var a=function(t){var e,e,e,e;return(e=t.find("#submitdiv")).length?e:(e=t.find("#submitpost")).length?e:(e=t.find("p.submit").last()).length?e:(e=t.find(".acf-form-submit")).length?e:t};acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","submit form#post":"onSubmitPost","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(t){n(t).reset()},addInputEvents:function(e){if("safari"!==acf.get("browser")){var i=t(".acf-field [name]",e);i.length&&this.on(i,"invalid","onInvalid")}},onInvalid:function(t,e){t.preventDefault();var i=e.closest("form");i.length&&(n(i).addError({input:e.attr("name"),message:t.target.validationMessage}),i.submit())},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.set("ignore",!0)},onClickSubmitGutenberg:function(e,i){var n;acf.validateForm({form:t("#editor"),event:e,reset:!0,failure:function(t,e){var i=e.get("notice").$el;i.appendTo(".components-notice-list"),i.find(".acf-notice-dismiss").removeClass("small")}})||(e.preventDefault(),e.stopImmediatePropagation())},onSubmitPost:function(e,i){"dopreview"===t("input#wp-preview").val()&&(this.set("ignore",!0),acf.unlockForm(i))},onSubmit:function(t,e){if(!this.active||this.get("ignore")||t.isDefaultPrevented())return this.allowSubmit();var i;acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault()},allowSubmit:function(){return this.set("ignore",!1),this.set("originalEvent",!1),!0}})}(jQuery),function(t,e){var i=new acf.Model({priority:90,initialize:function(){this.refresh=acf.debounce(this.refresh,0)},actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh",unmount_field:"refresh",remount_field:"refresh"},refresh:function(){acf.doAction("refresh"),t(window).trigger("acfrefresh")}}),n=new acf.Model({priority:1,actions:{sortstart:"onSortstart",sortstop:"onSortstop"},onSortstart:function(t){acf.doAction("unmount",t)},onSortstop:function(t){acf.doAction("remount",t)}}),a=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(e,i){e.is("tr")&&(i.html('<td style="padding:0;" colspan="'+i.children().length+'"></td>'),e.addClass("acf-sortable-tr-helper"),e.children().each(function(){t(this).width(t(this).width())}),i.height(e.height()+"px"),e.removeClass("acf-sortable-tr-helper"))}}),r=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(e,i){var n=[];e.find("select").each(function(e){n.push(t(this).val())}),i.find("select").each(function(e){t(this).val(n[e])})}}),o=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(e){var i=this;t(".acf-table:visible").each(function(){i.renderTable(t(this))})},renderTable:function(e){var i=e.find("> thead > tr:visible > th[data-key]"),n=e.find("> tbody > tr:visible > td[data-key]");if(!i.length||!n.length)return!1;i.each(function(e){var i=t(this),a=i.data("key"),r=n.filter('[data-key="'+a+'"]'),o=r.filter(".acf-hidden");r.removeClass("acf-empty"),r.length===o.length?acf.hide(i):(acf.show(i),o.addClass("acf-empty"))}),i.css("width","auto"),i=i.not(".acf-hidden");var a=100,r=i.length,o;i.filter("[data-width]").each(function(){var e=t(this).data("width");t(this).css("width",e+"%"),a-=e});var s=i.not("[data-width]");if(s.length){var c=a/s.length;s.css("width",c+"%"),a=0}a>0&&i.last().css("width","auto"),n.filter(".-collapsed-target").each(function(){var e=t(this);e.parent().hasClass("-collapsed")?e.attr("colspan",i.length):e.removeAttr("colspan")})}}),s=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var e=this;t(".acf-fields:visible").each(function(){e.renderGroup(t(this))})},renderGroup:function(e){var i=0,n=0,a=t(),r=e.children(".acf-field[data-width]:visible");return!!r.length&&(e.hasClass("-left")?(r.removeAttr("data-width"),r.css("width","auto"),!1):(r.removeClass("-r0 -c0").css({"min-height":0}),r.each(function(e){var r=t(this),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left);a.length&&s>i&&(a.css({"min-height":n+"px"}),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left),i=0,n=0,a=t()),acf.get("rtl")&&(c=Math.ceil(r.parent().width()-(o.left+r.outerWidth()))),0==s?r.addClass("-r0"):0==c&&r.addClass("-c0");var l=Math.ceil(r.outerHeight())+1;n=Math.max(n,l),i=Math.max(i,s),a=a.add(r)}),void(a.length&&a.css({"min-height":n+"px"}))))}})}(jQuery),function(t,e){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var i=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});i._e=function(t,e){t=t||"";var i=(e=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},i.get_selector=function(e){var i=".acf-field";if(!e)return i;if(t.isPlainObject(e)){if(t.isEmptyObject(e))return i;for(var n in e){e=e[n];break}}return i+="-"+e,i=acf.strReplace("_","-",i),i=acf.strReplace("field-field-","field-",i)},i.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)},i.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},i.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},i.get_field_wrap=function(t){return t.closest(this.get_selector())},i.get_field_key=function(t){return t.data("key")},i.get_field_type=function(t){return t.data("type")},i.get_data=function(t,e){return acf.parseArgs(t.data(),e)},i.maybe_get=function(t,e,i){void 0===i&&(i=null),keys=String(e).split(".");for(var n=0;n<keys.length;n++){if(!t.hasOwnProperty(keys[n]))return i;t=t[keys[n]]}return t};var n=function(t){return t instanceof acf.Field?t.$el:t},a=function(t){return acf.arrayArgs(t).map(n)},r=function(e){return function(){if(arguments.length)var i=a(arguments);else var i=[t(document)];return e.apply(this,i)}};i.add_action=function(t,e,n,a){var o=t.split(" "),s=o.length;if(s>1){for(var c=0;c<s;c++)t=o[c],i.add_action.apply(this,arguments);return this}var e=r(e);return acf.addAction.apply(this,arguments)},i.add_filter=function(t,e,i,n){var e=r(e);return acf.addFilter.apply(this,arguments)},i.model={actions:{},filters:{},events:{},extend:function(e){var i=t.extend({},this,e);return t.each(i.actions,function(t,e){i._add_action(t,e)}),t.each(i.filters,function(t,e){i._add_filter(t,e)}),t.each(i.events,function(t,e){i._add_event(t,e)}),i},_add_action:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_action(t,this[e],a,this)},_add_filter:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_filter(t,this[e],a,this)},_add_event:function(e,i){var n=this,a=e.indexOf(" "),r=a>0?e.substr(0,a):e,o=a>0?e.substr(a+1):"",s=function(e){e.$el=t(this),acf.field_group&&(e.$field=e.$el.closest(".acf-field-object")),"function"==typeof n.event&&(e=n.event(e)),n[i].apply(n,arguments)};o?t(document).on(r,o,s):t(document).on(r,s)},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}},i.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(e,i){var n=this,a=e.substr(0,e.indexOf(" ")),r=e.substr(e.indexOf(" ")+1),o=acf.get_selector(n.type);t(document).on(a,o+" "+r,function(e){var a=t(this),r=acf.get_closest_field(a,n.type);r.length&&(r.is(n.$field)||n.set("$field",r),e.$el=a,e.$field=r,n[i].apply(n,[e]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var o=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})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm});i.tooltip={tooltip:function(t,e){var i;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)}})}},i.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){var e;return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),i.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()}},i.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)},fetch:acf.screen.check}),i.ajax=acf.screen}(jQuery);
|
1 |
+
!function(t,e){var i={};window.acf=i,i.data={},i.get=function(t){return this.data[t]||null},i.has=function(t){return null!==this.get(t)},i.set=function(t,e){return this.data[t]=e,this};var n=0;i.uniqueId=function(t){var e=++n+"";return t?t+e:e},i.uniqueArray=function(t){function e(t,e,i){return i.indexOf(t)===e}return t.filter(e)};var a="";i.uniqid=function(t,e){var i;void 0===t&&(t="");var n=function(t,e){return e<(t=parseInt(t,10).toString(16)).length?t.slice(t.length-e):e>t.length?Array(e-t.length+1).join("0")+t:t};return a||(a=Math.floor(123456789*Math.random())),a++,i=t,i+=n(parseInt((new Date).getTime()/1e3,10),8),i+=n(a,5),e&&(i+=(10*Math.random()).toFixed(8).toString()),i},i.strReplace=function(t,e,i){return i.split(t).join(e)},i.strCamelCase=function(t){return t=(t=t.replace(/[_-]/g," ")).replace(/(?:^\w|\b\w|\s+)/g,function(t,e){return 0==+t?"":0==e?t.toLowerCase():t.toUpperCase()})},i.strPascalCase=function(t){var e=i.strCamelCase(t);return e.charAt(0).toUpperCase()+e.slice(1)},i.strSlugify=function(t){return i.strReplace("_","-",t.toLowerCase())},i.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 void 0!==e[t]?e[t]:t};return t=(t=t.replace(i,n)).toLowerCase()},i.strMatch=function(t,e){for(var i=0,n=Math.min(t.length,e.length),a=0;a<n&&t[a]===e[a];a++)i++;return i},i.decode=function(e){return t("<textarea/>").html(e).text()},i.strEscape=function(e){return t("<div>").text(e).html()},i.parseArgs=function(e,i){return"object"!=typeof e&&(e={}),"object"!=typeof i&&(i={}),t.extend({},i,e)},null==window.acfL10n&&(acfL10n={}),i.__=function(t){return acfL10n[t]||t},i._x=function(t,e){return acfL10n[t+"."+e]||acfL10n[t]||t},i._n=function(t,e,n){return 1==n?i.__(t):i.__(e)},i.isArray=function(t){return Array.isArray(t)},i.isObject=function(t){return"object"==typeof t};var r=function(t,e,n){var a=(e=e.replace("[]","[%%index%%]")).match(/([^\[\]])+/g);if(a)for(var r=a.length,o=t,s=0;s<r;s++){var c=String(a[s]);s==r-1?"%%index%%"===c?o.push(n):o[c]=n:("%%index%%"===a[s+1]?i.isArray(o[c])||(o[c]=[]):i.isObject(o[c])||(o[c]={}),o=o[c])}};i.serialize=function(t,e){var n={},a=i.serializeArray(t);void 0!==e&&(a=a.filter(function(t){return 0===t.name.indexOf(e)}).map(function(t){return t.name=t.name.slice(e.length),t}));for(var o=0;o<a.length;o++)r(n,a[o].name,a[o].value);return n},i.serializeArray=function(t){return t.find("select, textarea, input").serializeArray()},i.serializeForAjax=function(t){var e={},n;return i.serializeArray(t).map(function(t){"[]"===t.name.slice(-2)?(e[t.name]=e[t.name]||[],e[t.name].push(t.value)):e[t.name]=t.value}),e},i.addAction=function(t,e,n,a){return i.hooks.addAction.apply(this,arguments),this},i.removeAction=function(t,e){return i.hooks.removeAction.apply(this,arguments),this};var o={};i.doAction=function(t){return o[t]=1,i.hooks.doAction.apply(this,arguments),o[t]=0,this},i.doingAction=function(t){return 1===o[t]},i.didAction=function(t){return void 0!==o[t]},i.currentAction=function(){for(var t in o)if(o[t])return t;return!1},i.addFilter=function(t){return i.hooks.addFilter.apply(this,arguments),this},i.removeFilter=function(t){return i.hooks.removeFilter.apply(this,arguments),this},i.applyFilters=function(t){return i.hooks.applyFilters.apply(this,arguments)},i.arrayArgs=function(t){return Array.prototype.slice.call(t)};try{var s=JSON.parse(localStorage.getItem("acf"))||{}}catch(t){var s={}}var c=function(t){return"this."===t.substr(0,5)&&(t=t.substr(5)+"-"+i.get("post_id")),t};i.getPreference=function(t){return t=c(t),s[t]||null},i.setPreference=function(t,e){t=c(t),null===e?delete s[t]:s[t]=e,localStorage.setItem("acf",JSON.stringify(s))},i.removePreference=function(t){i.setPreference(t,null)},i.remove=function(t){t instanceof jQuery&&(t={target:t}),t=i.parseArgs(t,{target:!1,endHeight:0,complete:function(){}}),i.doAction("remove",t.target),t.target.is("tr")?u(t):l(t)};var l=function(t){var e=t.target,i=e.height(),n=e.width(),a=e.css("margin"),r=e.outerHeight(!0),o=e.attr("style")+"";e.wrap('<div class="acf-temp-remove" style="height:'+r+'px"></div>');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)},u=function(e){var i=e.target,n=i.height(),a=i.children().length,r=t('<td class="acf-temp-remove" style="padding:0; height:'+n+'px" colspan="'+a+'"></td>');i.addClass("acf-remove-element"),setTimeout(function(){i.html(r)},251),setTimeout(function(){i.removeClass("acf-remove-element"),r.css({height:e.endHeight})},300),setTimeout(function(){i.remove(),e.complete()},451)};i.duplicate=function(t){t instanceof jQuery&&(t={target:t});var e=0;(t=i.parseArgs(t,{target:!1,search:"",replace:"",before:function(t){},after:function(t,e){},append:function(t,i){t.after(i),e=1}})).target=t.target||t.$el;var n=t.target;t.search=t.search||n.attr("data-id"),t.replace=t.replace||i.uniqid(),t.before(n),i.doAction("before_duplicate",n);var a=n.clone();return i.rename({target:a,search:t.search,replace:t.replace}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),t.after(n,a),i.doAction("after_duplicate",n,a),t.append(n,a),i.doAction("append",a),a},i.rename=function(t){t instanceof jQuery&&(t={target:t});var e=(t=i.parseArgs(t,{target:!1,destructive:!1,search:"",replace:""})).target,n=t.search||e.attr("data-id"),a=t.replace||i.uniqid("acf"),r=function(t,e){return e.replace(n,a)};if(t.destructive){var o=e.outerHTML();o=i.strReplace(n,a,o),e.replaceWith(o)}else e.attr("data-id",a),e.find('[id*="'+n+'"]').attr("id",r),e.find('[for*="'+n+'"]').attr("for",r),e.find('[name*="'+n+'"]').attr("name",r);return e},i.prepareForAjax=function(t){return t.nonce=i.get("nonce"),t.post_id=i.get("post_id"),i.has("language")&&(t.lang=i.get("language")),t=i.applyFilters("prepare_for_ajax",t)},i.startButtonLoading=function(t){t.prop("disabled",!0),t.after(' <i class="acf-loading"></i>')},i.stopButtonLoading=function(t){t.prop("disabled",!1),t.next(".acf-loading").remove()},i.showLoading=function(t){t.append('<div class="acf-loading-overlay"><i class="acf-loading"></i></div>')},i.hideLoading=function(t){t.children(".acf-loading-overlay").remove()},i.updateUserSetting=function(e,n){var a={action:"acf/ajax/user_setting",name:e,value:n};t.ajax({url:i.get("ajaxurl"),data:i.prepareForAjax(a),type:"post",dataType:"html"})},i.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))},i.show=function(t,e){return e&&i.unlock(t,"hidden",e),!i.isLocked(t,"hidden")&&(!!t.hasClass("acf-hidden")&&(t.removeClass("acf-hidden"),!0))},i.hide=function(t,e){return e&&i.lock(t,"hidden",e),!t.hasClass("acf-hidden")&&(t.addClass("acf-hidden"),!0)},i.isHidden=function(t){return t.hasClass("acf-hidden")},i.isVisible=function(t){return!i.isHidden(t)};var d=function(t,e){return!t.hasClass("acf-disabled")&&(e&&i.unlock(t,"disabled",e),!i.isLocked(t,"disabled")&&(!!t.prop("disabled")&&(t.prop("disabled",!1),!0)))};i.enable=function(e,i){if(e.attr("name"))return d(e,i);var n=!1;return e.find("[name]").each(function(){var e;d(t(this),i)&&(n=!0)}),n};var f=function(t,e){return e&&i.lock(t,"disabled",e),!t.prop("disabled")&&(t.prop("disabled",!0),!0)};i.disable=function(e,i){if(e.attr("name"))return f(e,i);var n=!1;return e.find("[name]").each(function(){var e;f(t(this),i)&&(n=!0)}),n},i.isset=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return!1;t=t[arguments[e]]}return!0},i.isget=function(t){for(var e=1;e<arguments.length;e++){if(!t||!t.hasOwnProperty(arguments[e]))return null;t=t[arguments[e]]}return t},i.getFileInputData=function(t,e){var n=t.val();if(!n)return!1;var a={url:n},r=i.isget(t[0],"files",0);if(r)if(a.size=r.size,a.type=r.type,r.type.indexOf("image")>-1){var o=window.URL||window.webkitURL,s=new Image;s.onload=function(){a.width=this.width,a.height=this.height,e(a)},s.src=o.createObjectURL(r)}else e(a);else e(a)},i.isAjaxSuccess=function(t){return t&&t.success},i.getAjaxMessage=function(t){return i.isget(t,"data","message")},i.getAjaxError=function(t){return i.isget(t,"data","error")},i.renderSelect=function(t,e){var n=t.val(),a=[],r=function(t){var e="";return t.map(function(t){var n=t.text||t.label||"",o=t.id||t.value||"";a.push(o),t.children?e+='<optgroup label="'+i.strEscape(n)+'">'+r(t.children)+"</optgroup>":e+='<option value="'+o+'"'+(t.disabled?' disabled="disabled"':"")+">"+i.strEscape(n)+"</option>"}),e};return t.html(r(e)),a.indexOf(n)>-1&&t.val(n),t.val()};var h=function(t,e){return t.data("acf-lock-"+e)||[]},p=function(t,e,i){t.data("acf-lock-"+e,i)},g,m,v,y,b,_;i.lock=function(t,e,i){var n=h(t,e),a;n.indexOf(i)<0&&(n.push(i),p(t,e,n))},i.unlock=function(t,e,i){var n=h(t,e),a=n.indexOf(i);return a>-1&&(n.splice(a,1),p(t,e,n)),0===n.length},i.isLocked=function(t,e){return h(t,e).length>0},i.isGutenberg=function(){return window.wp&&wp.data&&wp.data.select&&wp.data.select("core/editor")},i.objectToArray=function(t){return Object.keys(t).map(function(e){return t[e]})},i.debounce=function(t,e){var i;return function(){var n=this,a=arguments,r=function(){t.apply(n,a)};clearTimeout(i),i=setTimeout(r,e)}},i.throttle=function(t,e){var i=!1;return function(){i||(i=!0,setTimeout(function(){i=!1},e),t.apply(this,arguments))}},i.isInView=function(t){var e=t.getBoundingClientRect();return e.top!==e.bottom&&e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},i.onceInView=(g=[],m=0,v=function(){g.forEach(function(t){i.isInView(t.el)&&(t.callback.apply(this),_(t.id))})},y=i.debounce(v,300),b=function(e,i){g.length||t(window).on("scroll resize",y).on("acfrefresh orientationchange",v),g.push({id:m++,el:e,callback:i})},_=function(e){(g=g.filter(function(t){return t.id!==e})).length||t(window).off("scroll resize",y).off("acfrefresh orientationchange",v)},function(t,e){t instanceof jQuery&&(t=t[0]),i.isInView(t)?e.apply(this):b(t,e)}),i.once=function(t){var e=0;return function(){return e++>0?t=void 0:t.apply(this,arguments)}},t.fn.exists=function(){return t(this).length>0},t.fn.outerHTML=function(){return t(this).get(0).outerHTML},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){return t.inArray(e,this)}),t(document).ready(function(){i.doAction("ready")}),t(window).on("load",function(){i.doAction("load")}),t(window).on("beforeunload",function(){i.doAction("unload")}),t(window).on("resize",function(){i.doAction("resize")}),t(document).on("sortstart",function(t,e){i.doAction("sortstart",e.item,e.placeholder)}),t(document).on("sortstop",function(t,e){i.doAction("sortstop",e.item,e.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&&c("actions",t,e,i=parseInt(i||10,10),n),d}function i(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e&&u("actions",e,t),d}function n(t,e){return"string"==typeof t&&s("actions",t,e),d}function a(t,e,i,n){return"string"==typeof t&&"function"==typeof e&&c("filters",t,e,i=parseInt(i||10,10),n),d}function r(){var t=Array.prototype.slice.call(arguments),e=t.shift();return"string"==typeof e?u("filters",e,t):d}function o(t,e){return"string"==typeof t&&s("filters",t,e),d}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;a<r;a++){for(e=t[a],i=a;(n=t[i-1])&&n.priority>e.priority;)t[i]=t[i-1],--i;t[i]=e}return t}function u(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<r;a++)i[0]=n[a].callback.apply(n[a].context,i);else for(;a<r;a++)n[a].callback.apply(n[a].context,i);return"filters"!==t||i[0]}var d={removeFilter:o,applyFilters:r,addFilter:a,removeAction:n,doAction:i,addAction:e,storage:t},f={actions:{},filters:{}};return d};acf.hooks=new i}(window),function(t,e){var i=/^(\S+)\s*(.*)$/,n=function(e){var i=this,n;return n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return i.apply(this,arguments)},t.extend(n,i),n.prototype=Object.create(i.prototype),t.extend(n.prototype,e),n.prototype.constructor=n,n},a=acf.Model=function(){this.cid=acf.uniqueId("acf"),this.data=t.extend(!0,{},this.data),this.setup.apply(this,arguments),this.$el&&!this.$el.data("acf")&&this.$el.data("acf",this);var e=function(){this.initialize(),this.addEvents(),this.addActions(),this.addFilters()};this.wait&&!acf.didAction(this.wait)?this.addAction(this.wait,e):e.apply(this)};t.extend(a.prototype,{id:"",cid:"",$el:null,data:{},busy:!1,changed:!1,events:{},actions:{},filters:{},eventScope:"",wait:!1,priority:10,get:function(t){return this.data[t]},has:function(t){return null!=this.get(t)},set:function(t,e,i){var n=this.get(t);return n==e?this:(this.data[t]=e,i||(this.changed=!0,this.trigger("changed:"+t,[e,n]),this.trigger("changed",[t,e,n])),this)},inherit:function(e){return e instanceof jQuery&&(e=e.data()),t.extend(this.data,e),this},prop:function(){return this.$el.prop.apply(this.$el,arguments)},setup:function(e){t.extend(this,e)},initialize:function(){},addElements:function(t){if(!(t=t||this.elements||null)||!Object.keys(t).length)return!1;for(var e in t)this.addElement(e,t[e])},addElement:function(t,e){this["$"+t]=this.$(e)},addEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var n=e.match(i);this.on(n[1],n[2],t[e])}},removeEvents:function(t){if(!(t=t||this.events||null))return!1;for(var e in t){var n=e.match(i);this.off(n[1],n[2],t[e])}},getEventTarget:function(e,i){return e||this.$el||t(document)},validateEvent:function(e){return!this.eventScope||t(e.target).closest(this.eventScope).is(this.$el)},proxyEvent:function(e){return this.proxy(function(i){if(this.validateEvent(i)){var n=acf.arrayArgs(arguments),a=n.slice(1),r=[i,t(i.currentTarget)].concat(a);e.apply(this,r)}})},on:function(t,e,i,n){var a,r,o,s,c;t instanceof jQuery?n?(a=t,r=e,o=i,s=n):(a=t,r=e,s=i):i?(r=t,o=e,s=i):(r=t,s=e),a=this.getEventTarget(a),"string"==typeof s&&(s=this.proxyEvent(this[s])),r=r+"."+this.cid,c=o?[r,o,s]:[r,s],a.on.apply(a,c)},off:function(t,e,i){var n,a,r,o;t instanceof jQuery?i?(n=t,a=e,r=i):(n=t,a=e):e?(a=t,r=e):a=t,n=this.getEventTarget(n),a=a+"."+this.cid,o=r?[a,r]:[a],n.off.apply(n,o)},trigger:function(t,e,i){var n=this.getEventTarget();return i?n.trigger.apply(n,arguments):n.triggerHandler.apply(n,arguments),this},addActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.addAction(e,t[e])},removeActions:function(t){if(!(t=t||this.actions||null))return!1;for(var e in t)this.removeAction(e,t[e])},addAction:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addAction(t,e,i,this)},removeAction:function(t,e){acf.removeAction(t,this[e])},addFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.addFilter(e,t[e])},addFilter:function(t,e,i){i=i||this.priority,"string"==typeof e&&(e=this[e]),acf.addFilter(t,e,i,this)},removeFilters:function(t){if(!(t=t||this.filters||null))return!1;for(var e in t)this.removeFilter(e,t[e])},removeFilter:function(t,e){acf.removeFilter(t,this[e])},$:function(t){return this.$el.find(t)},remove:function(){this.removeEvents(),this.removeActions(),this.removeFilters(),this.$el.remove()},setTimeout:function(t,e){return setTimeout(this.proxy(t),e)},time:function(){console.time(this.id||this.cid)},timeEnd:function(){console.timeEnd(this.id||this.cid)},show:function(){acf.show(this.$el)},hide:function(){acf.hide(this.$el)},proxy:function(e){return t.proxy(e,this)}}),a.extend=n,acf.models={},acf.getInstance=function(t){return t.data("acf")},acf.getInstances=function(e){var i=[];return e.each(function(){i.push(acf.getInstance(t(this)))}),i}}(jQuery),function(t,e){acf.models.Popup=acf.Model.extend({data:{title:"",content:"",width:0,height:0,loading:!1},events:{'click [data-event="close"]':"onClickClose","click .acf-close-popup":"onClickClose"},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.open()},tmpl:function(){return['<div id="acf-popup">','<div class="acf-popup-box acf-box">','<div class="title"><h3></h3><a href="#" class="acf-icon -cancel grey" data-event="close"></a></div>','<div class="inner"></div>','<div class="loading"><i class="acf-loading"></i></div>',"</div>",'<div class="bg" data-event="close"></div>',"</div>"].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(){t("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,e){acf.unload=new acf.Model({wait:"load",active:!0,changed:!1,actions:{validation_failure:"startListening",validation_success:"stopListening"},events:{"change form .acf-field":"startListening","submit form":"stopListening"},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(){this.stopListening()},startListening:function(){!this.changed&&this.active&&(this.changed=!0,t(window).on("beforeunload",this.onUnload))},stopListening:function(){this.changed=!1,t(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,e){var i=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,e){var i=acf.Model.extend({data:{text:"",type:"",timeout:0,dismiss:!0,target:!1,close:function(){}},events:{"click .acf-notice-dismiss":"onClickClose"},tmpl:function(){return'<div class="acf-notice"></div>'},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show()},render:function(){this.type(this.get("type")),this.html("<p>"+this.get("text")+"</p>"),this.get("dismiss")&&(this.$el.append('<a href="#" class="acf-notice-dismiss acf-icon -cancel small"></a>'),this.$el.addClass("-dismiss"));var t=this.get("timeout");t&&this.away(t)},update:function(e){t.extend(this.data,e),this.initialize(),this.removeEvents(),this.addEvents()},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 i(t)};var n=new acf.Model({wait:"prepare",priority:1,initialize:function(){var e=t(".acf-admin-notice");e.length&&t("h1:first").after(e)}})}(jQuery),function(t,e){var i=new acf.Model({wait:"prepare",priority:1,initialize:function(){(acf.get("postboxes")||[]).map(acf.newPostbox)}});acf.getPostbox=function(e){return"string"==typeof e&&(e=t("#"+e)),acf.getInstance(e)},acf.getPostboxes=function(){return acf.getInstances(t(".acf-postbox"))},acf.newPostbox=function(t){return new acf.models.Postbox(t)},acf.models.Postbox=acf.Model.extend({data:{id:"",key:"",style:"default",label:"top",edit:""},setup:function(e){e.editLink&&(e.edit=e.editLink),t.extend(this.data,e),this.$el=this.$postbox()},$postbox:function(){return t("#"+this.get("id"))},$hide:function(){return t("#"+this.get("id")+"-hide")},$hideLabel:function(){return this.$hide().parent()},$hndle:function(){return this.$("> .hndle")},$inside:function(){return this.$("> .inside")},isVisible:function(){return this.$el.hasClass("acf-hidden")},initialize:function(){if(this.$el.addClass("acf-postbox"),this.$el.removeClass("hide-if-js"),"block"!==acf.get("editor")){var t=this.get("style");"default"!==t&&this.$el.addClass(t)}this.$inside().addClass("acf-fields").addClass("-"+this.get("label"));var e=this.get("edit");e&&this.$hndle().append('<a href="'+e+'" class="dashicons dashicons-admin-generic acf-hndle-cog acf-js-tooltip" title="'+acf.__("Edit field group")+'"></a>'),this.show()},show:function(){this.$hideLabel().show(),this.$hide().prop("checked",!0),this.$el.show().removeClass("acf-hidden")},enable:function(){acf.enable(this.$el,"postbox")},showEnable:function(){this.show(),this.enable()},hide:function(){this.$hideLabel().hide(),this.$el.hide().addClass("acf-hidden")},disable:function(){acf.disable(this.$el,"postbox")},hideDisable:function(){this.hide(),this.disable()},html:function(t){this.$inside().html(t),acf.doAction("append",this.$el)}})}(jQuery),function(t,e){acf.newTooltip=function(t){return"object"!=typeof t&&(t={text:t}),void 0!==t.confirmRemove?(t.textConfirm=acf.__("Remove"),t.textCancel=acf.__("Cancel"),new n(t)):void 0!==t.confirm?new n(t):new i(t)};var i=acf.Model.extend({data:{text:"",timeout:0,target:null},tmpl:function(){return'<div class="acf-tooltip"></div>'},setup:function(e){t.extend(this.data,e),this.$el=t(this.tmpl())},initialize:function(){this.render(),this.show(),this.position();var e=this.get("timeout");e&&setTimeout(t.proxy(this.fade,this),e)},update:function(e){t.extend(this.data,e),this.initialize()},render:function(){this.html(this.get("text"))},show:function(){t("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 e=this.$el,i=this.get("target");if(i){e.removeClass("right left bottom top").css({top:0,left:0});var n=10,a=i.outerWidth(),r=i.outerHeight(),o=i.offset().top,s=i.offset().left,c=e.outerWidth(),l=e.outerHeight(),u=e.offset().top,d=o-l-u,f=s+a/2-c/2;f<10?(e.addClass("right"),f=s+a,d=o+r/2-l/2-u):f+c+10>t(window).width()?(e.addClass("left"),f=s-c,d=o+r/2-l/2-u):d-t(window).scrollTop()<10?(e.addClass("bottom"),d=o+r-u):e.addClass("top"),e.css({top:d,left:f})}}}),n=i.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 e=t(document),i=this.get("target");this.setTimeout(function(){this.on(e,"click","onCancel")}),this.get("targetConfirm")&&this.on(i,"click","onConfirm")},removeEvents:function(){acf.Model.prototype.removeEvents.apply(this);var e=t(document),i=this.get("target");this.off(e,"click"),this.off(i,"click")},render:function(){var t,e,i,n=[this.get("text")||acf.__("Are you sure?"),'<a href="#" data-event="confirm">'+(this.get("textConfirm")||acf.__("Yes"))+"</a>",'<a href="#" data-event="cancel">'+(this.get("textCancel")||acf.__("No"))+"</a>"].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=i,acf.models.TooltipConfirm=n;var a=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,e){var i=[];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"),e;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(e){this.$el.addClass("acf-error"),void 0!==e&&this.showNotice({text:e,type:"error",dismiss:!1}),acf.doAction("invalid_field",this),this.$el.one("focus change","input, select, textarea",t.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"),i=n(e),a,r=new(acf.models[i]||acf.Field)(t);return acf.doAction("new_field",r),r};var n=function(t){return acf.strPascalCase(t||"")+"Field"};acf.registerFieldType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getFieldType=function(t){var e=n(t);return acf.models[e]||!1},acf.getFieldTypes=function(t){t=acf.parseArgs(t,{category:""});var e=[];return i.map(function(i){var n=acf.getFieldType(i),a=n.prototype;t.category&&a.category!==t.category||e.push(n)}),e}}(jQuery),function(t,e){acf.findFields=function(e){var i=".acf-field",n=!1;return(e=acf.parseArgs(e,{key:"",name:"",type:"",is:"",parent:!1,sibling:!1,limit:!1,visible:!1,suppressFilters:!1})).suppressFilters||(e=acf.applyFilters("find_fields_args",e)),e.key&&(i+='[data-key="'+e.key+'"]'),e.type&&(i+='[data-type="'+e.type+'"]'),e.name&&(i+='[data-name="'+e.name+'"]'),e.is&&(i+=e.is),e.visible&&(i+=":visible"),n=e.parent?e.parent.find(i):e.sibling?e.sibling.siblings(i):t(i),e.suppressFilters||(n=n.not(".acf-clone .acf-field"),n=acf.applyFilters("find_fields",n)),e.limit&&(n=n.slice(0,e.limit)),n},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(e){e instanceof jQuery||(e=acf.findFields(e));var i=[];return e.each(function(){var e=acf.getField(t(this));i.push(e)}),i},acf.findClosestField=function(t){return t.closest(".acf-field")},acf.getClosestField=function(t){var e=acf.findClosestField(t);return this.getField(e)};var i=function(t){var e=t,i=t+"_fields",a=t+"_field",r=function(t){var e=acf.arrayArgs(arguments),n=e.slice(1),a=acf.getFields({parent:t});if(a.length){var r=[i,a].concat(n);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(i,o),n(t)},n=function(t){var e=t+"_field",i=t+"Field",n=function(n){var a=acf.arrayArgs(arguments),r=a.slice(1),s=["type","name","key"];s.map(function(t){var i="/"+t+"="+n.get(t);a=[e+i,n].concat(r),acf.doAction.apply(null,a)}),o.indexOf(t)>-1&&n.trigger(i,r)};acf.addAction(e,n)},a,r=["valid","invalid","enable","disable","new"],o=["remove","unmount","remount","sortstart","sortstop","show","hide","unload","valid","invalid","enable","disable"];["prepare","ready","load","append","remove","unmount","remount","sortstart","sortstop","show","hide","unload"].map(i),r.map(n);var s=new acf.Model({id:"fieldsEventManager",events:{'click .acf-field a[href="#"]':"onClick","change .acf-field":"onChange"},onClick:function(t){t.preventDefault()},onChange:function(){t("#_acf_changed").val(1)}})}(jQuery),function(t,e){var i=0,n=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()
|
2 |
+
;var e=this.$el,n=this.$labelWrap(),r=this.$inputWrap(),o=this.$control(),s=r.children(".description");if(s.length&&n.append(s),this.$el.is("tr")){var c=this.$el.closest("table"),l=t('<div class="acf-accordion-title"/>'),u=t('<div class="acf-accordion-content"/>'),d=t('<table class="'+c.attr("class")+'"/>'),f=t("<tbody/>");l.append(n.html()),d.append(f),u.append(d),r.append(l),r.append(u),n.remove(),o.remove(),r.attr("colspan",2),n=l,r=u,o=f}e.addClass("acf-accordion"),n.addClass("acf-accordion-title"),r.addClass("acf-accordion-content"),i++,this.get("multi_expand")&&e.attr("multi-expand",1);var h=acf.getPreference("this.accordions")||[];void 0!==h[i-1]&&this.set("open",h[i-1]),this.get("open")&&(e.addClass("-open"),r.css("display","block")),n.prepend(a.iconHtml({open:this.get("open")}));var p=e.parent();o.addClass(p.hasClass("-left")?"-left":""),o.addClass(p.hasClass("-clear")?"-clear":""),o.append(e.nextUntil(".acf-field-accordion",".acf-field")),o.removeAttr("data-open data-multi_expand data-endpoint")}}});acf.registerFieldType(n);var a=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)},iconHtml:function(t){var e;return'<i class="acf-accordion-icon dashicons dashicons-'+(t.open?"arrow-down":"arrow-right")+'"></i>'},open:function(e){e.find(".acf-accordion-content:first").slideDown().css("display","block"),e.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!0})),e.addClass("-open"),acf.doAction("show",e),e.attr("multi-expand")||e.siblings(".acf-accordion.-open").each(function(){a.close(t(this))})},close:function(t){t.find(".acf-accordion-content:first").slideUp(),t.find(".acf-accordion-icon:first").replaceWith(this.iconHtml({open:!1})),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(e){var i=[];t(".acf-accordion").each(function(){var e=t(this).hasClass("-open")?1:0;i.push(e)}),i.length&&acf.setPreference("this.accordions",i)}})}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=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 e=[];return this.$(":checked").each(function(){e.push(t(this).val())}),!!e.length&&e},onChange:function(t,e){var i=e.prop("checked"),n=e.parent("label"),a=this.$toggle(),r;(i?n.addClass("selected"):n.removeClass("selected"),a.length)&&(0==this.$inputs().not(":checked").length?a.prop("checked",!0):a.prop("checked",!1))},onClickAdd:function(t,e){var i='<li><input class="acf-checkbox-custom" type="checkbox" checked="checked" /><input type="text" name="'+this.getInputName()+'[]" /></li>';e.parent("li").before(i)},onClickToggle:function(t,e){var i=e.prop("checked"),n=this.$('input[type="checkbox"]'),a=this.$("label");n.prop("checked",i),i?a.addClass("selected"):a.removeClass("selected")},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(i)}(jQuery),function(t,e){var i=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"]')},setValue:function(t){acf.val(this.$input(),t),this.$inputText().iris("color",t)},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(i)}(jQuery),function(t,e){var i=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")},n=(i=acf.applyFilters("date_picker_args",i,this)).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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("datePickerL10n");return!!n&&(void 0!==t.datepicker&&(n.isRTL=i,t.datepicker.regional[e]=n,void t.datepicker.setDefaults(n)))}});acf.newDatePicker=function(e,i){if(void 0===t.datepicker)return!1;i=i||{},e.datepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){var i=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(i);var n=new acf.Model({priority:5,wait:"ready",initialize:function(){var e=acf.get("locale"),i=acf.get("rtl"),n=acf.get("dateTimePickerL10n");return!!n&&(void 0!==t.timepicker&&(n.isRTL=i,t.timepicker.regional[e]=n,void t.timepicker.setDefaults(n)))}});acf.newDateTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.datetimepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){function i(e){if(r)return e();if(acf.isset(window,"google","maps","Geocoder"))return r=new google.maps.Geocoder,e();if(acf.addAction("google_map_api_loaded",e),!a){var i=acf.get("google_map_api");i&&(a=!0,t.ajax({url:i,dataType:"script",cache:!0,success:function(){r=new google.maps.Geocoder,acf.doAction("google_map_api_loaded")}}))}}var n=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")},$search:function(){return this.$(".search")},$canvas:function(){return this.$(".canvas")},setState:function(t){this.$control().removeClass("-value -loading -searching"),"default"===t&&(t=this.val()?"value":""),t&&this.$control().addClass("-"+t)},getValue:function(){var t=this.$input().val();return!!t&&JSON.parse(t)},setValue:function(t,e){var i="";t&&(i=JSON.stringify(t)),this.$input().val(i),e||(this.renderVal(t),acf.doAction("google_map_change",t,this.map,this))},renderVal:function(t){t?(this.setState("value"),this.$search().val(t.address),this.setPosition(t.lat,t.lng)):(this.setState(""),this.$search().val(""),this.map.marker.setVisible(!1))},newLatLng:function(t,e){return new google.maps.LatLng(parseFloat(t),parseFloat(e))},setPosition:function(t,e){this.map.marker.setPosition({lat:parseFloat(t),lng:parseFloat(e)}),this.map.marker.setVisible(!0),this.center()},center:function(){var t=this.map.marker.getPosition();if(t)var e=t.lat(),i=t.lng();else var e=this.get("lat"),i=this.get("lng");this.map.setCenter({lat:parseFloat(e),lng:parseFloat(i)})},initialize:function(){i(this.initializeMap.bind(this))},initializeMap:function(){var t=this.get("zoom"),e=this.get("lat"),i=this.get("lng"),n=this.val(),a={scrollwheel:!1,zoom:parseInt(n.zoom||t),center:{lat:parseFloat(n.lat||e),lng:parseFloat(n.lng||i)},mapTypeId:google.maps.MapTypeId.ROADMAP,marker:{draggable:!0,raiseOnDrag:!0},autocomplete:{}};a=acf.applyFilters("google_map_args",a,this);var r=new google.maps.Map(this.$canvas()[0],a),o=acf.parseArgs(a.marker,{draggable:!0,raiseOnDrag:!0,map:r});o=acf.applyFilters("google_map_marker_args",o,this);var s=new google.maps.Marker(o),c=!1,n;if(acf.isset(google,"maps","places","Autocomplete")){var l=a.autocomplete||{};l=acf.applyFilters("google_map_autocomplete_args",l,this),(c=new google.maps.places.Autocomplete(this.$search()[0],l)).bindTo("bounds",r)}this.addMapEvents(this,r,s,c),r.acf=this,r.marker=s,r.autocomplete=c,this.map=r,(n=this.getValue())&&this.setPosition(n.lat,n.lng),acf.doAction("google_map_init",r,s,this)},addMapEvents:function(t,e,i,n){google.maps.event.addListener(e,"click",function(e){var i=e.latLng.lat(),n=e.latLng.lng();t.searchPosition(i,n)}),google.maps.event.addListener(i,"dragend",function(){var e=this.getPosition().lat(),i=this.getPosition().lng();t.searchPosition(e,i)}),n&&google.maps.event.addListener(n,"place_changed",function(){var e=this.getPlace();t.searchPlace(e)}),google.maps.event.addListener(e,"zoom_changed",function(){var i=t.val();i&&(i.zoom=e.getZoom(),t.setValue(i,!0))})},searchPosition:function(t,e){this.setState("loading");var i={lat:t,lng:e};r.geocode({location:i},function(t,e){if(this.setState(""),"OK"!==e)this.showNotice({text:acf.__("Location not found: %s").replace("%s",e),type:"warning"});else{var i=this.parseResult(t[0]);this.val(i)}}.bind(this))},searchPlace:function(t){if(t&&t.name){if(!t.geometry)return this.searchAddress(t.name);var e=this.parseResult(t);this.val(e)}},searchAddress:function(t){if(t){var e=t.split(",");if(2==e.length){var i=parseFloat(e[0]),n=parseFloat(e[1]);if(i&&n)return this.searchPosition(i,n)}this.setState("loading"),r.geocode({address:t},function(e,i){if(this.setState(""),"OK"!==i)this.showNotice({text:acf.__("Location not found: %s").replace("%s",i),type:"warning"});else{var n=this.parseResult(e[0]);n.address=t,this.val(n)}}.bind(this))}},searchLocation:function(){if(!navigator.geolocation)return alert(acf.__("Sorry, this browser does not support geolocation"));this.setState("loading"),navigator.geolocation.getCurrentPosition(function(t){this.setState("");var e=t.coords.latitude,i=t.coords.longitude;this.searchPosition(e,i)}.bind(this),function(t){this.setState("")}.bind(this))},parseResult:function(t){var e={address:t.formatted_address,lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};e.zoom=this.map.getZoom(),t.place_id&&(e.place_id=t.place_id);var i={street_number:["street_number"],street_name:["street_address","route"],city:["locality"],state:["administrative_area_level_1","administrative_area_level_2","administrative_area_level_3","administrative_area_level_4","administrative_area_level_5"],post_code:["postal_code"],country:["country"]};for(var n in i)for(var a=i[n],r=0;r<t.address_components.length;r++){var o=t.address_components[r],s=o.types[0];-1!==a.indexOf(s)&&(e[n]=o.long_name,o.long_name!==o.short_name&&(e[n+"_short"]=o.short_name))}return acf.applyFilters("google_map_result",e,t,this.map,this)},onClickClear:function(){this.val(!1)},onClickLocate:function(){this.searchLocation()},onClickSearch:function(){this.searchAddress(this.$search().val())},onFocusSearch:function(t,e){this.setState("searching")},onBlurSearch:function(t,e){var i=this.val(),n=i?i.address:"";e.val()===n&&this.setState("default")},onKeyupSearch:function(t,e){e.val()||this.val(!1)},onKeydownSearch:function(t,e){13==t.which&&(t.preventDefault(),e.blur())},onShow:function(){this.map&&this.setTimeout(this.center)}});acf.registerFieldType(n);var a=!1,r=!1}(jQuery),function(t,e){var i=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){void 0!==(t=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;n<i.length;n++)if(!i[n].val())return i[n];return!1},n=i(this,e);n||(e.$(".acf-button:last").trigger("click"),n=i(this,e)),n&&n.render(t)},selectAttachment:function(){var e=this.parent(),i=e&&"repeater"===e.get("type"),n=acf.newMediaPopup({mode:"select",type:"image",title:acf.__("Select Image"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:t.proxy(function(t,i){i>0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(e)var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit Image"),button:acf.__("Update Image"),attachment:e,field:this.get("key"),select:t.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(e,i){var n=this.$input();acf.getFileInputData(i,function(e){n.val(t.param(e))})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.ImageField.extend({type:"file",$control:function(){return this.$(".acf-file-uploader")},$input:function(){return this.$('input[type="hidden"]')},validateAttachment:function(t){return void 0!==(t=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 e=this.parent(),i=e&&"repeater"===e.get("type"),n=acf.newMediaPopup({mode:"select",title:acf.__("Select File"),field:this.get("key"),multiple:i,library:this.get("library"),allowedTypes:this.get("mime_types"),select:t.proxy(function(t,i){i>0?this.append(t,e):this.render(t)},this)})},editAttachment:function(){var e=this.val();if(!e)return!1;var i=acf.newMediaPopup({mode:"edit",title:acf.__("Edit File"),button:acf.__("Update File"),attachment:e,field:this.get("key"),select:t.proxy(function(t,e){this.render(t)},this)})}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i),acf.wpLink=new acf.Model({getNodeValue:function(){var t=this.get("node");return{title:acf.decode(t.html()),url:t.attr("href"),target:t.attr("target")}},setNodeValue:function(t){var e=this.get("node");e.text(t.title),e.attr("href",t.url),e.attr("target",t.target),e.trigger("change")},getInputValue:function(){return{title:t("#wp-link-text").val(),url:t("#wp-link-url").val(),target:t("#wp-link-target").prop("checked")?"_blank":""}},setInputValue:function(e){t("#wp-link-text").val(e.title),t("#wp-link-url").val(e.url),t("#wp-link-target").prop("checked","_blank"===e.target)},open:function(e){this.on("wplink-open","onOpen"),this.on("wplink-close","onClose"),this.set("node",e);var i=t('<textarea id="acf-link-textarea" style="display:none;"></textarea>');t("body").append(i);var n=this.getNodeValue();wpLink.open("acf-link-textarea",n.url,n.title,null)},onOpen:function(){t("#wp-link-wrap").addClass("has-text-field");var e=this.getNodeValue();this.setInputValue(e)},close:function(){wpLink.close()},onClose:function(){if(!this.has("node"))return!1;this.off("wplink-open"),this.off("wplink-close");var e=this.getInputValue();this.setNodeValue(e),t("#acf-link-textarea").remove(),this.set("node",null)}})}(jQuery),function(t,e){var i=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 e=this.val(),i=this.getSearchVal();if(!i)return this.clear();if("http"!=i.substr(0,4)&&(i="http://"+i),i!==e){var n=this.get("timeout");n&&clearTimeout(n);var a=t.proxy(this.search,this,i);this.set("timeout",setTimeout(a,300))}},search:function(e){var i={action:"acf/fields/oembed/search",s:e,field_key:this.get("key")},n;(n=this.get("xhr"))&&n.abort(),this.showLoading();var n=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(i),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",n)},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(i)}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=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(),this.$input().val(),!0),this.busy=!1},onChange:function(t,e){this.busy||this.setValue(e.val())}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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"},$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 e=[];return this.$listItems("values").each(function(){e.push(t(this).data("id"))}),!!e.length&&e},newChoice:function(t){return["<li>",'<span data-id="'+t.id+'" class="acf-rel-item">'+t.text+"</span>","</li>"].join("")},newValue:function(t){return["<li>",'<input type="hidden" name="'+this.getInputName()+'[]" value="'+t.id+'" />','<span data-id="'+t.id+'" class="acf-rel-item">'+t.text,'<a href="#" class="acf-icon -minus small dark" data-name="remove_item"></a>',"</span>","</li>"].join("")},initialize:function(){var t=this.proxy(acf.once(function(){this.$list("values").sortable({items:"li",forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,update:this.proxy(function(){this.$input().trigger("change")})}),this.$list("choices").scrollTop(0).on("scroll",this.proxy(this.onScrollChoices)),this.fetch()}));this.$el.one("mouseover",t),this.$el.one("focus","input",t),acf.onceInView(this.$el,t)},onScrollChoices: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())}},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){t.preventDefault();var i=e.parent(),n=i.parent(),a=i.data("id");n.remove(),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=acf.applyFilters("relationship_ajax_data",t,this)},fetch:function(){var e;(e=this.get("xhr"))&&e.abort();var i=this.getAjaxData(),n=this.$list("choices");1==i.paged&&n.html("");var a=t('<li><i class="acf-loading"></i> '+acf.__("Loading")+"</li>");n.append(a),this.set("loading",!0);var r=function(){this.set("loading",!1),a.remove()},o=function(e){if(!e||!e.results||!e.results.length)return this.set("more",!1),void(1==this.get("paged")&&this.$list("choices").append("<li>"+acf.__("No matches found")+"</li>"));this.set("more",e.more);var i=this.walkChoices(e.results),a=t(i),r=this.val();r&&r.length&&r.map(function(t){a.find('.acf-rel-item[data-id="'+t+'"]').addClass("disabled")}),n.append(a);var o=!1,s=!1;n.find(".acf-rel-label").each(function(){var e=t(this),i=e.siblings("ul");if(o&&o.text()==e.text())return s.append(i.children()),void t(this).parent().remove();o=e,s=i})},e=t.ajax({url:acf.get("ajaxurl"),dataType:"json",type:"post",data:acf.prepareForAjax(i),context:this,success:o,complete:r});this.set("xhr",e)},walkChoices:function(e){var i=function(e){var n="";return t.isArray(e)?e.map(function(t){n+=i(t)}):t.isPlainObject(e)&&(void 0!==e.children?(n+='<li><span class="acf-rel-label">'+e.text+'</span><ul class="acf-bl">',n+=i(e.children),n+="</ul></li>"):n+='<li><span class="acf-rel-item" data-id="'+e.id+'">'+e.text+"</span></li>"),n};return i(e)}});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i="tab",n=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 r(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(n);var a=0,r=acf.Model.extend({tabs:[],active:!1,actions:{refresh:"onRefresh"},data:{before:!1,placement:"top",index:0,initialized:!1},setup:function(e){t.extend(this.data,e),this.tabs=[],this.active=!1;var i=this.get("placement"),n=this.get("before"),r=n.parent();"left"==i&&r.hasClass("acf-fields")&&r.addClass("-sidebar"),n.is("tr")?this.$el=t('<tr class="acf-tab-wrap"><td colspan="2"><ul class="acf-hl acf-tab-group"></ul></td></tr>'):this.$el=t('<div class="acf-tab-wrap -'+i+'"><ul class="acf-hl acf-tab-group"></ul></div>'),n.before(this.$el),this.set("index",a,!0),a++},initializeTabs:function(){var t=this.getVisible().shift(),e,i,n=(acf.getPreference("this.tabs")||[])[this.get("index")];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(e,i){var n=t("<li></li>");n.append(e),this.$("ul").append(n);var a=new o({$el:n,field:i,group:this});return this.tabs.push(a),a},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)}}}),o=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)}}),s=new acf.Model({priority:50,actions:{prepare:"render",append:"render",unload:"onUnload",invalid_field:"onInvalidField"},findTabs:function(){return t(".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,e){var i=acf.models.SelectField.extend({type:"post_object"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"page_link"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=acf.models.SelectField.extend({type:"user"});acf.registerFieldType(i)}(jQuery),function(t,e){var i=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(){
|
3 |
+
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(e,i){var n=this,a=!1,r=!1,o=!1,s=!1,c=!1,l=!1,u=!1,d=function(){a=acf.newPopup({title:i.attr("title"),loading:!0,width:"300px"});var e={action:"acf/fields/taxonomy/add_term",field_key:n.get("key")};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"html",success:f})},f=function(t){a.loading(!1),a.content(t),r=a.$("form"),o=a.$('input[name="term_name"]'),s=a.$('select[name="term_parent"]'),c=a.$(".acf-submit-button"),o.focus(),a.on("submit","form",h)},h=function(e,i){if(e.preventDefault(),e.stopImmediatePropagation(),""===o.val())return o.focus(),!1;acf.startButtonLoading(c);var a={action:"acf/fields/taxonomy/add_term",field_key:n.get("key"),term_name:o.val(),term_parent:s.length?s.val():0};t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},p=function(t){acf.stopButtonLoading(c),u&&u.remove(),acf.isAjaxSuccess(t)?(o.val(""),g(t.data),u=acf.newNotice({type:"success",text:acf.getAjaxMessage(t),target:r,timeout:2e3,dismiss:!1})):u=acf.newNotice({type:"error",text:acf.getAjaxError(t),target:r,timeout:2e3,dismiss:!1}),o.focus()},g=function(e){var i=t('<option value="'+e.term_id+'">'+e.term_label+"</option>"),a;e.term_parent?s.children('option[value="'+e.term_parent+'"]').after(i):s.append(i),acf.getFields({type:"taxonomy"}).map(function(t){t.get("taxonomy")==n.get("taxonomy")&&t.appendTerm(e)}),n.selectTerm(e.term_id)};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(e){var i=this.$("[name]:first").attr("name"),n=this.$("ul:first");"checkbox"==this.getRelatedType()&&(i+="[]");var a=t(['<li data-id="'+e.term_id+'">',"<label>",'<input type="'+this.get("ftype")+'" value="'+e.term_id+'" name="'+i+'" /> ',"<span>"+e.term_name+"</span>","</label>","</li>"].join(""));if(e.term_parent){var r=n.find('li[data-id="'+e.term_parent+'"]');(n=r.children("ul")).exists()||(n=t('<ul class="children acf-bl"></ul>'),r.append(n))}n.append(a)},selectTerm:function(t){var e;"select"==this.getRelatedType()?this.select2.selectOption(t):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(i)}(jQuery),function(t,e){var i=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,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(i),acf.newTimePicker=function(e,i){if(void 0===t.timepicker)return!1;i=i||{},e.timepicker(i),t("body > #ui-datepicker-div").exists()&&t("body > #ui-datepicker-div").wrap('<div class="acf-ui-datepicker" />')}}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=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(i)}(jQuery),function(t,e){var i=acf.Field.extend({type:"wysiwyg",wait:"load",events:{"mousedown .acf-editor-wrap.delay":"onMousedown",unmountField:"disableEditor",remountField:"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-"),r=e.data();acf.rename({target:t,search:n,replace:a,destructive:!0}),this.set("id",a,!0),acf.tinymce.initialize(a,i),this.$input().data(r)},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(i)}(jQuery),function(t,e){var i=[];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(e){t.extend(this.data,e)},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'<input type="text" />'}}),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,s,c,l;return new(acf.getConditionTypes({fieldType:r,operator:o})[0]||acf.Condition)(a)};var n=function(t){return acf.strPascalCase(t||"")+"Condition"};acf.registerConditionType=function(t){var e,a=t.prototype.type,r=n(a);acf.models[r]=t,i.push(a)},acf.getConditionType=function(t){var e=n(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 e=[];return i.map(function(i){var n=acf.getConditionType(i),a=n.prototype.fieldTypes,r=n.prototype.operator;t.fieldType&&-1===a.indexOf(t.fieldType)||t.operator&&r!==t.operator||e.push(n)}),e}}(jQuery),function(t,e){var i="conditional_logic",n=new acf.Model({id:"conditionsManager",priority:20,actions:{new_field:"onNewField"},onNewField:function(t){t.has("conditions")&&t.getConditions().render()}}),a=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=a(this,t);if(e)return e;for(var i=this.parents(),n=0;n<i.length;n++)if(e=a(i[n],t))return e;return!1},acf.Field.prototype.getConditions=function(){return this.conditions||(this.conditions=new o(this)),this.conditions};var r=!1,o=acf.Model.extend({id:"Conditions",data:{field:!1,timeStamp:!1,groups:[]},setup:function(t){this.data.field=t;var e=t.get("conditions");e instanceof Array?e[0]instanceof Array?e.map(function(t,e){this.addRules(t,e)},this):this.addRules(e):this.addRule(e)},change:function(t){if(this.get("timeStamp")===t.timeStamp)return!1;this.set("timeStamp",t.timeStamp,!0);var e=this.render()},render:function(){return this.calculate()?this.show():this.hide()},show:function(){return this.get("field").showEnable(this.cid,i)},hide:function(){return this.get("field").hideDisable(this.cid,i)},calculate:function(){var t=!1;return this.getGroups().map(function(e){var i;t||e.filter(function(t){return t.calculate()}).length==e.length&&(t=!0)}),t},hasGroups:function(){return null!=this.data.groups},getGroups:function(){return this.data.groups},addGroup:function(){var t=[];return this.data.groups.push(t),t},hasGroup:function(t){return null!=this.data.groups[t]},getGroup:function(t){return this.data.groups[t]},removeGroup:function(t){return this.data.groups[t].delete,this},addRules:function(t,e){t.map(function(t){this.addRule(t,e)},this)},addRule:function(t,e){var i;e=e||0,i=this.hasGroup(e)?this.getGroup(e):this.addGroup();var n=acf.newCondition(t,this);if(!n)return!1;i.push(n)},hasRule:function(){},getRule:function(t,e){return t=t||0,e=e||0,this.data.groups[e][t]},removeRule:function(){}})}(jQuery),function(t,e){var i=acf.__,n=function(t){return t?""+t:""},a=function(t,e){return n(t).toLowerCase()===n(e).toLowerCase()},r=function(t,e){return parseFloat(t)===parseFloat(e)},o=function(t,e){return parseFloat(t)>parseFloat(e)},s=function(t,e){return parseFloat(t)<parseFloat(e)},c=function(t,e){return(e=e.map(function(t){return n(t)})).indexOf(t)>-1},l=function(t,e){return n(t).indexOf(n(e))>-1},u=function(t,e){var i=new RegExp(n(e),"gi");return n(t).match(i)},d=acf.Condition.extend({type:"hasValue",operator:"!=empty",label:i("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'<input type="text" disabled="" />'}});acf.registerConditionType(d);var f=d.extend({type:"hasNoValue",operator:"==empty",label:i("Has no value"),match:function(t,e){return!d.prototype.match.apply(this,arguments)}});acf.registerConditionType(f);var h=acf.Condition.extend({type:"equalTo",operator:"==",label:i("Value is equal to"),fieldTypes:["text","textarea","number","range","email","url","password"],match:function(e,i){return t.isNumeric(e.value)?r(e.value,i.val()):a(e.value,i.val())},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(h);var p=h.extend({type:"notEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!h.prototype.match.apply(this,arguments)}});acf.registerConditionType(p);var g=acf.Condition.extend({type:"patternMatch",operator:"==pattern",label:i("Value matches pattern"),fieldTypes:["text","textarea","email","url","password","wysiwyg"],match:function(t,e){return u(e.val(),t.value)},choices:function(t){return'<input type="text" placeholder="[a-z0-9]" />'}});acf.registerConditionType(g);var m=acf.Condition.extend({type:"contains",operator:"==contains",label:i("Value contains"),fieldTypes:["text","textarea","number","email","url","password","wysiwyg","oembed","select"],match:function(t,e){return l(e.val(),t.value)},choices:function(t){return'<input type="text" />'}});acf.registerConditionType(m);var v=h.extend({type:"trueFalseEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(v);var y=p.extend({type:"trueFalseNotEqualTo",choiceType:"select",fieldTypes:["true_false"],choices:function(t){return[{id:1,text:i("Checked")}]}});acf.registerConditionType(y);var b=acf.Condition.extend({type:"selectEqualTo",operator:"==",label:i("Value is equal to"),fieldTypes:["select","checkbox","radio","button_group"],match:function(t,e){var i=e.val();return i instanceof Array?c(t.value,i):a(t.value,i)},choices:function(e){var n=[],a=e.$setting("choices textarea").val().split("\n");return e.$input("allow_null").prop("checked")&&n.push({id:"",text:i("Null")}),a.map(function(e){(e=e.split(":"))[1]=e[1]||e[0],n.push({id:t.trim(e[0]),text:t.trim(e[1])})}),n}});acf.registerConditionType(b);var _=b.extend({type:"selectNotEqualTo",operator:"!=",label:i("Value is not equal to"),match:function(t,e){return!b.prototype.match.apply(this,arguments)}});acf.registerConditionType(_);var w=acf.Condition.extend({type:"greaterThan",operator:">",label:i("Value is greater than"),fieldTypes:["number","range"],match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),o(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(w);var x=w.extend({type:"lessThan",operator:"<",label:i("Value is less than"),match:function(t,e){var i=e.val();return i instanceof Array&&(i=i.length),s(i,t.value)},choices:function(t){return'<input type="number" />'}});acf.registerConditionType(x);var $=w.extend({type:"selectionGreaterThan",label:i("Selection is greater than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType($);var k=x.extend({type:"selectionLessThan",label:i("Selection is less than"),fieldTypes:["checkbox","select","post_object","page_link","relationship","taxonomy","user"]});acf.registerConditionType(k)}(jQuery),function(t,e){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 i=function(){var e=acf.get("post_id");return t.isNumeric(e)?e: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 n=acf.Model.extend({id:"MediaPopup",data:{},defaults:{},frame:!1,setup:function(e){t.extend(this.data,e)},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=i()),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=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Select","verb")),n.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])}),n.prototype.addFrameEvents.apply(this,arguments)},customizeFilters:function(e){var i=e.get("filters"),n;("image"==this.get("type")&&(i.filters.all.text=acf.__("All images"),delete i.filters.audio,delete i.filters.video,delete i.filters.image,t.each(i.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 e=acf.getMimeType(t);if(e){var n={text:e,props:{status:null,type:e,uploadedTo:null,orderby:"date",order:"DESC"},priority:20};i.filters[e]=n}});if("uploadedTo"===this.get("library")){var a=this.frame.options.library.uploadedTo;delete i.filters.unattached,delete i.filters.uploaded,t.each(i.filters,function(t,e){e.text+=" ("+acf.__("Uploaded to this post")+")",e.props.uploadedTo=a})}var r=this.get("field"),o;t.each(i.filters,function(t,e){e.props._acfuploader=r}),e.get("search").model.attributes._acfuploader=r,i.renderFilters&&i.renderFilters()}}),acf.models.EditMediaPopup=n.extend({id:"SelectMediaPopup",setup:function(t){t.button||(t.button=acf._x("Update","verb")),n.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,i=this.state().get("selection"),n=wp.media.attachment(t.acf.get("attachment"));i.add(n)},t),n.prototype.addFrameEvents.apply(this,arguments)}});var a=new acf.Model({id:"customizePrototypes",wait:"ready",initialize:function(){if(acf.isset(window,"wp","media","view")){var t=i();t&&acf.isset(wp,"media","view","settings","post")&&(wp.media.view.settings.post.id=t),this.customizeAttachmentsButton(),this.customizeAttachmentsRouter(),this.customizeAttachmentFilters(),this.customizeAttachmentCompat(),this.customizeAttachmentLibrary()}},customizeAttachmentsButton:function(){if(acf.isset(wp,"media","view","Button")){var t=wp.media.view.Button;wp.media.view.Button=t.extend({initialize:function(){var t=_.defaults(this.options,this.defaults);this.model=new Backbone.Model(t),this.listenTo(this.model,"change",this.render)}})}},customizeAttachmentsRouter:function(){if(acf.isset(wp,"media","view","Router")){var e=wp.media.view.Router;wp.media.view.Router=e.extend({addExpand:function(){var e=t(['<a href="#" class="acf-expand-details">','<span class="is-closed"><span class="acf-icon -left small grey"></span>'+acf.__("Expand Details")+"</span>",'<span class="is-open"><span class="acf-icon -right small grey"></span>'+acf.__("Collapse Details")+"</span>","</a>"].join(""));e.on("click",function(e){e.preventDefault();var i=t(this).closest(".media-modal");i.hasClass("acf-expanded")?i.removeClass("acf-expanded"):i.addClass("acf-expanded")}),this.$el.append(e)},initialize:function(){return e.prototype.initialize.apply(this,arguments),this.addExpand(),this}})}},customizeAttachmentFilters:function(){var e;acf.isset(wp,"media","view","AttachmentFilters","All")&&(wp.media.view.AttachmentFilters.All.prototype.renderFilters=function(){this.$el.html(_.chain(this.filters).map(function(e,i){return{el:t("<option></option>").val(i).html(e.text)[0],priority:e.priority||50}},this).sortBy("priority").pluck("el").value())})},customizeAttachmentCompat:function(){if(acf.isset(wp,"media","view","AttachmentCompat")){var e=wp.media.view.AttachmentCompat,i=!1;wp.media.view.AttachmentCompat=e.extend({render:function(){return this.rendered?this:(e.prototype.render.apply(this,arguments),this.$("#acf-form-data").length?(clearTimeout(i),i=setTimeout(t.proxy(function(){this.rendered=!0,acf.doAction("append",this.$el)},this),50),this):this)},save:function(t){var e={};t&&t.preventDefault(),e=acf.serializeForAjax(this.$el),this.controller.trigger("attachment:compat:waiting",["waiting"]),this.model.saveCompat(e).always(_.bind(this.postSave,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(['<div class="acf-selection-error">','<span class="selection-error-label">'+acf.__("Restricted")+"</span>",'<span class="selection-error-filename">'+l+"</span>",'<span class="selection-error-message">'+s+"</span>","</div>"].join("")),n.reset(),void n.single(a)}return t.prototype.toggleSelection.apply(this,arguments)}})}}})}(jQuery),function(t,e){acf.screen=new acf.Model({active:!0,xhr:!1,timeout:!1,wait:"load",events:{"change #page_template":"onChange","change #parent_id":"onChange","change #post-formats-select":"onChange","change .categorychecklist":"onChange","change .tagsdiv":"onChange",'change .acf-taxonomy-field[data-save="1"]':"onChange","change #product-type":"onChange"},isPost:function(){return"post"===acf.get("screen")},isUser:function(){return"user"===acf.get("screen")},isTaxonomy:function(){return"taxonomy"===acf.get("screen")},isAttachment:function(){return"attachment"===acf.get("screen")},isNavMenu:function(){return"nav_menu"===acf.get("screen")},isWidget:function(){return"widget"===acf.get("screen")},isComment:function(){return"comment"===acf.get("screen")},getPageTemplate:function(){var e=t("#page_template");return e.length?e.val():null},getPageParent:function(e,i){var i;return(i=t("#parent_id")).length?i.val():null},getPageType:function(t,e){return this.getPageParent()?"child":"parent"},getPostType:function(){return t("#post_type").val()},getPostFormat:function(e,i){var i;if((i=t("#post-formats-select input:checked")).length){var n=i.val();return"0"==n?"standard":n}return null},getPostCoreTerms:function(){var e={},i=acf.serialize(t(".categorydiv, .tagsdiv"));for(var n in i.tax_input&&(e=i.tax_input),i.post_category&&(e.category=i.post_category),e)acf.isArray(e[n])||(e[n]=e[n].split(/,[\s]?/));return e},getPostTerms:function(){var t=this.getPostCoreTerms();for(var e in acf.getFields({type:"taxonomy"}).map(function(e){if(e.get("save")){var i=e.val(),n=e.get("taxonomy");i&&(t[n]=t[n]||[],i=acf.isArray(i)?i:[i],t[n]=t[n].concat(i))}}),null!==(productType=this.getProductType())&&(t.product_type=[productType]),t)t[e]=acf.uniqueArray(t[e]);return t},getProductType:function(){var e=t("#product-type");return e.length?e.val():null},check:function(){if("post"===acf.get("screen")){this.xhr&&this.xhr.abort();var e=acf.parseArgs(this.data,{action:"acf/ajax/check_screen",screen:acf.get("screen"),exists:[]});this.isPost()&&(e.post_id=acf.get("post_id")),null!==(postType=this.getPostType())&&(e.post_type=postType),null!==(pageTemplate=this.getPageTemplate())&&(e.page_template=pageTemplate),null!==(pageParent=this.getPageParent())&&(e.page_parent=pageParent),null!==(pageType=this.getPageType())&&(e.page_type=pageType),null!==(postFormat=this.getPostFormat())&&(e.post_format=postFormat),null!==(postTerms=this.getPostTerms())&&(e.post_terms=postTerms),acf.getPostboxes().map(function(t){e.exists.push(t.get("key"))}),e=acf.applyFilters("check_screen_args",e);var i=function(t){acf.isAjaxSuccess(t)&&("post"==acf.get("screen")?this.renderPostScreen(t.data):"user"==acf.get("screen")&&this.renderUserScreen(t.data)),acf.doAction("check_screen_complete",t.data,e)};this.xhr=t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),type:"post",dataType:"json",context:this,success:i})}},onChange:function(t,e){this.setTimeout(this.check,1)},renderPostScreen:function(e){var i=[],n=function(e,i){var n=t._data(e[0]).events;for(var a in n)for(var r=0;r<n[a].length;r++)i.on(a,n[a][r].handler)},a=function(e,i){var n=i.indexOf(e);if(-1==n)return!1;for(var a=n-1;a>=0;a--)if(t("#"+i[a]).length)return t("#"+i[a]).after(t("#"+e));for(var a=n+1;a<i.length;a++)if(t("#"+i[a]).length)return t("#"+i[a]).before(t("#"+e));return!1};e.results.map(function(r,o){var s=acf.getPostbox(r.id);if(!s){var c=t(['<div id="'+r.id+'" class="postbox">','<button type="button" class="handlediv" aria-expanded="false">','<span class="screen-reader-text">Toggle panel: '+r.title+"</span>",'<span class="toggle-indicator" aria-hidden="true"></span>',"</button>",'<h2 class="hndle ui-sortable-handle">',"<span>"+r.title+"</span>","</h2>",'<div class="inside">',r.html,"</div>","</div>"].join(""));if(t("#adv-settings").length){var l=t("#adv-settings .metabox-prefs"),u=t(['<label for="'+r.id+'-hide">','<input class="hide-postbox-tog" name="'+r.id+'-hide" type="checkbox" id="'+r.id+'-hide" value="'+r.id+'" checked="checked">'," "+r.title,"</label>"].join(""));n(l.find("input").first(),u.find("input")),l.append(u)}n(t(".postbox .handlediv").first(),c.children(".handlediv")),n(t(".postbox .hndle").first(),c.children(".hndle")),"acf_after_title"==r.position&&(r.position="normal"),"side"===r.position?t("#"+r.position+"-sortables").append(c):t("#"+r.position+"-sortables").prepend(c);var d=[];if(e.results.map(function(e){r.position===e.position&&t("#"+r.position+"-sortables #"+e.id).length&&d.push(e.id)}),a(r.id,d),e.sorted)for(var f in e.sorted){var d=e.sorted[f].split(",");if(a(r.id,d))break}s=acf.newPostbox(r),acf.doAction("append",c),acf.doAction("append_postbox",s)}s.showEnable(),acf.doAction("show_postbox",s),i.push(r.id)}),acf.getPostboxes().map(function(t){-1===i.indexOf(t.get("id"))&&(t.hideDisable(),acf.doAction("hide_postbox",t))}),t("#acf-style").html(e.style)},renderUserScreen:function(t){}});var i=new acf.Model({wait:"load",initialize:function(){acf.isGutenberg()&&(wp.data.subscribe(this.proxy(this.onChange)),acf.screen.getPageTemplate=this.getPageTemplate,acf.screen.getPageParent=this.getPageParent,acf.screen.getPostType=this.getPostType,acf.screen.getPostFormat=this.getPostFormat,acf.screen.getPostCoreTerms=this.getPostCoreTerms,acf.unload.disable())},onChange:function(){var t=wp.data.select("core/editor").getPostEdits(),e=["template","parent","format"],i;(wp.data.select("core").getTaxonomies()||[]).map(function(t){e.push(t.rest_base)}),(e=e.filter(this.proxy(function(e){return void 0!==t[e]&&t[e]!==this.get(e)}))).length&&this.triggerChange(t)},triggerChange:function(t){void 0!==t&&(this.data=t),acf.screen.check()},getPageTemplate:function(){return wp.data.select("core/editor").getEditedPostAttribute("template")},getPageParent:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("parent")},getPostType:function(){return wp.data.select("core/editor").getEditedPostAttribute("type")},getPostFormat:function(t,e){return wp.data.select("core/editor").getEditedPostAttribute("format")},getPostCoreTerms:function(){var t={},e;return(wp.data.select("core").getTaxonomies()||[]).map(function(e){var i=wp.data.select("core/editor").getEditedPostAttribute(e.rest_base);i&&(t[e.slug]=i)}),t}});acf.screen.refreshAvailableMetaBoxesPerLocation=function(){var t=wp.data.select("core/edit-post"),e=wp.data.dispatch("core/edit-post"),i={};t.getActiveMetaBoxLocations().map(function(e){i[e]=t.getMetaBoxesPerLocation(e)});var n=[];for(var a in i)n=n.concat(i[a].map(function(t){return t.id}));acf.getPostboxes().map(function(t){if(-1===n.indexOf(t.get("id"))){var e=t.$el.closest("form").attr("class").replace("metabox-location-","");i[e]=i[e]||[],i[e].push({id:t.get("id"),title:t.get("title")})}}),e.setAvailableMetaBoxesPerLocation(i)}}(jQuery),function(t,e){function i(){return acf.isset(window,"jQuery","fn","select2","amd")?4:!!acf.isset(window,"Select2")&&3}acf.newSelect2=function(t,e){if(e=acf.parseArgs(e,{allowNull:!1,placeholder:"",multiple:!1,field:!1,ajax:!1,ajaxAction:"",ajaxData:function(t){return t},ajaxResults:function(t){return t}}),4==i())var n=new a(t,e);else var n=new r(t,e);return acf.doAction("new_select2",n),n};var n=acf.Model.extend({setup:function(e,i){t.extend(this.data,i),this.$el=e},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(e){e=acf.parseArgs(e,{id:"",text:"",selected:!1});var i=this.getOption(e.id);return i.length||((i=t("<option></option>")).html(e.text),i.attr("value",e.id),i.prop("selected",e.selected),this.$el.append(i)),i},getValue:function(){var e=[],i=this.$el.find("option:selected");return i.exists()?((i=i.sort(function(t,e){return+t.getAttribute("data-i")-+e.getAttribute("data-i")})).each(function(){var i=t(this);e.push({$el:i,id:i.attr("value"),text:i.text()})}),e):e},mergeOptions:function(){},getChoices:function(){var e=function(i){var n=[];return i.children().each(function(){var i=t(this);i.is("optgroup")?n.push({text:i.attr("label"),children:e(i)}):n.push({id:i.attr("value"),text:i.text()})}),n};return e(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})).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(e,i){var e;return(e=this.getAjaxResults(e,i)).more&&(e.pagination={more:!0}),setTimeout(t.proxy(this.mergeOptions,this),1),e},destroy:function(){this.$el.data("select2")&&this.$el.select2("destroy"),this.$el.siblings(".select2-container").remove()}}),a=n.extend({initialize:function(){var e=this.$el,i={width:"100%",
|
4 |
+
allowClear:this.get("allowNull"),placeholder:this.get("placeholder"),multiple:this.get("multiple"),data:[],escapeMarkup:function(t){return t}};i.multiple&&this.getValue().map(function(t){t.$el.detach().appendTo(e)}),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(i.ajax={url:acf.get("ajaxurl"),delay:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),processResults:t.proxy(this.processAjaxResults,this)});var n=this.get("field");i=acf.applyFilters("select2_args",i,e,this.data,n||!1,this),e.select2(i);var a=e.next(".select2-container");if(i.multiple){var r=a.find("ul");r.sortable({stop:function(i){r.find(".select2-selection__choice").each(function(){var i;t(t(this).data("data").element).detach().appendTo(e)}),e.trigger("change")}}),e.on("select2:select",this.proxy(function(t){this.getOption(t.params.data.id).detach().appendTo(this.$el)}))}a.addClass("-acf"),acf.doAction("select2_init",e,i,this.data,n||!1,this)},mergeOptions:function(){var e=!1,i=!1;t('.select2-results__option[role="group"]').each(function(){var n=t(this).children("ul"),a=t(this).children("strong");if(i&&i.text()===a.text())return e.append(n.children()),void t(this).remove();e=n,i=a})}}),r=n.extend({initialize:function(){var e=this.$el,i=this.getValue(),n=this.get("multiple"),a={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,e){e(n?i:i.shift())}},r=e.siblings("input");r.length||(r=t('<input type="hidden" />'),e.before(r)),inputValue=i.map(function(t){return t.id}).join("||"),r.val(inputValue),a.multiple&&i.map(function(t){t.$el.detach().appendTo(e)}),a.allowClear&&(a.data=a.data.filter(function(t){return""!==t.id})),e.removeData("ajax"),e.removeAttr("data-ajax"),this.get("ajax")&&(a.ajax={url:acf.get("ajaxurl"),quietMillis:250,dataType:"json",type:"post",cache:!1,data:t.proxy(this.getAjaxData,this),results:t.proxy(this.processAjaxResults,this)});var o=this.get("field");a=acf.applyFilters("select2_args",a,e,this.data,o||!1,this),r.select2(a);var s=r.select2("container"),c=t.proxy(this.getOption,this);if(a.multiple){var l=s.find("ul");l.sortable({stop:function(){l.find(".select2-search-choice").each(function(){var i=t(this).data("select2Data"),n;c(i.id).detach().appendTo(e)}),e.trigger("change")}})}r.on("select2-selecting",function(i){var n=i.choice,a=c(n.id);a.length||(a=t('<option value="'+n.id+'">'+n.text+"</option>")),a.detach().appendTo(e)}),s.addClass("-acf"),acf.doAction("select2_init",e,a,this.data,o||!1,this),r.on("change",function(){var t=r.val();t.indexOf("||")&&(t=t.split("||")),e.val(t).trigger("change")}),e.hide()},mergeOptions:function(){var e=!1,i=!1;t("#select2-drop .select2-result-with-children").each(function(){var n=t(this).children("ul"),a=t(this).children(".select2-result-label");if(i&&i.text()===a.text())return i.append(n.children()),void t(this).remove();e=n,i=a})},getAjaxData:function(t,e){var i={term:t,page:e};return n.prototype.getAjaxData.apply(this,[i])}}),o=new acf.Model({priority:5,wait:"prepare",initialize:function(){var t=acf.get("locale"),e=acf.get("rtl"),n=acf.get("select2L10n"),a=i();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 e=acf.get("select2L10n"),i=acf.get("locale");i=i.replace("_","-");var n={formatMatches:function(t){return t>1?e.matches_n.replace("%d",t):e.matches_1},formatNoMatches:function(){return e.matches_0},formatAjaxError:function(){return e.load_fail},formatInputTooShort:function(t,i){var n=i-t.length;return n>1?e.input_too_short_n.replace("%d",n):e.input_too_short_1},formatInputTooLong:function(t,i){var n=t.length-i;return n>1?e.input_too_long_n.replace("%d",n):e.input_too_long_1},formatSelectionTooBig:function(t){return t>1?e.selection_too_long_n.replace("%d",t):e.selection_too_long_1},formatLoadMore:function(){return e.load_more},formatSearching:function(){return e.searching}};t.fn.select2.locales=t.fn.select2.locales||{},t.fn.select2.locales[i]=n,t.extend(t.fn.select2.defaults,n)}})}(jQuery),function(t,e){acf.tinymce={defaults:function(){return"undefined"!=typeof tinyMCEPreInit&&{tinymce:tinyMCEPreInit.mceInit.acf_content,quicktags:tinyMCEPreInit.qtInit.acf_content};var t},initialize:function(t,e){(e=acf.parseArgs(e,{tinymce:!0,quicktags:!0,toolbar:"full",mode:"visual",field:!1})).tinymce&&this.initializeTinymce(t,e),e.quicktags&&this.initializeQuicktags(t,e)},initializeTinymce:function(e,i){var n=t("#"+e),a=this.defaults(),r=acf.get("toolbars"),o=i.field||!1,s=o.$el||!1;if("undefined"==typeof tinymce)return!1;if(!a)return!1;if(tinymce.get(e))return this.enable(e);var c=t.extend({},a.tinymce,i.tinymce);c.id=e,c.selector="#"+e;var l=i.toolbar;if(l&&r&&r[l])for(var u=1;u<=4;u++)c["toolbar"+u]=r[l][u]||"";if(c.setup=function(t){t.on("change",function(e){t.save(),n.trigger("change")}),t.on("mouseup",function(t){var e=new MouseEvent("mouseup");window.dispatchEvent(e)})},c.wp_autoresize_on=!1,c.tadv_noautop||(c.wpautop=!0),c=acf.applyFilters("wysiwyg_tinymce_settings",c,e,o),tinyMCEPreInit.mceInit[e]=c,"visual"==i.mode){var d=tinymce.init(c),f=tinymce.get(e);if(!f)return!1;f.acf=i.field,acf.doAction("wysiwyg_tinymce_init",f,f.id,c,o)}},initializeQuicktags:function(e,i){var n=this.defaults();if("undefined"==typeof quicktags)return!1;if(!n)return!1;var a=t.extend({},n.quicktags,i.quicktags);a.id=e;var r=i.field||!1,o=r.$el||!1;a=acf.applyFilters("wysiwyg_quicktags_settings",a,a.id,r),tinyMCEPreInit.qtInit[e]=a;var s=quicktags(a);if(!s)return!1;this.buildQuicktags(s),acf.doAction("wysiwyg_quicktags_init",s,s.id,a,r)},buildQuicktags:function(t){var e,i,n,a,r,t,o,s,c,l,u=",strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,";for(s in e=t.canvas,i=t.name,n=t.settings,r="",a={},c="",l=t.id,n.buttons&&(c=","+n.buttons+","),edButtons)edButtons[s]&&(o=edButtons[s].id,c&&-1!==u.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 i=new acf.Model({priority:5,actions:{prepare:"onPrepare",ready:"onReady"},onPrepare:function(){var e=t("#acf-hidden-wp-editor");e.exists()&&e.appendTo("body")},onReady:function(){acf.isset(window,"wp","oldEditor")&&(wp.editor.autop=wp.oldEditor.autop,wp.editor.removep=wp.oldEditor.removep),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,e){var i=acf.Model.extend({id:"Validator",data:{errors:[],notice:null,status:""},events:{"changed:status":"onChangeStatus"},addErrors:function(t){t.map(this.addError,this)},addError:function(t){this.data.errors.push(t)},hasErrors:function(){return this.data.errors.length},clearErrors:function(){return this.data.errors=[]},getErrors:function(){return this.data.errors},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(){if(this.hasErrors()){var e=this.getFieldErrors(),i=this.getGlobalErrors(),n=0,a=!1;e.map(function(t){var e=this.$('[name="'+t.input+'"]').first();if(e.length||(e=this.$('[name^="'+t.input+'"]').first()),e.length){n++;var i=acf.getClosestField(e);i.showError(t.message),a||(a=i.$el)}},this);var r=acf.__("Validation failed");if(i.map(function(t){r+=". "+t.message}),1==n?r+=". "+acf.__("1 field requires attention"):n>1&&(r+=". "+acf.__("%d fields require attention").replace("%d",n)),this.has("notice"))this.get("notice").update({type:"error",text:r});else{var o=acf.newNotice({type:"error",text:r,target:this.$el});this.set("notice",o)}a||(a=this.get("notice").$el),setTimeout(function(){t("html, body").animate({scrollTop:a.offset().top-t(window).height()/2},500)},10)}},onChangeStatus:function(t,e,i,n){this.$el.removeClass("is-"+n).addClass("is-"+i)},validate:function(e){if(e=acf.parseArgs(e,{event:!1,reset:!1,loading:function(){},complete:function(){},failure:function(){},success:function(t){t.submit()}}),"valid"==this.get("status"))return!0;if("validating"==this.get("status"))return!1;if(!this.$(".acf-field").length)return!0;if(e.event){var i=t.Event(null,e.event);e.success=function(){acf.enableSubmit(t(i.target)).trigger(i)}}acf.doAction("validation_begin",this.$el),acf.lockForm(this.$el),e.loading(this.$el,this),this.set("status","validating");var n=function(t){if(acf.isAjaxSuccess(t)){var e=acf.applyFilters("validation_complete",t.data,this.$el,this);e.valid||this.addErrors(e.errors)}},a=function(){acf.unlockForm(this.$el),this.hasErrors()?(this.set("status","invalid"),acf.doAction("validation_failure",this.$el,this),this.showErrors(),e.failure(this.$el,this)):(this.set("status","valid"),this.has("notice")&&this.get("notice").update({type:"success",text:acf.__("Validation successful"),timeout:1e3}),acf.doAction("validation_success",this.$el,this),acf.doAction("submit",this.$el),e.success(this.$el,this),acf.lockForm(this.$el),e.reset&&this.reset()),e.complete(this.$el,this),this.clearErrors()},r=acf.serialize(this.$el);return r.action="acf/validate_save_post",t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),type:"post",dataType:"json",context:this,success:n,complete:a}),!1},setup:function(t){this.$el=t},reset:function(){this.set("errors",[]),this.set("notice",null),this.set("status",""),acf.unlockForm(this.$el)}}),n=function(t){var e=t.data("acf");return e||(e=new i(t)),e};acf.validateForm=function(t){return n(t.form).validate(t)},acf.enableSubmit=function(t){return t.removeClass("disabled")},acf.disableSubmit=function(t){return t.addClass("disabled")},acf.showSpinner=function(t){return t.addClass("is-active"),t.css("display","inline-block"),t},acf.hideSpinner=function(t){return t.removeClass("is-active"),t.css("display","none"),t},acf.lockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.hideSpinner(n),acf.disableSubmit(i),acf.showSpinner(n.last()),t},acf.unlockForm=function(t){var e=a(t),i=e.find('.button, [type="submit"]'),n=e.find(".spinner, .acf-spinner");return acf.enableSubmit(i),acf.hideSpinner(n),t};var a=function(t){var e,e,e,e;return(e=t.find("#submitdiv")).length?e:(e=t.find("#submitpost")).length?e:(e=t.find("p.submit").last()).length?e:(e=t.find(".acf-form-submit")).length?e:t};acf.validation=new acf.Model({id:"validation",active:!0,wait:"prepare",actions:{ready:"addInputEvents",append:"addInputEvents"},events:{'click input[type="submit"]':"onClickSubmit",'click button[type="submit"]':"onClickSubmit","click #save-post":"onClickSave","submit form#post":"onSubmitPost","submit form":"onSubmit"},initialize:function(){acf.get("validation")||(this.active=!1,this.actions={},this.events={})},enable:function(){this.active=!0},disable:function(){this.active=!1},reset:function(t){n(t).reset()},addInputEvents:function(e){if("safari"!==acf.get("browser")){var i=t(".acf-field [name]",e);i.length&&this.on(i,"invalid","onInvalid")}},onInvalid:function(t,e){t.preventDefault();var i=e.closest("form");i.length&&(n(i).addError({input:e.attr("name"),message:t.target.validationMessage}),i.submit())},onClickSubmit:function(t,e){this.set("originalEvent",t)},onClickSave:function(t,e){this.set("ignore",!0)},onClickSubmitGutenberg:function(e,i){var n;acf.validateForm({form:t("#editor"),event:e,reset:!0,failure:function(t,e){var i=e.get("notice").$el;i.appendTo(".components-notice-list"),i.find(".acf-notice-dismiss").removeClass("small")}})||(e.preventDefault(),e.stopImmediatePropagation())},onSubmitPost:function(e,i){"dopreview"===t("input#wp-preview").val()&&(this.set("ignore",!0),acf.unlockForm(i))},onSubmit:function(t,e){if(!this.active||this.get("ignore")||t.isDefaultPrevented())return this.allowSubmit();var i;acf.validateForm({form:e,event:this.get("originalEvent")})||t.preventDefault()},allowSubmit:function(){return this.set("ignore",!1),this.set("originalEvent",!1),!0}})}(jQuery),function(t,e){var i=new acf.Model({priority:90,initialize:function(){this.refresh=acf.debounce(this.refresh,0)},actions:{new_field:"refresh",show_field:"refresh",hide_field:"refresh",remove_field:"refresh",unmount_field:"refresh",remount_field:"refresh"},refresh:function(){acf.doAction("refresh"),t(window).trigger("acfrefresh")}}),n=new acf.Model({priority:1,actions:{sortstart:"onSortstart",sortstop:"onSortstop"},onSortstart:function(t){acf.doAction("unmount",t)},onSortstop:function(t){acf.doAction("remount",t)}}),a=new acf.Model({actions:{sortstart:"onSortstart"},onSortstart:function(e,i){e.is("tr")&&(i.html('<td style="padding:0;" colspan="'+i.children().length+'"></td>'),e.addClass("acf-sortable-tr-helper"),e.children().each(function(){t(this).width(t(this).width())}),i.height(e.height()+"px"),e.removeClass("acf-sortable-tr-helper"))}}),r=new acf.Model({actions:{after_duplicate:"onAfterDuplicate"},onAfterDuplicate:function(e,i){var n=[];e.find("select").each(function(e){n.push(t(this).val())}),i.find("select").each(function(e){t(this).val(n[e])})}}),o=new acf.Model({id:"tableHelper",priority:20,actions:{refresh:"renderTables"},renderTables:function(e){var i=this;t(".acf-table:visible").each(function(){i.renderTable(t(this))})},renderTable:function(e){var i=e.find("> thead > tr:visible > th[data-key]"),n=e.find("> tbody > tr:visible > td[data-key]");if(!i.length||!n.length)return!1;i.each(function(e){var i=t(this),a=i.data("key"),r=n.filter('[data-key="'+a+'"]'),o=r.filter(".acf-hidden");r.removeClass("acf-empty"),r.length===o.length?acf.hide(i):(acf.show(i),o.addClass("acf-empty"))}),i.css("width","auto"),i=i.not(".acf-hidden");var a=100,r=i.length,o;i.filter("[data-width]").each(function(){var e=t(this).data("width");t(this).css("width",e+"%"),a-=e});var s=i.not("[data-width]");if(s.length){var c=a/s.length;s.css("width",c+"%"),a=0}a>0&&i.last().css("width","auto"),n.filter(".-collapsed-target").each(function(){var e=t(this);e.parent().hasClass("-collapsed")?e.attr("colspan",i.length):e.removeAttr("colspan")})}}),s=new acf.Model({id:"fieldsHelper",priority:30,actions:{refresh:"renderGroups"},renderGroups:function(){var e=this;t(".acf-fields:visible").each(function(){e.renderGroup(t(this))})},renderGroup:function(e){var i=0,n=0,a=t(),r=e.children(".acf-field[data-width]:visible");return!!r.length&&(e.hasClass("-left")?(r.removeAttr("data-width"),r.css("width","auto"),!1):(r.removeClass("-r0 -c0").css({"min-height":0}),r.each(function(e){var r=t(this),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left);a.length&&s>i&&(a.css({"min-height":n+"px"}),o=r.position(),s=Math.ceil(o.top),c=Math.ceil(o.left),i=0,n=0,a=t()),acf.get("rtl")&&(c=Math.ceil(r.parent().width()-(o.left+r.outerWidth()))),0==s?r.addClass("-r0"):0==c&&r.addClass("-c0");var l=Math.ceil(r.outerHeight())+1;n=Math.max(n,l),i=Math.max(i,s),a=a.add(r)}),void(a.length&&a.css({"min-height":n+"px"}))))}})}(jQuery),function(t,e){acf.newCompatibility=function(t,e){return(e=e||{}).__proto__=t.__proto__,t.__proto__=e,t.compatibility=e,e},acf.getCompatibility=function(t){return t.compatibility||null};var i=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});i._e=function(t,e){t=t||"";var i=(e=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},i.get_selector=function(e){var i=".acf-field";if(!e)return i;if(t.isPlainObject(e)){if(t.isEmptyObject(e))return i;for(var n in e){e=e[n];break}}return i+="-"+e,i=acf.strReplace("_","-",i),i=acf.strReplace("field-field-","field-",i)},i.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)},i.get_field=function(t,e){var i=this.get_fields.apply(this,arguments);return!!i.length&&i.first()},i.get_closest_field=function(t,e){return t.closest(this.get_selector(e))},i.get_field_wrap=function(t){return t.closest(this.get_selector())},i.get_field_key=function(t){return t.data("key")},i.get_field_type=function(t){return t.data("type")},i.get_data=function(t,e){return acf.parseArgs(t.data(),e)},i.maybe_get=function(t,e,i){void 0===i&&(i=null),keys=String(e).split(".");for(var n=0;n<keys.length;n++){if(!t.hasOwnProperty(keys[n]))return i;t=t[keys[n]]}return t};var n=function(t){return t instanceof acf.Field?t.$el:t},a=function(t){return acf.arrayArgs(t).map(n)},r=function(e){return function(){if(arguments.length)var i=a(arguments);else var i=[t(document)];return e.apply(this,i)}};i.add_action=function(t,e,n,a){var o=t.split(" "),s=o.length;if(s>1){for(var c=0;c<s;c++)t=o[c],i.add_action.apply(this,arguments);return this}var e=r(e);return acf.addAction.apply(this,arguments)},i.add_filter=function(t,e,i,n){var e=r(e);return acf.addFilter.apply(this,arguments)},i.model={actions:{},filters:{},events:{},extend:function(e){var i=t.extend({},this,e);return t.each(i.actions,function(t,e){i._add_action(t,e)}),t.each(i.filters,function(t,e){i._add_filter(t,e)}),t.each(i.events,function(t,e){i._add_event(t,e)}),i},_add_action:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_action(t,this[e],a,this)},_add_filter:function(t,e){var i=this,n=t.split(" "),t=n[0]||"",a=n[1]||10;acf.add_filter(t,this[e],a,this)},_add_event:function(e,i){var n=this,a=e.indexOf(" "),r=a>0?e.substr(0,a):e,o=a>0?e.substr(a+1):"",s=function(e){e.$el=t(this),acf.field_group&&(e.$field=e.$el.closest(".acf-field-object")),"function"==typeof n.event&&(e=n.event(e)),n[i].apply(n,arguments)};o?t(document).on(r,o,s):t(document).on(r,s)},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}},i.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(e,i){var n=this,a=e.substr(0,e.indexOf(" ")),r=e.substr(e.indexOf(" ")+1),o=acf.get_selector(n.type);t(document).on(a,o+" "+r,function(e){var a=t(this),r=acf.get_closest_field(a,n.type);r.length&&(r.is(n.$field)||n.set("$field",r),e.$el=a,e.$field=r,n[i].apply(n,[e]))})},_set_$field:function(){"function"==typeof this.focus&&this.focus()},doFocus:function(t){return this.set("$field",t)}});var o=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})},fetch:acf.validateForm,enableSubmit:acf.enableSubmit,disableSubmit:acf.disableSubmit,showSpinner:acf.showSpinner,hideSpinner:acf.hideSpinner,unlockForm:acf.unlockForm,lockForm:acf.lockForm});i.tooltip={tooltip:function(t,e){var i;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)}})}},i.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){var e;return t.mime_types&&(t.allowedTypes=t.mime_types),t.id&&(t.attachment=t.id),acf.newMediaPopup(t).frame}}),i.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()}},i.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)},fetch:acf.screen.check}),i.ajax=acf.screen}(jQuery);
|
includes/fields/class-acf-field-google-map.php
CHANGED
@@ -111,32 +111,15 @@ class acf_field_google_map extends acf_field {
|
|
111 |
|
112 |
function render_field( $field ) {
|
113 |
|
114 |
-
//
|
115 |
-
if( empty($field['value']) ) {
|
116 |
-
$field['value'] = array();
|
117 |
-
}
|
118 |
-
|
119 |
-
|
120 |
-
// value
|
121 |
-
$field['value'] = wp_parse_args($field['value'], array(
|
122 |
-
'address' => '',
|
123 |
-
'lat' => '',
|
124 |
-
'lng' => ''
|
125 |
-
));
|
126 |
-
|
127 |
-
|
128 |
-
// default options
|
129 |
foreach( $this->default_values as $k => $v ) {
|
130 |
-
|
131 |
-
if( empty($field[ $k ]) ) {
|
132 |
$field[ $k ] = $v;
|
133 |
-
}
|
134 |
-
|
135 |
}
|
136 |
|
137 |
-
|
138 |
-
|
139 |
-
$atts = array(
|
140 |
'id' => $field['id'],
|
141 |
'class' => "acf-google-map {$field['class']}",
|
142 |
'data-lat' => $field['center_lat'],
|
@@ -144,20 +127,18 @@ class acf_field_google_map extends acf_field {
|
|
144 |
'data-zoom' => $field['zoom'],
|
145 |
);
|
146 |
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
$
|
|
|
|
|
151 |
}
|
152 |
|
153 |
?>
|
154 |
-
<div <?php acf_esc_attr_e($
|
155 |
|
156 |
-
|
157 |
-
<?php foreach( $field['value'] as $k => $v ):
|
158 |
-
acf_hidden_input(array( 'name' => $field['name'].'['.$k.']', 'value' => $v, 'data-name' => $k ));
|
159 |
-
endforeach; ?>
|
160 |
-
</div>
|
161 |
|
162 |
<div class="title">
|
163 |
|
@@ -167,7 +148,7 @@ class acf_field_google_map extends acf_field {
|
|
167 |
?><a href="#" data-name="locate" class="acf-icon -location grey" title="<?php _e("Find current location", 'acf'); ?>"></a>
|
168 |
</div>
|
169 |
|
170 |
-
<input class="search" type="text" placeholder="<?php _e("Search for address...",'acf'); ?>" value="<?php echo esc_attr($
|
171 |
<i class="acf-loading"></i>
|
172 |
|
173 |
</div>
|
@@ -240,40 +221,32 @@ class acf_field_google_map extends acf_field {
|
|
240 |
|
241 |
}
|
242 |
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
|
|
264 |
}
|
265 |
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
return false;
|
270 |
-
|
271 |
-
}
|
272 |
-
|
273 |
-
|
274 |
-
// return
|
275 |
-
return $valid;
|
276 |
-
|
277 |
}
|
278 |
|
279 |
|
@@ -292,16 +265,20 @@ class acf_field_google_map extends acf_field {
|
|
292 |
*
|
293 |
* @return $value - the modified value
|
294 |
*/
|
295 |
-
|
296 |
function update_value( $value, $post_id, $field ) {
|
297 |
|
298 |
-
//
|
299 |
-
if(
|
300 |
-
$value =
|
|
|
|
|
|
|
|
|
|
|
301 |
}
|
302 |
|
303 |
-
//
|
304 |
-
return
|
305 |
}
|
306 |
}
|
307 |
|
111 |
|
112 |
function render_field( $field ) {
|
113 |
|
114 |
+
// Apply defaults.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
foreach( $this->default_values as $k => $v ) {
|
116 |
+
if( !$field[ $k ] ) {
|
|
|
117 |
$field[ $k ] = $v;
|
118 |
+
}
|
|
|
119 |
}
|
120 |
|
121 |
+
// Attrs.
|
122 |
+
$attrs = array(
|
|
|
123 |
'id' => $field['id'],
|
124 |
'class' => "acf-google-map {$field['class']}",
|
125 |
'data-lat' => $field['center_lat'],
|
127 |
'data-zoom' => $field['zoom'],
|
128 |
);
|
129 |
|
130 |
+
$search = '';
|
131 |
+
if( $field['value'] ) {
|
132 |
+
$attrs['class'] .= ' -value';
|
133 |
+
$search = $field['value']['address'];
|
134 |
+
} else {
|
135 |
+
$field['value'] = '';
|
136 |
}
|
137 |
|
138 |
?>
|
139 |
+
<div <?php acf_esc_attr_e($attrs); ?>>
|
140 |
|
141 |
+
<?php acf_hidden_input( array('name' => $field['name'], 'value' => $field['value']) ); ?>
|
|
|
|
|
|
|
|
|
142 |
|
143 |
<div class="title">
|
144 |
|
148 |
?><a href="#" data-name="locate" class="acf-icon -location grey" title="<?php _e("Find current location", 'acf'); ?>"></a>
|
149 |
</div>
|
150 |
|
151 |
+
<input class="search" type="text" placeholder="<?php _e("Search for address...",'acf'); ?>" value="<?php echo esc_attr( $search ); ?>" />
|
152 |
<i class="acf-loading"></i>
|
153 |
|
154 |
</div>
|
221 |
|
222 |
}
|
223 |
|
224 |
+
/**
|
225 |
+
* load_value
|
226 |
+
*
|
227 |
+
* Filters the value loaded from the database.
|
228 |
+
*
|
229 |
+
* @date 16/10/19
|
230 |
+
* @since 5.8.1
|
231 |
+
*
|
232 |
+
* @param mixed $value The value loaded from the database.
|
233 |
+
* @param mixed $post_id The post ID where the value is saved.
|
234 |
+
* @param array $field The field settings array.
|
235 |
+
* @return (array|false)
|
236 |
+
*/
|
237 |
+
function load_value( $value, $post_id, $field ) {
|
238 |
+
|
239 |
+
// Ensure value is an array.
|
240 |
+
if( $value ) {
|
241 |
+
return wp_parse_args($value, array(
|
242 |
+
'address' => '',
|
243 |
+
'lat' => 0,
|
244 |
+
'lng' => 0
|
245 |
+
));
|
246 |
}
|
247 |
|
248 |
+
// Return default.
|
249 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
|
252 |
|
265 |
*
|
266 |
* @return $value - the modified value
|
267 |
*/
|
|
|
268 |
function update_value( $value, $post_id, $field ) {
|
269 |
|
270 |
+
// decode JSON string.
|
271 |
+
if( is_string($value) ) {
|
272 |
+
$value = json_decode( wp_unslash($value), true );
|
273 |
+
}
|
274 |
+
|
275 |
+
// Ensure value is an array.
|
276 |
+
if( $value ) {
|
277 |
+
return (array) $value;
|
278 |
}
|
279 |
|
280 |
+
// Return default.
|
281 |
+
return false;
|
282 |
}
|
283 |
}
|
284 |
|
includes/fields/class-acf-field-wysiwyg.php
CHANGED
@@ -427,7 +427,7 @@ class acf_field_wysiwyg extends acf_field {
|
|
427 |
// delay
|
428 |
acf_render_field_setting( $field, array(
|
429 |
'label' => __('Delay initialization?','acf'),
|
430 |
-
'instructions' => __('TinyMCE will not be
|
431 |
'name' => 'delay',
|
432 |
'type' => 'true_false',
|
433 |
'ui' => 1,
|
427 |
// delay
|
428 |
acf_render_field_setting( $field, array(
|
429 |
'label' => __('Delay initialization?','acf'),
|
430 |
+
'instructions' => __('TinyMCE will not be initialized until field is clicked','acf'),
|
431 |
'name' => 'delay',
|
432 |
'type' => 'true_false',
|
433 |
'ui' => 1,
|
includes/forms/form-attachment.php
CHANGED
@@ -128,13 +128,13 @@ acf.unload.active = 0;
|
|
128 |
$is_page = acf_is_screen('attachment');
|
129 |
$post_id = $post->ID;
|
130 |
$el = 'tr';
|
131 |
-
$args = array(
|
132 |
-
'attachment' => $post_id
|
133 |
-
);
|
134 |
|
135 |
|
136 |
// get field groups
|
137 |
-
$field_groups = acf_get_field_groups(
|
|
|
|
|
|
|
138 |
|
139 |
|
140 |
// render
|
128 |
$is_page = acf_is_screen('attachment');
|
129 |
$post_id = $post->ID;
|
130 |
$el = 'tr';
|
|
|
|
|
|
|
131 |
|
132 |
|
133 |
// get field groups
|
134 |
+
$field_groups = acf_get_field_groups(array(
|
135 |
+
'attachment_id' => $post_id,
|
136 |
+
'attachment' => $post_id // Leave for backwards compatibility
|
137 |
+
));
|
138 |
|
139 |
|
140 |
// render
|
includes/forms/form-front.php
CHANGED
@@ -633,7 +633,7 @@ function acf_form( $args = array() ) {
|
|
633 |
|
634 |
function acf_get_form( $id = '' ) {
|
635 |
|
636 |
-
acf()->form_front->get_form( $id );
|
637 |
|
638 |
}
|
639 |
|
633 |
|
634 |
function acf_get_form( $id = '' ) {
|
635 |
|
636 |
+
return acf()->form_front->get_form( $id );
|
637 |
|
638 |
}
|
639 |
|
includes/locations/class-acf-location-post-taxonomy.php
CHANGED
@@ -50,6 +50,11 @@ class acf_location_post_taxonomy extends acf_location {
|
|
50 |
$post_id = acf_maybe_get( $screen, 'post_id' );
|
51 |
$post_terms = acf_maybe_get( $screen, 'post_terms' );
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
// bail early if not a post
|
54 |
if( !$post_id ) return false;
|
55 |
|
50 |
$post_id = acf_maybe_get( $screen, 'post_id' );
|
51 |
$post_terms = acf_maybe_get( $screen, 'post_terms' );
|
52 |
|
53 |
+
// Allow compatibility for attachments.
|
54 |
+
if( !$post_id ) {
|
55 |
+
$post_id = acf_maybe_get( $screen, 'attachment_id' );
|
56 |
+
}
|
57 |
+
|
58 |
// bail early if not a post
|
59 |
if( !$post_id ) return false;
|
60 |
|
lang/acf-pt_PT.mo
CHANGED
Binary file
|
lang/acf-pt_PT.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Advanced Custom Fields PRO\n"
|
6 |
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
|
7 |
-
"POT-Creation-Date: 2019-
|
8 |
-
"PO-Revision-Date: 2019-
|
9 |
"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
|
10 |
"Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
|
11 |
"Language: pt_PT\n"
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
-
"X-Generator: Poedit 2.2.
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
19 |
"X-Textdomain-Support: yes\n"
|
@@ -22,107 +22,107 @@ msgstr ""
|
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
24 |
|
25 |
-
#: acf.php:
|
26 |
msgid "Advanced Custom Fields"
|
27 |
msgstr "Advanced Custom Fields"
|
28 |
|
29 |
-
#: acf.php:
|
30 |
msgid "Field Groups"
|
31 |
msgstr "Grupos de campos"
|
32 |
|
33 |
-
#: acf.php:
|
34 |
msgid "Field Group"
|
35 |
msgstr "Grupo de campos"
|
36 |
|
37 |
-
#: acf.php:
|
38 |
#: pro/fields/class-acf-field-flexible-content.php:558
|
39 |
msgid "Add New"
|
40 |
msgstr "Adicionar novo"
|
41 |
|
42 |
-
#: acf.php:
|
43 |
msgid "Add New Field Group"
|
44 |
msgstr "Adicionar novo grupo de campos"
|
45 |
|
46 |
-
#: acf.php:
|
47 |
msgid "Edit Field Group"
|
48 |
msgstr "Editar grupo de campos"
|
49 |
|
50 |
-
#: acf.php:
|
51 |
msgid "New Field Group"
|
52 |
msgstr "Novo grupo de campos"
|
53 |
|
54 |
-
#: acf.php:
|
55 |
msgid "View Field Group"
|
56 |
msgstr "Ver grupo de campos"
|
57 |
|
58 |
-
#: acf.php:
|
59 |
msgid "Search Field Groups"
|
60 |
msgstr "Pesquisar grupos de campos"
|
61 |
|
62 |
-
#: acf.php:
|
63 |
msgid "No Field Groups found"
|
64 |
msgstr "Nenhum grupo de campos encontrado"
|
65 |
|
66 |
-
#: acf.php:
|
67 |
msgid "No Field Groups found in Trash"
|
68 |
msgstr "Nenhum grupo de campos encontrado no lixo"
|
69 |
|
70 |
-
#: acf.php:
|
71 |
#: includes/admin/admin-field-groups.php:530
|
72 |
#: pro/fields/class-acf-field-clone.php:811
|
73 |
msgid "Fields"
|
74 |
msgstr "Campos"
|
75 |
|
76 |
-
#: acf.php:
|
77 |
msgid "Field"
|
78 |
msgstr "Campo"
|
79 |
|
80 |
-
#: acf.php:
|
81 |
msgid "Add New Field"
|
82 |
msgstr "Adicionar novo campo"
|
83 |
|
84 |
-
#: acf.php:
|
85 |
msgid "Edit Field"
|
86 |
msgstr "Editar campo"
|
87 |
|
88 |
-
#: acf.php:
|
89 |
msgid "New Field"
|
90 |
msgstr "Novo campo"
|
91 |
|
92 |
-
#: acf.php:
|
93 |
msgid "View Field"
|
94 |
msgstr "Ver campo"
|
95 |
|
96 |
-
#: acf.php:
|
97 |
msgid "Search Fields"
|
98 |
msgstr "Pesquisar campos"
|
99 |
|
100 |
-
#: acf.php:
|
101 |
msgid "No Fields found"
|
102 |
msgstr "Nenhum campo encontrado"
|
103 |
|
104 |
-
#: acf.php:
|
105 |
msgid "No Fields found in Trash"
|
106 |
msgstr "Nenhum campo encontrado no lixo"
|
107 |
|
108 |
-
#: acf.php:
|
109 |
#: includes/admin/admin-field-groups.php:587
|
110 |
msgid "Inactive"
|
111 |
msgstr "Inactivo"
|
112 |
|
113 |
-
#: acf.php:
|
114 |
#, php-format
|
115 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
116 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
117 |
msgstr[0] "Inactivo <span class=\"count\">(%s)</span>"
|
118 |
msgstr[1] "Inactivos <span class=\"count\">(%s)</span>"
|
119 |
|
120 |
-
#: includes/acf-field-functions.php:
|
121 |
#: includes/admin/admin-field-group.php:178
|
122 |
msgid "(no label)"
|
123 |
msgstr "(sem legenda)"
|
124 |
|
125 |
-
#: includes/acf-field-group-functions.php:
|
126 |
#: includes/admin/admin-field-group.php:180
|
127 |
msgid "copy"
|
128 |
msgstr "cópia"
|
@@ -194,7 +194,7 @@ msgstr "(este campo)"
|
|
194 |
#: includes/admin/views/field-group-field-conditional-logic.php:151
|
195 |
#: includes/admin/views/field-group-locations.php:29
|
196 |
#: includes/admin/views/html-location-group.php:3
|
197 |
-
#: includes/api/api-helpers.php:
|
198 |
msgid "or"
|
199 |
msgstr "ou"
|
200 |
|
@@ -220,24 +220,24 @@ msgstr "Chaves dos campos"
|
|
220 |
msgid "Active"
|
221 |
msgstr "Activo"
|
222 |
|
223 |
-
#: includes/admin/admin-field-group.php:
|
224 |
msgid "Move Complete."
|
225 |
msgstr "Movido com sucesso."
|
226 |
|
227 |
-
#: includes/admin/admin-field-group.php:
|
228 |
#, php-format
|
229 |
msgid "The %s field can now be found in the %s field group"
|
230 |
msgstr "O campo %s pode agora ser encontrado no grupo de campos %s"
|
231 |
|
232 |
-
#: includes/admin/admin-field-group.php:
|
233 |
msgid "Close Window"
|
234 |
msgstr "Fechar janela"
|
235 |
|
236 |
-
#: includes/admin/admin-field-group.php:
|
237 |
msgid "Please select the destination for this field"
|
238 |
msgstr "Por favor seleccione o destinho para este campo"
|
239 |
|
240 |
-
#: includes/admin/admin-field-group.php:
|
241 |
msgid "Move Field"
|
242 |
msgstr "Mover campo"
|
243 |
|
@@ -268,7 +268,7 @@ msgid "Sync available"
|
|
268 |
msgstr "Sincronização disponível"
|
269 |
|
270 |
#: includes/admin/admin-field-groups.php:527 includes/forms/form-front.php:38
|
271 |
-
#: pro/fields/class-acf-field-gallery.php:
|
272 |
msgid "Title"
|
273 |
msgstr "Título"
|
274 |
|
@@ -276,7 +276,7 @@ msgstr "Título"
|
|
276 |
#: includes/admin/views/field-group-options.php:96
|
277 |
#: includes/admin/views/html-admin-page-upgrade-network.php:38
|
278 |
#: includes/admin/views/html-admin-page-upgrade-network.php:49
|
279 |
-
#: pro/fields/class-acf-field-gallery.php:
|
280 |
msgid "Description"
|
281 |
msgstr "Descrição"
|
282 |
|
@@ -317,7 +317,7 @@ msgid "Support"
|
|
317 |
msgstr "Suporte"
|
318 |
|
319 |
#: includes/admin/admin-field-groups.php:642
|
320 |
-
#: includes/admin/views/settings-info.php:
|
321 |
msgid "Pro"
|
322 |
msgstr "Pro"
|
323 |
|
@@ -338,7 +338,7 @@ msgid "Duplicate"
|
|
338 |
msgstr "Duplicar"
|
339 |
|
340 |
#: includes/admin/admin-field-groups.php:719
|
341 |
-
#: includes/fields/class-acf-field-google-map.php:
|
342 |
#: includes/fields/class-acf-field-relationship.php:593
|
343 |
msgid "Search"
|
344 |
msgstr "Pesquisa"
|
@@ -512,9 +512,9 @@ msgstr "Editar campo"
|
|
512 |
|
513 |
#: includes/admin/views/field-group-field.php:45
|
514 |
#: includes/fields/class-acf-field-file.php:152
|
515 |
-
#: includes/fields/class-acf-field-image.php:
|
516 |
#: includes/fields/class-acf-field-link.php:139
|
517 |
-
#: pro/fields/class-acf-field-gallery.php:
|
518 |
msgid "Edit"
|
519 |
msgstr "Editar"
|
520 |
|
@@ -835,7 +835,7 @@ msgid "Database upgrade complete. <a href=\"%s\">See what's new</a>"
|
|
835 |
msgstr "Actualização da base de dados concluída. <a href=\"%s\">Ver o que há de novo</a>"
|
836 |
|
837 |
#: includes/admin/views/html-admin-page-upgrade.php:116
|
838 |
-
#: includes/ajax/class-acf-ajax-upgrade.php:
|
839 |
msgid "No updates available."
|
840 |
msgstr "Nenhuma actualização disponível."
|
841 |
|
@@ -910,246 +910,246 @@ msgstr "Obrigado por actualizar! O ACF %s está maior e melhor do que nunca. Esp
|
|
910 |
msgid "A Smoother Experience"
|
911 |
msgstr "Uma experiência mais fácil"
|
912 |
|
913 |
-
#: includes/admin/views/settings-info.php:
|
914 |
msgid "Improved Usability"
|
915 |
msgstr "Usabilidade melhorada"
|
916 |
|
917 |
-
#: includes/admin/views/settings-info.php:
|
918 |
msgid "Including the popular Select2 library has improved both usability and speed across a number of field types including post object, page link, taxonomy and select."
|
919 |
msgstr "A inclusão da popular biblioteca Select2 melhorou a usabilidade e a velocidade de tipos de campos como conteúdo, ligação de página, taxonomia e selecção."
|
920 |
|
921 |
-
#: includes/admin/views/settings-info.php:
|
922 |
msgid "Improved Design"
|
923 |
msgstr "Design melhorado"
|
924 |
|
925 |
-
#: includes/admin/views/settings-info.php:
|
926 |
msgid "Many fields have undergone a visual refresh to make ACF look better than ever! Noticeable changes are seen on the gallery, relationship and oEmbed (new) fields!"
|
927 |
msgstr "Muitos campos sofreram alterações visuais para que a aparência do ACF esteja melhor que nunca! Alterações notáveis nos campos de galeria, relação e oEmbed (novo)!"
|
928 |
|
929 |
-
#: includes/admin/views/settings-info.php:
|
930 |
msgid "Improved Data"
|
931 |
msgstr "Dados melhorados"
|
932 |
|
933 |
-
#: includes/admin/views/settings-info.php:
|
934 |
msgid "Redesigning the data architecture has allowed sub fields to live independently from their parents. This allows you to drag and drop fields in and out of parent fields!"
|
935 |
msgstr "A reformulação da arquitectura dos dados permite que os subcampos existam independentemente dos seus superiores. Isto permite-lhe arrastar e largar campos para dentro e para fora de campos superiores!"
|
936 |
|
937 |
-
#: includes/admin/views/settings-info.php:
|
938 |
msgid "Goodbye Add-ons. Hello PRO"
|
939 |
msgstr "Adeus add-ons. Olá PRO."
|
940 |
|
941 |
-
#: includes/admin/views/settings-info.php:
|
942 |
msgid "Introducing ACF PRO"
|
943 |
msgstr "Introdução ao ACF PRO"
|
944 |
|
945 |
-
#: includes/admin/views/settings-info.php:
|
946 |
msgid "We're changing the way premium functionality is delivered in an exciting way!"
|
947 |
msgstr "Estamos a alterar o modo como as funcionalidades premium são distribuídas!"
|
948 |
|
949 |
-
#: includes/admin/views/settings-info.php:
|
950 |
#, php-format
|
951 |
msgid "All 4 premium add-ons have been combined into a new <a href=\"%s\">Pro version of ACF</a>. With both personal and developer licenses available, premium functionality is more affordable and accessible than ever before!"
|
952 |
msgstr "Todos os 4 add-ons premium foram combinados numa única <a href=\"%s\">versão Pro do ACF</a>. Com licenças pessoais e para programadores, as funcionalidades premium estão agora mais acessíveis que nunca!"
|
953 |
|
954 |
-
#: includes/admin/views/settings-info.php:
|
955 |
msgid "Powerful Features"
|
956 |
msgstr "Funcionalidades poderosas"
|
957 |
|
958 |
-
#: includes/admin/views/settings-info.php:
|
959 |
msgid "ACF PRO contains powerful features such as repeatable data, flexible content layouts, a beautiful gallery field and the ability to create extra admin options pages!"
|
960 |
msgstr "O ACF PRO tem funcionalidades poderosas, tais como dados repetíveis, layouts de conteúdo flexível, um campo de galeria e a possibilidade de criar páginas de opções de administração adicionais!"
|
961 |
|
962 |
-
#: includes/admin/views/settings-info.php:
|
963 |
#, php-format
|
964 |
msgid "Read more about <a href=\"%s\">ACF PRO features</a>."
|
965 |
msgstr "Mais informações sobre as <a href=\"%s\">funcionalidades do ACF PRO</a>."
|
966 |
|
967 |
-
#: includes/admin/views/settings-info.php:
|
968 |
msgid "Easy Upgrading"
|
969 |
msgstr "Actualização fácil"
|
970 |
|
971 |
-
#: includes/admin/views/settings-info.php:
|
972 |
msgid "Upgrading to ACF PRO is easy. Simply purchase a license online and download the plugin!"
|
973 |
msgstr "É fácil actualizar para o ACF PRO. Basta comprar uma licença online e descarregar o plugin!"
|
974 |
|
975 |
-
#: includes/admin/views/settings-info.php:
|
976 |
#, php-format
|
977 |
msgid "We also wrote an <a href=\"%s\">upgrade guide</a> to answer any questions, but if you do have one, please contact our support team via the <a href=\"%s\">help desk</a>."
|
978 |
msgstr "Escrevemos um <a href=\"%s\">guia de actualização</a> para responder a todas as dúvidas, se tiver alguma questão, por favor contacte a nossa equipa de suporte através da <a href=\"%s\">central de ajuda</a>."
|
979 |
|
980 |
-
#: includes/admin/views/settings-info.php:
|
981 |
msgid "New Features"
|
982 |
msgstr "Novas funcionalidades"
|
983 |
|
984 |
-
#: includes/admin/views/settings-info.php:
|
985 |
msgid "Link Field"
|
986 |
msgstr "Campo de ligação"
|
987 |
|
988 |
-
#: includes/admin/views/settings-info.php:
|
989 |
msgid "The Link field provides a simple way to select or define a link (url, title, target)."
|
990 |
msgstr "O campo de ligação permite facilmente seleccionar ou definir uma ligação (URL, título, destino)."
|
991 |
|
992 |
-
#: includes/admin/views/settings-info.php:
|
993 |
msgid "Group Field"
|
994 |
msgstr "Campo de grupo"
|
995 |
|
996 |
-
#: includes/admin/views/settings-info.php:
|
997 |
msgid "The Group field provides a simple way to create a group of fields."
|
998 |
msgstr "O campo de grupo permite facilmente criar um grupo de campos."
|
999 |
|
1000 |
-
#: includes/admin/views/settings-info.php:
|
1001 |
msgid "oEmbed Field"
|
1002 |
msgstr "Campo de oEmbed"
|
1003 |
|
1004 |
-
#: includes/admin/views/settings-info.php:
|
1005 |
msgid "The oEmbed field allows an easy way to embed videos, images, tweets, audio, and other content."
|
1006 |
msgstr "O campo de oEmbed permite facilmente incorporar vídeos, imagens, tweets, áudio ou outros conteúdos."
|
1007 |
|
1008 |
-
#: includes/admin/views/settings-info.php:
|
1009 |
msgid "Clone Field"
|
1010 |
msgstr "Campo de clone"
|
1011 |
|
1012 |
-
#: includes/admin/views/settings-info.php:
|
1013 |
msgid "The clone field allows you to select and display existing fields."
|
1014 |
msgstr "O campo de clone permite seleccionar e mostrar campos existentes."
|
1015 |
|
1016 |
-
#: includes/admin/views/settings-info.php:
|
1017 |
msgid "More AJAX"
|
1018 |
msgstr "Mais AJAX"
|
1019 |
|
1020 |
-
#: includes/admin/views/settings-info.php:
|
1021 |
msgid "More fields use AJAX powered search to speed up page loading."
|
1022 |
msgstr "Mais campos utilizam pesquisa com AJAX para aumentar a velocidade de carregamento."
|
1023 |
|
1024 |
-
#: includes/admin/views/settings-info.php:
|
1025 |
msgid "Local JSON"
|
1026 |
msgstr "JSON local"
|
1027 |
|
1028 |
-
#: includes/admin/views/settings-info.php:
|
1029 |
msgid "New auto export to JSON feature improves speed and allows for syncronisation."
|
1030 |
msgstr "Nova funcionalidade de exportação automática para JSON melhora a velocidade e permite sincronização."
|
1031 |
|
1032 |
-
#: includes/admin/views/settings-info.php:
|
1033 |
msgid "Easy Import / Export"
|
1034 |
msgstr "Fácil importação e exportação"
|
1035 |
|
1036 |
-
#: includes/admin/views/settings-info.php:
|
1037 |
msgid "Both import and export can easily be done through a new tools page."
|
1038 |
msgstr "Pode facilmente importar e exportar a partir da nova página de ferramentas."
|
1039 |
|
1040 |
-
#: includes/admin/views/settings-info.php:
|
1041 |
msgid "New Form Locations"
|
1042 |
msgstr "Novas localizações de formulários"
|
1043 |
|
1044 |
-
#: includes/admin/views/settings-info.php:
|
1045 |
msgid "Fields can now be mapped to menus, menu items, comments, widgets and all user forms!"
|
1046 |
msgstr "Os campos agora podem ser mapeados para menus, itens de menu, comentários, widgets e formulários de utilizador!"
|
1047 |
|
1048 |
-
#: includes/admin/views/settings-info.php:
|
1049 |
msgid "More Customization"
|
1050 |
msgstr "Maior personalização"
|
1051 |
|
1052 |
-
#: includes/admin/views/settings-info.php:
|
1053 |
msgid "New PHP (and JS) actions and filters have been added to allow for more customization."
|
1054 |
msgstr "Foram adicionadas novas acções e filtros de PHP (e JS) para permitir maior personalização."
|
1055 |
|
1056 |
-
#: includes/admin/views/settings-info.php:
|
1057 |
msgid "Fresh UI"
|
1058 |
msgstr "Nova interface"
|
1059 |
|
1060 |
-
#: includes/admin/views/settings-info.php:
|
1061 |
msgid "The entire plugin has had a design refresh including new field types, settings and design!"
|
1062 |
msgstr "Toda a interface do plugin foi actualizada, incluindo novos tipos de campos, definições e design!"
|
1063 |
|
1064 |
-
#: includes/admin/views/settings-info.php:
|
1065 |
msgid "New Settings"
|
1066 |
msgstr "Novas definições"
|
1067 |
|
1068 |
-
#: includes/admin/views/settings-info.php:
|
1069 |
msgid "Field group settings have been added for Active, Label Placement, Instructions Placement and Description."
|
1070 |
msgstr "Foram adicionadas definições aos grupos de campos, tais como activação, posição da legenda, posição das instruções e descrição."
|
1071 |
|
1072 |
-
#: includes/admin/views/settings-info.php:
|
1073 |
msgid "Better Front End Forms"
|
1074 |
msgstr "Melhores formulários para o seu site"
|
1075 |
|
1076 |
-
#: includes/admin/views/settings-info.php:
|
1077 |
msgid "acf_form() can now create a new post on submission with lots of new settings."
|
1078 |
msgstr "Com acf_form() agora pode criar um novo conteúdo ao submeter, com muito mais definições."
|
1079 |
|
1080 |
-
#: includes/admin/views/settings-info.php:
|
1081 |
msgid "Better Validation"
|
1082 |
msgstr "Melhor validação"
|
1083 |
|
1084 |
-
#: includes/admin/views/settings-info.php:
|
1085 |
msgid "Form validation is now done via PHP + AJAX in favour of only JS."
|
1086 |
msgstr "A validação de formulários agora é feita com PHP + AJAX em vez de apenas JS."
|
1087 |
|
1088 |
-
#: includes/admin/views/settings-info.php:
|
1089 |
msgid "Moving Fields"
|
1090 |
msgstr "Mover campos"
|
1091 |
|
1092 |
-
#: includes/admin/views/settings-info.php:
|
1093 |
msgid "New field group functionality allows you to move a field between groups & parents."
|
1094 |
msgstr "Nova funcionalidade de grupo de campos permite mover um campo entre grupos e superiores."
|
1095 |
|
1096 |
-
#: includes/admin/views/settings-info.php:
|
1097 |
#, php-format
|
1098 |
msgid "We think you'll love the changes in %s."
|
1099 |
msgstr "Pensamos que vai gostar das alterações na versão %s."
|
1100 |
|
1101 |
-
#: includes/api/api-helpers.php:
|
1102 |
msgid "Thumbnail"
|
1103 |
msgstr "Miniatura"
|
1104 |
|
1105 |
-
#: includes/api/api-helpers.php:
|
1106 |
msgid "Medium"
|
1107 |
msgstr "Média"
|
1108 |
|
1109 |
-
#: includes/api/api-helpers.php:
|
1110 |
msgid "Large"
|
1111 |
msgstr "Grande"
|
1112 |
|
1113 |
-
#: includes/api/api-helpers.php:
|
1114 |
msgid "Full Size"
|
1115 |
msgstr "Tamanho original"
|
1116 |
|
1117 |
-
#: includes/api/api-helpers.php:
|
1118 |
#: pro/fields/class-acf-field-clone.php:996
|
1119 |
msgid "(no title)"
|
1120 |
msgstr "(sem título)"
|
1121 |
|
1122 |
-
#: includes/api/api-helpers.php:
|
1123 |
#, php-format
|
1124 |
msgid "Image width must be at least %dpx."
|
1125 |
msgstr "A largura da imagem deve ser pelo menos de %dpx."
|
1126 |
|
1127 |
-
#: includes/api/api-helpers.php:
|
1128 |
#, php-format
|
1129 |
msgid "Image width must not exceed %dpx."
|
1130 |
msgstr "A largura da imagem não deve exceder os %dpx."
|
1131 |
|
1132 |
-
#: includes/api/api-helpers.php:
|
1133 |
#, php-format
|
1134 |
msgid "Image height must be at least %dpx."
|
1135 |
msgstr "A altura da imagem deve ser pelo menos de %dpx."
|
1136 |
|
1137 |
-
#: includes/api/api-helpers.php:
|
1138 |
#, php-format
|
1139 |
msgid "Image height must not exceed %dpx."
|
1140 |
msgstr "A altura da imagem não deve exceder os %dpx."
|
1141 |
|
1142 |
-
#: includes/api/api-helpers.php:
|
1143 |
#, php-format
|
1144 |
msgid "File size must be at least %s."
|
1145 |
msgstr "O tamanho do ficheiro deve ser pelo menos de %s."
|
1146 |
|
1147 |
-
#: includes/api/api-helpers.php:
|
1148 |
#, php-format
|
1149 |
msgid "File size must must not exceed %s."
|
1150 |
msgstr "O tamanho do ficheiro não deve exceder %s."
|
1151 |
|
1152 |
-
#: includes/api/api-helpers.php:
|
1153 |
#, php-format
|
1154 |
msgid "File type must be %s."
|
1155 |
msgstr "O tipo de ficheiro deve ser %s."
|
@@ -1189,7 +1189,7 @@ msgstr "Minimizar detalhes"
|
|
1189 |
msgid "Restricted"
|
1190 |
msgstr "Restrito"
|
1191 |
|
1192 |
-
#: includes/assets.php:178 includes/fields/class-acf-field-image.php:
|
1193 |
msgid "All images"
|
1194 |
msgstr "Todas as imagens"
|
1195 |
|
@@ -1228,10 +1228,10 @@ msgid "No"
|
|
1228 |
msgstr "Não"
|
1229 |
|
1230 |
#: includes/assets.php:190 includes/fields/class-acf-field-file.php:154
|
1231 |
-
#: includes/fields/class-acf-field-image.php:
|
1232 |
#: includes/fields/class-acf-field-link.php:140
|
1233 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1234 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1235 |
msgid "Remove"
|
1236 |
msgstr "Remover"
|
1237 |
|
@@ -1402,7 +1402,7 @@ msgstr "Permitir nulo?"
|
|
1402 |
#: includes/fields/class-acf-field-radio.php:281
|
1403 |
#: includes/fields/class-acf-field-range.php:149
|
1404 |
#: includes/fields/class-acf-field-select.php:373
|
1405 |
-
#: includes/fields/class-acf-field-text.php:
|
1406 |
#: includes/fields/class-acf-field-textarea.php:102
|
1407 |
#: includes/fields/class-acf-field-true_false.php:135
|
1408 |
#: includes/fields/class-acf-field-url.php:100
|
@@ -1415,7 +1415,7 @@ msgstr "Valor por omissão"
|
|
1415 |
#: includes/fields/class-acf-field-number.php:128
|
1416 |
#: includes/fields/class-acf-field-radio.php:282
|
1417 |
#: includes/fields/class-acf-field-range.php:150
|
1418 |
-
#: includes/fields/class-acf-field-text.php:
|
1419 |
#: includes/fields/class-acf-field-textarea.php:103
|
1420 |
#: includes/fields/class-acf-field-url.php:101
|
1421 |
#: includes/fields/class-acf-field-wysiwyg.php:382
|
@@ -1437,7 +1437,6 @@ msgstr "Vertical"
|
|
1437 |
#: includes/fields/class-acf-field-button-group.php:191
|
1438 |
#: includes/fields/class-acf-field-checkbox.php:413
|
1439 |
#: includes/fields/class-acf-field-file.php:215
|
1440 |
-
#: includes/fields/class-acf-field-image.php:205
|
1441 |
#: includes/fields/class-acf-field-link.php:166
|
1442 |
#: includes/fields/class-acf-field-radio.php:304
|
1443 |
#: includes/fields/class-acf-field-taxonomy.php:829
|
@@ -1447,7 +1446,6 @@ msgstr "Valor devolvido"
|
|
1447 |
#: includes/fields/class-acf-field-button-group.php:192
|
1448 |
#: includes/fields/class-acf-field-checkbox.php:414
|
1449 |
#: includes/fields/class-acf-field-file.php:216
|
1450 |
-
#: includes/fields/class-acf-field-image.php:206
|
1451 |
#: includes/fields/class-acf-field-link.php:167
|
1452 |
#: includes/fields/class-acf-field-radio.php:305
|
1453 |
msgid "Specify the returned value on front end"
|
@@ -1589,11 +1587,13 @@ msgstr "O formato usado ao guardar um valor"
|
|
1589 |
|
1590 |
#: includes/fields/class-acf-field-date_picker.php:208
|
1591 |
#: includes/fields/class-acf-field-date_time_picker.php:200
|
|
|
1592 |
#: includes/fields/class-acf-field-post_object.php:431
|
1593 |
#: includes/fields/class-acf-field-relationship.php:634
|
1594 |
#: includes/fields/class-acf-field-select.php:427
|
1595 |
#: includes/fields/class-acf-field-time_picker.php:124
|
1596 |
#: includes/fields/class-acf-field-user.php:412
|
|
|
1597 |
msgid "Return Format"
|
1598 |
msgstr "Formato devolvido"
|
1599 |
|
@@ -1694,7 +1694,7 @@ msgstr "Email"
|
|
1694 |
#: includes/fields/class-acf-field-email.php:127
|
1695 |
#: includes/fields/class-acf-field-number.php:136
|
1696 |
#: includes/fields/class-acf-field-password.php:71
|
1697 |
-
#: includes/fields/class-acf-field-text.php:
|
1698 |
#: includes/fields/class-acf-field-textarea.php:111
|
1699 |
#: includes/fields/class-acf-field-url.php:109
|
1700 |
msgid "Placeholder Text"
|
@@ -1703,7 +1703,7 @@ msgstr "Texto predefinido"
|
|
1703 |
#: includes/fields/class-acf-field-email.php:128
|
1704 |
#: includes/fields/class-acf-field-number.php:137
|
1705 |
#: includes/fields/class-acf-field-password.php:72
|
1706 |
-
#: includes/fields/class-acf-field-text.php:
|
1707 |
#: includes/fields/class-acf-field-textarea.php:112
|
1708 |
#: includes/fields/class-acf-field-url.php:110
|
1709 |
msgid "Appears within the input"
|
@@ -1713,7 +1713,7 @@ msgstr "Mostrado dentro do campo"
|
|
1713 |
#: includes/fields/class-acf-field-number.php:145
|
1714 |
#: includes/fields/class-acf-field-password.php:80
|
1715 |
#: includes/fields/class-acf-field-range.php:188
|
1716 |
-
#: includes/fields/class-acf-field-text.php:
|
1717 |
msgid "Prepend"
|
1718 |
msgstr "Preceder"
|
1719 |
|
@@ -1721,7 +1721,7 @@ msgstr "Preceder"
|
|
1721 |
#: includes/fields/class-acf-field-number.php:146
|
1722 |
#: includes/fields/class-acf-field-password.php:81
|
1723 |
#: includes/fields/class-acf-field-range.php:189
|
1724 |
-
#: includes/fields/class-acf-field-text.php:
|
1725 |
msgid "Appears before the input"
|
1726 |
msgstr "Mostrado antes do campo"
|
1727 |
|
@@ -1729,7 +1729,7 @@ msgstr "Mostrado antes do campo"
|
|
1729 |
#: includes/fields/class-acf-field-number.php:154
|
1730 |
#: includes/fields/class-acf-field-password.php:89
|
1731 |
#: includes/fields/class-acf-field-range.php:197
|
1732 |
-
#: includes/fields/class-acf-field-text.php:
|
1733 |
msgid "Append"
|
1734 |
msgstr "Suceder"
|
1735 |
|
@@ -1737,7 +1737,7 @@ msgstr "Suceder"
|
|
1737 |
#: includes/fields/class-acf-field-number.php:155
|
1738 |
#: includes/fields/class-acf-field-password.php:90
|
1739 |
#: includes/fields/class-acf-field-range.php:198
|
1740 |
-
#: includes/fields/class-acf-field-text.php:
|
1741 |
msgid "Appears after the input"
|
1742 |
msgstr "Mostrado depois do campo"
|
1743 |
|
@@ -1760,10 +1760,10 @@ msgstr "Nome do ficheiro"
|
|
1760 |
#: includes/fields/class-acf-field-file.php:145
|
1761 |
#: includes/fields/class-acf-field-file.php:248
|
1762 |
#: includes/fields/class-acf-field-file.php:259
|
1763 |
-
#: includes/fields/class-acf-field-image.php:
|
1764 |
-
#: includes/fields/class-acf-field-image.php:
|
1765 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1766 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1767 |
msgid "File size"
|
1768 |
msgstr "Tamanho do ficheiro"
|
1769 |
|
@@ -1784,40 +1784,40 @@ msgid "File ID"
|
|
1784 |
msgstr "ID do ficheiro"
|
1785 |
|
1786 |
#: includes/fields/class-acf-field-file.php:230
|
1787 |
-
#: includes/fields/class-acf-field-image.php:
|
1788 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1789 |
msgid "Library"
|
1790 |
msgstr "Biblioteca"
|
1791 |
|
1792 |
#: includes/fields/class-acf-field-file.php:231
|
1793 |
-
#: includes/fields/class-acf-field-image.php:
|
1794 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1795 |
msgid "Limit the media library choice"
|
1796 |
msgstr "Limita a escolha da biblioteca de media."
|
1797 |
|
1798 |
#: includes/fields/class-acf-field-file.php:236
|
1799 |
-
#: includes/fields/class-acf-field-image.php:
|
1800 |
#: includes/locations/class-acf-location-attachment.php:101
|
1801 |
#: includes/locations/class-acf-location-comment.php:79
|
1802 |
#: includes/locations/class-acf-location-nav-menu.php:102
|
1803 |
#: includes/locations/class-acf-location-taxonomy.php:79
|
1804 |
-
#: includes/locations/class-acf-location-user-form.php:
|
1805 |
-
#: includes/locations/class-acf-location-user-role.php:
|
1806 |
#: includes/locations/class-acf-location-widget.php:83
|
1807 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1808 |
#: pro/locations/class-acf-location-block.php:79
|
1809 |
msgid "All"
|
1810 |
msgstr "Todos"
|
1811 |
|
1812 |
#: includes/fields/class-acf-field-file.php:237
|
1813 |
-
#: includes/fields/class-acf-field-image.php:
|
1814 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1815 |
msgid "Uploaded to post"
|
1816 |
msgstr "Carregados no artigo"
|
1817 |
|
1818 |
#: includes/fields/class-acf-field-file.php:244
|
1819 |
-
#: includes/fields/class-acf-field-image.php:
|
1820 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1821 |
msgid "Minimum"
|
1822 |
msgstr "Mínimo"
|
1823 |
|
@@ -1827,20 +1827,20 @@ msgid "Restrict which files can be uploaded"
|
|
1827 |
msgstr "Restringe que ficheiros podem ser carregados."
|
1828 |
|
1829 |
#: includes/fields/class-acf-field-file.php:255
|
1830 |
-
#: includes/fields/class-acf-field-image.php:
|
1831 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1832 |
msgid "Maximum"
|
1833 |
msgstr "Máximo"
|
1834 |
|
1835 |
#: includes/fields/class-acf-field-file.php:266
|
1836 |
-
#: includes/fields/class-acf-field-image.php:
|
1837 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1838 |
msgid "Allowed file types"
|
1839 |
msgstr "Tipos de ficheiros permitidos"
|
1840 |
|
1841 |
#: includes/fields/class-acf-field-file.php:267
|
1842 |
-
#: includes/fields/class-acf-field-image.php:
|
1843 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1844 |
msgid "Comma separated list. Leave blank for all types"
|
1845 |
msgstr "Lista separada por vírgulas. Deixe em branco para permitir todos os tipos."
|
1846 |
|
@@ -1852,46 +1852,46 @@ msgstr "Mapa do Google"
|
|
1852 |
msgid "Sorry, this browser does not support geolocation"
|
1853 |
msgstr "Desculpe, este navegador não suporta geolocalização."
|
1854 |
|
1855 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1856 |
msgid "Clear location"
|
1857 |
msgstr "Limpar localização"
|
1858 |
|
1859 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1860 |
msgid "Find current location"
|
1861 |
msgstr "Encontrar a localização actual"
|
1862 |
|
1863 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1864 |
msgid "Search for address..."
|
1865 |
msgstr "Pesquisar endereço..."
|
1866 |
|
1867 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1868 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1869 |
msgid "Center"
|
1870 |
msgstr "Centrar"
|
1871 |
|
1872 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1873 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1874 |
msgid "Center the initial map"
|
1875 |
msgstr "Centrar o mapa inicial"
|
1876 |
|
1877 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1878 |
msgid "Zoom"
|
1879 |
msgstr "Zoom"
|
1880 |
|
1881 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1882 |
msgid "Set the initial zoom level"
|
1883 |
msgstr "Definir o nível de zoom inicial"
|
1884 |
|
1885 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1886 |
-
#: includes/fields/class-acf-field-image.php:
|
1887 |
-
#: includes/fields/class-acf-field-image.php:
|
1888 |
#: includes/fields/class-acf-field-oembed.php:268
|
1889 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1890 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1891 |
msgid "Height"
|
1892 |
msgstr "Altura"
|
1893 |
|
1894 |
-
#: includes/fields/class-acf-field-google-map.php:
|
1895 |
msgid "Customize the map height"
|
1896 |
msgstr "Personalizar a altura do mapa"
|
1897 |
|
@@ -1935,58 +1935,58 @@ msgstr "Linha"
|
|
1935 |
msgid "Image"
|
1936 |
msgstr "Imagem"
|
1937 |
|
1938 |
-
#: includes/fields/class-acf-field-image.php:
|
1939 |
msgid "Select Image"
|
1940 |
msgstr "Seleccionar imagem"
|
1941 |
|
1942 |
-
#: includes/fields/class-acf-field-image.php:
|
1943 |
msgid "Edit Image"
|
1944 |
msgstr "Editar imagem"
|
1945 |
|
1946 |
-
#: includes/fields/class-acf-field-image.php:
|
1947 |
msgid "Update Image"
|
1948 |
msgstr "Actualizar imagem"
|
1949 |
|
1950 |
-
#: includes/fields/class-acf-field-image.php:
|
1951 |
msgid "No image selected"
|
1952 |
msgstr "Nenhuma imagem seleccionada"
|
1953 |
|
1954 |
-
#: includes/fields/class-acf-field-image.php:
|
1955 |
msgid "Add Image"
|
1956 |
msgstr "Adicionar imagem"
|
1957 |
|
1958 |
-
#: includes/fields/class-acf-field-image.php:
|
|
|
1959 |
msgid "Image Array"
|
1960 |
msgstr "Array da imagem"
|
1961 |
|
1962 |
-
#: includes/fields/class-acf-field-image.php:
|
|
|
1963 |
msgid "Image URL"
|
1964 |
msgstr "URL da imagem"
|
1965 |
|
1966 |
-
#: includes/fields/class-acf-field-image.php:
|
|
|
1967 |
msgid "Image ID"
|
1968 |
msgstr "ID da imagem"
|
1969 |
|
1970 |
-
#: includes/fields/class-acf-field-image.php:
|
|
|
1971 |
msgid "Preview Size"
|
1972 |
msgstr "Tamanho da pré-visualização"
|
1973 |
|
1974 |
-
#: includes/fields/class-acf-field-image.php:
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
#: includes/fields/class-acf-field-image.php:245
|
1979 |
-
#: includes/fields/class-acf-field-image.php:274
|
1980 |
-
#: pro/fields/class-acf-field-gallery.php:688
|
1981 |
-
#: pro/fields/class-acf-field-gallery.php:717
|
1982 |
msgid "Restrict which images can be uploaded"
|
1983 |
msgstr "Restringir que imagens que ser carregadas"
|
1984 |
|
1985 |
-
#: includes/fields/class-acf-field-image.php:
|
1986 |
-
#: includes/fields/class-acf-field-image.php:
|
1987 |
#: includes/fields/class-acf-field-oembed.php:257
|
1988 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1989 |
-
#: pro/fields/class-acf-field-gallery.php:
|
1990 |
msgid "Width"
|
1991 |
msgstr "Largura"
|
1992 |
|
@@ -2244,7 +2244,7 @@ msgid "Maximum posts"
|
|
2244 |
msgstr "Máximo de conteúdos"
|
2245 |
|
2246 |
#: includes/fields/class-acf-field-relationship.php:727
|
2247 |
-
#: pro/fields/class-acf-field-gallery.php:
|
2248 |
#, php-format
|
2249 |
msgid "%s requires at least %s selection"
|
2250 |
msgid_plural "%s requires at least %s selections"
|
@@ -2432,6 +2432,7 @@ msgid "%s added"
|
|
2432 |
msgstr "%s adicionado(a)"
|
2433 |
|
2434 |
#: includes/fields/class-acf-field-taxonomy.php:973
|
|
|
2435 |
msgid "Add"
|
2436 |
msgstr "Adicionar"
|
2437 |
|
@@ -2439,18 +2440,18 @@ msgstr "Adicionar"
|
|
2439 |
msgid "Text"
|
2440 |
msgstr "Texto"
|
2441 |
|
2442 |
-
#: includes/fields/class-acf-field-text.php:
|
2443 |
#: includes/fields/class-acf-field-textarea.php:120
|
2444 |
msgid "Character Limit"
|
2445 |
msgstr "Limite de caracteres"
|
2446 |
|
2447 |
-
#: includes/fields/class-acf-field-text.php:
|
2448 |
#: includes/fields/class-acf-field-textarea.php:121
|
2449 |
msgid "Leave blank for no limit"
|
2450 |
msgstr "Deixe em branco para não limitar"
|
2451 |
|
2452 |
-
#: includes/fields/class-acf-field-text.php:
|
2453 |
-
#: includes/fields/class-acf-field-textarea.php:
|
2454 |
#, php-format
|
2455 |
msgid "Value must not exceed %d characters"
|
2456 |
msgstr "O valor não deve exceder %d caracteres"
|
@@ -2573,26 +2574,31 @@ msgid "Delay initialization?"
|
|
2573 |
msgstr "Atrasar a inicialização?"
|
2574 |
|
2575 |
#: includes/fields/class-acf-field-wysiwyg.php:430
|
2576 |
-
msgid "TinyMCE will not be
|
2577 |
msgstr "O TinyMCE não será inicializado até que clique no campo"
|
2578 |
|
2579 |
#: includes/forms/form-front.php:55
|
2580 |
msgid "Validate Email"
|
2581 |
msgstr "Validar email"
|
2582 |
|
2583 |
-
#: includes/forms/form-front.php:
|
2584 |
#: pro/options-page.php:81
|
2585 |
msgid "Update"
|
2586 |
msgstr "Actualizar"
|
2587 |
|
2588 |
-
#: includes/forms/form-front.php:
|
2589 |
msgid "Post updated"
|
2590 |
msgstr "Artigo actualizado"
|
2591 |
|
2592 |
-
#: includes/forms/form-front.php:
|
2593 |
msgid "Spam Detected"
|
2594 |
msgstr "Spam detectado"
|
2595 |
|
|
|
|
|
|
|
|
|
|
|
2596 |
#: includes/locations.php:93 includes/locations/class-acf-location-post.php:27
|
2597 |
msgid "Post"
|
2598 |
msgstr "Artigo"
|
@@ -2723,19 +2729,19 @@ msgstr "Taxonomia do artigo"
|
|
2723 |
msgid "Post Template"
|
2724 |
msgstr "Modelo de conteúdo"
|
2725 |
|
2726 |
-
#: includes/locations/class-acf-location-user-form.php:
|
2727 |
msgid "User Form"
|
2728 |
msgstr "Formulário de utilizador"
|
2729 |
|
2730 |
-
#: includes/locations/class-acf-location-user-form.php:
|
2731 |
msgid "Add / Edit"
|
2732 |
msgstr "Adicionar / Editar"
|
2733 |
|
2734 |
-
#: includes/locations/class-acf-location-user-form.php:
|
2735 |
msgid "Register"
|
2736 |
msgstr "Registar"
|
2737 |
|
2738 |
-
#: includes/locations/class-acf-location-user-role.php:
|
2739 |
msgid "User Role"
|
2740 |
msgstr "Papel de utilizador"
|
2741 |
|
@@ -2990,78 +2996,78 @@ msgstr "Mínimo de layouts"
|
|
2990 |
msgid "Maximum Layouts"
|
2991 |
msgstr "Máximo de layouts"
|
2992 |
|
2993 |
-
#: pro/fields/class-acf-field-gallery.php:
|
2994 |
msgid "Add Image to Gallery"
|
2995 |
msgstr "Adicionar imagem à galeria"
|
2996 |
|
2997 |
-
#: pro/fields/class-acf-field-gallery.php:
|
2998 |
msgid "Maximum selection reached"
|
2999 |
msgstr "Máximo de selecção alcançado"
|
3000 |
|
3001 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3002 |
msgid "Length"
|
3003 |
msgstr "Comprimento"
|
3004 |
|
3005 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3006 |
msgid "Caption"
|
3007 |
msgstr "Legenda"
|
3008 |
|
3009 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3010 |
msgid "Alt Text"
|
3011 |
msgstr "Texto alternativo"
|
3012 |
|
3013 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3014 |
msgid "Add to gallery"
|
3015 |
msgstr "Adicionar à galeria"
|
3016 |
|
3017 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3018 |
msgid "Bulk actions"
|
3019 |
msgstr "Acções por lotes"
|
3020 |
|
3021 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3022 |
msgid "Sort by date uploaded"
|
3023 |
msgstr "Ordenar por data de carregamento"
|
3024 |
|
3025 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3026 |
msgid "Sort by date modified"
|
3027 |
msgstr "Ordenar por data de modificação"
|
3028 |
|
3029 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3030 |
msgid "Sort by title"
|
3031 |
msgstr "Ordenar por título"
|
3032 |
|
3033 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3034 |
msgid "Reverse current order"
|
3035 |
msgstr "Inverter ordem actual"
|
3036 |
|
3037 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3038 |
msgid "Close"
|
3039 |
msgstr "Fechar"
|
3040 |
|
3041 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3042 |
-
msgid "Minimum Selection"
|
3043 |
-
msgstr "Selecção mínima"
|
3044 |
-
|
3045 |
-
#: pro/fields/class-acf-field-gallery.php:651
|
3046 |
-
msgid "Maximum Selection"
|
3047 |
-
msgstr "Selecção máxima"
|
3048 |
-
|
3049 |
-
#: pro/fields/class-acf-field-gallery.php:660
|
3050 |
msgid "Insert"
|
3051 |
msgstr "Inserir"
|
3052 |
|
3053 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3054 |
msgid "Specify where new attachments are added"
|
3055 |
msgstr "Especifica onde serão adicionados os novos anexos."
|
3056 |
|
3057 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3058 |
msgid "Append to the end"
|
3059 |
msgstr "No fim"
|
3060 |
|
3061 |
-
#: pro/fields/class-acf-field-gallery.php:
|
3062 |
msgid "Prepend to the beginning"
|
3063 |
msgstr "No início"
|
3064 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3065 |
#: pro/fields/class-acf-field-repeater.php:65
|
3066 |
#: pro/fields/class-acf-field-repeater.php:661
|
3067 |
msgid "Minimum rows reached ({min} rows)"
|
@@ -3112,25 +3118,34 @@ msgstr "Opções actualizadas"
|
|
3112 |
msgid "To enable updates, please enter your license key on the <a href=\"%s\">Updates</a> page. If you don't have a licence key, please see <a href=\"%s\">details & pricing</a>."
|
3113 |
msgstr "Para permitir actualizações, por favor insira a sua chave de licença na página de <a href=\"%s\">Actualizações</a>. Se não tiver uma chave de licença, por favor veja os <a href=\"%s\">detalhes e preços</a>."
|
3114 |
|
3115 |
-
#: tests/basic/test-blocks.php:
|
3116 |
-
msgid "
|
3117 |
-
msgstr "
|
3118 |
|
3119 |
-
#: tests/basic/test-blocks.php:
|
3120 |
-
msgid "
|
3121 |
-
msgstr "
|
3122 |
|
3123 |
#. Plugin URI of the plugin/theme
|
3124 |
-
|
3125 |
-
|
|
|
3126 |
|
3127 |
#. Author of the plugin/theme
|
3128 |
msgid "Elliot Condon"
|
3129 |
msgstr "Elliot Condon"
|
3130 |
|
3131 |
-
|
3132 |
-
|
3133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3134 |
|
3135 |
#~ msgid "<b>Error</b>. Could not connect to update server %s."
|
3136 |
#~ msgstr "<b>Erro</b>. Não foi possível ligar ao servidor de actualização %s."
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Advanced Custom Fields PRO\n"
|
6 |
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
|
7 |
+
"POT-Creation-Date: 2019-10-22 08:28+0100\n"
|
8 |
+
"PO-Revision-Date: 2019-10-22 08:36+0100\n"
|
9 |
"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
|
10 |
"Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
|
11 |
"Language: pt_PT\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
+
"X-Generator: Poedit 2.2.4\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
19 |
"X-Textdomain-Support: yes\n"
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
24 |
|
25 |
+
#: acf.php:68
|
26 |
msgid "Advanced Custom Fields"
|
27 |
msgstr "Advanced Custom Fields"
|
28 |
|
29 |
+
#: acf.php:341 includes/admin/admin.php:58
|
30 |
msgid "Field Groups"
|
31 |
msgstr "Grupos de campos"
|
32 |
|
33 |
+
#: acf.php:342
|
34 |
msgid "Field Group"
|
35 |
msgstr "Grupo de campos"
|
36 |
|
37 |
+
#: acf.php:343 acf.php:375 includes/admin/admin.php:59
|
38 |
#: pro/fields/class-acf-field-flexible-content.php:558
|
39 |
msgid "Add New"
|
40 |
msgstr "Adicionar novo"
|
41 |
|
42 |
+
#: acf.php:344
|
43 |
msgid "Add New Field Group"
|
44 |
msgstr "Adicionar novo grupo de campos"
|
45 |
|
46 |
+
#: acf.php:345
|
47 |
msgid "Edit Field Group"
|
48 |
msgstr "Editar grupo de campos"
|
49 |
|
50 |
+
#: acf.php:346
|
51 |
msgid "New Field Group"
|
52 |
msgstr "Novo grupo de campos"
|
53 |
|
54 |
+
#: acf.php:347
|
55 |
msgid "View Field Group"
|
56 |
msgstr "Ver grupo de campos"
|
57 |
|
58 |
+
#: acf.php:348
|
59 |
msgid "Search Field Groups"
|
60 |
msgstr "Pesquisar grupos de campos"
|
61 |
|
62 |
+
#: acf.php:349
|
63 |
msgid "No Field Groups found"
|
64 |
msgstr "Nenhum grupo de campos encontrado"
|
65 |
|
66 |
+
#: acf.php:350
|
67 |
msgid "No Field Groups found in Trash"
|
68 |
msgstr "Nenhum grupo de campos encontrado no lixo"
|
69 |
|
70 |
+
#: acf.php:373 includes/admin/admin-field-group.php:220
|
71 |
#: includes/admin/admin-field-groups.php:530
|
72 |
#: pro/fields/class-acf-field-clone.php:811
|
73 |
msgid "Fields"
|
74 |
msgstr "Campos"
|
75 |
|
76 |
+
#: acf.php:374
|
77 |
msgid "Field"
|
78 |
msgstr "Campo"
|
79 |
|
80 |
+
#: acf.php:376
|
81 |
msgid "Add New Field"
|
82 |
msgstr "Adicionar novo campo"
|
83 |
|
84 |
+
#: acf.php:377
|
85 |
msgid "Edit Field"
|
86 |
msgstr "Editar campo"
|
87 |
|
88 |
+
#: acf.php:378 includes/admin/views/field-group-fields.php:41
|
89 |
msgid "New Field"
|
90 |
msgstr "Novo campo"
|
91 |
|
92 |
+
#: acf.php:379
|
93 |
msgid "View Field"
|
94 |
msgstr "Ver campo"
|
95 |
|
96 |
+
#: acf.php:380
|
97 |
msgid "Search Fields"
|
98 |
msgstr "Pesquisar campos"
|
99 |
|
100 |
+
#: acf.php:381
|
101 |
msgid "No Fields found"
|
102 |
msgstr "Nenhum campo encontrado"
|
103 |
|
104 |
+
#: acf.php:382
|
105 |
msgid "No Fields found in Trash"
|
106 |
msgstr "Nenhum campo encontrado no lixo"
|
107 |
|
108 |
+
#: acf.php:417 includes/admin/admin-field-group.php:402
|
109 |
#: includes/admin/admin-field-groups.php:587
|
110 |
msgid "Inactive"
|
111 |
msgstr "Inactivo"
|
112 |
|
113 |
+
#: acf.php:422
|
114 |
#, php-format
|
115 |
msgid "Inactive <span class=\"count\">(%s)</span>"
|
116 |
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
117 |
msgstr[0] "Inactivo <span class=\"count\">(%s)</span>"
|
118 |
msgstr[1] "Inactivos <span class=\"count\">(%s)</span>"
|
119 |
|
120 |
+
#: includes/acf-field-functions.php:831
|
121 |
#: includes/admin/admin-field-group.php:178
|
122 |
msgid "(no label)"
|
123 |
msgstr "(sem legenda)"
|
124 |
|
125 |
+
#: includes/acf-field-group-functions.php:819
|
126 |
#: includes/admin/admin-field-group.php:180
|
127 |
msgid "copy"
|
128 |
msgstr "cópia"
|
194 |
#: includes/admin/views/field-group-field-conditional-logic.php:151
|
195 |
#: includes/admin/views/field-group-locations.php:29
|
196 |
#: includes/admin/views/html-location-group.php:3
|
197 |
+
#: includes/api/api-helpers.php:3649
|
198 |
msgid "or"
|
199 |
msgstr "ou"
|
200 |
|
220 |
msgid "Active"
|
221 |
msgstr "Activo"
|
222 |
|
223 |
+
#: includes/admin/admin-field-group.php:767
|
224 |
msgid "Move Complete."
|
225 |
msgstr "Movido com sucesso."
|
226 |
|
227 |
+
#: includes/admin/admin-field-group.php:768
|
228 |
#, php-format
|
229 |
msgid "The %s field can now be found in the %s field group"
|
230 |
msgstr "O campo %s pode agora ser encontrado no grupo de campos %s"
|
231 |
|
232 |
+
#: includes/admin/admin-field-group.php:769
|
233 |
msgid "Close Window"
|
234 |
msgstr "Fechar janela"
|
235 |
|
236 |
+
#: includes/admin/admin-field-group.php:810
|
237 |
msgid "Please select the destination for this field"
|
238 |
msgstr "Por favor seleccione o destinho para este campo"
|
239 |
|
240 |
+
#: includes/admin/admin-field-group.php:817
|
241 |
msgid "Move Field"
|
242 |
msgstr "Mover campo"
|
243 |
|
268 |
msgstr "Sincronização disponível"
|
269 |
|
270 |
#: includes/admin/admin-field-groups.php:527 includes/forms/form-front.php:38
|
271 |
+
#: pro/fields/class-acf-field-gallery.php:353
|
272 |
msgid "Title"
|
273 |
msgstr "Título"
|
274 |
|
276 |
#: includes/admin/views/field-group-options.php:96
|
277 |
#: includes/admin/views/html-admin-page-upgrade-network.php:38
|
278 |
#: includes/admin/views/html-admin-page-upgrade-network.php:49
|
279 |
+
#: pro/fields/class-acf-field-gallery.php:380
|
280 |
msgid "Description"
|
281 |
msgstr "Descrição"
|
282 |
|
317 |
msgstr "Suporte"
|
318 |
|
319 |
#: includes/admin/admin-field-groups.php:642
|
320 |
+
#: includes/admin/views/settings-info.php:81
|
321 |
msgid "Pro"
|
322 |
msgstr "Pro"
|
323 |
|
338 |
msgstr "Duplicar"
|
339 |
|
340 |
#: includes/admin/admin-field-groups.php:719
|
341 |
+
#: includes/fields/class-acf-field-google-map.php:146
|
342 |
#: includes/fields/class-acf-field-relationship.php:593
|
343 |
msgid "Search"
|
344 |
msgstr "Pesquisa"
|
512 |
|
513 |
#: includes/admin/views/field-group-field.php:45
|
514 |
#: includes/fields/class-acf-field-file.php:152
|
515 |
+
#: includes/fields/class-acf-field-image.php:138
|
516 |
#: includes/fields/class-acf-field-link.php:139
|
517 |
+
#: pro/fields/class-acf-field-gallery.php:337
|
518 |
msgid "Edit"
|
519 |
msgstr "Editar"
|
520 |
|
835 |
msgstr "Actualização da base de dados concluída. <a href=\"%s\">Ver o que há de novo</a>"
|
836 |
|
837 |
#: includes/admin/views/html-admin-page-upgrade.php:116
|
838 |
+
#: includes/ajax/class-acf-ajax-upgrade.php:32
|
839 |
msgid "No updates available."
|
840 |
msgstr "Nenhuma actualização disponível."
|
841 |
|
910 |
msgid "A Smoother Experience"
|
911 |
msgstr "Uma experiência mais fácil"
|
912 |
|
913 |
+
#: includes/admin/views/settings-info.php:18
|
914 |
msgid "Improved Usability"
|
915 |
msgstr "Usabilidade melhorada"
|
916 |
|
917 |
+
#: includes/admin/views/settings-info.php:19
|
918 |
msgid "Including the popular Select2 library has improved both usability and speed across a number of field types including post object, page link, taxonomy and select."
|
919 |
msgstr "A inclusão da popular biblioteca Select2 melhorou a usabilidade e a velocidade de tipos de campos como conteúdo, ligação de página, taxonomia e selecção."
|
920 |
|
921 |
+
#: includes/admin/views/settings-info.php:22
|
922 |
msgid "Improved Design"
|
923 |
msgstr "Design melhorado"
|
924 |
|
925 |
+
#: includes/admin/views/settings-info.php:23
|
926 |
msgid "Many fields have undergone a visual refresh to make ACF look better than ever! Noticeable changes are seen on the gallery, relationship and oEmbed (new) fields!"
|
927 |
msgstr "Muitos campos sofreram alterações visuais para que a aparência do ACF esteja melhor que nunca! Alterações notáveis nos campos de galeria, relação e oEmbed (novo)!"
|
928 |
|
929 |
+
#: includes/admin/views/settings-info.php:26
|
930 |
msgid "Improved Data"
|
931 |
msgstr "Dados melhorados"
|
932 |
|
933 |
+
#: includes/admin/views/settings-info.php:27
|
934 |
msgid "Redesigning the data architecture has allowed sub fields to live independently from their parents. This allows you to drag and drop fields in and out of parent fields!"
|
935 |
msgstr "A reformulação da arquitectura dos dados permite que os subcampos existam independentemente dos seus superiores. Isto permite-lhe arrastar e largar campos para dentro e para fora de campos superiores!"
|
936 |
|
937 |
+
#: includes/admin/views/settings-info.php:35
|
938 |
msgid "Goodbye Add-ons. Hello PRO"
|
939 |
msgstr "Adeus add-ons. Olá PRO."
|
940 |
|
941 |
+
#: includes/admin/views/settings-info.php:38
|
942 |
msgid "Introducing ACF PRO"
|
943 |
msgstr "Introdução ao ACF PRO"
|
944 |
|
945 |
+
#: includes/admin/views/settings-info.php:39
|
946 |
msgid "We're changing the way premium functionality is delivered in an exciting way!"
|
947 |
msgstr "Estamos a alterar o modo como as funcionalidades premium são distribuídas!"
|
948 |
|
949 |
+
#: includes/admin/views/settings-info.php:40
|
950 |
#, php-format
|
951 |
msgid "All 4 premium add-ons have been combined into a new <a href=\"%s\">Pro version of ACF</a>. With both personal and developer licenses available, premium functionality is more affordable and accessible than ever before!"
|
952 |
msgstr "Todos os 4 add-ons premium foram combinados numa única <a href=\"%s\">versão Pro do ACF</a>. Com licenças pessoais e para programadores, as funcionalidades premium estão agora mais acessíveis que nunca!"
|
953 |
|
954 |
+
#: includes/admin/views/settings-info.php:44
|
955 |
msgid "Powerful Features"
|
956 |
msgstr "Funcionalidades poderosas"
|
957 |
|
958 |
+
#: includes/admin/views/settings-info.php:45
|
959 |
msgid "ACF PRO contains powerful features such as repeatable data, flexible content layouts, a beautiful gallery field and the ability to create extra admin options pages!"
|
960 |
msgstr "O ACF PRO tem funcionalidades poderosas, tais como dados repetíveis, layouts de conteúdo flexível, um campo de galeria e a possibilidade de criar páginas de opções de administração adicionais!"
|
961 |
|
962 |
+
#: includes/admin/views/settings-info.php:46
|
963 |
#, php-format
|
964 |
msgid "Read more about <a href=\"%s\">ACF PRO features</a>."
|
965 |
msgstr "Mais informações sobre as <a href=\"%s\">funcionalidades do ACF PRO</a>."
|
966 |
|
967 |
+
#: includes/admin/views/settings-info.php:50
|
968 |
msgid "Easy Upgrading"
|
969 |
msgstr "Actualização fácil"
|
970 |
|
971 |
+
#: includes/admin/views/settings-info.php:51
|
972 |
msgid "Upgrading to ACF PRO is easy. Simply purchase a license online and download the plugin!"
|
973 |
msgstr "É fácil actualizar para o ACF PRO. Basta comprar uma licença online e descarregar o plugin!"
|
974 |
|
975 |
+
#: includes/admin/views/settings-info.php:52
|
976 |
#, php-format
|
977 |
msgid "We also wrote an <a href=\"%s\">upgrade guide</a> to answer any questions, but if you do have one, please contact our support team via the <a href=\"%s\">help desk</a>."
|
978 |
msgstr "Escrevemos um <a href=\"%s\">guia de actualização</a> para responder a todas as dúvidas, se tiver alguma questão, por favor contacte a nossa equipa de suporte através da <a href=\"%s\">central de ajuda</a>."
|
979 |
|
980 |
+
#: includes/admin/views/settings-info.php:61
|
981 |
msgid "New Features"
|
982 |
msgstr "Novas funcionalidades"
|
983 |
|
984 |
+
#: includes/admin/views/settings-info.php:66
|
985 |
msgid "Link Field"
|
986 |
msgstr "Campo de ligação"
|
987 |
|
988 |
+
#: includes/admin/views/settings-info.php:67
|
989 |
msgid "The Link field provides a simple way to select or define a link (url, title, target)."
|
990 |
msgstr "O campo de ligação permite facilmente seleccionar ou definir uma ligação (URL, título, destino)."
|
991 |
|
992 |
+
#: includes/admin/views/settings-info.php:71
|
993 |
msgid "Group Field"
|
994 |
msgstr "Campo de grupo"
|
995 |
|
996 |
+
#: includes/admin/views/settings-info.php:72
|
997 |
msgid "The Group field provides a simple way to create a group of fields."
|
998 |
msgstr "O campo de grupo permite facilmente criar um grupo de campos."
|
999 |
|
1000 |
+
#: includes/admin/views/settings-info.php:76
|
1001 |
msgid "oEmbed Field"
|
1002 |
msgstr "Campo de oEmbed"
|
1003 |
|
1004 |
+
#: includes/admin/views/settings-info.php:77
|
1005 |
msgid "The oEmbed field allows an easy way to embed videos, images, tweets, audio, and other content."
|
1006 |
msgstr "O campo de oEmbed permite facilmente incorporar vídeos, imagens, tweets, áudio ou outros conteúdos."
|
1007 |
|
1008 |
+
#: includes/admin/views/settings-info.php:81
|
1009 |
msgid "Clone Field"
|
1010 |
msgstr "Campo de clone"
|
1011 |
|
1012 |
+
#: includes/admin/views/settings-info.php:82
|
1013 |
msgid "The clone field allows you to select and display existing fields."
|
1014 |
msgstr "O campo de clone permite seleccionar e mostrar campos existentes."
|
1015 |
|
1016 |
+
#: includes/admin/views/settings-info.php:86
|
1017 |
msgid "More AJAX"
|
1018 |
msgstr "Mais AJAX"
|
1019 |
|
1020 |
+
#: includes/admin/views/settings-info.php:87
|
1021 |
msgid "More fields use AJAX powered search to speed up page loading."
|
1022 |
msgstr "Mais campos utilizam pesquisa com AJAX para aumentar a velocidade de carregamento."
|
1023 |
|
1024 |
+
#: includes/admin/views/settings-info.php:91
|
1025 |
msgid "Local JSON"
|
1026 |
msgstr "JSON local"
|
1027 |
|
1028 |
+
#: includes/admin/views/settings-info.php:92
|
1029 |
msgid "New auto export to JSON feature improves speed and allows for syncronisation."
|
1030 |
msgstr "Nova funcionalidade de exportação automática para JSON melhora a velocidade e permite sincronização."
|
1031 |
|
1032 |
+
#: includes/admin/views/settings-info.php:96
|
1033 |
msgid "Easy Import / Export"
|
1034 |
msgstr "Fácil importação e exportação"
|
1035 |
|
1036 |
+
#: includes/admin/views/settings-info.php:97
|
1037 |
msgid "Both import and export can easily be done through a new tools page."
|
1038 |
msgstr "Pode facilmente importar e exportar a partir da nova página de ferramentas."
|
1039 |
|
1040 |
+
#: includes/admin/views/settings-info.php:101
|
1041 |
msgid "New Form Locations"
|
1042 |
msgstr "Novas localizações de formulários"
|
1043 |
|
1044 |
+
#: includes/admin/views/settings-info.php:102
|
1045 |
msgid "Fields can now be mapped to menus, menu items, comments, widgets and all user forms!"
|
1046 |
msgstr "Os campos agora podem ser mapeados para menus, itens de menu, comentários, widgets e formulários de utilizador!"
|
1047 |
|
1048 |
+
#: includes/admin/views/settings-info.php:106
|
1049 |
msgid "More Customization"
|
1050 |
msgstr "Maior personalização"
|
1051 |
|
1052 |
+
#: includes/admin/views/settings-info.php:107
|
1053 |
msgid "New PHP (and JS) actions and filters have been added to allow for more customization."
|
1054 |
msgstr "Foram adicionadas novas acções e filtros de PHP (e JS) para permitir maior personalização."
|
1055 |
|
1056 |
+
#: includes/admin/views/settings-info.php:111
|
1057 |
msgid "Fresh UI"
|
1058 |
msgstr "Nova interface"
|
1059 |
|
1060 |
+
#: includes/admin/views/settings-info.php:112
|
1061 |
msgid "The entire plugin has had a design refresh including new field types, settings and design!"
|
1062 |
msgstr "Toda a interface do plugin foi actualizada, incluindo novos tipos de campos, definições e design!"
|
1063 |
|
1064 |
+
#: includes/admin/views/settings-info.php:116
|
1065 |
msgid "New Settings"
|
1066 |
msgstr "Novas definições"
|
1067 |
|
1068 |
+
#: includes/admin/views/settings-info.php:117
|
1069 |
msgid "Field group settings have been added for Active, Label Placement, Instructions Placement and Description."
|
1070 |
msgstr "Foram adicionadas definições aos grupos de campos, tais como activação, posição da legenda, posição das instruções e descrição."
|
1071 |
|
1072 |
+
#: includes/admin/views/settings-info.php:121
|
1073 |
msgid "Better Front End Forms"
|
1074 |
msgstr "Melhores formulários para o seu site"
|
1075 |
|
1076 |
+
#: includes/admin/views/settings-info.php:122
|
1077 |
msgid "acf_form() can now create a new post on submission with lots of new settings."
|
1078 |
msgstr "Com acf_form() agora pode criar um novo conteúdo ao submeter, com muito mais definições."
|
1079 |
|
1080 |
+
#: includes/admin/views/settings-info.php:126
|
1081 |
msgid "Better Validation"
|
1082 |
msgstr "Melhor validação"
|
1083 |
|
1084 |
+
#: includes/admin/views/settings-info.php:127
|
1085 |
msgid "Form validation is now done via PHP + AJAX in favour of only JS."
|
1086 |
msgstr "A validação de formulários agora é feita com PHP + AJAX em vez de apenas JS."
|
1087 |
|
1088 |
+
#: includes/admin/views/settings-info.php:131
|
1089 |
msgid "Moving Fields"
|
1090 |
msgstr "Mover campos"
|
1091 |
|
1092 |
+
#: includes/admin/views/settings-info.php:132
|
1093 |
msgid "New field group functionality allows you to move a field between groups & parents."
|
1094 |
msgstr "Nova funcionalidade de grupo de campos permite mover um campo entre grupos e superiores."
|
1095 |
|
1096 |
+
#: includes/admin/views/settings-info.php:143
|
1097 |
#, php-format
|
1098 |
msgid "We think you'll love the changes in %s."
|
1099 |
msgstr "Pensamos que vai gostar das alterações na versão %s."
|
1100 |
|
1101 |
+
#: includes/api/api-helpers.php:827
|
1102 |
msgid "Thumbnail"
|
1103 |
msgstr "Miniatura"
|
1104 |
|
1105 |
+
#: includes/api/api-helpers.php:828
|
1106 |
msgid "Medium"
|
1107 |
msgstr "Média"
|
1108 |
|
1109 |
+
#: includes/api/api-helpers.php:829
|
1110 |
msgid "Large"
|
1111 |
msgstr "Grande"
|
1112 |
|
1113 |
+
#: includes/api/api-helpers.php:878
|
1114 |
msgid "Full Size"
|
1115 |
msgstr "Tamanho original"
|
1116 |
|
1117 |
+
#: includes/api/api-helpers.php:1599 includes/api/api-term.php:147
|
1118 |
#: pro/fields/class-acf-field-clone.php:996
|
1119 |
msgid "(no title)"
|
1120 |
msgstr "(sem título)"
|
1121 |
|
1122 |
+
#: includes/api/api-helpers.php:3570
|
1123 |
#, php-format
|
1124 |
msgid "Image width must be at least %dpx."
|
1125 |
msgstr "A largura da imagem deve ser pelo menos de %dpx."
|
1126 |
|
1127 |
+
#: includes/api/api-helpers.php:3575
|
1128 |
#, php-format
|
1129 |
msgid "Image width must not exceed %dpx."
|
1130 |
msgstr "A largura da imagem não deve exceder os %dpx."
|
1131 |
|
1132 |
+
#: includes/api/api-helpers.php:3591
|
1133 |
#, php-format
|
1134 |
msgid "Image height must be at least %dpx."
|
1135 |
msgstr "A altura da imagem deve ser pelo menos de %dpx."
|
1136 |
|
1137 |
+
#: includes/api/api-helpers.php:3596
|
1138 |
#, php-format
|
1139 |
msgid "Image height must not exceed %dpx."
|
1140 |
msgstr "A altura da imagem não deve exceder os %dpx."
|
1141 |
|
1142 |
+
#: includes/api/api-helpers.php:3614
|
1143 |
#, php-format
|
1144 |
msgid "File size must be at least %s."
|
1145 |
msgstr "O tamanho do ficheiro deve ser pelo menos de %s."
|
1146 |
|
1147 |
+
#: includes/api/api-helpers.php:3619
|
1148 |
#, php-format
|
1149 |
msgid "File size must must not exceed %s."
|
1150 |
msgstr "O tamanho do ficheiro não deve exceder %s."
|
1151 |
|
1152 |
+
#: includes/api/api-helpers.php:3653
|
1153 |
#, php-format
|
1154 |
msgid "File type must be %s."
|
1155 |
msgstr "O tipo de ficheiro deve ser %s."
|
1189 |
msgid "Restricted"
|
1190 |
msgstr "Restrito"
|
1191 |
|
1192 |
+
#: includes/assets.php:178 includes/fields/class-acf-field-image.php:66
|
1193 |
msgid "All images"
|
1194 |
msgstr "Todas as imagens"
|
1195 |
|
1228 |
msgstr "Não"
|
1229 |
|
1230 |
#: includes/assets.php:190 includes/fields/class-acf-field-file.php:154
|
1231 |
+
#: includes/fields/class-acf-field-image.php:140
|
1232 |
#: includes/fields/class-acf-field-link.php:140
|
1233 |
+
#: pro/fields/class-acf-field-gallery.php:338
|
1234 |
+
#: pro/fields/class-acf-field-gallery.php:478
|
1235 |
msgid "Remove"
|
1236 |
msgstr "Remover"
|
1237 |
|
1402 |
#: includes/fields/class-acf-field-radio.php:281
|
1403 |
#: includes/fields/class-acf-field-range.php:149
|
1404 |
#: includes/fields/class-acf-field-select.php:373
|
1405 |
+
#: includes/fields/class-acf-field-text.php:95
|
1406 |
#: includes/fields/class-acf-field-textarea.php:102
|
1407 |
#: includes/fields/class-acf-field-true_false.php:135
|
1408 |
#: includes/fields/class-acf-field-url.php:100
|
1415 |
#: includes/fields/class-acf-field-number.php:128
|
1416 |
#: includes/fields/class-acf-field-radio.php:282
|
1417 |
#: includes/fields/class-acf-field-range.php:150
|
1418 |
+
#: includes/fields/class-acf-field-text.php:96
|
1419 |
#: includes/fields/class-acf-field-textarea.php:103
|
1420 |
#: includes/fields/class-acf-field-url.php:101
|
1421 |
#: includes/fields/class-acf-field-wysiwyg.php:382
|
1437 |
#: includes/fields/class-acf-field-button-group.php:191
|
1438 |
#: includes/fields/class-acf-field-checkbox.php:413
|
1439 |
#: includes/fields/class-acf-field-file.php:215
|
|
|
1440 |
#: includes/fields/class-acf-field-link.php:166
|
1441 |
#: includes/fields/class-acf-field-radio.php:304
|
1442 |
#: includes/fields/class-acf-field-taxonomy.php:829
|
1446 |
#: includes/fields/class-acf-field-button-group.php:192
|
1447 |
#: includes/fields/class-acf-field-checkbox.php:414
|
1448 |
#: includes/fields/class-acf-field-file.php:216
|
|
|
1449 |
#: includes/fields/class-acf-field-link.php:167
|
1450 |
#: includes/fields/class-acf-field-radio.php:305
|
1451 |
msgid "Specify the returned value on front end"
|
1587 |
|
1588 |
#: includes/fields/class-acf-field-date_picker.php:208
|
1589 |
#: includes/fields/class-acf-field-date_time_picker.php:200
|
1590 |
+
#: includes/fields/class-acf-field-image.php:204
|
1591 |
#: includes/fields/class-acf-field-post_object.php:431
|
1592 |
#: includes/fields/class-acf-field-relationship.php:634
|
1593 |
#: includes/fields/class-acf-field-select.php:427
|
1594 |
#: includes/fields/class-acf-field-time_picker.php:124
|
1595 |
#: includes/fields/class-acf-field-user.php:412
|
1596 |
+
#: pro/fields/class-acf-field-gallery.php:557
|
1597 |
msgid "Return Format"
|
1598 |
msgstr "Formato devolvido"
|
1599 |
|
1694 |
#: includes/fields/class-acf-field-email.php:127
|
1695 |
#: includes/fields/class-acf-field-number.php:136
|
1696 |
#: includes/fields/class-acf-field-password.php:71
|
1697 |
+
#: includes/fields/class-acf-field-text.php:104
|
1698 |
#: includes/fields/class-acf-field-textarea.php:111
|
1699 |
#: includes/fields/class-acf-field-url.php:109
|
1700 |
msgid "Placeholder Text"
|
1703 |
#: includes/fields/class-acf-field-email.php:128
|
1704 |
#: includes/fields/class-acf-field-number.php:137
|
1705 |
#: includes/fields/class-acf-field-password.php:72
|
1706 |
+
#: includes/fields/class-acf-field-text.php:105
|
1707 |
#: includes/fields/class-acf-field-textarea.php:112
|
1708 |
#: includes/fields/class-acf-field-url.php:110
|
1709 |
msgid "Appears within the input"
|
1713 |
#: includes/fields/class-acf-field-number.php:145
|
1714 |
#: includes/fields/class-acf-field-password.php:80
|
1715 |
#: includes/fields/class-acf-field-range.php:188
|
1716 |
+
#: includes/fields/class-acf-field-text.php:113
|
1717 |
msgid "Prepend"
|
1718 |
msgstr "Preceder"
|
1719 |
|
1721 |
#: includes/fields/class-acf-field-number.php:146
|
1722 |
#: includes/fields/class-acf-field-password.php:81
|
1723 |
#: includes/fields/class-acf-field-range.php:189
|
1724 |
+
#: includes/fields/class-acf-field-text.php:114
|
1725 |
msgid "Appears before the input"
|
1726 |
msgstr "Mostrado antes do campo"
|
1727 |
|
1729 |
#: includes/fields/class-acf-field-number.php:154
|
1730 |
#: includes/fields/class-acf-field-password.php:89
|
1731 |
#: includes/fields/class-acf-field-range.php:197
|
1732 |
+
#: includes/fields/class-acf-field-text.php:122
|
1733 |
msgid "Append"
|
1734 |
msgstr "Suceder"
|
1735 |
|
1737 |
#: includes/fields/class-acf-field-number.php:155
|
1738 |
#: includes/fields/class-acf-field-password.php:90
|
1739 |
#: includes/fields/class-acf-field-range.php:198
|
1740 |
+
#: includes/fields/class-acf-field-text.php:123
|
1741 |
msgid "Appears after the input"
|
1742 |
msgstr "Mostrado depois do campo"
|
1743 |
|
1760 |
#: includes/fields/class-acf-field-file.php:145
|
1761 |
#: includes/fields/class-acf-field-file.php:248
|
1762 |
#: includes/fields/class-acf-field-file.php:259
|
1763 |
+
#: includes/fields/class-acf-field-image.php:264
|
1764 |
+
#: includes/fields/class-acf-field-image.php:293
|
1765 |
+
#: pro/fields/class-acf-field-gallery.php:642
|
1766 |
+
#: pro/fields/class-acf-field-gallery.php:671
|
1767 |
msgid "File size"
|
1768 |
msgstr "Tamanho do ficheiro"
|
1769 |
|
1784 |
msgstr "ID do ficheiro"
|
1785 |
|
1786 |
#: includes/fields/class-acf-field-file.php:230
|
1787 |
+
#: includes/fields/class-acf-field-image.php:229
|
1788 |
+
#: pro/fields/class-acf-field-gallery.php:592
|
1789 |
msgid "Library"
|
1790 |
msgstr "Biblioteca"
|
1791 |
|
1792 |
#: includes/fields/class-acf-field-file.php:231
|
1793 |
+
#: includes/fields/class-acf-field-image.php:230
|
1794 |
+
#: pro/fields/class-acf-field-gallery.php:593
|
1795 |
msgid "Limit the media library choice"
|
1796 |
msgstr "Limita a escolha da biblioteca de media."
|
1797 |
|
1798 |
#: includes/fields/class-acf-field-file.php:236
|
1799 |
+
#: includes/fields/class-acf-field-image.php:235
|
1800 |
#: includes/locations/class-acf-location-attachment.php:101
|
1801 |
#: includes/locations/class-acf-location-comment.php:79
|
1802 |
#: includes/locations/class-acf-location-nav-menu.php:102
|
1803 |
#: includes/locations/class-acf-location-taxonomy.php:79
|
1804 |
+
#: includes/locations/class-acf-location-user-form.php:72
|
1805 |
+
#: includes/locations/class-acf-location-user-role.php:88
|
1806 |
#: includes/locations/class-acf-location-widget.php:83
|
1807 |
+
#: pro/fields/class-acf-field-gallery.php:598
|
1808 |
#: pro/locations/class-acf-location-block.php:79
|
1809 |
msgid "All"
|
1810 |
msgstr "Todos"
|
1811 |
|
1812 |
#: includes/fields/class-acf-field-file.php:237
|
1813 |
+
#: includes/fields/class-acf-field-image.php:236
|
1814 |
+
#: pro/fields/class-acf-field-gallery.php:599
|
1815 |
msgid "Uploaded to post"
|
1816 |
msgstr "Carregados no artigo"
|
1817 |
|
1818 |
#: includes/fields/class-acf-field-file.php:244
|
1819 |
+
#: includes/fields/class-acf-field-image.php:243
|
1820 |
+
#: pro/fields/class-acf-field-gallery.php:621
|
1821 |
msgid "Minimum"
|
1822 |
msgstr "Mínimo"
|
1823 |
|
1827 |
msgstr "Restringe que ficheiros podem ser carregados."
|
1828 |
|
1829 |
#: includes/fields/class-acf-field-file.php:255
|
1830 |
+
#: includes/fields/class-acf-field-image.php:272
|
1831 |
+
#: pro/fields/class-acf-field-gallery.php:650
|
1832 |
msgid "Maximum"
|
1833 |
msgstr "Máximo"
|
1834 |
|
1835 |
#: includes/fields/class-acf-field-file.php:266
|
1836 |
+
#: includes/fields/class-acf-field-image.php:301
|
1837 |
+
#: pro/fields/class-acf-field-gallery.php:678
|
1838 |
msgid "Allowed file types"
|
1839 |
msgstr "Tipos de ficheiros permitidos"
|
1840 |
|
1841 |
#: includes/fields/class-acf-field-file.php:267
|
1842 |
+
#: includes/fields/class-acf-field-image.php:302
|
1843 |
+
#: pro/fields/class-acf-field-gallery.php:679
|
1844 |
msgid "Comma separated list. Leave blank for all types"
|
1845 |
msgstr "Lista separada por vírgulas. Deixe em branco para permitir todos os tipos."
|
1846 |
|
1852 |
msgid "Sorry, this browser does not support geolocation"
|
1853 |
msgstr "Desculpe, este navegador não suporta geolocalização."
|
1854 |
|
1855 |
+
#: includes/fields/class-acf-field-google-map.php:147
|
1856 |
msgid "Clear location"
|
1857 |
msgstr "Limpar localização"
|
1858 |
|
1859 |
+
#: includes/fields/class-acf-field-google-map.php:148
|
1860 |
msgid "Find current location"
|
1861 |
msgstr "Encontrar a localização actual"
|
1862 |
|
1863 |
+
#: includes/fields/class-acf-field-google-map.php:151
|
1864 |
msgid "Search for address..."
|
1865 |
msgstr "Pesquisar endereço..."
|
1866 |
|
1867 |
+
#: includes/fields/class-acf-field-google-map.php:181
|
1868 |
+
#: includes/fields/class-acf-field-google-map.php:192
|
1869 |
msgid "Center"
|
1870 |
msgstr "Centrar"
|
1871 |
|
1872 |
+
#: includes/fields/class-acf-field-google-map.php:182
|
1873 |
+
#: includes/fields/class-acf-field-google-map.php:193
|
1874 |
msgid "Center the initial map"
|
1875 |
msgstr "Centrar o mapa inicial"
|
1876 |
|
1877 |
+
#: includes/fields/class-acf-field-google-map.php:204
|
1878 |
msgid "Zoom"
|
1879 |
msgstr "Zoom"
|
1880 |
|
1881 |
+
#: includes/fields/class-acf-field-google-map.php:205
|
1882 |
msgid "Set the initial zoom level"
|
1883 |
msgstr "Definir o nível de zoom inicial"
|
1884 |
|
1885 |
+
#: includes/fields/class-acf-field-google-map.php:214
|
1886 |
+
#: includes/fields/class-acf-field-image.php:255
|
1887 |
+
#: includes/fields/class-acf-field-image.php:284
|
1888 |
#: includes/fields/class-acf-field-oembed.php:268
|
1889 |
+
#: pro/fields/class-acf-field-gallery.php:633
|
1890 |
+
#: pro/fields/class-acf-field-gallery.php:662
|
1891 |
msgid "Height"
|
1892 |
msgstr "Altura"
|
1893 |
|
1894 |
+
#: includes/fields/class-acf-field-google-map.php:215
|
1895 |
msgid "Customize the map height"
|
1896 |
msgstr "Personalizar a altura do mapa"
|
1897 |
|
1935 |
msgid "Image"
|
1936 |
msgstr "Imagem"
|
1937 |
|
1938 |
+
#: includes/fields/class-acf-field-image.php:63
|
1939 |
msgid "Select Image"
|
1940 |
msgstr "Seleccionar imagem"
|
1941 |
|
1942 |
+
#: includes/fields/class-acf-field-image.php:64
|
1943 |
msgid "Edit Image"
|
1944 |
msgstr "Editar imagem"
|
1945 |
|
1946 |
+
#: includes/fields/class-acf-field-image.php:65
|
1947 |
msgid "Update Image"
|
1948 |
msgstr "Actualizar imagem"
|
1949 |
|
1950 |
+
#: includes/fields/class-acf-field-image.php:156
|
1951 |
msgid "No image selected"
|
1952 |
msgstr "Nenhuma imagem seleccionada"
|
1953 |
|
1954 |
+
#: includes/fields/class-acf-field-image.php:156
|
1955 |
msgid "Add Image"
|
1956 |
msgstr "Adicionar imagem"
|
1957 |
|
1958 |
+
#: includes/fields/class-acf-field-image.php:210
|
1959 |
+
#: pro/fields/class-acf-field-gallery.php:563
|
1960 |
msgid "Image Array"
|
1961 |
msgstr "Array da imagem"
|
1962 |
|
1963 |
+
#: includes/fields/class-acf-field-image.php:211
|
1964 |
+
#: pro/fields/class-acf-field-gallery.php:564
|
1965 |
msgid "Image URL"
|
1966 |
msgstr "URL da imagem"
|
1967 |
|
1968 |
+
#: includes/fields/class-acf-field-image.php:212
|
1969 |
+
#: pro/fields/class-acf-field-gallery.php:565
|
1970 |
msgid "Image ID"
|
1971 |
msgstr "ID da imagem"
|
1972 |
|
1973 |
+
#: includes/fields/class-acf-field-image.php:219
|
1974 |
+
#: pro/fields/class-acf-field-gallery.php:571
|
1975 |
msgid "Preview Size"
|
1976 |
msgstr "Tamanho da pré-visualização"
|
1977 |
|
1978 |
+
#: includes/fields/class-acf-field-image.php:244
|
1979 |
+
#: includes/fields/class-acf-field-image.php:273
|
1980 |
+
#: pro/fields/class-acf-field-gallery.php:622
|
1981 |
+
#: pro/fields/class-acf-field-gallery.php:651
|
|
|
|
|
|
|
|
|
1982 |
msgid "Restrict which images can be uploaded"
|
1983 |
msgstr "Restringir que imagens que ser carregadas"
|
1984 |
|
1985 |
+
#: includes/fields/class-acf-field-image.php:247
|
1986 |
+
#: includes/fields/class-acf-field-image.php:276
|
1987 |
#: includes/fields/class-acf-field-oembed.php:257
|
1988 |
+
#: pro/fields/class-acf-field-gallery.php:625
|
1989 |
+
#: pro/fields/class-acf-field-gallery.php:654
|
1990 |
msgid "Width"
|
1991 |
msgstr "Largura"
|
1992 |
|
2244 |
msgstr "Máximo de conteúdos"
|
2245 |
|
2246 |
#: includes/fields/class-acf-field-relationship.php:727
|
2247 |
+
#: pro/fields/class-acf-field-gallery.php:779
|
2248 |
#, php-format
|
2249 |
msgid "%s requires at least %s selection"
|
2250 |
msgid_plural "%s requires at least %s selections"
|
2432 |
msgstr "%s adicionado(a)"
|
2433 |
|
2434 |
#: includes/fields/class-acf-field-taxonomy.php:973
|
2435 |
+
#: includes/locations/class-acf-location-user-form.php:73
|
2436 |
msgid "Add"
|
2437 |
msgstr "Adicionar"
|
2438 |
|
2440 |
msgid "Text"
|
2441 |
msgstr "Texto"
|
2442 |
|
2443 |
+
#: includes/fields/class-acf-field-text.php:131
|
2444 |
#: includes/fields/class-acf-field-textarea.php:120
|
2445 |
msgid "Character Limit"
|
2446 |
msgstr "Limite de caracteres"
|
2447 |
|
2448 |
+
#: includes/fields/class-acf-field-text.php:132
|
2449 |
#: includes/fields/class-acf-field-textarea.php:121
|
2450 |
msgid "Leave blank for no limit"
|
2451 |
msgstr "Deixe em branco para não limitar"
|
2452 |
|
2453 |
+
#: includes/fields/class-acf-field-text.php:157
|
2454 |
+
#: includes/fields/class-acf-field-textarea.php:215
|
2455 |
#, php-format
|
2456 |
msgid "Value must not exceed %d characters"
|
2457 |
msgstr "O valor não deve exceder %d caracteres"
|
2574 |
msgstr "Atrasar a inicialização?"
|
2575 |
|
2576 |
#: includes/fields/class-acf-field-wysiwyg.php:430
|
2577 |
+
msgid "TinyMCE will not be initialized until field is clicked"
|
2578 |
msgstr "O TinyMCE não será inicializado até que clique no campo"
|
2579 |
|
2580 |
#: includes/forms/form-front.php:55
|
2581 |
msgid "Validate Email"
|
2582 |
msgstr "Validar email"
|
2583 |
|
2584 |
+
#: includes/forms/form-front.php:104 pro/fields/class-acf-field-gallery.php:510
|
2585 |
#: pro/options-page.php:81
|
2586 |
msgid "Update"
|
2587 |
msgstr "Actualizar"
|
2588 |
|
2589 |
+
#: includes/forms/form-front.php:105
|
2590 |
msgid "Post updated"
|
2591 |
msgstr "Artigo actualizado"
|
2592 |
|
2593 |
+
#: includes/forms/form-front.php:231
|
2594 |
msgid "Spam Detected"
|
2595 |
msgstr "Spam detectado"
|
2596 |
|
2597 |
+
#: includes/forms/form-user.php:336
|
2598 |
+
#, php-format
|
2599 |
+
msgid "<strong>ERROR</strong>: %s"
|
2600 |
+
msgstr "<strong>ERRO</strong>: %s"
|
2601 |
+
|
2602 |
#: includes/locations.php:93 includes/locations/class-acf-location-post.php:27
|
2603 |
msgid "Post"
|
2604 |
msgstr "Artigo"
|
2729 |
msgid "Post Template"
|
2730 |
msgstr "Modelo de conteúdo"
|
2731 |
|
2732 |
+
#: includes/locations/class-acf-location-user-form.php:22
|
2733 |
msgid "User Form"
|
2734 |
msgstr "Formulário de utilizador"
|
2735 |
|
2736 |
+
#: includes/locations/class-acf-location-user-form.php:74
|
2737 |
msgid "Add / Edit"
|
2738 |
msgstr "Adicionar / Editar"
|
2739 |
|
2740 |
+
#: includes/locations/class-acf-location-user-form.php:75
|
2741 |
msgid "Register"
|
2742 |
msgstr "Registar"
|
2743 |
|
2744 |
+
#: includes/locations/class-acf-location-user-role.php:22
|
2745 |
msgid "User Role"
|
2746 |
msgstr "Papel de utilizador"
|
2747 |
|
2996 |
msgid "Maximum Layouts"
|
2997 |
msgstr "Máximo de layouts"
|
2998 |
|
2999 |
+
#: pro/fields/class-acf-field-gallery.php:73
|
3000 |
msgid "Add Image to Gallery"
|
3001 |
msgstr "Adicionar imagem à galeria"
|
3002 |
|
3003 |
+
#: pro/fields/class-acf-field-gallery.php:74
|
3004 |
msgid "Maximum selection reached"
|
3005 |
msgstr "Máximo de selecção alcançado"
|
3006 |
|
3007 |
+
#: pro/fields/class-acf-field-gallery.php:322
|
3008 |
msgid "Length"
|
3009 |
msgstr "Comprimento"
|
3010 |
|
3011 |
+
#: pro/fields/class-acf-field-gallery.php:362
|
3012 |
msgid "Caption"
|
3013 |
msgstr "Legenda"
|
3014 |
|
3015 |
+
#: pro/fields/class-acf-field-gallery.php:371
|
3016 |
msgid "Alt Text"
|
3017 |
msgstr "Texto alternativo"
|
3018 |
|
3019 |
+
#: pro/fields/class-acf-field-gallery.php:487
|
3020 |
msgid "Add to gallery"
|
3021 |
msgstr "Adicionar à galeria"
|
3022 |
|
3023 |
+
#: pro/fields/class-acf-field-gallery.php:491
|
3024 |
msgid "Bulk actions"
|
3025 |
msgstr "Acções por lotes"
|
3026 |
|
3027 |
+
#: pro/fields/class-acf-field-gallery.php:492
|
3028 |
msgid "Sort by date uploaded"
|
3029 |
msgstr "Ordenar por data de carregamento"
|
3030 |
|
3031 |
+
#: pro/fields/class-acf-field-gallery.php:493
|
3032 |
msgid "Sort by date modified"
|
3033 |
msgstr "Ordenar por data de modificação"
|
3034 |
|
3035 |
+
#: pro/fields/class-acf-field-gallery.php:494
|
3036 |
msgid "Sort by title"
|
3037 |
msgstr "Ordenar por título"
|
3038 |
|
3039 |
+
#: pro/fields/class-acf-field-gallery.php:495
|
3040 |
msgid "Reverse current order"
|
3041 |
msgstr "Inverter ordem actual"
|
3042 |
|
3043 |
+
#: pro/fields/class-acf-field-gallery.php:507
|
3044 |
msgid "Close"
|
3045 |
msgstr "Fechar"
|
3046 |
|
3047 |
+
#: pro/fields/class-acf-field-gallery.php:580
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3048 |
msgid "Insert"
|
3049 |
msgstr "Inserir"
|
3050 |
|
3051 |
+
#: pro/fields/class-acf-field-gallery.php:581
|
3052 |
msgid "Specify where new attachments are added"
|
3053 |
msgstr "Especifica onde serão adicionados os novos anexos."
|
3054 |
|
3055 |
+
#: pro/fields/class-acf-field-gallery.php:585
|
3056 |
msgid "Append to the end"
|
3057 |
msgstr "No fim"
|
3058 |
|
3059 |
+
#: pro/fields/class-acf-field-gallery.php:586
|
3060 |
msgid "Prepend to the beginning"
|
3061 |
msgstr "No início"
|
3062 |
|
3063 |
+
#: pro/fields/class-acf-field-gallery.php:605
|
3064 |
+
msgid "Minimum Selection"
|
3065 |
+
msgstr "Selecção mínima"
|
3066 |
+
|
3067 |
+
#: pro/fields/class-acf-field-gallery.php:613
|
3068 |
+
msgid "Maximum Selection"
|
3069 |
+
msgstr "Selecção máxima"
|
3070 |
+
|
3071 |
#: pro/fields/class-acf-field-repeater.php:65
|
3072 |
#: pro/fields/class-acf-field-repeater.php:661
|
3073 |
msgid "Minimum rows reached ({min} rows)"
|
3118 |
msgid "To enable updates, please enter your license key on the <a href=\"%s\">Updates</a> page. If you don't have a licence key, please see <a href=\"%s\">details & pricing</a>."
|
3119 |
msgstr "Para permitir actualizações, por favor insira a sua chave de licença na página de <a href=\"%s\">Actualizações</a>. Se não tiver uma chave de licença, por favor veja os <a href=\"%s\">detalhes e preços</a>."
|
3120 |
|
3121 |
+
#: tests/basic/test-blocks.php:30
|
3122 |
+
msgid "Normal"
|
3123 |
+
msgstr "Normal"
|
3124 |
|
3125 |
+
#: tests/basic/test-blocks.php:31
|
3126 |
+
msgid "Fancy"
|
3127 |
+
msgstr "Elegante"
|
3128 |
|
3129 |
#. Plugin URI of the plugin/theme
|
3130 |
+
#. Author URI of the plugin/theme
|
3131 |
+
msgid "https://www.advancedcustomfields.com"
|
3132 |
+
msgstr "https://www.advancedcustomfields.com"
|
3133 |
|
3134 |
#. Author of the plugin/theme
|
3135 |
msgid "Elliot Condon"
|
3136 |
msgstr "Elliot Condon"
|
3137 |
|
3138 |
+
#~ msgid "Shown when entering data"
|
3139 |
+
#~ msgstr "Mostrado ao inserir dados"
|
3140 |
+
|
3141 |
+
#~ msgid "Testimonial"
|
3142 |
+
#~ msgstr "Testemunho"
|
3143 |
+
|
3144 |
+
#~ msgid "A custom testimonial block."
|
3145 |
+
#~ msgstr "Um bloco personalizado de testemunho."
|
3146 |
+
|
3147 |
+
#~ msgid "http://www.elliotcondon.com/"
|
3148 |
+
#~ msgstr "http://www.elliotcondon.com/"
|
3149 |
|
3150 |
#~ msgid "<b>Error</b>. Could not connect to update server %s."
|
3151 |
#~ msgstr "<b>Erro</b>. Não foi possível ligar ao servidor de actualização %s."
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: elliotcondon
|
3 |
Tags: acf, advanced, custom, field, fields, form, repeater, content
|
4 |
Requires at least: 4.7.0
|
5 |
-
Tested up to: 5.2
|
6 |
Requires PHP: 5.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -67,6 +67,16 @@ From your WordPress dashboard
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
= 5.8.5 =
|
71 |
*Release Date - 8 October 2019*
|
72 |
|
2 |
Contributors: elliotcondon
|
3 |
Tags: acf, advanced, custom, field, fields, form, repeater, content
|
4 |
Requires at least: 4.7.0
|
5 |
+
Tested up to: 5.2.4
|
6 |
Requires PHP: 5.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 5.8.6 =
|
71 |
+
*Release Date - 24 October 2019*
|
72 |
+
|
73 |
+
* New - Added more data to Google Maps field value including place_id, street_name, country and more.
|
74 |
+
* Fix - Fixed bug in Gallery field incorrectly displaying .pdf attachments as icons.
|
75 |
+
* Fix - Fixed bug in Checkbox field missing "selected" class after "Toggle All".
|
76 |
+
* Dev - Added compatibility for Attachments in the Post Taxonomy location rule.
|
77 |
+
* Dev - Added missing return statement from `acf_get_form()` function.
|
78 |
+
* Dev - Added "google_map_result" JS filter.
|
79 |
+
|
80 |
= 5.8.5 =
|
81 |
*Release Date - 8 October 2019*
|
82 |
|