| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Services\Changelog; |
| 4 |
|
| 5 |
class ChangelogService |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Get changelog data with translated strings. |
| 9 |
* |
| 10 |
* @return array{ |
| 11 |
* version: string, |
| 12 |
* release_date: string, |
| 13 |
* features: array<array{text: string}>, |
| 14 |
* improvements: array<array{text: string}>, |
| 15 |
* bugfixes: array<array{text: string}> |
| 16 |
* } |
| 17 |
*/ |
| 18 |
public static function getChangelogData(): array |
| 19 |
{ |
| 20 |
$changelogData = [ |
| 21 |
'version' => IVYFORMS_VERSION, |
| 22 |
'release_date' => '2026-10-05', |
| 23 |
'features' => [ |
| 24 |
['text' => __('Added AI choice generation for Dropdown, Radio, and Checkbox fields.', 'ivyforms')], |
| 25 |
['text' => __('Added import from WPForms and Gravity Forms.', 'ivyforms')], |
| 26 |
['text' => __('Added CC and BCC recipients to email notifications.', 'ivyforms')], |
| 27 |
['text' => __('Added a Disable styles option so forms can inherit the theme styling.', 'ivyforms')], |
| 28 |
], |
| 29 |
'improvements' => [ |
| 30 |
['text' => __('Improved compatibility with PHP 8.5.', 'ivyforms')], |
| 31 |
], |
| 32 |
'bugfixes' => [ |
| 33 |
['text' => __('Fixed moving an added field in the form builder.', 'ivyforms')], |
| 34 |
['text' => __('Fixed Email and Confirm Email field spacing on the frontend.', 'ivyforms')], |
| 35 |
['text' => __('Fixed editing HTML code in the Message field.', 'ivyforms')], |
| 36 |
['text' => __('Fixed console errors when opening a new form in the form builder.', 'ivyforms')], |
| 37 |
['text' => __('Fixed an error when clicking the Message field in Confirmations.', 'ivyforms')], |
| 38 |
[ |
| 39 |
'text' => __( |
| 40 |
'Fixed the HEX color input in the Style tab overwriting manually typed values.', |
| 41 |
'ivyforms' |
| 42 |
), |
| 43 |
], |
| 44 |
['text' => __('Fixed form export failing when no notifications are configured.', 'ivyforms')], |
| 45 |
['text' => __('Fixed {{all_data}} in notifications ignoring the reordered field order.', 'ivyforms')], |
| 46 |
], |
| 47 |
]; |
| 48 |
|
| 49 |
/** |
| 50 |
* Filter changelog data to allow Pro plugin to add its own changelog entries |
| 51 |
* |
| 52 |
* @param array $changelogData The changelog data array |
| 53 |
* @return array Modified changelog data |
| 54 |
*/ |
| 55 |
return apply_filters('ivyforms/changelog/get_data', $changelogData); |
| 56 |
} |
| 57 |
} |
| 58 |
|