mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-02-22 19:56:29 +01:00
shareeweb Freiburg minor changes
This commit is contained in:
parent
4155e25027
commit
87549e702c
2 changed files with 14 additions and 3 deletions
|
@ -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});
|
||||
|
|
|
@ -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,8 +153,16 @@ 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{
|
||||
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});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#bootstrap 5 with standalone site
|
||||
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue