I have a website that follows the following structure:
Programmatically we change the logo which is hard-coded in a specific config file for city 1, city 2,... They are files in a folder structure like /cities/city1 or /cities/city2.
The colors can be changed by the admin of the city itself via the user interface, and it is saved in the database in a local_settings table where there's a column for bg_color.
However, I want to rework my entire system to white label the entire cities layout. But I was wondering how to go about this, I couldn't find much information googling this subject.
Keep on creating a config file for each city? And store each of the specific settings in there, where php reads and writes to the file?
Save everything in the database? How do I structure this properly for scalability?
Extra question: imagine if a city wants its own footer on its sub-site, (which requires completely custom new HTML and CSS code), how do I go about this? Is it good practice to create a specific new footer.html file and put it in its specific /cities/ folder? And load it if it exists, otherwise load the general one?