39728-vm/terms-conditions.php
2026-04-22 04:43:50 +00:00

36 lines
1.9 KiB
PHP

<?php
require_once __DIR__ . '/includes/app.php';
$forcePublic = true;
$pageTitle = tr('الشروط والأحكام', 'Terms & Conditions');
$metaDescription = tr('راجع الشروط والأحكام الخاصة باستخدام المتجر والخدمات المقدمة عبر النظام.', 'Review the terms and conditions for using the online store and related services.');
$termsContent = trim((string) get_setting('terms_conditions_content'));
require __DIR__ . '/includes/header.php';
?>
<section class="py-5">
<div class="row justify-content-center">
<div class="col-lg-10 col-xl-8">
<div class="card border-0 shadow-sm rounded-4 overflow-hidden">
<div class="card-body p-4 p-md-5">
<div class="mb-4">
<span class="badge text-bg-light border mb-3"><?= h(tr('صفحة قانونية', 'Legal page')) ?></span>
<h1 class="h2 fw-bold mb-3"><?= h(tr('الشروط والأحكام', 'Terms & Conditions')) ?></h1>
<p class="text-muted mb-0"><?= h(tr('آخر تحديث يتم بواسطة إدارة النظام عند حفظ النص من الإعدادات.', 'This page is updated by the admin team whenever the content is saved from Settings.')) ?></p>
</div>
<?php if ($termsContent !== ''): ?>
<article class="legal-content lh-lg"><?= nl2br(h($termsContent)) ?></article>
<?php else: ?>
<div class="alert alert-warning rounded-4 mb-0">
<strong><?= h(tr('لم تتم إضافة المحتوى بعد.', 'Content not added yet.')) ?></strong>
<div class="small mt-2"><?= h(tr('يمكنك إضافته من الإعدادات ← السياسات والشروط.', 'You can add it from Settings → Policies.')) ?></div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</section>
<?php require __DIR__ . '/includes/footer.php'; ?>