Files
Admin Nasledstvo ac168868ee Initial import
2026-05-01 20:52:04 +03:00

56 lines
1.9 KiB
PHP

<?php
if (!empty($_GET['webview_mode'])):
\app\models\Ts::set([194])
?>
<link rel="stylesheet" href="/_public/assets/fonts/line-awesome/css/line-awesome.min.css">
<style>
header, .page-header, footer, .cart, .mobile-logo {display: none !important;}
.main-profile-panel, .booking-panel { margin: 0 !important; !important;}
.content {width: calc(100% - 20px) !important; padding: 60px 10px 10px 10px !important;}
.panel-box { background: #FFFFFF; border: 0}
.header-app {
background: #FFFFFF;
width: 100%;
text-align: center;
height: 50px;
line-height: 50px;
position: fixed;
box-shadow: 0 5px 10px rgba(0,0,0, 0.4);
top: 0;
left: 0;
}
.close-browser-in-app {
position: absolute;
color: #FFFFFF;
background: #000000;
width: 25px;
height: 25px;
right: 15px;
top: 14px;
font-size: 20px;
text-align: center;
line-height: 27px;
border-radius: 5px !important;
}
</style>
<script>
const closeBrowseBtn = document.createElement('div');
closeBrowseBtn.className = 'close-browser-in-app';
closeBrowseBtn.innerHTML = '<i class="la la-times"></i>';
closeBrowseBtn.addEventListener('click', () => {
window.location.href = '<?= Yii::$app->params['portal'] ?>/bg/mobile-api/browser-close/'
})
const headerApp = document.createElement('div');
headerApp.className = 'header-app';
headerApp.innerHTML = '<?= \app\models\Ts::get(194)?>'
headerApp.appendChild(closeBrowseBtn);
window.addEventListener('DOMContentLoaded', function () {
document.body.appendChild(headerApp);
})
</script>
<?php endif ?>