CMXX - Language selection

This commit is contained in:
“VeLiTi”
2025-02-19 16:48:48 +01:00
parent 0e9d133ff9
commit 8bb78d2a08
19 changed files with 139 additions and 58 deletions

View File

@@ -108,7 +108,7 @@ $view .= ' <div style="margin-top: 30px;display: flex;align-items: center;align-
foreach ($categories as $categorie){
if ($categorie['parent_id'] == '0' && $categorie['status'] == 1 && $categorie['filter'] != 1){
$weburl = url('index.php?page=products&category='.$categorie['rowID'].'');
$view .= '<a href="'.$weburl.'">'.$categorie['name'].'</a>';
$view .= '<a href="'.$weburl.'">'.(${$categorie['name']} ?? $categorie['name']).'</a>';
}
}
$view .= '
@@ -119,7 +119,7 @@ $view .= ' <div style="margin-top: 30px;display: flex;align-items: center;align-
foreach ($categories as $categorie){
if ($categorie['parent_id'] == $_GET['category'] && $categorie['status'] == 1 && $categorie['filter'] != 1){
$weburl = url('index.php?page=productsnew&category='.$categorie['rowID'].'');
$view .= '<a href="'.$weburl.'" style="color: #fff;background-color: #555555;font-size: 10px;">'.$categorie['name'].'</a>';
$view .= '<a href="'.$weburl.'" style="color: #fff;background-color: #555555;font-size: 10px;">'.(${$categorie['name']} ?? $categorie['name']).'</a>';
}
}
$view .= '</div>';