This repository has been archived by the owner on Aug 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
readme.txt
99 lines (62 loc) · 3.26 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
=== Flexible Content Preview for Advanced Custom Fields ===
Contributors: jameelmoses
Donate link: http://paypal.me/jameelmoses
Tags: acf, advanced, custom, field, fields, addon, flexible, content, preview
Requires at least: 4.7.0
Requires PHP: 5.6
Tested up to: 5.8
Stable tag: 1.0.6
License: GPLv3 or later
License URI: https://github.com/jameelmoses/acf-flexible-content-preview/blob/master/LICENSE.md
Transforms ACF's flexible content field's layout list into a modal with image previews.
== Description ==
Transforms ACF's flexible content field's layout list into a modal with image previews.
= Image Conventions =
* The size of the image should be 732 x 300.
* They should be named based on the layout's name (`text_block`) with underscores converted to dashes (`text-block.jpg`).
= Image Location =
Images should be placed in your theme. Be fault, images are located here: `THEME/lib/admin/images/acf-flexible-content-preview`.
Also note that you can filter this path, but it **MUST** be in your theme:
`add_filter( 'acf-flexible-content-preview.images_path', $path );`
**NOTE:** The path should not have a trailing beginning or trailing slash!
Additionally, you could filter all keys and/or images:
`add_filter( 'acf-flexible-content-preview.images', $images );`
= Issues & Feature Requests =
If you identify any errors or have an idea for improving the plugin, feel free to open an [issue](https://github.com/jameelmoses/acf-flexible-content-preview/issues) or [create a pull request](https://github.com/jameelmoses/acf-flexible-content-preview/pulls). Please provide as much info as needed in order to help resolving or approve your request.
== Installation ==
This plugin works only if the [ACF Pro >= 5.7.O](https://www.advancedcustomfields.com/) plugin is installed and activated.
# Requirements
- [ACF Pro >= 5.7.O](https://www.advancedcustomfields.com/) plugin
- WordPress 4.7+ because of `[get_theme_file_uri()](https://developer.wordpress.org/reference/functions/get_theme_file_uri)`
- Tested up to WP 5.3
- PHP 5.6+
From your WordPress dashboard
1. **Visit** Plugins > Add New
2. **Search** for "Flexible Content Preview for Advanced Custom Fields"
3. **Activate** Flexible Content Preview for Advanced Custom Fields from your Plugins page
4. **Add images** to your theme in `THEME/lib/admin/images/acf-flexible-content-preview` or customize the path using `add_filter( 'acf-flexible-content-preview.images_path', $path );`
== Screenshots ==
1. See how Flexible Content Preview for Advanced Custom Fields improves the ACF flexible content field's layouts dropdown.
== Changelog ==
= 1.0.6 =
*Release Date - 26 Aug 2021*
* Fixing issue with ACF version compare since it doesn't follow PHP version constraints
= 1.0.5 =
*Release Date - 26 May 2021*
* preview image not displaying when block name starts with a number. Thanks @QueroBartK!
= 1.0.4 =
*Release Date - 18 Aug 2020*
* Update hook for enqueuing and registering assets for ACF 5.9 compatibility. Thanks @elliottpost!
= 1.0.3 =
*Release Date - 7 Apr 2020*
* Fixes a bug related to nested fields
= 1.0.2 =
*Release Date - 6 Apr 2020*
* Supporting nested flexible content fields
* Updating dependencies
= 1.0.1 =
*Release Date - 2 Dec 2019*
* Resolving jQuery bug in WP 5.3
= 1.0.0 =
*Release Date - 16 Aug 2019*
* Initial release