diff --git a/bl-plugins/opengraph/plugin.php b/bl-plugins/opengraph/plugin.php
index 4c3b877c..e8cfa57a 100644
--- a/bl-plugins/opengraph/plugin.php
+++ b/bl-plugins/opengraph/plugin.php
@@ -7,8 +7,7 @@ class pluginOpenGraph extends Plugin
{
// Fields and default values for the database of this plugin
$this->dbFields = array(
- 'defaultImage' => '',
- 'fbAppId' => ''
+ 'defaultImage' => ''
);
}
@@ -22,12 +21,6 @@ class pluginOpenGraph extends Plugin
$html .= '' . $L->g('set-a-default-image-for-content') . '';
$html .= '';
- $html .= '
';
- $html .= '';
- $html .= '';
- $html .= '' . $L->g('set-your-facebook-app-id') . '';
- $html .= '
';
-
return $html;
}
@@ -46,7 +39,8 @@ class pluginOpenGraph extends Plugin
'description' => $site->description(),
'url' => $site->url(),
'image' => '',
- 'siteName' => $site->title()
+ 'siteName' => $site->title(),
+ 'card' => 'summary',
);
switch ($WHERE_AM_I) {
@@ -81,6 +75,12 @@ class pluginOpenGraph extends Plugin
$html .= '' . PHP_EOL;
$html .= '' . PHP_EOL;
+ $html .= PHP_EOL . '' . PHP_EOL;
+ $html .= '' . PHP_EOL;
+ $html .= '' . PHP_EOL;
+ $html .= '' . PHP_EOL;
+ $html .= '' . PHP_EOL;
+
// If the page doesn't have a coverImage try to get an image from the HTML content
if (empty($og['image'])) {
// Get the image from the content
@@ -95,9 +95,7 @@ class pluginOpenGraph extends Plugin
}
$html .= '' . PHP_EOL;
- if (Text::isNotEmpty($this->getValue('fbAppId'))) {
- $html .= '' . PHP_EOL;
- }
+ $html .= '' . PHP_EOL;
return $html;
}
}
diff --git a/bl-plugins/twitter-cards/languages/da.json b/bl-plugins/twitter-cards/languages/da.json
deleted file mode 100644
index 4e6c6851..00000000
--- a/bl-plugins/twitter-cards/languages/da.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "default-image": "Standardbillede",
- "plugin-data": {
- "description": "Med Twitter kort kan du vedhæfte vigtige billeder, videoer og medieoplevelser til tweets, hvilket hjælper med at få trafik på din hjemmeside.",
- "name": "Twitter Cards"
- }
-}
diff --git a/bl-plugins/twitter-cards/languages/de_CH.json b/bl-plugins/twitter-cards/languages/de_CH.json
deleted file mode 100644
index 2d38f03a..00000000
--- a/bl-plugins/twitter-cards/languages/de_CH.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "Twitter Cards hängt Medien wie Bilder oder Videos an einen Tweet, wenn ein Link der Website auf Twitter geteilt wird."
- }
-}
diff --git a/bl-plugins/twitter-cards/languages/de_DE.json b/bl-plugins/twitter-cards/languages/de_DE.json
deleted file mode 100644
index 2d38f03a..00000000
--- a/bl-plugins/twitter-cards/languages/de_DE.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "Twitter Cards hängt Medien wie Bilder oder Videos an einen Tweet, wenn ein Link der Website auf Twitter geteilt wird."
- }
-}
diff --git a/bl-plugins/twitter-cards/languages/en.json b/bl-plugins/twitter-cards/languages/en.json
deleted file mode 100644
index 5f98378d..00000000
--- a/bl-plugins/twitter-cards/languages/en.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "With Twitter Cards, you can attach rich photos, videos and media experiences to Tweets, helping to drive traffic to your website."
- },
- "default-image": "Default image"
-}
\ No newline at end of file
diff --git a/bl-plugins/twitter-cards/languages/es.json b/bl-plugins/twitter-cards/languages/es.json
deleted file mode 100644
index f9f24da8..00000000
--- a/bl-plugins/twitter-cards/languages/es.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "Con las tarjetas de Twitter puedes adjuntar fotos, videos y experiencias multimedia a tweets."
- },
- "default-image": "Imagen predeterminada"
-}
\ No newline at end of file
diff --git a/bl-plugins/twitter-cards/languages/fa_IR.json b/bl-plugins/twitter-cards/languages/fa_IR.json
deleted file mode 100644
index e0391f72..00000000
--- a/bl-plugins/twitter-cards/languages/fa_IR.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "بوسیله Twitter Cards ، شما میتوانید تصاویر، ویدئو و تجربیات رسانه ای را به توئیت پیوست کرده، و با اینکار کمکی میشود تا ترافیک بیشتری به سمت وبسایت شما روانه شود."
- },
- "default-image": "تصویر پیشفرض"
-}
diff --git a/bl-plugins/twitter-cards/languages/fr_FR.json b/bl-plugins/twitter-cards/languages/fr_FR.json
deleted file mode 100644
index 2bfaedd6..00000000
--- a/bl-plugins/twitter-cards/languages/fr_FR.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Cartes Twitter",
- "description": "Les Cartes Twitter sont des protocoles qui vous permettent d’attacher des photos, des vidéos et autres médias interactifs à vos tweets, cela vas vous aider à générer du trafic vers votre site."
- },
- "default-image": "Image par défaut."
-}
\ No newline at end of file
diff --git a/bl-plugins/twitter-cards/languages/it.json b/bl-plugins/twitter-cards/languages/it.json
deleted file mode 100644
index b2408307..00000000
--- a/bl-plugins/twitter-cards/languages/it.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "Con Twitter Cards, puoi aggiungere foto, video e media ai tuoi tweet, aiutando a guidare il traffico sul tuo sito."
- },
- "default-image": "Immagine predefinita"
-}
\ No newline at end of file
diff --git a/bl-plugins/twitter-cards/languages/ja_JP.json b/bl-plugins/twitter-cards/languages/ja_JP.json
deleted file mode 100644
index 5f98378d..00000000
--- a/bl-plugins/twitter-cards/languages/ja_JP.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "With Twitter Cards, you can attach rich photos, videos and media experiences to Tweets, helping to drive traffic to your website."
- },
- "default-image": "Default image"
-}
\ No newline at end of file
diff --git a/bl-plugins/twitter-cards/languages/nl_NL.json b/bl-plugins/twitter-cards/languages/nl_NL.json
deleted file mode 100644
index fa7869b7..00000000
--- a/bl-plugins/twitter-cards/languages/nl_NL.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "Met Twitter Cards kunnen foto's, video's and media-ervaringen worden gekoppeld aan tweets om zo bezoekers naar deze website te trekken."
- },
- "default-image": "Standaardafbeelding"
-}
\ No newline at end of file
diff --git a/bl-plugins/twitter-cards/languages/ru_RU.json b/bl-plugins/twitter-cards/languages/ru_RU.json
deleted file mode 100644
index 61402814..00000000
--- a/bl-plugins/twitter-cards/languages/ru_RU.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "C Twitter Cards вы можете добавить фото, видео и медиа к твиттам, тем самым привлекая дополнительный трафик для вашего сайта."
- },
- "default-image": "Изображение по умолчанию"
-}
diff --git a/bl-plugins/twitter-cards/languages/tr_TR.json b/bl-plugins/twitter-cards/languages/tr_TR.json
deleted file mode 100644
index af76e962..00000000
--- a/bl-plugins/twitter-cards/languages/tr_TR.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "plugin-data":
- {
- "name": "Twitter Cards",
- "description": "Twitter Kartları ile zengin fotoğraf, video ve medya deneyimlerini Tweetlere ekleyebilir ve web sitenize trafik çekmenize yardımcı olabilirsiniz."
- },
- "default-image": "Varsayılan resim"
-}
diff --git a/bl-plugins/twitter-cards/metadata.json b/bl-plugins/twitter-cards/metadata.json
deleted file mode 100644
index c4539610..00000000
--- a/bl-plugins/twitter-cards/metadata.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "author": "Koblog",
- "email": "",
- "website": "https://plugins.koblog.com",
- "version": "kb_0.0.1",
- "releaseDate": "2024-08-23",
- "license": "MIT",
- "compatible": "kb_0.0.1",
- "notes": ""
-}
diff --git a/bl-plugins/twitter-cards/plugin.php b/bl-plugins/twitter-cards/plugin.php
deleted file mode 100644
index fde7af92..00000000
--- a/bl-plugins/twitter-cards/plugin.php
+++ /dev/null
@@ -1,85 +0,0 @@
-dbFields = array(
- 'defaultImage' => ''
- );
- }
-
- public function form()
- {
- global $L;
-
- $html = '';
- $html .= '';
- $html .= '';
- $html .= '
';
-
- return $html;
- }
-
- public function siteHead()
- {
- global $url;
- global $site;
- global $WHERE_AM_I;
- global $content;
- global $page;
-
- $data = array(
- 'card' => 'summary',
- 'site' => '',
- 'title' => $site->title(),
- 'description' => $site->description(),
- 'image' => ''
- );
-
- switch ($WHERE_AM_I) {
- // The user filter by page
- case 'page':
- $data['title'] = $page->title();
- $data['description'] = $page->description();
- $data['image'] = $page->coverImage($absolute = true);
-
- $pageContent = $page->content();
- break;
-
- // The user is in the homepage
- default:
- $pageContent = '';
- // The image it's from the first page
- if (isset($content[0])) {
- $data['image'] = $content[0]->coverImage($absolute = true);
- $pageContent = $content[0]->content();
- }
- break;
- }
-
- $html = PHP_EOL . '' . PHP_EOL;
- $html .= '' . PHP_EOL;
- $html .= '' . PHP_EOL;
- $html .= '' . PHP_EOL;
- $html .= '' . PHP_EOL;
-
- // If the page doesn't have a coverImage try to get an image from the HTML content
- if (empty($data['image'])) {
- // Get the image from the content
- $src = DOM::getFirstImage($pageContent);
- if ($src !== false) {
- $data['image'] = $src;
- } else {
- if (Text::isNotEmpty($this->getValue('defaultImage'))) {
- $data['image'] = $this->getValue('defaultImage');
- }
- }
- }
-
- $html .= '' . PHP_EOL;
- return $html;
- }
-}