| View previous topic :: View next topic |
| Author |
Message |
jon.vanderiet
Joined: 14 Apr 2008 Posts: 2
|
Posted: Mon Apr 14, 2008 7:38 pm Post subject: Multiple calendar with different theme for each |
|
|
Is there a way I can have multiple calendars in Thyme but set a different default theme for each one?
Currently I have a separate Thyme installation for each but I want to consolidate this into a single installation but still maintain unique themes for each. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon Apr 14, 2008 7:41 pm Post subject: |
|
|
Hi,
No, I'm sorry. There is no setting to change themes per calendar. |
|
| Back to top |
|
 |
jon.vanderiet
Joined: 14 Apr 2008 Posts: 2
|
Posted: Mon Apr 14, 2008 7:51 pm Post subject: any way to hack this? |
|
|
| I am a php developer. Is there a way I could modify this and send the default theme through the URL parameters perhaps? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Tue Apr 15, 2008 3:24 pm Post subject: |
|
|
You could add this code to index.php around line 90. Something like this should do:
| Code: |
if($_cur_cal->title == "Some Calendar") {
_ex_theme_set("theme_name");
} else if(..) {
... etc ..
} else {
.. etc ..
} |
Where the current calendar's title is kept in $_cur_cal->title and you may set the theme using _ex_theme_set(). Let me know if you have any questions at all. |
|
| Back to top |
|
 |
|