Merge branch 'release/5.6.7'

This commit is contained in:
Remco Tolsma 2018-01-30 13:12:40 +01:00
commit 35d27a0a17
52 changed files with 8610 additions and 6873 deletions

57
acf.php
View File

@ -3,7 +3,7 @@
Plugin Name: Advanced Custom Fields PRO Plugin Name: Advanced Custom Fields PRO
Plugin URI: https://www.advancedcustomfields.com/ Plugin URI: https://www.advancedcustomfields.com/
Description: Customise WordPress with powerful, professional and intuitive fields. Description: Customise WordPress with powerful, professional and intuitive fields.
Version: 5.6.5 Version: 5.6.7
Author: Elliot Condon Author: Elliot Condon
Author URI: http://www.elliotcondon.com/ Author URI: http://www.elliotcondon.com/
Copyright: Elliot Condon Copyright: Elliot Condon
@ -13,12 +13,12 @@ Domain Path: /lang
if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if( ! class_exists('acf') ) : if( ! class_exists('ACF') ) :
class acf { class ACF {
/** @var string The plugin version number */ /** @var string The plugin version number */
var $version = '5.6.5'; var $version = '5.6.7';
/** @var array The plugin settings array */ /** @var array The plugin settings array */
@ -71,7 +71,7 @@ class acf {
'file' => __FILE__, 'file' => __FILE__,
'basename' => plugin_basename( __FILE__ ), 'basename' => plugin_basename( __FILE__ ),
'path' => plugin_dir_path( __FILE__ ), 'path' => plugin_dir_path( __FILE__ ),
'dir' => plugin_dir_url( __FILE__ ), 'url' => plugin_dir_url( __FILE__ ),
// options // options
'show_admin' => true, 'show_admin' => true,
@ -219,9 +219,9 @@ class acf {
$major = intval( acf_get_setting('version') ); $major = intval( acf_get_setting('version') );
// redeclare dir // update url
// - allow another plugin to modify dir (maybe force SSL) // - allow another plugin to modify dir (maybe force SSL)
acf_update_setting('dir', plugin_dir_url( __FILE__ )); acf_update_setting('url', plugin_dir_url( __FILE__ ));
// textdomain // textdomain
@ -268,7 +268,7 @@ class acf {
acf_include('includes/fields/class-acf-field-color_picker.php'); acf_include('includes/fields/class-acf-field-color_picker.php');
acf_include('includes/fields/class-acf-field-message.php'); acf_include('includes/fields/class-acf-field-message.php');
//acf_include('includes/fields/class-acf-field-separator.php'); acf_include('includes/fields/class-acf-field-accordion.php');
acf_include('includes/fields/class-acf-field-tab.php'); acf_include('includes/fields/class-acf-field-tab.php');
acf_include('includes/fields/class-acf-field-group.php'); acf_include('includes/fields/class-acf-field-group.php');
do_action('acf/include_field_types', $major); do_action('acf/include_field_types', $major);
@ -478,14 +478,14 @@ class acf {
// scripts // scripts
wp_register_script('acf-input', acf_get_dir("assets/js/acf-input{$min}.js"), array('jquery', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-resizable'), $version ); wp_register_script('acf-input', acf_get_url("assets/js/acf-input{$min}.js"), array('jquery', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-resizable'), $version );
wp_register_script('acf-field-group', acf_get_dir("assets/js/acf-field-group{$min}.js"), array('acf-input'), $version ); wp_register_script('acf-field-group', acf_get_url("assets/js/acf-field-group{$min}.js"), array('acf-input'), $version );
// styles // styles
wp_register_style('acf-global', acf_get_dir('assets/css/acf-global.css'), array(), $version ); wp_register_style('acf-global', acf_get_url('assets/css/acf-global.css'), array(), $version );
wp_register_style('acf-input', acf_get_dir('assets/css/acf-input.css'), array('acf-global'), $version ); wp_register_style('acf-input', acf_get_url('assets/css/acf-input.css'), array('acf-global'), $version );
wp_register_style('acf-field-group', acf_get_dir('assets/css/acf-field-group.css'), array('acf-input'), $version ); wp_register_style('acf-field-group', acf_get_url('assets/css/acf-field-group.css'), array('acf-input'), $version );
} }
@ -512,25 +512,17 @@ class acf {
// acf_field_key // acf_field_key
if( $field_key = $wp_query->get('acf_field_key') ) { if( $field_key = $wp_query->get('acf_field_key') ) {
$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $field_key ); $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $field_key );
} }
// acf_field_name // acf_field_name
if( $field_name = $wp_query->get('acf_field_name') ) { if( $field_name = $wp_query->get('acf_field_name') ) {
$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_excerpt = %s", $field_name ); $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_excerpt = %s", $field_name );
} }
// acf_group_key // acf_group_key
if( $group_key = $wp_query->get('acf_group_key') ) { if( $group_key = $wp_query->get('acf_group_key') ) {
$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $group_key ); $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $group_key );
} }
@ -556,7 +548,9 @@ class acf {
function define( $name, $value = true ) { function define( $name, $value = true ) {
if( !defined($name) ) define( $name, $value ); if( !defined($name) ) {
define( $name, $value );
}
} }
@ -579,17 +573,13 @@ class acf {
// check settings // check settings
if( isset($this->settings[ $name ]) ) { if( isset($this->settings[ $name ]) ) {
$value = $this->settings[ $name ]; $value = $this->settings[ $name ];
} }
// filter for 3rd party customization // filter
if( substr($name, 0, 1) !== '_' ) { if( substr($name, 0, 1) !== '_' ) {
$value = apply_filters( "acf/settings/{$name}", $value ); $value = apply_filters( "acf/settings/{$name}", $value );
} }
@ -616,7 +606,6 @@ class acf {
function update_setting( $name, $value ) { function update_setting( $name, $value ) {
$this->settings[ $name ] = $value; $this->settings[ $name ] = $value;
return true; return true;
} }
@ -641,17 +630,19 @@ class acf {
*/ */
function acf() { function acf() {
// globals
global $acf; global $acf;
if( !isset($acf) ) {
$acf = new acf(); // initialize
if( !isset($acf) ) {
$acf = new ACF();
$acf->initialize(); $acf->initialize();
} }
// return
return $acf; return $acf;
} }

View File

@ -131,6 +131,11 @@
visibility: visible !important; visibility: visible !important;
background: #F9F9F9; background: #F9F9F9;
border-top-color: transparent; border-top-color: transparent;
min-height: 54px;
}
.acf-field-object.ui-sortable-placeholder:after,
.acf-field-object.ui-sortable-placeholder:before {
visibility: hidden;
} }
.acf-field-object > .meta { .acf-field-object > .meta {
display: none; display: none;
@ -284,41 +289,42 @@ table.conditional-logic-rules tbody td {
* Field: Tab * Field: Tab
* *
*---------------------------------------------------------------------------------------------*/ *---------------------------------------------------------------------------------------------*/
.acf-field-object-tab tr[data-name="name"], .acf-field-object-tab .acf-field-setting-name,
.acf-field-object-tab tr[data-name="instructions"], .acf-field-object-tab .acf-field-setting-instructions,
.acf-field-object-tab tr[data-name="required"], .acf-field-object-tab .acf-field-setting-required,
.acf-field-object-tab tr[data-name="warning"], .acf-field-object-tab .acf-field-setting-warning,
.acf-field-object-tab tr[data-name="wrapper"] { .acf-field-object-tab .acf-field-setting-wrapper,
display: none !important; .acf-field-object-accordion .acf-field-setting-name,
.acf-field-object-accordion .acf-field-setting-instructions,
.acf-field-object-accordion .acf-field-setting-required,
.acf-field-object-accordion .acf-field-setting-warning,
.acf-field-object-accordion .acf-field-setting-wrapper {
display: none;
} }
.acf-field-object-tab .li-field-name { .acf-field-object-tab .li-field-name,
.acf-field-object-accordion .li-field-name {
visibility: hidden; visibility: hidden;
} }
.acf-field-object-tab .acf-error-message { .acf-field-object + .acf-field-object-tab:before,
display: none; .acf-field-object + .acf-field-object-accordion:before {
}
.acf-field-list[data-layout="table"] .acf-field-object-tab .acf-error-message {
display: block;
}
.acf-field-object + .acf-field-object-tab {
margin-top: 6px;
}
.acf-field-object + .acf-field-object-tab:before {
display: block; display: block;
content: ""; content: "";
height: 1px; height: 5px;
background: #F0F0F0;
margin-top: -7px;
width: 100%; width: 100%;
position: absolute; background: #f9f9f9;
border-bottom: #f0f0f0 solid 1px;
} }
.acf-field-object + .acf-field-object-tab.ui-sortable-placeholder { .acf-field-object-tab p:first-child,
margin-top: 0; .acf-field-object-accordion p:first-child {
padding-top: 6px; margin: 0.5em 0;
} }
.acf-field-object-tab.ui-sortable-helper:before, /*---------------------------------------------------------------------------------------------
.ui-sortable-placeholder + .acf-field-object-tab:before { *
display: none; * Field: Accordion
*
*---------------------------------------------------------------------------------------------*/
.acf-field-object-accordion .acf-field-setting-instructions {
display: table-row;
} }
/*--------------------------------------------------------------------------------------------- /*---------------------------------------------------------------------------------------------
* *

File diff suppressed because it is too large Load Diff

View File

@ -78,6 +78,9 @@
e.$el.sortable({ e.$el.sortable({
handle: '.acf-sortable-handle', handle: '.acf-sortable-handle',
connectWith: '.acf-field-list', connectWith: '.acf-field-list',
start: function(e, ui){
ui.placeholder.height( ui.item.height() );
},
update: function(event, ui){ update: function(event, ui){
// vars // vars
@ -551,7 +554,7 @@
// update label // update label
$handle.find('.li-field-label strong a').text( label ); $handle.find('.li-field-label strong a').html( label );
// update required // update required

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -585,7 +585,7 @@ class ACF_Admin_Tool_Export extends ACF_Admin_Tool {
} }
// initialize // initialize
acf_register_admin_tool( 'acf_admin_tool_export' ); acf_register_admin_tool( 'ACF_Admin_Tool_Export' );
endif; // class_exists check endif; // class_exists check

View File

@ -270,7 +270,7 @@ class ACF_Admin_Tool_Import extends ACF_Admin_Tool {
} }
// initialize // initialize
acf_register_admin_tool( 'acf_admin_tool_import' ); acf_register_admin_tool( 'ACF_Admin_Tool_Import' );
endif; // class_exists check endif; // class_exists check

View File

@ -60,7 +60,7 @@ acf_render_field_wrap(array(
'value' => $field_group['label_placement'], 'value' => $field_group['label_placement'],
'choices' => array( 'choices' => array(
'top' => __("Top aligned",'acf'), 'top' => __("Top aligned",'acf'),
'left' => __("Left Aligned",'acf'), 'left' => __("Left aligned",'acf'),
) )
)); ));

View File

@ -205,30 +205,52 @@ function acf_has_done( $name ) {
* @return (string) * @return (string)
*/ */
function acf_get_path( $path ) { function acf_get_path( $path = '' ) {
return ACF_PATH . $path; return ACF_PATH . $path;
} }
/**
* acf_get_url
*
* This function will return the url to a file within the ACF plugin folder
*
* @date 12/12/17
* @since 5.6.8
*
* @param string $path The relative path from the root of the ACF plugin folder
* @return string
*/
function acf_get_url( $path = '' ) {
// define ACF_URL to optimise performance
if( !defined('ACF_URL') ) {
define( 'ACF_URL', acf_get_setting('url') );
}
// return
return ACF_URL . $path;
}
/* /*
* acf_get_dir * acf_get_dir
* *
* This function will return the url to a file within the ACF plugin folder * Deprecated in 5.6.8. Use acf_get_url() instead.
* *
* @type function
* @date 28/09/13 * @date 28/09/13
* @since 5.0.0 * @since 5.0.0
* *
* @param $path (string) the relative path from the root of the ACF plugin folder * @param string
* @return (string) * @return string
*/ */
function acf_get_dir( $path ) { function acf_get_dir( $path = '' ) {
return acf_get_url( $path );
return acf_get_setting('dir') . $path;
} }
@ -274,7 +296,7 @@ function acf_include( $file ) {
function acf_get_external_path( $file, $path = '' ) { function acf_get_external_path( $file, $path = '' ) {
return trailingslashit( dirname( $file ) ) . $path; return plugin_dir_path( $file ) . $path;
} }
@ -295,33 +317,53 @@ function acf_get_external_path( $file, $path = '' ) {
function acf_get_external_dir( $file, $path = '' ) { function acf_get_external_dir( $file, $path = '' ) {
// vars return acf_plugin_dir_url( $file ) . $path;
$external_url = '';
$external_path = acf_get_external_path( $file, $path );
$wp_plugin_path = wp_normalize_path(WP_PLUGIN_DIR);
$wp_content_path = wp_normalize_path(WP_CONTENT_DIR);
$wp_path = wp_normalize_path(ABSPATH);
// wp-content/plugins
if( strpos($external_path, $wp_plugin_path) === 0 ) {
return str_replace($wp_plugin_path, plugins_url(), $external_path);
}
// wp-content
if( strpos($external_path, $wp_content_path) === 0 ) {
return str_replace($wp_content_path, content_url(), $external_path);
}
/**
* acf_plugin_dir_url
*
* This function will calculate the url to a plugin folder.
* Different to the WP plugin_dir_url(), this function can calculate for urls outside of the plugins folder (theme include).
*
* @date 13/12/17
* @since 5.6.8
*
* @param type $var Description. Default.
* @return type Description.
*/
function acf_plugin_dir_url( $file ) {
// vars
$path = plugin_dir_path( $file );
$path = wp_normalize_path( $path );
// check plugins
$check_path = wp_normalize_path( realpath(WP_PLUGIN_DIR) );
if( strpos($path, $check_path) === 0 ) {
return str_replace( $check_path, plugins_url(), $path );
} }
// check wp-content
$check_path = wp_normalize_path( realpath(WP_CONTENT_DIR) );
if( strpos($path, $check_path) === 0 ) {
return str_replace( $check_path, content_url(), $path );
}
// return // check root
return str_replace($wp_path, home_url(), $external_path); $check_path = wp_normalize_path( realpath(ABSPATH) );
if( strpos($path, $check_path) === 0 ) {
return str_replace( $check_path, site_url('/'), $path );
}
// return
return plugin_dir_url( $file );
} }
@ -811,19 +853,20 @@ function acf_verify_nonce( $value) {
function acf_verify_ajax() { function acf_verify_ajax() {
// vars
$action = acf_maybe_get_POST('action');
$nonce = acf_maybe_get_POST('nonce');
// bail early if not acf action // bail early if not acf action
if( empty($_POST['action']) || substr($_POST['action'], 0, 3) !== 'acf' ) { if( !$action || substr($action, 0, 3) !== 'acf' ) {
return false; return false;
} }
// bail early if not acf nonce // bail early if not acf nonce
if( empty($_POST['nonce']) || !wp_verify_nonce($_POST['nonce'], 'acf_nonce') ) { if( !$nonce || !wp_verify_nonce($nonce, 'acf_nonce') ) {
return false; return false;
} }

View File

@ -124,7 +124,8 @@ function acf_esc_atts( $atts = array() ) {
// string // string
if( is_string($v) ) { if( is_string($v) ) {
$v = trim($v); // don't trim value
if( $k !== 'value') $v = trim($v);
// boolean // boolean
} elseif( is_bool($v) ) { } elseif( is_bool($v) ) {

View File

@ -26,6 +26,7 @@ class acf_deprecated {
add_filter('acf/settings/l10n_textdomain', array($this, 'acf_settings_l10n_textdomain'), 5, 1); // 5.3.3 add_filter('acf/settings/l10n_textdomain', array($this, 'acf_settings_l10n_textdomain'), 5, 1); // 5.3.3
add_filter('acf/settings/l10n_field', array($this, 'acf_settings_l10n_field'), 5, 1); // 5.3.3 add_filter('acf/settings/l10n_field', array($this, 'acf_settings_l10n_field'), 5, 1); // 5.3.3
add_filter('acf/settings/l10n_field_group', array($this, 'acf_settings_l10n_field'), 5, 1); // 5.3.3 add_filter('acf/settings/l10n_field_group', array($this, 'acf_settings_l10n_field'), 5, 1); // 5.3.3
add_filter('acf/settings/url', array($this, 'acf_settings_url'), 5, 1); // 5.6.8
// filters // filters
@ -99,6 +100,26 @@ class acf_deprecated {
} }
/**
* acf_settings_url
*
* This function will add compatibility for previously named hooks
*
* @date 12/12/17
* @since 5.6.8
*
* @param n/a
* @return n/a
*/
function acf_settings_url( $setting ) {
// 5.6.8 - changed filter name
return acf_get_setting( 'dir', $setting );
}
/* /*
* acf_validate_field * acf_validate_field
* *

View File

@ -0,0 +1,167 @@
<?php
if( ! class_exists('acf_field__accordion') ) :
class acf_field__accordion extends acf_field {
/**
* initialize
*
* This function will setup the field type data
*
* @date 30/10/17
* @since 5.6.3
*
* @param n/a
* @return n/a
*/
function initialize() {
// vars
$this->name = 'accordion';
$this->label = __("Accordion",'acf');
$this->category = 'layout';
$this->defaults = array(
'open' => 0,
'multi_expand' => 0,
'endpoint' => 0
);
}
/**
* render_field
*
* Create the HTML interface for your field
*
* @date 30/10/17
* @since 5.6.3
*
* @param array $field
* @return n/a
*/
function render_field( $field ) {
// vars
$atts = array(
'class' => 'acf-fields',
'data-open' => $field['open'],
'data-multi_expand' => $field['multi_expand'],
'data-endpoint' => $field['endpoint']
);
?>
<div <?php acf_esc_attr_e($atts); ?>></div>
<?php
}
/*
* render_field_settings()
*
* Create extra options for your field. This is rendered when editing a field.
* The value of $field['name'] can be used (like bellow) to save extra data to the $field
*
* @param $field - an array holding all the field's data
*
* @type action
* @since 3.6
* @date 23/01/13
*/
function render_field_settings( $field ) {
/*
// message
$message = '';
$message .= '<p>' . __( 'Accordions help you organize fields into panels that open and close.', 'acf') . '</p>';
$message .= '<p>' . __( 'All fields following this accordion (or until another accordion is defined) will be grouped together.','acf') . '</p>';
// default_value
acf_render_field_setting( $field, array(
'label' => __('Instructions','acf'),
'instructions' => '',
'name' => 'notes',
'type' => 'message',
'message' => $message,
));
*/
// active
acf_render_field_setting( $field, array(
'label' => __('Open','acf'),
'instructions' => __('Display this accordion as open on page load.','acf'),
'name' => 'open',
'type' => 'true_false',
'ui' => 1,
));
// multi_expand
acf_render_field_setting( $field, array(
'label' => __('Multi-expand','acf'),
'instructions' => __('Allow this accordion to open without closing others.','acf'),
'name' => 'multi_expand',
'type' => 'true_false',
'ui' => 1,
));
// endpoint
acf_render_field_setting( $field, array(
'label' => __('Endpoint','acf'),
'instructions' => __('Define an endpoint for the previous accordion to stop. This accordion will not be visible.','acf'),
'name' => 'endpoint',
'type' => 'true_false',
'ui' => 1,
));
}
/*
* load_field()
*
* This filter is appied to the $field after it is loaded from the database
*
* @type filter
* @since 3.6
* @date 23/01/13
*
* @param $field - the field array holding all the field options
*
* @return $field - the field array holding all the field options
*/
function load_field( $field ) {
// remove name to avoid caching issue
$field['name'] = '';
// remove required to avoid JS issues
$field['required'] = 0;
// set value other than 'null' to avoid ACF loading / caching issue
$field['value'] = false;
// return
return $field;
}
}
// initialize
acf_register_field_type( 'acf_field__accordion' );
endif; // class_exists check
?>

View File

@ -99,7 +99,7 @@ class acf_field_date_picker extends acf_field {
// style // style
wp_enqueue_style('acf-datepicker', acf_get_dir('assets/inc/datepicker/jquery-ui.min.css'), '', '1.11.4' ); wp_enqueue_style('acf-datepicker', acf_get_url('assets/inc/datepicker/jquery-ui.min.css'), '', '1.11.4' );
} }

View File

@ -78,11 +78,11 @@ class acf_field_date_and_time_picker extends acf_field {
// script // script
wp_enqueue_script('acf-timepicker', acf_get_dir('assets/inc/timepicker/jquery-ui-timepicker-addon.min.js'), array('jquery-ui-datepicker'), $version); wp_enqueue_script('acf-timepicker', acf_get_url('assets/inc/timepicker/jquery-ui-timepicker-addon.min.js'), array('jquery-ui-datepicker'), $version);
// style // style
wp_enqueue_style('acf-timepicker', acf_get_dir('assets/inc/timepicker/jquery-ui-timepicker-addon.min.css'), '', $version); wp_enqueue_style('acf-timepicker', acf_get_url('assets/inc/timepicker/jquery-ui-timepicker-addon.min.css'), '', $version);
} }

View File

@ -101,15 +101,15 @@ class acf_field_select extends acf_field {
if( $major == 4 ) { if( $major == 4 ) {
$version = '4.0'; $version = '4.0';
$script = acf_get_dir("assets/inc/select2/4/select2.full{$min}.js"); $script = acf_get_url("assets/inc/select2/4/select2.full{$min}.js");
$style = acf_get_dir("assets/inc/select2/4/select2{$min}.css"); $style = acf_get_url("assets/inc/select2/4/select2{$min}.css");
// v3 // v3
} else { } else {
$version = '3.5.2'; $version = '3.5.2';
$script = acf_get_dir("assets/inc/select2/3/select2{$min}.js"); $script = acf_get_url("assets/inc/select2/3/select2{$min}.js");
$style = acf_get_dir("assets/inc/select2/3/select2.css"); $style = acf_get_url("assets/inc/select2/3/select2.css");
} }

View File

@ -48,13 +48,15 @@ class acf_field_tab extends acf_field {
// vars // vars
$atts = array( $atts = array(
'class' => 'acf-tab', 'href' => '',
'class' => 'acf-tab-button',
'data-placement' => $field['placement'], 'data-placement' => $field['placement'],
'data-endpoint' => $field['endpoint'] 'data-endpoint' => $field['endpoint'],
'data-key' => $field['key']
); );
?> ?>
<div <?php acf_esc_attr_e( $atts ); ?>><?php echo acf_esc_html($field['label']); ?></div> <a <?php acf_esc_attr_e( $atts ); ?>><?php echo acf_esc_html($field['label']); ?></a>
<?php <?php
@ -77,20 +79,22 @@ class acf_field_tab extends acf_field {
function render_field_settings( $field ) { function render_field_settings( $field ) {
/*
// message // message
$message = ''; $message = '';
$message .= '<span class="acf-error-message"><p>' . __("The tab field will display incorrectly when added to a Table style repeater field or flexible content field layout", 'acf') . '</p></span>';
$message .= '<p>' . __( 'Use "Tab Fields" to better organize your edit screen by grouping fields together.', 'acf') . '</p>'; $message .= '<p>' . __( 'Use "Tab Fields" to better organize your edit screen by grouping fields together.', 'acf') . '</p>';
$message .= '<p>' . __( 'All fields following this "tab field" (or until another "tab field" is defined) will be grouped together using this field\'s label as the tab heading.','acf') . '</p>'; $message .= '<p>' . __( 'All fields following this "tab field" (or until another "tab field" is defined) will be grouped together using this field\'s label as the tab heading.','acf') . '</p>';
// default_value // default_value
acf_render_field_setting( $field, array( acf_render_field_setting( $field, array(
'label' => __('Instructions','acf'), 'label' => __('Instructions','acf'),
'instructions' => '', 'instructions' => '',
'name' => 'notes',
'type' => 'message', 'type' => 'message',
'message' => $message, 'message' => $message,
'new_lines' => ''
)); ));
*/
// preview_size // preview_size
@ -99,16 +103,16 @@ class acf_field_tab extends acf_field {
'type' => 'select', 'type' => 'select',
'name' => 'placement', 'name' => 'placement',
'choices' => array( 'choices' => array(
'top' => __("Top aligned",'acf'), 'top' => __("Top aligned", 'acf'),
'left' => __("Left Aligned",'acf'), 'left' => __("Left Aligned", 'acf'),
) )
)); ));
// endpoint // endpoint
acf_render_field_setting( $field, array( acf_render_field_setting( $field, array(
'label' => __('End-point','acf'), 'label' => __('Endpoint','acf'),
'instructions' => __('Use this field as an end-point and start a new group of tabs','acf'), 'instructions' => __('Define an endpoint for the previous tabs to stop. This will start a new group of tabs.', 'acf'),
'name' => 'endpoint', 'name' => 'endpoint',
'type' => 'true_false', 'type' => 'true_false',
'ui' => 1, 'ui' => 1,
@ -136,15 +140,12 @@ class acf_field_tab extends acf_field {
// remove name to avoid caching issue // remove name to avoid caching issue
$field['name'] = ''; $field['name'] = '';
// remove required to avoid JS issues // remove required to avoid JS issues
$field['required'] = 0; $field['required'] = 0;
// set value other than 'null' to avoid ACF loading / caching issue // set value other than 'null' to avoid ACF loading / caching issue
$field['value'] = false; $field['value'] = false;
// return // return
return $field; return $field;

View File

@ -192,44 +192,6 @@ acf.unload.active = 0;
)); ));
if( $this->validate_page() ) {
echo '<style type="text/css">
.compat-attachment-fields,
.compat-attachment-fields > tbody,
.compat-attachment-fields > tbody > tr,
.compat-attachment-fields > tbody > tr > th,
.compat-attachment-fields > tbody > tr > td {
display: block;
}
.compat-attachment-fields > tbody > tr.acf-field {
margin: 0 0 15px;
}
.compat-attachment-fields > tbody > tr.acf-field > td.acf-label {
margin: 0;
}
.compat-attachment-fields > tbody > tr.acf-field > td.acf-label label {
margin: 0;
padding: 0;
}
.compat-attachment-fields > tbody > tr.acf-field > td.acf-label p {
margin: 0 0 3px !important;
}
.compat-attachment-fields > tbody > tr.acf-field > td.acf-input {
margin: 0;
}
</style>';
}
// open // open
echo '</td></tr>'; echo '</td></tr>';

View File

@ -240,6 +240,7 @@ class acf_form_comment {
'nonce' => 'comment' 'nonce' => 'comment'
)); ));
echo '<div class="acf-comment-fields acf-fields -clear">';
foreach( $field_groups as $field_group ) { foreach( $field_groups as $field_group ) {
@ -248,6 +249,8 @@ class acf_form_comment {
acf_render_fields( $post_id, $fields, 'p', $field_group['instruction_placement'] ); acf_render_fields( $post_id, $fields, 'p', $field_group['instruction_placement'] );
} }
echo '</div>';
// append // append

View File

@ -407,6 +407,10 @@ class acf_form_front {
function submit_form( $form ) { function submit_form( $form ) {
// filter
$form = apply_filters('acf/pre_submit_form', $form);
// vars // vars
$post_id = acf_maybe_get($form, 'post_id', 0); $post_id = acf_maybe_get($form, 'post_id', 0);

View File

@ -228,7 +228,7 @@ class acf_form_nav_menu {
?> ?>
<script type="text/html" id="tmpl-acf-menu-settings"> <div id="tmpl-acf-menu-settings" style="display: none;">
<?php <?php
// data (always needed to save nav menu items) // data (always needed to save nav menu items)
@ -263,7 +263,7 @@ class acf_form_nav_menu {
} }
?> ?>
</script> </div>
<script type="text/javascript"> <script type="text/javascript">
(function($) { (function($) {

View File

@ -158,16 +158,18 @@ class acf_form_taxonomy {
'nonce' => 'taxonomy', 'nonce' => 'taxonomy',
)); ));
// wrap
echo '<div id="acf-term-fields" class="acf-fields -clear">';
// loop // loop
foreach( $field_groups as $field_group ) { foreach( $field_groups as $field_group ) {
$fields = acf_get_fields( $field_group ); $fields = acf_get_fields( $field_group );
acf_render_fields( $post_id, $fields, 'div', 'field' ); acf_render_fields( $post_id, $fields, 'div', 'field' );
} }
// wrap
echo '</div>';
} }
} }
@ -212,21 +214,19 @@ class acf_form_taxonomy {
foreach( $field_groups as $field_group ) { foreach( $field_groups as $field_group ) {
$fields = acf_get_fields( $field_group ); // title
if( $field_group['style'] == 'default' ) {
echo '<h2>' . $field_group['title'] . '</h2>';
}
?> // fields
<?php if( $field_group['style'] == 'default' ): ?> echo '<table class="form-table">';
<h2><?php echo $field_group['title']; ?></h2> $fields = acf_get_fields( $field_group );
<?php endif; ?> acf_render_fields( $post_id, $fields, 'tr', 'field' );
<table class="form-table"> echo '</table>';
<tbody>
<?php acf_render_fields( $post_id, $fields, 'tr', 'field' ); ?>
</tbody>
</table>
<?php
} }
} }
} }
@ -275,49 +275,37 @@ class acf_form_taxonomy {
<?php if( $this->form == '#addtag' ): ?> <?php if( $this->form == '#addtag' ): ?>
// store origional HTML // store origional HTML
var $orig = $('#addtag').children('.acf-field').clone(); var $el = $('#acf-term-fields');
var html = $el.html();
// events // events
$('#submit').on('click', function( e ){ $('#submit').on('click', function( e ){
// bail early if not active // bail early if not active
if( !acf.validation.active ) { if( !acf.validation.active ) {
return true; return true;
} }
// ignore validation (only ignore once) // ignore validation (only ignore once)
if( acf.validation.ignore ) { if( acf.validation.ignore ) {
acf.validation.ignore = 0; acf.validation.ignore = 0;
return true; return true;
} }
// bail early if this form does not contain ACF data // bail early if this form does not contain ACF data
if( !$('#addtag').find('#acf-form-data').exists() ) { if( !$('#acf-form-data').exists() ) {
return true; return true;
} }
// stop WP JS validation // stop WP JS validation
e.stopImmediatePropagation(); e.stopImmediatePropagation();
// store submit trigger so it will be clicked if validation is passed // store submit trigger so it will be clicked if validation is passed
acf.validation.$trigger = $(this); acf.validation.$trigger = $(this);
// run validation // run validation
acf.validation.fetch( $('#addtag') ); acf.validation.fetch( $('#addtag') );
// stop all other click events on this input // stop all other click events on this input
return false; return false;
@ -328,42 +316,28 @@ class acf_form_taxonomy {
// bail early if is other ajax call // bail early if is other ajax call
if( settings.data.indexOf('action=add-tag') == -1 ) { if( settings.data.indexOf('action=add-tag') == -1 ) {
return; return;
} }
// unlock form // unlock form
acf.validation.toggle( $('#addtag'), 'unlock' ); acf.validation.toggle( $('#addtag'), 'unlock' );
// bail early if response contains error // bail early if response contains error
if( xhr.responseText.indexOf('wp_error') !== -1 ) { if( xhr.responseText.indexOf('wp_error') !== -1 ) {
return; return;
} }
// action for 3rd party customization // action for 3rd party customization
acf.do_action('remove', $('#addtag')); acf.do_action('remove', $el);
// remove old fields
$('#addtag').find('.acf-field').remove();
// add orig fields
$('#acf-form-data').after( $orig.clone() );
// restore html
$el.html( html );
// reset unload // reset unload
acf.unload.off(); acf.unload.off();
// action for 3rd party customization // action for 3rd party customization
acf.do_action('append', $('#addtag')); acf.do_action('append', $el);
}); });

View File

@ -214,10 +214,6 @@ class acf_form_user {
$show_title = true; $show_title = true;
// show title
//if( $user_form === 'register' ) $show_title = false;
// args // args
$args = array( $args = array(
'user_id' => 'new', 'user_id' => 'new',
@ -251,14 +247,16 @@ class acf_form_user {
// title // title
if( $show_title && $field_group['style'] === 'default' ) { if( $show_title && $field_group['style'] === 'default' ) {
echo '<h2>' . $field_group['title'] . '</h2>'; echo '<h2>' . $field_group['title'] . '</h2>';
} }
// table start // table start
if( $el == 'tr' ) echo '<table class="form-table"><tbody>'; if( $el == 'tr' ) {
echo '<table class="form-table"><tbody>';
} else {
echo '<div class="acf-user-register-fields acf-fields -clear">';
}
// render fields // render fields
@ -266,7 +264,11 @@ class acf_form_user {
// table end // table end
if( $el == 'tr' ) echo '</tbody></table>'; if( $el == 'tr' ) {
echo '</tbody></table>';
} else {
echo '</div>';
}
} }

View File

@ -166,6 +166,9 @@ class acf_form_widget {
)); ));
// wrap
echo '<div class="acf-widget-fields acf-fields -clear">';
// loop // loop
foreach( $field_groups as $field_group ) { foreach( $field_groups as $field_group ) {
@ -186,6 +189,9 @@ class acf_form_widget {
} }
//wrap
echo '</div>';
// jQuery selector looks odd, but is necessary due to WP adding an incremental number into the ID // jQuery selector looks odd, but is necessary due to WP adding an incremental number into the ID
// - not possible to find number via PHP parameters // - not possible to find number via PHP parameters
@ -255,20 +261,25 @@ class acf_form_widget {
<script type="text/javascript"> <script type="text/javascript">
(function($) { (function($) {
acf.add_filter('get_fields', function( $fields ){ // vars
acf.update('post_id', 'widgets');
// widgets
$fields = $fields.not('#available-widgets .acf-field');
// restrict get fields
acf.add_filter('get_fields', function( $fields ){
// customizer
$fields = $fields.not('.widget-tpl .acf-field'); // widgets
$fields = $fields.not('#available-widgets .acf-field');
// return
return $fields; // customizer
$fields = $fields.not('.widget-tpl .acf-field');
});
// return
return $fields;
});
$('#widgets-right').on('click', '.widget-control-save', function( e ){ $('#widgets-right').on('click', '.widget-control-save', function( e ){
@ -357,18 +368,6 @@ class acf_form_widget {
acf.do_action('submit', $widget ); acf.do_action('submit', $widget );
}); });
// sortable
$('div.widgets-sortables').on('sortstart', function( event, ui ) {
acf.do_action('sortstart', ui.item, ui.placeholder);
}).on('sortstop', function( event, ui ) {
acf.do_action('sortstop', ui.item, ui.placeholder);
});
})(jQuery); })(jQuery);
</script> </script>

View File

@ -97,7 +97,7 @@ class ACF_Walker_Nav_Menu_Edit extends Walker_Nav_Menu_Edit {
// render // render
if( !empty($field_groups) ) { if( !empty($field_groups) ) {
echo '<div class="field-acf description description-wide">'; echo '<div class="acf-menu-item-fields acf-fields -clear">';
// loop // loop
foreach( $field_groups as $field_group ) { foreach( $field_groups as $field_group ) {
@ -121,6 +121,16 @@ class ACF_Walker_Nav_Menu_Edit extends Walker_Nav_Menu_Edit {
echo '</div>'; echo '</div>';
// Trigger append for newly created menu item (via AJAX)
if( acf_is_ajax('add-menu-item') ): ?>
<script type="text/javascript">
(function($) {
acf.do_action('append', jQuery('#menu-item-settings-<?php echo $post_id; ?>') );
})(jQuery);
</script>
<?php endif;
} }

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -2,8 +2,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n" "Project-Id-Version: Advanced Custom Fields Pro v5.2.9\n"
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
"POT-Creation-Date: 2017-10-11 12:47+0200\n" "POT-Creation-Date: 2017-11-22 09:29+0100\n"
"PO-Revision-Date: 2017-10-11 12:47+0200\n" "PO-Revision-Date: 2017-11-22 09:31+0100\n"
"Last-Translator: Elliot Condon <e@elliotcondon.com>\n" "Last-Translator: Elliot Condon <e@elliotcondon.com>\n"
"Language-Team: Elliot Condon <e@elliotcondon.com>\n" "Language-Team: Elliot Condon <e@elliotcondon.com>\n"
"Language: it_IT\n" "Language: it_IT\n"
@ -27,109 +27,109 @@ msgstr ""
msgid "Advanced Custom Fields" msgid "Advanced Custom Fields"
msgstr "Campi Personalizzati Avanzati" msgstr "Campi Personalizzati Avanzati"
#: acf.php:369 includes/admin/admin.php:117 #: acf.php:370 includes/admin/admin.php:117
msgid "Field Groups" msgid "Field Groups"
msgstr "Field Group" msgstr "Field Group"
#: acf.php:370 #: acf.php:371
msgid "Field Group" msgid "Field Group"
msgstr "Field Group" msgstr "Field Group"
#: acf.php:371 acf.php:403 includes/admin/admin.php:118 #: acf.php:372 acf.php:404 includes/admin/admin.php:118
#: pro/fields/class-acf-field-flexible-content.php:557 #: pro/fields/class-acf-field-flexible-content.php:557
msgid "Add New" msgid "Add New"
msgstr "Aggiungi Nuovo" msgstr "Aggiungi Nuovo"
#: acf.php:372 #: acf.php:373
msgid "Add New Field Group" msgid "Add New Field Group"
msgstr "" msgstr ""
"Aggiungi Nuovo \n" "Aggiungi Nuovo \n"
"Field Group" "Field Group"
#: acf.php:373 #: acf.php:374
msgid "Edit Field Group" msgid "Edit Field Group"
msgstr "" msgstr ""
"Modifica \n" "Modifica \n"
"Field Group" "Field Group"
#: acf.php:374 #: acf.php:375
msgid "New Field Group" msgid "New Field Group"
msgstr "" msgstr ""
"Nuovo \n" "Nuovo \n"
"Field Group" "Field Group"
#: acf.php:375 #: acf.php:376
msgid "View Field Group" msgid "View Field Group"
msgstr "" msgstr ""
"Visualizza \n" "Visualizza \n"
"Field Group" "Field Group"
#: acf.php:376 #: acf.php:377
msgid "Search Field Groups" msgid "Search Field Groups"
msgstr "" msgstr ""
"Cerca \n" "Cerca \n"
"Field Group" "Field Group"
#: acf.php:377 #: acf.php:378
msgid "No Field Groups found" msgid "No Field Groups found"
msgstr "" msgstr ""
"Nessun \n" "Nessun \n"
"Field Group\n" "Field Group\n"
" Trovato" " Trovato"
#: acf.php:378 #: acf.php:379
msgid "No Field Groups found in Trash" msgid "No Field Groups found in Trash"
msgstr "" msgstr ""
"Nessun \n" "Nessun \n"
"Field Group\n" "Field Group\n"
" trovato nel cestino" " trovato nel cestino"
#: acf.php:401 includes/admin/admin-field-group.php:182 #: acf.php:402 includes/admin/admin-field-group.php:182
#: includes/admin/admin-field-group.php:275 #: includes/admin/admin-field-group.php:275
#: includes/admin/admin-field-groups.php:510 #: includes/admin/admin-field-groups.php:510
#: pro/fields/class-acf-field-clone.php:807 #: pro/fields/class-acf-field-clone.php:807
msgid "Fields" msgid "Fields"
msgstr "Campi" msgstr "Campi"
#: acf.php:402 #: acf.php:403
msgid "Field" msgid "Field"
msgstr "Campo" msgstr "Campo"
#: acf.php:404 #: acf.php:405
msgid "Add New Field" msgid "Add New Field"
msgstr "Aggiungi Nuovo Campo" msgstr "Aggiungi Nuovo Campo"
#: acf.php:405 #: acf.php:406
msgid "Edit Field" msgid "Edit Field"
msgstr "Modifica Campo" msgstr "Modifica Campo"
#: acf.php:406 includes/admin/views/field-group-fields.php:41 #: acf.php:407 includes/admin/views/field-group-fields.php:41
#: includes/admin/views/settings-info.php:105 #: includes/admin/views/settings-info.php:105
msgid "New Field" msgid "New Field"
msgstr "Nuovo Campo" msgstr "Nuovo Campo"
#: acf.php:407 #: acf.php:408
msgid "View Field" msgid "View Field"
msgstr "Visualizza Campo" msgstr "Visualizza Campo"
#: acf.php:408 #: acf.php:409
msgid "Search Fields" msgid "Search Fields"
msgstr "Ricerca Campi" msgstr "Ricerca Campi"
#: acf.php:409 #: acf.php:410
msgid "No Fields found" msgid "No Fields found"
msgstr "Nessun Campo trovato" msgstr "Nessun Campo trovato"
#: acf.php:410 #: acf.php:411
msgid "No Fields found in Trash" msgid "No Fields found in Trash"
msgstr "Nessun Campo trovato nel cestino" msgstr "Nessun Campo trovato nel cestino"
#: acf.php:449 includes/admin/admin-field-group.php:390 #: acf.php:450 includes/admin/admin-field-group.php:390
#: includes/admin/admin-field-groups.php:567 #: includes/admin/admin-field-groups.php:567
msgid "Inactive" msgid "Inactive"
msgstr "Inattivo" msgstr "Inattivo"
#: acf.php:454 #: acf.php:455
#, php-format #, php-format
msgid "Inactive <span class=\"count\">(%s)</span>" msgid "Inactive <span class=\"count\">(%s)</span>"
msgid_plural "Inactive <span class=\"count\">(%s)</span>" msgid_plural "Inactive <span class=\"count\">(%s)</span>"
@ -186,6 +186,7 @@ msgid "Location"
msgstr "Posizione" msgstr "Posizione"
#: includes/admin/admin-field-group.php:184 #: includes/admin/admin-field-group.php:184
#: includes/admin/tools/class-acf-admin-tool-export.php:295
msgid "Settings" msgid "Settings"
msgstr "Impostazioni" msgstr "Impostazioni"
@ -215,7 +216,7 @@ msgstr "copia"
#: includes/admin/views/field-group-field-conditional-logic.php:154 #: includes/admin/views/field-group-field-conditional-logic.php:154
#: includes/admin/views/field-group-locations.php:29 #: includes/admin/views/field-group-locations.php:29
#: includes/admin/views/html-location-group.php:3 #: includes/admin/views/html-location-group.php:3
#: includes/api/api-helpers.php:3964 #: includes/api/api-helpers.php:3965
msgid "or" msgid "or"
msgstr "o" msgstr "o"
@ -423,6 +424,13 @@ msgstr "Applica"
msgid "Bulk Actions" msgid "Bulk Actions"
msgstr "Azioni di massa" msgstr "Azioni di massa"
#: includes/admin/admin-tools.php:116 includes/admin/settings-tools.php:50
#: includes/admin/views/html-admin-tools.php:21
#: includes/admin/views/settings-tools-export.php:19
#: includes/admin/views/settings-tools.php:31
msgid "Tools"
msgstr "Strumenti"
#: includes/admin/admin.php:113 #: includes/admin/admin.php:113
#: includes/admin/views/field-group-options.php:118 #: includes/admin/views/field-group-options.php:118
msgid "Custom Fields" msgid "Custom Fields"
@ -462,13 +470,9 @@ msgstr "Informazioni"
msgid "What's New" msgid "What's New"
msgstr "Cosa c'è di nuovo" msgstr "Cosa c'è di nuovo"
#: includes/admin/settings-tools.php:50
#: includes/admin/views/settings-tools-export.php:19
#: includes/admin/views/settings-tools.php:31
msgid "Tools"
msgstr "Strumenti"
#: includes/admin/settings-tools.php:147 includes/admin/settings-tools.php:380 #: includes/admin/settings-tools.php:147 includes/admin/settings-tools.php:380
#: includes/admin/tools/class-acf-admin-tool-export.php:97
#: includes/admin/tools/class-acf-admin-tool-export.php:135
msgid "No field groups selected" msgid "No field groups selected"
msgstr "" msgstr ""
"Nessun \n" "Nessun \n"
@ -476,29 +480,130 @@ msgstr ""
" selezionato" " selezionato"
#: includes/admin/settings-tools.php:184 #: includes/admin/settings-tools.php:184
#: includes/fields/class-acf-field-file.php:155 #: includes/admin/tools/class-acf-admin-tool-import.php:100
#: includes/fields/class-acf-field-file.php:159
msgid "No file selected" msgid "No file selected"
msgstr "Nessun file selezionato" msgstr "Nessun file selezionato"
#: includes/admin/settings-tools.php:197 #: includes/admin/settings-tools.php:197
#: includes/admin/tools/class-acf-admin-tool-import.php:113
msgid "Error uploading file. Please try again" msgid "Error uploading file. Please try again"
msgstr "Errore caricamento file. Per favore riprova" msgstr "Errore caricamento file. Per favore riprova"
#: includes/admin/settings-tools.php:206 #: includes/admin/settings-tools.php:206
#: includes/admin/tools/class-acf-admin-tool-import.php:122
msgid "Incorrect file type" msgid "Incorrect file type"
msgstr "Tipo file non corretto" msgstr "Tipo file non corretto"
#: includes/admin/settings-tools.php:223 #: includes/admin/settings-tools.php:223
#: includes/admin/tools/class-acf-admin-tool-import.php:139
msgid "Import file empty" msgid "Import file empty"
msgstr "File importato vuoto" msgstr "File importato vuoto"
#: includes/admin/settings-tools.php:331 #: includes/admin/settings-tools.php:331
#: includes/admin/tools/class-acf-admin-tool-import.php:247
#, php-format #, php-format
msgid "Imported 1 field group" msgid "Imported 1 field group"
msgid_plural "Imported %s field groups" msgid_plural "Imported %s field groups"
msgstr[0] "Importato 1 field group" msgstr[0] "Importato 1 field group"
msgstr[1] "Importati %s field groups" msgstr[1] "Importati %s field groups"
#: includes/admin/tools/class-acf-admin-tool-export.php:33
#: includes/admin/views/settings-tools.php:35
msgid "Export Field Groups"
msgstr ""
"Esporta \n"
"Field Group"
#: includes/admin/tools/class-acf-admin-tool-export.php:38
#: includes/admin/tools/class-acf-admin-tool-export.php:342
#: includes/admin/tools/class-acf-admin-tool-export.php:371
msgid "Generate PHP"
msgstr "Genera PHP"
#: includes/admin/tools/class-acf-admin-tool-export.php:174
#, php-format
msgid "Exported 1 field group."
msgid_plural "Exported %s field groups."
msgstr[0] "Esportato 1 gruppo di campi."
msgstr[1] "Esportati %s gruppi di campi."
#: includes/admin/tools/class-acf-admin-tool-export.php:241
#: includes/admin/tools/class-acf-admin-tool-export.php:269
#: includes/admin/views/settings-tools.php:5
msgid "Select Field Groups"
msgstr ""
"Cerca \n"
"Field Group"
#: includes/admin/tools/class-acf-admin-tool-export.php:336
#: includes/admin/views/settings-tools.php:38
msgid ""
"Select the field groups you would like to export and then select your export "
"method. Use the download button to export to a .json file which you can then "
"import to another ACF installation. Use the generate button to export to PHP "
"code which you can place in your theme."
msgstr ""
"Selezionare i \n"
"Field Group\n"
" che si desidera esportare e quindi selezionare il metodo di esportazione. "
"Utilizzare il pulsante di download per esportare in un file .json che sarà "
"poi possibile importare in un'altra installazione ACF. Utilizzare il "
"pulsante generare per esportare il codice PHP che è possibile inserire nel "
"vostro tema."
#: includes/admin/tools/class-acf-admin-tool-export.php:341
msgid "Export File"
msgstr "Esporta file"
#: includes/admin/tools/class-acf-admin-tool-export.php:414
#: includes/admin/views/settings-tools-export.php:27
msgid ""
"The following code can be used to register a local version of the selected "
"field group(s). A local field group can provide many benefits such as faster "
"load times, version control & dynamic fields/settings. Simply copy and paste "
"the following code to your theme's functions.php file or include it within "
"an external file."
msgstr ""
"Il codice seguente può essere utilizzato per registrare una versione locale "
"del Field Group selezionato(i). Un Field Group locale può fornire numerosi "
"vantaggi come ad esempio i tempi di caricamento più veloci, controllo di "
"versione e campi / impostazioni dinamiche. Semplicemente copia e incolla il "
"seguente codice nel file functions.php del vostro tema."
#: includes/admin/tools/class-acf-admin-tool-export.php:446
msgid "Copy to clipboard"
msgstr "Copia negli appunti"
#: includes/admin/tools/class-acf-admin-tool-import.php:26
#: includes/admin/views/settings-tools.php:64
msgid "Import Field Groups"
msgstr ""
"Importa \n"
"Field Group"
#: includes/admin/tools/class-acf-admin-tool-import.php:61
#: includes/admin/views/settings-tools.php:67
msgid ""
"Select the Advanced Custom Fields JSON file you would like to import. When "
"you click the import button below, ACF will import the field groups."
msgstr ""
"Selezionare il file JSON di Advanced Custom Fields che si desidera "
"importare. Quando si fa clic sul pulsante di importazione di seguito, ACF "
"importerà i \n"
"Field Group\n"
"."
#: includes/admin/tools/class-acf-admin-tool-import.php:66
#: includes/admin/views/settings-tools.php:77
#: includes/fields/class-acf-field-file.php:35
msgid "Select File"
msgstr "Seleziona File"
#: includes/admin/tools/class-acf-admin-tool-import.php:76
msgid "Import File"
msgstr "Importa file"
#: includes/admin/views/field-group-field-conditional-logic.php:28 #: includes/admin/views/field-group-field-conditional-logic.php:28
msgid "Conditional Logic" msgid "Conditional Logic"
msgstr "Condizione Logica" msgstr "Condizione Logica"
@ -539,7 +644,7 @@ msgid "Edit field"
msgstr "Modifica Campo" msgstr "Modifica Campo"
#: includes/admin/views/field-group-field.php:48 #: includes/admin/views/field-group-field.php:48
#: includes/fields/class-acf-field-file.php:137 #: includes/fields/class-acf-field-file.php:141
#: includes/fields/class-acf-field-image.php:122 #: includes/fields/class-acf-field-image.php:122
#: includes/fields/class-acf-field-link.php:139 #: includes/fields/class-acf-field-link.php:139
#: pro/fields/class-acf-field-gallery.php:342 #: pro/fields/class-acf-field-gallery.php:342
@ -1233,47 +1338,6 @@ msgstr ""
"Field Group\n" "Field Group\n"
" di PHP" " di PHP"
#: includes/admin/views/settings-tools-export.php:27
msgid ""
"The following code can be used to register a local version of the selected "
"field group(s). A local field group can provide many benefits such as faster "
"load times, version control & dynamic fields/settings. Simply copy and paste "
"the following code to your theme's functions.php file or include it within "
"an external file."
msgstr ""
"Il codice seguente può essere utilizzato per registrare una versione locale "
"del Field Group selezionato(i). Un Field Group locale può fornire numerosi "
"vantaggi come ad esempio i tempi di caricamento più veloci, controllo di "
"versione e campi / impostazioni dinamiche. Semplicemente copia e incolla il "
"seguente codice nel file functions.php del vostro tema."
#: includes/admin/views/settings-tools.php:5
msgid "Select Field Groups"
msgstr ""
"Cerca \n"
"Field Group"
#: includes/admin/views/settings-tools.php:35
msgid "Export Field Groups"
msgstr ""
"Esporta \n"
"Field Group"
#: includes/admin/views/settings-tools.php:38
msgid ""
"Select the field groups you would like to export and then select your export "
"method. Use the download button to export to a .json file which you can then "
"import to another ACF installation. Use the generate button to export to PHP "
"code which you can place in your theme."
msgstr ""
"Selezionare i \n"
"Field Group\n"
" che si desidera esportare e quindi selezionare il metodo di esportazione. "
"Utilizzare il pulsante di download per esportare in un file .json che sarà "
"poi possibile importare in un'altra installazione ACF. Utilizzare il "
"pulsante generare per esportare il codice PHP che è possibile inserire nel "
"vostro tema."
#: includes/admin/views/settings-tools.php:50 #: includes/admin/views/settings-tools.php:50
msgid "Download export file" msgid "Download export file"
msgstr "Scarica file di esportazione" msgstr "Scarica file di esportazione"
@ -1282,91 +1346,69 @@ msgstr "Scarica file di esportazione"
msgid "Generate export code" msgid "Generate export code"
msgstr "Generare codice di esportazione" msgstr "Generare codice di esportazione"
#: includes/admin/views/settings-tools.php:64
msgid "Import Field Groups"
msgstr ""
"Importa \n"
"Field Group"
#: includes/admin/views/settings-tools.php:67
msgid ""
"Select the Advanced Custom Fields JSON file you would like to import. When "
"you click the import button below, ACF will import the field groups."
msgstr ""
"Selezionare il file JSON di Advanced Custom Fields che si desidera "
"importare. Quando si fa clic sul pulsante di importazione di seguito, ACF "
"importerà i \n"
"Field Group\n"
"."
#: includes/admin/views/settings-tools.php:77
#: includes/fields/class-acf-field-file.php:35
msgid "Select File"
msgstr "Seleziona File"
#: includes/admin/views/settings-tools.php:86 #: includes/admin/views/settings-tools.php:86
msgid "Import" msgid "Import"
msgstr "Importa" msgstr "Importa"
#: includes/api/api-helpers.php:856 #: includes/api/api-helpers.php:857
msgid "Thumbnail" msgid "Thumbnail"
msgstr "Thumbnail" msgstr "Thumbnail"
#: includes/api/api-helpers.php:857 #: includes/api/api-helpers.php:858
msgid "Medium" msgid "Medium"
msgstr "Medio" msgstr "Medio"
#: includes/api/api-helpers.php:858 #: includes/api/api-helpers.php:859
msgid "Large" msgid "Large"
msgstr "Grande" msgstr "Grande"
#: includes/api/api-helpers.php:907 #: includes/api/api-helpers.php:908
msgid "Full Size" msgid "Full Size"
msgstr "Dimensione piena" msgstr "Dimensione piena"
#: includes/api/api-helpers.php:1248 includes/api/api-helpers.php:1831 #: includes/api/api-helpers.php:1249 includes/api/api-helpers.php:1832
#: pro/fields/class-acf-field-clone.php:992 #: pro/fields/class-acf-field-clone.php:992
msgid "(no title)" msgid "(no title)"
msgstr "(nessun titolo)" msgstr "(nessun titolo)"
#: includes/api/api-helpers.php:1868 #: includes/api/api-helpers.php:1869
#: includes/fields/class-acf-field-page_link.php:269 #: includes/fields/class-acf-field-page_link.php:269
#: includes/fields/class-acf-field-post_object.php:268 #: includes/fields/class-acf-field-post_object.php:268
#: includes/fields/class-acf-field-taxonomy.php:986 #: includes/fields/class-acf-field-taxonomy.php:986
msgid "Parent" msgid "Parent"
msgstr "Genitore" msgstr "Genitore"
#: includes/api/api-helpers.php:3885 #: includes/api/api-helpers.php:3886
#, php-format #, php-format
msgid "Image width must be at least %dpx." msgid "Image width must be at least %dpx."
msgstr "La larghezza dell'immagine deve essere di almeno %dpx." msgstr "La larghezza dell'immagine deve essere di almeno %dpx."
#: includes/api/api-helpers.php:3890 #: includes/api/api-helpers.php:3891
#, php-format #, php-format
msgid "Image width must not exceed %dpx." msgid "Image width must not exceed %dpx."
msgstr "La larghezza dell'immagine non deve superare i %dpx." msgstr "La larghezza dell'immagine non deve superare i %dpx."
#: includes/api/api-helpers.php:3906 #: includes/api/api-helpers.php:3907
#, php-format #, php-format
msgid "Image height must be at least %dpx." msgid "Image height must be at least %dpx."
msgstr "L'altezza dell'immagine deve essere di almeno %dpx." msgstr "L'altezza dell'immagine deve essere di almeno %dpx."
#: includes/api/api-helpers.php:3911 #: includes/api/api-helpers.php:3912
#, php-format #, php-format
msgid "Image height must not exceed %dpx." msgid "Image height must not exceed %dpx."
msgstr "L'altezza dell'immagine non deve superare i %dpx." msgstr "L'altezza dell'immagine non deve superare i %dpx."
#: includes/api/api-helpers.php:3929 #: includes/api/api-helpers.php:3930
#, php-format #, php-format
msgid "File size must be at least %s." msgid "File size must be at least %s."
msgstr "La dimensione massima deve essere di almeno %s." msgstr "La dimensione massima deve essere di almeno %s."
#: includes/api/api-helpers.php:3934 #: includes/api/api-helpers.php:3935
#, php-format #, php-format
msgid "File size must must not exceed %s." msgid "File size must must not exceed %s."
msgstr "La dimensione massima non deve superare i %s." msgstr "La dimensione massima non deve superare i %s."
#: includes/api/api-helpers.php:3968 #: includes/api/api-helpers.php:3969
#, php-format #, php-format
msgid "File type must be %s." msgid "File type must be %s."
msgstr "La tipologia del File deve essere %s." msgstr "La tipologia del File deve essere %s."
@ -1410,6 +1452,10 @@ msgstr "Il tipo di Campo non esiste"
msgid "Unknown" msgid "Unknown"
msgstr "Sconosciuto" msgstr "Sconosciuto"
#: includes/fields/class-acf-field-accordion.php:24
msgid "Accordion"
msgstr "Fisarmonica"
#: includes/fields/class-acf-field-button-group.php:24 #: includes/fields/class-acf-field-button-group.php:24
msgid "Button Group" msgid "Button Group"
msgstr "Gruppo Bottoni" msgstr "Gruppo Bottoni"
@ -1496,7 +1542,7 @@ msgstr "Verticale"
#: includes/fields/class-acf-field-button-group.php:191 #: includes/fields/class-acf-field-button-group.php:191
#: includes/fields/class-acf-field-checkbox.php:408 #: includes/fields/class-acf-field-checkbox.php:408
#: includes/fields/class-acf-field-file.php:200 #: includes/fields/class-acf-field-file.php:204
#: includes/fields/class-acf-field-image.php:188 #: includes/fields/class-acf-field-image.php:188
#: includes/fields/class-acf-field-link.php:166 #: includes/fields/class-acf-field-link.php:166
#: includes/fields/class-acf-field-radio.php:299 #: includes/fields/class-acf-field-radio.php:299
@ -1506,7 +1552,7 @@ msgstr "Valore di ritorno"
#: includes/fields/class-acf-field-button-group.php:192 #: includes/fields/class-acf-field-button-group.php:192
#: includes/fields/class-acf-field-checkbox.php:409 #: includes/fields/class-acf-field-checkbox.php:409
#: includes/fields/class-acf-field-file.php:201 #: includes/fields/class-acf-field-file.php:205
#: includes/fields/class-acf-field-image.php:189 #: includes/fields/class-acf-field-image.php:189
#: includes/fields/class-acf-field-link.php:167 #: includes/fields/class-acf-field-link.php:167
#: includes/fields/class-acf-field-radio.php:300 #: includes/fields/class-acf-field-radio.php:300
@ -1818,13 +1864,13 @@ msgstr "Aggiorna File"
msgid "Uploaded to this post" msgid "Uploaded to this post"
msgstr "Caricato in questo Post" msgstr "Caricato in questo Post"
#: includes/fields/class-acf-field-file.php:126 #: includes/fields/class-acf-field-file.php:130
msgid "File name" msgid "File name"
msgstr "Nome file" msgstr "Nome file"
#: includes/fields/class-acf-field-file.php:130 #: includes/fields/class-acf-field-file.php:134
#: includes/fields/class-acf-field-file.php:233 #: includes/fields/class-acf-field-file.php:237
#: includes/fields/class-acf-field-file.php:244 #: includes/fields/class-acf-field-file.php:248
#: includes/fields/class-acf-field-image.php:248 #: includes/fields/class-acf-field-image.php:248
#: includes/fields/class-acf-field-image.php:277 #: includes/fields/class-acf-field-image.php:277
#: pro/fields/class-acf-field-gallery.php:690 #: pro/fields/class-acf-field-gallery.php:690
@ -1832,7 +1878,7 @@ msgstr "Nome file"
msgid "File size" msgid "File size"
msgstr "Dimensione File" msgstr "Dimensione File"
#: includes/fields/class-acf-field-file.php:139 #: includes/fields/class-acf-field-file.php:143
#: includes/fields/class-acf-field-image.php:124 #: includes/fields/class-acf-field-image.php:124
#: includes/fields/class-acf-field-link.php:140 includes/input.php:269 #: includes/fields/class-acf-field-link.php:140 includes/input.php:269
#: pro/fields/class-acf-field-gallery.php:343 #: pro/fields/class-acf-field-gallery.php:343
@ -1840,35 +1886,35 @@ msgstr "Dimensione File"
msgid "Remove" msgid "Remove"
msgstr "Rimuovi" msgstr "Rimuovi"
#: includes/fields/class-acf-field-file.php:155 #: includes/fields/class-acf-field-file.php:159
msgid "Add File" msgid "Add File"
msgstr "Aggiungi file" msgstr "Aggiungi file"
#: includes/fields/class-acf-field-file.php:206 #: includes/fields/class-acf-field-file.php:210
msgid "File Array" msgid "File Array"
msgstr "File Array" msgstr "File Array"
#: includes/fields/class-acf-field-file.php:207 #: includes/fields/class-acf-field-file.php:211
msgid "File URL" msgid "File URL"
msgstr "File URL" msgstr "File URL"
#: includes/fields/class-acf-field-file.php:208 #: includes/fields/class-acf-field-file.php:212
msgid "File ID" msgid "File ID"
msgstr "File ID" msgstr "File ID"
#: includes/fields/class-acf-field-file.php:215 #: includes/fields/class-acf-field-file.php:219
#: includes/fields/class-acf-field-image.php:213 #: includes/fields/class-acf-field-image.php:213
#: pro/fields/class-acf-field-gallery.php:655 #: pro/fields/class-acf-field-gallery.php:655
msgid "Library" msgid "Library"
msgstr "Libreria" msgstr "Libreria"
#: includes/fields/class-acf-field-file.php:216 #: includes/fields/class-acf-field-file.php:220
#: includes/fields/class-acf-field-image.php:214 #: includes/fields/class-acf-field-image.php:214
#: pro/fields/class-acf-field-gallery.php:656 #: pro/fields/class-acf-field-gallery.php:656
msgid "Limit the media library choice" msgid "Limit the media library choice"
msgstr "Limitare la scelta alla libreria multimediale" msgstr "Limitare la scelta alla libreria multimediale"
#: includes/fields/class-acf-field-file.php:221 #: includes/fields/class-acf-field-file.php:225
#: includes/fields/class-acf-field-image.php:219 #: includes/fields/class-acf-field-image.php:219
#: includes/locations/class-acf-location-attachment.php:101 #: includes/locations/class-acf-location-attachment.php:101
#: includes/locations/class-acf-location-comment.php:79 #: includes/locations/class-acf-location-comment.php:79
@ -1881,36 +1927,36 @@ msgstr "Limitare la scelta alla libreria multimediale"
msgid "All" msgid "All"
msgstr "Tutti" msgstr "Tutti"
#: includes/fields/class-acf-field-file.php:222 #: includes/fields/class-acf-field-file.php:226
#: includes/fields/class-acf-field-image.php:220 #: includes/fields/class-acf-field-image.php:220
#: pro/fields/class-acf-field-gallery.php:662 #: pro/fields/class-acf-field-gallery.php:662
msgid "Uploaded to post" msgid "Uploaded to post"
msgstr "Caricato al post" msgstr "Caricato al post"
#: includes/fields/class-acf-field-file.php:229 #: includes/fields/class-acf-field-file.php:233
#: includes/fields/class-acf-field-image.php:227 #: includes/fields/class-acf-field-image.php:227
#: pro/fields/class-acf-field-gallery.php:669 #: pro/fields/class-acf-field-gallery.php:669
msgid "Minimum" msgid "Minimum"
msgstr "Minimo" msgstr "Minimo"
#: includes/fields/class-acf-field-file.php:230 #: includes/fields/class-acf-field-file.php:234
#: includes/fields/class-acf-field-file.php:241 #: includes/fields/class-acf-field-file.php:245
msgid "Restrict which files can be uploaded" msgid "Restrict which files can be uploaded"
msgstr "Limita i tipi di File che possono essere caricati" msgstr "Limita i tipi di File che possono essere caricati"
#: includes/fields/class-acf-field-file.php:240 #: includes/fields/class-acf-field-file.php:244
#: includes/fields/class-acf-field-image.php:256 #: includes/fields/class-acf-field-image.php:256
#: pro/fields/class-acf-field-gallery.php:698 #: pro/fields/class-acf-field-gallery.php:698
msgid "Maximum" msgid "Maximum"
msgstr "Massimo" msgstr "Massimo"
#: includes/fields/class-acf-field-file.php:251 #: includes/fields/class-acf-field-file.php:255
#: includes/fields/class-acf-field-image.php:285 #: includes/fields/class-acf-field-image.php:285
#: pro/fields/class-acf-field-gallery.php:727 #: pro/fields/class-acf-field-gallery.php:727
msgid "Allowed file types" msgid "Allowed file types"
msgstr "Tipologie File permesse" msgstr "Tipologie File permesse"
#: includes/fields/class-acf-field-file.php:252 #: includes/fields/class-acf-field-file.php:256
#: includes/fields/class-acf-field-image.php:286 #: includes/fields/class-acf-field-image.php:286
#: pro/fields/class-acf-field-gallery.php:728 #: pro/fields/class-acf-field-gallery.php:728
msgid "Comma separated list. Leave blank for all types" msgid "Comma separated list. Leave blank for all types"

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -4,8 +4,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Advanced Custom Fields PRO\n" "Project-Id-Version: Advanced Custom Fields PRO\n"
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
"POT-Creation-Date: 2017-10-04 08:32+0100\n" "POT-Creation-Date: 2017-12-05 08:48+0000\n"
"PO-Revision-Date: 2017-10-04 08:32+0100\n" "PO-Revision-Date: 2017-12-05 08:48+0000\n"
"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n" "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
"Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n" "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
"Language: pt_PT\n" "Language: pt_PT\n"
@ -37,7 +37,7 @@ msgid "Field Group"
msgstr "Grupo de campos" msgstr "Grupo de campos"
#: acf.php:371 acf.php:403 includes/admin/admin.php:118 #: acf.php:371 acf.php:403 includes/admin/admin.php:118
#: pro/fields/class-acf-field-flexible-content.php:557 #: pro/fields/class-acf-field-flexible-content.php:559
msgid "Add New" msgid "Add New"
msgstr "Adicionar novo" msgstr "Adicionar novo"
@ -118,8 +118,8 @@ msgstr "Inactivo"
#, php-format #, php-format
msgid "Inactive <span class=\"count\">(%s)</span>" msgid "Inactive <span class=\"count\">(%s)</span>"
msgid_plural "Inactive <span class=\"count\">(%s)</span>" msgid_plural "Inactive <span class=\"count\">(%s)</span>"
msgstr[0] "Inativo <span class=\"count\">(%s)</span>" msgstr[0] "Inactivo <span class=\"count\">(%s)</span>"
msgstr[1] "Inativos <span class=\"count\">(%s)</span>" msgstr[1] "Inactivos <span class=\"count\">(%s)</span>"
#: includes/admin/admin-field-group.php:68 #: includes/admin/admin-field-group.php:68
#: includes/admin/admin-field-group.php:69 #: includes/admin/admin-field-group.php:69
@ -156,6 +156,7 @@ msgid "Location"
msgstr "Localização" msgstr "Localização"
#: includes/admin/admin-field-group.php:184 #: includes/admin/admin-field-group.php:184
#: includes/admin/tools/class-acf-admin-tool-export.php:295
msgid "Settings" msgid "Settings"
msgstr "Definições" msgstr "Definições"
@ -185,7 +186,7 @@ msgstr "cópia"
#: includes/admin/views/field-group-field-conditional-logic.php:154 #: includes/admin/views/field-group-field-conditional-logic.php:154
#: includes/admin/views/field-group-locations.php:29 #: includes/admin/views/field-group-locations.php:29
#: includes/admin/views/html-location-group.php:3 #: includes/admin/views/html-location-group.php:3
#: includes/api/api-helpers.php:3964 #: includes/api/api-helpers.php:3959
msgid "or" msgid "or"
msgstr "ou" msgstr "ou"
@ -345,45 +346,50 @@ msgstr "Pro"
msgid "Thank you for creating with <a href=\"%s\">ACF</a>." msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
msgstr "Obrigado por criar com o <a href=\"%s\">ACF</a>." msgstr "Obrigado por criar com o <a href=\"%s\">ACF</a>."
#: includes/admin/admin-field-groups.php:668 #: includes/admin/admin-field-groups.php:667
msgid "Duplicate this item" msgid "Duplicate this item"
msgstr "Duplicar este item" msgstr "Duplicar este item"
#: includes/admin/admin-field-groups.php:668 #: includes/admin/admin-field-groups.php:667
#: includes/admin/admin-field-groups.php:684 #: includes/admin/admin-field-groups.php:683
#: includes/admin/views/field-group-field.php:49 #: includes/admin/views/field-group-field.php:49
#: pro/fields/class-acf-field-flexible-content.php:556 #: pro/fields/class-acf-field-flexible-content.php:558
msgid "Duplicate" msgid "Duplicate"
msgstr "Duplicar" msgstr "Duplicar"
#: includes/admin/admin-field-groups.php:701 #: includes/admin/admin-field-groups.php:700
#: includes/fields/class-acf-field-google-map.php:112 #: includes/fields/class-acf-field-google-map.php:112
#: includes/fields/class-acf-field-relationship.php:656 #: includes/fields/class-acf-field-relationship.php:656
msgid "Search" msgid "Search"
msgstr "Pesquisa" msgstr "Pesquisa"
#: includes/admin/admin-field-groups.php:760 #: includes/admin/admin-field-groups.php:759
#, php-format #, php-format
msgid "Select %s" msgid "Select %s"
msgstr "Seleccionar %s" msgstr "Seleccionar %s"
#: includes/admin/admin-field-groups.php:768 #: includes/admin/admin-field-groups.php:767
msgid "Synchronise field group" msgid "Synchronise field group"
msgstr "Sincronizar grupo de campos" msgstr "Sincronizar grupo de campos"
#: includes/admin/admin-field-groups.php:768 #: includes/admin/admin-field-groups.php:767
#: includes/admin/admin-field-groups.php:798 #: includes/admin/admin-field-groups.php:797
msgid "Sync" msgid "Sync"
msgstr "Sincronizar" msgstr "Sincronizar"
#: includes/admin/admin-field-groups.php:780 #: includes/admin/admin-field-groups.php:779
msgid "Apply" msgid "Apply"
msgstr "Aplicar" msgstr "Aplicar"
#: includes/admin/admin-field-groups.php:798 #: includes/admin/admin-field-groups.php:797
msgid "Bulk Actions" msgid "Bulk Actions"
msgstr "Acções por lotes" msgstr "Acções por lotes"
#: includes/admin/admin-tools.php:116
#: includes/admin/views/html-admin-tools.php:21
msgid "Tools"
msgstr "Ferramentas"
#: includes/admin/admin.php:113 #: includes/admin/admin.php:113
#: includes/admin/views/field-group-options.php:118 #: includes/admin/views/field-group-options.php:118
msgid "Custom Fields" msgid "Custom Fields"
@ -423,39 +429,111 @@ msgstr "Informações"
msgid "What's New" msgid "What's New"
msgstr "O que há de novo" msgstr "O que há de novo"
#: includes/admin/settings-tools.php:50 #: includes/admin/tools/class-acf-admin-tool-export.php:33
#: includes/admin/views/settings-tools-export.php:19 msgid "Export Field Groups"
#: includes/admin/views/settings-tools.php:31 msgstr "Exportar grupos de campos"
msgid "Tools"
msgstr "Ferramentas"
#: includes/admin/settings-tools.php:147 includes/admin/settings-tools.php:380 #: includes/admin/tools/class-acf-admin-tool-export.php:38
#: includes/admin/tools/class-acf-admin-tool-export.php:342
#: includes/admin/tools/class-acf-admin-tool-export.php:371
msgid "Generate PHP"
msgstr "Gerar PHP"
#: includes/admin/tools/class-acf-admin-tool-export.php:97
#: includes/admin/tools/class-acf-admin-tool-export.php:135
msgid "No field groups selected" msgid "No field groups selected"
msgstr "Nenhum grupo de campos seleccionado" msgstr "Nenhum grupo de campos seleccionado"
#: includes/admin/settings-tools.php:184 #: includes/admin/tools/class-acf-admin-tool-export.php:174
#: includes/fields/class-acf-field-file.php:155 #, php-format
msgid "Exported 1 field group."
msgid_plural "Exported %s field groups."
msgstr[0] "Foi exportado 1 grupo de campos."
msgstr[1] "Foram exportados %s grupos de campos."
#: includes/admin/tools/class-acf-admin-tool-export.php:241
#: includes/admin/tools/class-acf-admin-tool-export.php:269
msgid "Select Field Groups"
msgstr "Seleccione os grupos de campos"
#: includes/admin/tools/class-acf-admin-tool-export.php:336
msgid ""
"Select the field groups you would like to export and then select your export "
"method. Use the download button to export to a .json file which you can then "
"import to another ACF installation. Use the generate button to export to PHP "
"code which you can place in your theme."
msgstr ""
"Seleccione os grupos de campos que deseja exportar e seleccione o método de "
"exportação. Utilize o botão Descarregar para exportar um ficheiro .json que "
"poderá depois importar para outra instalação do ACF. Utilize o botão Gerar "
"para exportar o código PHP que poderá incorporar no seu tema."
#: includes/admin/tools/class-acf-admin-tool-export.php:341
msgid "Export File"
msgstr "Exportar ficheiro"
#: includes/admin/tools/class-acf-admin-tool-export.php:414
msgid ""
"The following code can be used to register a local version of the selected "
"field group(s). A local field group can provide many benefits such as faster "
"load times, version control & dynamic fields/settings. Simply copy and paste "
"the following code to your theme's functions.php file or include it within "
"an external file."
msgstr ""
"O código abaixo pode ser usado para registar uma versão local do(s) grupo(s) "
"de campos seleccionado(s). Um grupo de campos local tem alguns benefícios, "
"tais como maior velocidade de carregamento, controlo de versão, definições e "
"campos dinâmicos. Copie e cole o código abaixo no ficheiro functions.php do "
"seu tema, ou inclua-o num ficheiro externo."
#: includes/admin/tools/class-acf-admin-tool-export.php:446
msgid "Copy to clipboard"
msgstr "Copiar para a área de transferência"
#: includes/admin/tools/class-acf-admin-tool-import.php:26
msgid "Import Field Groups"
msgstr "Importar grupos de campos"
#: includes/admin/tools/class-acf-admin-tool-import.php:61
msgid ""
"Select the Advanced Custom Fields JSON file you would like to import. When "
"you click the import button below, ACF will import the field groups."
msgstr ""
"Seleccione o ficheiro JSON do Advanced Custom Fields que deseja importar. Ao "
"clicar no botão Importar abaixo, o ACF irá importar os grupos de campos."
#: includes/admin/tools/class-acf-admin-tool-import.php:66
#: includes/fields/class-acf-field-file.php:35
msgid "Select File"
msgstr "Seleccionar ficheiro"
#: includes/admin/tools/class-acf-admin-tool-import.php:76
msgid "Import File"
msgstr "Importar ficheiro"
#: includes/admin/tools/class-acf-admin-tool-import.php:100
#: includes/fields/class-acf-field-file.php:159
msgid "No file selected" msgid "No file selected"
msgstr "Nenhum ficheiro seleccionado" msgstr "Nenhum ficheiro seleccionado"
#: includes/admin/settings-tools.php:197 #: includes/admin/tools/class-acf-admin-tool-import.php:113
msgid "Error uploading file. Please try again" msgid "Error uploading file. Please try again"
msgstr "Erro ao carregar ficheiro. Por favor tente de novo." msgstr "Erro ao carregar ficheiro. Por favor tente de novo."
#: includes/admin/settings-tools.php:206 #: includes/admin/tools/class-acf-admin-tool-import.php:122
msgid "Incorrect file type" msgid "Incorrect file type"
msgstr "Tipo de ficheiro incorrecto" msgstr "Tipo de ficheiro incorrecto"
#: includes/admin/settings-tools.php:223 #: includes/admin/tools/class-acf-admin-tool-import.php:139
msgid "Import file empty" msgid "Import file empty"
msgstr "Ficheiro de importação vazio" msgstr "Ficheiro de importação vazio"
#: includes/admin/settings-tools.php:331 #: includes/admin/tools/class-acf-admin-tool-import.php:247
#, php-format #, php-format
msgid "Imported 1 field group" msgid "Imported 1 field group"
msgid_plural "Imported %s field groups" msgid_plural "Imported %s field groups"
msgstr[0] "Importado 1 grupo de campos" msgstr[0] "Foi importado 1 grupo de campos."
msgstr[1] "Importados %s grupos de campos" msgstr[1] "Foram importados %s grupos de campos."
#: includes/admin/views/field-group-field-conditional-logic.php:28 #: includes/admin/views/field-group-field-conditional-logic.php:28
msgid "Conditional Logic" msgid "Conditional Logic"
@ -497,7 +575,7 @@ msgid "Edit field"
msgstr "Editar campo" msgstr "Editar campo"
#: includes/admin/views/field-group-field.php:48 #: includes/admin/views/field-group-field.php:48
#: includes/fields/class-acf-field-file.php:137 #: includes/fields/class-acf-field-file.php:141
#: includes/fields/class-acf-field-image.php:122 #: includes/fields/class-acf-field-image.php:122
#: includes/fields/class-acf-field-link.php:139 #: includes/fields/class-acf-field-link.php:139
#: pro/fields/class-acf-field-gallery.php:342 #: pro/fields/class-acf-field-gallery.php:342
@ -521,7 +599,7 @@ msgid "Delete field"
msgstr "Eliminar campo" msgstr "Eliminar campo"
#: includes/admin/views/field-group-field.php:51 #: includes/admin/views/field-group-field.php:51
#: pro/fields/class-acf-field-flexible-content.php:555 #: pro/fields/class-acf-field-flexible-content.php:557
msgid "Delete" msgid "Delete"
msgstr "Eliminar" msgstr "Eliminar"
@ -531,7 +609,7 @@ msgstr "Legenda do campo"
#: includes/admin/views/field-group-field.php:68 #: includes/admin/views/field-group-field.php:68
msgid "This is the name which will appear on the EDIT page" msgid "This is the name which will appear on the EDIT page"
msgstr "Este é o nome que irá aparecer na página EDITAR." msgstr "Este é o nome que será mostrado na página EDITAR."
#: includes/admin/views/field-group-field.php:77 #: includes/admin/views/field-group-field.php:77
msgid "Field Name" msgid "Field Name"
@ -547,13 +625,13 @@ msgid "Field Type"
msgstr "Tipo de campo" msgstr "Tipo de campo"
#: includes/admin/views/field-group-field.php:98 #: includes/admin/views/field-group-field.php:98
#: includes/fields/class-acf-field-tab.php:88
msgid "Instructions" msgid "Instructions"
msgstr "Instruções" msgstr "Instruções"
#: includes/admin/views/field-group-field.php:99 #: includes/admin/views/field-group-field.php:99
msgid "Instructions for authors. Shown when submitting data" msgid "Instructions for authors. Shown when submitting data"
msgstr "Instruções para os autores. São mostradas quando submeter dados." msgstr ""
"Instruções para os autores. São mostradas ao preencher e submeter dados."
#: includes/admin/views/field-group-field.php:108 #: includes/admin/views/field-group-field.php:108
msgid "Required?" msgid "Required?"
@ -588,13 +666,13 @@ msgstr "Ordem"
#: includes/fields/class-acf-field-checkbox.php:415 #: includes/fields/class-acf-field-checkbox.php:415
#: includes/fields/class-acf-field-radio.php:306 #: includes/fields/class-acf-field-radio.php:306
#: includes/fields/class-acf-field-select.php:432 #: includes/fields/class-acf-field-select.php:432
#: pro/fields/class-acf-field-flexible-content.php:582 #: pro/fields/class-acf-field-flexible-content.php:584
msgid "Label" msgid "Label"
msgstr "Legenda" msgstr "Legenda"
#: includes/admin/views/field-group-fields.php:6 #: includes/admin/views/field-group-fields.php:6
#: includes/fields/class-acf-field-taxonomy.php:964 #: includes/fields/class-acf-field-taxonomy.php:964
#: pro/fields/class-acf-field-flexible-content.php:595 #: pro/fields/class-acf-field-flexible-content.php:597
msgid "Name" msgid "Name"
msgstr "Nome" msgstr "Nome"
@ -663,12 +741,12 @@ msgid "Label placement"
msgstr "Posição da legenda" msgstr "Posição da legenda"
#: includes/admin/views/field-group-options.php:62 #: includes/admin/views/field-group-options.php:62
#: includes/fields/class-acf-field-tab.php:102 #: includes/fields/class-acf-field-tab.php:106
msgid "Top aligned" msgid "Top aligned"
msgstr "Alinhado acima" msgstr "Alinhado acima"
#: includes/admin/views/field-group-options.php:63 #: includes/admin/views/field-group-options.php:63
#: includes/fields/class-acf-field-tab.php:103 #: includes/fields/class-acf-field-tab.php:107
msgid "Left Aligned" msgid "Left Aligned"
msgstr "Alinhado à esquerda" msgstr "Alinhado à esquerda"
@ -710,8 +788,9 @@ msgid ""
"If multiple field groups appear on an edit screen, the first field group's " "If multiple field groups appear on an edit screen, the first field group's "
"options will be used (the one with the lowest order number)" "options will be used (the one with the lowest order number)"
msgstr "" msgstr ""
"Se aparecerem vários grupos de campos num ecrã de edição, serão utilizadas " "Se forem mostrados vários grupos de campos num ecrã de edição, serão "
"as opções do primeiro grupo de campos. (o que tiver menor número de ordem)" "utilizadas as opções do primeiro grupo de campos. (o que tiver menor número "
"de ordem)"
#: includes/admin/views/field-group-options.php:115 #: includes/admin/views/field-group-options.php:115
msgid "Permalink" msgid "Permalink"
@ -900,7 +979,7 @@ msgstr "Instalado"
#: includes/admin/views/settings-info.php:3 #: includes/admin/views/settings-info.php:3
msgid "Welcome to Advanced Custom Fields" msgid "Welcome to Advanced Custom Fields"
msgstr "Bem vindo ao Advanced Custom Fields" msgstr "Bem-vindo ao Advanced Custom Fields"
#: includes/admin/views/settings-info.php:4 #: includes/admin/views/settings-info.php:4
#, php-format #, php-format
@ -1090,7 +1169,7 @@ msgstr ""
#: includes/admin/views/settings-info.php:106 #: includes/admin/views/settings-info.php:106
msgid "A new field for embedding content has been added" msgid "A new field for embedding content has been added"
msgstr "Foi adicionado um novo campo para incorporar conteúdos." msgstr "Foi adicionado um novo campo para incorporar conteúdos"
#: includes/admin/views/settings-info.php:110 #: includes/admin/views/settings-info.php:110
msgid "New Gallery" msgid "New Gallery"
@ -1137,7 +1216,7 @@ msgstr "Campo de relação"
msgid "" msgid ""
"New Relationship field setting for 'Filters' (Search, Post Type, Taxonomy)" "New Relationship field setting for 'Filters' (Search, Post Type, Taxonomy)"
msgstr "" msgstr ""
"Nova definição 'Filtros' do campo Relação (Pesquisar, Tipo de conteúdo, " "Nova definição 'Filtros' do campo Relação (Pesquisa, Tipo de conteúdo, "
"Taxonomia)." "Taxonomia)."
#: includes/admin/views/settings-info.php:139 #: includes/admin/views/settings-info.php:139
@ -1178,132 +1257,58 @@ msgstr ""
msgid "We think you'll love the changes in %s." msgid "We think you'll love the changes in %s."
msgstr "Pensamos que vai gostar das alterações na versão %s." msgstr "Pensamos que vai gostar das alterações na versão %s."
#: includes/admin/views/settings-tools-export.php:23 #: includes/api/api-helpers.php:858
msgid "Export Field Groups to PHP"
msgstr "Exportar grupos de campos para PHP"
#: includes/admin/views/settings-tools-export.php:27
msgid ""
"The following code can be used to register a local version of the selected "
"field group(s). A local field group can provide many benefits such as faster "
"load times, version control & dynamic fields/settings. Simply copy and paste "
"the following code to your theme's functions.php file or include it within "
"an external file."
msgstr ""
"O código abaixo pode ser usado para registar uma versão local do(s) grupo(s) "
"de campos seleccionado(s). Um grupo de campos local tem alguns benefícios, "
"tais como maior velocidade de carregamento, controlo de versão, definições e "
"campos dinâmicos. Copie e cole o código abaixo no ficheiro functions.php do "
"seu tema, ou inclua-o num ficheiro externo."
#: includes/admin/views/settings-tools.php:5
msgid "Select Field Groups"
msgstr "Seleccione os grupos de campos"
#: includes/admin/views/settings-tools.php:35
msgid "Export Field Groups"
msgstr "Exportar grupos de campos"
#: includes/admin/views/settings-tools.php:38
msgid ""
"Select the field groups you would like to export and then select your export "
"method. Use the download button to export to a .json file which you can then "
"import to another ACF installation. Use the generate button to export to PHP "
"code which you can place in your theme."
msgstr ""
"Seleccione os grupos de campos que deseja exportar e seleccione o método de "
"exportação. Utilize o botão Descarregar para exportar um ficheiro .json que "
"poderá depois importar para outra instalação do ACF. Utilize o botão Gerar "
"para exportar o código PHP que poderá incorporar no seu tema."
#: includes/admin/views/settings-tools.php:50
msgid "Download export file"
msgstr "Descarregar ficheiro de exportação"
#: includes/admin/views/settings-tools.php:51
msgid "Generate export code"
msgstr "Gerar código de exportação"
#: includes/admin/views/settings-tools.php:64
msgid "Import Field Groups"
msgstr "Importar grupos de campos"
#: includes/admin/views/settings-tools.php:67
msgid ""
"Select the Advanced Custom Fields JSON file you would like to import. When "
"you click the import button below, ACF will import the field groups."
msgstr ""
"Seleccione o ficheiro JSON do Advanced Custom Fields que deseja importar. "
"Quando clicar no botão Importar abaixo, o ACF importará os grupos de campos."
#: includes/admin/views/settings-tools.php:77
#: includes/fields/class-acf-field-file.php:35
msgid "Select File"
msgstr "Seleccionar ficheiro"
#: includes/admin/views/settings-tools.php:86
msgid "Import"
msgstr "Importar"
#: includes/api/api-helpers.php:856
msgid "Thumbnail" msgid "Thumbnail"
msgstr "Miniatura" msgstr "Miniatura"
#: includes/api/api-helpers.php:857 #: includes/api/api-helpers.php:859
msgid "Medium" msgid "Medium"
msgstr "Média" msgstr "Média"
#: includes/api/api-helpers.php:858 #: includes/api/api-helpers.php:860
msgid "Large" msgid "Large"
msgstr "Grande" msgstr "Grande"
#: includes/api/api-helpers.php:907 #: includes/api/api-helpers.php:909
msgid "Full Size" msgid "Full Size"
msgstr "Tamanho original" msgstr "Tamanho original"
#: includes/api/api-helpers.php:1248 includes/api/api-helpers.php:1831 #: includes/api/api-helpers.php:1250 includes/api/api-helpers.php:1823
#: pro/fields/class-acf-field-clone.php:992 #: pro/fields/class-acf-field-clone.php:992
msgid "(no title)" msgid "(no title)"
msgstr "(sem título)" msgstr "(sem título)"
#: includes/api/api-helpers.php:1868 #: includes/api/api-helpers.php:3880
#: includes/fields/class-acf-field-page_link.php:269
#: includes/fields/class-acf-field-post_object.php:268
#: includes/fields/class-acf-field-taxonomy.php:986
msgid "Parent"
msgstr "Superior"
#: includes/api/api-helpers.php:3885
#, php-format #, php-format
msgid "Image width must be at least %dpx." msgid "Image width must be at least %dpx."
msgstr "A largura da imagem deve ser pelo menos de %dpx." msgstr "A largura da imagem deve ser pelo menos de %dpx."
#: includes/api/api-helpers.php:3890 #: includes/api/api-helpers.php:3885
#, php-format #, php-format
msgid "Image width must not exceed %dpx." msgid "Image width must not exceed %dpx."
msgstr "A largura da imagem não deve exceder os %dpx." msgstr "A largura da imagem não deve exceder os %dpx."
#: includes/api/api-helpers.php:3906 #: includes/api/api-helpers.php:3901
#, php-format #, php-format
msgid "Image height must be at least %dpx." msgid "Image height must be at least %dpx."
msgstr "A altura da imagem deve ser pelo menos de %dpx." msgstr "A altura da imagem deve ser pelo menos de %dpx."
#: includes/api/api-helpers.php:3911 #: includes/api/api-helpers.php:3906
#, php-format #, php-format
msgid "Image height must not exceed %dpx." msgid "Image height must not exceed %dpx."
msgstr "A altura da imagem não deve exceder os %dpx." msgstr "A altura da imagem não deve exceder os %dpx."
#: includes/api/api-helpers.php:3929 #: includes/api/api-helpers.php:3924
#, php-format #, php-format
msgid "File size must be at least %s." msgid "File size must be at least %s."
msgstr "O tamanho do ficheiro deve ser pelo menos de %s." msgstr "O tamanho do ficheiro deve ser pelo menos de %s."
#: includes/api/api-helpers.php:3934 #: includes/api/api-helpers.php:3929
#, php-format #, php-format
msgid "File size must must not exceed %s." msgid "File size must must not exceed %s."
msgstr "O tamanho do ficheiro não deve exceder %s." msgstr "O tamanho do ficheiro não deve exceder %s."
#: includes/api/api-helpers.php:3968 #: includes/api/api-helpers.php:3963
#, php-format #, php-format
msgid "File type must be %s." msgid "File type must be %s."
msgstr "O tipo de ficheiro deve ser %s." msgstr "O tipo de ficheiro deve ser %s."
@ -1333,8 +1338,8 @@ msgstr "jQuery"
#: includes/fields/class-acf-field-group.php:474 #: includes/fields/class-acf-field-group.php:474
#: includes/fields/class-acf-field-radio.php:285 #: includes/fields/class-acf-field-radio.php:285
#: pro/fields/class-acf-field-clone.php:839 #: pro/fields/class-acf-field-clone.php:839
#: pro/fields/class-acf-field-flexible-content.php:552 #: pro/fields/class-acf-field-flexible-content.php:554
#: pro/fields/class-acf-field-flexible-content.php:601 #: pro/fields/class-acf-field-flexible-content.php:603
#: pro/fields/class-acf-field-repeater.php:450 #: pro/fields/class-acf-field-repeater.php:450
msgid "Layout" msgid "Layout"
msgstr "Layout" msgstr "Layout"
@ -1347,6 +1352,38 @@ msgstr "Tipo de campo não existe"
msgid "Unknown" msgid "Unknown"
msgstr "Desconhecido" msgstr "Desconhecido"
#: includes/fields/class-acf-field-accordion.php:24
msgid "Accordion"
msgstr "Acordeão"
#: includes/fields/class-acf-field-accordion.php:99
msgid "Open"
msgstr "Aberto"
#: includes/fields/class-acf-field-accordion.php:100
msgid "Display this accordion as open on page load."
msgstr "Mostrar este item de acordeão aberto ao carregar a página."
#: includes/fields/class-acf-field-accordion.php:109
msgid "Multi-expand"
msgstr "Expandir múltiplos"
#: includes/fields/class-acf-field-accordion.php:110
msgid "Allow this accordion to open without closing others."
msgstr "Permite abrir este item de acordeão sem fechar os restantes."
#: includes/fields/class-acf-field-accordion.php:119
#: includes/fields/class-acf-field-tab.php:114
msgid "Endpoint"
msgstr "Fim"
#: includes/fields/class-acf-field-accordion.php:120
msgid ""
"Define an endpoint for the previous accordion to stop. This accordion will "
"not be visible."
msgstr ""
"Define o fim do acordeão anterior. Este item de acordeão não será visível."
#: includes/fields/class-acf-field-button-group.php:24 #: includes/fields/class-acf-field-button-group.php:24
msgid "Button Group" msgid "Button Group"
msgstr "Grupo de botões" msgstr "Grupo de botões"
@ -1416,7 +1453,7 @@ msgstr "Valor por omissão"
#: includes/fields/class-acf-field-url.php:101 #: includes/fields/class-acf-field-url.php:101
#: includes/fields/class-acf-field-wysiwyg.php:411 #: includes/fields/class-acf-field-wysiwyg.php:411
msgid "Appears when creating a new post" msgid "Appears when creating a new post"
msgstr "Aparece quando é criado um novo conteúdo." msgstr "Mostrado ao criar um novo conteúdo"
#: includes/fields/class-acf-field-button-group.php:183 #: includes/fields/class-acf-field-button-group.php:183
#: includes/fields/class-acf-field-checkbox.php:391 #: includes/fields/class-acf-field-checkbox.php:391
@ -1432,7 +1469,7 @@ msgstr "Vertical"
#: includes/fields/class-acf-field-button-group.php:191 #: includes/fields/class-acf-field-button-group.php:191
#: includes/fields/class-acf-field-checkbox.php:408 #: includes/fields/class-acf-field-checkbox.php:408
#: includes/fields/class-acf-field-file.php:200 #: includes/fields/class-acf-field-file.php:204
#: includes/fields/class-acf-field-image.php:188 #: includes/fields/class-acf-field-image.php:188
#: includes/fields/class-acf-field-link.php:166 #: includes/fields/class-acf-field-link.php:166
#: includes/fields/class-acf-field-radio.php:299 #: includes/fields/class-acf-field-radio.php:299
@ -1442,7 +1479,7 @@ msgstr "Valor devolvido"
#: includes/fields/class-acf-field-button-group.php:192 #: includes/fields/class-acf-field-button-group.php:192
#: includes/fields/class-acf-field-checkbox.php:409 #: includes/fields/class-acf-field-checkbox.php:409
#: includes/fields/class-acf-field-file.php:201 #: includes/fields/class-acf-field-file.php:205
#: includes/fields/class-acf-field-image.php:189 #: includes/fields/class-acf-field-image.php:189
#: includes/fields/class-acf-field-link.php:167 #: includes/fields/class-acf-field-link.php:167
#: includes/fields/class-acf-field-radio.php:300 #: includes/fields/class-acf-field-radio.php:300
@ -1703,7 +1740,7 @@ msgstr "Texto predefinido"
#: includes/fields/class-acf-field-textarea.php:112 #: includes/fields/class-acf-field-textarea.php:112
#: includes/fields/class-acf-field-url.php:110 #: includes/fields/class-acf-field-url.php:110
msgid "Appears within the input" msgid "Appears within the input"
msgstr "Aparece dentro do campo" msgstr "Mostrado dentro do campo"
#: includes/fields/class-acf-field-email.php:136 #: includes/fields/class-acf-field-email.php:136
#: includes/fields/class-acf-field-number.php:145 #: includes/fields/class-acf-field-number.php:145
@ -1719,7 +1756,7 @@ msgstr "Preceder"
#: includes/fields/class-acf-field-range.php:188 #: includes/fields/class-acf-field-range.php:188
#: includes/fields/class-acf-field-text.php:138 #: includes/fields/class-acf-field-text.php:138
msgid "Appears before the input" msgid "Appears before the input"
msgstr "Aparece antes do campo" msgstr "Mostrado antes do campo"
#: includes/fields/class-acf-field-email.php:145 #: includes/fields/class-acf-field-email.php:145
#: includes/fields/class-acf-field-number.php:154 #: includes/fields/class-acf-field-number.php:154
@ -1735,7 +1772,7 @@ msgstr "Suceder"
#: includes/fields/class-acf-field-range.php:197 #: includes/fields/class-acf-field-range.php:197
#: includes/fields/class-acf-field-text.php:147 #: includes/fields/class-acf-field-text.php:147
msgid "Appears after the input" msgid "Appears after the input"
msgstr "Aparece depois do campo" msgstr "Mostrado depois do campo"
#: includes/fields/class-acf-field-file.php:25 #: includes/fields/class-acf-field-file.php:25
msgid "File" msgid "File"
@ -1755,13 +1792,13 @@ msgstr "Actualizar ficheiro"
msgid "Uploaded to this post" msgid "Uploaded to this post"
msgstr "Carregados neste artigo" msgstr "Carregados neste artigo"
#: includes/fields/class-acf-field-file.php:126 #: includes/fields/class-acf-field-file.php:130
msgid "File name" msgid "File name"
msgstr "Nome do ficheiro" msgstr "Nome do ficheiro"
#: includes/fields/class-acf-field-file.php:130 #: includes/fields/class-acf-field-file.php:134
#: includes/fields/class-acf-field-file.php:233 #: includes/fields/class-acf-field-file.php:237
#: includes/fields/class-acf-field-file.php:244 #: includes/fields/class-acf-field-file.php:248
#: includes/fields/class-acf-field-image.php:248 #: includes/fields/class-acf-field-image.php:248
#: includes/fields/class-acf-field-image.php:277 #: includes/fields/class-acf-field-image.php:277
#: pro/fields/class-acf-field-gallery.php:690 #: pro/fields/class-acf-field-gallery.php:690
@ -1769,7 +1806,7 @@ msgstr "Nome do ficheiro"
msgid "File size" msgid "File size"
msgstr "Tamanho do ficheiro" msgstr "Tamanho do ficheiro"
#: includes/fields/class-acf-field-file.php:139 #: includes/fields/class-acf-field-file.php:143
#: includes/fields/class-acf-field-image.php:124 #: includes/fields/class-acf-field-image.php:124
#: includes/fields/class-acf-field-link.php:140 includes/input.php:269 #: includes/fields/class-acf-field-link.php:140 includes/input.php:269
#: pro/fields/class-acf-field-gallery.php:343 #: pro/fields/class-acf-field-gallery.php:343
@ -1777,35 +1814,35 @@ msgstr "Tamanho do ficheiro"
msgid "Remove" msgid "Remove"
msgstr "Remover" msgstr "Remover"
#: includes/fields/class-acf-field-file.php:155 #: includes/fields/class-acf-field-file.php:159
msgid "Add File" msgid "Add File"
msgstr "Adicionar ficheiro" msgstr "Adicionar ficheiro"
#: includes/fields/class-acf-field-file.php:206 #: includes/fields/class-acf-field-file.php:210
msgid "File Array" msgid "File Array"
msgstr "Array do ficheiro" msgstr "Array do ficheiro"
#: includes/fields/class-acf-field-file.php:207 #: includes/fields/class-acf-field-file.php:211
msgid "File URL" msgid "File URL"
msgstr "URL do ficheiro" msgstr "URL do ficheiro"
#: includes/fields/class-acf-field-file.php:208 #: includes/fields/class-acf-field-file.php:212
msgid "File ID" msgid "File ID"
msgstr "ID do ficheiro" msgstr "ID do ficheiro"
#: includes/fields/class-acf-field-file.php:215 #: includes/fields/class-acf-field-file.php:219
#: includes/fields/class-acf-field-image.php:213 #: includes/fields/class-acf-field-image.php:213
#: pro/fields/class-acf-field-gallery.php:655 #: pro/fields/class-acf-field-gallery.php:655
msgid "Library" msgid "Library"
msgstr "Biblioteca" msgstr "Biblioteca"
#: includes/fields/class-acf-field-file.php:216 #: includes/fields/class-acf-field-file.php:220
#: includes/fields/class-acf-field-image.php:214 #: includes/fields/class-acf-field-image.php:214
#: pro/fields/class-acf-field-gallery.php:656 #: pro/fields/class-acf-field-gallery.php:656
msgid "Limit the media library choice" msgid "Limit the media library choice"
msgstr "Limita a escolha da biblioteca de media." msgstr "Limita a escolha da biblioteca de media."
#: includes/fields/class-acf-field-file.php:221 #: includes/fields/class-acf-field-file.php:225
#: includes/fields/class-acf-field-image.php:219 #: includes/fields/class-acf-field-image.php:219
#: includes/locations/class-acf-location-attachment.php:101 #: includes/locations/class-acf-location-attachment.php:101
#: includes/locations/class-acf-location-comment.php:79 #: includes/locations/class-acf-location-comment.php:79
@ -1818,36 +1855,36 @@ msgstr "Limita a escolha da biblioteca de media."
msgid "All" msgid "All"
msgstr "Todos" msgstr "Todos"
#: includes/fields/class-acf-field-file.php:222 #: includes/fields/class-acf-field-file.php:226
#: includes/fields/class-acf-field-image.php:220 #: includes/fields/class-acf-field-image.php:220
#: pro/fields/class-acf-field-gallery.php:662 #: pro/fields/class-acf-field-gallery.php:662
msgid "Uploaded to post" msgid "Uploaded to post"
msgstr "Carregados no artigo" msgstr "Carregados no artigo"
#: includes/fields/class-acf-field-file.php:229 #: includes/fields/class-acf-field-file.php:233
#: includes/fields/class-acf-field-image.php:227 #: includes/fields/class-acf-field-image.php:227
#: pro/fields/class-acf-field-gallery.php:669 #: pro/fields/class-acf-field-gallery.php:669
msgid "Minimum" msgid "Minimum"
msgstr "Mínimo" msgstr "Mínimo"
#: includes/fields/class-acf-field-file.php:230 #: includes/fields/class-acf-field-file.php:234
#: includes/fields/class-acf-field-file.php:241 #: includes/fields/class-acf-field-file.php:245
msgid "Restrict which files can be uploaded" msgid "Restrict which files can be uploaded"
msgstr "Restringe que ficheiros podem ser carregados." msgstr "Restringe que ficheiros podem ser carregados."
#: includes/fields/class-acf-field-file.php:240 #: includes/fields/class-acf-field-file.php:244
#: includes/fields/class-acf-field-image.php:256 #: includes/fields/class-acf-field-image.php:256
#: pro/fields/class-acf-field-gallery.php:698 #: pro/fields/class-acf-field-gallery.php:698
msgid "Maximum" msgid "Maximum"
msgstr "Máximo" msgstr "Máximo"
#: includes/fields/class-acf-field-file.php:251 #: includes/fields/class-acf-field-file.php:255
#: includes/fields/class-acf-field-image.php:285 #: includes/fields/class-acf-field-image.php:285
#: pro/fields/class-acf-field-gallery.php:727 #: pro/fields/class-acf-field-gallery.php:727
msgid "Allowed file types" msgid "Allowed file types"
msgstr "Tipos de ficheiros permitidos" msgstr "Tipos de ficheiros permitidos"
#: includes/fields/class-acf-field-file.php:252 #: includes/fields/class-acf-field-file.php:256
#: includes/fields/class-acf-field-image.php:286 #: includes/fields/class-acf-field-image.php:286
#: pro/fields/class-acf-field-gallery.php:728 #: pro/fields/class-acf-field-gallery.php:728
msgid "Comma separated list. Leave blank for all types" msgid "Comma separated list. Leave blank for all types"
@ -1925,21 +1962,21 @@ msgstr "Especifica o estilo usado para mostrar os campos seleccionados."
#: includes/fields/class-acf-field-group.php:480 #: includes/fields/class-acf-field-group.php:480
#: pro/fields/class-acf-field-clone.php:845 #: pro/fields/class-acf-field-clone.php:845
#: pro/fields/class-acf-field-flexible-content.php:612 #: pro/fields/class-acf-field-flexible-content.php:614
#: pro/fields/class-acf-field-repeater.php:458 #: pro/fields/class-acf-field-repeater.php:458
msgid "Block" msgid "Block"
msgstr "Bloco" msgstr "Bloco"
#: includes/fields/class-acf-field-group.php:481 #: includes/fields/class-acf-field-group.php:481
#: pro/fields/class-acf-field-clone.php:846 #: pro/fields/class-acf-field-clone.php:846
#: pro/fields/class-acf-field-flexible-content.php:611 #: pro/fields/class-acf-field-flexible-content.php:613
#: pro/fields/class-acf-field-repeater.php:457 #: pro/fields/class-acf-field-repeater.php:457
msgid "Table" msgid "Table"
msgstr "Tabela" msgstr "Tabela"
#: includes/fields/class-acf-field-group.php:482 #: includes/fields/class-acf-field-group.php:482
#: pro/fields/class-acf-field-clone.php:847 #: pro/fields/class-acf-field-clone.php:847
#: pro/fields/class-acf-field-flexible-content.php:613 #: pro/fields/class-acf-field-flexible-content.php:615
#: pro/fields/class-acf-field-repeater.php:459 #: pro/fields/class-acf-field-repeater.php:459
msgid "Row" msgid "Row"
msgstr "Linha" msgstr "Linha"
@ -2128,6 +2165,12 @@ msgstr "Tamanho da incorporação"
msgid "Archives" msgid "Archives"
msgstr "Arquivo" msgstr "Arquivo"
#: includes/fields/class-acf-field-page_link.php:269
#: includes/fields/class-acf-field-post_object.php:268
#: includes/fields/class-acf-field-taxonomy.php:986
msgid "Parent"
msgstr "Superior"
#: includes/fields/class-acf-field-page_link.php:485 #: includes/fields/class-acf-field-page_link.php:485
#: includes/fields/class-acf-field-post_object.php:384 #: includes/fields/class-acf-field-post_object.php:384
#: includes/fields/class-acf-field-relationship.php:623 #: includes/fields/class-acf-field-relationship.php:623
@ -2338,7 +2381,7 @@ msgstr "A carregar mais resultados&hellip;"
#: includes/fields/class-acf-field-select.php:48 #: includes/fields/class-acf-field-select.php:48
msgctxt "Select2 JS searching" msgctxt "Select2 JS searching"
msgid "Searching&hellip;" msgid "Searching&hellip;"
msgstr "A procurar&hellip;" msgstr "A pesquisar&hellip;"
#: includes/fields/class-acf-field-select.php:49 #: includes/fields/class-acf-field-select.php:49
msgctxt "Select2 JS load_fail" msgctxt "Select2 JS load_fail"
@ -2371,44 +2414,17 @@ msgstr "Divisória"
msgid "Tab" msgid "Tab"
msgstr "Separador" msgstr "Separador"
#: includes/fields/class-acf-field-tab.php:82 #: includes/fields/class-acf-field-tab.php:102
msgid ""
"The tab field will display incorrectly when added to a Table style repeater "
"field or flexible content field layout"
msgstr ""
"O campo separador será mostrado incorrectamente quando adicionado a um campo "
"repetidor ou layout de conteúdo flexível, com estilo de tabela."
#: includes/fields/class-acf-field-tab.php:83
msgid ""
"Use \"Tab Fields\" to better organize your edit screen by grouping fields "
"together."
msgstr ""
"Utilize \"campos separadores\" para melhor organizar o ecrã de edição, "
"através de agrupar campos em conjuntos."
#: includes/fields/class-acf-field-tab.php:84
msgid ""
"All fields following this \"tab field\" (or until another \"tab field\" is "
"defined) will be grouped together using this field's label as the tab "
"heading."
msgstr ""
"Todos os campos a seguir a este \"campo separador\" (ou até que esteja "
"definido outro \"campo separador\") serão agrupados em conjunto utilizando a "
"legenda deste campo como título do separador."
#: includes/fields/class-acf-field-tab.php:98
msgid "Placement" msgid "Placement"
msgstr "Posição" msgstr "Posição"
#: includes/fields/class-acf-field-tab.php:110 #: includes/fields/class-acf-field-tab.php:115
msgid "End-point" msgid ""
msgstr "Interrupção" "Define an endpoint for the previous tabs to stop. This will start a new "
"group of tabs."
#: includes/fields/class-acf-field-tab.php:111
msgid "Use this field as an end-point and start a new group of tabs"
msgstr "" msgstr ""
"Utilize este campo para interromper e começar um novo grupo de separadores." "Define o fim dos separadores anteriores. Isto será o início de um novo grupo "
"de separadores."
#: includes/fields/class-acf-field-taxonomy.php:713 #: includes/fields/class-acf-field-taxonomy.php:713
#, php-format #, php-format
@ -2511,7 +2527,7 @@ msgstr "Limite de caracteres"
#: includes/fields/class-acf-field-text.php:156 #: includes/fields/class-acf-field-text.php:156
#: includes/fields/class-acf-field-textarea.php:121 #: includes/fields/class-acf-field-textarea.php:121
msgid "Leave blank for no limit" msgid "Leave blank for no limit"
msgstr "Deixe em branco para nenhum limite" msgstr "Deixe em branco para não limitar"
#: includes/fields/class-acf-field-textarea.php:25 #: includes/fields/class-acf-field-textarea.php:25
msgid "Text Area" msgid "Text Area"
@ -2652,7 +2668,7 @@ msgstr "Actualizar"
msgid "Post updated" msgid "Post updated"
msgstr "Artigo actualizado" msgstr "Artigo actualizado"
#: includes/forms/form-front.php:229 #: includes/forms/form-front.php:230
msgid "Spam Detected" msgid "Spam Detected"
msgstr "Spam detectado" msgstr "Spam detectado"
@ -2675,12 +2691,12 @@ msgstr "A validação falhou"
#: includes/input.php:263 #: includes/input.php:263
msgid "1 field requires attention" msgid "1 field requires attention"
msgstr "1 campo requer a sua atenção." msgstr "1 campo requer a sua atenção"
#: includes/input.php:264 #: includes/input.php:264
#, php-format #, php-format
msgid "%d fields require attention" msgid "%d fields require attention"
msgstr "%d campos requerem a sua atenção." msgstr "%d campos requerem a sua atenção"
#: includes/input.php:265 #: includes/input.php:265
msgid "Restricted" msgid "Restricted"
@ -3063,44 +3079,44 @@ msgstr "Remover layout"
msgid "Click to toggle" msgid "Click to toggle"
msgstr "Clique para alternar" msgstr "Clique para alternar"
#: pro/fields/class-acf-field-flexible-content.php:554 #: pro/fields/class-acf-field-flexible-content.php:556
msgid "Reorder Layout" msgid "Reorder Layout"
msgstr "Reordenar layout" msgstr "Reordenar layout"
#: pro/fields/class-acf-field-flexible-content.php:554 #: pro/fields/class-acf-field-flexible-content.php:556
msgid "Reorder" msgid "Reorder"
msgstr "Reordenar" msgstr "Reordenar"
#: pro/fields/class-acf-field-flexible-content.php:555 #: pro/fields/class-acf-field-flexible-content.php:557
msgid "Delete Layout" msgid "Delete Layout"
msgstr "Eliminar layout" msgstr "Eliminar layout"
#: pro/fields/class-acf-field-flexible-content.php:556 #: pro/fields/class-acf-field-flexible-content.php:558
msgid "Duplicate Layout" msgid "Duplicate Layout"
msgstr "Duplicar layout" msgstr "Duplicar layout"
#: pro/fields/class-acf-field-flexible-content.php:557 #: pro/fields/class-acf-field-flexible-content.php:559
msgid "Add New Layout" msgid "Add New Layout"
msgstr "Adicionar novo layout" msgstr "Adicionar novo layout"
#: pro/fields/class-acf-field-flexible-content.php:628 #: pro/fields/class-acf-field-flexible-content.php:630
msgid "Min" msgid "Min"
msgstr "Mín" msgstr "Mín"
#: pro/fields/class-acf-field-flexible-content.php:641 #: pro/fields/class-acf-field-flexible-content.php:643
msgid "Max" msgid "Max"
msgstr "Máx" msgstr "Máx"
#: pro/fields/class-acf-field-flexible-content.php:668 #: pro/fields/class-acf-field-flexible-content.php:670
#: pro/fields/class-acf-field-repeater.php:466 #: pro/fields/class-acf-field-repeater.php:466
msgid "Button Label" msgid "Button Label"
msgstr "Legenda do botão" msgstr "Legenda do botão"
#: pro/fields/class-acf-field-flexible-content.php:677 #: pro/fields/class-acf-field-flexible-content.php:679
msgid "Minimum Layouts" msgid "Minimum Layouts"
msgstr "Mínimo de layouts" msgstr "Mínimo de layouts"
#: pro/fields/class-acf-field-flexible-content.php:686 #: pro/fields/class-acf-field-flexible-content.php:688
msgid "Maximum Layouts" msgid "Maximum Layouts"
msgstr "Máximo de layouts" msgstr "Máximo de layouts"

View File

@ -3,7 +3,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Advanced Custom Fields\n" "Project-Id-Version: Advanced Custom Fields\n"
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n" "Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
"POT-Creation-Date: 2017-10-04 14:50+1000\n" "POT-Creation-Date: 2017-12-10 11:15+1000\n"
"PO-Revision-Date: 2015-06-11 13:00+1000\n" "PO-Revision-Date: 2015-06-11 13:00+1000\n"
"Last-Translator: Elliot Condon <e@elliotcondon.com>\n" "Last-Translator: Elliot Condon <e@elliotcondon.com>\n"
"Language-Team: Elliot Condon <e@elliotcondon.com>\n" "Language-Team: Elliot Condon <e@elliotcondon.com>\n"
@ -35,7 +35,7 @@ msgid "Field Group"
msgstr "" msgstr ""
#: acf.php:371 acf.php:403 includes/admin/admin.php:118 #: acf.php:371 acf.php:403 includes/admin/admin.php:118
#: pro/fields/class-acf-field-flexible-content.php:557 #: pro/fields/class-acf-field-flexible-content.php:559
msgid "Add New" msgid "Add New"
msgstr "" msgstr ""
@ -154,6 +154,7 @@ msgid "Location"
msgstr "" msgstr ""
#: includes/admin/admin-field-group.php:184 #: includes/admin/admin-field-group.php:184
#: includes/admin/tools/class-acf-admin-tool-export.php:295
msgid "Settings" msgid "Settings"
msgstr "" msgstr ""
@ -183,7 +184,7 @@ msgstr ""
#: includes/admin/views/field-group-field-conditional-logic.php:154 #: includes/admin/views/field-group-field-conditional-logic.php:154
#: includes/admin/views/field-group-locations.php:29 #: includes/admin/views/field-group-locations.php:29
#: includes/admin/views/html-location-group.php:3 #: includes/admin/views/html-location-group.php:3
#: includes/api/api-helpers.php:3964 #: includes/api/api-helpers.php:3959
msgid "or" msgid "or"
msgstr "" msgstr ""
@ -339,45 +340,50 @@ msgstr ""
msgid "Thank you for creating with <a href=\"%s\">ACF</a>." msgid "Thank you for creating with <a href=\"%s\">ACF</a>."
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:668 #: includes/admin/admin-field-groups.php:667
msgid "Duplicate this item" msgid "Duplicate this item"
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:668 #: includes/admin/admin-field-groups.php:667
#: includes/admin/admin-field-groups.php:684 #: includes/admin/admin-field-groups.php:683
#: includes/admin/views/field-group-field.php:49 #: includes/admin/views/field-group-field.php:49
#: pro/fields/class-acf-field-flexible-content.php:556 #: pro/fields/class-acf-field-flexible-content.php:558
msgid "Duplicate" msgid "Duplicate"
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:701 #: includes/admin/admin-field-groups.php:700
#: includes/fields/class-acf-field-google-map.php:112 #: includes/fields/class-acf-field-google-map.php:112
#: includes/fields/class-acf-field-relationship.php:656 #: includes/fields/class-acf-field-relationship.php:656
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:760 #: includes/admin/admin-field-groups.php:759
#, php-format #, php-format
msgid "Select %s" msgid "Select %s"
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:768 #: includes/admin/admin-field-groups.php:767
msgid "Synchronise field group" msgid "Synchronise field group"
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:768 #: includes/admin/admin-field-groups.php:767
#: includes/admin/admin-field-groups.php:798 #: includes/admin/admin-field-groups.php:797
msgid "Sync" msgid "Sync"
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:780 #: includes/admin/admin-field-groups.php:779
msgid "Apply" msgid "Apply"
msgstr "" msgstr ""
#: includes/admin/admin-field-groups.php:798 #: includes/admin/admin-field-groups.php:797
msgid "Bulk Actions" msgid "Bulk Actions"
msgstr "" msgstr ""
#: includes/admin/admin-tools.php:116
#: includes/admin/views/html-admin-tools.php:21
msgid "Tools"
msgstr ""
#: includes/admin/admin.php:113 #: includes/admin/admin.php:113
#: includes/admin/views/field-group-options.php:118 #: includes/admin/views/field-group-options.php:118
msgid "Custom Fields" msgid "Custom Fields"
@ -417,34 +423,95 @@ msgstr ""
msgid "What's New" msgid "What's New"
msgstr "" msgstr ""
#: includes/admin/settings-tools.php:50 #: includes/admin/tools/class-acf-admin-tool-export.php:33
#: includes/admin/views/settings-tools-export.php:19 msgid "Export Field Groups"
#: includes/admin/views/settings-tools.php:31
msgid "Tools"
msgstr "" msgstr ""
#: includes/admin/settings-tools.php:147 includes/admin/settings-tools.php:380 #: includes/admin/tools/class-acf-admin-tool-export.php:38
#: includes/admin/tools/class-acf-admin-tool-export.php:342
#: includes/admin/tools/class-acf-admin-tool-export.php:371
msgid "Generate PHP"
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-export.php:97
#: includes/admin/tools/class-acf-admin-tool-export.php:135
msgid "No field groups selected" msgid "No field groups selected"
msgstr "" msgstr ""
#: includes/admin/settings-tools.php:184 #: includes/admin/tools/class-acf-admin-tool-export.php:174
#: includes/fields/class-acf-field-file.php:155 #, php-format
msgid "Exported 1 field group."
msgid_plural "Exported %s field groups."
msgstr[0] ""
msgstr[1] ""
#: includes/admin/tools/class-acf-admin-tool-export.php:241
#: includes/admin/tools/class-acf-admin-tool-export.php:269
msgid "Select Field Groups"
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-export.php:336
msgid ""
"Select the field groups you would like to export and then select your export "
"method. Use the download button to export to a .json file which you can then "
"import to another ACF installation. Use the generate button to export to PHP "
"code which you can place in your theme."
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-export.php:341
msgid "Export File"
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-export.php:414
msgid ""
"The following code can be used to register a local version of the selected "
"field group(s). A local field group can provide many benefits such as faster "
"load times, version control & dynamic fields/settings. Simply copy and paste "
"the following code to your theme's functions.php file or include it within "
"an external file."
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-export.php:446
msgid "Copy to clipboard"
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-import.php:26
msgid "Import Field Groups"
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-import.php:61
msgid ""
"Select the Advanced Custom Fields JSON file you would like to import. When "
"you click the import button below, ACF will import the field groups."
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-import.php:66
#: includes/fields/class-acf-field-file.php:35
msgid "Select File"
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-import.php:76
msgid "Import File"
msgstr ""
#: includes/admin/tools/class-acf-admin-tool-import.php:100
#: includes/fields/class-acf-field-file.php:159
msgid "No file selected" msgid "No file selected"
msgstr "" msgstr ""
#: includes/admin/settings-tools.php:197 #: includes/admin/tools/class-acf-admin-tool-import.php:113
msgid "Error uploading file. Please try again" msgid "Error uploading file. Please try again"
msgstr "" msgstr ""
#: includes/admin/settings-tools.php:206 #: includes/admin/tools/class-acf-admin-tool-import.php:122
msgid "Incorrect file type" msgid "Incorrect file type"
msgstr "" msgstr ""
#: includes/admin/settings-tools.php:223 #: includes/admin/tools/class-acf-admin-tool-import.php:139
msgid "Import file empty" msgid "Import file empty"
msgstr "" msgstr ""
#: includes/admin/settings-tools.php:331 #: includes/admin/tools/class-acf-admin-tool-import.php:247
#, php-format #, php-format
msgid "Imported 1 field group" msgid "Imported 1 field group"
msgid_plural "Imported %s field groups" msgid_plural "Imported %s field groups"
@ -491,7 +558,7 @@ msgid "Edit field"
msgstr "" msgstr ""
#: includes/admin/views/field-group-field.php:48 #: includes/admin/views/field-group-field.php:48
#: includes/fields/class-acf-field-file.php:137 #: includes/fields/class-acf-field-file.php:141
#: includes/fields/class-acf-field-image.php:122 #: includes/fields/class-acf-field-image.php:122
#: includes/fields/class-acf-field-link.php:139 #: includes/fields/class-acf-field-link.php:139
#: pro/fields/class-acf-field-gallery.php:342 #: pro/fields/class-acf-field-gallery.php:342
@ -515,7 +582,7 @@ msgid "Delete field"
msgstr "" msgstr ""
#: includes/admin/views/field-group-field.php:51 #: includes/admin/views/field-group-field.php:51
#: pro/fields/class-acf-field-flexible-content.php:555 #: pro/fields/class-acf-field-flexible-content.php:557
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
@ -540,7 +607,6 @@ msgid "Field Type"
msgstr "" msgstr ""
#: includes/admin/views/field-group-field.php:98 #: includes/admin/views/field-group-field.php:98
#: includes/fields/class-acf-field-tab.php:88
msgid "Instructions" msgid "Instructions"
msgstr "" msgstr ""
@ -581,13 +647,13 @@ msgstr ""
#: includes/fields/class-acf-field-checkbox.php:415 #: includes/fields/class-acf-field-checkbox.php:415
#: includes/fields/class-acf-field-radio.php:306 #: includes/fields/class-acf-field-radio.php:306
#: includes/fields/class-acf-field-select.php:432 #: includes/fields/class-acf-field-select.php:432
#: pro/fields/class-acf-field-flexible-content.php:582 #: pro/fields/class-acf-field-flexible-content.php:584
msgid "Label" msgid "Label"
msgstr "" msgstr ""
#: includes/admin/views/field-group-fields.php:6 #: includes/admin/views/field-group-fields.php:6
#: includes/fields/class-acf-field-taxonomy.php:964 #: includes/fields/class-acf-field-taxonomy.php:964
#: pro/fields/class-acf-field-flexible-content.php:595 #: pro/fields/class-acf-field-flexible-content.php:597
msgid "Name" msgid "Name"
msgstr "" msgstr ""
@ -652,12 +718,12 @@ msgid "Label placement"
msgstr "" msgstr ""
#: includes/admin/views/field-group-options.php:62 #: includes/admin/views/field-group-options.php:62
#: includes/fields/class-acf-field-tab.php:102 #: includes/fields/class-acf-field-tab.php:106
msgid "Top aligned" msgid "Top aligned"
msgstr "" msgstr ""
#: includes/admin/views/field-group-options.php:63 #: includes/admin/views/field-group-options.php:63
#: includes/fields/class-acf-field-tab.php:103 #: includes/fields/class-acf-field-tab.php:107
msgid "Left Aligned" msgid "Left Aligned"
msgstr "" msgstr ""
@ -1111,121 +1177,58 @@ msgstr ""
msgid "We think you'll love the changes in %s." msgid "We think you'll love the changes in %s."
msgstr "" msgstr ""
#: includes/admin/views/settings-tools-export.php:23 #: includes/api/api-helpers.php:858
msgid "Export Field Groups to PHP"
msgstr ""
#: includes/admin/views/settings-tools-export.php:27
msgid ""
"The following code can be used to register a local version of the selected "
"field group(s). A local field group can provide many benefits such as faster "
"load times, version control & dynamic fields/settings. Simply copy and paste "
"the following code to your theme's functions.php file or include it within "
"an external file."
msgstr ""
#: includes/admin/views/settings-tools.php:5
msgid "Select Field Groups"
msgstr ""
#: includes/admin/views/settings-tools.php:35
msgid "Export Field Groups"
msgstr ""
#: includes/admin/views/settings-tools.php:38
msgid ""
"Select the field groups you would like to export and then select your export "
"method. Use the download button to export to a .json file which you can then "
"import to another ACF installation. Use the generate button to export to PHP "
"code which you can place in your theme."
msgstr ""
#: includes/admin/views/settings-tools.php:50
msgid "Download export file"
msgstr ""
#: includes/admin/views/settings-tools.php:51
msgid "Generate export code"
msgstr ""
#: includes/admin/views/settings-tools.php:64
msgid "Import Field Groups"
msgstr ""
#: includes/admin/views/settings-tools.php:67
msgid ""
"Select the Advanced Custom Fields JSON file you would like to import. When "
"you click the import button below, ACF will import the field groups."
msgstr ""
#: includes/admin/views/settings-tools.php:77
#: includes/fields/class-acf-field-file.php:35
msgid "Select File"
msgstr ""
#: includes/admin/views/settings-tools.php:86
msgid "Import"
msgstr ""
#: includes/api/api-helpers.php:856
msgid "Thumbnail" msgid "Thumbnail"
msgstr "" msgstr ""
#: includes/api/api-helpers.php:857 #: includes/api/api-helpers.php:859
msgid "Medium" msgid "Medium"
msgstr "" msgstr ""
#: includes/api/api-helpers.php:858 #: includes/api/api-helpers.php:860
msgid "Large" msgid "Large"
msgstr "" msgstr ""
#: includes/api/api-helpers.php:907 #: includes/api/api-helpers.php:909
msgid "Full Size" msgid "Full Size"
msgstr "" msgstr ""
#: includes/api/api-helpers.php:1248 includes/api/api-helpers.php:1831 #: includes/api/api-helpers.php:1250 includes/api/api-helpers.php:1823
#: pro/fields/class-acf-field-clone.php:992 #: pro/fields/class-acf-field-clone.php:992
msgid "(no title)" msgid "(no title)"
msgstr "" msgstr ""
#: includes/api/api-helpers.php:1868 #: includes/api/api-helpers.php:3880
#: includes/fields/class-acf-field-page_link.php:269
#: includes/fields/class-acf-field-post_object.php:268
#: includes/fields/class-acf-field-taxonomy.php:986
msgid "Parent"
msgstr ""
#: includes/api/api-helpers.php:3885
#, php-format #, php-format
msgid "Image width must be at least %dpx." msgid "Image width must be at least %dpx."
msgstr "" msgstr ""
#: includes/api/api-helpers.php:3890 #: includes/api/api-helpers.php:3885
#, php-format #, php-format
msgid "Image width must not exceed %dpx." msgid "Image width must not exceed %dpx."
msgstr "" msgstr ""
#: includes/api/api-helpers.php:3906 #: includes/api/api-helpers.php:3901
#, php-format #, php-format
msgid "Image height must be at least %dpx." msgid "Image height must be at least %dpx."
msgstr "" msgstr ""
#: includes/api/api-helpers.php:3911 #: includes/api/api-helpers.php:3906
#, php-format #, php-format
msgid "Image height must not exceed %dpx." msgid "Image height must not exceed %dpx."
msgstr "" msgstr ""
#: includes/api/api-helpers.php:3929 #: includes/api/api-helpers.php:3924
#, php-format #, php-format
msgid "File size must be at least %s." msgid "File size must be at least %s."
msgstr "" msgstr ""
#: includes/api/api-helpers.php:3934 #: includes/api/api-helpers.php:3929
#, php-format #, php-format
msgid "File size must must not exceed %s." msgid "File size must must not exceed %s."
msgstr "" msgstr ""
#: includes/api/api-helpers.php:3968 #: includes/api/api-helpers.php:3963
#, php-format #, php-format
msgid "File type must be %s." msgid "File type must be %s."
msgstr "" msgstr ""
@ -1256,8 +1259,8 @@ msgstr ""
#: includes/fields/class-acf-field-group.php:474 #: includes/fields/class-acf-field-group.php:474
#: includes/fields/class-acf-field-radio.php:285 #: includes/fields/class-acf-field-radio.php:285
#: pro/fields/class-acf-field-clone.php:839 #: pro/fields/class-acf-field-clone.php:839
#: pro/fields/class-acf-field-flexible-content.php:552 #: pro/fields/class-acf-field-flexible-content.php:554
#: pro/fields/class-acf-field-flexible-content.php:601 #: pro/fields/class-acf-field-flexible-content.php:603
#: pro/fields/class-acf-field-repeater.php:450 #: pro/fields/class-acf-field-repeater.php:450
msgid "Layout" msgid "Layout"
msgstr "" msgstr ""
@ -1270,6 +1273,37 @@ msgstr ""
msgid "Unknown" msgid "Unknown"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-accordion.php:24
msgid "Accordion"
msgstr ""
#: includes/fields/class-acf-field-accordion.php:99
msgid "Open"
msgstr ""
#: includes/fields/class-acf-field-accordion.php:100
msgid "Display this accordion as open on page load."
msgstr ""
#: includes/fields/class-acf-field-accordion.php:109
msgid "Multi-expand"
msgstr ""
#: includes/fields/class-acf-field-accordion.php:110
msgid "Allow this accordion to open without closing others."
msgstr ""
#: includes/fields/class-acf-field-accordion.php:119
#: includes/fields/class-acf-field-tab.php:114
msgid "Endpoint"
msgstr ""
#: includes/fields/class-acf-field-accordion.php:120
msgid ""
"Define an endpoint for the previous accordion to stop. This accordion will "
"not be visible."
msgstr ""
#: includes/fields/class-acf-field-button-group.php:24 #: includes/fields/class-acf-field-button-group.php:24
msgid "Button Group" msgid "Button Group"
msgstr "" msgstr ""
@ -1354,7 +1388,7 @@ msgstr ""
#: includes/fields/class-acf-field-button-group.php:191 #: includes/fields/class-acf-field-button-group.php:191
#: includes/fields/class-acf-field-checkbox.php:408 #: includes/fields/class-acf-field-checkbox.php:408
#: includes/fields/class-acf-field-file.php:200 #: includes/fields/class-acf-field-file.php:204
#: includes/fields/class-acf-field-image.php:188 #: includes/fields/class-acf-field-image.php:188
#: includes/fields/class-acf-field-link.php:166 #: includes/fields/class-acf-field-link.php:166
#: includes/fields/class-acf-field-radio.php:299 #: includes/fields/class-acf-field-radio.php:299
@ -1364,7 +1398,7 @@ msgstr ""
#: includes/fields/class-acf-field-button-group.php:192 #: includes/fields/class-acf-field-button-group.php:192
#: includes/fields/class-acf-field-checkbox.php:409 #: includes/fields/class-acf-field-checkbox.php:409
#: includes/fields/class-acf-field-file.php:201 #: includes/fields/class-acf-field-file.php:205
#: includes/fields/class-acf-field-image.php:189 #: includes/fields/class-acf-field-image.php:189
#: includes/fields/class-acf-field-link.php:167 #: includes/fields/class-acf-field-link.php:167
#: includes/fields/class-acf-field-radio.php:300 #: includes/fields/class-acf-field-radio.php:300
@ -1676,13 +1710,13 @@ msgstr ""
msgid "Uploaded to this post" msgid "Uploaded to this post"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:126 #: includes/fields/class-acf-field-file.php:130
msgid "File name" msgid "File name"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:130 #: includes/fields/class-acf-field-file.php:134
#: includes/fields/class-acf-field-file.php:233 #: includes/fields/class-acf-field-file.php:237
#: includes/fields/class-acf-field-file.php:244 #: includes/fields/class-acf-field-file.php:248
#: includes/fields/class-acf-field-image.php:248 #: includes/fields/class-acf-field-image.php:248
#: includes/fields/class-acf-field-image.php:277 #: includes/fields/class-acf-field-image.php:277
#: pro/fields/class-acf-field-gallery.php:690 #: pro/fields/class-acf-field-gallery.php:690
@ -1690,7 +1724,7 @@ msgstr ""
msgid "File size" msgid "File size"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:139 #: includes/fields/class-acf-field-file.php:143
#: includes/fields/class-acf-field-image.php:124 #: includes/fields/class-acf-field-image.php:124
#: includes/fields/class-acf-field-link.php:140 includes/input.php:269 #: includes/fields/class-acf-field-link.php:140 includes/input.php:269
#: pro/fields/class-acf-field-gallery.php:343 #: pro/fields/class-acf-field-gallery.php:343
@ -1698,35 +1732,35 @@ msgstr ""
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:155 #: includes/fields/class-acf-field-file.php:159
msgid "Add File" msgid "Add File"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:206 #: includes/fields/class-acf-field-file.php:210
msgid "File Array" msgid "File Array"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:207 #: includes/fields/class-acf-field-file.php:211
msgid "File URL" msgid "File URL"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:208 #: includes/fields/class-acf-field-file.php:212
msgid "File ID" msgid "File ID"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:215 #: includes/fields/class-acf-field-file.php:219
#: includes/fields/class-acf-field-image.php:213 #: includes/fields/class-acf-field-image.php:213
#: pro/fields/class-acf-field-gallery.php:655 #: pro/fields/class-acf-field-gallery.php:655
msgid "Library" msgid "Library"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:216 #: includes/fields/class-acf-field-file.php:220
#: includes/fields/class-acf-field-image.php:214 #: includes/fields/class-acf-field-image.php:214
#: pro/fields/class-acf-field-gallery.php:656 #: pro/fields/class-acf-field-gallery.php:656
msgid "Limit the media library choice" msgid "Limit the media library choice"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:221 #: includes/fields/class-acf-field-file.php:225
#: includes/fields/class-acf-field-image.php:219 #: includes/fields/class-acf-field-image.php:219
#: includes/locations/class-acf-location-attachment.php:101 #: includes/locations/class-acf-location-attachment.php:101
#: includes/locations/class-acf-location-comment.php:79 #: includes/locations/class-acf-location-comment.php:79
@ -1739,36 +1773,36 @@ msgstr ""
msgid "All" msgid "All"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:222 #: includes/fields/class-acf-field-file.php:226
#: includes/fields/class-acf-field-image.php:220 #: includes/fields/class-acf-field-image.php:220
#: pro/fields/class-acf-field-gallery.php:662 #: pro/fields/class-acf-field-gallery.php:662
msgid "Uploaded to post" msgid "Uploaded to post"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:229 #: includes/fields/class-acf-field-file.php:233
#: includes/fields/class-acf-field-image.php:227 #: includes/fields/class-acf-field-image.php:227
#: pro/fields/class-acf-field-gallery.php:669 #: pro/fields/class-acf-field-gallery.php:669
msgid "Minimum" msgid "Minimum"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:230 #: includes/fields/class-acf-field-file.php:234
#: includes/fields/class-acf-field-file.php:241 #: includes/fields/class-acf-field-file.php:245
msgid "Restrict which files can be uploaded" msgid "Restrict which files can be uploaded"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:240 #: includes/fields/class-acf-field-file.php:244
#: includes/fields/class-acf-field-image.php:256 #: includes/fields/class-acf-field-image.php:256
#: pro/fields/class-acf-field-gallery.php:698 #: pro/fields/class-acf-field-gallery.php:698
msgid "Maximum" msgid "Maximum"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:251 #: includes/fields/class-acf-field-file.php:255
#: includes/fields/class-acf-field-image.php:285 #: includes/fields/class-acf-field-image.php:285
#: pro/fields/class-acf-field-gallery.php:727 #: pro/fields/class-acf-field-gallery.php:727
msgid "Allowed file types" msgid "Allowed file types"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-file.php:252 #: includes/fields/class-acf-field-file.php:256
#: includes/fields/class-acf-field-image.php:286 #: includes/fields/class-acf-field-image.php:286
#: pro/fields/class-acf-field-gallery.php:728 #: pro/fields/class-acf-field-gallery.php:728
msgid "Comma separated list. Leave blank for all types" msgid "Comma separated list. Leave blank for all types"
@ -1845,21 +1879,21 @@ msgstr ""
#: includes/fields/class-acf-field-group.php:480 #: includes/fields/class-acf-field-group.php:480
#: pro/fields/class-acf-field-clone.php:845 #: pro/fields/class-acf-field-clone.php:845
#: pro/fields/class-acf-field-flexible-content.php:612 #: pro/fields/class-acf-field-flexible-content.php:614
#: pro/fields/class-acf-field-repeater.php:458 #: pro/fields/class-acf-field-repeater.php:458
msgid "Block" msgid "Block"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-group.php:481 #: includes/fields/class-acf-field-group.php:481
#: pro/fields/class-acf-field-clone.php:846 #: pro/fields/class-acf-field-clone.php:846
#: pro/fields/class-acf-field-flexible-content.php:611 #: pro/fields/class-acf-field-flexible-content.php:613
#: pro/fields/class-acf-field-repeater.php:457 #: pro/fields/class-acf-field-repeater.php:457
msgid "Table" msgid "Table"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-group.php:482 #: includes/fields/class-acf-field-group.php:482
#: pro/fields/class-acf-field-clone.php:847 #: pro/fields/class-acf-field-clone.php:847
#: pro/fields/class-acf-field-flexible-content.php:613 #: pro/fields/class-acf-field-flexible-content.php:615
#: pro/fields/class-acf-field-repeater.php:459 #: pro/fields/class-acf-field-repeater.php:459
msgid "Row" msgid "Row"
msgstr "" msgstr ""
@ -2047,6 +2081,12 @@ msgstr ""
msgid "Archives" msgid "Archives"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-page_link.php:269
#: includes/fields/class-acf-field-post_object.php:268
#: includes/fields/class-acf-field-taxonomy.php:986
msgid "Parent"
msgstr ""
#: includes/fields/class-acf-field-page_link.php:485 #: includes/fields/class-acf-field-page_link.php:485
#: includes/fields/class-acf-field-post_object.php:384 #: includes/fields/class-acf-field-post_object.php:384
#: includes/fields/class-acf-field-relationship.php:623 #: includes/fields/class-acf-field-relationship.php:623
@ -2288,35 +2328,14 @@ msgstr ""
msgid "Tab" msgid "Tab"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-tab.php:82 #: includes/fields/class-acf-field-tab.php:102
msgid ""
"The tab field will display incorrectly when added to a Table style repeater "
"field or flexible content field layout"
msgstr ""
#: includes/fields/class-acf-field-tab.php:83
msgid ""
"Use \"Tab Fields\" to better organize your edit screen by grouping fields "
"together."
msgstr ""
#: includes/fields/class-acf-field-tab.php:84
msgid ""
"All fields following this \"tab field\" (or until another \"tab field\" is "
"defined) will be grouped together using this field's label as the tab "
"heading."
msgstr ""
#: includes/fields/class-acf-field-tab.php:98
msgid "Placement" msgid "Placement"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-tab.php:110 #: includes/fields/class-acf-field-tab.php:115
msgid "End-point" msgid ""
msgstr "" "Define an endpoint for the previous tabs to stop. This will start a new "
"group of tabs."
#: includes/fields/class-acf-field-tab.php:111
msgid "Use this field as an end-point and start a new group of tabs"
msgstr "" msgstr ""
#: includes/fields/class-acf-field-taxonomy.php:713 #: includes/fields/class-acf-field-taxonomy.php:713
@ -2561,7 +2580,7 @@ msgstr ""
msgid "Post updated" msgid "Post updated"
msgstr "" msgstr ""
#: includes/forms/form-front.php:229 #: includes/forms/form-front.php:230
msgid "Spam Detected" msgid "Spam Detected"
msgstr "" msgstr ""
@ -2965,44 +2984,44 @@ msgstr ""
msgid "Click to toggle" msgid "Click to toggle"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:554 #: pro/fields/class-acf-field-flexible-content.php:556
msgid "Reorder Layout" msgid "Reorder Layout"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:554 #: pro/fields/class-acf-field-flexible-content.php:556
msgid "Reorder" msgid "Reorder"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:555 #: pro/fields/class-acf-field-flexible-content.php:557
msgid "Delete Layout" msgid "Delete Layout"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:556 #: pro/fields/class-acf-field-flexible-content.php:558
msgid "Duplicate Layout" msgid "Duplicate Layout"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:557 #: pro/fields/class-acf-field-flexible-content.php:559
msgid "Add New Layout" msgid "Add New Layout"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:628 #: pro/fields/class-acf-field-flexible-content.php:630
msgid "Min" msgid "Min"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:641 #: pro/fields/class-acf-field-flexible-content.php:643
msgid "Max" msgid "Max"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:668 #: pro/fields/class-acf-field-flexible-content.php:670
#: pro/fields/class-acf-field-repeater.php:466 #: pro/fields/class-acf-field-repeater.php:466
msgid "Button Label" msgid "Button Label"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:677 #: pro/fields/class-acf-field-flexible-content.php:679
msgid "Minimum Layouts" msgid "Minimum Layouts"
msgstr "" msgstr ""
#: pro/fields/class-acf-field-flexible-content.php:686 #: pro/fields/class-acf-field-flexible-content.php:688
msgid "Maximum Layouts" msgid "Maximum Layouts"
msgstr "" msgstr ""

View File

@ -114,13 +114,13 @@ class acf_pro {
// register scripts // register scripts
wp_register_script( 'acf-pro-input', acf_get_dir( "pro/assets/js/acf-pro-input{$min}.js" ), array('acf-input'), $version ); wp_register_script( 'acf-pro-input', acf_get_url( "pro/assets/js/acf-pro-input{$min}.js" ), array('acf-input'), $version );
wp_register_script( 'acf-pro-field-group', acf_get_dir( "pro/assets/js/acf-pro-field-group{$min}.js" ), array('acf-field-group'), $version ); wp_register_script( 'acf-pro-field-group', acf_get_url( "pro/assets/js/acf-pro-field-group{$min}.js" ), array('acf-field-group'), $version );
// register styles // register styles
wp_register_style( 'acf-pro-input', acf_get_dir( 'pro/assets/css/acf-pro-input.css' ), array('acf-input'), $version ); wp_register_style( 'acf-pro-input', acf_get_url( 'pro/assets/css/acf-pro-input.css' ), array('acf-input'), $version );
wp_register_style( 'acf-pro-field-group', acf_get_dir( 'pro/assets/css/acf-pro-field-group.css' ), array('acf-input'), $version ); wp_register_style( 'acf-pro-field-group', acf_get_url( 'pro/assets/css/acf-pro-field-group.css' ), array('acf-input'), $version );
} }

View File

@ -136,20 +136,12 @@
// add sortable // add sortable
this.$settings.sortable({ this.$settings.sortable({
items : '> .acf-field-setting-fc_layout', items: '> .acf-field-setting-fc_layout',
handle : '[data-name="acf-fc-reorder"]', handle: '[data-name="acf-fc-reorder"]',
forceHelperSize : true, forceHelperSize: true,
forcePlaceholderSize : true, forcePlaceholderSize: true,
scroll : true, scroll: true,
start : function (event, ui) { stop: function (event, ui) {
acf.do_action('sortstart', ui.item, ui.placeholder);
},
stop : function (event, ui) {
acf.do_action('sortstop', ui.item, ui.placeholder);
// save flexible content (layout order has changed) // save flexible content (layout order has changed)
acf.field_group.save_field( $field ); acf.field_group.save_field( $field );

File diff suppressed because one or more lines are too long

View File

@ -266,18 +266,11 @@
forceHelperSize: true, forceHelperSize: true,
forcePlaceholderSize: true, forcePlaceholderSize: true,
scroll: true, scroll: true,
start: function(event, ui) {
acf.do_action('sortstart', ui.item, ui.placeholder);
},
stop: function(event, ui) { stop: function(event, ui) {
// render // render
self.render(); self.render();
acf.do_action('sortstop', ui.item, ui.placeholder);
}, },
update: function(event, ui) { update: function(event, ui) {
@ -786,18 +779,11 @@
forceHelperSize: true, forceHelperSize: true,
forcePlaceholderSize: true, forcePlaceholderSize: true,
scroll: true, scroll: true,
start: function(event, ui) {
acf.do_action('sortstart', ui.item, ui.placeholder);
},
stop: function(event, ui) { stop: function(event, ui) {
// render // render
self.render(); self.render();
acf.do_action('sortstop', ui.item, ui.placeholder);
}, },
update: function(event, ui) { update: function(event, ui) {
@ -1211,25 +1197,17 @@
// sortable // sortable
this.$attachments.unbind('sortable').sortable({ this.$attachments.unbind('sortable').sortable({
items : '.acf-gallery-attachment', items: '.acf-gallery-attachment',
forceHelperSize : true, forceHelperSize: true,
forcePlaceholderSize : true, forcePlaceholderSize: true,
scroll : true, scroll: true,
start: function (event, ui) { start: function (event, ui) {
ui.placeholder.html( ui.item.html() ); ui.placeholder.html( ui.item.html() );
ui.placeholder.removeAttr('style'); ui.placeholder.removeAttr('style');
acf.do_action('sortstart', ui.item, ui.placeholder);
},
stop: function (event, ui) {
acf.do_action('sortstop', ui.item, ui.placeholder);
} }
}); });

File diff suppressed because one or more lines are too long

View File

@ -454,6 +454,7 @@ class acf_field_flexible_content extends acf_field {
</thead> </thead>
<tbody> <tbody>
<tr class="acf-row">
<?php else: ?> <?php else: ?>
<div class="acf-fields <?php if($layout['display'] == 'row'): ?>-left<?php endif; ?>"> <div class="acf-fields <?php if($layout['display'] == 'row'): ?>-left<?php endif; ?>">
<?php endif; ?> <?php endif; ?>
@ -497,6 +498,7 @@ class acf_field_flexible_content extends acf_field {
?> ?>
<?php if( $layout['display'] == 'table' ): ?> <?php if( $layout['display'] == 'table' ): ?>
</tr>
</tbody> </tbody>
</table> </table>
<?php else: ?> <?php else: ?>

View File

@ -66,6 +66,25 @@ From your WordPress dashboard
== Changelog == == Changelog ==
= 5.6.7 =
* Fixed an assortment of bugs found in 5.6.6
= 5.6.6 =
* Accordion field: Added new field type
* Tab field: Added logic to remember active tabs
* WYSIWYG field: Fixed JS error in quicktags initialization
* Core: Fixed issue preventing conditional logic for menu item fields
* Core: Fixed issue preventing JS initialization for newly added menu items.
* Core: Allow whitespace in input value (previously trimmed)
* Core: Minor fixes and improvements
* Language: Updated Italian translation - thanks to Davide Pantè
* Language: Updated Brazilian Portuguese translation - thanks to Rafael Ribeiro
* Language: Updated Dutch translation - thanks to Derk Oosterveld
* Language: Updated Portuguese translation - thanks to Pedro Mendonça
* Language: Updated Persian translation - thanks to Kamel Kimiaei
* Language: Updated Swiss German translation - thanks to Raphael Hüni
* Language: Updated Arabic translation - thanks to Karim Ramadan
= 5.6.5 = = 5.6.5 =
* API: Added new 'kses' setting to the `acf_form()` function * API: Added new 'kses' setting to the `acf_form()` function
* Core: Added new 'Admin Tools' framework (includes design refresh) * Core: Added new 'Admin Tools' framework (includes design refresh)