version badge on admin sidebar
Update badge css to math bootstrap v5.1.3 as used in Bludit 4.x. css class names for badges has changed since boostrap 5.x from bagdewarning to bg-warning and badge-pill to rounded-pill. This allows to show correct badge in admin sidebar (menu)
This commit is contained in:
parent
548c2a5d8f
commit
3a0ce9a94e
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class pluginVersion extends Plugin {
|
|||
global $L;
|
||||
$html = '';
|
||||
if ($this->getValue('showCurrentVersion')) {
|
||||
$html = '<a id="current-version" class="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 badge-warning badge-pill">'.BLUDIT_VERSION.'</span></a>';
|
||||
$html = '<a id="current-version" class="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" style="display: none;" target="_blank" href="https://www.bludit.com">'.$L->get('New version available').' <span class="bi-bell" style="color: red"></span></a>';
|
||||
|
|
Loading…
Add table
Reference in a new issue