Backup database and code changes - 2025-06-09 05:33:32
This commit is contained in:
115
includes/article-footer.php
Normal file
115
includes/article-footer.php
Normal file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
// Get related articles from the same category
|
||||
$current_category = isset($article_category) ? $article_category : 'Industry Insights';
|
||||
$current_slug = isset($article_slug) ? $article_slug : '';
|
||||
|
||||
// Define related articles for different categories
|
||||
$related_articles = [
|
||||
'Industry Insights' => [
|
||||
[
|
||||
'title' => 'UK Property Market Data Trends 2024',
|
||||
'slug' => 'uk-property-market-data-trends',
|
||||
'category' => 'Industry Insights',
|
||||
'read_time' => '8 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'E-commerce Trends UK 2025',
|
||||
'slug' => 'ecommerce-trends-uk-2025',
|
||||
'category' => 'Industry Insights',
|
||||
'read_time' => '6 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'Manufacturing Supply Chain Optimization',
|
||||
'slug' => 'manufacturing-supply-chain-optimization',
|
||||
'category' => 'Industry Insights',
|
||||
'read_time' => '10 min read'
|
||||
]
|
||||
],
|
||||
'Technology' => [
|
||||
[
|
||||
'title' => 'Python Data Pipeline Tools 2025',
|
||||
'slug' => 'python-data-pipeline-tools-2025',
|
||||
'category' => 'Technology',
|
||||
'read_time' => '12 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'Selenium vs Playwright Comparison',
|
||||
'slug' => 'selenium-vs-playwright-comparison',
|
||||
'category' => 'Technology',
|
||||
'read_time' => '8 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'Python Scrapy Enterprise Guide',
|
||||
'slug' => 'python-scrapy-enterprise-guide',
|
||||
'category' => 'Technology',
|
||||
'read_time' => '15 min read'
|
||||
]
|
||||
],
|
||||
'Web Scraping' => [
|
||||
[
|
||||
'title' => 'Web Scraping Compliance UK Guide',
|
||||
'slug' => 'web-scraping-compliance-uk-guide',
|
||||
'category' => 'Web Scraping',
|
||||
'read_time' => '10 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'Handling CAPTCHAs in Web Scraping',
|
||||
'slug' => 'handling-captchas-scraping',
|
||||
'category' => 'Web Scraping',
|
||||
'read_time' => '7 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'JavaScript Heavy Sites Scraping',
|
||||
'slug' => 'javascript-heavy-sites-scraping',
|
||||
'category' => 'Web Scraping',
|
||||
'read_time' => '9 min read'
|
||||
]
|
||||
],
|
||||
'Data Analytics' => [
|
||||
[
|
||||
'title' => 'Real-time Analytics with Streaming Data',
|
||||
'slug' => 'real-time-analytics-streaming-data',
|
||||
'category' => 'Data Analytics',
|
||||
'read_time' => '11 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'SQL Analytics Advanced Techniques',
|
||||
'slug' => 'sql-analytics-advanced-techniques',
|
||||
'category' => 'Data Analytics',
|
||||
'read_time' => '13 min read'
|
||||
],
|
||||
[
|
||||
'title' => 'Predictive Analytics for Customer Churn',
|
||||
'slug' => 'predictive-analytics-customer-churn',
|
||||
'category' => 'Data Analytics',
|
||||
'read_time' => '9 min read'
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
// Get articles for current category, exclude current article
|
||||
$category_articles = isset($related_articles[$current_category]) ? $related_articles[$current_category] : $related_articles['Industry Insights'];
|
||||
$filtered_articles = array_filter($category_articles, function($article) use ($current_slug) {
|
||||
return $article['slug'] !== $current_slug;
|
||||
});
|
||||
|
||||
// Limit to 3 articles
|
||||
$display_articles = array_slice($filtered_articles, 0, 3);
|
||||
?>
|
||||
|
||||
<section class="related-articles">
|
||||
<h2>Related Articles</h2>
|
||||
<div class="related-grid">
|
||||
<?php foreach ($display_articles as $article): ?>
|
||||
<article class="related-card">
|
||||
<span class="category"><?php echo htmlspecialchars($article['category']); ?></span>
|
||||
<h4><a href="/blog/articles/<?php echo htmlspecialchars($article['slug']); ?>.php"><?php echo htmlspecialchars($article['title']); ?></a></h4>
|
||||
<span class="read-time"><?php echo htmlspecialchars($article['read_time']); ?></span>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="category-links">
|
||||
<a href="/blog/categories/<?php echo strtolower(str_replace(' ', '-', $current_category)); ?>.php" class="btn">More <?php echo htmlspecialchars($current_category); ?> Articles</a>
|
||||
<a href="/blog/" class="btn btn-secondary">All Blog Articles</a>
|
||||
</div>
|
||||
</section>
|
||||
54
includes/footer.php
Normal file
54
includes/footer.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="footer-content">
|
||||
<div class="footer-section">
|
||||
<div class="footer-logo">
|
||||
<img src="/assets/images/logo-white.svg" alt="UK Data Services" loading="lazy">
|
||||
</div>
|
||||
<p>Enterprise data intelligence solutions for modern British business. Transform your operations with accurate, actionable insights and regulatory-compliant data services.</p>
|
||||
</div>
|
||||
|
||||
<div class="footer-section">
|
||||
<h3>Enterprise Services</h3>
|
||||
<ul>
|
||||
<li><a href="/#services">Web Intelligence & Monitoring</a></li>
|
||||
<li><a href="/#services">Technology Platform Solutions</a></li>
|
||||
<li><a href="/#services">Data Management Services</a></li>
|
||||
<li><a href="/#services">Process Automation & APIs</a></li>
|
||||
<li><a href="/#services">Custom Development</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="footer-section">
|
||||
<h3>Resources & Insights</h3>
|
||||
<ul>
|
||||
<li><a href="/blog/">Data Intelligence Blog</a></li>
|
||||
<li><a href="/case-studies/">Case Studies</a></li>
|
||||
<li><a href="/about">About UK Data Services</a></li>
|
||||
<li><a href="/project-types">Project Types</a></li>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/quote">Request Consultation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="footer-section">
|
||||
<h3>Legal</h3>
|
||||
<ul>
|
||||
<li><a href="/privacy-policy">Privacy Policy</a></li>
|
||||
<li><a href="/terms-of-service">Terms of Service</a></li>
|
||||
<li><a href="/cookie-policy">Cookie Policy</a></li>
|
||||
<li><a href="/gdpr-compliance">GDPR Compliance</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-bottom">
|
||||
<p>© <?php echo date('Y'); ?> UK Data Services. All rights reserved.</p>
|
||||
<div class="social-links">
|
||||
<a href="#" aria-label="LinkedIn"><img src="/assets/images/icon-linkedin.svg" alt="LinkedIn" loading="lazy"></a>
|
||||
<a href="#" aria-label="Twitter"><img src="/assets/images/icon-twitter.svg" alt="Twitter" loading="lazy"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
27
includes/header.php
Normal file
27
includes/header.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar" id="navbar">
|
||||
<div class="nav-container">
|
||||
<div class="nav-logo">
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/assets/images/ukds-main-logo.webp" type="image/webp">
|
||||
<img src="/assets/images/ukds-main-logo.png" alt="UK Data Services" class="logo">
|
||||
</picture>
|
||||
</a>
|
||||
</div>
|
||||
<div class="nav-menu" id="nav-menu">
|
||||
<a href="/" class="nav-link">Home</a>
|
||||
<a href="/#services" class="nav-link">Capabilities</a>
|
||||
<a href="/project-types" class="nav-link">Project Types</a>
|
||||
<a href="/about" class="nav-link">About</a>
|
||||
<a href="/blog/" class="nav-link">Blog</a>
|
||||
<a href="/#contact" class="nav-link">Contact</a>
|
||||
<a href="/quote" class="nav-link cta-button">Request Consultation</a>
|
||||
</div>
|
||||
<div class="nav-toggle" id="nav-toggle">
|
||||
<span class="bar"></span>
|
||||
<span class="bar"></span>
|
||||
<span class="bar"></span>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user