-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader-github.php
More file actions
83 lines (75 loc) · 3.42 KB
/
Copy pathheader-github.php
File metadata and controls
83 lines (75 loc) · 3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- GitHub Version - No SEO indexing -->
<meta name="robots" content="noindex, nofollow">
<meta name="description" content="<?php echo isset($pageDescription) ? htmlspecialchars($pageDescription) : 'GitHub репозиторий BI Data Tools. Основная версия: bi-data.ru/tools'; ?>">
<title><?php echo isset($pageTitle) ? htmlspecialchars($pageTitle) : 'BI Data Tools - GitHub Repository'; ?></title>
<!-- Canonical pointing to main site -->
<?php
$currentPath = $_SERVER['REQUEST_URI'] ?? '';
$toolName = basename(dirname($_SERVER['SCRIPT_NAME'] ?? ''));
if ($toolName === 'tools' || $toolName === '') {
$canonicalUrl = 'https://bi-data.ru/tools/';
} else {
$canonicalUrl = 'https://bi-data.ru/tools/' . $toolName . '/';
}
?>
<link rel="canonical" href="<?php echo htmlspecialchars($canonicalUrl); ?>">
<!-- Redirect notice -->
<script>
// Optional: Show notice about main site
if (window.location.hostname !== 'bi-data.ru') {
console.log('🌐 Для лучшего опыта используйте основной сайт: https://bi-data.ru/tools/');
}
</script>
<!-- Stylesheets -->
<link rel="stylesheet" type="text/css" href="styles_modified.css">
<link rel="stylesheet" type="text/css" href="tools.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" rel="stylesheet">
<!-- GitHub version notice -->
<style>
.github-notice {
background: #f0f0f0;
border-left: 4px solid #0066cc;
padding: 10px 15px;
margin: 10px 0;
border-radius: 4px;
}
.github-notice a {
color: #0066cc;
font-weight: bold;
text-decoration: none;
}
.github-notice a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<!-- GitHub Version Notice -->
<div class="github-notice">
📍 Это GitHub версия. Для полного функционала используйте:
<a href="https://bi-data.ru/tools/" target="_blank">bi-data.ru/tools →</a>
</div>
<header>
<div class="container header-container">
<a href="https://bi-data.ru" class="header-logo-link" target="_blank">
<img src="https://bi-data.ru/img/logo.webp" alt="BI Data" class="logo" style="height: 60px; width: auto;">
</a>
<div class="header-text-nav">
<div class="header-text">
<h1>Инструменты аналитика (GitHub)</h1>
<p>Исходный код. Рабочая версия: <a href="https://bi-data.ru/tools/" target="_blank">bi-data.ru/tools</a></p>
</div>
<nav class="header-nav">
<a href="https://bi-data.ru/tools/" target="_blank">🌐 Основной сайт</a>
<a href="https://bi-data.ru/#connector" target="_blank">Коннектор Битрикс24</a>
<a href="https://bi-data.ru/blog/" target="_blank" rel="noopener noreferrer">Блог</a>
</nav>
</div>
</div>
</header>