<?php
function url_origin( $s, $use_forwarded_host = false )
{
    $ssl      = ( ! empty( $s['HTTPS'] ) && $s['HTTPS'] == 'on' );
    $sp       = strtolower( $s['SERVER_PROTOCOL'] );
    $protocol = substr( $sp, 0, strpos( $sp, '/' ) ) . ( ( $ssl ) ? 's' : '' );
    $port     = $s['SERVER_PORT'];
    $port     = ( ( ! $ssl && $port=='80' ) || ( $ssl && $port=='443' ) ) ? '' : ':'.$port;
    $host     = ( $use_forwarded_host && isset( $s['HTTP_X_FORWARDED_HOST'] ) ) ? $s['HTTP_X_FORWARDED_HOST'] : ( isset( $s['HTTP_HOST'] ) ? $s['HTTP_HOST'] : null );
    $host     = isset( $host ) ? $host : $s['SERVER_NAME'] . $port;
    return $protocol . '://' . $host;
}

function full_url( $s, $use_forwarded_host = false )
{
    return url_origin( $s, $use_forwarded_host ) . $s['REQUEST_URI'];
}
preg_match('/(http(|s)):\/\/(.*?)\//si',  full_url( $_SERVER ), $output);
?>
<header id="header" class="full-header transparent-header head_logo_full">

    <div id="header-wrap" class="head_logo_bg" style="z-index: 99;">

        <div class="container clearfix">

            <div id="primary-menu-trigger"><i class="icon-reorder"></i></div>

            <!-- Logo
            ============================================= -->
            <div id="logo" style="border-right:none;display: table;">
                <a href="index.php" class="standard-logo" data-dark-logo="site/AMEDS2/upload/mw_data/file/keystoyoung_logo.png"><img src="site/AMEDS2/upload/mw_data/file/keystoyoung_logo.png" alt="Ameds Logo"></a>
                <a href="index.php" class="retina-logo" data-dark-logo="site/AMEDS2/upload/mw_data/file/keystoyoung_logo.png"><img src="site/AMEDS2/upload/mw_data/file/keystoyoung_logo.png" style="margin: 0 auto;" alt="Ameds Logo"></a>
            </div><!-- #logo end -->

            <!-- Primary Navigation
            ============================================= -->
            <nav id="primary-menu">
                <ul style="padding-right: 0px; margin-right: 0px">
                    <li class=""><a href="brandintro.php"><div>關於我們</div></a></li>
                    <li class=""><a href="servicecate.php"><div>專業醫美療程</div></a></li>
                    <li class=""><a href="instruments.php"><div>專業醫美技術</div></a></li>
                    <!--                        <li class=""><a href="ameds22ce6.html?page=shopcate"><div>專業醫美產品</div></a></li>                      -->
                    <li class=""><a href="news.php"><div>最新資訊</div></a></li>
                    <li class=""><a href="analysis.php"><div>親身體驗</div></a></li>
                    <li class=""><a href="about.php"><div>你的寶貴意見</div></a></li>
                    <li class=""><a href="contact.php"><div>聯絡我們</div></a></li>
                    <!--                        <li><a href="https://hkaos.com.hk/" target="_blank"><img src="../www.hkamc.com.hk/images/aos_mainpage84e0.html?crc=14242765"></a></li>-->
                    <!--                        <li><a href="https://hkamc.com.hk/" target="_blank"><img src="../hkaos.com.hk/images/amc_mainpage03e6.png?crc=67172461"></a></li>-->
                </ul>
            </nav><!-- #primary-menu end -->

        </div>

    </div>

</header>
