Trying to add tanslatable string
Please check it. I tested on my site and it's working perfectly, but maybe I did some mistakes.
This commit is contained in:
parent
b156c9e576
commit
9833141c13
@ -42,7 +42,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'.'">Version '.(defined('BLUDIT_PRO')?'<span class="fa fa-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="fa fa-heart" style="color: #ffc107"></span>':'').'<span class="badge badge-warning badge-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="fa fa-bell" style="color: red"></span></a>';
|
||||
@ -61,4 +61,4 @@ class pluginVersion extends Plugin {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user