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
+25
View File
@@ -0,0 +1,25 @@
function getLatestVersion() {
console.log("[INFO] [PLUGIN VERSION] Getting list of versions of Bludit.");
$.ajax({
url: "https://version.bludit.com",
method: "GET",
dataType: 'json',
success: function(json) {
console.log("[INFO] [PLUGIN VERSION] Request completed.");
// Constant BLUDIT_BUILD is defined on variables.js
if (json.stable.build > BLUDIT_BUILD) {
$(".current-version").hide();
$(".new-version").show();
}
},
error: function(json) {
console.log("[WARN] [PLUGIN VERSION] There is some issue to get the version status.");
}
});
}
getLatestVersion();
+8
View File
@@ -0,0 +1,8 @@
{
"plugin-data": {
"description": "Vis den aktuelle version på sidepanelet på kontrolpanelet, og kontroller regelmæssigt for nye Bludit udgivelser.",
"name": "Version"
},
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Vis notifikation, når der er en ny version i sidepanelet",
"show-current-version-in-the-sidebar": "Vis den aktuelle version i sidepanelet"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Version",
"description": "Zeigt die installierte Version von Bludit in der rechten unteren Ecke des Administrationsbereichs an. Tipp: Regelmässig prüfen, ob eine neue Version verfügbar ist."
},
"show-current-version-in-the-sidebar": "Show current version in the sidebar",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Show alert when there is a new version in the sidebar"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Version",
"description": "Zeigt die installierte Version von Bludit in der rechten unteren Ecke des Administrationsbereichs an. Tipp: Regelmäßig prüfen, ob eine neue Version verfügbar ist."
},
"show-current-version-in-the-sidebar": "Show current version in the sidebar",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Show alert when there is a new version in the sidebar"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Version",
"description": "Show the current version on the sidebar of the admin panel, and check periodically for new Bludit releases."
},
"show-current-version-in-the-sidebar": "Show current version in the sidebar",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Show alert when there is a new version in the sidebar"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Versión",
"description": "Muestra la versión actual en la barra del panel de administración y comprueba periódicamente si hay nuevas versiones de Bludit."
},
"show-current-version-in-the-sidebar": "Mostrar la versión actual en la barra lateral",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Mostrar alerta cuando hay una nueva versión en la barra lateral"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "نسخه",
"description": "نمایش نسخه جاری در نوار کناری پنل مدیریت، و بررسی دوره ای برای نسخه های جدید بلودیت."
},
"show-current-version-in-the-sidebar": "Show current version in the sidebar",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Show alert when there is a new version in the sidebar"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Version",
"description": "Affiche la version actuelle dans la barre latérale du panneau dadministration, et vérifie périodiquement les nouvelles versions de Bludit."
},
"show-current-version-in-the-sidebar": "Afficher la version actuelle dans la barre latérale",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Afficher une alerte lorsqu'il y a une nouvelle version dans la barre latérale"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Versione",
"description": "Visualizza la versione corrente in basso a destra nel pannello di amministrazione, e controlla periodicamente i nuovi rilasci di Bludit."
},
"show-current-version-in-the-sidebar": "Show current version in the sidebar",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Show alert when there is a new version in the sidebar"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "バージョン",
"description": "Show the current version on the sidebar of the admin panel, and check periodically for new Bludit releases."
},
"show-current-version-in-the-sidebar": "Show current version in the sidebar",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Show alert when there is a new version in the sidebar"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Versie",
"description": "Toont de huidige versie in de zijbalk van het beheergedeelte en controleert periodiek op nieuwe Bludit-versies."
},
"show-current-version-in-the-sidebar": "De huidige versie in de zijbalk tonen",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Een melding in de zijbalk tonen wanneer er een nieuwe versie beschikbaar is"
}
+10
View File
@@ -0,0 +1,10 @@
{
"plugin-data":
{
"name": "Версия",
"description": "Показывает текущую версию в левой нижней части административной панели; периодически проверяет новые выпуски Bludit."
},
"version": "Версия",
"show-current-version-in-the-sidebar": "Отображает используемую версию Bludit внизу боковой панели администратора",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Показывает уведомление в боковой панели администратора появлении новой версии"
}
+9
View File
@@ -0,0 +1,9 @@
{
"plugin-data":
{
"name": "Sürüm",
"description": "Geçerli sürümünü yönetici panelinin kenar çubuğunda gösterin ve yeni Bludit sürümleri için düzenli olarak kontrol edin."
},
"show-current-version-in-the-sidebar": "Show current version in the sidebar",
"show-alert-when-there-is-a-new-version-in-the-sidebar": "Show alert when there is a new version in the sidebar"
}
+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": ""
}
+61
View File
@@ -0,0 +1,61 @@
<?php
class pluginVersion extends Plugin
{
public function init()
{
$this->dbFields = array(
'showCurrentVersion' => true,
'newVersionAlert' => true
);
}
public function form()
{
global $L;
$html = '<div>';
$html .= '<label>' . $L->get('Show current version in the sidebar') . '</label>';
$html .= '<select name="showCurrentVersion">';
$html .= '<option value="true" ' . ($this->getValue('showCurrentVersion') === true ? 'selected' : '') . '>' . $L->get('Enabled') . '</option>';
$html .= '<option value="false" ' . ($this->getValue('showCurrentVersion') === false ? 'selected' : '') . '>' . $L->get('Disabled') . '</option>';
$html .= '</select>';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>' . $L->get('Show alert when there is a new version in the sidebar') . '</label>';
$html .= '<select name="newVersionAlert">';
$html .= '<option value="true" ' . ($this->getValue('newVersionAlert') === true ? 'selected' : '') . '>' . $L->get('Enabled') . '</option>';
$html .= '<option value="false" ' . ($this->getValue('newVersionAlert') === false ? 'selected' : '') . '>' . $L->get('Disabled') . '</option>';
$html .= '</select>';
$html .= '</div>';
return $html;
}
public function adminSidebar()
{
global $L;
$html = '';
if ($this->getValue('showCurrentVersion')) {
$html = '<a id="current-version" class="current-version nav-link" href="' . HTML_PATH_ADMIN_ROOT . 'about' . '">' . $L->get('Version') . ' ' . (defined('BLUDIT_PRO') ? '<span class="bi-heart" style="color: #ffc107"></span>' : '') . '<span class="badge bg-warning rounded-pill">' . BLUDIT_VERSION . '</span></a>';
}
if ($this->getValue('newVersionAlert')) {
$html .= '<a id="new-version" class="new-version" style="display: none;" target="_blank" href="https://www.bludit.com">' . $L->get('New version available') . ' <i class="fa fa-bell text-danger"></i></a>';
}
return $html;
}
public function adminBodyEnd()
{
if ($this->getValue('newVersionAlert')) {
// The follow Javascript get via AJAX the information about new versions
// The script is on /bl-plugins/version/js/version.js
$jsPath = $this->phpPath() . 'js' . DS;
$scripts = '<script>' . file_get_contents($jsPath . 'version.js') . '</script>';
return $scripts;
}
return false;
}
}