geoip-detect
geoip-detect copied to clipboard
Add Gutenberg Frontend
Wordpress 5.0 will include Gutenberg, which replaces the nasty shortcode-logic with shiny visual blocks. This make nestes conditions possible (currently not possible because the same shortcodes cannot be nested).
Block 1: Doing the stuff the shortcodes like [geoip_detect2 property="country" default="(none)"]
do
Block 2: Showing / hiding the content inside based on conditions. The conditions are combined with AND, a NOT is possible for each condition, and it is possible to set multiple values (comma-separeted?) (see https://github.com/yellowtree/wp-geoip-detect/wiki/API-Documentation#show-or-hide-content-depending-on-the-location). The challenge is to create a user interface that is as intuitive as possible. Maybe ACF can serve as a model.
For nested blocks (Block 2), see https://github.com/WordPress/gutenberg/issues/428