This commit is contained in:
Ty Clifford
2026-07-03 07:31:09 -04:00
commit cebb0d3af1
800 changed files with 89782 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
{
"disqus-shortname": "Disqus kortnavn",
"enable-disqus-on-pages": "Disqus på sider",
"enable-disqus-on-static-pages": "Disqus på statiske sider",
"enable-disqus-on-sticky-pages": "Disqus på fastgjorde sider",
"get-the-shortname-from-the-disqus-general-settings": "Hent det korte navn fra Disqus generelle indstillinger",
"plugin-data": {
"description": "Disqus er en kommentar hostingstjeneste til websteder.<br>Det er nødvendigt at være registreret på <a href=\"https://disqus.com\">Disqus</a> for at bruge denne service.",
"name": "Disqus"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus",
"description": "Disqus ist eine Kommentar-Plattform für Websites. Um das Plugin verwenden zu können, muss ein Konto bei <a href=\"https://disqus.com\">Disqus</a> eingerichtet werden."
},
"disqus-shortname": "Disqus-Kurzname (Shortname)",
"enable-disqus-on-pages": "Disqus auf Seiten",
"enable-disqus-on-static-pages": "Disqus auf statischen Seiten",
"enable-disqus-on-sticky-pages": "Disqus bei fixierten Inhalten",
"get-the-shortname-from-the-disqus-general-settings": "Der Kurzname wird bei Disqus unter \"Settings\" > \"General\" angezeigt."
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus",
"description": "Disqus ist eine Kommentar-Plattform für Websites. Um das Plugin verwenden zu können, muss ein Konto bei <a href=\"https://disqus.com\">Disqus</a> eingerichtet werden."
},
"disqus-shortname": "Disqus-Kurzname (Shortname)",
"enable-disqus-on-pages": "Disqus auf Seiten",
"enable-disqus-on-static-pages": "Disqus auf statischen Seiten",
"enable-disqus-on-sticky-pages": "Disqus bei fixierten Inhalten",
"get-the-shortname-from-the-disqus-general-settings": "Der Kurzname wird bei Disqus unter \"Settings\" > \"General\" angezeigt."
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus",
"description": "Disqus is a comment hosting service for web sites.<br>It's necessary to be registered on <a href=\"https://disqus.com\">Disqus</a> to use this service."
},
"disqus-shortname": "Disqus shortname",
"enable-disqus-on-pages": "Disqus on pages",
"enable-disqus-on-static-pages": "Disqus on static pages",
"enable-disqus-on-sticky-pages": "Disqus on sticky pages",
"get-the-shortname-from-the-disqus-general-settings": "Get the shortname from the Disqus general settings"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus",
"description": "Disqus es un servicio de comentarios online.<br>Es necesario registrarse en <a href=\"https://disqus.com\">Disqus</a> antes de utilizar este plugin."
},
"disqus-shortname": "Disqus shortname",
"enable-disqus-on-pages": "Disqus en página",
"enable-disqus-on-static-pages": "Disqus en página estaticas",
"enable-disqus-on-sticky-pages": "Disqus en página sticky",
"get-the-shortname-from-the-disqus-general-settings": "Puede obtener el shortname en la página de configuración de Disqus."
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "دیسکاس",
"description": "دیسکاس یک سرویس اینترنتی ارسال دیدگاه برای وبسایت ها می‌باشد.<br>برای استفاده از این سرویس لازم است که در <a href=\"https://disqus.com\">Disqus</a> ثبت نام کنید."
},
"disqus-shortname": "نام کوتاه دیسکاس",
"enable-disqus-on-pages": "دیسکاس در صفحات",
"enable-disqus-on-static-pages": "دیسکاس در صفحات استاتیک",
"enable-disqus-on-sticky-pages": "دیسکاس در صفحات چسبنده",
"get-the-shortname-from-the-disqus-general-settings": "دریافت نام کوتاه از تنظیمات عمومی دیسکاس"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus système de commentaire",
"description": "Disqus est un service Web de discussion et de commentaires d'articles centralisé avec authentification unique. Il est nécessaire de sinscrire sur Disqus.com avant dutiliser ce plugin."
},
"disqus-shortname": "Votre ID Disqus",
"enable-disqus-on-pages": "Disqus sur les pages",
"enable-disqus-on-static-pages": "Disqus sur les pages statiques",
"enable-disqus-on-sticky-pages": "Disqus sur les pages épinglées",
"get-the-shortname-from-the-disqus-general-settings": "Obtenez votre ID à partir des paramètres généraux de Disqus."
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus",
"description": "Disqus è un servizio di hosting per i commenti sui siti web.<br>E' neccesario essere resitrati su <a href=\"https://disqus.com\">Disqus</a> per utilizzare questo servizio."
},
"disqus-shortname": "Nome Breve Disqus ",
"enable-disqus-on-pages": "Disqus sulle pagine",
"enable-disqus-on-static-pages": "Disqus sulle pagine statiche",
"enable-disqus-on-sticky-pages": "Disqus sulle pagine sticky",
"get-the-shortname-from-the-disqus-general-settings": "Acquisisci il nome utente da utilizzare dalle impostazioni generali di Disqus"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus",
"description": "DisqusはWebサイト向けのコメントホスティングサービスです。このサービスを利用するには、<a href=\"https:\/\/disqus.com\">Disqus<\/a>に登録する必要があります。"
},
"disqus-shortname": "Disqusショートネーム",
"enable-disqus-on-pages": "ページにDisqusを使用",
"enable-disqus-on-static-pages": "固定ページにDisqusを使用",
"enable-disqus-on-sticky-pages": "先頭固定ページにDisqusを使用",
"get-the-shortname-from-the-disqus-general-settings": "Disqus一般設定からショートネームを取得します"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus",
"description": "Disqus is hosting service om reacties in websites te implementeren.<br>Registratie op Disqus.com is nodig voordat deze plugin gebruikt kan gebruiken."
},
"disqus-shortname": "Disqus shortname",
"enable-disqus-on-pages": "Disqus op pagina's tonen",
"enable-disqus-on-static-pages": "Disqus on statische pagina's tonen",
"enable-disqus-on-sticky-pages": "Disqus on vastgezette pagina's tonen",
"get-the-shortname-from-the-disqus-general-settings": "De shortname is te verkrijgen via de algemene instellingen van Disqus"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "System komentarzy - Disqus",
"description": "System komentarzy Disqus przechowuje komentarze dla serwisów internetowych. Korzystanie z tej wtyczki wymaga rejestracji w serwisie disqus.com."
},
"disqus-shortname": "Nazwa użytkownika Disqus",
"enable-disqus-on-pages": "Disqus on pages",
"enable-disqus-on-static-pages": "Disqus on static pages",
"enable-disqus-on-sticky-pages": "Disqus on sticky pages",
"get-the-shortname-from-the-disqus-general-settings": "Get the shortname from the Disqus general settings"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Комментарии Disqus",
"description": "Disqus это сервис комментариев для сайтов и блогов. Необходимо зарегистрироваться на Disqus.com перед тем как использовать плагина."
},
"disqus-shortname": "Краткое имя Disqus",
"enable-disqus-on-pages": "Disqus для страниц",
"enable-disqus-on-static-pages": "Disqus для статических страниц",
"enable-disqus-on-sticky-pages": "Disqus для прикреплённых страниц",
"get-the-shortname-from-the-disqus-general-settings": "Получить краткое имя со страницы общих настроек Disqus"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus Yorum Sistemi",
"description": "Disqus siteler için yorum barındırması yapan bir firmadır. Eklentiyi kullanmadan önce Disqus.com adresine kayıt olmanız gerekmektedir."
},
"disqus-shortname": "Disqus shortname",
"enable-disqus-on-pages": "Disqus on pages",
"enable-disqus-on-static-pages": "Disqus on static pages",
"enable-disqus-on-sticky-pages": "Disqus on sticky pages",
"get-the-shortname-from-the-disqus-general-settings": "Get the shortname from the Disqus general settings"
}
+12
View File
@@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Система коментарів Disqus",
"description": "Disqus надає послуги хостингу коментарів для веб-сайтів. Необхідно зареєструватися на Disqus.com перед використанням цього плагіна."
},
"disqus-shortname": "Коротке ім'я в Disqus",
"enable-disqus-on-pages": "Disqus on pages",
"enable-disqus-on-static-pages": "Disqus on static pages",
"enable-disqus-on-sticky-pages": "Disqus on sticky pages",
"get-the-shortname-from-the-disqus-general-settings": "Get the shortname from the Disqus general settings"
}
+10
View File
@@ -0,0 +1,10 @@
{
"author": "Bludit",
"email": "",
"website": "https://plugins.bludit.com",
"version": "3.22.0",
"releaseDate": "2026-05-10",
"license": "MIT",
"compatible": "3.22",
"notes": ""
}
+112
View File
@@ -0,0 +1,112 @@
<?php
class pluginDisqus extends Plugin
{
public function init()
{
$this->dbFields = array(
'shortname' => '',
'enablePages' => true,
'enableStatic' => true,
'enableSticky' => true
);
}
public function form()
{
global $L;
$html = '<div class="alert alert-primary" role="alert">';
$html .= $this->description();
$html .= '</div>';
$html .= '<div>';
$html .= '<label>' . $L->get('disqus-shortname') . '</label>';
$html .= '<input name="shortname" id="jsshortname" type="text" dir="auto" value="' . $this->getValue('shortname') . '">';
$html .= '<span class="tip">' . $L->get('Get the shortname from the Disqus general settings') . '</span>';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>' . $L->get('enable-disqus-on-pages') . '</label>';
$html .= '<select name="enablePages">';
$html .= '<option value="true" ' . ($this->getValue('enablePages') === true ? 'selected' : '') . '>' . $L->get('enabled') . '</option>';
$html .= '<option value="false" ' . ($this->getValue('enablePages') === false ? 'selected' : '') . '>' . $L->get('disabled') . '</option>';
$html .= '</select>';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>' . $L->get('enable-disqus-on-static-pages') . '</label>';
$html .= '<select name="enableStatic">';
$html .= '<option value="true" ' . ($this->getValue('enableStatic') === true ? 'selected' : '') . '>' . $L->get('enabled') . '</option>';
$html .= '<option value="false" ' . ($this->getValue('enableStatic') === false ? 'selected' : '') . '>' . $L->get('disabled') . '</option>';
$html .= '</select>';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>' . $L->get('enable-disqus-on-sticky-pages') . '</label>';
$html .= '<select name="enableSticky">';
$html .= '<option value="true" ' . ($this->getValue('enableSticky') === true ? 'selected' : '') . '>' . $L->get('enabled') . '</option>';
$html .= '<option value="false" ' . ($this->getValue('enableSticky') === false ? 'selected' : '') . '>' . $L->get('disabled') . '</option>';
$html .= '</select>';
$html .= '</div>';
return $html;
}
public function pageEnd()
{
global $url;
global $WHERE_AM_I;
// Do not show disqus on page not found
if ($url->notFound()) {
return false;
}
if ($WHERE_AM_I === 'page') {
global $page;
if ($page->published() && $this->getValue('enablePages')) {
return $this->javascript();
}
if ($page->isStatic() && $this->getValue('enableStatic')) {
return $this->javascript();
}
if ($page->sticky() && $this->getValue('enableSticky')) {
return $this->javascript();
}
}
return false;
}
private function javascript()
{
global $page;
$pageURL = $page->permalink();
$pageID = $page->uuid();
$shortname = $this->getValue('shortname');
$code = <<<EOF
<!-- Disqus plugin -->
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '$pageURL';
this.page.identifier = '$pageID';
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://$shortname.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<!-- /Disqus plugin -->
EOF;
return $code;
}
}