36 lines
1.9 KiB
PHP
36 lines
1.9 KiB
PHP
<?php
|
|
require_once __DIR__ . '/includes/app.php';
|
|
|
|
$forcePublic = true;
|
|
$pageTitle = tr('سياسة الخصوصية', 'Privacy Policy');
|
|
$metaDescription = tr('اطّلع على سياسة الخصوصية الخاصة بنا وكيفية التعامل مع البيانات في المتجر والنظام.', 'Read our privacy policy and how data is handled across the store and admin system.');
|
|
$privacyContent = trim((string) get_setting('privacy_policy_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('سياسة الخصوصية', 'Privacy Policy')) ?></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 ($privacyContent !== ''): ?>
|
|
<article class="legal-content lh-lg"><?= nl2br(h($privacyContent)) ?></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'; ?>
|