Commit 2510d74a authored by Kulya's avatar Kulya 😊

Fix versions-2

parent 312ab74a
...@@ -22,7 +22,15 @@ ...@@ -22,7 +22,15 @@
padding: 0px; padding: 0px;
box-sizing: border-box; box-sizing: border-box;
} }
.topversion{
position: absolute;
top: 0;
right: 2px;
color: #b8b8b8;
font-size: 10px;
z-index: 999999;
font-style: italic;
}
document, html, body { document, html, body {
height: 100%; height: 100%;
width:100%; width:100%;
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
</head> </head>
<body> <body>
<div class="topversion"><?php echo $version; ?></div>
<div class="alvcontainer"> <div class="alvcontainer">
<?php if(!empty($arAlvSections)) { ?> <?php if(!empty($arAlvSections)) { ?>
<div class="row menu_top"> <div class="row menu_top">
......
...@@ -42,7 +42,7 @@ class AloVoiceConnector ...@@ -42,7 +42,7 @@ class AloVoiceConnector
]; ];
} }
public function getVersion(){ public static function getVersion(){
$verTxt = file_get_contents('version'); $verTxt = file_get_contents('version');
return (!empty($verTxt)) ? $verTxt : '2.721'; return (!empty($verTxt)) ? $verTxt : '2.721';
...@@ -1257,7 +1257,7 @@ class AloVoiceConnector ...@@ -1257,7 +1257,7 @@ class AloVoiceConnector
$wrap=false; $wrap=false;
} }
$version = self::getVersion();
if(!empty($loadPage)){ if(!empty($loadPage)){
if((!empty($arResult["page"])) && $arResult["page"] == 'user_profile_menu'){ if((!empty($arResult["page"])) && $arResult["page"] == 'user_profile_menu'){
$arAlvSections = null; $arAlvSections = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment