Marketing and PL translation

This commit is contained in:
“VeLiTi”
2025-10-16 09:46:56 +02:00
parent f8e089ffcd
commit 3c99272f5f
7 changed files with 766 additions and 6 deletions

View File

@@ -35,14 +35,21 @@ echo '
<div style="display: flex;align-items: center;align-content: center;flex-wrap: nowrap;flex-direction: column;">
<div class="">';
foreach ($marketing_structure as $marketing => $folders){
echo '<a href="index.php?page=marketing&product_group='.$marketing.'" class="btn">'.$marketing.'</a>';
$style = '';
if (!empty($product_group) && $product_group !== $marketing) {
$style = ' style="opacity: 0.5; color: #999; background-color: #f5f5f5;"';
} elseif (!empty($product_group) && $product_group === $marketing) {
$style = ' style="background-color: #007cba; color: white;"';
}
echo '<a href="index.php?page=marketing&product_group='.$marketing.'" class="btn"'.$style.'>'.$marketing.'</a>';
}
echo'
</div>
<div class="">';
foreach ($marketing_structure as $marketing => $folders){
foreach($folders as $folder){
echo '<a href="index.php?page=marketing&product_group='.$marketing.'&product_content='.$folder.'" class="btn"> <img src="./assets/images/folder3.png" width="15" height="15" alt=""> '.$folder.'</a>';
// Only show folders if a product group is selected
if (!empty($product_group) && isset($marketing_structure[$product_group])) {
foreach($marketing_structure[$product_group] as $folder){
echo '<a href="index.php?page=marketing&product_group='.$product_group.'&product_content='.$folder.'" class="btn"> <img src="./assets/images/folder3.png" width="15" height="15" alt=""> '.$folder.'</a>';
}
}
echo '