|
|
@@ -1,20 +1,22 @@
|
|
|
+<?php
|
|
|
+$settingsContent = settings('content')->getAll();
|
|
|
+?>
|
|
|
<!DOCTYPE html>
|
|
|
-<html lang="<?= $isHomepage ? ($seo['lang'] ?? 'en') : ($seo['lang-page'] ?? 'en-US') ?>">
|
|
|
+<html lang="<?= $seo['extra_fields']['locale'] ?? 'en' ?>">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<base href="/">
|
|
|
- <title><?= $content['title'] ?></title>
|
|
|
+ <title><?= $seo['title'] ?></title>
|
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
|
<meta name='robots' content='index, follow' />
|
|
|
- <?php if (!empty($content['favicon'])): ?>
|
|
|
- <link rel="icon" href="<?= htmlspecialchars($content['favicon']) ?>" type="image/x-icon">
|
|
|
+ <?php if (!empty($settingsContent['favicon'])): ?>
|
|
|
+ <link rel="icon" href="<?= htmlspecialchars($settingsContent['favicon']) ?>" type="image/x-icon">
|
|
|
<?php endif; ?>
|
|
|
- <meta property="og:type" content="<?= $seo['og-type'] ?? '' ?>">
|
|
|
- <meta property="og:title" content="<?= $seo['og-title'] ?? '' ?>">
|
|
|
- <meta property="og:description" content="<?= $seo['og-description'] ?? '' ?>">
|
|
|
- <meta property="og:locale" content="<?= $seo['og-locale'] ?? '' ?>">
|
|
|
- <meta property="og:image" content="<?= htmlspecialchars($seo['og-image'] ?? '') ?>">
|
|
|
+ <meta property="og:title" content="<?= $seo['title'] ?? '' ?>">
|
|
|
+ <meta property="og:description" content="<?= $seo['description'] ?? '' ?>">
|
|
|
+ <meta property="og:locale" content="<?= $seo['extra_fields']['locale'] ?? '' ?>">
|
|
|
+ <meta property="og:image" content="<?= htmlspecialchars($seo['image'] ?? '') ?>">
|
|
|
<meta name="description" content="<?= $seo['description'] ?? '' ?>">
|
|
|
|
|
|
<link rel="canonical" href="<?= $seo['canonical'] ?? '' ?>">
|
|
|
@@ -25,22 +27,22 @@
|
|
|
"@graph" => [
|
|
|
[
|
|
|
"@type" => "WebPage",
|
|
|
- "name" => $content['title'],
|
|
|
- "description" => $content['description'],
|
|
|
- "inLanguage" => $content['lang'],
|
|
|
+ "name" => $settingsContent['title'],
|
|
|
+ "description" => $settingsContent['description'],
|
|
|
+ "inLanguage" => $settingsContent['lang'],
|
|
|
"url" => $currentUrl,
|
|
|
- "dateModified" => $content['modified-date'] ?? '' , // ISO формат
|
|
|
+ "dateModified" => $settingsContent['modified-date'] ?? '' , // ISO формат
|
|
|
"author" => [
|
|
|
"@type" => "Person",
|
|
|
- "name" => $content['author-name'] ?? '',
|
|
|
- "image" => $currentDomain . '/' . htmlspecialchars($content['author-img'] ?? '')
|
|
|
+ "name" => $settingsContent['author-name'] ?? '',
|
|
|
+ "image" => $currentDomain . '/' . htmlspecialchars($settingsContent['author-img'] ?? '')
|
|
|
]
|
|
|
],
|
|
|
[
|
|
|
"@type" => "Organization",
|
|
|
"name" => $domainName,
|
|
|
"url" => $currentDomain,
|
|
|
- "logo" => $currentDomain . '/' . htmlspecialchars($content['uploaded_image'] ?? '')
|
|
|
+ "logo" => $currentDomain . '/' . htmlspecialchars($settingsContent['uploaded_image'] ?? '')
|
|
|
],
|
|
|
[
|
|
|
"@type" => "BreadcrumbList",
|
|
|
@@ -48,27 +50,28 @@
|
|
|
[
|
|
|
"@type" => "ListItem",
|
|
|
"position" => 1,
|
|
|
- "name" => $content['title-h1'],
|
|
|
+ "name" => $settingsContent['title-h1'],
|
|
|
"item" => $currentUrl
|
|
|
]
|
|
|
]
|
|
|
],
|
|
|
!empty($casinoItems) ? [
|
|
|
"@type" => "ItemList",
|
|
|
- "name" => htmlspecialchars($content['listing']),
|
|
|
+ "name" => htmlspecialchars($settingsContent['listing']),
|
|
|
"itemListElement" => array_map(function ($item, $index) use ($currentDomain, $currentReviewCount) {
|
|
|
+ $data = json_decode($item['value'], true);
|
|
|
return [
|
|
|
"@type" => "ListItem",
|
|
|
"position" => $index + 1,
|
|
|
"item" => [
|
|
|
"@type" => "Offer",
|
|
|
- "name" => htmlspecialchars($item['heading']),
|
|
|
- "description" => htmlspecialchars($item['text']),
|
|
|
- "url" => $currentDomain . '/#' . getSlug($item['heading']),
|
|
|
+ "name" => htmlspecialchars($data['heading']),
|
|
|
+ "description" => htmlspecialchars($data['text']),
|
|
|
+ "url" => $currentDomain . '/#' . getSlug($data['heading']),
|
|
|
"offeredBy" => [
|
|
|
"@type" => "Organization",
|
|
|
- "name" => htmlspecialchars($item['heading']),
|
|
|
- "logo" => $currentDomain . '/' . htmlspecialchars($item['image']),
|
|
|
+ "name" => htmlspecialchars($data['heading']),
|
|
|
+ "logo" => $currentDomain . '/' . htmlspecialchars($data['image']),
|
|
|
"aggregateRating" => [
|
|
|
"@type" => "AggregateRating",
|
|
|
"ratingValue" => "5",
|