forked from ORGANISATION-KA-INTERNATIONALE/FEDIVERSE-OKI
feat: remplace kaubuntu by OKI
This commit is contained in:
+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);
|
||||
|
||||
Reference in New Issue
Block a user