[staticPage]
useContent = 1
default = 0

[localePicker]
forceUrl = 1

[RainLab\User\Components\Account account]
redirect = "index"
paramCode = "code"
forceSecure = 0
requirePassword = 0
view = "signin"

[session]
security = "all"

[notifications]
recordsPerPage = 7
includeAssets = 1
==
<?php
function onStart(){
    $this['phone'] = TPS\Birzha\Models\Settings::getValue('phone');
    $this['phone_2'] = TPS\Birzha\Models\Settings::getValue('phone_2');
    $this['phone_3'] = TPS\Birzha\Models\Settings::getValue('phone_3');
    $this['site_name'] = TPS\Birzha\Models\Settings::getValue('site_name');
    $this['dollar'] = TPS\Birzha\Models\Settings::getValue('dollar');
    $this['euro'] = TPS\Birzha\Models\Settings::getValue('euro');
    $this['gbp'] = TPS\Birzha\Models\Settings::getValue('gbp');
    $this['email'] = TPS\Birzha\Models\Settings::getValue('email');
    $this['email_2'] = TPS\Birzha\Models\Settings::getValue('email_2');
    $this['address'] = TPS\Birzha\Models\Settings::getValue('address');
    $this['short_name'] = TPS\Birzha\Models\Settings::getValue('short_name');
    $this['tax_code'] = TPS\Birzha\Models\Settings::getValue('tax_code');
    $this['bab'] = TPS\Birzha\Models\Settings::getValue('bab');
    $this['manat_account'] = TPS\Birzha\Models\Settings::getValue('manat_account');
    $this['correspondent_account'] = TPS\Birzha\Models\Settings::getValue('correspondent_account');
}
?>
==
<!DOCTYPE html>
<html lang="{{activeLocale}}">
<head>
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-Z0ZDZ87T4Y"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        gtag('config', 'G-Z0ZDZ87T4Y');
    </script>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap" rel="stylesheet">
    <!-- <link rel="icon" type="image/svg" href="{{ 'assets/images/svg/fav_icon.svg'|theme }}"> -->
    <link rel="icon" href="{{'assets/images/svg/fav_icon.svg'|theme}}" sizes="32x32">
    <link rel="icon" href="{{'assets/images/svg/fav_icon.svg'|theme}}" sizes="192x192">
    <link rel="apple-touch-icon-precomposed" href="{{'assets/images/svg/fav_icon.svg'|theme}}">
    <meta name="msapplication-TileImage" content="{{'assets/images/svg/fav_icon.svg'|theme}}">
    {% styles %}
    <link rel="stylesheet" href="{{'assets/css/animate.css'|theme}}">
    <link rel="stylesheet" href="{{'assets/css/main.css'|theme}}">
    <link rel="stylesheet" href="{{'assets/css/phone_box.css'|theme}}">
    <!--    <link href="{{ ['assets/css/main.css']|theme }}" rel="stylesheet">-->


    <title>{{this.page.title}}</title>

</head>
<body>

{% flash success %}
<p data-control="flash-message" data-interval="5" class="success">
    {{ message }}
</p>
{% endflash %}

{% flash error %}
<p data-control="flash-message" data-interval="5" class="error">
    {{ message }}
</p>
{% endflash %}


{% partial 'header' %}
{% page %}
{% partial 'footer' %}
<script src="{{'assets/js/jquery.js'|theme}}"></script>

{% framework extras %}
{% scripts %}

<!-- Try to find a hash when parsing a url -->
<script>
    $(document).ready(function() {
        switch (location.hash.substr(1)) {
            case 'register':
                $('.register').addClass('active');
                $('#btn-2').addClass('active');
                $('body').addClass('active');
                $('.register_content').addClass('active');
                break;
                
            case 'login':
                $('.register').addClass('active');
                $('#btn-1').addClass('active');
                $('body').addClass('active');
                $('.register_content_2').addClass('active');
                break;
        
            default:
                break;
        }
    })
</script>
<!-- End hash script -->

<script src="{{'assets/js/wow.min.js'|theme}}"></script>
<script src="{{'assets/js/main.js'|theme}}"></script>
<script>
    $('.iti__country').click(function (e) {
        let flagClass = $(this).find('.iti__flag').attr("class").split(/\s+/)[1]

        let oldClasses = $('.phone_box-flag').attr("class").split(/\s+/);
        delete(oldClasses[2])

        $('.phone_box-flag').attr('class', oldClasses.join(' '))


        $('.phone_box-flag').addClass(flagClass)

        // todo code

        let code = $(this).find('.iti__dial-code').text()
        $('.phone_box-code').html(code)

        $('input[name="dial_code"]').val(code)

    })

</script>
<script>
    new WOW().init();
</script>

</body>
</html>