Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to support custom variable db options in admin #118

Open
bozdoz opened this issue Dec 18, 2020 · 0 comments
Open

Try to support custom variable db options in admin #118

bozdoz opened this issue Dec 18, 2020 · 0 comments
Labels

Comments

@bozdoz
Copy link
Owner

bozdoz commented Dec 18, 2020

The idea is to have both key and value as textboxes (likely in a "custom variable" section). Where the user can add as many as they'd like.


| key | value |
| your-key | your-value |

and use it, for example:

[leafet-marker svg path="{ your-key | custom }"]

This could be parsed with the liquid function in https://github.com/bozdoz/wp-plugin-leaflet-map/blob/master/class.leaflet-map.php#L383

See how the map shortcode is currently implementing a 'raw' liquid-like tag: https://github.com/bozdoz/wp-plugin-leaflet-map/blob/master/shortcodes/class.map-shortcode.php#L193-L195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant