| 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' => '05.05.2026.', |
| 23 |
'features' => [ |
| 24 |
['text' => __('Added form styling options, so you can now fully customize your forms!', 'ivyforms')], |
| 25 |
['text' => __('Forms import and export.', 'ivyforms')], |
| 26 |
['text' => __('Elementor integration.', 'ivyforms')], |
| 27 |
['text' => __('Integration with Angie AI (Elementor AI Agent).', 'ivyforms')], |
| 28 |
], |
| 29 |
'improvements' => [ |
| 30 |
['text' => __('Lazy loading implemented for templates.', 'ivyforms')], |
| 31 |
['text' => __('All hover actions are available from the three-dots menu.', 'ivyforms')], |
| 32 |
['text' => __('“Show empty fields” option in notification settings.', 'ivyforms')], |
| 33 |
['text' => __('Increased description field length.', 'ivyforms')], |
| 34 |
], |
| 35 |
'bugfixes' => [ |
| 36 |
['text' => __('Fixed missing last column on tablet resolution.', 'ivyforms')], |
| 37 |
['text' => __('Fixed required validation message displaying incorrectly.', 'ivyforms')], |
| 38 |
['text' => __('Fixed email confirmation options.', 'ivyforms')], |
| 39 |
['text' => __('Fixed hover behavior over pages in the form builder.', 'ivyforms')], |
| 40 |
['text' => __('Fixed sorting on the Author column.', 'ivyforms')], |
| 41 |
['text' => __('Fixed calendar picker.', 'ivyforms')], |
| 42 |
['text' => __('Fixed multiple submits when the Submit button was clicked repeatedly.', 'ivyforms')], |
| 43 |
['text' => __('Fixed missing label and divider for column |
| 44 |
visibility on the Results page.', 'ivyforms')], |
| 45 |
['text' => __('Fixed Date Submitted column showing |
| 46 |
the current date instead of the entry date.', 'ivyforms')], |
| 47 |
['text' => __('Fixed disabling fields inside the Address field.', 'ivyforms')], |
| 48 |
['text' => __('Fixed conflict with certain roles and IvyForms.', 'ivyforms')], |
| 49 |
['text' => __('Fixed integration logic with wpDataTables.', 'ivyforms')], |
| 50 |
], |
| 51 |
]; |
| 52 |
|
| 53 |
/** |
| 54 |
* Filter changelog data to allow Pro plugin to add its own changelog entries |
| 55 |
* |
| 56 |
* @param array $changelogData The changelog data array |
| 57 |
* @return array Modified changelog data |
| 58 |
*/ |
| 59 |
return apply_filters('ivyforms/changelog/get_data', $changelogData); |
| 60 |
} |
| 61 |
} |
| 62 |
|