Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$pageURL = 'http';
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
$sos = parse_url($pageURL);
?
<nav>
<ul>
<li class="<?= $sos['path'] == '/index.php' ? 'current' : ''?>"><a href="index.php"><?= $menu['home']; ?></a></li>
<li class="<?= $sos['path'] == '/services.php' ? 'current' : ''?>"><a href="services.php"><?= $menu['service']; ?></a></li>
<li class="<?= $sos['path'] == '/hosting.php' ? 'current' : ''?>"><a href="hosting.php"><?= $menu['hosting']; ?></a></li>
<li class="<?= $sos['path'] == '/promotions.php' ? 'current' : ''?>"><a href="promotions.php"><?= $menu['solution']; ?></a></li>
<li class="<?= $sos['path'] == '/support.php' ? 'current' : ''?>"><a href="support.php"><?= $menu['support']; ?></a></li>
<li class="<?= $sos['path'] == '/contacts.php' ? 'current' : ''?>"><a href="contacts.php"><?= $menu['contact']; ?></a></li>
</ul>
</nav>
function curPageURL()
{
$pageURL = 'http';
if (isSet($_SERVER["HTTPS"]) == "on")
{
$pageURL .= "s";
}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80")
{
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
}
else
{
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$pageURL = addslashes(htmlspecialchars(trim(curPageURL())));