main.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. $settingsContent = settings('content')->getAll();
  3. ?>
  4. <!DOCTYPE html>
  5. <html lang="<?= $seo['extra_fields']['locale'] ?? 'en' ?>">
  6. <head>
  7. <meta charset="UTF-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <base href="/">
  10. <title><?= $seo['title'] ?></title>
  11. <link rel="stylesheet" href="css/styles.css">
  12. <meta name='robots' content='index, follow' />
  13. <?php if (!empty($settingsContent['favicon'])): ?>
  14. <link rel="icon" href="<?= htmlspecialchars($settingsContent['favicon']) ?>" type="image/x-icon">
  15. <?php endif; ?>
  16. <meta property="og:title" content="<?= $seo['title'] ?? '' ?>">
  17. <meta property="og:description" content="<?= $seo['description'] ?? '' ?>">
  18. <meta property="og:locale" content="<?= $seo['extra_fields']['locale'] ?? '' ?>">
  19. <meta property="og:image" content="<?= htmlspecialchars($seo['image'] ?? '') ?>">
  20. <meta name="description" content="<?= $seo['description'] ?? '' ?>">
  21. <link rel="canonical" href="<?= $seo['canonical'] ?? '' ?>">
  22. <script type="application/ld+json">
  23. <?php include __DIR__ . '/../partials/schema.php'; ?>
  24. </script>
  25. <?php include __DIR__ . '/partials/styles.php'; ?>
  26. </head>
  27. <body>
  28. <?php include __DIR__ . '/partials/header.php'; ?>
  29. <main class="main">
  30. <?= $pageContent ?>
  31. </main>
  32. <?php include __DIR__ . '/partials/footer.php'; ?>
  33. <script src="js/script.js"></script>
  34. <script src="https://cdnjs.cloudflare.com/ajax/libs/blazy/1.8.2/blazy.min.js"></script>
  35. </body>
  36. </html>