Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Multilingual responsive captive portal template for OPNSense firewall and routing platform

License

Notifications You must be signed in to change notification settings

mixmint/opnsense-captive-portal-template

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Go to file

Folders and files

Last commit message Last commit date

Latest commit

History

View all files

Repository files navigation

To read more about the captive portal, I suggest you have a look here: https://docs.opnsense.org/manual/captiveportal.html?highlight=captive%20portal meanwhile, I will focus on the template.

The captive portal templates that I have seen so far most often lack multilingual support. I've always wondered why it should only be in English or only in one language at all? Well, let's look below. This template supports multilingualism, checks your preferred browser language, saves a cookie with information about which language was read or which language you chose using the selector. Uses language translations saved in the xx .json file. So, according to the layout, you can prepare your own translation, which you later have to declare in the settings.json file in the config directory.

"langs": "pl":"Polski",
"en":"English"
>;

Based on the keys of the langs variable object, the template will automatically determine whether it should display the LTR or RTL content.

The base64 logo is set in the settings.json file. Due to the universal application, the frame of the image of the logo must keep the proportions of a square.