getgrav / grav-plugin-langswitcher

Grav LangSwitcher Plugin
https://getgrav.org
MIT License
28 stars 26 forks source link

Select menu as a configurable display option #74

Open sushidave opened 1 year ago

sushidave commented 1 year ago

Thank you for this useful plugin.

I am not very Grav savvy but managed to modify the code to get a <select> menu instead of an <ul> list. It brought me to the idea to propose it to you as an configurable option.

These are the two files I copied from /user/plugins/langswitcher/templates/partials to /user/themes/[theme]/templates/partials and modified the code to look as follows:

grav-langswitcher-logic-html-twig

grav-langswitcher-html-twig

However, I don't know how to add the option to the UI, therefore this feature request.