Add initial HTML template for MojeGS1 application with Cookiebot and Google Analytics integration

This commit is contained in:
2026-02-24 23:32:19 +01:00
parent 18d0019c28
commit 12f0c262c8
67 changed files with 50193 additions and 230 deletions

View File

@@ -74,6 +74,18 @@
$linkStatus = (string) ($link['link_status'] ?? '');
$isActive = $linkStatus === 'active';
$confidence = $link['confidence'] ?? null;
$hasMissingAlert = ($link['has_missing_alert'] ?? false) === true;
$missingAlertMessage = trim((string) ($link['missing_alert_message'] ?? ''));
if ($missingAlertMessage === '') {
$missingAlertMessage = (string) $t('products.links.alerts.missing_remote_link');
}
$missingAlertFirstDetectedAt = trim((string) ($link['missing_alert_first_detected_at'] ?? ''));
$missingAlertTooltip = $missingAlertMessage;
if ($missingAlertFirstDetectedAt !== '') {
$missingAlertTooltip .= ' ' . (string) $t('products.links.alerts.alert_since', [
'date' => $missingAlertFirstDetectedAt,
]);
}
$lastChangeAt = trim((string) ($link['updated_at'] ?? ''));
if ($lastChangeAt === '') {
$lastChangeAt = trim((string) ($link['linked_at'] ?? ''));
@@ -87,9 +99,14 @@
<td><?= $e((string) ($link['link_type'] ?? '')) ?></td>
<td><?= $e($confidence === null ? '-' : ((string) $confidence . '%')) ?></td>
<td>
<span class="status-pill<?= $isActive ? ' is-active' : '' ?>">
<?= $e($linkStatus) ?>
</span>
<div class="product-link-status-cell">
<span class="status-pill<?= $isActive ? ' is-active' : '' ?>">
<?= $e($linkStatus) ?>
</span>
<?php if ($hasMissingAlert): ?>
<span class="product-link-alert-indicator" title="<?= $e($missingAlertTooltip) ?>" aria-label="<?= $e($missingAlertTooltip) ?>">!</span>
<?php endif; ?>
</div>
</td>
<td><?= $e($lastChangeAt === '' ? '-' : $lastChangeAt) ?></td>
<td>