feat: remplace kaubuntu by OKI
This commit is contained in:
+10
-8
@@ -42,7 +42,7 @@ if ($categoryId && isset($allCategories[$categoryId])) {
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="csrf-token" content="<?php echo generateCSRFToken(); ?>">
|
||||
<title><?php echo htmlspecialchars($categoryName); ?> - kaubuntu.re</title>
|
||||
<title><?php echo htmlspecialchars($categoryName); ?> - <?php echo SITE_NAME; ?></title>
|
||||
<link rel="stylesheet" href="css/styles.css?v=<?php echo filemtime('css/styles.css'); ?>">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css">
|
||||
|
||||
@@ -55,24 +55,24 @@ if ($categoryId && isset($allCategories[$categoryId])) {
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- Open Graph Meta Tags -->
|
||||
<meta property="og:title" content="Catégorie : <?php echo htmlspecialchars($categoryName); ?> - kaubuntu.re">
|
||||
<meta property="og:description" content="Découvrez toutes les vidéos de la catégorie <?php echo htmlspecialchars($categoryName); ?> sur kaubuntu.re. Contenu multimédia de qualité et exclusif.">
|
||||
<meta property="og:title" content="Catégorie : <?php echo htmlspecialchars($categoryName); ?> - <?php echo SITE_NAME; ?>">
|
||||
<meta property="og:description" content="Découvrez toutes les vidéos de la catégorie <?php echo htmlspecialchars($categoryName); ?> sur <?php echo SITE_NAME; ?>. Contenu multimédia de qualité et exclusif.">
|
||||
<meta property="og:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>">
|
||||
<meta property="og:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="kaubuntu.re">
|
||||
<meta property="og:site_name" content="<?php echo SITE_NAME; ?>">
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
|
||||
<!-- Twitter Card Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Catégorie : <?php echo htmlspecialchars($categoryName); ?> - kaubuntu.re">
|
||||
<meta name="twitter:description" content="Découvrez toutes les vidéos de la catégorie <?php echo htmlspecialchars($categoryName); ?> sur kaubuntu.re. Contenu multimédia de qualité et exclusif.">
|
||||
<meta name="twitter:title" content="Catégorie : <?php echo htmlspecialchars($categoryName); ?> - <?php echo SITE_NAME; ?>">
|
||||
<meta name="twitter:description" content="Découvrez toutes les vidéos de la catégorie <?php echo htmlspecialchars($categoryName); ?> sur <?php echo SITE_NAME; ?>. Contenu multimédia de qualité et exclusif.">
|
||||
<meta name="twitter:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>">
|
||||
|
||||
<!-- Données structurées JSON-LD pour la page de catégorie -->
|
||||
<?php
|
||||
$categoryUrl = getBaseUrl() . '/categories.php?id=' . $categoryId;
|
||||
$categoryDescription = 'Découvrez toutes les vidéos de la catégorie ' . $categoryName . ' sur kaubuntu.re';
|
||||
$categoryDescription = 'Découvrez toutes les vidéos de la catégorie ' . $categoryName . ' sur ' . SITE_NAME;
|
||||
$collectionJsonLd = generateVideoCollectionJsonLd($categoryName, $categoryDescription, $videos, $categoryUrl);
|
||||
outputJsonLd($collectionJsonLd);
|
||||
|
||||
@@ -110,7 +110,7 @@ if ($categoryId && isset($allCategories[$categoryId])) {
|
||||
<div class="video-section category-page" data-category-id="<?php echo $categoryId; ?>">
|
||||
<div class="section-header">
|
||||
<div class="section-logo">
|
||||
<img src="img/logo.png" alt="kaubuntu.re">
|
||||
<img src="img/logo.png" alt="<?php echo SITE_NAME; ?>">
|
||||
</div>
|
||||
<h2 class="section-title">Catégorie : <?php echo htmlspecialchars($categoryName); ?></h2>
|
||||
</div>
|
||||
@@ -146,7 +146,9 @@ if ($categoryId && isset($allCategories[$categoryId])) {
|
||||
<span class="channel-name"><?php echo htmlspecialchars($video['channel']); ?></span>
|
||||
</div>
|
||||
<div class="video-metadata">
|
||||
<?php if (defined('SHOW_VIDEO_VIEWS') && SHOW_VIDEO_VIEWS): ?>
|
||||
<span class="video-views"><i class="fas fa-eye"></i> <?php echo formatViewCount($video['views']); ?> vues</span>
|
||||
<?php endif; ?>
|
||||
<span class="video-date"><i class="far fa-calendar-alt"></i> <?php echo formatDate($video['date']); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+10
-10
@@ -12,7 +12,7 @@ setSecurityHeaders();
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="csrf-token" content="<?php echo generateCSRFToken(); ?>">
|
||||
<title>kaubuntu.re - Ouverture prochaine</title>
|
||||
<title><?php echo SITE_NAME; ?> - Ouverture prochaine</title>
|
||||
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="css/countdown.css?v=<?php echo filemtime('css/countdown.css'); ?>">
|
||||
@@ -30,12 +30,12 @@ setSecurityHeaders();
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<meta name="apple-mobile-web-app-title" content="kaubuntu.re">
|
||||
<meta name="application-name" content="kaubuntu.re">
|
||||
<meta name="apple-mobile-web-app-title" content="<?php echo SITE_NAME; ?>">
|
||||
<meta name="application-name" content="<?php echo SITE_NAME; ?>">
|
||||
|
||||
<!-- Open Graph Meta Tags -->
|
||||
<meta property="og:title" content="kaubuntu.re - Ouverture prochaine">
|
||||
<meta property="og:description" content="La plateforme multimédia kaubuntu.re ouvrira ses portes le <?php
|
||||
<meta property="og:title" content="<?php echo SITE_NAME; ?> - Ouverture prochaine">
|
||||
<meta property="og:description" content="La plateforme multimédia <?php echo SITE_NAME; ?> ouvrira ses portes le <?php
|
||||
$targetDate = new DateTime(COUNTDOWN_TARGET_DATE);
|
||||
setlocale(LC_TIME, 'fr_FR.UTF-8');
|
||||
echo strftime('%e %B %Y', $targetDate->getTimestamp());
|
||||
@@ -43,13 +43,13 @@ setSecurityHeaders();
|
||||
<meta property="og:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>">
|
||||
<meta property="og:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="kaubuntu.re">
|
||||
<meta property="og:site_name" content="<?php echo SITE_NAME; ?>">
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
|
||||
<!-- Twitter Card Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="kaubuntu.re - Ouverture prochaine">
|
||||
<meta name="twitter:description" content="La plateforme multimédia kaubuntu.re ouvrira ses portes le <?php
|
||||
<meta name="twitter:title" content="<?php echo SITE_NAME; ?> - Ouverture prochaine">
|
||||
<meta name="twitter:description" content="La plateforme multimédia <?php echo SITE_NAME; ?> ouvrira ses portes le <?php
|
||||
$targetDate = new DateTime(COUNTDOWN_TARGET_DATE);
|
||||
setlocale(LC_TIME, 'fr_FR.UTF-8');
|
||||
echo strftime('%e %B %Y', $targetDate->getTimestamp());
|
||||
@@ -65,10 +65,10 @@ setSecurityHeaders();
|
||||
<div class="countdown-overlay">
|
||||
<div class="countdown-container">
|
||||
<!-- Logo -->
|
||||
<img src="img/logo.png" alt="Logo kaubuntu.re" class="countdown-logo">
|
||||
<img src="img/logo.png" alt="Logo <?php echo SITE_NAME; ?>" class="countdown-logo">
|
||||
|
||||
<!-- Titre principal -->
|
||||
<h1 class="countdown-title">kaubuntu.re</h1>
|
||||
<h1 class="countdown-title"><?php echo SITE_NAME; ?></h1>
|
||||
|
||||
<!-- Sous-titre -->
|
||||
<p class="countdown-subtitle">Plateforme Multimédia - Ouverture prochaine</p>
|
||||
|
||||
+11
-11
@@ -22,7 +22,7 @@ $liveStream = getLiveStream();
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Direct - kaubuntu.re</title>
|
||||
<title>Direct - <?php echo SITE_NAME; ?></title>
|
||||
<link rel="stylesheet" href="css/styles.css?v=<?php echo filemtime('css/styles.css'); ?>">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css">
|
||||
|
||||
@@ -35,18 +35,18 @@ $liveStream = getLiveStream();
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- Open Graph Meta Tags -->
|
||||
<meta property="og:title" content="Direct - kaubuntu.re">
|
||||
<meta property="og:description" content="Suivez nos diffusions en direct sur kaubuntu.re. Contenu en temps réel, discussions et événements exclusifs.">
|
||||
<meta property="og:title" content="Direct - <?php echo SITE_NAME; ?>">
|
||||
<meta property="og:description" content="Suivez nos diffusions en direct sur <?php echo SITE_NAME; ?>. Contenu en temps réel, discussions et événements exclusifs.">
|
||||
<meta property="og:image" content="<?php echo getBaseUrl(); ?>/img/logo.png">
|
||||
<meta property="og:url" content="<?php echo getBaseUrl(); ?>/direct.php">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="kaubuntu.re">
|
||||
<meta property="og:site_name" content="<?php echo SITE_NAME; ?>">
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
|
||||
<!-- Twitter Card Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Direct - kaubuntu.re">
|
||||
<meta name="twitter:description" content="Suivez nos diffusions en direct sur kaubuntu.re. Contenu en temps réel, discussions et événements exclusifs.">
|
||||
<meta name="twitter:title" content="Direct - <?php echo SITE_NAME; ?>">
|
||||
<meta name="twitter:description" content="Suivez nos diffusions en direct sur <?php echo SITE_NAME; ?>. Contenu en temps réel, discussions et événements exclusifs.">
|
||||
<meta name="twitter:image" content="<?php echo getBaseUrl(); ?>/img/logo.png">
|
||||
|
||||
<!-- Données structurées JSON-LD pour la page direct -->
|
||||
@@ -54,17 +54,17 @@ $liveStream = getLiveStream();
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebPage",
|
||||
"name": "Direct - kaubuntu.re",
|
||||
"description": "Suivez nos diffusions en direct sur kaubuntu.re. Contenu en temps réel du mouvement Ka-Ubuntu.",
|
||||
"name": "Direct - <?php echo SITE_NAME; ?>",
|
||||
"description": "Suivez nos diffusions en direct sur <?php echo SITE_NAME; ?>. Contenu en temps réel.",
|
||||
"url": "<?php echo getBaseUrl(); ?>/direct.php",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"name": "kaubuntu.re",
|
||||
"name": "<?php echo SITE_NAME; ?>",
|
||||
"url": "<?php echo getBaseUrl(); ?>"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "Ka-Ubuntu",
|
||||
"name": "<?php echo ORGANIZATION_NAME; ?>",
|
||||
"url": "<?php echo getBaseUrl(); ?>",
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
@@ -107,7 +107,7 @@ $liveStream = getLiveStream();
|
||||
<div class="live-page">
|
||||
<div class="section-header">
|
||||
<div class="section-logo">
|
||||
<img src="img/logo.png" alt="kaubuntu.re">
|
||||
<img src="img/logo.png" alt="<?php echo SITE_NAME; ?>">
|
||||
</div>
|
||||
<h2 class="section-title">Diffusion en direct</h2>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ function callPeerTubeApiOriginal($endpoint, $params = []) {
|
||||
curl_setopt($ch, CURLOPT_MAXREDIRS, 0);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, 'KaubuntuRe/1.0');
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, 'fediverse-oki/1.0');
|
||||
|
||||
// Ajouter la clé API si définie
|
||||
if (defined('API_KEY') && !empty(API_KEY)) {
|
||||
|
||||
@@ -5,8 +5,8 @@ function addPWAHeaders() {
|
||||
echo '<meta name="mobile-web-app-capable" content="yes">' . "\n";
|
||||
echo '<meta name="apple-mobile-web-app-capable" content="yes">' . "\n";
|
||||
echo '<meta name="apple-mobile-web-app-status-bar-style" content="default">' . "\n";
|
||||
echo '<meta name="apple-mobile-web-app-title" content="kaubuntu.re">' . "\n";
|
||||
echo '<meta name="application-name" content="kaubuntu.re">' . "\n";
|
||||
echo '<meta name="apple-mobile-web-app-title" content="' . SITE_NAME . '">' . "\n";
|
||||
echo '<meta name="application-name" content="' . SITE_NAME . '">' . "\n";
|
||||
echo '<meta name="msapplication-TileColor" content="#FF0000">' . "\n";
|
||||
echo '<meta name="msapplication-config" content="browserconfig.xml">' . "\n";
|
||||
echo '<meta name="theme-color" content="#FF0000">' . "\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!-- Sidebar de navigation -->
|
||||
<nav class="sidebar" role="navigation" aria-label="Navigation principale">
|
||||
<a href="/" class="logo" aria-label="Retour à l'accueil">
|
||||
<img src="img/logo.png" alt="Logo kaubuntu.re">
|
||||
<img src="img/logo.png" alt="Logo <?php echo SITE_NAME; ?>">
|
||||
</a>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -16,8 +16,8 @@ function generateWebSiteJsonLd() {
|
||||
$data = [
|
||||
"@context" => "https://schema.org",
|
||||
"@type" => "WebSite",
|
||||
"name" => "kaubuntu.re",
|
||||
"description" => "Plateforme multimédia indépendante du parti panifricaniste et indépendantiste réunionnais Ka-Ubuntu",
|
||||
"name" => SITE_NAME,
|
||||
"description" => SITE_DESCRIPTION,
|
||||
"url" => $baseUrl,
|
||||
"potentialAction" => [
|
||||
"@type" => "SearchAction",
|
||||
@@ -29,7 +29,7 @@ function generateWebSiteJsonLd() {
|
||||
],
|
||||
"publisher" => [
|
||||
"@type" => "Organization",
|
||||
"name" => "Ka-Ubuntu",
|
||||
"name" => "OKI",
|
||||
"url" => $baseUrl,
|
||||
"logo" => [
|
||||
"@type" => "ImageObject",
|
||||
@@ -67,14 +67,14 @@ function generateVideoObjectJsonLd($videoData, $video) {
|
||||
"name" => $video['title'],
|
||||
"description" => !empty($video['description'])
|
||||
? truncateText(strip_tags($video['description']), 300)
|
||||
: "Regardez cette vidéo sur kaubuntu.re",
|
||||
: "Regardez cette vidéo sur " . SITE_NAME,
|
||||
"url" => $videoUrl,
|
||||
"thumbnailUrl" => $thumbnailUrl,
|
||||
"uploadDate" => formatDateISO8601($video['date']),
|
||||
"duration" => $duration,
|
||||
"publisher" => [
|
||||
"@type" => "Organization",
|
||||
"name" => "kaubuntu.re",
|
||||
"name" => SITE_NAME,
|
||||
"url" => $baseUrl,
|
||||
"logo" => [
|
||||
"@type" => "ImageObject",
|
||||
@@ -224,7 +224,7 @@ function generateVideoCollectionJsonLd($name, $description, $videos, $url) {
|
||||
],
|
||||
"publisher" => [
|
||||
"@type" => "Organization",
|
||||
"name" => "kaubuntu.re",
|
||||
"name" => SITE_NAME,
|
||||
"url" => $baseUrl
|
||||
]
|
||||
];
|
||||
|
||||
@@ -40,7 +40,7 @@ function callWordPressApi($endpoint, $params = []) {
|
||||
curl_setopt($ch, CURLOPT_MAXREDIRS, 0);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, 'KaubuntuRe-WordPress-Integration/1.0');
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, 'fediverse-oki-WordPress-Integration/1.0');
|
||||
|
||||
// Exécuter la requête
|
||||
$response = curl_exec($ch);
|
||||
|
||||
+11
-9
@@ -52,7 +52,7 @@ if ($resultsCount > 0) {
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php echo !empty($query) ? 'Recherche: ' . htmlspecialchars($query) . ' - ' : 'Recherche - '; ?>kaubuntu.re</title>
|
||||
<title><?php echo !empty($query) ? 'Recherche: ' . htmlspecialchars($query) . ' - ' : 'Recherche - '; ?><?php echo SITE_NAME; ?></title>
|
||||
<link rel="stylesheet" href="css/styles.css?v=<?php echo filemtime('css/styles.css'); ?>">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css">
|
||||
|
||||
@@ -65,18 +65,18 @@ if ($resultsCount > 0) {
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- Open Graph Meta Tags -->
|
||||
<meta property="og:title" content="<?php echo !empty($query) ? 'Recherche: ' . htmlspecialchars($query) . ' - ' : 'Recherche - '; ?>kaubuntu.re">
|
||||
<meta property="og:description" content="<?php echo !empty($query) ? 'Résultats de recherche pour \"' . htmlspecialchars($query) . '\" sur kaubuntu.re. Découvrez des vidéos correspondantes à votre recherche.' : 'Recherchez des vidéos sur kaubuntu.re. Plateforme multimédia avec un contenu de qualité et exclusif.'; ?>">
|
||||
<meta property="og:title" content="<?php echo !empty($query) ? 'Recherche: ' . htmlspecialchars($query) . ' - ' : 'Recherche - '; ?><?php echo SITE_NAME; ?>">
|
||||
<meta property="og:description" content="<?php echo !empty($query) ? 'Résultats de recherche pour \"' . htmlspecialchars($query) . '\" sur ' . SITE_NAME . '. Découvrez des vidéos correspondantes à votre recherche.' : 'Recherchez des vidéos sur ' . SITE_NAME . '. Plateforme multimédia avec un contenu de qualité et exclusif.'; ?>">
|
||||
<meta property="og:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>">
|
||||
<meta property="og:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="kaubuntu.re">
|
||||
<meta property="og:site_name" content="<?php echo SITE_NAME; ?>">
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
|
||||
<!-- Twitter Card Meta Tags -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="<?php echo !empty($query) ? 'Recherche: ' . htmlspecialchars($query) . ' - ' : 'Recherche - '; ?>kaubuntu.re">
|
||||
<meta name="twitter:description" content="<?php echo !empty($query) ? 'Résultats de recherche pour \"' . htmlspecialchars($query) . '\" sur kaubuntu.re. Découvrez des vidéos correspondantes à votre recherche.' : 'Recherchez des vidéos sur kaubuntu.re. Plateforme multimédia avec un contenu de qualité et exclusif.'; ?>">
|
||||
<meta name="twitter:title" content="<?php echo !empty($query) ? 'Recherche: ' . htmlspecialchars($query) . ' - ' : 'Recherche - '; ?><?php echo SITE_NAME; ?>">
|
||||
<meta name="twitter:description" content="<?php echo !empty($query) ? 'Résultats de recherche pour \"' . htmlspecialchars($query) . '\" sur ' . SITE_NAME . '. Découvrez des vidéos correspondantes à votre recherche.' : 'Recherchez des vidéos sur ' . SITE_NAME . '. Plateforme multimédia avec un contenu de qualité et exclusif.'; ?>">
|
||||
<meta name="twitter:image" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/img/logo.png'; ?>">
|
||||
|
||||
<?php if (!empty($query) && !empty($currentPageVideos)): ?>
|
||||
@@ -84,8 +84,8 @@ if ($resultsCount > 0) {
|
||||
<?php
|
||||
$searchUrl = getBaseUrl() . '/recherche.php?q=' . urlencode($query);
|
||||
$searchDescription = $isTagSearch
|
||||
? 'Vidéos avec le tag ' . htmlspecialchars($searchTag) . ' sur kaubuntu.re'
|
||||
: 'Résultats de recherche pour "' . htmlspecialchars($query) . '" sur kaubuntu.re';
|
||||
? 'Vidéos avec le tag ' . htmlspecialchars($searchTag) . ' sur ' . SITE_NAME
|
||||
: 'Résultats de recherche pour "' . htmlspecialchars($query) . '" sur ' . SITE_NAME;
|
||||
$searchTitle = $isTagSearch
|
||||
? 'Tag: ' . htmlspecialchars($searchTag)
|
||||
: 'Recherche: ' . htmlspecialchars($query);
|
||||
@@ -128,7 +128,7 @@ if ($resultsCount > 0) {
|
||||
<div class="video-section search-page" data-search-query="<?php echo htmlspecialchars($query); ?>">
|
||||
<div class="section-header">
|
||||
<div class="section-logo">
|
||||
<img src="img/logo.png" alt="kaubuntu.re">
|
||||
<img src="img/logo.png" alt="<?php echo SITE_NAME; ?>">
|
||||
</div>
|
||||
<?php if (!empty($query)): ?>
|
||||
<?php if ($isTagSearch): ?>
|
||||
@@ -174,7 +174,9 @@ if ($resultsCount > 0) {
|
||||
<span class="channel-name"><?php echo htmlspecialchars($video['channel']); ?></span>
|
||||
</div>
|
||||
<div class="video-metadata">
|
||||
<?php if (defined('SHOW_VIDEO_VIEWS') && SHOW_VIDEO_VIEWS): ?>
|
||||
<span class="video-views"><i class="fas fa-eye"></i> <?php echo formatViewCount($video['views']); ?> vues</span>
|
||||
<?php endif; ?>
|
||||
<span class="video-date"><i class="far fa-calendar-alt"></i> <?php echo formatDate($video['date']); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const CACHE_NAME = 'kaubuntu-14092025-1128';
|
||||
const STATIC_CACHE_NAME = 'kaubuntu-static-14092025-1128';
|
||||
const DYNAMIC_CACHE_NAME = 'kaubuntu-dynamic-14092025-1128';
|
||||
const CACHE_NAME = 'fediverse-oki-16102025-1128';
|
||||
const STATIC_CACHE_NAME = 'fediverse-oki-static-16102025-1128';
|
||||
const DYNAMIC_CACHE_NAME = 'fediverse-oki-dynamic-16102025-1128';
|
||||
|
||||
// Ressources à mettre en cache immédiatement
|
||||
const STATIC_ASSETS = [
|
||||
|
||||
@@ -119,7 +119,7 @@ if (empty($videoData) || isset($videoData['error'])) {
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php echo !empty($video['title']) ? htmlspecialchars($video['title']) . ' - ' : ''; ?>kaubuntu.re</title>
|
||||
<title><?php echo !empty($video['title']) ? htmlspecialchars($video['title']) . ' - ' : ''; ?><?php echo SITE_NAME; ?></title>
|
||||
<link rel="stylesheet" href="css/styles.css?v=<?php echo filemtime('css/styles.css'); ?>">
|
||||
<link rel="stylesheet" href="css/video-page.css?v=<?php echo filemtime('css/video-page.css'); ?>">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css">
|
||||
@@ -133,19 +133,19 @@ if (empty($videoData) || isset($videoData['error'])) {
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- Meta tags pour le partage sur les réseaux sociaux -->
|
||||
<meta property="og:title" content="<?php echo !empty($video['title']) ? htmlspecialchars($video['title']) : 'Vidéo'; ?> - kaubuntu.re">
|
||||
<meta property="og:description" content="<?php echo !empty($video['description']) ? htmlspecialchars(substr(strip_tags($video['description']), 0, 200)) . '...' : 'Regardez cette vidéo sur kaubuntu.re'; ?>">
|
||||
<meta property="og:title" content="<?php echo !empty($video['title']) ? htmlspecialchars($video['title']) : 'Vidéo'; ?> - <?php echo SITE_NAME; ?>">
|
||||
<meta property="og:description" content="<?php echo !empty($video['description']) ? htmlspecialchars(substr(strip_tags($video['description']), 0, 200)) . '...' : 'Regardez cette vidéo sur ' . SITE_NAME; ?>">
|
||||
<?php if (isset($videoData['thumbnailPath'])): ?>
|
||||
<meta property="og:image" content="<?php echo PEERTUBE_URL . $videoData['thumbnailPath']; ?>">
|
||||
<?php endif; ?>
|
||||
<meta property="og:url" content="<?php echo (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>">
|
||||
<meta property="og:type" content="video.other">
|
||||
<meta property="og:site_name" content="kaubuntu.re">
|
||||
<meta property="og:site_name" content="<?php echo SITE_NAME; ?>">
|
||||
|
||||
<!-- Meta tags pour Twitter -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="<?php echo !empty($video['title']) ? htmlspecialchars($video['title']) : 'Vidéo'; ?> - kaubuntu.re">
|
||||
<meta name="twitter:description" content="<?php echo !empty($video['description']) ? htmlspecialchars(substr(strip_tags($video['description']), 0, 200)) . '...' : 'Regardez cette vidéo sur kaubuntu.re'; ?>">
|
||||
<meta name="twitter:title" content="<?php echo !empty($video['title']) ? htmlspecialchars($video['title']) : 'Vidéo'; ?> - <?php echo SITE_NAME; ?>">
|
||||
<meta name="twitter:description" content="<?php echo !empty($video['description']) ? htmlspecialchars(substr(strip_tags($video['description']), 0, 200)) . '...' : 'Regardez cette vidéo sur ' . SITE_NAME; ?>">
|
||||
<?php if (isset($videoData['thumbnailPath'])): ?>
|
||||
<meta name="twitter:image" content="<?php echo PEERTUBE_URL . $videoData['thumbnailPath']; ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user