| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Services\Changelog; |
| 4 |
|
| 5 |
// phpcs:disable PSR1.Files.SideEffects |
| 6 |
if (!defined('ABSPATH')) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
use IvyForms\Services\Settings\SettingsService; |
| 11 |
|
| 12 |
class ChangelogService |
| 13 |
{ |
| 14 |
/** |
| 15 |
* Get changelog data with translated strings. |
| 16 |
* |
| 17 |
* @return array{ |
| 18 |
* version: string, |
| 19 |
* release_date: string, |
| 20 |
* features: array<array{text: string}>, |
| 21 |
* improvements: array<array{text: string}>, |
| 22 |
* bugfixes: array<array{text: string}> |
| 23 |
* } |
| 24 |
*/ |
| 25 |
public static function getChangelogData(): array |
| 26 |
{ |
| 27 |
$changelogData = [ |
| 28 |
'version' => IVYFORMS_VERSION, |
| 29 |
'release_date' => '11.02.2026.', |
| 30 |
'features' => [ |
| 31 |
['text' => __('Added a new field - |
| 32 |
HTML field for adding custom HTML content to your forms.', 'ivyforms')], |
| 33 |
['text' => __('Added bulk actions for |
| 34 |
starring/marking as read for tables with forms and entries.', 'ivyforms')], |
| 35 |
['text' => __('Added new templates for |
| 36 |
collecting feedback and reviews.', 'ivyforms')], |
| 37 |
['text' => __('Added options for enabling search |
| 38 |
and shuffle options in fields with options.', 'ivyforms')], |
| 39 |
|
| 40 |
], |
| 41 |
'improvements' => [ |
| 42 |
['text' => __('Preserve table state (pagination, filters, sorting) |
| 43 |
when navigating from pages with tables to other pages and back.', 'ivyforms')], |
| 44 |
['text' => __('Added a search functionality |
| 45 |
to fields in the form builder.', 'ivyforms')], |
| 46 |
['text' => __('UX/UI improvements for consistent |
| 47 |
implementation of the allow min/max value toggle.', 'ivyforms')], |
| 48 |
|
| 49 |
], |
| 50 |
'bugfixes' => [ |
| 51 |
// ['text' => __('Fixed issue with duplicate form name display |
| 52 |
// in Form Builder.', 'ivyforms')], |
| 53 |
], |
| 54 |
]; |
| 55 |
|
| 56 |
/** |
| 57 |
* Filter changelog data to allow Pro plugin to add its own changelog entries |
| 58 |
* |
| 59 |
* @param array $changelogData The changelog data array |
| 60 |
* @return array Modified changelog data |
| 61 |
*/ |
| 62 |
return apply_filters('ivyforms/changelog/get_data', $changelogData); |
| 63 |
} |
| 64 |
} |
| 65 |
|