plugin updates

This commit is contained in:
Tony Volpe
2024-06-17 14:48:11 -04:00
parent ecc5fbf831
commit 3751a5a1a6
1318 changed files with 91130 additions and 52250 deletions

View File

@@ -1,9 +1,9 @@
<?php
/*
* Plugin Name: Advanced Custom Fields: Gravity Forms Add-on
* Plugin URI: https://github.com/dannyvanholten/acf-gravityforms-add-on
* Plugin URI: https://github.com/sayhellogmbh/acf-gravityforms-add-on
* Description: Provides an Advanced Custom Field which allows a WordPress editorial user or administrator to select a Gravity Form as part of a field group configuration.
* Version: 1.3.5
* Version: 1.3.8
* Requires at least: 4.6
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -19,7 +19,7 @@ if (!defined('ABSPATH')) {
} // Exit if accessed directly
// Define multiple necessary constants
define('ACF_GF_FIELD_VERSION', '1.3.5');
define('ACF_GF_FIELD_VERSION', '1.3.8');
define('ACF_GF_FIELD_LANGUAGES', dirname(plugin_basename(__FILE__)) . '/languages/');
// This remains defined just in case anyone is using it, but it is no longer used by this plugin.

View File

@@ -1,19 +1,21 @@
=== Advanced Custom Fields: Gravity Forms Add-on ===
Contributors: DannyvanHolten, markhowellsmead
Tags: gravityforms, gravity form, forms, form, acf, advanced custom fields, fields, custom fields, sayhellogmbh
Contributors: markhowellsmead, dannyvanholten
Tags: gravity forms, form, acf, advanced custom fields, sayhellogmbh
Requires at least: 4.6
Tested up to: 6.1
Stable tag: 1.3.5
Tested up to: 6.5.3
Stable tag: 1.3.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Provides an Advanced Custom Field which allows a WordPress editorial user or administrator to select a Gravity Form as part of a field group configuration.
Provides an Advanced Custom Field which allows a WordPress user to select a Gravity Form as part of a field group configuration.
== Description ==
Provides an Advanced Custom Field which allows a WordPress editorial user or administrator to select a Gravity Form as part of a field group configuration.
Full documentation can be found in the [plugin's GitHub Repository](https://github.com/DannyvanHolten/acf-gravityforms-add-on).
**This plugin does not have any effect on the frontend of the website. It does not output the form, nor does it modify the output of existing forms. The plugin only adds a custom ACF field type for use in an ACF field group.**
Full documentation can be found in the [plugin's GitHub Repository](https://github.com/SayHelloGmbH/acf-gravityforms-add-on/).
== Installation ==
@@ -46,4 +48,4 @@ Version 1.3.2 added a plain HTML filter to the output of the field. This filter
== Changelog ==
Further changes can be found in the [changelog](https://github.com/DannyvanHolten/acf-gravityforms-add-on/blob/master/CHANGELOG.md)
A detailed list of changes to the plugin can be found in the [changelog](https://github.com/SayHelloGmbH/acf-gravityforms-add-on/blob/master/CHANGELOG.md) at Github.

View File

@@ -54,8 +54,8 @@ class Field extends acf_field
'name' => 'return_format',
'layout' => 'horizontal',
'choices' => [
'post_object' => __('Form Object', ACF_GF_FIELD_TEXTDOMAIN),
'id' => __('Form ID', ACF_GF_FIELD_TEXTDOMAIN)
'post_object' => __('Form Object', 'acf-gravityforms-add-on'),
'id' => __('Form ID', 'acf-gravityforms-add-on')
],
]);
@@ -128,7 +128,7 @@ class Field extends acf_field
// Check if we're allowing an empty form. If so, create a default option
if ($field['allow_null']) {
$field_options .= '<option value="">' . __('- Select a form -', ACF_GF_FIELD_TEXTDOMAIN) . '</option>';
$field_options .= '<option value="">' . __('- Select a form -', 'acf-gravityforms-add-on') . '</option>';
}
// Loop trough all our choices

View File

@@ -79,8 +79,8 @@ class FieldForV4 extends acf_field
'name' => 'fields[' . $key . '][return_format]',
'value' => $field['return_format'],
'choices' => [
'post_object' => __('Form Object', ACF_GF_FIELD_TEXTDOMAIN),
'id' => __('Form ID', ACF_GF_FIELD_TEXTDOMAIN)
'post_object' => __('Form Object', 'acf-gravityforms-add-on'),
'id' => __('Form ID', 'acf-gravityforms-add-on')
],
'layout' => 'horizontal',
]); ?>

View File

@@ -57,6 +57,6 @@ class Init
*/
public function loadTextDomain()
{
load_plugin_textdomain(ACF_GF_FIELD_TEXTDOMAIN, false, ACF_GF_FIELD_LANGUAGES);
load_plugin_textdomain('acf-gravityforms-add-on', false, ACF_GF_FIELD_LANGUAGES);
}
}

View File

@@ -30,7 +30,7 @@ class Notices
if (!class_exists('GFAPI')) {
$notice = sprintf(__(
'Warning: You need to <a href="%s">Activate Gravityforms</a> in order to use the Advanced Custom Fields: Gravityforms Add-on.',
ACF_GF_FIELD_TEXTDOMAIN
'acf-gravityforms-add-on'
), admin_url('plugins.php'));
$this->createNotice($notice, $inline, $alt);
@@ -50,7 +50,7 @@ class Notices
if (!$this->forms) {
$notice = sprintf(__(
' Warning: There are no active forms. You need to <a href="%s">Create a New Form</a> in order to use the Advanced Custom Fields: Gravityforms Add-on.',
ACF_GF_FIELD_TEXTDOMAIN
'acf-gravityforms-add-on'
), admin_url('admin.php?page=gf_new_form'));
$this->createNotice($notice, $inline, $alt);
@@ -65,7 +65,7 @@ class Notices
if (!function_exists('get_field')) {
$notice = sprintf(__(
'Warning: You need to <a href="%s">Activate Advanced Custom Fields</a> in order to use the Advanced Custom Fields: Gravityforms Add-on.',
ACF_GF_FIELD_TEXTDOMAIN
'acf-gravityforms-add-on'
), admin_url('plugins.php'));
$this->createNotice($notice, $inline, $alt);