mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 20:11:23 +02:00
added templates selection
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user