mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
added templates selection
This commit is contained in:
parent
e7896e9bc5
commit
a946c16b17
@ -356,8 +356,11 @@
|
||||
if ($appname == ""){$appname = $phpgw_info["flags"]["currentapp"];}
|
||||
if ($appname == "home" || $appname == "logout" || $appname == "login"){$appname = "phpgwapi";}
|
||||
|
||||
if ($phpgw_info["server"]["template_set"] == "user_choice" && isset($phpgw_info["user"]["preferences"]["template_set"])){
|
||||
$phpgw_info["server"]["template_set"] = $phpgw_info["user"]["preferences"]["template_set"];
|
||||
// Setting this for display of template choices in user preferences
|
||||
if ($phpgw_info["server"]["template_set"] == "user_choice" ){$phpgw_info["server"]["usrtplchoice"] = "user_choice"; }
|
||||
|
||||
if ($phpgw_info["server"]["template_set"] == "user_choice" && isset($phpgw_info["user"]["preferences"]["common"]["template_set"])){
|
||||
$phpgw_info["server"]["template_set"] = $phpgw_info["user"]["preferences"]["common"]["template_set"];
|
||||
}elseif ($phpgw_info["server"]["template_set"] == "user_choice" || !isset($phpgw_info["server"]["template_set"])){
|
||||
$phpgw_info["server"]["template_set"] = "default";
|
||||
}
|
||||
|
@ -34,8 +34,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php if ($phpgw_info["server"]["template_set"] == "user_choice"){ ?>
|
||||
<?php if ($phpgw_info["server"]["usrtplchoice"] == "user_choice"){ ?>
|
||||
<tr>
|
||||
<?php $selected[$phpgw_info["user"]["preferences"]["common"]["template_set"]] = " selected"; ?>
|
||||
<td>Interface/Template Selection:<br></td>
|
||||
|
Loading…
Reference in New Issue
Block a user