shareeweb Freiburg minor changes

This commit is contained in:
ragu 2023-02-12 18:49:40 +01:00
parent 4155e25027
commit 87549e702c
2 changed files with 14 additions and 3 deletions

View file

@ -85,6 +85,8 @@ sub tpl(){
$icon_red = "LastenradBay_Standortpfeil_rot_03a.png";
$icon_blue = "LastenradBay_Standortpfeil_blau_03a.png";
$mapheight = "800px;" if($varenv->{syshost} !~ /shareedms-/);
}elsif($project eq "Freiburg"){
$mapheight = "550px;";
}
$users_sharee->{c_id} = "0" if(!$users_sharee->{c_id});

View file

@ -53,7 +53,8 @@ sub tpl(){
my $parent_node = $dbt->{website}->{$varenv->{syshost}}->{parent_node} || "app";
($node,$rows) = $dbt->collect_noderel($dbh,$dbt->{website}->{$varenv->{syshost}}->{parent_id});
if($users_sharee->{c_id} eq $varenv->{superu_id} || $dbt->{copri_conf}->{stage} eq "test"){
#if($users_sharee->{c_id} eq $varenv->{superu_id} || $dbt->{copri_conf}->{stage} eq "test"){
if($users_sharee->{c_id} eq $varenv->{superu_id}){
my $coo = $q->cookie('domcookie') || $q->param('sessionid') || $dbt->{website}->{$varenv->{syshost}}->{merchant_id};
#my $api_test = "sharee_kn"; my $bike="KN201";
#my $api_test = "sharee_fr01"; my $bike="FR1538";
@ -152,7 +153,15 @@ sub tpl(){
if($node->{$id}->{node_name} eq "Anmelden" && $users_sharee->{c_id}){
$lmenu0 .= $but->lia_button("/$parent_node/$varenv->{profile}$session","Mein Profil",$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
}else{
$lmenu0 .= $but->lia_button("/$parent_node/$node->{$id}->{node_path}",$node->{$id}->{node_name},$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
if($project eq "Freiburg"){
if($node->{$id}->{node_name} eq "Karte"){
$lmenu0 .= $but->lia_button("/$parent_node/$node->{$id}->{node_path}","Standortkarte",$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
}elsif($node->{$id}->{node_name} ne "Kontakt"){
$lmenu0 .= $but->lia_button("/$parent_node/$node->{$id}->{node_path}",$node->{$id}->{node_name},$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
}
}else{
$lmenu0 .= $but->lia_button("/$parent_node/$node->{$id}->{node_path}",$node->{$id}->{node_name},$node->{$id}->{main_id},"","$mstyle",$users_dms->{u_id});
}
}
}
@ -162,7 +171,7 @@ sub tpl(){
}
print "<div style='float:right;text-align:right;height:25px;padding:1em 0;'>\n";
if($user_agent !~ /Android|Iphone/i){
if($user_agent !~ /Android|Iphone/i && $project eq "Bayern"){
print "<span type='button' style='color:#3f3f3f;font-size:1em;padding-right:1em;width:8px;' onclick='change_fontsize1();'>A</span>\n";
print "<span type='button' style='color:#3f3f3f;font-size:1.2em;padding-right:1em;width:8px;' onclick='change_fontsize2();'>A</span>\n";
print "<span type='button' style='color:#3f3f3f;font-size:1.4em;padding-right:1em;width:8px;' onclick='change_fontsize3();'>A</span>\n";