adamjedgar Posted March 26, 2019 Report Share Posted March 26, 2019 is it possible for a script to be able to automatically change the client area theme on a regular basis from the list of available themes? (like google does with its logo on it chrome browser) Im mainly want to be able to change the colors more than anything else. if so, how would i do this? Quote Link to comment Share on other sites More sharing options...
Tyson Posted March 26, 2019 Report Share Posted March 26, 2019 You can create a plugin that registers an automation task. It can run automatically by cron at whatever interval or at any time frame you want. When your plugin's automation task is run, you can change the theme for the company. Take a look at the source documentation for Themes::change regarding changing the theme. There are also methods for fetching the available themes so that you can pick one from the list to change it to. Quote Link to comment Share on other sites More sharing options...
Amit Kumar Mishra Posted March 26, 2019 Report Share Posted March 26, 2019 alternatively, you may have a php script to do it, even without the plugin, but depends on your ease of command over the subject matter Quote Link to comment Share on other sites More sharing options...
Paul Posted March 27, 2019 Report Share Posted March 27, 2019 You could even do this over the HTTP API https://docs.blesta.com/display/dev/API via it's own cron, like what Tyson suggested but more standalone. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.