Skip to content

Commit

Permalink
4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Levdbas committed Dec 9, 2024
1 parent ecc301e commit c7fcaf9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ $fields->addField('my_icon', 'svg_icon_picker', [
## Changelog
[See releases for the full changelog](https://github.com/smithfield-studio/acf-svg-icon-picker/releases)

* 4.1.0:
* feat: Add possebility to directly return the icon markup from the field by using the `icon` return format
* feat: Enhance markup of the icon picker modal and field.
* docs: Update hooks in readme to the correct ones
* test: Add tests for the new return format
* ci: Run PHPCS on PRs

* 4.0.1:
* Fix version numbers in constant.
* chore: Add files to export ignore
Expand Down
4 changes: 2 additions & 2 deletions acf-svg-icon-picker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Advanced Custom Fields: SVG Icon Picker
* Plugin URI: https://github.com/smithfield-studio/acf-svg-icon-picker
* Description: Allows you to pick an icon from a predefined list
* Version: 4.0.1
* Version: 4.1.0
* Author: Smithfield & Studio Lemon
* Author URI: https://github.com/smithfield-studio/acf-svg-icon-picker/
* Text Domain: acf-svg-icon-picker
Expand All @@ -25,7 +25,7 @@
* Change this version number and the version in the
* docblock above when releasing a new version of this plugin.
*/
define('ACF_SVG_ICON_PICKER_VERSION', '4.0.1');
define('ACF_SVG_ICON_PICKER_VERSION', '4.1.0');

define('ACF_SVG_ICON_PICKER_URL', plugin_dir_url(__FILE__));
define('ACF_SVG_ICON_PICKER_PATH', plugin_dir_path(__FILE__));
Expand Down
4 changes: 2 additions & 2 deletions class-acf-field-svg-icon-picker.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private function check_priority_dir(): array
}

if (! is_array($priority_dir_settings) || ! isset($priority_dir_settings['path']) || ! isset($priority_dir_settings['url'])) {
_doing_it_wrong(__FUNCTION__, esc_attr__('The acf_svg_icon_picker_custom_location filter should contain an array with a path and url.', 'acf-svg-icon-picker'), '1.0.0');
_doing_it_wrong(__FUNCTION__, esc_attr__('The acf_svg_icon_picker_custom_location filter should contain an array with a path and url.', 'acf-svg-icon-picker'), '4.0.0');
return [];
}

Expand Down Expand Up @@ -167,11 +167,11 @@ public function render_field_settings($field): void
'instructions' => '',
'type' => 'radio',
'name' => 'return_format',
'layout' => 'horizontal',
'choices' => [
'value' => __('Value', 'acf-svg-icon-picker'),
'icon' => __('Icon', 'acf-svg-icon-picker'),
],
'layout' => 'horizontal',
]
);
}
Expand Down

0 comments on commit c7fcaf9

Please sign in to comment.